Daniel Holmgren bfaf3a86f9
Handling updates ()
* disabled udpates

* remove update tests

* update schemas

* crud operations

* working cids into db layer

* crud working

* views tests working & updated snapshots

* rm tests for likes on reposts

* fix up repo tests

* quick pr feedback

* recordKey -> rkey & nameOrDid -> user

* reference records by uri & cid obj

* fix dev-env
2022-10-12 18:36:40 -05:00
..
2022-10-12 18:36:40 -05:00
2022-07-14 18:36:23 -05:00
2022-07-14 18:36:23 -05:00

ADX API

Usage

import API from '@adxp/api'

const client = API.service('http://example.com')

// xrpc methods
const res1 = await client.com.atproto.repoCreateRecord(
  {did: alice.did, type: 'app.bsky.post'},
  {
    $type: 'app.bsky.post',
    text: 'Hello, world!',
    createdAt: (new Date()).toISOString()
  }
)
const res2 = await client.com.atproto.repoListRecords({did: alice.did, type: 'app.bsky.post'})

// repo record methods
const res3 = await client.app.bsky.post.create({did: alice.did}, {
  text: 'Hello, world!',
  createdAt: (new Date()).toISOString()
})
const res4 = await client.app.bsky.post.list({did: alice.did})

License

MIT