@atproto/bsky 0.0.215 → 0.0.216

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 (33) hide show
  1. package/CHANGELOG.md +6 -0
  2. package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js +2 -0
  3. package/dist/api/app/bsky/graph/getSuggestedFollowsByActor.js.map +1 -1
  4. package/dist/api/app/bsky/unspecced/getSuggestedOnboardingUsers.js +1 -1
  5. package/dist/api/app/bsky/unspecced/getSuggestedOnboardingUsers.js.map +1 -1
  6. package/dist/lexicon/index.d.ts +2 -2
  7. package/dist/lexicon/index.d.ts.map +1 -1
  8. package/dist/lexicon/index.js +4 -4
  9. package/dist/lexicon/index.js.map +1 -1
  10. package/dist/lexicon/lexicons.d.ts +116 -100
  11. package/dist/lexicon/lexicons.d.ts.map +1 -1
  12. package/dist/lexicon/lexicons.js +59 -51
  13. package/dist/lexicon/lexicons.js.map +1 -1
  14. package/dist/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts +3 -1
  15. package/dist/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.d.ts.map +1 -1
  16. package/dist/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.js.map +1 -1
  17. package/dist/lexicon/types/app/bsky/unspecced/{getSuggestedOnboardingUsersSkeleton.d.ts → getOnboardingSuggestedUsersSkeleton.d.ts} +1 -1
  18. package/dist/lexicon/types/app/bsky/unspecced/{getSuggestedOnboardingUsersSkeleton.d.ts.map → getOnboardingSuggestedUsersSkeleton.d.ts.map} +1 -1
  19. package/dist/lexicon/types/app/bsky/unspecced/{getSuggestedOnboardingUsersSkeleton.js → getOnboardingSuggestedUsersSkeleton.js} +2 -2
  20. package/dist/lexicon/types/app/bsky/unspecced/{getSuggestedOnboardingUsersSkeleton.js.map → getOnboardingSuggestedUsersSkeleton.js.map} +1 -1
  21. package/dist/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.d.ts +3 -1
  22. package/dist/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.d.ts.map +1 -1
  23. package/dist/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.js.map +1 -1
  24. package/package.json +2 -2
  25. package/src/api/app/bsky/graph/getSuggestedFollowsByActor.ts +3 -0
  26. package/src/api/app/bsky/unspecced/getSuggestedOnboardingUsers.ts +1 -1
  27. package/src/lexicon/index.ts +13 -13
  28. package/src/lexicon/lexicons.ts +63 -55
  29. package/src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts +3 -1
  30. package/src/lexicon/types/app/bsky/unspecced/{getSuggestedOnboardingUsersSkeleton.ts → getOnboardingSuggestedUsersSkeleton.ts} +1 -1
  31. package/src/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.ts +3 -1
  32. package/tests/views/get-suggested-onboarding-users.test.ts +1 -1
  33. package/tsconfig.build.tsbuildinfo +1 -1
@@ -7,8 +7,10 @@ export interface OutputSchema {
7
7
  suggestions: AppBskyActorDefs.ProfileView[];
8
8
  /** If true, response has fallen-back to generic results, and is not scoped using relativeToDid */
9
9
  isFallback?: boolean;
10
- /** Snowflake for this recommendation, use when submitting recommendation events. */
10
+ /** DEPRECATED: use recIdStr instead. */
11
11
  recId?: number;
12
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
13
+ recIdStr?: string;
12
14
  }
13
15
  export type HandlerInput = void;
14
16
  export interface HandlerSuccess {
@@ -1 +1 @@
1
- {"version":3,"file":"getSuggestedFollowsByActor.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AAMzD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,gBAAgB,CAAC,WAAW,EAAE,CAAA;IAC3C,kGAAkG;IAClG,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
1
+ {"version":3,"file":"getSuggestedFollowsByActor.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,gBAAgB,MAAM,kBAAkB,CAAA;AAMzD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;CACd,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,WAAW,EAAE,gBAAgB,CAAC,WAAW,EAAE,CAAA;IAC3C,kGAAkG;IAClG,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getSuggestedFollowsByActor.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,2CAA2C,CAAA","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 AppBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.graph.getSuggestedFollowsByActor'\n\nexport type QueryParams = {\n actor: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n suggestions: AppBskyActorDefs.ProfileView[]\n /** If true, response has fallen-back to generic results, and is not scoped using relativeToDid */\n isFallback?: boolean\n /** Snowflake for this recommendation, use when submitting recommendation events. */\n recId?: number\n}\n\nexport type HandlerInput = void\n\nexport interface HandlerSuccess {\n encoding: 'application/json'\n body: OutputSchema\n headers?: { [key: string]: string }\n}\n\nexport interface HandlerError {\n status: number\n message?: string\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
1
+ {"version":3,"file":"getSuggestedFollowsByActor.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/graph/getSuggestedFollowsByActor.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,2CAA2C,CAAA","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 AppBskyActorDefs from '../actor/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.graph.getSuggestedFollowsByActor'\n\nexport type QueryParams = {\n actor: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n suggestions: AppBskyActorDefs.ProfileView[]\n /** If true, response has fallen-back to generic results, and is not scoped using relativeToDid */\n isFallback?: boolean\n /** DEPRECATED: use recIdStr instead. */\n recId?: number\n /** Snowflake for this recommendation, use when submitting recommendation events. */\n recIdStr?: string\n}\n\nexport type HandlerInput = void\n\nexport interface HandlerSuccess {\n encoding: 'application/json'\n body: OutputSchema\n headers?: { [key: string]: string }\n}\n\nexport interface HandlerError {\n status: number\n message?: string\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
@@ -24,4 +24,4 @@ export interface HandlerError {
24
24
  message?: string;
25
25
  }
26
26
  export type HandlerOutput = HandlerError | HandlerSuccess;
27
- //# sourceMappingURL=getSuggestedOnboardingUsersSkeleton.d.ts.map
27
+ //# sourceMappingURL=getOnboardingSuggestedUsersSkeleton.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSuggestedOnboardingUsersSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG;IACxB,+FAA+F;IAC/F,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,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,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
1
+ {"version":3,"file":"getOnboardingSuggestedUsersSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG;IACxB,+FAA+F;IAC/F,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,gDAAgD;IAChD,QAAQ,CAAC,EAAE,MAAM,CAAA;IACjB,KAAK,EAAE,MAAM,CAAA;CACd,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,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
@@ -3,5 +3,5 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  const lexicons_1 = require("../../../../lexicons");
4
4
  const util_1 = require("../../../../util");
5
5
  const is$typed = util_1.is$typed, validate = lexicons_1.validate;
6
- const id = 'app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton';
7
- //# sourceMappingURL=getSuggestedOnboardingUsersSkeleton.js.map
6
+ const id = 'app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton';
7
+ //# sourceMappingURL=getOnboardingSuggestedUsersSkeleton.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"getSuggestedOnboardingUsersSkeleton.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wDAAwD,CAAA","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'\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 type HandlerInput = void\n\nexport interface HandlerSuccess {\n encoding: 'application/json'\n body: OutputSchema\n headers?: { [key: string]: string }\n}\n\nexport interface HandlerError {\n status: number\n message?: string\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
1
+ {"version":3,"file":"getOnboardingSuggestedUsersSkeleton.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,wDAAwD,CAAA","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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton'\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 type HandlerInput = void\n\nexport interface HandlerSuccess {\n encoding: 'application/json'\n body: OutputSchema\n headers?: { [key: string]: string }\n}\n\nexport interface HandlerError {\n status: number\n message?: string\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
@@ -13,8 +13,10 @@ export interface OutputSchema {
13
13
  actors: AppBskyUnspeccedDefs.SkeletonSearchActor[];
14
14
  /** DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. */
15
15
  relativeToDid?: string;
16
- /** Snowflake for this recommendation, use when submitting recommendation events. */
16
+ /** DEPRECATED: use recIdStr instead. */
17
17
  recId?: number;
18
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
19
+ recIdStr?: string;
18
20
  }
19
21
  export type HandlerInput = void;
20
22
  export interface HandlerSuccess {
@@ -1 +1 @@
1
- {"version":3,"file":"getSuggestionsSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,oBAAoB,MAAM,WAAW,CAAA;AAMtD,MAAM,MAAM,WAAW,GAAG;IACxB,2IAA2I;IAC3I,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mHAAmH;IACnH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,oBAAoB,CAAC,mBAAmB,EAAE,CAAA;IAClD,gIAAgI;IAChI,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,oFAAoF;IACpF,KAAK,CAAC,EAAE,MAAM,CAAA;CACf;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
1
+ {"version":3,"file":"getSuggestionsSkeleton.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,oBAAoB,MAAM,WAAW,CAAA;AAMtD,MAAM,MAAM,WAAW,GAAG;IACxB,2IAA2I;IAC3I,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,mHAAmH;IACnH,aAAa,CAAC,EAAE,MAAM,CAAA;CACvB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,oBAAoB,CAAC,mBAAmB,EAAE,CAAA;IAClD,gIAAgI;IAChI,aAAa,CAAC,EAAE,MAAM,CAAA;IACtB,wCAAwC;IACxC,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,oFAAoF;IACpF,QAAQ,CAAC,EAAE,MAAM,CAAA;CAClB;AAED,MAAM,MAAM,YAAY,GAAG,IAAI,CAAA;AAE/B,MAAM,WAAW,cAAc;IAC7B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,YAAY,CAAA;IAClB,OAAO,CAAC,EAAE;QAAE,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAAA;KAAE,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"getSuggestionsSkeleton.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,2CAA2C,CAAA","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 AppBskyUnspeccedDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.unspecced.getSuggestionsSkeleton'\n\nexport type QueryParams = {\n /** DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. */\n viewer?: string\n limit: number\n cursor?: string\n /** DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer. */\n relativeToDid?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n actors: AppBskyUnspeccedDefs.SkeletonSearchActor[]\n /** DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. */\n relativeToDid?: string\n /** Snowflake for this recommendation, use when submitting recommendation events. */\n recId?: number\n}\n\nexport type HandlerInput = void\n\nexport interface HandlerSuccess {\n encoding: 'application/json'\n body: OutputSchema\n headers?: { [key: string]: string }\n}\n\nexport interface HandlerError {\n status: number\n message?: string\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
1
+ {"version":3,"file":"getSuggestionsSkeleton.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/unspecced/getSuggestionsSkeleton.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,2CAA2C,CAAA","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 AppBskyUnspeccedDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.unspecced.getSuggestionsSkeleton'\n\nexport type QueryParams = {\n /** DID of the account making the request (not included for public/unauthenticated queries). Used to boost followed accounts in ranking. */\n viewer?: string\n limit: number\n cursor?: string\n /** DID of the account to get suggestions relative to. If not provided, suggestions will be based on the viewer. */\n relativeToDid?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n actors: AppBskyUnspeccedDefs.SkeletonSearchActor[]\n /** DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. */\n relativeToDid?: string\n /** DEPRECATED: use recIdStr instead. */\n recId?: number\n /** Snowflake for this recommendation, use when submitting recommendation events. */\n recIdStr?: string\n}\n\nexport type HandlerInput = void\n\nexport interface HandlerSuccess {\n encoding: 'application/json'\n body: OutputSchema\n headers?: { [key: string]: string }\n}\n\nexport interface HandlerError {\n status: number\n message?: string\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atproto/bsky",
3
- "version": "0.0.215",
3
+ "version": "0.0.216",
4
4
  "license": "MIT",
5
5
  "description": "Reference implementation of app.bsky App View (Bluesky API)",
6
6
  "keywords": [
@@ -56,10 +56,10 @@
56
56
  "@atproto/api": "^0.18.21",
57
57
  "@atproto/common": "^0.5.11",
58
58
  "@atproto/crypto": "^0.4.5",
59
- "@atproto/did": "^0.3.0",
60
59
  "@atproto/identity": "^0.4.11",
61
60
  "@atproto/lexicon": "^0.6.1",
62
61
  "@atproto/repo": "^0.8.12",
62
+ "@atproto/did": "^0.3.0",
63
63
  "@atproto/sync": "^0.1.39",
64
64
  "@atproto/syntax": "^0.4.3",
65
65
  "@atproto/xrpc-server": "^0.10.12"
@@ -75,6 +75,7 @@ const skeleton = async (input: SkeletonFnInput<Context, Params>) => {
75
75
  isFallback: !res.data.relativeToDid,
76
76
  suggestedDids: res.data.actors.map((a) => a.did),
77
77
  recId: res.data.recId,
78
+ recIdStr: res.data.recIdStr,
78
79
  headers: res.headers,
79
80
  }
80
81
  } else {
@@ -121,6 +122,7 @@ const presentation = (
121
122
  isFallback: skeleton.isFallback,
122
123
  suggestions,
123
124
  recId: skeleton.recId,
125
+ recIdStr: skeleton.recIdStr,
124
126
  headers,
125
127
  }
126
128
  }
@@ -141,5 +143,6 @@ type SkeletonState = {
141
143
  isFallback: boolean
142
144
  suggestedDids: string[]
143
145
  recId?: number
146
+ recIdStr?: string
144
147
  headers?: HeadersMap
145
148
  }
@@ -63,7 +63,7 @@ const skeletonFromDiscover = async (
63
63
  throw new InternalServerError('Suggestions agent not available')
64
64
 
65
65
  const res =
66
- await ctx.suggestionsAgent.app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton(
66
+ await ctx.suggestionsAgent.app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton(
67
67
  {
68
68
  limit: params.limit,
69
69
  viewer: params.hydrateCtx.viewer ?? undefined,
@@ -91,13 +91,13 @@ import * as AppBskyUnspeccedGetAgeAssuranceState from './types/app/bsky/unspecce
91
91
  import * as AppBskyUnspeccedGetConfig from './types/app/bsky/unspecced/getConfig.js'
92
92
  import * as AppBskyUnspeccedGetOnboardingSuggestedStarterPacks from './types/app/bsky/unspecced/getOnboardingSuggestedStarterPacks.js'
93
93
  import * as AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getOnboardingSuggestedStarterPacksSkeleton.js'
94
+ import * as AppBskyUnspeccedGetOnboardingSuggestedUsersSkeleton from './types/app/bsky/unspecced/getOnboardingSuggestedUsersSkeleton.js'
94
95
  import * as AppBskyUnspeccedGetPopularFeedGenerators from './types/app/bsky/unspecced/getPopularFeedGenerators.js'
95
96
  import * as AppBskyUnspeccedGetPostThreadOtherV2 from './types/app/bsky/unspecced/getPostThreadOtherV2.js'
96
97
  import * as AppBskyUnspeccedGetPostThreadV2 from './types/app/bsky/unspecced/getPostThreadV2.js'
97
98
  import * as AppBskyUnspeccedGetSuggestedFeeds from './types/app/bsky/unspecced/getSuggestedFeeds.js'
98
99
  import * as AppBskyUnspeccedGetSuggestedFeedsSkeleton from './types/app/bsky/unspecced/getSuggestedFeedsSkeleton.js'
99
100
  import * as AppBskyUnspeccedGetSuggestedOnboardingUsers from './types/app/bsky/unspecced/getSuggestedOnboardingUsers.js'
100
- import * as AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton from './types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton.js'
101
101
  import * as AppBskyUnspeccedGetSuggestedStarterPacks from './types/app/bsky/unspecced/getSuggestedStarterPacks.js'
102
102
  import * as AppBskyUnspeccedGetSuggestedStarterPacksSkeleton from './types/app/bsky/unspecced/getSuggestedStarterPacksSkeleton.js'
103
103
  import * as AppBskyUnspeccedGetSuggestedUsers from './types/app/bsky/unspecced/getSuggestedUsers.js'
@@ -1386,6 +1386,18 @@ export class AppBskyUnspeccedNS {
1386
1386
  return this._server.xrpc.method(nsid, cfg)
1387
1387
  }
1388
1388
 
1389
+ getOnboardingSuggestedUsersSkeleton<A extends Auth = void>(
1390
+ cfg: MethodConfigOrHandler<
1391
+ A,
1392
+ AppBskyUnspeccedGetOnboardingSuggestedUsersSkeleton.QueryParams,
1393
+ AppBskyUnspeccedGetOnboardingSuggestedUsersSkeleton.HandlerInput,
1394
+ AppBskyUnspeccedGetOnboardingSuggestedUsersSkeleton.HandlerOutput
1395
+ >,
1396
+ ) {
1397
+ const nsid = 'app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton' // @ts-ignore
1398
+ return this._server.xrpc.method(nsid, cfg)
1399
+ }
1400
+
1389
1401
  getPopularFeedGenerators<A extends Auth = void>(
1390
1402
  cfg: MethodConfigOrHandler<
1391
1403
  A,
@@ -1458,18 +1470,6 @@ export class AppBskyUnspeccedNS {
1458
1470
  return this._server.xrpc.method(nsid, cfg)
1459
1471
  }
1460
1472
 
1461
- getSuggestedOnboardingUsersSkeleton<A extends Auth = void>(
1462
- cfg: MethodConfigOrHandler<
1463
- A,
1464
- AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton.QueryParams,
1465
- AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton.HandlerInput,
1466
- AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton.HandlerOutput
1467
- >,
1468
- ) {
1469
- const nsid = 'app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton' // @ts-ignore
1470
- return this._server.xrpc.method(nsid, cfg)
1471
- }
1472
-
1473
1473
  getSuggestedStarterPacks<A extends Auth = void>(
1474
1474
  cfg: MethodConfigOrHandler<
1475
1475
  A,
@@ -6243,6 +6243,10 @@ export const schemaDict = {
6243
6243
  },
6244
6244
  recId: {
6245
6245
  type: 'integer',
6246
+ description: 'DEPRECATED: use recIdStr instead.',
6247
+ },
6248
+ recIdStr: {
6249
+ type: 'string',
6246
6250
  description:
6247
6251
  'Snowflake for this recommendation, use when submitting recommendation events.',
6248
6252
  },
@@ -8056,6 +8060,59 @@ export const schemaDict = {
8056
8060
  },
8057
8061
  },
8058
8062
  },
8063
+ AppBskyUnspeccedGetOnboardingSuggestedUsersSkeleton: {
8064
+ lexicon: 1,
8065
+ id: 'app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton',
8066
+ defs: {
8067
+ main: {
8068
+ type: 'query',
8069
+ description:
8070
+ 'Get a skeleton of suggested users for onboarding. Intended to be called and hydrated by app.bsky.unspecced.getSuggestedOnboardingUsers',
8071
+ parameters: {
8072
+ type: 'params',
8073
+ properties: {
8074
+ viewer: {
8075
+ type: 'string',
8076
+ format: 'did',
8077
+ description:
8078
+ 'DID of the account making the request (not included for public/unauthenticated queries).',
8079
+ },
8080
+ category: {
8081
+ type: 'string',
8082
+ description: 'Category of users to get suggestions for.',
8083
+ },
8084
+ limit: {
8085
+ type: 'integer',
8086
+ minimum: 1,
8087
+ maximum: 50,
8088
+ default: 25,
8089
+ },
8090
+ },
8091
+ },
8092
+ output: {
8093
+ encoding: 'application/json',
8094
+ schema: {
8095
+ type: 'object',
8096
+ required: ['dids'],
8097
+ properties: {
8098
+ dids: {
8099
+ type: 'array',
8100
+ items: {
8101
+ type: 'string',
8102
+ format: 'did',
8103
+ },
8104
+ },
8105
+ recId: {
8106
+ type: 'string',
8107
+ description:
8108
+ 'Snowflake for this recommendation, use when submitting recommendation events.',
8109
+ },
8110
+ },
8111
+ },
8112
+ },
8113
+ },
8114
+ },
8115
+ },
8059
8116
  AppBskyUnspeccedGetPopularFeedGenerators: {
8060
8117
  lexicon: 1,
8061
8118
  id: 'app.bsky.unspecced.getPopularFeedGenerators',
@@ -8390,59 +8447,6 @@ export const schemaDict = {
8390
8447
  },
8391
8448
  },
8392
8449
  },
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
- },
8446
8450
  AppBskyUnspeccedGetSuggestedStarterPacks: {
8447
8451
  lexicon: 1,
8448
8452
  id: 'app.bsky.unspecced.getSuggestedStarterPacks',
@@ -8681,6 +8685,10 @@ export const schemaDict = {
8681
8685
  },
8682
8686
  recId: {
8683
8687
  type: 'integer',
8688
+ description: 'DEPRECATED: use recIdStr instead.',
8689
+ },
8690
+ recIdStr: {
8691
+ type: 'string',
8684
8692
  description:
8685
8693
  'Snowflake for this recommendation, use when submitting recommendation events.',
8686
8694
  },
@@ -15666,6 +15674,8 @@ export const ids = {
15666
15674
  'app.bsky.unspecced.getOnboardingSuggestedStarterPacks',
15667
15675
  AppBskyUnspeccedGetOnboardingSuggestedStarterPacksSkeleton:
15668
15676
  'app.bsky.unspecced.getOnboardingSuggestedStarterPacksSkeleton',
15677
+ AppBskyUnspeccedGetOnboardingSuggestedUsersSkeleton:
15678
+ 'app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton',
15669
15679
  AppBskyUnspeccedGetPopularFeedGenerators:
15670
15680
  'app.bsky.unspecced.getPopularFeedGenerators',
15671
15681
  AppBskyUnspeccedGetPostThreadOtherV2:
@@ -15676,8 +15686,6 @@ export const ids = {
15676
15686
  'app.bsky.unspecced.getSuggestedFeedsSkeleton',
15677
15687
  AppBskyUnspeccedGetSuggestedOnboardingUsers:
15678
15688
  'app.bsky.unspecced.getSuggestedOnboardingUsers',
15679
- AppBskyUnspeccedGetSuggestedOnboardingUsersSkeleton:
15680
- 'app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton',
15681
15689
  AppBskyUnspeccedGetSuggestedStarterPacks:
15682
15690
  'app.bsky.unspecced.getSuggestedStarterPacks',
15683
15691
  AppBskyUnspeccedGetSuggestedStarterPacksSkeleton:
@@ -24,8 +24,10 @@ export interface OutputSchema {
24
24
  suggestions: AppBskyActorDefs.ProfileView[]
25
25
  /** If true, response has fallen-back to generic results, and is not scoped using relativeToDid */
26
26
  isFallback?: boolean
27
- /** Snowflake for this recommendation, use when submitting recommendation events. */
27
+ /** DEPRECATED: use recIdStr instead. */
28
28
  recId?: number
29
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
30
+ recIdStr?: string
29
31
  }
30
32
 
31
33
  export type HandlerInput = void
@@ -12,7 +12,7 @@ import {
12
12
 
13
13
  const is$typed = _is$typed,
14
14
  validate = _validate
15
- const id = 'app.bsky.unspecced.getSuggestedOnboardingUsersSkeleton'
15
+ const id = 'app.bsky.unspecced.getOnboardingSuggestedUsersSkeleton'
16
16
 
17
17
  export type QueryParams = {
18
18
  /** DID of the account making the request (not included for public/unauthenticated queries). */
@@ -30,8 +30,10 @@ export interface OutputSchema {
30
30
  actors: AppBskyUnspeccedDefs.SkeletonSearchActor[]
31
31
  /** DID of the account these suggestions are relative to. If this is returned undefined, suggestions are based on the viewer. */
32
32
  relativeToDid?: string
33
- /** Snowflake for this recommendation, use when submitting recommendation events. */
33
+ /** DEPRECATED: use recIdStr instead. */
34
34
  recId?: number
35
+ /** Snowflake for this recommendation, use when submitting recommendation events. */
36
+ recIdStr?: string
35
37
  }
36
38
 
37
39
  export type HandlerInput = void
@@ -5,7 +5,7 @@ import express, { Application } from 'express'
5
5
  import AtpAgent from '@atproto/api'
6
6
  import { SeedClient, TestNetwork } from '@atproto/dev-env'
7
7
  import { ids } from '../../src/lexicon/lexicons'
8
- import { OutputSchema } from '../../src/lexicon/types/app/bsky/unspecced/getSuggestedOnboardingUsersSkeleton'
8
+ import { OutputSchema } from '../../src/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton'
9
9
 
10
10
  type User = {
11
11
  id: string