techne-sdk 0.3.0 → 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 +38 -0
- package/README.md +7 -16
- package/dist/auth/index.d.ts +7 -0
- package/dist/auth/index.js +3 -1
- package/dist/catalog/catalog.gen.js +34 -28
- package/dist/connect.d.ts +4 -1
- package/dist/connect.js +7 -3
- 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/put/index.d.ts +5 -1
- package/dist/put/index.js +16 -3
- package/dist/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +20713 -20449
- package/package.json +1 -1
|
@@ -3084,7 +3084,7 @@ export declare const schemaDict: {
|
|
|
3084
3084
|
readonly defs: {
|
|
3085
3085
|
readonly main: {
|
|
3086
3086
|
readonly type: "procedure";
|
|
3087
|
-
readonly 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
|
|
3087
|
+
readonly 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.";
|
|
3088
3088
|
readonly input: {
|
|
3089
3089
|
readonly encoding: "application/json";
|
|
3090
3090
|
readonly schema: {
|
|
@@ -3492,7 +3492,7 @@ export declare const schemaDict: {
|
|
|
3492
3492
|
readonly defs: {
|
|
3493
3493
|
readonly main: {
|
|
3494
3494
|
readonly type: "procedure";
|
|
3495
|
-
readonly 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.";
|
|
3495
|
+
readonly 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.";
|
|
3496
3496
|
readonly input: {
|
|
3497
3497
|
readonly encoding: "application/json";
|
|
3498
3498
|
readonly schema: {
|
|
@@ -3898,7 +3898,7 @@ export declare const schemaDict: {
|
|
|
3898
3898
|
readonly defs: {
|
|
3899
3899
|
readonly main: {
|
|
3900
3900
|
readonly type: "query";
|
|
3901
|
-
readonly 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.";
|
|
3901
|
+
readonly 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.";
|
|
3902
3902
|
readonly parameters: {
|
|
3903
3903
|
readonly type: "params";
|
|
3904
3904
|
readonly required: ["actAs"];
|
|
@@ -3980,6 +3980,10 @@ export declare const schemaDict: {
|
|
|
3980
3980
|
readonly type: "string";
|
|
3981
3981
|
readonly format: "datetime";
|
|
3982
3982
|
};
|
|
3983
|
+
readonly name: {
|
|
3984
|
+
readonly type: "string";
|
|
3985
|
+
readonly 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.";
|
|
3986
|
+
};
|
|
3983
3987
|
};
|
|
3984
3988
|
};
|
|
3985
3989
|
};
|
|
@@ -4851,11 +4855,11 @@ export declare const schemaDict: {
|
|
|
4851
4855
|
readonly PubTechneDraftPermissionedDeleteRecord: {
|
|
4852
4856
|
readonly lexicon: 1;
|
|
4853
4857
|
readonly id: "pub.techne.draft.permissioned.deleteRecord";
|
|
4854
|
-
readonly 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 (
|
|
4858
|
+
readonly 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.";
|
|
4855
4859
|
readonly defs: {
|
|
4856
4860
|
readonly main: {
|
|
4857
4861
|
readonly type: "procedure";
|
|
4858
|
-
readonly 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.";
|
|
4862
|
+
readonly 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.";
|
|
4859
4863
|
readonly input: {
|
|
4860
4864
|
readonly encoding: "application/json";
|
|
4861
4865
|
readonly schema: {
|
|
@@ -5259,16 +5263,16 @@ export declare const schemaDict: {
|
|
|
5259
5263
|
readonly PubTechneDraftPermissionedPutRecord: {
|
|
5260
5264
|
readonly lexicon: 1;
|
|
5261
5265
|
readonly id: "pub.techne.draft.permissioned.putRecord";
|
|
5262
|
-
readonly 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 (
|
|
5266
|
+
readonly 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.";
|
|
5263
5267
|
readonly defs: {
|
|
5264
5268
|
readonly main: {
|
|
5265
5269
|
readonly type: "procedure";
|
|
5266
|
-
readonly 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.";
|
|
5270
|
+
readonly 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.";
|
|
5267
5271
|
readonly input: {
|
|
5268
5272
|
readonly encoding: "application/json";
|
|
5269
5273
|
readonly schema: {
|
|
5270
5274
|
readonly type: "object";
|
|
5271
|
-
readonly required: ["repo", "collection", "rkey", "record"];
|
|
5275
|
+
readonly required: ["repo", "collection", "rkey", "record", "space"];
|
|
5272
5276
|
readonly properties: {
|
|
5273
5277
|
readonly repo: {
|
|
5274
5278
|
readonly type: "string";
|
|
@@ -5297,7 +5301,7 @@ export declare const schemaDict: {
|
|
|
5297
5301
|
readonly space: {
|
|
5298
5302
|
readonly type: "string";
|
|
5299
5303
|
readonly format: "at-uri";
|
|
5300
|
-
readonly description: "The space
|
|
5304
|
+
readonly 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.";
|
|
5301
5305
|
};
|
|
5302
5306
|
};
|
|
5303
5307
|
};
|
|
@@ -5333,14 +5337,14 @@ export declare const schemaDict: {
|
|
|
5333
5337
|
readonly space: {
|
|
5334
5338
|
readonly type: "string";
|
|
5335
5339
|
readonly format: "at-uri";
|
|
5336
|
-
readonly description: "The space the record counts in now. Absent when it counts in none (
|
|
5340
|
+
readonly 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).";
|
|
5337
5341
|
};
|
|
5338
5342
|
};
|
|
5339
5343
|
};
|
|
5340
5344
|
};
|
|
5341
5345
|
readonly errors: [{
|
|
5342
5346
|
readonly name: "InvalidRequest";
|
|
5343
|
-
readonly 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).";
|
|
5347
|
+
readonly 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).";
|
|
5344
5348
|
}, {
|
|
5345
5349
|
readonly name: "Forbidden";
|
|
5346
5350
|
readonly description: "HTTP 403. repo is not the caller's own.";
|
|
@@ -5372,11 +5376,11 @@ export declare const schemaDict: {
|
|
|
5372
5376
|
readonly PubTechneDraftPermissionedPutRecords: {
|
|
5373
5377
|
readonly lexicon: 1;
|
|
5374
5378
|
readonly id: "pub.techne.draft.permissioned.putRecords";
|
|
5375
|
-
readonly 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 (
|
|
5379
|
+
readonly 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.";
|
|
5376
5380
|
readonly defs: {
|
|
5377
5381
|
readonly main: {
|
|
5378
5382
|
readonly type: "procedure";
|
|
5379
|
-
readonly 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.";
|
|
5383
|
+
readonly 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.";
|
|
5380
5384
|
readonly input: {
|
|
5381
5385
|
readonly encoding: "application/json";
|
|
5382
5386
|
readonly schema: {
|
|
@@ -5421,7 +5425,7 @@ export declare const schemaDict: {
|
|
|
5421
5425
|
};
|
|
5422
5426
|
readonly errors: [{
|
|
5423
5427
|
readonly name: "InvalidRequest";
|
|
5424
|
-
readonly 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.";
|
|
5428
|
+
readonly 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.";
|
|
5425
5429
|
}, {
|
|
5426
5430
|
readonly name: "Forbidden";
|
|
5427
5431
|
readonly description: "HTTP 403. repo is not the caller's own. Nothing is written.";
|
|
@@ -5439,7 +5443,7 @@ export declare const schemaDict: {
|
|
|
5439
5443
|
readonly write: {
|
|
5440
5444
|
readonly type: "object";
|
|
5441
5445
|
readonly description: "One write: a putRecord input without repo.";
|
|
5442
|
-
readonly required: ["collection", "rkey", "record"];
|
|
5446
|
+
readonly required: ["collection", "rkey", "record", "space"];
|
|
5443
5447
|
readonly properties: {
|
|
5444
5448
|
readonly collection: {
|
|
5445
5449
|
readonly type: "string";
|
|
@@ -5462,7 +5466,7 @@ export declare const schemaDict: {
|
|
|
5462
5466
|
readonly space: {
|
|
5463
5467
|
readonly type: "string";
|
|
5464
5468
|
readonly format: "at-uri";
|
|
5465
|
-
readonly description: "The space
|
|
5469
|
+
readonly 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.";
|
|
5466
5470
|
};
|
|
5467
5471
|
};
|
|
5468
5472
|
};
|
|
@@ -6361,7 +6365,7 @@ export declare const schemaDict: {
|
|
|
6361
6365
|
};
|
|
6362
6366
|
readonly held: {
|
|
6363
6367
|
readonly type: "boolean";
|
|
6364
|
-
readonly description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a
|
|
6368
|
+
readonly 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.";
|
|
6365
6369
|
};
|
|
6366
6370
|
readonly measures: {
|
|
6367
6371
|
readonly type: "unknown";
|
|
@@ -6773,7 +6777,7 @@ export declare const schemaDict: {
|
|
|
6773
6777
|
};
|
|
6774
6778
|
readonly held: {
|
|
6775
6779
|
readonly type: "boolean";
|
|
6776
|
-
readonly description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a
|
|
6780
|
+
readonly 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.";
|
|
6777
6781
|
};
|
|
6778
6782
|
readonly measures: {
|
|
6779
6783
|
readonly type: "unknown";
|
|
@@ -12767,7 +12771,7 @@ export declare const schemas: ({
|
|
|
12767
12771
|
readonly defs: {
|
|
12768
12772
|
readonly main: {
|
|
12769
12773
|
readonly type: "procedure";
|
|
12770
|
-
readonly 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
|
|
12774
|
+
readonly 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.";
|
|
12771
12775
|
readonly input: {
|
|
12772
12776
|
readonly encoding: "application/json";
|
|
12773
12777
|
readonly schema: {
|
|
@@ -13170,7 +13174,7 @@ export declare const schemas: ({
|
|
|
13170
13174
|
readonly defs: {
|
|
13171
13175
|
readonly main: {
|
|
13172
13176
|
readonly type: "procedure";
|
|
13173
|
-
readonly 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.";
|
|
13177
|
+
readonly 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.";
|
|
13174
13178
|
readonly input: {
|
|
13175
13179
|
readonly encoding: "application/json";
|
|
13176
13180
|
readonly schema: {
|
|
@@ -13569,7 +13573,7 @@ export declare const schemas: ({
|
|
|
13569
13573
|
readonly defs: {
|
|
13570
13574
|
readonly main: {
|
|
13571
13575
|
readonly type: "query";
|
|
13572
|
-
readonly 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.";
|
|
13576
|
+
readonly 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.";
|
|
13573
13577
|
readonly parameters: {
|
|
13574
13578
|
readonly type: "params";
|
|
13575
13579
|
readonly required: ["actAs"];
|
|
@@ -13651,6 +13655,10 @@ export declare const schemas: ({
|
|
|
13651
13655
|
readonly type: "string";
|
|
13652
13656
|
readonly format: "datetime";
|
|
13653
13657
|
};
|
|
13658
|
+
readonly name: {
|
|
13659
|
+
readonly type: "string";
|
|
13660
|
+
readonly 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.";
|
|
13661
|
+
};
|
|
13654
13662
|
};
|
|
13655
13663
|
};
|
|
13656
13664
|
};
|
|
@@ -14503,11 +14511,11 @@ export declare const schemas: ({
|
|
|
14503
14511
|
} | {
|
|
14504
14512
|
readonly lexicon: 1;
|
|
14505
14513
|
readonly id: "pub.techne.draft.permissioned.deleteRecord";
|
|
14506
|
-
readonly 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 (
|
|
14514
|
+
readonly 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.";
|
|
14507
14515
|
readonly defs: {
|
|
14508
14516
|
readonly main: {
|
|
14509
14517
|
readonly type: "procedure";
|
|
14510
|
-
readonly 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.";
|
|
14518
|
+
readonly 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.";
|
|
14511
14519
|
readonly input: {
|
|
14512
14520
|
readonly encoding: "application/json";
|
|
14513
14521
|
readonly schema: {
|
|
@@ -14906,16 +14914,16 @@ export declare const schemas: ({
|
|
|
14906
14914
|
} | {
|
|
14907
14915
|
readonly lexicon: 1;
|
|
14908
14916
|
readonly id: "pub.techne.draft.permissioned.putRecord";
|
|
14909
|
-
readonly 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 (
|
|
14917
|
+
readonly 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.";
|
|
14910
14918
|
readonly defs: {
|
|
14911
14919
|
readonly main: {
|
|
14912
14920
|
readonly type: "procedure";
|
|
14913
|
-
readonly 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.";
|
|
14921
|
+
readonly 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.";
|
|
14914
14922
|
readonly input: {
|
|
14915
14923
|
readonly encoding: "application/json";
|
|
14916
14924
|
readonly schema: {
|
|
14917
14925
|
readonly type: "object";
|
|
14918
|
-
readonly required: ["repo", "collection", "rkey", "record"];
|
|
14926
|
+
readonly required: ["repo", "collection", "rkey", "record", "space"];
|
|
14919
14927
|
readonly properties: {
|
|
14920
14928
|
readonly repo: {
|
|
14921
14929
|
readonly type: "string";
|
|
@@ -14944,7 +14952,7 @@ export declare const schemas: ({
|
|
|
14944
14952
|
readonly space: {
|
|
14945
14953
|
readonly type: "string";
|
|
14946
14954
|
readonly format: "at-uri";
|
|
14947
|
-
readonly description: "The space
|
|
14955
|
+
readonly 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.";
|
|
14948
14956
|
};
|
|
14949
14957
|
};
|
|
14950
14958
|
};
|
|
@@ -14980,14 +14988,14 @@ export declare const schemas: ({
|
|
|
14980
14988
|
readonly space: {
|
|
14981
14989
|
readonly type: "string";
|
|
14982
14990
|
readonly format: "at-uri";
|
|
14983
|
-
readonly description: "The space the record counts in now. Absent when it counts in none (
|
|
14991
|
+
readonly 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).";
|
|
14984
14992
|
};
|
|
14985
14993
|
};
|
|
14986
14994
|
};
|
|
14987
14995
|
};
|
|
14988
14996
|
readonly errors: [{
|
|
14989
14997
|
readonly name: "InvalidRequest";
|
|
14990
|
-
readonly 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).";
|
|
14998
|
+
readonly 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).";
|
|
14991
14999
|
}, {
|
|
14992
15000
|
readonly name: "Forbidden";
|
|
14993
15001
|
readonly description: "HTTP 403. repo is not the caller's own.";
|
|
@@ -15018,11 +15026,11 @@ export declare const schemas: ({
|
|
|
15018
15026
|
} | {
|
|
15019
15027
|
readonly lexicon: 1;
|
|
15020
15028
|
readonly id: "pub.techne.draft.permissioned.putRecords";
|
|
15021
|
-
readonly 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 (
|
|
15029
|
+
readonly 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.";
|
|
15022
15030
|
readonly defs: {
|
|
15023
15031
|
readonly main: {
|
|
15024
15032
|
readonly type: "procedure";
|
|
15025
|
-
readonly 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.";
|
|
15033
|
+
readonly 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.";
|
|
15026
15034
|
readonly input: {
|
|
15027
15035
|
readonly encoding: "application/json";
|
|
15028
15036
|
readonly schema: {
|
|
@@ -15067,7 +15075,7 @@ export declare const schemas: ({
|
|
|
15067
15075
|
};
|
|
15068
15076
|
readonly errors: [{
|
|
15069
15077
|
readonly name: "InvalidRequest";
|
|
15070
|
-
readonly 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.";
|
|
15078
|
+
readonly 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.";
|
|
15071
15079
|
}, {
|
|
15072
15080
|
readonly name: "Forbidden";
|
|
15073
15081
|
readonly description: "HTTP 403. repo is not the caller's own. Nothing is written.";
|
|
@@ -15085,7 +15093,7 @@ export declare const schemas: ({
|
|
|
15085
15093
|
readonly write: {
|
|
15086
15094
|
readonly type: "object";
|
|
15087
15095
|
readonly description: "One write: a putRecord input without repo.";
|
|
15088
|
-
readonly required: ["collection", "rkey", "record"];
|
|
15096
|
+
readonly required: ["collection", "rkey", "record", "space"];
|
|
15089
15097
|
readonly properties: {
|
|
15090
15098
|
readonly collection: {
|
|
15091
15099
|
readonly type: "string";
|
|
@@ -15108,7 +15116,7 @@ export declare const schemas: ({
|
|
|
15108
15116
|
readonly space: {
|
|
15109
15117
|
readonly type: "string";
|
|
15110
15118
|
readonly format: "at-uri";
|
|
15111
|
-
readonly description: "The space
|
|
15119
|
+
readonly 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.";
|
|
15112
15120
|
};
|
|
15113
15121
|
};
|
|
15114
15122
|
};
|
|
@@ -16000,7 +16008,7 @@ export declare const schemas: ({
|
|
|
16000
16008
|
};
|
|
16001
16009
|
readonly held: {
|
|
16002
16010
|
readonly type: "boolean";
|
|
16003
|
-
readonly description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a
|
|
16011
|
+
readonly 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.";
|
|
16004
16012
|
};
|
|
16005
16013
|
readonly measures: {
|
|
16006
16014
|
readonly type: "unknown";
|
|
@@ -16409,7 +16417,7 @@ export declare const schemas: ({
|
|
|
16409
16417
|
};
|
|
16410
16418
|
readonly held: {
|
|
16411
16419
|
readonly type: "boolean";
|
|
16412
|
-
readonly description: "The caller's own permissioned record that the reach limit holds back from the people it would reach: a
|
|
16420
|
+
readonly 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.";
|
|
16413
16421
|
};
|
|
16414
16422
|
readonly measures: {
|
|
16415
16423
|
readonly type: "unknown";
|