techne-sdk 0.0.0-stage → 0.1.0
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/LICENSE +21 -0
- package/README.md +85 -2
- package/dist/catalog/catalog.gen.d.ts +841 -0
- package/dist/catalog/catalog.gen.js +29696 -0
- package/dist/catalog/index.d.ts +11 -0
- package/dist/catalog/index.js +11 -0
- package/dist/connect.d.ts +38 -0
- package/dist/connect.js +18 -0
- package/dist/generated/index.d.ts +2296 -0
- package/dist/generated/index.js +3320 -0
- package/dist/generated/lexicons.d.ts +17254 -0
- package/dist/generated/lexicons.js +9225 -0
- package/dist/generated/nsid.d.ts +529 -0
- package/dist/generated/nsid.js +1094 -0
- package/dist/generated/nsid.json +1082 -0
- package/dist/generated/records.d.ts +143 -0
- package/dist/generated/records.js +1 -0
- package/dist/generated/types/app/bsky/richtext/facet.d.ts +44 -0
- package/dist/generated/types/app/bsky/richtext/facet.js +39 -0
- package/dist/generated/types/com/atproto/admin/defs.d.ts +10 -0
- package/dist/generated/types/com/atproto/admin/defs.js +11 -0
- package/dist/generated/types/com/atproto/label/defs.d.ts +73 -0
- package/dist/generated/types/com/atproto/label/defs.js +39 -0
- package/dist/generated/types/com/atproto/moderation/createReport.d.ts +39 -0
- package/dist/generated/types/com/atproto/moderation/createReport.js +7 -0
- package/dist/generated/types/com/atproto/moderation/defs.d.ts +15 -0
- package/dist/generated/types/com/atproto/moderation/defs.js +18 -0
- package/dist/generated/types/com/atproto/repo/applyWrites.d.ts +88 -0
- package/dist/generated/types/com/atproto/repo/applyWrites.js +62 -0
- package/dist/generated/types/com/atproto/repo/createRecord.d.ts +43 -0
- package/dist/generated/types/com/atproto/repo/createRecord.js +20 -0
- package/dist/generated/types/com/atproto/repo/defs.d.ts +11 -0
- package/dist/generated/types/com/atproto/repo/defs.js +11 -0
- package/dist/generated/types/com/atproto/repo/deleteRecord.d.ts +36 -0
- package/dist/generated/types/com/atproto/repo/deleteRecord.js +20 -0
- package/dist/generated/types/com/atproto/repo/getRecord.d.ts +35 -0
- package/dist/generated/types/com/atproto/repo/getRecord.js +20 -0
- package/dist/generated/types/com/atproto/repo/listRecords.d.ts +41 -0
- package/dist/generated/types/com/atproto/repo/listRecords.js +14 -0
- package/dist/generated/types/com/atproto/repo/putRecord.d.ts +45 -0
- package/dist/generated/types/com/atproto/repo/putRecord.js +20 -0
- package/dist/generated/types/com/atproto/repo/strongRef.d.ts +11 -0
- package/dist/generated/types/com/atproto/repo/strongRef.js +11 -0
- package/dist/generated/types/com/atproto/server/getServiceAuth.d.ts +29 -0
- package/dist/generated/types/com/atproto/server/getServiceAuth.js +20 -0
- package/dist/generated/types/community/lexicon/calendar/event.d.ts +65 -0
- package/dist/generated/types/community/lexicon/calendar/event.js +35 -0
- package/dist/generated/types/community/lexicon/calendar/rsvp.d.ts +20 -0
- package/dist/generated/types/community/lexicon/calendar/rsvp.js +18 -0
- package/dist/generated/types/community/lexicon/location/address.d.ts +22 -0
- package/dist/generated/types/community/lexicon/location/address.js +11 -0
- package/dist/generated/types/community/lexicon/location/fsq.d.ts +16 -0
- package/dist/generated/types/community/lexicon/location/fsq.js +11 -0
- package/dist/generated/types/community/lexicon/location/geo.d.ts +15 -0
- package/dist/generated/types/community/lexicon/location/geo.js +11 -0
- package/dist/generated/types/community/lexicon/location/hthree.d.ts +14 -0
- package/dist/generated/types/community/lexicon/location/hthree.js +11 -0
- package/dist/generated/types/pub/techne/draft/accessRule.d.ts +36 -0
- package/dist/generated/types/pub/techne/draft/accessRule.js +33 -0
- package/dist/generated/types/pub/techne/draft/accountLink.d.ts +16 -0
- package/dist/generated/types/pub/techne/draft/accountLink.js +12 -0
- package/dist/generated/types/pub/techne/draft/actor/profile.d.ts +20 -0
- package/dist/generated/types/pub/techne/draft/actor/profile.js +12 -0
- package/dist/generated/types/pub/techne/draft/appAccess.d.ts +25 -0
- package/dist/generated/types/pub/techne/draft/appAccess.js +19 -0
- package/dist/generated/types/pub/techne/draft/appAccessRequest.d.ts +16 -0
- package/dist/generated/types/pub/techne/draft/appAccessRequest.js +12 -0
- package/dist/generated/types/pub/techne/draft/appConfig.d.ts +24 -0
- package/dist/generated/types/pub/techne/draft/appConfig.js +19 -0
- package/dist/generated/types/pub/techne/draft/approval.d.ts +18 -0
- package/dist/generated/types/pub/techne/draft/approval.js +12 -0
- package/dist/generated/types/pub/techne/draft/assessment.d.ts +36 -0
- package/dist/generated/types/pub/techne/draft/assessment.js +26 -0
- package/dist/generated/types/pub/techne/draft/attentionPrefs.d.ts +14 -0
- package/dist/generated/types/pub/techne/draft/attentionPrefs.js +12 -0
- package/dist/generated/types/pub/techne/draft/beacon.d.ts +17 -0
- package/dist/generated/types/pub/techne/draft/beacon.js +12 -0
- package/dist/generated/types/pub/techne/draft/beaconLists.d.ts +13 -0
- package/dist/generated/types/pub/techne/draft/beaconLists.js +12 -0
- package/dist/generated/types/pub/techne/draft/beaconSpot.d.ts +17 -0
- package/dist/generated/types/pub/techne/draft/beaconSpot.js +12 -0
- package/dist/generated/types/pub/techne/draft/block.d.ts +14 -0
- package/dist/generated/types/pub/techne/draft/block.js +12 -0
- package/dist/generated/types/pub/techne/draft/channelVerification.d.ts +15 -0
- package/dist/generated/types/pub/techne/draft/channelVerification.js +12 -0
- package/dist/generated/types/pub/techne/draft/circleBeacon.d.ts +14 -0
- package/dist/generated/types/pub/techne/draft/circleBeacon.js +12 -0
- package/dist/generated/types/pub/techne/draft/collective.d.ts +29 -0
- package/dist/generated/types/pub/techne/draft/collective.js +12 -0
- package/dist/generated/types/pub/techne/draft/commons/createServiceAccount.d.ts +47 -0
- package/dist/generated/types/pub/techne/draft/commons/createServiceAccount.js +55 -0
- package/dist/generated/types/pub/techne/draft/commons/getVersions.d.ts +78 -0
- package/dist/generated/types/pub/techne/draft/commons/getVersions.js +41 -0
- package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.d.ts +45 -0
- package/dist/generated/types/pub/techne/draft/commons/moveAccountHandle.js +48 -0
- package/dist/generated/types/pub/techne/draft/commons/runChain.d.ts +53 -0
- package/dist/generated/types/pub/techne/draft/commons/runChain.js +34 -0
- package/dist/generated/types/pub/techne/draft/connection.d.ts +16 -0
- package/dist/generated/types/pub/techne/draft/connection.js +12 -0
- package/dist/generated/types/pub/techne/draft/contact.d.ts +20 -0
- package/dist/generated/types/pub/techne/draft/contact.js +12 -0
- package/dist/generated/types/pub/techne/draft/contactChannel.d.ts +18 -0
- package/dist/generated/types/pub/techne/draft/contactChannel.js +12 -0
- package/dist/generated/types/pub/techne/draft/contactList.d.ts +14 -0
- package/dist/generated/types/pub/techne/draft/contactList.js +12 -0
- package/dist/generated/types/pub/techne/draft/containedIn.d.ts +17 -0
- package/dist/generated/types/pub/techne/draft/containedIn.js +12 -0
- package/dist/generated/types/pub/techne/draft/credential.d.ts +39 -0
- package/dist/generated/types/pub/techne/draft/credential.js +19 -0
- package/dist/generated/types/pub/techne/draft/credentialRevocation.d.ts +14 -0
- package/dist/generated/types/pub/techne/draft/credentialRevocation.js +12 -0
- package/dist/generated/types/pub/techne/draft/derivation.d.ts +50 -0
- package/dist/generated/types/pub/techne/draft/derivation.js +26 -0
- package/dist/generated/types/pub/techne/draft/description.d.ts +17 -0
- package/dist/generated/types/pub/techne/draft/description.js +12 -0
- package/dist/generated/types/pub/techne/draft/distinctFrom.d.ts +15 -0
- package/dist/generated/types/pub/techne/draft/distinctFrom.js +12 -0
- package/dist/generated/types/pub/techne/draft/evaluation.d.ts +18 -0
- package/dist/generated/types/pub/techne/draft/evaluation.js +12 -0
- package/dist/generated/types/pub/techne/draft/event/config.d.ts +22 -0
- package/dist/generated/types/pub/techne/draft/event/config.js +12 -0
- package/dist/generated/types/pub/techne/draft/event/detail.d.ts +25 -0
- package/dist/generated/types/pub/techne/draft/event/detail.js +12 -0
- package/dist/generated/types/pub/techne/draft/event/listing.d.ts +14 -0
- package/dist/generated/types/pub/techne/draft/event/listing.js +12 -0
- package/dist/generated/types/pub/techne/draft/feed/recipe.d.ts +50 -0
- package/dist/generated/types/pub/techne/draft/feed/recipe.js +26 -0
- package/dist/generated/types/pub/techne/draft/geo.d.ts +19 -0
- package/dist/generated/types/pub/techne/draft/geo.js +12 -0
- package/dist/generated/types/pub/techne/draft/heldAt.d.ts +17 -0
- package/dist/generated/types/pub/techne/draft/heldAt.js +12 -0
- package/dist/generated/types/pub/techne/draft/identity/accountsForPhones.d.ts +43 -0
- package/dist/generated/types/pub/techne/draft/identity/accountsForPhones.js +41 -0
- package/dist/generated/types/pub/techne/draft/identity/attest.d.ts +48 -0
- package/dist/generated/types/pub/techne/draft/identity/attest.js +48 -0
- package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.d.ts +35 -0
- package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.js +34 -0
- package/dist/generated/types/pub/techne/draft/identity/checkLinkToken.d.ts +41 -0
- package/dist/generated/types/pub/techne/draft/identity/checkLinkToken.js +41 -0
- package/dist/generated/types/pub/techne/draft/identity/createCollective.d.ts +28 -0
- package/dist/generated/types/pub/techne/draft/identity/createCollective.js +20 -0
- package/dist/generated/types/pub/techne/draft/identity/createLinkToken.d.ts +47 -0
- package/dist/generated/types/pub/techne/draft/identity/createLinkToken.js +48 -0
- package/dist/generated/types/pub/techne/draft/identity/defs.d.ts +75 -0
- package/dist/generated/types/pub/techne/draft/identity/defs.js +53 -0
- package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.d.ts +46 -0
- package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.js +34 -0
- package/dist/generated/types/pub/techne/draft/identity/fold.d.ts +37 -0
- package/dist/generated/types/pub/techne/draft/identity/fold.js +34 -0
- package/dist/generated/types/pub/techne/draft/identity/holdForPhone.d.ts +54 -0
- package/dist/generated/types/pub/techne/draft/identity/holdForPhone.js +41 -0
- package/dist/generated/types/pub/techne/draft/identity/link.d.ts +35 -0
- package/dist/generated/types/pub/techne/draft/identity/link.js +34 -0
- package/dist/generated/types/pub/techne/draft/identity/linkRedeemed.d.ts +46 -0
- package/dist/generated/types/pub/techne/draft/identity/linkRedeemed.js +48 -0
- package/dist/generated/types/pub/techne/draft/identity/linkRedemption.d.ts +18 -0
- package/dist/generated/types/pub/techne/draft/identity/linkRedemption.js +12 -0
- package/dist/generated/types/pub/techne/draft/identity/listLinkRedemptions.d.ts +36 -0
- package/dist/generated/types/pub/techne/draft/identity/listLinkRedemptions.js +41 -0
- package/dist/generated/types/pub/techne/draft/identity/listLinkTokens.d.ts +39 -0
- package/dist/generated/types/pub/techne/draft/identity/listLinkTokens.js +41 -0
- package/dist/generated/types/pub/techne/draft/identity/listMethods.d.ts +24 -0
- package/dist/generated/types/pub/techne/draft/identity/listMethods.js +20 -0
- package/dist/generated/types/pub/techne/draft/identity/listPhoneHolds.d.ts +49 -0
- package/dist/generated/types/pub/techne/draft/identity/listPhoneHolds.js +34 -0
- package/dist/generated/types/pub/techne/draft/identity/redeemLinkToken.d.ts +47 -0
- package/dist/generated/types/pub/techne/draft/identity/redeemLinkToken.js +55 -0
- package/dist/generated/types/pub/techne/draft/identity/releasePhoneHold.d.ts +32 -0
- package/dist/generated/types/pub/techne/draft/identity/releasePhoneHold.js +34 -0
- package/dist/generated/types/pub/techne/draft/identity/resetLinkToken.d.ts +45 -0
- package/dist/generated/types/pub/techne/draft/identity/resetLinkToken.js +48 -0
- package/dist/generated/types/pub/techne/draft/identity/resolve.d.ts +39 -0
- package/dist/generated/types/pub/techne/draft/identity/resolve.js +34 -0
- package/dist/generated/types/pub/techne/draft/identity/revokeLinkToken.d.ts +36 -0
- package/dist/generated/types/pub/techne/draft/identity/revokeLinkToken.js +41 -0
- package/dist/generated/types/pub/techne/draft/identity/unlinkAccount.d.ts +29 -0
- package/dist/generated/types/pub/techne/draft/identity/unlinkAccount.js +27 -0
- package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.d.ts +32 -0
- package/dist/generated/types/pub/techne/draft/identity/unlinkMethod.js +34 -0
- package/dist/generated/types/pub/techne/draft/interest.d.ts +14 -0
- package/dist/generated/types/pub/techne/draft/interest.js +12 -0
- package/dist/generated/types/pub/techne/draft/introProposal.d.ts +28 -0
- package/dist/generated/types/pub/techne/draft/introProposal.js +19 -0
- package/dist/generated/types/pub/techne/draft/invite.d.ts +16 -0
- package/dist/generated/types/pub/techne/draft/invite.js +12 -0
- package/dist/generated/types/pub/techne/draft/market/ask.d.ts +18 -0
- package/dist/generated/types/pub/techne/draft/market/ask.js +12 -0
- package/dist/generated/types/pub/techne/draft/market/offer.d.ts +14 -0
- package/dist/generated/types/pub/techne/draft/market/offer.js +12 -0
- package/dist/generated/types/pub/techne/draft/membership.d.ts +22 -0
- package/dist/generated/types/pub/techne/draft/membership.js +12 -0
- package/dist/generated/types/pub/techne/draft/notificationState.d.ts +18 -0
- package/dist/generated/types/pub/techne/draft/notificationState.js +12 -0
- package/dist/generated/types/pub/techne/draft/operator.d.ts +20 -0
- package/dist/generated/types/pub/techne/draft/operator.js +12 -0
- package/dist/generated/types/pub/techne/draft/org.d.ts +42 -0
- package/dist/generated/types/pub/techne/draft/org.js +19 -0
- package/dist/generated/types/pub/techne/draft/passage.d.ts +18 -0
- package/dist/generated/types/pub/techne/draft/passage.js +12 -0
- package/dist/generated/types/pub/techne/draft/pendingBeaconSpot.d.ts +19 -0
- package/dist/generated/types/pub/techne/draft/pendingBeaconSpot.js +12 -0
- package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.d.ts +47 -0
- package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.js +55 -0
- package/dist/generated/types/pub/techne/draft/permissioned/getGrants.d.ts +32 -0
- package/dist/generated/types/pub/techne/draft/permissioned/getGrants.js +34 -0
- package/dist/generated/types/pub/techne/draft/permissioned/getRecord.d.ts +36 -0
- package/dist/generated/types/pub/techne/draft/permissioned/getRecord.js +34 -0
- package/dist/generated/types/pub/techne/draft/permissioned/listChanges.d.ts +71 -0
- package/dist/generated/types/pub/techne/draft/permissioned/listChanges.js +41 -0
- package/dist/generated/types/pub/techne/draft/permissioned/listRecords.d.ts +53 -0
- package/dist/generated/types/pub/techne/draft/permissioned/listRecords.js +34 -0
- package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +70 -0
- package/dist/generated/types/pub/techne/draft/permissioned/putRecord.js +76 -0
- package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +84 -0
- package/dist/generated/types/pub/techne/draft/permissioned/putRecords.js +69 -0
- package/dist/generated/types/pub/techne/draft/place.d.ts +36 -0
- package/dist/generated/types/pub/techne/draft/place.js +19 -0
- package/dist/generated/types/pub/techne/draft/post.d.ts +30 -0
- package/dist/generated/types/pub/techne/draft/post.js +19 -0
- package/dist/generated/types/pub/techne/draft/presence.d.ts +16 -0
- package/dist/generated/types/pub/techne/draft/presence.js +12 -0
- package/dist/generated/types/pub/techne/draft/profile.d.ts +53 -0
- package/dist/generated/types/pub/techne/draft/profile.js +33 -0
- package/dist/generated/types/pub/techne/draft/provenance.d.ts +52 -0
- package/dist/generated/types/pub/techne/draft/provenance.js +33 -0
- package/dist/generated/types/pub/techne/draft/publisher.d.ts +43 -0
- package/dist/generated/types/pub/techne/draft/publisher.js +19 -0
- package/dist/generated/types/pub/techne/draft/query/countRecords.d.ts +47 -0
- package/dist/generated/types/pub/techne/draft/query/countRecords.js +34 -0
- package/dist/generated/types/pub/techne/draft/query/getRecords.d.ts +86 -0
- package/dist/generated/types/pub/techne/draft/query/getRecords.js +48 -0
- package/dist/generated/types/pub/techne/draft/query/listRecords.d.ts +83 -0
- package/dist/generated/types/pub/techne/draft/query/listRecords.js +34 -0
- package/dist/generated/types/pub/techne/draft/query/listRejections.d.ts +50 -0
- package/dist/generated/types/pub/techne/draft/query/listRejections.js +27 -0
- package/dist/generated/types/pub/techne/draft/questionSet.d.ts +31 -0
- package/dist/generated/types/pub/techne/draft/questionSet.js +19 -0
- package/dist/generated/types/pub/techne/draft/receipt.d.ts +16 -0
- package/dist/generated/types/pub/techne/draft/receipt.js +12 -0
- package/dist/generated/types/pub/techne/draft/reflection.d.ts +20 -0
- package/dist/generated/types/pub/techne/draft/reflection.js +12 -0
- package/dist/generated/types/pub/techne/draft/retirement.d.ts +16 -0
- package/dist/generated/types/pub/techne/draft/retirement.js +12 -0
- package/dist/generated/types/pub/techne/draft/rsvpNote.d.ts +16 -0
- package/dist/generated/types/pub/techne/draft/rsvpNote.js +12 -0
- package/dist/generated/types/pub/techne/draft/sameAs.d.ts +15 -0
- package/dist/generated/types/pub/techne/draft/sameAs.js +12 -0
- package/dist/generated/types/pub/techne/draft/scraper/cursor.d.ts +17 -0
- package/dist/generated/types/pub/techne/draft/scraper/cursor.js +12 -0
- package/dist/generated/types/pub/techne/draft/scraper/raw.d.ts +31 -0
- package/dist/generated/types/pub/techne/draft/scraper/raw.js +12 -0
- package/dist/generated/types/pub/techne/draft/share.d.ts +14 -0
- package/dist/generated/types/pub/techne/draft/share.js +12 -0
- package/dist/generated/types/pub/techne/draft/source.d.ts +23 -0
- package/dist/generated/types/pub/techne/draft/source.js +12 -0
- package/dist/generated/types/pub/techne/draft/sourceAttribution.d.ts +25 -0
- package/dist/generated/types/pub/techne/draft/sourceAttribution.js +12 -0
- package/dist/generated/types/pub/techne/draft/sourceRef.d.ts +23 -0
- package/dist/generated/types/pub/techne/draft/sourceRef.js +12 -0
- package/dist/generated/types/pub/techne/draft/subjectPrefs.d.ts +18 -0
- package/dist/generated/types/pub/techne/draft/subjectPrefs.js +12 -0
- package/dist/generated/types/pub/techne/draft/sync/indexRecord.d.ts +48 -0
- package/dist/generated/types/pub/techne/draft/sync/indexRecord.js +55 -0
- package/dist/generated/types/pub/techne/draft/verdict.d.ts +16 -0
- package/dist/generated/types/pub/techne/draft/verdict.js +12 -0
- package/dist/generated/types/pub/techne/draft/verification.d.ts +14 -0
- package/dist/generated/types/pub/techne/draft/verification.js +12 -0
- package/dist/generated/types/pub/techne/draft/weeklyCheckIn.d.ts +21 -0
- package/dist/generated/types/pub/techne/draft/weeklyCheckIn.js +12 -0
- package/dist/generated/types/social/scenius/approveAppAccess.d.ts +36 -0
- package/dist/generated/types/social/scenius/approveAppAccess.js +27 -0
- package/dist/generated/types/social/scenius/createCirclePost.d.ts +39 -0
- package/dist/generated/types/social/scenius/createCirclePost.js +41 -0
- package/dist/generated/types/social/scenius/createContactInvite.d.ts +41 -0
- package/dist/generated/types/social/scenius/createContactInvite.js +34 -0
- package/dist/generated/types/social/scenius/deleteCirclePost.d.ts +34 -0
- package/dist/generated/types/social/scenius/deleteCirclePost.js +34 -0
- package/dist/generated/types/social/scenius/deleteCircleProfile.d.ts +33 -0
- package/dist/generated/types/social/scenius/deleteCircleProfile.js +34 -0
- package/dist/generated/types/social/scenius/getAppAccess.d.ts +30 -0
- package/dist/generated/types/social/scenius/getAppAccess.js +27 -0
- package/dist/generated/types/social/scenius/getAppConfig.d.ts +26 -0
- package/dist/generated/types/social/scenius/getAppConfig.js +7 -0
- package/dist/generated/types/social/scenius/getCircleThread.d.ts +48 -0
- package/dist/generated/types/social/scenius/getCircleThread.js +41 -0
- package/dist/generated/types/social/scenius/getContactInvite.d.ts +37 -0
- package/dist/generated/types/social/scenius/getContactInvite.js +27 -0
- package/dist/generated/types/social/scenius/listAppAccess.d.ts +35 -0
- package/dist/generated/types/social/scenius/listAppAccess.js +27 -0
- package/dist/generated/types/social/scenius/listCirclePosts.d.ts +47 -0
- package/dist/generated/types/social/scenius/listCirclePosts.js +34 -0
- package/dist/generated/types/social/scenius/listCircleProfiles.d.ts +50 -0
- package/dist/generated/types/social/scenius/listCircleProfiles.js +41 -0
- package/dist/generated/types/social/scenius/previewContactInvite.d.ts +37 -0
- package/dist/generated/types/social/scenius/previewContactInvite.js +34 -0
- package/dist/generated/types/social/scenius/putCircleProfile.d.ts +39 -0
- package/dist/generated/types/social/scenius/putCircleProfile.js +41 -0
- package/dist/generated/types/social/scenius/redeemContactInvite.d.ts +43 -0
- package/dist/generated/types/social/scenius/redeemContactInvite.js +48 -0
- package/dist/generated/types/social/scenius/revokeContactInvite.d.ts +33 -0
- package/dist/generated/types/social/scenius/revokeContactInvite.js +20 -0
- package/dist/generated/util.d.ts +36 -0
- package/dist/generated/util.js +32 -0
- package/dist/links/index.d.ts +65 -0
- package/dist/links/index.js +119 -0
- package/dist/put/contacts.d.ts +29 -0
- package/dist/put/contacts.js +109 -0
- package/dist/put/index.d.ts +148 -0
- package/dist/put/index.js +252 -0
- package/dist/query/hosts.d.ts +77 -0
- package/dist/query/hosts.js +227 -0
- package/dist/query/index.d.ts +201 -0
- package/dist/query/index.js +167 -0
- package/dist/versions/index.d.ts +121 -0
- package/dist/versions/index.js +90 -0
- package/dist/versions/react.d.ts +53 -0
- package/dist/versions/react.js +81 -0
- package/dist/wasm/index.d.ts +73 -0
- package/dist/wasm/index.js +51 -0
- package/dist/wasm/load.d.ts +2 -0
- package/dist/wasm/load.js +16 -0
- package/dist/wasm/load.native.d.ts +11 -0
- package/dist/wasm/load.native.js +3 -0
- package/dist/wasm/techne-wasm.gen.d.ts +2 -0
- package/dist/wasm/techne-wasm.gen.js +3 -0
- package/dist/wasm/techne-wasm2js.gen.d.ts +6 -0
- package/dist/wasm/techne-wasm2js.gen.js +90023 -0
- package/package.json +126 -4
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { validate as _validate } from '../../../../../lexicons.js';
|
|
6
|
+
import { is$typed as _is$typed, } from '../../../../../util.js';
|
|
7
|
+
const is$typed = _is$typed, validate = _validate;
|
|
8
|
+
const id = 'pub.techne.draft.permissioned.putRecord';
|
|
9
|
+
export class InvalidRequestError extends XRPCError {
|
|
10
|
+
constructor(src) {
|
|
11
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class ForbiddenError extends XRPCError {
|
|
15
|
+
constructor(src) {
|
|
16
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export class AccountDeletingError extends XRPCError {
|
|
20
|
+
constructor(src) {
|
|
21
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export class InvalidSwapError extends XRPCError {
|
|
25
|
+
constructor(src) {
|
|
26
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export class AuthenticationRequiredError extends XRPCError {
|
|
30
|
+
constructor(src) {
|
|
31
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export class ConflictError extends XRPCError {
|
|
35
|
+
constructor(src) {
|
|
36
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
export class IdentityConflictError extends XRPCError {
|
|
40
|
+
constructor(src) {
|
|
41
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
export class DuplicatePhoneError extends XRPCError {
|
|
45
|
+
constructor(src) {
|
|
46
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
47
|
+
}
|
|
48
|
+
}
|
|
49
|
+
export class RateLimitExceededError extends XRPCError {
|
|
50
|
+
constructor(src) {
|
|
51
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
export function toKnownErr(e) {
|
|
55
|
+
if (e instanceof XRPCError) {
|
|
56
|
+
if (e.error === 'InvalidRequest')
|
|
57
|
+
return new InvalidRequestError(e);
|
|
58
|
+
if (e.error === 'Forbidden')
|
|
59
|
+
return new ForbiddenError(e);
|
|
60
|
+
if (e.error === 'AccountDeleting')
|
|
61
|
+
return new AccountDeletingError(e);
|
|
62
|
+
if (e.error === 'InvalidSwap')
|
|
63
|
+
return new InvalidSwapError(e);
|
|
64
|
+
if (e.error === 'AuthenticationRequired')
|
|
65
|
+
return new AuthenticationRequiredError(e);
|
|
66
|
+
if (e.error === 'Conflict')
|
|
67
|
+
return new ConflictError(e);
|
|
68
|
+
if (e.error === 'IdentityConflict')
|
|
69
|
+
return new IdentityConflictError(e);
|
|
70
|
+
if (e.error === 'DuplicatePhone')
|
|
71
|
+
return new DuplicatePhoneError(e);
|
|
72
|
+
if (e.error === 'RateLimitExceeded')
|
|
73
|
+
return new RateLimitExceededError(e);
|
|
74
|
+
}
|
|
75
|
+
return e;
|
|
76
|
+
}
|
|
@@ -0,0 +1,84 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { HeadersMap, XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
6
|
+
import { type $Typed } from '../../../../../util.js';
|
|
7
|
+
export type QueryParams = {};
|
|
8
|
+
export interface InputSchema {
|
|
9
|
+
/** The owner's DID. Must equal the caller. */
|
|
10
|
+
repo: string;
|
|
11
|
+
/** The writes, applied in this order. Two writes of the same record are applied one after the other, as two putRecord calls would be. */
|
|
12
|
+
writes: Write[];
|
|
13
|
+
}
|
|
14
|
+
export interface OutputSchema {
|
|
15
|
+
/** One result per write, in the order of writes. */
|
|
16
|
+
results: ($Typed<WriteResult> | $Typed<WriteError>)[];
|
|
17
|
+
}
|
|
18
|
+
export interface CallOptions {
|
|
19
|
+
signal?: AbortSignal;
|
|
20
|
+
headers?: HeadersMap;
|
|
21
|
+
qp?: QueryParams;
|
|
22
|
+
encoding?: 'application/json';
|
|
23
|
+
}
|
|
24
|
+
export interface Response {
|
|
25
|
+
success: boolean;
|
|
26
|
+
headers: HeadersMap;
|
|
27
|
+
data: OutputSchema;
|
|
28
|
+
}
|
|
29
|
+
export declare class InvalidRequestError extends XRPCError {
|
|
30
|
+
constructor(src: XRPCError);
|
|
31
|
+
}
|
|
32
|
+
export declare class ForbiddenError extends XRPCError {
|
|
33
|
+
constructor(src: XRPCError);
|
|
34
|
+
}
|
|
35
|
+
export declare class AccountDeletingError extends XRPCError {
|
|
36
|
+
constructor(src: XRPCError);
|
|
37
|
+
}
|
|
38
|
+
export declare class AuthenticationRequiredError extends XRPCError {
|
|
39
|
+
constructor(src: XRPCError);
|
|
40
|
+
}
|
|
41
|
+
export declare class RateLimitExceededError extends XRPCError {
|
|
42
|
+
constructor(src: XRPCError);
|
|
43
|
+
}
|
|
44
|
+
export declare function toKnownErr(e: any): any;
|
|
45
|
+
/** One write: a putRecord input without repo. */
|
|
46
|
+
export interface Write {
|
|
47
|
+
$type?: 'pub.techne.draft.permissioned.putRecords#write';
|
|
48
|
+
collection: string;
|
|
49
|
+
rkey: string;
|
|
50
|
+
/** The record body. Its `$type` must equal `collection`; a collection with a published lexicon must satisfy it. */
|
|
51
|
+
record: {
|
|
52
|
+
[_ in string]: unknown;
|
|
53
|
+
};
|
|
54
|
+
/** Write only if the record's current CID is this one. A missing record never matches. */
|
|
55
|
+
swapCid?: string;
|
|
56
|
+
/** The space the record is for, as putRecord's `space`. Absent: the record is for no space, and only its writer reads it. */
|
|
57
|
+
space?: string;
|
|
58
|
+
}
|
|
59
|
+
export declare function isWrite<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.permissioned.putRecords", "write">;
|
|
60
|
+
export declare function validateWrite<V>(v: V): ValidationResult<Write & V>;
|
|
61
|
+
/** A write applied: putRecord's output for it. */
|
|
62
|
+
export interface WriteResult {
|
|
63
|
+
$type?: 'pub.techne.draft.permissioned.putRecords#writeResult';
|
|
64
|
+
uri: string;
|
|
65
|
+
/** The DAG-CBOR CID of the record, the same CID a PDS would compute. */
|
|
66
|
+
cid: string;
|
|
67
|
+
/** The repo revision of the version now current. */
|
|
68
|
+
rev: string;
|
|
69
|
+
/** As putRecord's `read`: the DIDs the `share`s placed in the space the record counts in name, when the caller may read that space; empty otherwise. */
|
|
70
|
+
read: string[];
|
|
71
|
+
/** The space the record counts in now. Absent when it counts in none. */
|
|
72
|
+
space?: string;
|
|
73
|
+
}
|
|
74
|
+
export declare function isWriteResult<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.permissioned.putRecords", "writeResult">;
|
|
75
|
+
export declare function validateWriteResult<V>(v: V): ValidationResult<WriteResult & V>;
|
|
76
|
+
/** A write refused, and nothing of it written: the error putRecord would have answered. */
|
|
77
|
+
export interface WriteError {
|
|
78
|
+
$type?: 'pub.techne.draft.permissioned.putRecords#writeError';
|
|
79
|
+
/** InvalidRequest (malformed, a body that fails its collection's published lexicon, or a record over 2 MiB, more than a putRecord body may be), InvalidSwap (swapCid did not match the current version), Conflict (the same key holds a public record in the caller's repo, or a concurrent write replaced this version before it was recorded), IdentityConflict (the write would change a contact's identity, which writing again never fixes; see putRecord) or DuplicatePhone (a contact write introduces a number another of the caller's active contacts carries; see putRecord). */
|
|
80
|
+
error: 'InvalidRequest' | 'InvalidSwap' | 'Conflict' | 'IdentityConflict' | 'DuplicatePhone' | (string & {});
|
|
81
|
+
message: string;
|
|
82
|
+
}
|
|
83
|
+
export declare function isWriteError<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.permissioned.putRecords", "writeError">;
|
|
84
|
+
export declare function validateWriteError<V>(v: V): ValidationResult<WriteError & V>;
|
|
@@ -0,0 +1,69 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { XRPCError } from '@atproto/xrpc';
|
|
5
|
+
import { validate as _validate } from '../../../../../lexicons.js';
|
|
6
|
+
import { is$typed as _is$typed, } from '../../../../../util.js';
|
|
7
|
+
const is$typed = _is$typed, validate = _validate;
|
|
8
|
+
const id = 'pub.techne.draft.permissioned.putRecords';
|
|
9
|
+
export class InvalidRequestError extends XRPCError {
|
|
10
|
+
constructor(src) {
|
|
11
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
12
|
+
}
|
|
13
|
+
}
|
|
14
|
+
export class ForbiddenError extends XRPCError {
|
|
15
|
+
constructor(src) {
|
|
16
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export class AccountDeletingError extends XRPCError {
|
|
20
|
+
constructor(src) {
|
|
21
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export class AuthenticationRequiredError extends XRPCError {
|
|
25
|
+
constructor(src) {
|
|
26
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export class RateLimitExceededError extends XRPCError {
|
|
30
|
+
constructor(src) {
|
|
31
|
+
super(src.status, src.error, src.message, src.headers, { cause: src });
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
export function toKnownErr(e) {
|
|
35
|
+
if (e instanceof XRPCError) {
|
|
36
|
+
if (e.error === 'InvalidRequest')
|
|
37
|
+
return new InvalidRequestError(e);
|
|
38
|
+
if (e.error === 'Forbidden')
|
|
39
|
+
return new ForbiddenError(e);
|
|
40
|
+
if (e.error === 'AccountDeleting')
|
|
41
|
+
return new AccountDeletingError(e);
|
|
42
|
+
if (e.error === 'AuthenticationRequired')
|
|
43
|
+
return new AuthenticationRequiredError(e);
|
|
44
|
+
if (e.error === 'RateLimitExceeded')
|
|
45
|
+
return new RateLimitExceededError(e);
|
|
46
|
+
}
|
|
47
|
+
return e;
|
|
48
|
+
}
|
|
49
|
+
const hashWrite = 'write';
|
|
50
|
+
export function isWrite(v) {
|
|
51
|
+
return is$typed(v, id, hashWrite);
|
|
52
|
+
}
|
|
53
|
+
export function validateWrite(v) {
|
|
54
|
+
return validate(v, id, hashWrite);
|
|
55
|
+
}
|
|
56
|
+
const hashWriteResult = 'writeResult';
|
|
57
|
+
export function isWriteResult(v) {
|
|
58
|
+
return is$typed(v, id, hashWriteResult);
|
|
59
|
+
}
|
|
60
|
+
export function validateWriteResult(v) {
|
|
61
|
+
return validate(v, id, hashWriteResult);
|
|
62
|
+
}
|
|
63
|
+
const hashWriteError = 'writeError';
|
|
64
|
+
export function isWriteError(v) {
|
|
65
|
+
return is$typed(v, id, hashWriteError);
|
|
66
|
+
}
|
|
67
|
+
export function validateWriteError(v) {
|
|
68
|
+
return validate(v, id, hashWriteError);
|
|
69
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import type * as CommunityLexiconLocationGeo from '../../../community/lexicon/location/geo.js';
|
|
6
|
+
import type * as CommunityLexiconLocationAddress from '../../../community/lexicon/location/address.js';
|
|
7
|
+
import type * as CommunityLexiconCalendarEvent from '../../../community/lexicon/calendar/event.js';
|
|
8
|
+
export interface Main {
|
|
9
|
+
$type: 'pub.techne.draft.place';
|
|
10
|
+
/** The place/group's display name. */
|
|
11
|
+
name: string;
|
|
12
|
+
/** What kind of directory entry this is. */
|
|
13
|
+
kind: 'business' | 'publicSpace' | 'group' | (string & {});
|
|
14
|
+
/** An Overture `categories.primary` string (e.g. `park`, `cafe`, `community_center`). Never a `LIKE '%park%'` match — consumers of the safety/park ladder use an explicit allow-list over this field. */
|
|
15
|
+
category?: string;
|
|
16
|
+
location?: CommunityLexiconLocationGeo.Main;
|
|
17
|
+
address?: CommunityLexiconLocationAddress.Main;
|
|
18
|
+
/** Named links associated with this place, such as its website. Data-source credits belong in a separate attribution record. */
|
|
19
|
+
uris?: CommunityLexiconCalendarEvent.Uri[];
|
|
20
|
+
/** External identity reconciliation — an ARRAY so a provider reissuance (e.g. a GERS id change) appends, never destroys. Absent/empty for app-created entries — NEVER a placeholder id. */
|
|
21
|
+
sameAs?: ExternalRef[];
|
|
22
|
+
createdAt: string;
|
|
23
|
+
[k: string]: unknown;
|
|
24
|
+
}
|
|
25
|
+
export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.place", "main">;
|
|
26
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
27
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
28
|
+
/** One external-provider identity for `sameAs` reconciliation. */
|
|
29
|
+
export interface ExternalRef {
|
|
30
|
+
$type?: 'pub.techne.draft.place#externalRef';
|
|
31
|
+
source: 'overture-gers' | 'fsq' | (string & {});
|
|
32
|
+
/** The raw external id, in that provider's own shape (e.g. a v4-UUID GERS id). Not regex-enforced — a provider's schema is not ours to constrain. */
|
|
33
|
+
id: string;
|
|
34
|
+
}
|
|
35
|
+
export declare function isExternalRef<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.place", "externalRef">;
|
|
36
|
+
export declare function validateExternalRef<V>(v: V): ValidationResult<ExternalRef & V>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 = 'pub.techne.draft.place';
|
|
5
|
+
const hashMain = 'main';
|
|
6
|
+
export function isMain(v) {
|
|
7
|
+
return is$typed(v, id, hashMain);
|
|
8
|
+
}
|
|
9
|
+
export function validateMain(v) {
|
|
10
|
+
return validate(v, id, hashMain, true);
|
|
11
|
+
}
|
|
12
|
+
export { isMain as isRecord, validateMain as validateRecord, };
|
|
13
|
+
const hashExternalRef = 'externalRef';
|
|
14
|
+
export function isExternalRef(v) {
|
|
15
|
+
return is$typed(v, id, hashExternalRef);
|
|
16
|
+
}
|
|
17
|
+
export function validateExternalRef(v) {
|
|
18
|
+
return validate(v, id, hashExternalRef);
|
|
19
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import type * as AppBskyRichtextFacet from '../../../app/bsky/richtext/facet.js';
|
|
6
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
7
|
+
export interface Main {
|
|
8
|
+
$type: 'pub.techne.draft.post';
|
|
9
|
+
/** Plaintext body with paragraph breaks. Writers refuse empty or whitespace-only text. */
|
|
10
|
+
text: string;
|
|
11
|
+
/** Annotations of UTF-8 byte ranges in text; never offsets into a rendered document. */
|
|
12
|
+
facets?: AppBskyRichtextFacet.Main[];
|
|
13
|
+
title?: string;
|
|
14
|
+
subject?: ComAtprotoRepoStrongRef.Main;
|
|
15
|
+
reply?: ReplyRef;
|
|
16
|
+
tags?: string[];
|
|
17
|
+
langs?: string[];
|
|
18
|
+
createdAt: string;
|
|
19
|
+
[k: string]: unknown;
|
|
20
|
+
}
|
|
21
|
+
export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.post", "main">;
|
|
22
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
23
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
24
|
+
export interface ReplyRef {
|
|
25
|
+
$type?: 'pub.techne.draft.post#replyRef';
|
|
26
|
+
root: ComAtprotoRepoStrongRef.Main;
|
|
27
|
+
parent: ComAtprotoRepoStrongRef.Main;
|
|
28
|
+
}
|
|
29
|
+
export declare function isReplyRef<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.post", "replyRef">;
|
|
30
|
+
export declare function validateReplyRef<V>(v: V): ValidationResult<ReplyRef & V>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 = 'pub.techne.draft.post';
|
|
5
|
+
const hashMain = 'main';
|
|
6
|
+
export function isMain(v) {
|
|
7
|
+
return is$typed(v, id, hashMain);
|
|
8
|
+
}
|
|
9
|
+
export function validateMain(v) {
|
|
10
|
+
return validate(v, id, hashMain, true);
|
|
11
|
+
}
|
|
12
|
+
export { isMain as isRecord, validateMain as validateRecord, };
|
|
13
|
+
const hashReplyRef = 'replyRef';
|
|
14
|
+
export function isReplyRef(v) {
|
|
15
|
+
return is$typed(v, id, hashReplyRef);
|
|
16
|
+
}
|
|
17
|
+
export function validateReplyRef(v) {
|
|
18
|
+
return validate(v, id, hashReplyRef);
|
|
19
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
6
|
+
export interface Main {
|
|
7
|
+
$type: 'pub.techne.draft.presence';
|
|
8
|
+
/** The DID who was present. */
|
|
9
|
+
subject: string;
|
|
10
|
+
event: ComAtprotoRepoStrongRef.Main;
|
|
11
|
+
createdAt: string;
|
|
12
|
+
[k: string]: unknown;
|
|
13
|
+
}
|
|
14
|
+
export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.presence", "main">;
|
|
15
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
16
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
@@ -0,0 +1,12 @@
|
|
|
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 = 'pub.techne.draft.presence';
|
|
5
|
+
const hashMain = 'main';
|
|
6
|
+
export function isMain(v) {
|
|
7
|
+
return is$typed(v, id, hashMain);
|
|
8
|
+
}
|
|
9
|
+
export function validateMain(v) {
|
|
10
|
+
return validate(v, id, hashMain, true);
|
|
11
|
+
}
|
|
12
|
+
export { isMain as isRecord, validateMain as validateRecord, };
|
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
6
|
+
export interface Main {
|
|
7
|
+
$type: 'pub.techne.draft.profile';
|
|
8
|
+
subject: ComAtprotoRepoStrongRef.Main;
|
|
9
|
+
questionSet: ComAtprotoRepoStrongRef.Main;
|
|
10
|
+
/** Producer-declared lowercase SHA-256 of the semantic input bytes. A consumer holding those bytes can verify it; the public record does not disclose them. */
|
|
11
|
+
semanticDigest: string;
|
|
12
|
+
rankingEvidenceDigest?: string;
|
|
13
|
+
answers: Answer[];
|
|
14
|
+
missing: MissingAnswer[];
|
|
15
|
+
/** Producer declares all applicable questions accounted for with answers; consumers validate against the pinned question set. */
|
|
16
|
+
complete: boolean;
|
|
17
|
+
producer: Producer;
|
|
18
|
+
producerRev: number;
|
|
19
|
+
checkedAt: string;
|
|
20
|
+
evidenceExpiresAt?: string;
|
|
21
|
+
freshnessPolicy?: string;
|
|
22
|
+
/** Exact same-issuer sourceAttribution records carrying source credits and license text for all input dependencies. Website links are separate. Omitted means no attribution references were declared, not a compliance assertion. */
|
|
23
|
+
attributions?: ComAtprotoRepoStrongRef.Main[];
|
|
24
|
+
[k: string]: unknown;
|
|
25
|
+
}
|
|
26
|
+
export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.profile", "main">;
|
|
27
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
28
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
29
|
+
export interface Answer {
|
|
30
|
+
$type?: 'pub.techne.draft.profile#answer';
|
|
31
|
+
q: string;
|
|
32
|
+
value: 'supported' | 'contradicted' | 'unknown' | 'conflicting' | (string & {});
|
|
33
|
+
method: 'model' | 'no_evidence' | (string & {});
|
|
34
|
+
/** Optional graded answer and the authority when present: round(100 x position / (levels - 1)), where position is the producer's 0-based expected level on the question's levels (round half up). 0 means clearly no, 50 means the evidence does not say, 100 means clearly yes. value must then equal its band: 75 or more is supported, 25 or less is contradicted, anything else is unknown. Absent when method is no_evidence. */
|
|
35
|
+
score?: number;
|
|
36
|
+
}
|
|
37
|
+
export declare function isAnswer<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.profile", "answer">;
|
|
38
|
+
export declare function validateAnswer<V>(v: V): ValidationResult<Answer & V>;
|
|
39
|
+
export interface MissingAnswer {
|
|
40
|
+
$type?: 'pub.techne.draft.profile#missingAnswer';
|
|
41
|
+
q: string;
|
|
42
|
+
reason: 'missing' | 'failed' | (string & {});
|
|
43
|
+
}
|
|
44
|
+
export declare function isMissingAnswer<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.profile", "missingAnswer">;
|
|
45
|
+
export declare function validateMissingAnswer<V>(v: V): ValidationResult<MissingAnswer & V>;
|
|
46
|
+
export interface Producer {
|
|
47
|
+
$type?: 'pub.techne.draft.profile#producer';
|
|
48
|
+
model: string;
|
|
49
|
+
prompt: string;
|
|
50
|
+
projection: string;
|
|
51
|
+
}
|
|
52
|
+
export declare function isProducer<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.profile", "producer">;
|
|
53
|
+
export declare function validateProducer<V>(v: V): ValidationResult<Producer & V>;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 = 'pub.techne.draft.profile';
|
|
5
|
+
const hashMain = 'main';
|
|
6
|
+
export function isMain(v) {
|
|
7
|
+
return is$typed(v, id, hashMain);
|
|
8
|
+
}
|
|
9
|
+
export function validateMain(v) {
|
|
10
|
+
return validate(v, id, hashMain, true);
|
|
11
|
+
}
|
|
12
|
+
export { isMain as isRecord, validateMain as validateRecord, };
|
|
13
|
+
const hashAnswer = 'answer';
|
|
14
|
+
export function isAnswer(v) {
|
|
15
|
+
return is$typed(v, id, hashAnswer);
|
|
16
|
+
}
|
|
17
|
+
export function validateAnswer(v) {
|
|
18
|
+
return validate(v, id, hashAnswer);
|
|
19
|
+
}
|
|
20
|
+
const hashMissingAnswer = 'missingAnswer';
|
|
21
|
+
export function isMissingAnswer(v) {
|
|
22
|
+
return is$typed(v, id, hashMissingAnswer);
|
|
23
|
+
}
|
|
24
|
+
export function validateMissingAnswer(v) {
|
|
25
|
+
return validate(v, id, hashMissingAnswer);
|
|
26
|
+
}
|
|
27
|
+
const hashProducer = 'producer';
|
|
28
|
+
export function isProducer(v) {
|
|
29
|
+
return is$typed(v, id, hashProducer);
|
|
30
|
+
}
|
|
31
|
+
export function validateProducer(v) {
|
|
32
|
+
return validate(v, id, hashProducer);
|
|
33
|
+
}
|
|
@@ -0,0 +1,52 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
|
|
6
|
+
export interface Main {
|
|
7
|
+
$type: 'pub.techne.draft.provenance';
|
|
8
|
+
subject: ComAtprotoRepoStrongRef.Main;
|
|
9
|
+
/** The source records merged into the curated record, earliest first, at the revisions used. */
|
|
10
|
+
sources: ComAtprotoRepoStrongRef.Main[];
|
|
11
|
+
/** The trusted sameAs and distinctFrom records that decided the group. */
|
|
12
|
+
assertions?: ComAtprotoRepoStrongRef.Main[];
|
|
13
|
+
/** `complete`: every source-stage rule the group depends on has finished on the current inputs. `partial`: published at the readiness cap before that, updated later. `superseded`: merged into another curated record. */
|
|
14
|
+
readiness: 'complete' | 'partial' | 'superseded' | (string & {});
|
|
15
|
+
composition?: Composition;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
[k: string]: unknown;
|
|
18
|
+
}
|
|
19
|
+
export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.provenance", "main">;
|
|
20
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
21
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
22
|
+
/** How the curated record was composed from its sources. Each source is a version, ranked: 1 a source the commons root vouches for in the collection (a mirror, a rule, a collective: its pub.techne.draft.publisher `writes` holds the collection and a live root pub.techne.draft.credential pins that declaration), 2 a verified account (a pub.techne.draft.verification by an issuer whose vouched declaration writes pub.techne.draft.verification) or a member of a collective vouched for to write membership claims (its vouched declaration's `writes` holds pub.techne.draft.membership), 3 everyone else. Per field the best rank wins, ties going to the newest edit; a rank 3 version only fills blanks or stands alone. A version with a moderation verdict the curator honours is left out (it has no rank here and gives no field), and so is a source by a retired identity: it is not a version. Readers show the composition as the default and may let a person pick another version. */
|
|
23
|
+
export interface Composition {
|
|
24
|
+
$type?: 'pub.techne.draft.provenance#composition';
|
|
25
|
+
/** The version that speaks first: always the first entry of `ranks` (best rank, newest edit), so it duplicates `ranks[0].uri`; a reader that finds them differ trusts `ranks`. Kept so readers need not re-derive the order to show who the record is from. */
|
|
26
|
+
byline: string;
|
|
27
|
+
/** Each composed source's rank, in precedence order. */
|
|
28
|
+
ranks: RankedSource[];
|
|
29
|
+
/** For each top-level field the curated record carries: which version gave it, and how many distinct values the ranked (1 and 2) versions give for it when that is two or more. */
|
|
30
|
+
fields?: FieldChoice[];
|
|
31
|
+
}
|
|
32
|
+
export declare function isComposition<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.provenance", "composition">;
|
|
33
|
+
export declare function validateComposition<V>(v: V): ValidationResult<Composition & V>;
|
|
34
|
+
export interface RankedSource {
|
|
35
|
+
$type?: 'pub.techne.draft.provenance#rankedSource';
|
|
36
|
+
uri: string;
|
|
37
|
+
/** 1 vouched source, 2 verified account or member of a collective vouched for its membership claims, 3 everyone else. */
|
|
38
|
+
rank: number;
|
|
39
|
+
}
|
|
40
|
+
export declare function isRankedSource<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.provenance", "rankedSource">;
|
|
41
|
+
export declare function validateRankedSource<V>(v: V): ValidationResult<RankedSource & V>;
|
|
42
|
+
export interface FieldChoice {
|
|
43
|
+
$type?: 'pub.techne.draft.provenance#fieldChoice';
|
|
44
|
+
/** The top-level field name (e.g. `startsAt`, `locations`, `uris`). */
|
|
45
|
+
field: string;
|
|
46
|
+
/** The version whose value the curated record carries. */
|
|
47
|
+
from: string;
|
|
48
|
+
/** Distinct values among the ranked (rank 1 and 2) versions that set this field. Absent when fewer than two: a rank 3 version never raises a conflict. */
|
|
49
|
+
conflicts?: number;
|
|
50
|
+
}
|
|
51
|
+
export declare function isFieldChoice<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.provenance", "fieldChoice">;
|
|
52
|
+
export declare function validateFieldChoice<V>(v: V): ValidationResult<FieldChoice & V>;
|
|
@@ -0,0 +1,33 @@
|
|
|
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 = 'pub.techne.draft.provenance';
|
|
5
|
+
const hashMain = 'main';
|
|
6
|
+
export function isMain(v) {
|
|
7
|
+
return is$typed(v, id, hashMain);
|
|
8
|
+
}
|
|
9
|
+
export function validateMain(v) {
|
|
10
|
+
return validate(v, id, hashMain, true);
|
|
11
|
+
}
|
|
12
|
+
export { isMain as isRecord, validateMain as validateRecord, };
|
|
13
|
+
const hashComposition = 'composition';
|
|
14
|
+
export function isComposition(v) {
|
|
15
|
+
return is$typed(v, id, hashComposition);
|
|
16
|
+
}
|
|
17
|
+
export function validateComposition(v) {
|
|
18
|
+
return validate(v, id, hashComposition);
|
|
19
|
+
}
|
|
20
|
+
const hashRankedSource = 'rankedSource';
|
|
21
|
+
export function isRankedSource(v) {
|
|
22
|
+
return is$typed(v, id, hashRankedSource);
|
|
23
|
+
}
|
|
24
|
+
export function validateRankedSource(v) {
|
|
25
|
+
return validate(v, id, hashRankedSource);
|
|
26
|
+
}
|
|
27
|
+
const hashFieldChoice = 'fieldChoice';
|
|
28
|
+
export function isFieldChoice(v) {
|
|
29
|
+
return is$typed(v, id, hashFieldChoice);
|
|
30
|
+
}
|
|
31
|
+
export function validateFieldChoice(v) {
|
|
32
|
+
return validate(v, id, hashFieldChoice);
|
|
33
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* GENERATED CODE - DO NOT MODIFY
|
|
3
|
+
*/
|
|
4
|
+
import { type ValidationResult } from '@atproto/lexicon';
|
|
5
|
+
export interface Main {
|
|
6
|
+
$type: 'pub.techne.draft.publisher';
|
|
7
|
+
/** The account's short name (e.g. `geocode`). */
|
|
8
|
+
name: string;
|
|
9
|
+
/** What a person reading the pipeline calls it (e.g. `Place match`). Wording only: it grants nothing. */
|
|
10
|
+
title?: string;
|
|
11
|
+
/** One or two plain sentences on what the account does. Wording only: it grants nothing. */
|
|
12
|
+
description?: string;
|
|
13
|
+
/** Where the account's code is published. Absent for an account that runs no code of its own (a mirror, a collective, a credential issuer). */
|
|
14
|
+
codeRepo?: string;
|
|
15
|
+
/** The commit in `codeRepo` the account runs. Present iff `codeRepo` is. */
|
|
16
|
+
commit?: string;
|
|
17
|
+
/** The record collections a rule takes as input, generated from its code: the collections whose records trigger it, plus each one an extra input it needs pulls in. Its own records are never its inputs (a rule never reads what its own DID wrote). The curator reads this to know which rules a cluster depends on before it marks the cluster `complete`, for a rule it does not host; a cluster that depends on a rule the curator cannot observe stays `partial`. */
|
|
18
|
+
reads?: string[];
|
|
19
|
+
/** The record collections the account publishes. A reader ignores records of other collections from this DID. Writes that include pub.techne.draft.provenance mark a curator: it is not waited on for readiness, and its records are never any rule's input. Writes that include pub.techne.draft.verification mark a verification issuer: a reader counts its verifications. An empty list marks a label-only rule (it publishes labels, not records); a declaration with neither writes, labels nor issues grants nothing. */
|
|
20
|
+
writes: string[];
|
|
21
|
+
/** For an account that writes pub.techne.draft.sameAs or pub.techne.draft.distinctFrom: the record collections those pairs may join (a place matcher: places). A pair naming a record of any other collection is refused. Absent for an account that writes neither. */
|
|
22
|
+
matches?: string[];
|
|
23
|
+
/** When a rule runs: `source` on source records, before they are merged (geocode, venue, dedupe, and the curator that merges them), `curated` once on each curated record (features). A curated record is fully processed when every trusted rule at stage `curated` has written a pub.techne.draft.receipt for it. Absent: `source`. */
|
|
24
|
+
stage?: 'source' | 'curated' | (string & {});
|
|
25
|
+
/** The label values (com.atproto.label.defs#label `val`, and pub.techne.draft.verdict `values`) the account may assign, for example `spam` and `obscene`. A reader honours a label or verdict from this DID only when its value is listed here. Absent: it labels nothing. */
|
|
26
|
+
labels?: string[];
|
|
27
|
+
/** The credentials the account issues about a holder's record. Its pub.techne.draft.credential counts only while the root vouches for this declaration and the attested record is in an entry's `collection`, signed and stored by the subject, when the credential's `fields` are a subset of that entry's `fields` (a whole-record credential, by `cid`, only when that entry's `fields` is empty). Absent or empty: it issues none. */
|
|
28
|
+
issues?: Issue[];
|
|
29
|
+
createdAt: string;
|
|
30
|
+
[k: string]: unknown;
|
|
31
|
+
}
|
|
32
|
+
export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.publisher", "main">;
|
|
33
|
+
export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
|
|
34
|
+
export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
|
|
35
|
+
export interface Issue {
|
|
36
|
+
$type?: 'pub.techne.draft.publisher#issue';
|
|
37
|
+
/** The collection of the holder's record the credentials attest. */
|
|
38
|
+
collection: string;
|
|
39
|
+
/** The fields of that record the account may vouch for (a credential's `fields` must be a subset). Empty: only whole-record credentials (with `cid`, no `fields`) count. */
|
|
40
|
+
fields: string[];
|
|
41
|
+
}
|
|
42
|
+
export declare function isIssue<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.publisher", "issue">;
|
|
43
|
+
export declare function validateIssue<V>(v: V): ValidationResult<Issue & V>;
|
|
@@ -0,0 +1,19 @@
|
|
|
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 = 'pub.techne.draft.publisher';
|
|
5
|
+
const hashMain = 'main';
|
|
6
|
+
export function isMain(v) {
|
|
7
|
+
return is$typed(v, id, hashMain);
|
|
8
|
+
}
|
|
9
|
+
export function validateMain(v) {
|
|
10
|
+
return validate(v, id, hashMain, true);
|
|
11
|
+
}
|
|
12
|
+
export { isMain as isRecord, validateMain as validateRecord, };
|
|
13
|
+
const hashIssue = 'issue';
|
|
14
|
+
export function isIssue(v) {
|
|
15
|
+
return is$typed(v, id, hashIssue);
|
|
16
|
+
}
|
|
17
|
+
export function validateIssue(v) {
|
|
18
|
+
return validate(v, id, hashIssue);
|
|
19
|
+
}
|