@atproto/ozone 0.2.6 → 0.2.8

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 (34) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/dist/lexicon/index.d.ts +2 -0
  3. package/dist/lexicon/index.d.ts.map +1 -1
  4. package/dist/lexicon/index.js +4 -0
  5. package/dist/lexicon/index.js.map +1 -1
  6. package/dist/lexicon/lexicons.d.ts +630 -152
  7. package/dist/lexicon/lexicons.d.ts.map +1 -1
  8. package/dist/lexicon/lexicons.js +318 -75
  9. package/dist/lexicon/lexicons.js.map +1 -1
  10. package/dist/lexicon/types/app/bsky/ageassurance/defs.d.ts +2 -0
  11. package/dist/lexicon/types/app/bsky/ageassurance/defs.d.ts.map +1 -1
  12. package/dist/lexicon/types/app/bsky/ageassurance/defs.js.map +1 -1
  13. package/dist/lexicon/types/app/bsky/feed/searchPostsV2.d.ts +87 -0
  14. package/dist/lexicon/types/app/bsky/feed/searchPostsV2.d.ts.map +1 -0
  15. package/dist/lexicon/types/app/bsky/feed/searchPostsV2.js +5 -0
  16. package/dist/lexicon/types/app/bsky/feed/searchPostsV2.js.map +1 -0
  17. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts +1 -1
  18. package/dist/lexicon/types/chat/bsky/actor/declaration.d.ts.map +1 -1
  19. package/dist/lexicon/types/chat/bsky/actor/declaration.js.map +1 -1
  20. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts +2 -3
  21. package/dist/lexicon/types/chat/bsky/actor/defs.d.ts.map +1 -1
  22. package/dist/lexicon/types/chat/bsky/actor/defs.js.map +1 -1
  23. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts +39 -36
  24. package/dist/lexicon/types/chat/bsky/convo/defs.d.ts.map +1 -1
  25. package/dist/lexicon/types/chat/bsky/convo/defs.js +7 -0
  26. package/dist/lexicon/types/chat/bsky/convo/defs.js.map +1 -1
  27. package/dist/lexicon/types/chat/bsky/convo/getUnreadCounts.d.ts +2 -2
  28. package/dist/lexicon/types/chat/bsky/convo/getUnreadCounts.d.ts.map +1 -1
  29. package/dist/lexicon/types/chat/bsky/convo/getUnreadCounts.js.map +1 -1
  30. package/dist/lexicon/types/chat/bsky/moderation/defs.d.ts +3 -3
  31. package/dist/lexicon/types/chat/bsky/moderation/defs.d.ts.map +1 -1
  32. package/dist/lexicon/types/chat/bsky/moderation/defs.js.map +1 -1
  33. package/package.json +13 -13
  34. package/tsconfig.build.tsbuildinfo +1 -1
@@ -41,6 +41,8 @@ export interface ConfigRegion {
41
41
  regionCode?: string;
42
42
  /** The minimum age (as a whole integer) required to use Bluesky in this region. */
43
43
  minAccessAge: number;
44
+ /** Verification methods permitted in this region in addition to the third-party (KWS) flow, which is always supported. `device` permits using the native on-device age APIs (e.g. Apple Declared Age Range, Google Play Age Signals). */
45
+ additionalVerificationMethods?: ('device' | (string & {}))[];
44
46
  /** The ordered list of Age Assurance rules that apply to this region. Rules should be applied in order, and the first matching rule determines the access level granted. The rules array should always include a default rule as the last item. */
45
47
  rules: ($Typed<ConfigRegionRuleDefault> | $Typed<ConfigRegionRuleIfDeclaredOverAge> | $Typed<ConfigRegionRuleIfDeclaredUnderAge> | $Typed<ConfigRegionRuleIfAssuredOverAge> | $Typed<ConfigRegionRuleIfAssuredUnderAge> | $Typed<ConfigRegionRuleIfAccountNewerThan> | $Typed<ConfigRegionRuleIfAccountOlderThan> | {
46
48
  $type: string;
@@ -1 +1 @@
1
- {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/ageassurance/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAM5B,4EAA4E;AAC5E,MAAM,MAAM,MAAM,GAAG,SAAS,GAAG,MAAM,GAAG,MAAM,GAAG,MAAM,G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OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,qCAAqC,CACtC,CAAA;AACH,CAAC;AAUD,MAAM,sCAAsC,GAC1C,oCAAoC,CAAA;AAEtC,MAAM,UAAU,oCAAoC,CAAI,CAAI;IAC1D,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,sCAAsC,CAAC,CAAA;AAChE,CAAC;AAED,MAAM,UAAU,0CAA0C,CAAI,CAAI;IAChE,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,sCAAsC,CACvC,CAAA;AACH,CAAC;AAUD,MAAM,sCAAsC,GAC1C,oCAAoC,CAAA;AAEtC,MAAM,UAAU,oCAAoC,CAAI,CAAI;IAC1D,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,sCAAsC,CAAC,CAAA;AAChE,CAAC;AAED,MAAM,UAAU,0CAA0C,CAAI,CAAI;IAChE,OAAO,QAAQ,CACb,CAAC,EACD,EAAE,EACF,sCAAsC,CACvC,CAAA;AACH,CAAC;AA6BD,MAAM,SAAS,GAAG,OAAO,CAAA;AAEzB,MAAM,UAAU,OAAO,CAAI,CAAI;IAC7B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AACnC,CAAC;AAED,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAY,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AAC9C,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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.ageassurance.defs'\n\n/** The access level granted based on Age Assurance data we've processed. */\nexport type Access = 'unknown' | 'none' | 'safe' | 'full' | (string & {})\n/** The status of the Age Assurance process. */\nexport type Status =\n | 'unknown'\n | 'pending'\n | 'assured'\n | 'blocked'\n | (string & {})\n\n/** The user's computed Age Assurance state. */\nexport interface State {\n $type?: 'app.bsky.ageassurance.defs#state'\n /** The timestamp when this state was last updated. */\n lastInitiatedAt?: string\n status: Status\n access: Access\n}\n\nconst hashState = 'state'\n\nexport function isState<V>(v: V) {\n return is$typed(v, id, hashState)\n}\n\nexport function validateState<V>(v: V) {\n return validate<State & V>(v, id, hashState)\n}\n\n/** Additional metadata needed to compute Age Assurance state client-side. */\nexport interface StateMetadata {\n $type?: 'app.bsky.ageassurance.defs#stateMetadata'\n /** The account creation timestamp. */\n accountCreatedAt?: string\n}\n\nconst hashStateMetadata = 'stateMetadata'\n\nexport function isStateMetadata<V>(v: V) {\n return is$typed(v, id, hashStateMetadata)\n}\n\nexport function validateStateMetadata<V>(v: V) {\n return validate<StateMetadata & V>(v, id, hashStateMetadata)\n}\n\nexport interface Config {\n $type?: 'app.bsky.ageassurance.defs#config'\n /** The per-region Age Assurance configuration. */\n regions: ConfigRegion[]\n}\n\nconst hashConfig = 'config'\n\nexport function isConfig<V>(v: V) {\n return is$typed(v, id, hashConfig)\n}\n\nexport function validateConfig<V>(v: V) {\n return validate<Config & V>(v, id, hashConfig)\n}\n\n/** The Age Assurance configuration for a specific region. */\nexport interface ConfigRegion {\n $type?: 'app.bsky.ageassurance.defs#configRegion'\n /** The ISO 3166-1 alpha-2 country code this configuration applies to. */\n countryCode: string\n /** The ISO 3166-2 region code this configuration applies to. If omitted, the configuration applies to the entire country. */\n regionCode?: string\n /** The minimum age (as a whole integer) required to use Bluesky in this region. */\n minAccessAge: number\n /** The ordered list of Age Assurance rules that apply to this region. Rules should be applied in order, and the first matching rule determines the access level granted. The rules array should always include a default rule as the last item. */\n rules: (\n | $Typed<ConfigRegionRuleDefault>\n | $Typed<ConfigRegionRuleIfDeclaredOverAge>\n | $Typed<ConfigRegionRuleIfDeclaredUnderAge>\n | $Typed<ConfigRegionRuleIfAssuredOverAge>\n | $Typed<ConfigRegionRuleIfAssuredUnderAge>\n | $Typed<ConfigRegionRuleIfAccountNewerThan>\n | $Typed<ConfigRegionRuleIfAccountOlderThan>\n | { $type: string }\n )[]\n}\n\nconst hashConfigRegion = 'configRegion'\n\nexport function isConfigRegion<V>(v: V) {\n return is$typed(v, id, hashConfigRegion)\n}\n\nexport function validateConfigRegion<V>(v: V) {\n return validate<ConfigRegion & V>(v, id, hashConfigRegion)\n}\n\n/** Age Assurance rule that applies by default. */\nexport interface ConfigRegionRuleDefault {\n $type?: 'app.bsky.ageassurance.defs#configRegionRuleDefault'\n access: Access\n}\n\nconst hashConfigRegionRuleDefault = 'configRegionRuleDefault'\n\nexport function isConfigRegionRuleDefault<V>(v: V) {\n return is$typed(v, id, hashConfigRegionRuleDefault)\n}\n\nexport function validateConfigRegionRuleDefault<V>(v: V) {\n return validate<ConfigRegionRuleDefault & V>(\n v,\n id,\n hashConfigRegionRuleDefault,\n )\n}\n\n/** Age Assurance rule that applies if the user has declared themselves equal-to or over a certain age. */\nexport interface ConfigRegionRuleIfDeclaredOverAge {\n $type?: 'app.bsky.ageassurance.defs#configRegionRuleIfDeclaredOverAge'\n /** The age threshold as a whole integer. */\n age: number\n access: Access\n}\n\nconst hashConfigRegionRuleIfDeclaredOverAge =\n 'configRegionRuleIfDeclaredOverAge'\n\nexport function isConfigRegionRuleIfDeclaredOverAge<V>(v: V) {\n return is$typed(v, id, hashConfigRegionRuleIfDeclaredOverAge)\n}\n\nexport function validateConfigRegionRuleIfDeclaredOverAge<V>(v: V) {\n return validate<ConfigRegionRuleIfDeclaredOverAge & V>(\n v,\n id,\n hashConfigRegionRuleIfDeclaredOverAge,\n )\n}\n\n/** Age Assurance rule that applies if the user has declared themselves under a certain age. */\nexport interface ConfigRegionRuleIfDeclaredUnderAge {\n $type?: 'app.bsky.ageassurance.defs#configRegionRuleIfDeclaredUnderAge'\n /** The age threshold as a whole integer. */\n age: number\n access: Access\n}\n\nconst hashConfigRegionRuleIfDeclaredUnderAge =\n 'configRegionRuleIfDeclaredUnderAge'\n\nexport function isConfigRegionRuleIfDeclaredUnderAge<V>(v: V) {\n return is$typed(v, id, hashConfigRegionRuleIfDeclaredUnderAge)\n}\n\nexport function validateConfigRegionRuleIfDeclaredUnderAge<V>(v: V) {\n return validate<ConfigRegionRuleIfDeclaredUnderAge & V>(\n v,\n id,\n hashConfigRegionRuleIfDeclaredUnderAge,\n )\n}\n\n/** Age Assurance rule that applies if the user has been assured to be equal-to or over a certain age. */\nexport interface ConfigRegionRuleIfAssuredOverAge {\n $type?: 'app.bsky.ageassurance.defs#configRegionRuleIfAssuredOverAge'\n /** The age threshold as a whole integer. */\n age: number\n access: Access\n}\n\nconst hashConfigRegionRuleIfAssuredOverAge = 'configRegionRuleIfAssuredOverAge'\n\nexport function isConfigRegionRuleIfAssuredOverAge<V>(v: V) {\n return is$typed(v, id, hashConfigRegionRuleIfAssuredOverAge)\n}\n\nexport function validateConfigRegionRuleIfAssuredOverAge<V>(v: V) {\n return validate<ConfigRegionRuleIfAssuredOverAge & V>(\n v,\n id,\n hashConfigRegionRuleIfAssuredOverAge,\n )\n}\n\n/** Age Assurance rule that applies if the user has been assured to be under a certain age. */\nexport interface ConfigRegionRuleIfAssuredUnderAge {\n $type?: 'app.bsky.ageassurance.defs#configRegionRuleIfAssuredUnderAge'\n /** The age threshold as a whole integer. */\n age: number\n access: Access\n}\n\nconst hashConfigRegionRuleIfAssuredUnderAge =\n 'configRegionRuleIfAssuredUnderAge'\n\nexport function isConfigRegionRuleIfAssuredUnderAge<V>(v: V) {\n return is$typed(v, id, hashConfigRegionRuleIfAssuredUnderAge)\n}\n\nexport function validateConfigRegionRuleIfAssuredUnderAge<V>(v: V) {\n return validate<ConfigRegionRuleIfAssuredUnderAge & V>(\n v,\n id,\n hashConfigRegionRuleIfAssuredUnderAge,\n )\n}\n\n/** Age Assurance rule that applies if the account is equal-to or newer than a certain date. */\nexport interface ConfigRegionRuleIfAccountNewerThan {\n $type?: 'app.bsky.ageassurance.defs#configRegionRuleIfAccountNewerThan'\n /** The date threshold as a datetime string. */\n date: string\n access: Access\n}\n\nconst hashConfigRegionRuleIfAccountNewerThan =\n 'configRegionRuleIfAccountNewerThan'\n\nexport function isConfigRegionRuleIfAccountNewerThan<V>(v: V) {\n return is$typed(v, id, hashConfigRegionRuleIfAccountNewerThan)\n}\n\nexport function validateConfigRegionRuleIfAccountNewerThan<V>(v: V) {\n return validate<ConfigRegionRuleIfAccountNewerThan & V>(\n v,\n id,\n hashConfigRegionRuleIfAccountNewerThan,\n )\n}\n\n/** Age Assurance rule that applies if the account is older than a certain date. */\nexport interface ConfigRegionRuleIfAccountOlderThan {\n $type?: 'app.bsky.ageassurance.defs#configRegionRuleIfAccountOlderThan'\n /** The date threshold as a datetime string. */\n date: string\n access: Access\n}\n\nconst hashConfigRegionRuleIfAccountOlderThan =\n 'configRegionRuleIfAccountOlderThan'\n\nexport function isConfigRegionRuleIfAccountOlderThan<V>(v: V) {\n return is$typed(v, id, hashConfigRegionRuleIfAccountOlderThan)\n}\n\nexport function validateConfigRegionRuleIfAccountOlderThan<V>(v: V) {\n return validate<ConfigRegionRuleIfAccountOlderThan & V>(\n v,\n id,\n hashConfigRegionRuleIfAccountOlderThan,\n )\n}\n\n/** Object used to store Age Assurance data in stash. */\nexport interface Event {\n $type?: 'app.bsky.ageassurance.defs#event'\n /** The date and time of this write operation. */\n createdAt: string\n /** The unique identifier for this instance of the Age Assurance flow, in UUID format. */\n attemptId: string\n /** The status of the Age Assurance process. */\n status: 'unknown' | 'pending' | 'assured' | 'blocked' | (string & {})\n /** The access level granted based on Age Assurance data we've processed. */\n access: 'unknown' | 'none' | 'safe' | 'full' | (string & {})\n /** The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow. */\n countryCode: string\n /** The ISO 3166-2 region code provided when beginning the Age Assurance flow. */\n regionCode?: string\n /** The email used for Age Assurance. */\n email?: string\n /** The IP address used when initiating the Age Assurance flow. */\n initIp?: string\n /** The user agent used when initiating the Age Assurance flow. */\n initUa?: string\n /** The IP address used when completing the Age Assurance flow. */\n completeIp?: string\n /** The user agent used when completing the Age Assurance flow. */\n completeUa?: string\n}\n\nconst hashEvent = 'event'\n\nexport function isEvent<V>(v: V) {\n return is$typed(v, id, hashEvent)\n}\n\nexport function validateEvent<V>(v: V) {\n return validate<Event & V>(v, id, hashEvent)\n}\n"]}
1
+ {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/ageassurance/defs.ts"],"names":[],"mappings":"AAKA,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,4BAA4B,CAAA;AAqBvC,MAAM,SAAS,GAAG,OAAO,CAAA;AAEzB,MAAM,UAAU,OAAO,CAAI,CAAI;IAC7B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AACnC,CAAC;AAED,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAY,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AAC9C,CAAC;AASD,MAAM,iBAAiB,GAAG,eAAe,CAAA;AAEzC,MAAM,UAAU,eAAe,CAAI,CAAI;IACrC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,iBAAiB,CAAC,CAAA;AAC3C,CAAC;AAED,MAAM,UAAU,qBAAqB,CAAI,CAAI;IAC3C,OAAO,QAAQ,CAAoB,CAAC,EAAE,EAAE,EAAE,iBAAiB,CAAC,CAAA;AAC9D,CAAC;AAQD,MAAM,UAAU,GAAG,QAAQ,CAAA;AAE3B,MAAM,UAAU,QAAQ,CAAI,CAAI;IAC9B,OAAO,QAAQ,CAA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AO,CAAI,CAAI;IAC7B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AACnC,CAAC;AAED,MAAM,UAAU,aAAa,CAAI,CAAI;IACnC,OAAO,QAAQ,CAAY,CAAC,EAAE,EAAE,EAAE,SAAS,CAAC,CAAA;AAC9C,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'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.ageassurance.defs'\n\n/** The access level granted based on Age Assurance data we've processed. */\nexport type Access = 'unknown' | 'none' | 'safe' | 'full' | (string & {})\n/** The status of the Age Assurance process. */\nexport type Status =\n | 'unknown'\n | 'pending'\n | 'assured'\n | 'blocked'\n | (string & {})\n\n/** The user's computed Age Assurance state. */\nexport interface State {\n $type?: 'app.bsky.ageassurance.defs#state'\n /** The timestamp when this state was last updated. */\n lastInitiatedAt?: string\n status: Status\n access: Access\n}\n\nconst hashState = 'state'\n\nexport function isState<V>(v: V) {\n return is$typed(v, id, hashState)\n}\n\nexport function validateState<V>(v: V) {\n return validate<State & V>(v, id, hashState)\n}\n\n/** Additional metadata needed to compute Age Assurance state client-side. */\nexport interface StateMetadata {\n $type?: 'app.bsky.ageassurance.defs#stateMetadata'\n /** The account creation timestamp. */\n accountCreatedAt?: string\n}\n\nconst hashStateMetadata = 'stateMetadata'\n\nexport function isStateMetadata<V>(v: V) {\n return is$typed(v, id, hashStateMetadata)\n}\n\nexport function validateStateMetadata<V>(v: V) {\n return validate<StateMetadata & V>(v, id, hashStateMetadata)\n}\n\nexport interface Config {\n $type?: 'app.bsky.ageassurance.defs#config'\n /** The per-region Age Assurance configuration. */\n regions: ConfigRegion[]\n}\n\nconst hashConfig = 'config'\n\nexport function isConfig<V>(v: V) {\n return is$typed(v, id, hashConfig)\n}\n\nexport function validateConfig<V>(v: V) {\n return validate<Config & V>(v, id, hashConfig)\n}\n\n/** The Age Assurance configuration for a specific region. */\nexport interface ConfigRegion {\n $type?: 'app.bsky.ageassurance.defs#configRegion'\n /** The ISO 3166-1 alpha-2 country code this configuration applies to. */\n countryCode: string\n /** The ISO 3166-2 region code this configuration applies to. If omitted, the configuration applies to the entire country. */\n regionCode?: string\n /** The minimum age (as a whole integer) required to use Bluesky in this region. */\n minAccessAge: number\n /** Verification methods permitted in this region in addition to the third-party (KWS) flow, which is always supported. `device` permits using the native on-device age APIs (e.g. Apple Declared Age Range, Google Play Age Signals). */\n additionalVerificationMethods?: ('device' | (string & {}))[]\n /** The ordered list of Age Assurance rules that apply to this region. Rules should be applied in order, and the first matching rule determines the access level granted. The rules array should always include a default rule as the last item. */\n rules: (\n | $Typed<ConfigRegionRuleDefault>\n | $Typed<ConfigRegionRuleIfDeclaredOverAge>\n | $Typed<ConfigRegionRuleIfDeclaredUnderAge>\n | $Typed<ConfigRegionRuleIfAssuredOverAge>\n | $Typed<ConfigRegionRuleIfAssuredUnderAge>\n | $Typed<ConfigRegionRuleIfAccountNewerThan>\n | $Typed<ConfigRegionRuleIfAccountOlderThan>\n | { $type: string }\n )[]\n}\n\nconst hashConfigRegion = 'configRegion'\n\nexport function isConfigRegion<V>(v: V) {\n return is$typed(v, id, hashConfigRegion)\n}\n\nexport function validateConfigRegion<V>(v: V) {\n return validate<ConfigRegion & V>(v, id, hashConfigRegion)\n}\n\n/** Age Assurance rule that applies by default. */\nexport interface ConfigRegionRuleDefault {\n $type?: 'app.bsky.ageassurance.defs#configRegionRuleDefault'\n access: Access\n}\n\nconst hashConfigRegionRuleDefault = 'configRegionRuleDefault'\n\nexport function isConfigRegionRuleDefault<V>(v: V) {\n return is$typed(v, id, hashConfigRegionRuleDefault)\n}\n\nexport function validateConfigRegionRuleDefault<V>(v: V) {\n return validate<ConfigRegionRuleDefault & V>(\n v,\n id,\n hashConfigRegionRuleDefault,\n )\n}\n\n/** Age Assurance rule that applies if the user has declared themselves equal-to or over a certain age. */\nexport interface ConfigRegionRuleIfDeclaredOverAge {\n $type?: 'app.bsky.ageassurance.defs#configRegionRuleIfDeclaredOverAge'\n /** The age threshold as a whole integer. */\n age: number\n access: Access\n}\n\nconst hashConfigRegionRuleIfDeclaredOverAge =\n 'configRegionRuleIfDeclaredOverAge'\n\nexport function isConfigRegionRuleIfDeclaredOverAge<V>(v: V) {\n return is$typed(v, id, hashConfigRegionRuleIfDeclaredOverAge)\n}\n\nexport function validateConfigRegionRuleIfDeclaredOverAge<V>(v: V) {\n return validate<ConfigRegionRuleIfDeclaredOverAge & V>(\n v,\n id,\n hashConfigRegionRuleIfDeclaredOverAge,\n )\n}\n\n/** Age Assurance rule that applies if the user has declared themselves under a certain age. */\nexport interface ConfigRegionRuleIfDeclaredUnderAge {\n $type?: 'app.bsky.ageassurance.defs#configRegionRuleIfDeclaredUnderAge'\n /** The age threshold as a whole integer. */\n age: number\n access: Access\n}\n\nconst hashConfigRegionRuleIfDeclaredUnderAge =\n 'configRegionRuleIfDeclaredUnderAge'\n\nexport function isConfigRegionRuleIfDeclaredUnderAge<V>(v: V) {\n return is$typed(v, id, hashConfigRegionRuleIfDeclaredUnderAge)\n}\n\nexport function validateConfigRegionRuleIfDeclaredUnderAge<V>(v: V) {\n return validate<ConfigRegionRuleIfDeclaredUnderAge & V>(\n v,\n id,\n hashConfigRegionRuleIfDeclaredUnderAge,\n )\n}\n\n/** Age Assurance rule that applies if the user has been assured to be equal-to or over a certain age. */\nexport interface ConfigRegionRuleIfAssuredOverAge {\n $type?: 'app.bsky.ageassurance.defs#configRegionRuleIfAssuredOverAge'\n /** The age threshold as a whole integer. */\n age: number\n access: Access\n}\n\nconst hashConfigRegionRuleIfAssuredOverAge = 'configRegionRuleIfAssuredOverAge'\n\nexport function isConfigRegionRuleIfAssuredOverAge<V>(v: V) {\n return is$typed(v, id, hashConfigRegionRuleIfAssuredOverAge)\n}\n\nexport function validateConfigRegionRuleIfAssuredOverAge<V>(v: V) {\n return validate<ConfigRegionRuleIfAssuredOverAge & V>(\n v,\n id,\n hashConfigRegionRuleIfAssuredOverAge,\n )\n}\n\n/** Age Assurance rule that applies if the user has been assured to be under a certain age. */\nexport interface ConfigRegionRuleIfAssuredUnderAge {\n $type?: 'app.bsky.ageassurance.defs#configRegionRuleIfAssuredUnderAge'\n /** The age threshold as a whole integer. */\n age: number\n access: Access\n}\n\nconst hashConfigRegionRuleIfAssuredUnderAge =\n 'configRegionRuleIfAssuredUnderAge'\n\nexport function isConfigRegionRuleIfAssuredUnderAge<V>(v: V) {\n return is$typed(v, id, hashConfigRegionRuleIfAssuredUnderAge)\n}\n\nexport function validateConfigRegionRuleIfAssuredUnderAge<V>(v: V) {\n return validate<ConfigRegionRuleIfAssuredUnderAge & V>(\n v,\n id,\n hashConfigRegionRuleIfAssuredUnderAge,\n )\n}\n\n/** Age Assurance rule that applies if the account is equal-to or newer than a certain date. */\nexport interface ConfigRegionRuleIfAccountNewerThan {\n $type?: 'app.bsky.ageassurance.defs#configRegionRuleIfAccountNewerThan'\n /** The date threshold as a datetime string. */\n date: string\n access: Access\n}\n\nconst hashConfigRegionRuleIfAccountNewerThan =\n 'configRegionRuleIfAccountNewerThan'\n\nexport function isConfigRegionRuleIfAccountNewerThan<V>(v: V) {\n return is$typed(v, id, hashConfigRegionRuleIfAccountNewerThan)\n}\n\nexport function validateConfigRegionRuleIfAccountNewerThan<V>(v: V) {\n return validate<ConfigRegionRuleIfAccountNewerThan & V>(\n v,\n id,\n hashConfigRegionRuleIfAccountNewerThan,\n )\n}\n\n/** Age Assurance rule that applies if the account is older than a certain date. */\nexport interface ConfigRegionRuleIfAccountOlderThan {\n $type?: 'app.bsky.ageassurance.defs#configRegionRuleIfAccountOlderThan'\n /** The date threshold as a datetime string. */\n date: string\n access: Access\n}\n\nconst hashConfigRegionRuleIfAccountOlderThan =\n 'configRegionRuleIfAccountOlderThan'\n\nexport function isConfigRegionRuleIfAccountOlderThan<V>(v: V) {\n return is$typed(v, id, hashConfigRegionRuleIfAccountOlderThan)\n}\n\nexport function validateConfigRegionRuleIfAccountOlderThan<V>(v: V) {\n return validate<ConfigRegionRuleIfAccountOlderThan & V>(\n v,\n id,\n hashConfigRegionRuleIfAccountOlderThan,\n )\n}\n\n/** Object used to store Age Assurance data in stash. */\nexport interface Event {\n $type?: 'app.bsky.ageassurance.defs#event'\n /** The date and time of this write operation. */\n createdAt: string\n /** The unique identifier for this instance of the Age Assurance flow, in UUID format. */\n attemptId: string\n /** The status of the Age Assurance process. */\n status: 'unknown' | 'pending' | 'assured' | 'blocked' | (string & {})\n /** The access level granted based on Age Assurance data we've processed. */\n access: 'unknown' | 'none' | 'safe' | 'full' | (string & {})\n /** The ISO 3166-1 alpha-2 country code provided when beginning the Age Assurance flow. */\n countryCode: string\n /** The ISO 3166-2 region code provided when beginning the Age Assurance flow. */\n regionCode?: string\n /** The email used for Age Assurance. */\n email?: string\n /** The IP address used when initiating the Age Assurance flow. */\n initIp?: string\n /** The user agent used when initiating the Age Assurance flow. */\n initUa?: string\n /** The IP address used when completing the Age Assurance flow. */\n completeIp?: string\n /** The user agent used when completing the Age Assurance flow. */\n completeUa?: string\n}\n\nconst hashEvent = 'event'\n\nexport function isEvent<V>(v: V) {\n return is$typed(v, id, hashEvent)\n}\n\nexport function validateEvent<V>(v: V) {\n return validate<Event & V>(v, id, hashEvent)\n}\n"]}
@@ -0,0 +1,87 @@
1
+ import type * as AppBskyFeedDefs from './defs.js';
2
+ export type QueryParams = {
3
+ /** Optional pagination cursor. */
4
+ cursor?: string;
5
+ /** Maximum number of results to return. */
6
+ limit: number;
7
+ /** Search query string. A query or at least one filter is required. */
8
+ query?: string;
9
+ /** Ranking order for results. 'recent' sorts by recency; 'top' uses search ranking. */
10
+ sort?: 'recent' | 'top' | (string & {});
11
+ /** Include posts by any of these authors. Handles are resolved to DIDs before searching. */
12
+ authors?: string[];
13
+ /** Include posts that mention any of these accounts. Handles are resolved to DIDs before searching. */
14
+ mentions?: string[];
15
+ /** Include posts that link to any of these domains. */
16
+ domains?: string[];
17
+ /** Include posts that link to any of these URLs. */
18
+ urls?: string[];
19
+ /** Include posts that embed any of these AT URIs. */
20
+ embeddedAtUris?: string[];
21
+ /** Include posts tagged with any of these hashtags. Do not include the hash (#) prefix. */
22
+ hashtags?: string[];
23
+ /** Exclude posts by any of these authors. Handles are resolved to DIDs before searching. */
24
+ excludeAuthors?: string[];
25
+ /** Exclude posts that mention any of these accounts. Handles are resolved to DIDs before searching. */
26
+ excludeMentions?: string[];
27
+ /** Exclude posts that link to any of these domains. */
28
+ excludeDomains?: string[];
29
+ /** Exclude posts that link to any of these URLs. */
30
+ excludeUrls?: string[];
31
+ /** Exclude posts that embed any of these AT URIs. */
32
+ excludeEmbeddedAtUris?: string[];
33
+ /** Exclude posts tagged with any of these hashtags. Do not include the hash (#) prefix. */
34
+ excludeHashtags?: string[];
35
+ /** Include posts indexed at or after this timestamp. Can be a datetime, or just an ISO date (YYYY-MM-DD). */
36
+ since?: string;
37
+ /** Include posts indexed before this timestamp. Defaults to the current time. Can be a datetime, or just an ISO date (YYYY-MM-DD). */
38
+ until?: string;
39
+ /** Search the full index instead of the recent-post window. */
40
+ allTime?: boolean;
41
+ /** Include posts whose language matches any of these language codes. */
42
+ languages?: string[];
43
+ /** Exclude posts whose language matches any of these language codes. */
44
+ excludeLanguages?: string[];
45
+ /** Include only posts with media. */
46
+ hasMedia?: boolean;
47
+ /** Include only posts with video. */
48
+ hasVideo?: boolean;
49
+ /** Include only direct replies to this parent post URI. */
50
+ replyParentUri?: string;
51
+ /** Include only posts in the thread rooted at this post URI. */
52
+ threadRootUri?: string;
53
+ /** Exclude replies from results. Mutually exclusive with repliesOnly. */
54
+ excludeReplies?: boolean;
55
+ /** Include only replies. Mutually exclusive with excludeReplies. */
56
+ repliesOnly?: boolean;
57
+ /** Include only posts from accounts followed by the viewer. */
58
+ following?: boolean;
59
+ /** Language analyzer hint for the query text. If unset, the server auto-detects when possible. */
60
+ queryLanguage?: 'ja' | 'zh' | 'ko' | 'th' | 'ar' | (string & {});
61
+ };
62
+ export type InputSchema = undefined;
63
+ export interface OutputSchema {
64
+ /** Cursor for the next page of results. */
65
+ cursor?: string;
66
+ /** Estimated total number of matching hits. May be rounded or truncated. */
67
+ hitsTotal?: number;
68
+ /** Hydrated views of matching posts. */
69
+ posts: AppBskyFeedDefs.PostView[];
70
+ /** Query languages detected for CJK, Thai, or Arabic text. Empty or omitted for other scripts. */
71
+ detectedQueryLanguages?: ('ja' | 'zh' | 'ko' | 'th' | 'ar' | (string & {}))[];
72
+ }
73
+ export type HandlerInput = void;
74
+ export interface HandlerSuccess {
75
+ encoding: 'application/json';
76
+ body: OutputSchema;
77
+ headers?: {
78
+ [key: string]: string;
79
+ };
80
+ }
81
+ export interface HandlerError {
82
+ status: number;
83
+ message?: string;
84
+ error?: 'BadQueryString';
85
+ }
86
+ export type HandlerOutput = HandlerError | HandlerSuccess;
87
+ //# sourceMappingURL=searchPostsV2.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchPostsV2.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/searchPostsV2.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,eAAe,MAAM,WAAW,CAAA;AAMjD,MAAM,MAAM,WAAW,GAAG;IACxB,kCAAkC;IAClC,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,2CAA2C;IAC3C,KAAK,EAAE,MAAM,CAAA;IACb,uEAAuE;IACvE,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,uFAAuF;IACvF,IAAI,CAAC,EAAE,QAAQ,GAAG,KAAK,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IACvC,4FAA4F;IAC5F,OAAO,CAAC,EAAE,MAAM,EAAE,CAAA;IAClB,uGAAuG;IACvG,QAAQ,CAAC,EAAE,MAAM,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,aAAa,CAAC,EAAE,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CACjE,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,2CAA2C;IAC3C,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,wCAAwC;IACxC,KAAK,EAAE,eAAe,CAAC,QAAQ,EAAE,CAAA;IACjC,kGAAkG;IAClG,sBAAsB,CAAC,EAAE,CAAC,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,IAAI,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAC,EAAE,CAAA;CAC9E;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;IAChB,KAAK,CAAC,EAAE,gBAAgB,CAAA;CACzB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
@@ -0,0 +1,5 @@
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.feed.searchPostsV2';
5
+ //# sourceMappingURL=searchPostsV2.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"searchPostsV2.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/feed/searchPostsV2.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,MAAM,QAAQ,GAAG,SAAS,EACxB,QAAQ,GAAG,SAAS,CAAA;AACtB,MAAM,EAAE,GAAG,6BAA6B,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.js'\nimport {\n type $Typed,\n is$typed as _is$typed,\n type OmitKey,\n} from '../../../../util.js'\nimport type * as AppBskyFeedDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.feed.searchPostsV2'\n\nexport type QueryParams = {\n /** Optional pagination cursor. */\n cursor?: string\n /** Maximum number of results to return. */\n limit: number\n /** Search query string. A query or at least one filter is required. */\n query?: string\n /** Ranking order for results. 'recent' sorts by recency; 'top' uses search ranking. */\n sort?: 'recent' | 'top' | (string & {})\n /** Include posts by any of these authors. Handles are resolved to DIDs before searching. */\n authors?: string[]\n /** Include posts that mention any of these accounts. Handles are resolved to DIDs before searching. */\n mentions?: string[]\n /** Include posts that link to any of these domains. */\n domains?: string[]\n /** Include posts that link to any of these URLs. */\n urls?: string[]\n /** Include posts that embed any of these AT URIs. */\n embeddedAtUris?: string[]\n /** Include posts tagged with any of these hashtags. Do not include the hash (#) prefix. */\n hashtags?: string[]\n /** Exclude posts by any of these authors. Handles are resolved to DIDs before searching. */\n excludeAuthors?: string[]\n /** Exclude posts that mention any of these accounts. Handles are resolved to DIDs before searching. */\n excludeMentions?: string[]\n /** Exclude posts that link to any of these domains. */\n excludeDomains?: string[]\n /** Exclude posts that link to any of these URLs. */\n excludeUrls?: string[]\n /** Exclude posts that embed any of these AT URIs. */\n excludeEmbeddedAtUris?: string[]\n /** Exclude posts tagged with any of these hashtags. Do not include the hash (#) prefix. */\n excludeHashtags?: string[]\n /** Include posts indexed at or after this timestamp. Can be a datetime, or just an ISO date (YYYY-MM-DD). */\n since?: string\n /** Include posts indexed before this timestamp. Defaults to the current time. Can be a datetime, or just an ISO date (YYYY-MM-DD). */\n until?: string\n /** Search the full index instead of the recent-post window. */\n allTime?: boolean\n /** Include posts whose language matches any of these language codes. */\n languages?: string[]\n /** Exclude posts whose language matches any of these language codes. */\n excludeLanguages?: string[]\n /** Include only posts with media. */\n hasMedia?: boolean\n /** Include only posts with video. */\n hasVideo?: boolean\n /** Include only direct replies to this parent post URI. */\n replyParentUri?: string\n /** Include only posts in the thread rooted at this post URI. */\n threadRootUri?: string\n /** Exclude replies from results. Mutually exclusive with repliesOnly. */\n excludeReplies?: boolean\n /** Include only replies. Mutually exclusive with excludeReplies. */\n repliesOnly?: boolean\n /** Include only posts from accounts followed by the viewer. */\n following?: boolean\n /** Language analyzer hint for the query text. If unset, the server auto-detects when possible. */\n queryLanguage?: 'ja' | 'zh' | 'ko' | 'th' | 'ar' | (string & {})\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n /** Cursor for the next page of results. */\n cursor?: string\n /** Estimated total number of matching hits. May be rounded or truncated. */\n hitsTotal?: number\n /** Hydrated views of matching posts. */\n posts: AppBskyFeedDefs.PostView[]\n /** Query languages detected for CJK, Thai, or Arabic text. Empty or omitted for other scripts. */\n detectedQueryLanguages?: ('ja' | 'zh' | 'ko' | 'th' | 'ar' | (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 error?: 'BadQueryString'\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
@@ -5,7 +5,7 @@ import { type ValidationResult } from '@atproto/lexicon';
5
5
  export interface Main {
6
6
  $type: 'chat.bsky.actor.declaration';
7
7
  allowIncoming: 'all' | 'none' | 'following' | (string & {});
8
- /** [NOTE: This is under active development and should be considered unstable while this note is here]. Declaration about group chat invitation preferences for the record owner. */
8
+ /** Declaration about group chat invitation preferences for the record owner. */
9
9
  allowGroupInvites?: 'all' | 'none' | 'following' | (string & {});
10
10
  [k: string]: unknown;
11
11
  }
@@ -1 +1 @@
1
- {"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/actor/declaration.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,6BAA6B,CAAA;IACpC,aAAa,EAAE,KAAK,GAAG,MAAM,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC3D,oLAAoL;IACpL,iBAAiB,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAChE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6FAE7B;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"}
1
+ {"version":3,"file":"declaration.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/actor/declaration.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAajE,MAAM,WAAW,IAAI;IACnB,KAAK,EAAE,6BAA6B,CAAA;IACpC,aAAa,EAAE,KAAK,GAAG,MAAM,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAC3D,gFAAgF;IAChF,iBAAiB,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,WAAW,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;IAChE,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CACrB;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,6FAE7B;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"}
@@ -1 +1 @@
1
- {"version":3,"file":"declaration.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/actor/declaration.ts"],"names":[],"mappings":"AAKA,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,6BAA6B,CAAA;AAUxC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,MAAM,UAAU,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC;AAED,OAAO,EAEL,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,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.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.declaration'\n\nexport interface Main {\n $type: 'chat.bsky.actor.declaration'\n allowIncoming: 'all' | 'none' | 'following' | (string & {})\n /** [NOTE: This is under active development and should be considered unstable while this note is here]. Declaration about group chat invitation preferences for the record owner. */\n allowGroupInvites?: 'all' | 'none' | 'following' | (string & {})\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"]}
1
+ {"version":3,"file":"declaration.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/actor/declaration.ts"],"names":[],"mappings":"AAKA,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,6BAA6B,CAAA;AAUxC,MAAM,QAAQ,GAAG,MAAM,CAAA;AAEvB,MAAM,UAAU,MAAM,CAAI,CAAI;IAC5B,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,QAAQ,CAAC,CAAA;AAClC,CAAC;AAED,MAAM,UAAU,YAAY,CAAI,CAAI;IAClC,OAAO,QAAQ,CAAW,CAAC,EAAE,EAAE,EAAE,QAAQ,EAAE,IAAI,CAAC,CAAA;AAClD,CAAC;AAED,OAAO,EAEL,MAAM,IAAI,QAAQ,EAClB,YAAY,IAAI,cAAc,GAC/B,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.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.declaration'\n\nexport interface Main {\n $type: 'chat.bsky.actor.declaration'\n allowIncoming: 'all' | 'none' | 'following' | (string & {})\n /** Declaration about group chat invitation preferences for the record owner. */\n allowGroupInvites?: 'all' | 'none' | 'following' | (string & {})\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"]}
@@ -25,13 +25,12 @@ export interface ProfileViewBasic {
25
25
  }
26
26
  export declare function isProfileViewBasic<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "chat.bsky.actor.defs", "profileViewBasic">;
27
27
  export declare function validateProfileViewBasic<V>(v: V): ValidationResult<ProfileViewBasic & V>;
28
- /** [NOTE: This is under active development and should be considered unstable while this note is here]. */
29
28
  export interface DirectConvoMember {
30
29
  $type?: 'chat.bsky.actor.defs#directConvoMember';
31
30
  }
32
31
  export declare function isDirectConvoMember<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "chat.bsky.actor.defs", "directConvoMember">;
33
32
  export declare function validateDirectConvoMember<V>(v: V): ValidationResult<DirectConvoMember & V>;
34
- /** [NOTE: This is under active development and should be considered unstable while this note is here]. A current group convo member. */
33
+ /** A current group convo member. */
35
34
  export interface GroupConvoMember {
36
35
  $type?: 'chat.bsky.actor.defs#groupConvoMember';
37
36
  addedBy?: ProfileViewBasic;
@@ -39,7 +38,7 @@ export interface GroupConvoMember {
39
38
  }
40
39
  export declare function isGroupConvoMember<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "chat.bsky.actor.defs", "groupConvoMember">;
41
40
  export declare function validateGroupConvoMember<V>(v: V): ValidationResult<GroupConvoMember & V>;
42
- /** [NOTE: This is under active development and should be considered unstable while this note is here]. A past group convo member. */
41
+ /** A past group convo member. */
43
42
  export interface PastGroupConvoMember {
44
43
  $type?: 'chat.bsky.actor.defs#pastGroupConvoMember';
45
44
  }
@@ -1 +1 @@
1
- {"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/actor/defs.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAW,MAAM,kBAAkB,CAAA;AAGjE,OAAO,EACL,KAAK,MAAM,EAGZ,MAAM,qBAAqB,CAAA;AAC5B,OAAO,KAAK,KAAK,gBAAgB,MAAM,iCAAiC,CAAA;AACxE,OAAO,KAAK,KAAK,mBAAmB,MAAM,oCAAoC,CAAA;AAM9E,MAAM,MAAM,UAAU,GAAG,OAAO,GAAG,UAAU,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;AAE7D,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,uCAAuC,CAAA;IAC/C,GAAG,EAAE,MAAM,CAAA;IACX,MAAM,EAAE,MAAM,CAAA;IACd,WAAW,CAAC,EAAE,MAAM,CAAA;IACpB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,UAAU,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAA;IAC/C,MAAM,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAA;IACrC,MAAM,CAAC,EAAE,mBAAmB,CAAC,KAAK,EAAE,CAAA;IACpC,SAAS,CAAC,EAAE,MAAM,CAAA;IAClB,8EAA8E;IAC9E,YAAY,CAAC,EAAE,OAAO,CAAA;IACtB,YAAY,CAAC,EAAE,gBAAgB,CAAC,iBAAiB,CAAA;IACjD,IAAI,CAAC,EACD,MAAM,CAAC,iBAAiB,CAAC,GACzB,MAAM,CAAC,gBAAgB,CAAC,GACxB,MAAM,CAAC,oBAAo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,CAAwB,CAAC,EAAE,EAAE,EAAE,qBAAqB,CAAC,CAAA;AACtE,CAAC;AASD,MAAM,oBAAoB,GAAG,kBAAkB,CAAA;AAE/C,MAAM,UAAU,kBAAkB,CAAI,CAAI;IACxC,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,CAAA;AAC9C,CAAC;AAED,MAAM,UAAU,wBAAwB,CAAI,CAAI;IAC9C,OAAO,QAAQ,CAAuB,CAAC,EAAE,EAAE,EAAE,oBAAoB,CAAC,CAAA;AACpE,CAAC;AAOD,MAAM,wBAAwB,GAAG,sBAAsB,CAAA;AAEvD,MAAM,UAAU,sBAAsB,CAAI,CAAI;IAC5C,OAAO,QAAQ,CAAC,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAClD,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAI,CAAI;IAClD,OAAO,QAAQ,CAA2B,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAC5E,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 AppBskyActorDefs from '../../../app/bsky/actor/defs.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.actor.defs'\n\nexport type MemberRole = 'owner' | 'standard' | (string & {})\n\nexport interface ProfileViewBasic {\n $type?: 'chat.bsky.actor.defs#profileViewBasic'\n did: string\n handle: string\n displayName?: string\n avatar?: string\n associated?: AppBskyActorDefs.ProfileAssociated\n viewer?: AppBskyActorDefs.ViewerState\n labels?: ComAtprotoLabelDefs.Label[]\n createdAt?: string\n /** Set to true when the actor cannot actively participate in conversations */\n chatDisabled?: boolean\n verification?: AppBskyActorDefs.VerificationState\n kind?:\n | $Typed<DirectConvoMember>\n | $Typed<GroupConvoMember>\n | $Typed<PastGroupConvoMember>\n | { $type: string }\n}\n\nconst hashProfileViewBasic = 'profileViewBasic'\n\nexport function isProfileViewBasic<V>(v: V) {\n return is$typed(v, id, hashProfileViewBasic)\n}\n\nexport function validateProfileViewBasic<V>(v: V) {\n return validate<ProfileViewBasic & V>(v, id, hashProfileViewBasic)\n}\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. */\nexport interface DirectConvoMember {\n $type?: 'chat.bsky.actor.defs#directConvoMember'\n}\n\nconst hashDirectConvoMember = 'directConvoMember'\n\nexport function isDirectConvoMember<V>(v: V) {\n return is$typed(v, id, hashDirectConvoMember)\n}\n\nexport function validateDirectConvoMember<V>(v: V) {\n return validate<DirectConvoMember & V>(v, id, hashDirectConvoMember)\n}\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. A current group convo member. */\nexport interface GroupConvoMember {\n $type?: 'chat.bsky.actor.defs#groupConvoMember'\n addedBy?: ProfileViewBasic\n role: MemberRole\n}\n\nconst hashGroupConvoMember = 'groupConvoMember'\n\nexport function isGroupConvoMember<V>(v: V) {\n return is$typed(v, id, hashGroupConvoMember)\n}\n\nexport function validateGroupConvoMember<V>(v: V) {\n return validate<GroupConvoMember & V>(v, id, hashGroupConvoMember)\n}\n\n/** [NOTE: This is under active development and should be considered unstable while this note is here]. A past group convo member. */\nexport interface PastGroupConvoMember {\n $type?: 'chat.bsky.actor.defs#pastGroupConvoMember'\n}\n\nconst hashPastGroupConvoMember = 'pastGroupConvoMember'\n\nexport function isPastGroupConvoMember<V>(v: V) {\n return is$typed(v, id, hashPastGroupConvoMember)\n}\n\nexport function validatePastGroupConvoMember<V>(v: V) {\n return validate<PastGroupConvoMember & V>(v, id, hashPastGroupConvoMember)\n}\n"]}
1
+ {"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/chat/bsky/actor/defs.ts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AE,wBAAwB,CAAC,CAAA;AAClD,CAAC;AAED,MAAM,UAAU,4BAA4B,CAAI,CAAI;IAClD,OAAO,QAAQ,CAA2B,CAAC,EAAE,EAAE,EAAE,wBAAwB,CAAC,CAAA;AAC5E,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 AppBskyActorDefs from '../../../app/bsky/actor/defs.js'\nimport type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'chat.bsky.actor.defs'\n\nexport type MemberRole = 'owner' | 'standard' | (string & {})\n\nexport interface ProfileViewBasic {\n $type?: 'chat.bsky.actor.defs#profileViewBasic'\n did: string\n handle: string\n displayName?: string\n avatar?: string\n associated?: AppBskyActorDefs.ProfileAssociated\n viewer?: AppBskyActorDefs.ViewerState\n labels?: ComAtprotoLabelDefs.Label[]\n createdAt?: string\n /** Set to true when the actor cannot actively participate in conversations */\n chatDisabled?: boolean\n verification?: AppBskyActorDefs.VerificationState\n kind?:\n | $Typed<DirectConvoMember>\n | $Typed<GroupConvoMember>\n | $Typed<PastGroupConvoMember>\n | { $type: string }\n}\n\nconst hashProfileViewBasic = 'profileViewBasic'\n\nexport function isProfileViewBasic<V>(v: V) {\n return is$typed(v, id, hashProfileViewBasic)\n}\n\nexport function validateProfileViewBasic<V>(v: V) {\n return validate<ProfileViewBasic & V>(v, id, hashProfileViewBasic)\n}\n\nexport interface DirectConvoMember {\n $type?: 'chat.bsky.actor.defs#directConvoMember'\n}\n\nconst hashDirectConvoMember = 'directConvoMember'\n\nexport function isDirectConvoMember<V>(v: V) {\n return is$typed(v, id, hashDirectConvoMember)\n}\n\nexport function validateDirectConvoMember<V>(v: V) {\n return validate<DirectConvoMember & V>(v, id, hashDirectConvoMember)\n}\n\n/** A current group convo member. */\nexport interface GroupConvoMember {\n $type?: 'chat.bsky.actor.defs#groupConvoMember'\n addedBy?: ProfileViewBasic\n role: MemberRole\n}\n\nconst hashGroupConvoMember = 'groupConvoMember'\n\nexport function isGroupConvoMember<V>(v: V) {\n return is$typed(v, id, hashGroupConvoMember)\n}\n\nexport function validateGroupConvoMember<V>(v: V) {\n return validate<GroupConvoMember & V>(v, id, hashGroupConvoMember)\n}\n\n/** A past group convo member. */\nexport interface PastGroupConvoMember {\n $type?: 'chat.bsky.actor.defs#pastGroupConvoMember'\n}\n\nconst hashPastGroupConvoMember = 'pastGroupConvoMember'\n\nexport function isPastGroupConvoMember<V>(v: V) {\n return is$typed(v, id, hashPastGroupConvoMember)\n}\n\nexport function validatePastGroupConvoMember<V>(v: V) {\n return validate<PastGroupConvoMember & V>(v, id, hashPastGroupConvoMember)\n}\n"]}