techne-sdk 0.3.1 → 0.3.2
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 +17 -3
- package/README.md +4 -14
- package/dist/catalog/catalog.gen.js +34 -28
- package/dist/generated/lexicons.d.ts +44 -36
- package/dist/generated/lexicons.js +22 -18
- package/dist/generated/types/pub/techne/draft/identity/listPhoneHolds.d.ts +2 -0
- package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +3 -3
- package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +2 -2
- package/dist/generated/types/pub/techne/draft/query/composeRecords.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/query/listRecords.d.ts +1 -1
- package/dist/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +20711 -20470
- package/package.json +1 -1
|
@@ -3253,7 +3253,7 @@ export const schemaDict = {
|
|
|
3253
3253
|
defs: {
|
|
3254
3254
|
main: {
|
|
3255
3255
|
type: 'procedure',
|
|
3256
|
-
description: "Make a collective account: a new DID whose credential the platform holds, with a random handle and no records. Nothing is placed or published: the caller then writes as the collective (permissioned.putRecords or com.atproto.repo.applyWrites, repo = the new DID), deciding where its descriptor and memberships live. Until the collective's first record is placed in a space (and for at most a day), its creator may write as it; from then on, whoever
|
|
3256
|
+
description: "Make a collective account: a new DID whose credential the platform holds, with a random handle and no records. Nothing is placed or published: the caller then writes as the collective (permissioned.putRecords or com.atproto.repo.applyWrites, repo = the new DID), deciding where its descriptor and memberships live. Until the collective's first record is placed in a space (and for at most a day), its creator may write as it; from then on, only whoever manages its own member space (`pub.techne.draft.space.collective.member/self`) may; managing another of its spaces (an event's invite space, say) gives no pen. So a creator who will manage it writes its own membership in the first batch. Any signed-in DID; one call spends one of the caller's writes. A retried call makes another, empty, collective.",
|
|
3257
3257
|
input: {
|
|
3258
3258
|
encoding: 'application/json',
|
|
3259
3259
|
schema: {
|
|
@@ -3681,7 +3681,7 @@ export const schemaDict = {
|
|
|
3681
3681
|
defs: {
|
|
3682
3682
|
main: {
|
|
3683
3683
|
type: 'procedure',
|
|
3684
|
-
description: 'Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly "$subject" in `write.record` (and "$subject" in `write.rkey`) with that account\'s DID and every value exactly "$now" in the record with the time, and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number\'s keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose space it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller\'s DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller\'s writes.',
|
|
3684
|
+
description: 'Hold a write until someone proves a phone number: when an account proves `phone`, the platform fills every string value exactly "$subject" in `write.record` (and "$subject" in `write.rkey`) with that account\'s DID and every value exactly "$now" in the record with the time, and writes the record as `actAs` in `write.space` with what it holds for that account. Only the number\'s keyed hash is kept; the template may not contain the number. Every hold is answered alike, whether or not the number already has an account: one that has is released the next time it is proved (each phone sign-in proves it), never at once, so nothing here says whether a number has an account or whose it is. The caller must be able to write as `actAs` (its own DID, a collective or circle whose own member space (`space.collective.member/self`) it manages, or a collective it made that has nothing placed yet), now and again when the number is proved; a hold whose caller no longer may, or with a block either way between the new account and the caller or `actAs`, is dropped unwritten, as is one whose record the space does not admit. The record must be one permissioned.putRecord would take with the caller\'s DID in the slot, and must carry the slot. The nightly sweep deletes a hold 180 days after it was made. Holding again with the same number, `actAs`, `collection`, `space`, `rkey` and record `space` answers the existing hold unchanged (the first template wins; withdraw it with releasePhoneHold and hold again to change it). The template is shown to everyone who may write as `actAs` and read `space` (listPhoneHolds). Identity knows nothing about what the record means. Any signed-in DID; one call spends one of the caller\'s writes.',
|
|
3685
3685
|
input: {
|
|
3686
3686
|
encoding: 'application/json',
|
|
3687
3687
|
schema: {
|
|
@@ -4122,7 +4122,7 @@ export const schemaDict = {
|
|
|
4122
4122
|
defs: {
|
|
4123
4123
|
main: {
|
|
4124
4124
|
type: 'query',
|
|
4125
|
-
description: 'The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle\'s pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon\'s circle template carries `addedBy`, so a circle shows "1 pending, added by <member>"). Holds are identity state, not records, so they are listed here and not through the generic query.',
|
|
4125
|
+
description: 'The live holds (identity.holdForPhone) that would write as `actAs`, oldest first, for anyone who may write as it, and of those only the holds for a space the caller may read. With `alsoActAs`, the holds of each of those accounts too, in the order first asked (an account asked twice is listed once) (so a client lists every circle\'s pending members in one call): an account among them the caller may not write as is passed over, and writing as none of them is 403. A hold shows the account it writes as, who asked and the template as written, never the number or its hash (Beacon\'s circle template carries `addedBy`, so a circle shows "1 pending, added by <member>"). A hold the caller asked for also carries `name`, the name the caller saved for the number in their own contacts, when they did. Holds are identity state, not records, so they are listed here and not through the generic query.',
|
|
4126
4126
|
parameters: {
|
|
4127
4127
|
type: 'params',
|
|
4128
4128
|
required: ['actAs'],
|
|
@@ -4207,6 +4207,10 @@ export const schemaDict = {
|
|
|
4207
4207
|
type: 'string',
|
|
4208
4208
|
format: 'datetime',
|
|
4209
4209
|
},
|
|
4210
|
+
name: {
|
|
4211
|
+
type: 'string',
|
|
4212
|
+
description: "On a hold the caller asked for, the name the caller saved for its number: the `name` of the caller's own active `contact` on that number (the newest, when there are several), read when the listing is made. Never on a hold someone else asked for, and nothing of it is stored on the hold.",
|
|
4213
|
+
},
|
|
4210
4214
|
},
|
|
4211
4215
|
},
|
|
4212
4216
|
},
|
|
@@ -5119,11 +5123,11 @@ export const schemaDict = {
|
|
|
5119
5123
|
PubTechneDraftPermissionedDeleteRecord: {
|
|
5120
5124
|
lexicon: 1,
|
|
5121
5125
|
id: 'pub.techne.draft.permissioned.deleteRecord',
|
|
5122
|
-
description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose space the caller manages (
|
|
5126
|
+
description: "Delete a record from the caller's own repo (a takedown, a mistake, or a `share` the owner withdraws, which stops that reader's future reads, with a 'revoke-read' receipt once no share in its source space names it). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden; a caller whose account is being deleted, or is deleted, is refused (AccountDeleting). The body is removed; a tombstone receipt stays in listChanges, in the space the record counted in, so readers drop their copies. Deleting a record that does not exist is a no-op unless swapCid is given (then it is InvalidSwap). A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. Draft tier.",
|
|
5123
5127
|
defs: {
|
|
5124
5128
|
main: {
|
|
5125
5129
|
type: 'procedure',
|
|
5126
|
-
description: "Delete one of your own permissioned records (or a collective's or circle's whose space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. Draft tier.",
|
|
5130
|
+
description: "Delete one of your own permissioned records (or a collective's or circle's whose own member space you manage). One key holds one record per space: `space` names which goes; without it, the key's one record, Conflict when there are several. A tombstone stays in listChanges so readers drop their copies. Deleting a missing record is a no-op unless swapCid is given (InvalidSwap). When the call's token carries space scopes from Techne's ePDS, the delete must name its `space`, and one the scopes do not cover is refused 403 Forbidden. Draft tier.",
|
|
5127
5131
|
input: {
|
|
5128
5132
|
encoding: 'application/json',
|
|
5129
5133
|
schema: {
|
|
@@ -5552,16 +5556,16 @@ export const schemaDict = {
|
|
|
5552
5556
|
PubTechneDraftPermissionedPutRecord: {
|
|
5553
5557
|
lexicon: 1,
|
|
5554
5558
|
id: 'pub.techne.draft.permissioned.putRecord',
|
|
5555
|
-
description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose space the caller manages (
|
|
5559
|
+
description: "Write a record into the caller's own repo, as a permissioned record (the generic private write). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden: a record is only ever written into its writer's repo. There is no write gate and no collection check: any collection may be written, for any space. A write is never refused for its space. One collection is refused there: one of the platform's own record types named for an app's space (pub.techne.draft.space.private) is refused as InvalidRequest, since our own types keep their declared homes (the adopted community.lexicon.calendar.event and .rsvp are not refused there: they are the app's own data, and an RSVP there projects no claim). Otherwise what it counts for is the managing app's admission of the version as it is written: the record counts in the `space` it names only when that space's write policy admits the writer and, for a collection with a published lexicon, the space type declares the collection; it is then read by whoever the space's read policy admits. A record for a pub.techne.draft.space.private space counts there only when written by the app its key names (the managing app); written by any other app it is stored and counts in no space (the output has no `space`). Otherwise it is stored in the writer's repo, counts in no space, and only its writer reads it; write it again to ask again. A write into a space whose authority's account is being deleted, or is deleted, is stored the same way and counts in no space (the space goes with that account). A caller whose own account is being deleted, or is deleted, is refused (AccountDeleting). The output's `space` says where it counts. A source keeps what it does not publish in its own pub.techne.draft.space.source (at://{source}/pub.techne.draft.space.source/self): its permissioned descriptions, the `share`s naming its readers (writing one admits its subject, who gets a 'granted' receipt; deleting the last one naming a reader gives a 'revoke-read'. A share keeps one space per key, so it is never moved out of the space: writing it for another space is refused as Conflict), and a scraper's raw payloads and crawl state. A body in a collection with a published lexicon must satisfy it (InvalidRequest otherwise); any other collection is stored as written. Writing the current version again for the same space records no new version: if it counts there it is a no-op; if it was not admitted, admission is asked again, and a version admitted now is placed in the space with a receipt. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 2 MiB (2,097,152 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused write still spends one of the caller's writes (RateLimitExceeded). When the call's token carries space scopes from Techne's ePDS, a write to a space they do not cover is refused 403 Forbidden. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.",
|
|
5556
5560
|
defs: {
|
|
5557
5561
|
main: {
|
|
5558
5562
|
type: 'procedure',
|
|
5559
|
-
description: "Write one record into your own repo (or a collective's or circle's whose space you manage) as a permissioned record, for the `space` it names. Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names; else it counts in no space. The output's `space` says where it counts. Writing the current version again is a no-op. One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.",
|
|
5563
|
+
description: "Write one record into your own repo (or a collective's or circle's whose own member space you manage) as a permissioned record, for the `space` it names (required: no space is InvalidRequest; public records go through com.atproto.repo.putRecord, and a record only you read goes in your space.personal). Any collection; a body of a collection with a published lexicon must satisfy it. It counts in that space only when the space's write policy admits you (and, for one of our own types, the space type declares the collection); otherwise it is stored and only you read it. A write is never refused for its space. A pub.techne.draft.space.private record counts there only when written by the app its key names; else it counts in no space. The output's `space` says where it counts. Writing the current version again is a no-op. One write of your rate (RateLimitExceeded). A token with space scopes from Techne's ePDS: a write to a space they do not cover is 403 Forbidden. Draft tier.",
|
|
5560
5564
|
input: {
|
|
5561
5565
|
encoding: 'application/json',
|
|
5562
5566
|
schema: {
|
|
5563
5567
|
type: 'object',
|
|
5564
|
-
required: ['repo', 'collection', 'rkey', 'record'],
|
|
5568
|
+
required: ['repo', 'collection', 'rkey', 'record', 'space'],
|
|
5565
5569
|
properties: {
|
|
5566
5570
|
repo: {
|
|
5567
5571
|
type: 'string',
|
|
@@ -5590,7 +5594,7 @@ export const schemaDict = {
|
|
|
5590
5594
|
space: {
|
|
5591
5595
|
type: 'string',
|
|
5592
5596
|
format: 'at-uri',
|
|
5593
|
-
description: "The space
|
|
5597
|
+
description: "The space this record is for. Public records are written with com.atproto.repo.putRecord, not here. Required: at://{authority}/{spaceType}/{skey} (a record only you read goes in your own pub.techne.draft.space.personal, at://{you}/pub.techne.draft.space.personal/self; a source's own records in at://{repo}/pub.techne.draft.space.source/self). A write naming no space is refused as InvalidRequest. The key holds one record per space (the 0016 record address): writing it for another space writes another record and leaves this one; to move a record, delete it and write it again.",
|
|
5594
5598
|
},
|
|
5595
5599
|
},
|
|
5596
5600
|
},
|
|
@@ -5626,7 +5630,7 @@ export const schemaDict = {
|
|
|
5626
5630
|
space: {
|
|
5627
5631
|
type: 'string',
|
|
5628
5632
|
format: 'at-uri',
|
|
5629
|
-
description: "The space the record counts in now. Absent when it counts in none (
|
|
5633
|
+
description: "The space the record counts in now. Absent when it counts in none (the space's write policy does not admit the writer, or a space.private space written by an app other than the one its key names).",
|
|
5630
5634
|
},
|
|
5631
5635
|
},
|
|
5632
5636
|
},
|
|
@@ -5634,7 +5638,7 @@ export const schemaDict = {
|
|
|
5634
5638
|
errors: [
|
|
5635
5639
|
{
|
|
5636
5640
|
name: 'InvalidRequest',
|
|
5637
|
-
description: "HTTP 400. Malformed input (a bad DID, NSID, record key or space address, a record whose $type is not collection, or one with no DAG-CBOR form), or a body that fails its collection's published lexicon. Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description).",
|
|
5641
|
+
description: "HTTP 400. Malformed input (no `space`: name one, since public records go through com.atproto.repo.putRecord; a bad DID, NSID, record key or space address, a record whose $type is not collection, or one with no DAG-CBOR form), or a body that fails its collection's published lexicon. Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description).",
|
|
5638
5642
|
},
|
|
5639
5643
|
{
|
|
5640
5644
|
name: 'Forbidden',
|
|
@@ -5675,11 +5679,11 @@ export const schemaDict = {
|
|
|
5675
5679
|
PubTechneDraftPermissionedPutRecords: {
|
|
5676
5680
|
lexicon: 1,
|
|
5677
5681
|
id: 'pub.techne.draft.permissioned.putRecords',
|
|
5678
|
-
description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose space the caller manages (
|
|
5682
|
+
description: "Write up to 200 records into the caller's own repo in one call: each write is applied in order, exactly as putRecord applies it (the same admission, receipts, no-op re-put and swapCid), each in its own transaction. NOT atomic: a write that is refused does not undo the writes before it or stop the ones after it, and each write's result says what happened to it. That is why this is not called applyWrites: atproto's com.atproto.repo.applyWrites commits all of its writes or none, and this does not (each write keeps putRecord's own per-record locking, so a batch never holds more than one record's locks). The caller authenticates with its own credential: a session from any sign-in lane (OAuth included), or an atproto service-auth JWT (iss = the caller, aud = the AppView's service DID, lxm = this method). repo must be the caller, or a collective or circle the platform holds the credential of whose own member space (`space.collective.member/self`) the caller manages (that space's manage leg alone hands over the authority's pen; managing another of its spaces does not), or a collective the caller made that has nothing placed yet (for at most a day), else Forbidden and nothing is written. A write refused for itself (a malformed or invalid record, a swapCid that does not match, a conflict) is reported in its result as the error putRecord would have answered, and the next write is applied. A refusal that holds for the whole call stops it with that error, and no later write is applied: the caller's account is being deleted, or is deleted (AccountDeleting; what it wrote goes with the account), or a failure inside the AppView (HTTP 500; the writes applied before it stay written, so read them back or send the batch again: writing the current version again for the same space is a no-op). Callers should treat a failed batch as all-or-nothing and send it again whole: re-putting the records that landed is a no-op, and at the move to atproto's permissioned data this method becomes the owner's own PDS com.atproto.repo.applyWrites, which is atomic. One call spends one of the caller's writes (RateLimitExceeded), whatever the number of writes it carries. A request body that is not this method's input is refused as InvalidRequest, with an XRPC error body ({\"error\":\"InvalidRequest\",\"message\":...}): HTTP 413 for a body over 8 MiB (8,388,608 bytes; it is not read past that); 415 for one not sent as application/json; 400 for one that is not JSON or carries no writes or more than 200; 422 for JSON that is not the input (a field missing or of the wrong type). Such a refused call still spends one of the caller's writes. Each write is checked against the token's space scopes as putRecord checks it. `space` is required: a write that names no space is refused as InvalidRequest (HTTP 400; for putRecords the whole call, and nothing is written), since public records are written with com.atproto.repo.putRecord and a record only the caller reads goes in its own pub.techne.draft.space.personal. Records written before this rule with no space stay stored and readable by their writer. Draft tier.",
|
|
5679
5683
|
defs: {
|
|
5680
5684
|
main: {
|
|
5681
5685
|
type: 'procedure',
|
|
5682
|
-
description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest). Send a failed batch again whole: re-putting what landed is a no-op. Space scopes and space.private apply to each write as in putRecord. Draft tier.",
|
|
5686
|
+
description: "Up to 200 putRecord writes, applied in order, each in its own transaction, for one write of your rate. Not atomic: each write's result says what happened to it, and a write refused for itself does not stop the others (AccountDeleting or an HTTP 500 stops the rest). Send a failed batch again whole: re-putting what landed is a no-op. Space scopes and space.private apply to each write as in putRecord. Every write names its `space` (a write with none refuses the whole call, InvalidRequest; public records go through com.atproto.repo.putRecord). Draft tier.",
|
|
5683
5687
|
input: {
|
|
5684
5688
|
encoding: 'application/json',
|
|
5685
5689
|
schema: {
|
|
@@ -5728,7 +5732,7 @@ export const schemaDict = {
|
|
|
5728
5732
|
errors: [
|
|
5729
5733
|
{
|
|
5730
5734
|
name: 'InvalidRequest',
|
|
5731
|
-
description: "HTTP 400. Malformed input (a bad repo DID, no writes or more than 200). Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description). A write that is malformed on its own is reported in its result instead.",
|
|
5735
|
+
description: "HTTP 400. Malformed input (a bad repo DID, no writes or more than 200, or a write with no `space`: name one, since public records go through com.atproto.repo.putRecord; nothing is written). Also HTTP 413, 415, 400 or 422 for a request body that is not the method's input (see the description). A write that is malformed on its own is reported in its result instead.",
|
|
5732
5736
|
},
|
|
5733
5737
|
{
|
|
5734
5738
|
name: 'Forbidden',
|
|
@@ -5751,7 +5755,7 @@ export const schemaDict = {
|
|
|
5751
5755
|
write: {
|
|
5752
5756
|
type: 'object',
|
|
5753
5757
|
description: 'One write: a putRecord input without repo.',
|
|
5754
|
-
required: ['collection', 'rkey', 'record'],
|
|
5758
|
+
required: ['collection', 'rkey', 'record', 'space'],
|
|
5755
5759
|
properties: {
|
|
5756
5760
|
collection: {
|
|
5757
5761
|
type: 'string',
|
|
@@ -5774,7 +5778,7 @@ export const schemaDict = {
|
|
|
5774
5778
|
space: {
|
|
5775
5779
|
type: 'string',
|
|
5776
5780
|
format: 'at-uri',
|
|
5777
|
-
description: "The space
|
|
5781
|
+
description: "The space this record is for. Public records are written with com.atproto.repo.putRecord, not here. Required: at://{authority}/{spaceType}/{skey} (a record only you read goes in your own pub.techne.draft.space.personal, at://{you}/pub.techne.draft.space.personal/self; a source's own records in at://{repo}/pub.techne.draft.space.source/self). A write naming no space refuses the whole call as InvalidRequest, and nothing is written. The key holds one record per space (the 0016 record address): writing it for another space writes another record and leaves this one; to move a record, delete it and write it again.",
|
|
5778
5782
|
},
|
|
5779
5783
|
},
|
|
5780
5784
|
},
|
|
@@ -6708,7 +6712,7 @@ export const schemaDict = {
|
|
|
6708
6712
|
},
|
|
6709
6713
|
held: {
|
|
6710
6714
|
type: 'boolean',
|
|
6711
|
-
description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a
|
|
6715
|
+
description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a withheld act (a share or a circle add), answered to its author alone (to anyone else it is not found) until the limit admits it. Absent otherwise. A query with `held: true` answers only these.",
|
|
6712
6716
|
},
|
|
6713
6717
|
measures: {
|
|
6714
6718
|
type: 'unknown',
|
|
@@ -7136,7 +7140,7 @@ export const schemaDict = {
|
|
|
7136
7140
|
},
|
|
7137
7141
|
held: {
|
|
7138
7142
|
type: 'boolean',
|
|
7139
|
-
description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a
|
|
7143
|
+
description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a withheld act (a share or a circle add), answered to its author alone (to anyone else it is not found) until the limit admits it. Absent otherwise. A query with `held: true` answers only these.",
|
|
7140
7144
|
},
|
|
7141
7145
|
measures: {
|
|
7142
7146
|
type: 'unknown',
|
|
@@ -44,6 +44,8 @@ export interface HoldView {
|
|
|
44
44
|
[_ in string]: unknown;
|
|
45
45
|
};
|
|
46
46
|
createdAt: string;
|
|
47
|
+
/** On a hold the caller asked for, the name the caller saved for its number: the `name` of the caller's own active `contact` on that number (the newest, when there are several), read when the listing is made. Never on a hold someone else asked for, and nothing of it is stored on the hold. */
|
|
48
|
+
name?: string;
|
|
47
49
|
}
|
|
48
50
|
export declare function isHoldView<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.identity.listPhoneHolds", "holdView">;
|
|
49
51
|
export declare function validateHoldView<V>(v: V): ValidationResult<HoldView & V>;
|
|
@@ -15,8 +15,8 @@ export interface InputSchema {
|
|
|
15
15
|
};
|
|
16
16
|
/** Write only if the record's current CID is this one. A missing record never matches. */
|
|
17
17
|
swapCid?: string;
|
|
18
|
-
/** The space
|
|
19
|
-
space
|
|
18
|
+
/** The space this record is for. Public records are written with com.atproto.repo.putRecord, not here. Required: at://{authority}/{spaceType}/{skey} (a record only you read goes in your own pub.techne.draft.space.personal, at://{you}/pub.techne.draft.space.personal/self; a source's own records in at://{repo}/pub.techne.draft.space.source/self). A write naming no space is refused as InvalidRequest. The key holds one record per space (the 0016 record address): writing it for another space writes another record and leaves this one; to move a record, delete it and write it again. */
|
|
19
|
+
space: string;
|
|
20
20
|
}
|
|
21
21
|
export interface OutputSchema {
|
|
22
22
|
uri: string;
|
|
@@ -26,7 +26,7 @@ export interface OutputSchema {
|
|
|
26
26
|
rev: string;
|
|
27
27
|
/** The DIDs the `share`s placed in the space the record counts in name (its authority left out), when the caller may read that space; empty otherwise. For a source space this is its whole audience beside the owner (as getGrants). */
|
|
28
28
|
read: string[];
|
|
29
|
-
/** The space the record counts in now. Absent when it counts in none (
|
|
29
|
+
/** The space the record counts in now. Absent when it counts in none (the space's write policy does not admit the writer, or a space.private space written by an app other than the one its key names). */
|
|
30
30
|
space?: string;
|
|
31
31
|
}
|
|
32
32
|
export interface CallOptions {
|
|
@@ -53,8 +53,8 @@ export interface Write {
|
|
|
53
53
|
};
|
|
54
54
|
/** Write only if the record's current CID is this one. A missing record never matches. */
|
|
55
55
|
swapCid?: string;
|
|
56
|
-
/** The space
|
|
57
|
-
space
|
|
56
|
+
/** The space this record is for. Public records are written with com.atproto.repo.putRecord, not here. Required: at://{authority}/{spaceType}/{skey} (a record only you read goes in your own pub.techne.draft.space.personal, at://{you}/pub.techne.draft.space.personal/self; a source's own records in at://{repo}/pub.techne.draft.space.source/self). A write naming no space refuses the whole call as InvalidRequest, and nothing is written. The key holds one record per space (the 0016 record address): writing it for another space writes another record and leaves this one; to move a record, delete it and write it again. */
|
|
57
|
+
space: string;
|
|
58
58
|
}
|
|
59
59
|
export declare function isWrite<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.permissioned.putRecords", "write">;
|
|
60
60
|
export declare function validateWrite<V>(v: V): ValidationResult<Write & V>;
|
|
@@ -125,7 +125,7 @@ export interface Record {
|
|
|
125
125
|
source?: 'public' | 'permissioned' | (string & {});
|
|
126
126
|
/** A public record that is a live curated record: a curator the commons root trusts merged it from its sources, and it is not superseded. Its `pub.techne.draft.provenance` (same author, subject this record) names who it is from. Absent otherwise. */
|
|
127
127
|
curated?: boolean;
|
|
128
|
-
/** The caller's own permissioned record that the reach limit holds back from the people it would reach: a
|
|
128
|
+
/** The caller's own permissioned record that the reach limit holds back from the people it would reach: a withheld act (a share or a circle add), answered to its author alone (to anyone else it is not found) until the limit admits it. Absent otherwise. A query with `held: true` answers only these. */
|
|
129
129
|
held?: boolean;
|
|
130
130
|
/** The numbers the query's operators produced for this record, by name (a `near` distance in metres, a `matches` rank). */
|
|
131
131
|
measures?: {
|
|
@@ -64,7 +64,7 @@ export interface Record {
|
|
|
64
64
|
source: 'public' | 'permissioned' | (string & {});
|
|
65
65
|
/** A public record that is a live curated record: a curator the commons root trusts merged it from its sources, and it is not superseded. Its `pub.techne.draft.provenance` (same author, subject this record) names who it is from. Absent otherwise. */
|
|
66
66
|
curated?: boolean;
|
|
67
|
-
/** The caller's own permissioned record that the reach limit holds back from the people it would reach: a
|
|
67
|
+
/** The caller's own permissioned record that the reach limit holds back from the people it would reach: a withheld act (a share or a circle add), answered to its author alone (to anyone else it is not found) until the limit admits it. Absent otherwise. A query with `held: true` answers only these. */
|
|
68
68
|
held?: boolean;
|
|
69
69
|
/** The numbers the query's operators produced for this record, by name (a `near` distance in metres, a `matches` rank). */
|
|
70
70
|
measures?: {
|