@atproto/ozone 0.1.160 → 0.1.162
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 +20 -0
- package/LICENSE.txt +1 -1
- package/dist/api/moderation/emitEvent.d.ts.map +1 -1
- package/dist/api/moderation/emitEvent.js +29 -23
- package/dist/api/moderation/emitEvent.js.map +1 -1
- package/dist/daemon/materialized-view-refresher.d.ts.map +1 -1
- package/dist/daemon/materialized-view-refresher.js +8 -1
- package/dist/daemon/materialized-view-refresher.js.map +1 -1
- package/dist/lexicon/index.d.ts +15 -0
- package/dist/lexicon/index.d.ts.map +1 -1
- package/dist/lexicon/index.js +41 -1
- package/dist/lexicon/index.js.map +1 -1
- package/dist/lexicon/lexicons.d.ts +1134 -56
- package/dist/lexicon/lexicons.d.ts.map +1 -1
- package/dist/lexicon/lexicons.js +603 -26
- package/dist/lexicon/lexicons.js.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts +35 -1
- package/dist/lexicon/types/app/bsky/actor/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/actor/defs.js +27 -0
- package/dist/lexicon/types/app/bsky/actor/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/ageassurance/defs.d.ts +2 -0
- package/dist/lexicon/types/app/bsky/ageassurance/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/ageassurance/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/defs.d.ts +10 -0
- package/dist/lexicon/types/app/bsky/contact/defs.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/defs.js +9 -0
- package/dist/lexicon/types/app/bsky/contact/defs.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/dismissMatch.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/contact/dismissMatch.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/dismissMatch.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/getMatches.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/contact/getMatches.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/getMatches.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/getSyncStatus.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/contact/getSyncStatus.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/getSyncStatus.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/importContacts.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/contact/importContacts.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/importContacts.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/removeData.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/contact/removeData.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/removeData.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/sendNotification.d.ts +26 -0
- package/dist/lexicon/types/app/bsky/contact/sendNotification.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/sendNotification.js +7 -0
- package/dist/lexicon/types/app/bsky/contact/sendNotification.js.map +1 -0
- package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/startPhoneVerification.js.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/verifyPhone.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/contact/verifyPhone.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/contact/verifyPhone.js.map +1 -1
- package/dist/lexicon/types/app/bsky/draft/createDraft.d.ts +27 -0
- package/dist/lexicon/types/app/bsky/draft/createDraft.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/createDraft.js +7 -0
- package/dist/lexicon/types/app/bsky/draft/createDraft.js.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/defs.d.ts +106 -0
- package/dist/lexicon/types/app/bsky/draft/defs.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/defs.js +97 -0
- package/dist/lexicon/types/app/bsky/draft/defs.js.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/deleteDraft.d.ts +14 -0
- package/dist/lexicon/types/app/bsky/draft/deleteDraft.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/deleteDraft.js +7 -0
- package/dist/lexicon/types/app/bsky/draft/deleteDraft.js.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/getDrafts.d.ts +24 -0
- package/dist/lexicon/types/app/bsky/draft/getDrafts.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/getDrafts.js +7 -0
- package/dist/lexicon/types/app/bsky/draft/getDrafts.js.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/updateDraft.d.ts +15 -0
- package/dist/lexicon/types/app/bsky/draft/updateDraft.d.ts.map +1 -0
- package/dist/lexicon/types/app/bsky/draft/updateDraft.js +7 -0
- package/dist/lexicon/types/app/bsky/draft/updateDraft.js.map +1 -0
- package/dist/lexicon/types/app/bsky/embed/video.d.ts +4 -0
- package/dist/lexicon/types/app/bsky/embed/video.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/embed/video.js.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts +1 -1
- package/dist/lexicon/types/app/bsky/notification/listNotifications.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/notification/listNotifications.js.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsers.d.ts +2 -0
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsers.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsers.js.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.d.ts +2 -0
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.d.ts.map +1 -1
- package/dist/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/deleteSession.d.ts +1 -0
- package/dist/lexicon/types/com/atproto/server/deleteSession.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/server/deleteSession.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/getSession.d.ts +3 -3
- package/dist/lexicon/types/com/atproto/server/getSession.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/server/getSession.js.map +1 -1
- package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts +4 -1
- package/dist/lexicon/types/com/atproto/server/refreshSession.d.ts.map +1 -1
- package/dist/lexicon/types/com/atproto/server/refreshSession.js.map +1 -1
- package/dist/mod-service/index.d.ts.map +1 -1
- package/dist/mod-service/index.js +10 -4
- package/dist/mod-service/index.js.map +1 -1
- package/dist/mod-service/util.d.ts.map +1 -1
- package/dist/mod-service/util.js +3 -1
- package/dist/mod-service/util.js.map +1 -1
- package/package.json +8 -8
- package/src/api/moderation/emitEvent.ts +33 -25
- package/src/daemon/materialized-view-refresher.ts +9 -3
- package/src/lexicon/index.ts +75 -0
- package/src/lexicon/lexicons.ts +624 -26
- package/src/lexicon/types/app/bsky/actor/defs.ts +63 -0
- package/src/lexicon/types/app/bsky/ageassurance/defs.ts +2 -0
- package/src/lexicon/types/app/bsky/contact/defs.ts +19 -0
- package/src/lexicon/types/app/bsky/contact/dismissMatch.ts +1 -1
- package/src/lexicon/types/app/bsky/contact/getMatches.ts +1 -1
- package/src/lexicon/types/app/bsky/contact/getSyncStatus.ts +1 -1
- package/src/lexicon/types/app/bsky/contact/importContacts.ts +6 -1
- package/src/lexicon/types/app/bsky/contact/removeData.ts +1 -1
- package/src/lexicon/types/app/bsky/contact/sendNotification.ts +44 -0
- package/src/lexicon/types/app/bsky/contact/startPhoneVerification.ts +1 -1
- package/src/lexicon/types/app/bsky/contact/verifyPhone.ts +6 -1
- package/src/lexicon/types/app/bsky/draft/createDraft.ts +46 -0
- package/src/lexicon/types/app/bsky/draft/defs.ts +208 -0
- package/src/lexicon/types/app/bsky/draft/deleteDraft.ts +33 -0
- package/src/lexicon/types/app/bsky/draft/getDrafts.ts +42 -0
- package/src/lexicon/types/app/bsky/draft/updateDraft.ts +34 -0
- package/src/lexicon/types/app/bsky/embed/video.ts +4 -0
- package/src/lexicon/types/app/bsky/notification/listNotifications.ts +1 -0
- package/src/lexicon/types/app/bsky/unspecced/getSuggestedUsers.ts +2 -0
- package/src/lexicon/types/app/bsky/unspecced/getSuggestedUsersSkeleton.ts +2 -0
- package/src/lexicon/types/com/atproto/server/deleteSession.ts +1 -0
- package/src/lexicon/types/com/atproto/server/getSession.ts +1 -1
- package/src/lexicon/types/com/atproto/server/refreshSession.ts +4 -1
- package/src/mod-service/index.ts +12 -5
- package/src/mod-service/util.ts +3 -2
- package/tests/query-labels.test.ts +0 -2
- package/tsconfig.build.tsbuildinfo +1 -1
- package/tsconfig.tests.tsbuildinfo +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSyncStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/getSyncStatus.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,kBAAkB,MAAM,WAAW,CAAA;AAMpD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAA;CAC3C;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,
|
|
1
|
+
{"version":3,"file":"getSyncStatus.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/getSyncStatus.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,kBAAkB,MAAM,WAAW,CAAA;AAMpD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAC5B,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,UAAU,CAAC,EAAE,kBAAkB,CAAC,UAAU,CAAA;CAC3C;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,YAAY,GAAG,eAAe,CAAA;CACvC;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"getSyncStatus.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/getSyncStatus.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,gCAAgC,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 AppBskyContactDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.contact.getSyncStatus'\n\nexport type QueryParams = {}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n syncStatus?: AppBskyContactDefs.SyncStatus\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?: '
|
|
1
|
+
{"version":3,"file":"getSyncStatus.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/getSyncStatus.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,gCAAgC,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 AppBskyContactDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.contact.getSyncStatus'\n\nexport type QueryParams = {}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n syncStatus?: AppBskyContactDefs.SyncStatus\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?: 'InvalidDid' | 'InternalError'\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
|
|
@@ -24,7 +24,7 @@ export interface HandlerSuccess {
|
|
|
24
24
|
export interface HandlerError {
|
|
25
25
|
status: number;
|
|
26
26
|
message?: string;
|
|
27
|
-
error?: '
|
|
27
|
+
error?: 'InvalidDid' | 'InvalidContacts' | 'TooManyContacts' | 'InvalidToken' | 'InternalError';
|
|
28
28
|
}
|
|
29
29
|
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
30
30
|
//# sourceMappingURL=importContacts.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importContacts.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/importContacts.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,kBAAkB,MAAM,WAAW,CAAA;AAMpD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,sHAAsH;IACtH,KAAK,EAAE,MAAM,CAAA;IACb,4OAA4O;IAC5O,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,qIAAqI;IACrI,wBAAwB,EAAE,kBAAkB,CAAC,oBAAoB,EAAE,CAAA;CACpE;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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,
|
|
1
|
+
{"version":3,"file":"importContacts.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/importContacts.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,kBAAkB,MAAM,WAAW,CAAA;AAMpD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,sHAAsH;IACtH,KAAK,EAAE,MAAM,CAAA;IACb,4OAA4O;IAC5O,QAAQ,EAAE,MAAM,EAAE,CAAA;CACnB;AAED,MAAM,WAAW,YAAY;IAC3B,qIAAqI;IACrI,wBAAwB,EAAE,kBAAkB,CAAC,oBAAoB,EAAE,CAAA;CACpE;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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,EACF,YAAY,GACZ,iBAAiB,GACjB,iBAAiB,GACjB,cAAc,GACd,eAAe,CAAA;CACpB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"importContacts.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/importContacts.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,iCAAiC,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 AppBskyContactDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.contact.importContacts'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`. */\n token: string\n /** List of phone numbers in global E.164 format (e.g., '+12125550123'). Phone numbers that cannot be normalized into a valid phone number will be discarded. Should not repeat the 'phone' input used in `app.bsky.contact.verifyPhone`. */\n contacts: string[]\n}\n\nexport interface OutputSchema {\n /** The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list. */\n matchesAndContactIndexes: AppBskyContactDefs.MatchAndContactIndex[]\n}\n\nexport interface HandlerInput {\n encoding: 'application/json'\n body: InputSchema\n}\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
|
|
1
|
+
{"version":3,"file":"importContacts.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/importContacts.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,iCAAiC,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 AppBskyContactDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.contact.importContacts'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** JWT to authenticate the call. Use the JWT received as a response to the call to `app.bsky.contact.verifyPhone`. */\n token: string\n /** List of phone numbers in global E.164 format (e.g., '+12125550123'). Phone numbers that cannot be normalized into a valid phone number will be discarded. Should not repeat the 'phone' input used in `app.bsky.contact.verifyPhone`. */\n contacts: string[]\n}\n\nexport interface OutputSchema {\n /** The users that matched during import and their indexes on the input contacts, so the client can correlate with its local list. */\n matchesAndContactIndexes: AppBskyContactDefs.MatchAndContactIndex[]\n}\n\nexport interface HandlerInput {\n encoding: 'application/json'\n body: InputSchema\n}\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?:\n | 'InvalidDid'\n | 'InvalidContacts'\n | 'TooManyContacts'\n | 'InvalidToken'\n | 'InternalError'\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
|
|
@@ -17,7 +17,7 @@ export interface HandlerSuccess {
|
|
|
17
17
|
export interface HandlerError {
|
|
18
18
|
status: number;
|
|
19
19
|
message?: string;
|
|
20
|
-
error?: '
|
|
20
|
+
error?: 'InvalidDid' | 'InternalError';
|
|
21
21
|
}
|
|
22
22
|
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
23
23
|
//# sourceMappingURL=removeData.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeData.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/removeData.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,YAAY;CAAG;AAEhC,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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,
|
|
1
|
+
{"version":3,"file":"removeData.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/removeData.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;CAAG;AAE/B,MAAM,WAAW,YAAY;CAAG;AAEhC,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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,YAAY,GAAG,eAAe,CAAA;CACvC;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"removeData.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/removeData.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,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'\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.contact.removeData'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {}\n\nexport interface OutputSchema {}\n\nexport interface HandlerInput {\n encoding: 'application/json'\n body: InputSchema\n}\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?: '
|
|
1
|
+
{"version":3,"file":"removeData.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/removeData.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,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'\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.contact.removeData'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {}\n\nexport interface OutputSchema {}\n\nexport interface HandlerInput {\n encoding: 'application/json'\n body: InputSchema\n}\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?: 'InvalidDid' | 'InternalError'\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export type QueryParams = {};
|
|
2
|
+
export interface InputSchema {
|
|
3
|
+
/** The DID of who this notification comes from. */
|
|
4
|
+
from: string;
|
|
5
|
+
/** The DID of who this notification should go to. */
|
|
6
|
+
to: string;
|
|
7
|
+
}
|
|
8
|
+
export interface OutputSchema {
|
|
9
|
+
}
|
|
10
|
+
export interface HandlerInput {
|
|
11
|
+
encoding: 'application/json';
|
|
12
|
+
body: InputSchema;
|
|
13
|
+
}
|
|
14
|
+
export interface HandlerSuccess {
|
|
15
|
+
encoding: 'application/json';
|
|
16
|
+
body: OutputSchema;
|
|
17
|
+
headers?: {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface HandlerError {
|
|
22
|
+
status: number;
|
|
23
|
+
message?: string;
|
|
24
|
+
}
|
|
25
|
+
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
26
|
+
//# sourceMappingURL=sendNotification.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendNotification.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/sendNotification.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,mDAAmD;IACnD,IAAI,EAAE,MAAM,CAAA;IACZ,qDAAqD;IACrD,EAAE,EAAE,MAAM,CAAA;CACX;AAED,MAAM,WAAW,YAAY;CAAG;AAEhC,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
4
|
+
const util_1 = require("../../../../util");
|
|
5
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
6
|
+
const id = 'app.bsky.contact.sendNotification';
|
|
7
|
+
//# sourceMappingURL=sendNotification.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"sendNotification.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/sendNotification.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,mCAAmC,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.contact.sendNotification'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** The DID of who this notification comes from. */\n from: string\n /** The DID of who this notification should go to. */\n to: string\n}\n\nexport interface OutputSchema {}\n\nexport interface HandlerInput {\n encoding: 'application/json'\n body: InputSchema\n}\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"]}
|
|
@@ -19,7 +19,7 @@ export interface HandlerSuccess {
|
|
|
19
19
|
export interface HandlerError {
|
|
20
20
|
status: number;
|
|
21
21
|
message?: string;
|
|
22
|
-
error?: '
|
|
22
|
+
error?: 'RateLimitExceeded' | 'InvalidDid' | 'InvalidPhone' | 'InternalError';
|
|
23
23
|
}
|
|
24
24
|
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
25
25
|
//# sourceMappingURL=startPhoneVerification.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startPhoneVerification.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/startPhoneVerification.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,YAAY;CAAG;AAEhC,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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,
|
|
1
|
+
{"version":3,"file":"startPhoneVerification.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/startPhoneVerification.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,oDAAoD;IACpD,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,YAAY;CAAG;AAEhC,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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,mBAAmB,GAAG,YAAY,GAAG,cAAc,GAAG,eAAe,CAAA;CAC9E;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"startPhoneVerification.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/startPhoneVerification.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yCAAyC,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.contact.startPhoneVerification'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** The phone number to receive the code via SMS. */\n phone: string\n}\n\nexport interface OutputSchema {}\n\nexport interface HandlerInput {\n encoding: 'application/json'\n body: InputSchema\n}\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?: '
|
|
1
|
+
{"version":3,"file":"startPhoneVerification.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/startPhoneVerification.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,yCAAyC,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.contact.startPhoneVerification'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** The phone number to receive the code via SMS. */\n phone: string\n}\n\nexport interface OutputSchema {}\n\nexport interface HandlerInput {\n encoding: 'application/json'\n body: InputSchema\n}\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?: 'RateLimitExceeded' | 'InvalidDid' | 'InvalidPhone' | 'InternalError'\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
|
|
@@ -23,7 +23,7 @@ export interface HandlerSuccess {
|
|
|
23
23
|
export interface HandlerError {
|
|
24
24
|
status: number;
|
|
25
25
|
message?: string;
|
|
26
|
-
error?: '
|
|
26
|
+
error?: 'RateLimitExceeded' | 'InvalidDid' | 'InvalidPhone' | 'InvalidCode' | 'InternalError';
|
|
27
27
|
}
|
|
28
28
|
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
29
29
|
//# sourceMappingURL=verifyPhone.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifyPhone.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/verifyPhone.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,qHAAqH;IACrH,KAAK,EAAE,MAAM,CAAA;IACb,sGAAsG;IACtG,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,YAAY;IAC3B,yGAAyG;IACzG,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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,
|
|
1
|
+
{"version":3,"file":"verifyPhone.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/verifyPhone.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,qHAAqH;IACrH,KAAK,EAAE,MAAM,CAAA;IACb,sGAAsG;IACtG,IAAI,EAAE,MAAM,CAAA;CACb;AAED,MAAM,WAAW,YAAY;IAC3B,yGAAyG;IACzG,KAAK,EAAE,MAAM,CAAA;CACd;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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,EACF,mBAAmB,GACnB,YAAY,GACZ,cAAc,GACd,aAAa,GACb,eAAe,CAAA;CACpB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"verifyPhone.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/verifyPhone.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8BAA8B,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.contact.verifyPhone'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`. */\n phone: string\n /** The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`. */\n code: string\n}\n\nexport interface OutputSchema {\n /** JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call. */\n token: string\n}\n\nexport interface HandlerInput {\n encoding: 'application/json'\n body: InputSchema\n}\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
|
|
1
|
+
{"version":3,"file":"verifyPhone.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/contact/verifyPhone.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,8BAA8B,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.contact.verifyPhone'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n /** The phone number to verify. Should be the same as the one passed to `app.bsky.contact.startPhoneVerification`. */\n phone: string\n /** The code received via SMS as a result of the call to `app.bsky.contact.startPhoneVerification`. */\n code: string\n}\n\nexport interface OutputSchema {\n /** JWT to be used in a call to `app.bsky.contact.importContacts`. It is only valid for a single call. */\n token: string\n}\n\nexport interface HandlerInput {\n encoding: 'application/json'\n body: InputSchema\n}\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?:\n | 'RateLimitExceeded'\n | 'InvalidDid'\n | 'InvalidPhone'\n | 'InvalidCode'\n | 'InternalError'\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import type * as AppBskyDraftDefs from './defs.js';
|
|
2
|
+
export type QueryParams = {};
|
|
3
|
+
export interface InputSchema {
|
|
4
|
+
draft: AppBskyDraftDefs.Draft;
|
|
5
|
+
}
|
|
6
|
+
export interface OutputSchema {
|
|
7
|
+
/** The ID of the created draft. */
|
|
8
|
+
id: string;
|
|
9
|
+
}
|
|
10
|
+
export interface HandlerInput {
|
|
11
|
+
encoding: 'application/json';
|
|
12
|
+
body: InputSchema;
|
|
13
|
+
}
|
|
14
|
+
export interface HandlerSuccess {
|
|
15
|
+
encoding: 'application/json';
|
|
16
|
+
body: OutputSchema;
|
|
17
|
+
headers?: {
|
|
18
|
+
[key: string]: string;
|
|
19
|
+
};
|
|
20
|
+
}
|
|
21
|
+
export interface HandlerError {
|
|
22
|
+
status: number;
|
|
23
|
+
message?: string;
|
|
24
|
+
error?: 'DraftLimitReached';
|
|
25
|
+
}
|
|
26
|
+
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
27
|
+
//# sourceMappingURL=createDraft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDraft.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/draft/createDraft.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,gBAAgB,CAAC,KAAK,CAAA;CAC9B;AAED,MAAM,WAAW,YAAY;IAC3B,mCAAmC;IACnC,EAAE,EAAE,MAAM,CAAA;CACX;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,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,mBAAmB,CAAA;CAC5B;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,cAAc,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
4
|
+
const util_1 = require("../../../../util");
|
|
5
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
6
|
+
const id = 'app.bsky.draft.createDraft';
|
|
7
|
+
//# sourceMappingURL=createDraft.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"createDraft.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/draft/createDraft.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,4BAA4B,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 AppBskyDraftDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.draft.createDraft'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n draft: AppBskyDraftDefs.Draft\n}\n\nexport interface OutputSchema {\n /** The ID of the created draft. */\n id: string\n}\n\nexport interface HandlerInput {\n encoding: 'application/json'\n body: InputSchema\n}\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?: 'DraftLimitReached'\n}\n\nexport type HandlerOutput = HandlerError | HandlerSuccess\n"]}
|
|
@@ -0,0 +1,106 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import { type $Typed } from '../../../../util';
|
|
6
|
+
import type * as AppBskyFeedPostgate from '../feed/postgate.js';
|
|
7
|
+
import type * as AppBskyFeedThreadgate from '../feed/threadgate.js';
|
|
8
|
+
import type * as ComAtprotoLabelDefs from '../../../com/atproto/label/defs.js';
|
|
9
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
10
|
+
/** A draft with an identifier, used to store drafts in private storage (stash). */
|
|
11
|
+
export interface DraftWithId {
|
|
12
|
+
$type?: 'app.bsky.draft.defs#draftWithId';
|
|
13
|
+
/** A TID to be used as a draft identifier. */
|
|
14
|
+
id: string;
|
|
15
|
+
draft: Draft;
|
|
16
|
+
}
|
|
17
|
+
export declare function isDraftWithId<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.draft.defs", "draftWithId">;
|
|
18
|
+
export declare function validateDraftWithId<V>(v: V): ValidationResult<DraftWithId & V>;
|
|
19
|
+
/** A draft containing an array of draft posts. */
|
|
20
|
+
export interface Draft {
|
|
21
|
+
$type?: 'app.bsky.draft.defs#draft';
|
|
22
|
+
/** Array of draft posts that compose this draft. */
|
|
23
|
+
posts: DraftPost[];
|
|
24
|
+
/** Indicates human language of posts primary text content. */
|
|
25
|
+
langs?: string[];
|
|
26
|
+
/** Embedding rules for the postgates to be created when this draft is published. */
|
|
27
|
+
postgateEmbeddingRules?: ($Typed<AppBskyFeedPostgate.DisableRule> | {
|
|
28
|
+
$type: string;
|
|
29
|
+
})[];
|
|
30
|
+
/** Allow-rules for the threadgate to be created when this draft is published. */
|
|
31
|
+
threadgateAllow?: ($Typed<AppBskyFeedThreadgate.MentionRule> | $Typed<AppBskyFeedThreadgate.FollowerRule> | $Typed<AppBskyFeedThreadgate.FollowingRule> | $Typed<AppBskyFeedThreadgate.ListRule> | {
|
|
32
|
+
$type: string;
|
|
33
|
+
})[];
|
|
34
|
+
}
|
|
35
|
+
export declare function isDraft<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.draft.defs", "draft">;
|
|
36
|
+
export declare function validateDraft<V>(v: V): ValidationResult<Draft & V>;
|
|
37
|
+
/** One of the posts that compose a draft. */
|
|
38
|
+
export interface DraftPost {
|
|
39
|
+
$type?: 'app.bsky.draft.defs#draftPost';
|
|
40
|
+
/** The primary post content. */
|
|
41
|
+
text: string;
|
|
42
|
+
labels?: $Typed<ComAtprotoLabelDefs.SelfLabels> | {
|
|
43
|
+
$type: string;
|
|
44
|
+
};
|
|
45
|
+
embedImages?: DraftEmbedImage[];
|
|
46
|
+
embedVideos?: DraftEmbedVideo[];
|
|
47
|
+
embedExternals?: DraftEmbedExternal[];
|
|
48
|
+
embedRecords?: DraftEmbedRecord[];
|
|
49
|
+
}
|
|
50
|
+
export declare function isDraftPost<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.draft.defs", "draftPost">;
|
|
51
|
+
export declare function validateDraftPost<V>(v: V): ValidationResult<DraftPost & V>;
|
|
52
|
+
/** View to present drafts data to users. */
|
|
53
|
+
export interface DraftView {
|
|
54
|
+
$type?: 'app.bsky.draft.defs#draftView';
|
|
55
|
+
/** A TID to be used as a draft identifier. */
|
|
56
|
+
id: string;
|
|
57
|
+
draft: Draft;
|
|
58
|
+
/** The time the draft was created. */
|
|
59
|
+
createdAt: string;
|
|
60
|
+
/** The time the draft was last updated. */
|
|
61
|
+
updatedAt: string;
|
|
62
|
+
}
|
|
63
|
+
export declare function isDraftView<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.draft.defs", "draftView">;
|
|
64
|
+
export declare function validateDraftView<V>(v: V): ValidationResult<DraftView & V>;
|
|
65
|
+
export interface DraftEmbedLocalRef {
|
|
66
|
+
$type?: 'app.bsky.draft.defs#draftEmbedLocalRef';
|
|
67
|
+
/** Local, on-device ref to file to be embedded. Embeds are currently device-bound for drafts. */
|
|
68
|
+
path: string;
|
|
69
|
+
}
|
|
70
|
+
export declare function isDraftEmbedLocalRef<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.draft.defs", "draftEmbedLocalRef">;
|
|
71
|
+
export declare function validateDraftEmbedLocalRef<V>(v: V): ValidationResult<DraftEmbedLocalRef & V>;
|
|
72
|
+
export interface DraftEmbedCaption {
|
|
73
|
+
$type?: 'app.bsky.draft.defs#draftEmbedCaption';
|
|
74
|
+
lang: string;
|
|
75
|
+
content: string;
|
|
76
|
+
}
|
|
77
|
+
export declare function isDraftEmbedCaption<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.draft.defs", "draftEmbedCaption">;
|
|
78
|
+
export declare function validateDraftEmbedCaption<V>(v: V): ValidationResult<DraftEmbedCaption & V>;
|
|
79
|
+
export interface DraftEmbedImage {
|
|
80
|
+
$type?: 'app.bsky.draft.defs#draftEmbedImage';
|
|
81
|
+
localRef: DraftEmbedLocalRef;
|
|
82
|
+
alt?: string;
|
|
83
|
+
}
|
|
84
|
+
export declare function isDraftEmbedImage<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.draft.defs", "draftEmbedImage">;
|
|
85
|
+
export declare function validateDraftEmbedImage<V>(v: V): ValidationResult<DraftEmbedImage & V>;
|
|
86
|
+
export interface DraftEmbedVideo {
|
|
87
|
+
$type?: 'app.bsky.draft.defs#draftEmbedVideo';
|
|
88
|
+
localRef: DraftEmbedLocalRef;
|
|
89
|
+
alt?: string;
|
|
90
|
+
captions?: DraftEmbedCaption[];
|
|
91
|
+
}
|
|
92
|
+
export declare function isDraftEmbedVideo<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.draft.defs", "draftEmbedVideo">;
|
|
93
|
+
export declare function validateDraftEmbedVideo<V>(v: V): ValidationResult<DraftEmbedVideo & V>;
|
|
94
|
+
export interface DraftEmbedExternal {
|
|
95
|
+
$type?: 'app.bsky.draft.defs#draftEmbedExternal';
|
|
96
|
+
uri: string;
|
|
97
|
+
}
|
|
98
|
+
export declare function isDraftEmbedExternal<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.draft.defs", "draftEmbedExternal">;
|
|
99
|
+
export declare function validateDraftEmbedExternal<V>(v: V): ValidationResult<DraftEmbedExternal & V>;
|
|
100
|
+
export interface DraftEmbedRecord {
|
|
101
|
+
$type?: 'app.bsky.draft.defs#draftEmbedRecord';
|
|
102
|
+
record: ComAtprotoRepoStrongRef.Main;
|
|
103
|
+
}
|
|
104
|
+
export declare function isDraftEmbedRecord<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.draft.defs", "draftEmbedRecord">;
|
|
105
|
+
export declare function validateDraftEmbedRecord<V>(v: V): ValidationResult<DraftEmbedRecord & V>;
|
|
106
|
+
//# sourceMappingURL=defs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/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,CAAC,EAAE,iCAAiC,CAAA;IACzC,8CAA8C;IAC9C,EAAE,EAAE,MAAM,CAAA;IACV,KAAK,EAAE,KAAK,CAAA;CACb;AAID,wBAAgB,aAAa,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,yFAEpC;AAED,wBAAgB,mBAAmB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,qCAE1C;AAED,kDAAkD;AAClD,MAAM,WAAW,KAAK;IACpB,KAAK,CAAC,EAAE,2BAA2B,CAAA;IACnC,oDAAoD;IACpD,KAAK,EAAE,SAAS,EAAE,CAAA;IAClB,8DAA8D;IAC9D,KAAK,CAAC,EAAE,MAAM,EAAE,CAAA;IAChB,oFAAoF;IACpF,sBAAsB,CAAC,EAAE,CACrB,MAAM,CAAC,mBAAmB,CAAC,WAAW,CAAC,GACvC;QAAE,KAAK,EAAE,MAAM,CAAA;KAAE,CACpB,EAAE,CAAA;IACH,iFAAiF;IACjF,eAAe,CAAC,EAAE,CACd,MAAM,CAAC,qBAAqB,CAAC,W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AAgB,oBAAoB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,gGAE3C;AAED,wBAAgB,0BAA0B,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,4CAEjD;AAED,MAAM,WAAW,gBAAgB;IAC/B,KAAK,CAAC,EAAE,sCAAsC,CAAA;IAC9C,MAAM,EAAE,uBAAuB,CAAC,IAAI,CAAA;CACrC;AAID,wBAAgB,kBAAkB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8FAEzC;AAED,wBAAgB,wBAAwB,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,0CAE/C"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.isDraftWithId = isDraftWithId;
|
|
4
|
+
exports.validateDraftWithId = validateDraftWithId;
|
|
5
|
+
exports.isDraft = isDraft;
|
|
6
|
+
exports.validateDraft = validateDraft;
|
|
7
|
+
exports.isDraftPost = isDraftPost;
|
|
8
|
+
exports.validateDraftPost = validateDraftPost;
|
|
9
|
+
exports.isDraftView = isDraftView;
|
|
10
|
+
exports.validateDraftView = validateDraftView;
|
|
11
|
+
exports.isDraftEmbedLocalRef = isDraftEmbedLocalRef;
|
|
12
|
+
exports.validateDraftEmbedLocalRef = validateDraftEmbedLocalRef;
|
|
13
|
+
exports.isDraftEmbedCaption = isDraftEmbedCaption;
|
|
14
|
+
exports.validateDraftEmbedCaption = validateDraftEmbedCaption;
|
|
15
|
+
exports.isDraftEmbedImage = isDraftEmbedImage;
|
|
16
|
+
exports.validateDraftEmbedImage = validateDraftEmbedImage;
|
|
17
|
+
exports.isDraftEmbedVideo = isDraftEmbedVideo;
|
|
18
|
+
exports.validateDraftEmbedVideo = validateDraftEmbedVideo;
|
|
19
|
+
exports.isDraftEmbedExternal = isDraftEmbedExternal;
|
|
20
|
+
exports.validateDraftEmbedExternal = validateDraftEmbedExternal;
|
|
21
|
+
exports.isDraftEmbedRecord = isDraftEmbedRecord;
|
|
22
|
+
exports.validateDraftEmbedRecord = validateDraftEmbedRecord;
|
|
23
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
24
|
+
const util_1 = require("../../../../util");
|
|
25
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
26
|
+
const id = 'app.bsky.draft.defs';
|
|
27
|
+
const hashDraftWithId = 'draftWithId';
|
|
28
|
+
function isDraftWithId(v) {
|
|
29
|
+
return is$typed(v, id, hashDraftWithId);
|
|
30
|
+
}
|
|
31
|
+
function validateDraftWithId(v) {
|
|
32
|
+
return validate(v, id, hashDraftWithId);
|
|
33
|
+
}
|
|
34
|
+
const hashDraft = 'draft';
|
|
35
|
+
function isDraft(v) {
|
|
36
|
+
return is$typed(v, id, hashDraft);
|
|
37
|
+
}
|
|
38
|
+
function validateDraft(v) {
|
|
39
|
+
return validate(v, id, hashDraft);
|
|
40
|
+
}
|
|
41
|
+
const hashDraftPost = 'draftPost';
|
|
42
|
+
function isDraftPost(v) {
|
|
43
|
+
return is$typed(v, id, hashDraftPost);
|
|
44
|
+
}
|
|
45
|
+
function validateDraftPost(v) {
|
|
46
|
+
return validate(v, id, hashDraftPost);
|
|
47
|
+
}
|
|
48
|
+
const hashDraftView = 'draftView';
|
|
49
|
+
function isDraftView(v) {
|
|
50
|
+
return is$typed(v, id, hashDraftView);
|
|
51
|
+
}
|
|
52
|
+
function validateDraftView(v) {
|
|
53
|
+
return validate(v, id, hashDraftView);
|
|
54
|
+
}
|
|
55
|
+
const hashDraftEmbedLocalRef = 'draftEmbedLocalRef';
|
|
56
|
+
function isDraftEmbedLocalRef(v) {
|
|
57
|
+
return is$typed(v, id, hashDraftEmbedLocalRef);
|
|
58
|
+
}
|
|
59
|
+
function validateDraftEmbedLocalRef(v) {
|
|
60
|
+
return validate(v, id, hashDraftEmbedLocalRef);
|
|
61
|
+
}
|
|
62
|
+
const hashDraftEmbedCaption = 'draftEmbedCaption';
|
|
63
|
+
function isDraftEmbedCaption(v) {
|
|
64
|
+
return is$typed(v, id, hashDraftEmbedCaption);
|
|
65
|
+
}
|
|
66
|
+
function validateDraftEmbedCaption(v) {
|
|
67
|
+
return validate(v, id, hashDraftEmbedCaption);
|
|
68
|
+
}
|
|
69
|
+
const hashDraftEmbedImage = 'draftEmbedImage';
|
|
70
|
+
function isDraftEmbedImage(v) {
|
|
71
|
+
return is$typed(v, id, hashDraftEmbedImage);
|
|
72
|
+
}
|
|
73
|
+
function validateDraftEmbedImage(v) {
|
|
74
|
+
return validate(v, id, hashDraftEmbedImage);
|
|
75
|
+
}
|
|
76
|
+
const hashDraftEmbedVideo = 'draftEmbedVideo';
|
|
77
|
+
function isDraftEmbedVideo(v) {
|
|
78
|
+
return is$typed(v, id, hashDraftEmbedVideo);
|
|
79
|
+
}
|
|
80
|
+
function validateDraftEmbedVideo(v) {
|
|
81
|
+
return validate(v, id, hashDraftEmbedVideo);
|
|
82
|
+
}
|
|
83
|
+
const hashDraftEmbedExternal = 'draftEmbedExternal';
|
|
84
|
+
function isDraftEmbedExternal(v) {
|
|
85
|
+
return is$typed(v, id, hashDraftEmbedExternal);
|
|
86
|
+
}
|
|
87
|
+
function validateDraftEmbedExternal(v) {
|
|
88
|
+
return validate(v, id, hashDraftEmbedExternal);
|
|
89
|
+
}
|
|
90
|
+
const hashDraftEmbedRecord = 'draftEmbedRecord';
|
|
91
|
+
function isDraftEmbedRecord(v) {
|
|
92
|
+
return is$typed(v, id, hashDraftEmbedRecord);
|
|
93
|
+
}
|
|
94
|
+
function validateDraftEmbedRecord(v) {
|
|
95
|
+
return validate(v, id, hashDraftEmbedRecord);
|
|
96
|
+
}
|
|
97
|
+
//# sourceMappingURL=defs.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"defs.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/draft/defs.ts"],"names":[],"mappings":";;AA8BA,sCAEC;AAED,kDAEC;AA0BD,0BAEC;AAED,sCAEC;A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AAA;AAClE,CAAC;AAOD,MAAM,sBAAsB,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 /** 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. */\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,14 @@
|
|
|
1
|
+
export type QueryParams = {};
|
|
2
|
+
export interface InputSchema {
|
|
3
|
+
id: string;
|
|
4
|
+
}
|
|
5
|
+
export interface HandlerInput {
|
|
6
|
+
encoding: 'application/json';
|
|
7
|
+
body: InputSchema;
|
|
8
|
+
}
|
|
9
|
+
export interface HandlerError {
|
|
10
|
+
status: number;
|
|
11
|
+
message?: string;
|
|
12
|
+
}
|
|
13
|
+
export type HandlerOutput = HandlerError | void;
|
|
14
|
+
//# sourceMappingURL=deleteDraft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteDraft.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/draft/deleteDraft.ts"],"names":[],"mappings":"AAgBA,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,EAAE,EAAE,MAAM,CAAA;CACX;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,IAAI,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
4
|
+
const util_1 = require("../../../../util");
|
|
5
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
6
|
+
const id = 'app.bsky.draft.deleteDraft';
|
|
7
|
+
//# sourceMappingURL=deleteDraft.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"deleteDraft.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/draft/deleteDraft.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAEzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,4BAA4B,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.draft.deleteDraft'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n id: string\n}\n\nexport interface HandlerInput {\n encoding: 'application/json'\n body: InputSchema\n}\n\nexport interface HandlerError {\n status: number\n message?: string\n}\n\nexport type HandlerOutput = HandlerError | void\n"]}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import type * as AppBskyDraftDefs from './defs.js';
|
|
2
|
+
export type QueryParams = {
|
|
3
|
+
limit: number;
|
|
4
|
+
cursor?: string;
|
|
5
|
+
};
|
|
6
|
+
export type InputSchema = undefined;
|
|
7
|
+
export interface OutputSchema {
|
|
8
|
+
cursor?: string;
|
|
9
|
+
drafts: AppBskyDraftDefs.DraftView[];
|
|
10
|
+
}
|
|
11
|
+
export type HandlerInput = void;
|
|
12
|
+
export interface HandlerSuccess {
|
|
13
|
+
encoding: 'application/json';
|
|
14
|
+
body: OutputSchema;
|
|
15
|
+
headers?: {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface HandlerError {
|
|
20
|
+
status: number;
|
|
21
|
+
message?: string;
|
|
22
|
+
}
|
|
23
|
+
export type HandlerOutput = HandlerError | HandlerSuccess;
|
|
24
|
+
//# sourceMappingURL=getDrafts.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDrafts.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/draft/getDrafts.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,MAAM,MAAM,WAAW,GAAG;IACxB,KAAK,EAAE,MAAM,CAAA;IACb,MAAM,CAAC,EAAE,MAAM,CAAA;CAChB,CAAA;AACD,MAAM,MAAM,WAAW,GAAG,SAAS,CAAA;AAEnC,MAAM,WAAW,YAAY;IAC3B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,MAAM,EAAE,gBAAgB,CAAC,SAAS,EAAE,CAAA;CACrC;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"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
4
|
+
const util_1 = require("../../../../util");
|
|
5
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
6
|
+
const id = 'app.bsky.draft.getDrafts';
|
|
7
|
+
//# sourceMappingURL=getDrafts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"getDrafts.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/draft/getDrafts.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,0BAA0B,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 AppBskyDraftDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.draft.getDrafts'\n\nexport type QueryParams = {\n limit: number\n cursor?: string\n}\nexport type InputSchema = undefined\n\nexport interface OutputSchema {\n cursor?: string\n drafts: AppBskyDraftDefs.DraftView[]\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"]}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import type * as AppBskyDraftDefs from './defs.js';
|
|
2
|
+
export type QueryParams = {};
|
|
3
|
+
export interface InputSchema {
|
|
4
|
+
draft: AppBskyDraftDefs.DraftWithId;
|
|
5
|
+
}
|
|
6
|
+
export interface HandlerInput {
|
|
7
|
+
encoding: 'application/json';
|
|
8
|
+
body: InputSchema;
|
|
9
|
+
}
|
|
10
|
+
export interface HandlerError {
|
|
11
|
+
status: number;
|
|
12
|
+
message?: string;
|
|
13
|
+
}
|
|
14
|
+
export type HandlerOutput = HandlerError | void;
|
|
15
|
+
//# sourceMappingURL=updateDraft.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateDraft.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/draft/updateDraft.ts"],"names":[],"mappings":"AAWA,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,MAAM,MAAM,WAAW,GAAG,EAAE,CAAA;AAE5B,MAAM,WAAW,WAAW;IAC1B,KAAK,EAAE,gBAAgB,CAAC,WAAW,CAAA;CACpC;AAED,MAAM,WAAW,YAAY;IAC3B,QAAQ,EAAE,kBAAkB,CAAA;IAC5B,IAAI,EAAE,WAAW,CAAA;CAClB;AAED,MAAM,WAAW,YAAY;IAC3B,MAAM,EAAE,MAAM,CAAA;IACd,OAAO,CAAC,EAAE,MAAM,CAAA;CACjB;AAED,MAAM,MAAM,aAAa,GAAG,YAAY,GAAG,IAAI,CAAA"}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const lexicons_1 = require("../../../../lexicons");
|
|
4
|
+
const util_1 = require("../../../../util");
|
|
5
|
+
const is$typed = util_1.is$typed, validate = lexicons_1.validate;
|
|
6
|
+
const id = 'app.bsky.draft.updateDraft';
|
|
7
|
+
//# sourceMappingURL=updateDraft.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"updateDraft.js","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/draft/updateDraft.ts"],"names":[],"mappings":";;AAKA,mDAA4D;AAC5D,2CAIyB;AAGzB,MAAM,QAAQ,GAAG,eAAS,EACxB,QAAQ,GAAG,mBAAS,CAAA;AACtB,MAAM,EAAE,GAAG,4BAA4B,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 AppBskyDraftDefs from './defs.js'\n\nconst is$typed = _is$typed,\n validate = _validate\nconst id = 'app.bsky.draft.updateDraft'\n\nexport type QueryParams = {}\n\nexport interface InputSchema {\n draft: AppBskyDraftDefs.DraftWithId\n}\n\nexport interface HandlerInput {\n encoding: 'application/json'\n body: InputSchema\n}\n\nexport interface HandlerError {\n status: number\n message?: string\n}\n\nexport type HandlerOutput = HandlerError | void\n"]}
|
|
@@ -11,6 +11,8 @@ export interface Main {
|
|
|
11
11
|
/** Alt text description of the video, for accessibility. */
|
|
12
12
|
alt?: string;
|
|
13
13
|
aspectRatio?: AppBskyEmbedDefs.AspectRatio;
|
|
14
|
+
/** A hint to the client about how to present the video. */
|
|
15
|
+
presentation?: 'default' | 'gif' | (string & {});
|
|
14
16
|
}
|
|
15
17
|
export declare function isMain<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.embed.video", "main">;
|
|
16
18
|
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
@@ -28,6 +30,8 @@ export interface View {
|
|
|
28
30
|
thumbnail?: string;
|
|
29
31
|
alt?: string;
|
|
30
32
|
aspectRatio?: AppBskyEmbedDefs.AspectRatio;
|
|
33
|
+
/** A hint to the client about how to present the video. */
|
|
34
|
+
presentation?: 'default' | 'gif' | (string & {});
|
|
31
35
|
}
|
|
32
36
|
export declare function isView<V>(v: V): v is import("../../../../util").$TypedObject<V, "app.bsky.embed.video", "view">;
|
|
33
37
|
export declare function validateView<V>(v: V): ValidationResult<View & V>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/embed/video.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,sBAAsB,CAAA;IAC9B,wEAAwE;IACxE,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;IACpB,4DAA4D;IAC5D,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAA;
|
|
1
|
+
{"version":3,"file":"video.d.ts","sourceRoot":"","sources":["../../../../../../src/lexicon/types/app/bsky/embed/video.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,KAAK,gBAAgB,EAAE,OAAO,EAAE,MAAM,kBAAkB,CAAA;AAQjE,OAAO,KAAK,KAAK,gBAAgB,MAAM,WAAW,CAAA;AAMlD,MAAM,WAAW,IAAI;IACnB,KAAK,CAAC,EAAE,sBAAsB,CAAA;IAC9B,wEAAwE;IACxE,KAAK,EAAE,OAAO,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,EAAE,CAAA;IACpB,4DAA4D;IAC5D,GAAG,CAAC,EAAE,MAAM,CAAA;IACZ,WAAW,CAAC,EAAE,gBAAgB,CAAC,WAAW,CAAA;IAC1C,2DAA2D;IAC3D,YAAY,CAAC,EAAE,SAAS,GAAG,KAAK,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,CAAA;CACjD;AAID,wBAAgB,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,mFAE7B;AAED,wBAAgB,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,8BA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