atproto 0.12.2 copy "atproto: ^0.12.2" to clipboard
atproto: ^0.12.2 copied to clipboard

The most famous and powerful Dart/Flutter library for AT Protocol.

Release Note #

v0.12.2 #

  • The service is automatically resolved from the DID Document of the given Session. (#1543)
    • If no authentication is performed and no Session is passed, the default bsky.social is used.
    • If the user passes a specific service, it always respects the value of the user's service.
    • If something wrong happens for some reason, it uses bsky.social as default.

v0.12.1 #

  • Fixed a bug that prevented toJson on freezed objects from atproto_core.

v0.12.0 #

  • Add .active and .status properties on Session and CurrentSession objects. (#1516)
  • Move BlobConverter, Blob, BlobRef from atproto package to atproto_core.
  • Add .active and .status properties on Repo object. (#1517)
  • Add .getRepoStatus method on SyncService. (#1517)
  • Applied naming convention based on lexicons on following objects.
    • SubscribedRepoCommit -> Commit
    • SubscribedRepoIdentity -> Identity
    • SubscribedRepoHandle -> Handle
    • SubscribedRepoMigrate -> Migrate
    • SubscribedRepoTombstone -> Tombstone
    • SubscribedRepoInfo -> Info
    • Account -> CreateAccountOutput
  • Add account event on SyncService.subscribeRepos. (#1517)

v0.11.15 #

  • Don't include Auth headers in .headers.

v0.11.14 #

  • Bump atproto_core. Add auth scope com.atproto.appPassPrivileged. (#1501)
  • Add .headers property. Returns the merged headers with global headers and auth header.

v0.11.13 #

  • Removed deprecated methods from following services.
    • IdentityService
    • LabelService
    • RepoService
    • ServerService
    • SyncService
  • Add headers parameters on GET endpoints. You can specify additional headers.

v0.11.12 #

  • Add privileged input and property on ServerService.createAppPassword, AppPassword. (#1494)

v0.11.11 #

  • Removed lex_annotation.
  • Removed deprecated properties on ATProto object.

v0.11.10 #

  • Add authFactorToken parameter on createSession. (#1412)
  • Add emailAuthFactor property on Session. (#1412)
  • Add emailAuthFactor property on CurrentSession. (#1412)
  • Add emailAuthFactor parameter on updateEmail. (#1412)

v0.11.9 #

  • Added global .headers on ATProto. (#1360)

v0.11.8 #

  • Supported Labeler Service's objects. (#1316)
    • LabelValue
    • LabelValueDefinition
    • LabelValueDefinitionStrings
  • Added properties on Label object.
    • ver
    • exp
    • sig
  • Added .contact property on output of ServerService.describeServer.

v0.11.7 #

  • Upgrade at_uri. (#1300)

v0.11.6 #

  • Removed temp endpoints from TempService.
    • .importRepo
    • .pushBlob
    • .transferAccount
  • Added did property on ServerInfo object. Returned from ServerService.describeServer. (#1279)
  • Added .getServiceAuth on ServerService. (#1280)
  • Added .deactivateAccount on ServerService. (#1278)
  • Added .activateAccount on ServerService. (#1276)
  • Added .checkAccountStatus on ServerService. (#1277)
  • Added .listMissingBlobs on RepoService. (#1275)
  • Added .importRepo on RepoService. (#1274)
  • Added .submitPlcOperation on IdentityService. (#1273)
  • Added .signPlcOperation on IdentityService. (#1272)
  • Added .getRecommendedDidCredentials on IdentityService. (#1270)
  • Added .requestPlcOperationSignature on IdentityService. (#1271)
  • Bump SDK constraint to '^3.3.0'.
  • Supported identity event on .subscribeRepos. (#1289)

v0.11.5 #

  • Added TempService. You can use it like atproto.temp. (#1238)
    • .checkSignupQueue
    • .importRepo
    • .pushBlob
    • .requestPhoneVerification
    • .transferAccount

v0.11.4 #

  • Improved redundant error messages. Now it shows like GET https://bsky.social/xrpc/com.atproto.identity.resolveHandle 400 Error: Params must have the property "handle". (#1253)
  • Exposed .service and .relayService properties on ATProto. (#1254)
  • BugFix: Made sure to check if the subscribeRepos blocks can be decoded. (#1239)
  • Added plcOp param on ServerService.createAccount. (#969)

v0.11.3 #

  • Added .get and .post methods on ATProto object. (#1217)
  • Added atproto/lex_namespaces package. You can use these constants for .get and .post methods.

v0.11.2 #

  • Upgraded atproto_core. (#1159)

v0.11.1 #

  • Minor improvement. (#1146)

v0.11.0 #

  • Change the method name of each service to Lexicon's ID. Existing methods have been deprecated and should be replaced according to the deprecation message. (#1127)

v0.10.1 #

  • Add rkey on .createRecord.

v0.10.0 #

  • Upgraded atproto_core. (#1112)
  • Optimized internal process. (#1114)
  • Removed streamService and added relayService instead. Defaults to bsky.network. (#1116)
  • Renamed name of service objects. (#1118)
    • IdentitiesService to IdentityService
    • LabelsService to LabelService
    • RepositoriesService to RepoService
    • ServersService to ServerService
  • Deprecated property names on ATProto. (#1118)
    • .servers: Use .server instead
    • .identities: Use .identity instead
    • .repositories: Use .repo instead
    • .labels: Use .label instead

v0.9.1 #

  • Upgraded atproto_core. (#1102)

v0.9.0 #

  • Removed all .find*AsJson and .paginate*AsJson. (#1033)

v0.8.4 #

  • Changed isNegate of Label object to false by default. (#1006)

v0.8.3 #

  • Upgraded atproto_core. (#1009)

v0.8.2 #

  • Upgraded atproto_core. (#1012)

v0.8.1 #

  • Upgraded atproto_core. (#999)
  • Fixed a bug that service names were not specified correctly when using stream endpoints.
  • Added .streamService property on ATProto. Defaults to bsky.network.

v0.8.0 #

  • Added .didDoc on CurrentSession. (#983)
  • Upgraded atproto_core. (#989)

v0.7.2 #

  • Supported com.atproto.labels.queryLabels and LabelsService. (#265)
  • Supported com.atproto.labels.subscribeLabels on LabelsService. (#340)
  • Added .deleteSession function. (#963)
  • Supported com.atproto.server.reserveSigningKey on ServersService. (#953)
    • .createSigningKey
  • Added didDoc field on Session and Account objects. (#968)

v0.7.1 #

  • Supported com.atproto.sync.getBlob on SyncService. (#307)
    • .findBlob
  • Supported com.atproto.sync.listBlobs on SyncService. (#314)
    • .findBlobs
    • .findBlobsAsJson
    • .paginateBlobs
    • .paginateBlobsAsJson
  • Removed default constructor from ATProto, and added .session property. (#961)

v0.7.0 #

  • Added rev on Repo object. (#885)
  • Removed deprecated methods and object.
    • .refreshSession: Use function version instead.
    • .findRepoCheckout
    • .findRepoCheckoutAsJson
    • .findRepoHead
    • .findRepoHeadAsJson

v0.6.9 #

  • Added isEmailConfirmed field on CurrentSession. (#857)
  • Supported com.atproto.server.requestEmailUpdate on ServersService. (#859)
    • requestEmailUpdate
  • Supported com.atproto.server.requestEmailConfirmation on ServersService. (#858)
    • requestEmailConfirmation
  • Supported com.atproto.server.confirmEmail on ServersService. (#855)
    • requestEmailConfirmation
  • Supported com.atproto.server.updateEmail on ServersService. (#860)
    • updateEmail

v0.6.8 #

  • Upgraded xrpc package. Fixed field names for rate limit.

v0.6.7 #

  • Upgraded at_uri. (#797)

v0.6.6 #

  • Added .accessToken and .refreshToken properties on Session object. You can get decoded token objects based on JWT tokens. Also you can decode JWT token with decodeJwt function. (#787)

v0.6.5 #

  • Improved union type to always return Unknown type if conversion to a specific type fails. With this fix, an exception/error is no longer thrown when converting json to a specific type for union. (#775)

v0.6.4 #

  • Exposed Platform enum. (#709)
  • Added isValidAppPassword function. (#713)
  • Removed fully deprecated endpoint on SyncService. (#716)
    • findRepoCommitPaths
    • findRepoCommitPathsAsJson
  • Deprecated endpoint on SyncService. (#717)
    • findRepoCheckout
    • findRepoCheckoutAsJson
    • findRepoHead
    • findRepoHeadAsJson
  • Removed and added optional params on .findRepoCommits and .findRepoCommitsAsJson on SyncService. (#718)
    • Removed
      • earliestCommitCid
      • latestCommitCid
    • Added
      • sinceCommitCid
  • Removed fully deprecated rebaseRepo method on RepositoriesService.
  • Added findLatestCommit method on SyncService. Use it instead of findRepoHead. (#720)
  • Added params on SubscribedRepoCommit object. (#719)
    • rev
    • since (nullable)

v0.6.3 #

  • Moved Session object and createSession function to atproto_core. And exposed refreshSession as a function. Also deprecated ServersService.refreshSession method. (#686)

v0.6.2 #

  • Supported com.atproto.sync.notifyOfUpdate as notifyCrawlingServiceOfUpdate on SyncService. (#316)
  • Supported com.atproto.sync.requestCrawl as requestCrawl on SyncService. (#317)
  • Improved documents. (#677)
  • Upgrade cbor and now compatible with Flutter 3.13.0. (#681)

v0.6.1 #

  • Exposed freezed union objects. You can use them for pattern matching. (#600)
    • labels.dart
      • ULabelsSelLabels
      • ULabelsUnknown
    • report_subject.dart
      • UReportSubjectRepoRef
      • UReportSubjectStrongRef
      • UReportSubjectUnknown
    • subscribed_repo.dart
      • USubscribedRepoCommit
      • USubscribedRepoHandle
      • USubscribedRepoMigrate
      • USubscribedRepoTombstone
      • USubscribedRepoInfo
      • USubscribedRepoUnknown
    • batch_action.dart
      • UBatchActionCreate
      • UBatchActionUpdate
      • UBatchActionDelete

v0.6.0 #

  • Drop support for null unsafe Dart, bump SDK constraint to '^3.0.0'. (#599)
  • Dart3 modifier applied.

v0.5.9 #

  • Added SelfLabel, SelfLabels, Labels objects. (#654)

v0.5.8 #

  • Added cursor to Repos object. (#627)
  • Upgraded atproto_core and exposed RateLimit and RateLimitPolicy objects. (#636)
  • Added pagination utils. (#626)
    • RepositoriesService
      • paginateRecords
      • paginateRecordsAsJson
    • SyncService
      • paginateRepos
      • paginateReposAsJson

v0.5.7 #

  • Exposed lexicon ids from com.atproto as ids.dart. (#623)

v0.5.6 #

  • Optimized internal processing. (#606)

v0.5.5 #

  • Added documentations to model objects. (#595)
  • Made annotations const. (#605)

v0.5.4 #

  • Upgraded atproto_core. Fixed minor things.

v0.5.3 #

  • Removed deprecated properties. This is a property that was planned to be turned off in v0.6.0, so there are no breaking changes.

v0.5.2 #

  • A method to retrieve response data as JSON from endpoints that perform GET communication has been added. These processes do not convert to a specific model object, thus improving performance. (#563)
    • IdentitiesService
      • findDIDAsJson
    • RepositoriesService
      • findRecordAsJson
      • findRecordsAsJson
      • findRepoInfoAsJson
    • ServersService
      • findCurrentSessionAsJson
      • findInviteCodesAsJson
      • findAppPasswordsAsJson
      • findServerInfoAsJson
    • SyncService
      • findRepoCommitsAsJson
      • findRepoCommitPathsAsJson
      • findRepoBlocksAsJson
      • findRepoCheckoutAsJson
      • findRepoHeadAsJson
      • findRecordAsJson
      • findReposAsJson

v0.5.1 #

  • Supported com.atproto.server.describeServer as findServerInfo in ServersService. (#260)
  • Supported com.atproto.server.createInviteCodes as createInviteCodes in ServersService. (#258)
  • identifier in createSession is now required.
  • Fixed to throw UnsupportedError when an anonymous user tries to access an endpoint that requires authentication. (#564)

v0.5.0 #

  • Added homepage in pubspec.yaml. (#549)
  • Changed the argument of the uploadBlob method to byte data instead of a File object. This change allows uploads to be used without being affected by platform differences. (#556)

v0.4.0 #

  • Supported com.atproto.sync.getRepo as findRepoCommits in SyncService. (#313)
  • Changed default timeout from 10 seconds to 30 seconds.
  • Supported com.atproto.sync.getCommitPath as findRepoCommitPaths in SyncService. (#310)
  • Supported com.atproto.sync.getBlocks as findRepoBlocks in SyncService. (#308)
  • Supported com.atproto.sync.getCheckout as findRepoCheckout in SyncService. (#309)
  • Supported com.atproto.sync.getHead as findRepoHead in SyncService. (#311)
  • Supported com.atproto.sync.getRecord as findRecord in SyncService. (#312)
  • Supported com.atproto.repo.listRecords as findRecords in RepositoriesService. (#305)
  • Supported com.atproto.repo.rebaseRepo as rebaseRepo in RepositoriesService. (#509)
  • Supported com.atproto.sync.listRepos as findRepos in SyncService. (#315)
  • Renamed object from Repo to RepoInfo returned from findRepoInfo in RepositoriesService.
  • Renamed RecordValue to Record. And now createRecord and updateRecord returns StrongRef. (#511)
  • Removed BlobContext and LegacyBlob. Blobs in the old format were modified to be converted to the new format. (#514)

v0.3.4 #

  • Improved generation of CID hash codes, allowing CID objects to be specified as keys for Maps, etc. (#490)
  • Fixed a bug in converting the results of com.atproto.sync.subscribeRepos. (#487)

v0.3.2 #

  • Refactored subscribeRepoUpdates. (#472)

v0.3.1 #

  • handle parameter in findDID is now required. (#459)
  • Exposed $XRPCErrorCopyWith. (#463)
  • Add a record field with decoded Car block in the object converted by subscribeRepoUpdates and also a uri field. (#446)

v0.3.0 #

  • Fixed type from StrongRef to Record of updateRecord in RepositoriesService.
  • Updated SDK to ">=2.17.0 <4.0.0". (#406)

v0.2.13 #

  • Supported com.atproto.repo.applyWrites as updateBulk in RepositoriesService. Also added following utilities. (#306)
    • createRecords
    • updateRecords
    • deleteRecords
  • Added toStrongRef() method in Record and RecordValue. Be sure to check with hasStrongRef or hasNotStrongRef when you use toStrongRef() from RecordValue, because cid in RecordValue is nullable. (#367)

v0.2.12 #

  • Added unknown fields for union types. The AT Protocol allows some endpoints to create records of types not officially supported. In such cases, the unknown field is used to store the raw JSON for a safe and user-choice implementation. (#350)

v0.2.11 #

  • Removed did parameter from findRecord in RepositoriesService.

v0.2.10 #

  • Added label.dart. (#346)

v0.2.9 #

  • Added additional fields in InviteCode object. (#326)
  • Supported findRecord in RepositoriesService. (#304)
  • Added SyncService and supported stream API as subscribeRepos. (#318)
  • Added anonymous constructor in ATProto object. (#324)

v0.2.8 #

  • Supported findRepo. (#303)

v0.2.7 #

  • Added moderation reasons, and fixed report_subject to union. (#288)
  • Supported updateRecord. (#295)

v0.2.6 #

  • Supported com.atproto.server.createAccount. (#256)
  • Supported com.atproto.server.createInviteCode. (#257)
  • Added protocol option. Defaults to HTTPS. (#269)
  • Supported com.atproto.server.deleteAccount. (#259)
  • Supported com.atproto.server.requestDeleteAccount. (#273)
  • Supported com.atproto.server.requestPasswordReset. (#263)
  • Supported com.atproto.server.updatePassword. (#264)
  • Supported com.atproto.server.createAppPassword. (#277)
  • Supported com.atproto.server.deleteAppPassword. (#279)
  • Supported com.atproto.server.listAppPasswords. (#278)
  • Supported com.atproto.server.getAccountInviteCodes. (#261)

v0.2.5 #

  • Supported com.atproto.repo.uploadBlob. (#249)

v0.2.4 #

  • Added email field to Session and CurrentSession. (#235)
  • Upgraded xrpc to make this package compatible with Flutter. (#242)

v0.2.3 #

  • Fixed lexicon method id from com.atproto.handle to com.atproto.identity.

v0.2.2 #

  • Merged official refactoring. (#52)
    • Renamed SessionService to ServersService
    • Renamed handle parameter in createSession to identifier
    • Removed parameter collection from RepositoriesService.deleteRecord

v0.2.1 #

  • Added IdentitiesService and findDID. (#211)
  • Added updateHandle in IdentitiesService. (#212)
  • Added ModerationService and createReport. (#216)
  • Added refreshSession in SessionsService. (#218)

v0.2.0 #

  • Fixed to use xrpc package and refactored structures. (#146)
  • Fixed to use at_uri for uri parameters in Record and deleteRecord. (#144)

v0.1.2 #

  • Fixed standard prefix from get to find. (#90)

v0.1.1 #

  • Fixed standard prefix from destroy to delete. (#81)
  • Fixed standard prefix from lookup to get. (#84)

v0.1.0 #

  • Refactored structures. (#70)
    • Moved Empty to atproto_core
    • Moved ATProtoResponse to atproto_core
    • Moved ATProtoRequest to atproto_core

v0.0.4 #

  • Fixed typo from awtToken to accessJwt.

v0.0.3 #

  • Added RepositoriesService.
    • createRecord
    • destroyRecord

v0.0.2 #

  • Fixed links.

v0.0.1 #

  • First Release!
12
likes
0
pub points
62%
popularity

Publisher

verified publisheratprotodart.com

The most famous and powerful Dart/Flutter library for AT Protocol.

Homepage
Repository (GitHub)
View/report issues

Topics

#atproto #bluesky #api

Documentation

Documentation

Funding

Consider supporting this project:

github.com

License

unknown (license)

Dependencies

atproto_core, freezed_annotation, json_annotation

More

Packages that depend on atproto