techne-sdk 0.8.0 → 0.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -3,6 +3,31 @@
3
3
  `techne-sdk` on npm and the `techne-sdk` crate share a version. Each entry names what changes for an app or
4
4
  a crate user.
5
5
 
6
+ ## 0.10.0 (2026-11-21)
7
+
8
+ npm 0.10.0 and crate 0.10.0 are built from the same commit. Additions only; no export is removed or renamed.
9
+ The release moves the crate to the check the platform pins, so the commons can pin platform `main` again.
10
+
11
+ - **Lexicons `v0.1.22-techne.97`, check crate `techne-lexicon-check` 0.3.33** (the crate's dependency, exact).
12
+ New methods `pub.techne.draft.identity.attachLinkGrant` and `pub.techne.draft.identity.claimLinkGrant`
13
+ (generated types, NSIDs and catalog entries); the link-token methods gain their link-grant refusals
14
+ (description and error text only).
15
+ - **Platform API at platform `main` `699c0b2bd`.** No published method changed since `d26238730`.
16
+
17
+ ## 0.9.0 (2026-11-20)
18
+
19
+ npm 0.9.0 and crate 0.9.0 are built from the same commit. Additions only; no export is removed or renamed. The
20
+ crate moves from 0.7.0 to 0.9.0 (its check dependency and placement changed; 0.8.0 was npm only).
21
+
22
+ - **Tag feedback (`pub.techne.draft.tagFeedback`).** New public record type: a person's word on whether one
23
+ tag fits a record, `{subject (strongRef), tag (chip id), verdict ('fits' | 'doesntFit'), createdAt}`, key
24
+ `tid`. `NSID.TAG_FEEDBACK`, its generated type, and a public home in the placement manifest, so `put` and
25
+ `plan` write it to the author's repo instead of sending it to the private write (`permissioned.putRecords`)
26
+ as an unknown `pub.techne` type. `authWrite` (and so `everything: 'write'`) names it.
27
+ - **Lexicons `v0.1.22-techne.96`, check crate `techne-lexicon-check` 0.3.32** (the crate's dependency, exact).
28
+ - **Platform API at platform `main` `d26238730`** (the merge that indexes tagFeedback). Only description text
29
+ changed in its methods (`social.scenius.uploadAvatar`: who gets `InvalidRequest`).
30
+
6
31
  ## 0.8.0 (2026-11-20)
7
32
 
8
33
  npm 0.8.0 adds the app-held session; no export is removed or renamed. Nothing under `crates/` changed since
package/README.md CHANGED
@@ -153,6 +153,35 @@ const techne = connect(session, TECHNE_PLATFORM_DID)
153
153
  device signed in with a full `rsds_` credential (`WrongAccount` when it is not `did`'s); save its answer with
154
154
  `OwnSession.signedIn` at once. The tokens are kept even when the issuer's metadata does not answer.
155
155
 
156
+ ## Do it the atproto way
157
+
158
+ The platform's builder guide (`get_app_guide`) has the same notes.
159
+
160
+ - **Read a record from its own PDS.** Resolve the repo's DID and call `com.atproto.repo.getRecord` on the
161
+ `#atproto_pds` service its document names. `didDocumentUrl(did)` from `techne-sdk/connect` gives the
162
+ document's address (the PLC directory for a did:plc, `did.json` for a did:web). Cache the resolution. Never
163
+ assume a repo lives on the Techne PDS. In Rust, `techne_sdk::fetch::fetch_verified` with a
164
+ `techne_sdk::did::CommonDidKeyResolver` (feature `net`) does this and verifies the record's proof.
165
+ - **A backend writes as an identity only under that identity's grant.** The grant is a token in the request,
166
+ or the identity's own OAuth grant to that service (narrow, visible to the person, revocable). Holding an
167
+ account's keys is not a grant.
168
+ - **Custodial collectives are a named exception.** The platform holds a collective's key today, and
169
+ `writeAsCollective` relies on that. The exception goes once a collective can grant the platform like any
170
+ account. Build nothing new that depends on the platform holding the key.
171
+ - **Something the collective says is written as the collective:** `techne.writeAsCollective(input)`, and the
172
+ collective's policy decides. Shared work of its members is different. It goes in a space the collective
173
+ shares, and each member writes their part into their own repo (`put` with a `space`).
174
+ - **The client that holds the permission makes every write of an action, while the person waits.** That
175
+ covers the person's own record and any write as the collective. The platform makes no background write
176
+ because of something a person did.
177
+ - **Link grants are the example.** An app holding its own session redeems the link at the person's identity
178
+ PDS (`pub.techne.draft.identity.redeemLinkToken`), then calls `pub.techne.draft.identity.claimLinkGrant`
179
+ through that PDS in the same action. The platform writes the grant's record in that request and never
180
+ later. `transition:generic` covers that call today; an app that drops it needs
181
+ `rpc:pub.techne.draft.identity.claimLinkGrant?aud=did:web:techne.computer%23atproto_appview`. This SDK
182
+ has no wrapper for `claimLinkGrant` yet; `redeemLink` from `techne-sdk/links` calls the platform, which
183
+ opens only links from before link tokens for such an app.
184
+
156
185
  ## Where we differ from atproto
157
186
 
158
187
  The platform follows atproto where atproto has an answer. These are the places it does not, today. The platform's builder guide (`get_app_guide`) has the same list.
@@ -1 +1 @@
1
- export declare const PUBLIC_HOMES: readonly ["pub.techne.draft.appConfig", "pub.techne.draft.approval", "pub.techne.draft.connection", "pub.techne.draft.contactChannel", "pub.techne.draft.channelVerification", "pub.techne.draft.containedIn", "pub.techne.draft.derivation", "pub.techne.draft.distinctFrom", "pub.techne.draft.geo", "pub.techne.draft.heldAt", "pub.techne.draft.operator", "pub.techne.draft.org", "pub.techne.draft.orgAtPlace", "pub.techne.draft.financials", "pub.techne.draft.statement", "pub.techne.draft.profile", "pub.techne.draft.assessment", "pub.techne.draft.placeResearch", "pub.techne.draft.summary", "pub.techne.draft.provenance", "pub.techne.draft.questionSet", "pub.techne.draft.receipt", "pub.techne.draft.registry.typeRequest", "pub.techne.draft.verdict", "pub.techne.draft.verification", "pub.techne.draft.retirement", "pub.techne.draft.credential", "pub.techne.draft.credentialRevocation", "pub.techne.draft.publisher", "pub.techne.draft.sameAs", "pub.techne.draft.source", "pub.techne.draft.sourceAttribution", "pub.techne.draft.sourceRef", "pub.techne.draft.evaluation", "pub.techne.draft.event.config", "pub.techne.draft.event.listing", "pub.techne.draft.feed.recipe", "pub.techne.draft.query", "pub.techne.draft.invite", "pub.techne.draft.market.ask", "pub.techne.draft.market.offer", "pub.techne.draft.membership", "pub.techne.draft.place", "pub.techne.draft.presence", "pub.techne.draft.actor.profile", "pub.techne.draft.collective", "community.lexicon.calendar.event", "community.lexicon.calendar.rsvp", "org.hypercerts.funding.receipt"];
1
+ export declare const PUBLIC_HOMES: readonly ["pub.techne.draft.appConfig", "pub.techne.draft.approval", "pub.techne.draft.connection", "pub.techne.draft.contactChannel", "pub.techne.draft.channelVerification", "pub.techne.draft.containedIn", "pub.techne.draft.derivation", "pub.techne.draft.distinctFrom", "pub.techne.draft.geo", "pub.techne.draft.heldAt", "pub.techne.draft.operator", "pub.techne.draft.org", "pub.techne.draft.orgAtPlace", "pub.techne.draft.financials", "pub.techne.draft.statement", "pub.techne.draft.profile", "pub.techne.draft.assessment", "pub.techne.draft.placeResearch", "pub.techne.draft.summary", "pub.techne.draft.tagFeedback", "pub.techne.draft.provenance", "pub.techne.draft.questionSet", "pub.techne.draft.receipt", "pub.techne.draft.registry.typeRequest", "pub.techne.draft.verdict", "pub.techne.draft.verification", "pub.techne.draft.retirement", "pub.techne.draft.credential", "pub.techne.draft.credentialRevocation", "pub.techne.draft.publisher", "pub.techne.draft.sameAs", "pub.techne.draft.source", "pub.techne.draft.sourceAttribution", "pub.techne.draft.sourceRef", "pub.techne.draft.evaluation", "pub.techne.draft.event.config", "pub.techne.draft.event.listing", "pub.techne.draft.feed.recipe", "pub.techne.draft.query", "pub.techne.draft.invite", "pub.techne.draft.market.ask", "pub.techne.draft.market.offer", "pub.techne.draft.membership", "pub.techne.draft.place", "pub.techne.draft.presence", "pub.techne.draft.actor.profile", "pub.techne.draft.collective", "community.lexicon.calendar.event", "community.lexicon.calendar.rsvp", "org.hypercerts.funding.receipt"];
@@ -23,6 +23,7 @@ export const PUBLIC_HOMES = [
23
23
  NSID.ASSESSMENT,
24
24
  NSID.PLACE_RESEARCH,
25
25
  NSID.SUMMARY,
26
+ NSID.TAG_FEEDBACK,
26
27
  NSID.PROVENANCE,
27
28
  NSID.QUESTION_SET,
28
29
  NSID.RECEIPT,
@@ -5882,6 +5882,98 @@ export const catalog = {
5882
5882
  }
5883
5883
  })
5884
5884
  },
5885
+ {
5886
+ "nsid": "pub.techne.draft.identity.attachLinkGrant",
5887
+ "name": "draft.identity.attachLinkGrant",
5888
+ "group": "pub.techne",
5889
+ "kind": "procedure",
5890
+ "description": "Attach a grant to a link token the caller made on their own identity PDS (an app holding its own session calls createLinkToken or resetLinkToken there, then this through its PDS). The platform asks the identity PDS (checkLinkToken) whether `token` is live and the caller's; it then keeps `grant` for that link as createLinkToken with `grant` does. `grant.actAs` must be a collective (`ActAsPerson` otherwise): a person's records are written by their own app, never by the platform for someone else's tap, so a link to a person's thing carries no grant and its owner's app acts on the redemptions it lists. The same rules hold: the grant writes as the account the link's target names, the caller must be able to write as `grant.actAs` now and when the link is redeemed, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. Such a grant is released only in the redeemer's own request: their app redeems the link at its identity PDS, then calls claimLinkGrant; it is never released in the background. Releasing a grant that writes as a circle relies on the platform holding the circle's key, a named exception that goes when collectives can grant the platform like any account. One grant per link: attaching the same grant again answers as the first time; a different one is `AlreadyGranted`. A redemption reported before the grant was attached releases nothing, so attach before sharing the link. Only an account hosted on the platform's identity PDS can attach a grant. One call spends one of the caller's writes.",
5891
+ "doc": ({
5892
+ "lexicon": 1,
5893
+ "id": "pub.techne.draft.identity.attachLinkGrant",
5894
+ "defs": {
5895
+ "main": {
5896
+ "type": "procedure",
5897
+ "description": "Attach a grant to a link token the caller made on their own identity PDS (an app holding its own session calls createLinkToken or resetLinkToken there, then this through its PDS). The platform asks the identity PDS (checkLinkToken) whether `token` is live and the caller's; it then keeps `grant` for that link as createLinkToken with `grant` does. `grant.actAs` must be a collective (`ActAsPerson` otherwise): a person's records are written by their own app, never by the platform for someone else's tap, so a link to a person's thing carries no grant and its owner's app acts on the redemptions it lists. The same rules hold: the grant writes as the account the link's target names, the caller must be able to write as `grant.actAs` now and when the link is redeemed, and the record must be one permissioned.putRecord would take with the caller's DID in the slot. Such a grant is released only in the redeemer's own request: their app redeems the link at its identity PDS, then calls claimLinkGrant; it is never released in the background. Releasing a grant that writes as a circle relies on the platform holding the circle's key, a named exception that goes when collectives can grant the platform like any account. One grant per link: attaching the same grant again answers as the first time; a different one is `AlreadyGranted`. A redemption reported before the grant was attached releases nothing, so attach before sharing the link. Only an account hosted on the platform's identity PDS can attach a grant. One call spends one of the caller's writes.",
5898
+ "input": {
5899
+ "encoding": "application/json",
5900
+ "schema": {
5901
+ "type": "object",
5902
+ "required": [
5903
+ "token",
5904
+ "grant"
5905
+ ],
5906
+ "properties": {
5907
+ "token": {
5908
+ "type": "string",
5909
+ "minLength": 1,
5910
+ "maxLength": 512,
5911
+ "description": "The link's token, as the identity PDS answered it to the caller."
5912
+ },
5913
+ "grant": {
5914
+ "type": "ref",
5915
+ "ref": "pub.techne.draft.identity.defs#linkGrant"
5916
+ }
5917
+ }
5918
+ }
5919
+ },
5920
+ "output": {
5921
+ "encoding": "application/json",
5922
+ "schema": {
5923
+ "type": "object",
5924
+ "required": [
5925
+ "id"
5926
+ ],
5927
+ "properties": {
5928
+ "id": {
5929
+ "type": "string",
5930
+ "description": "The link's id on the identity PDS."
5931
+ }
5932
+ }
5933
+ }
5934
+ },
5935
+ "errors": [
5936
+ {
5937
+ "name": "InvalidRequest",
5938
+ "description": "HTTP 400: a field out of bounds, the grant does not write as the account the link's target names, or a body that is not JSON; 413: the body, or `grant.write`, over its size cap; 415: not application/json; 422: not the input's shape."
5939
+ },
5940
+ {
5941
+ "name": "LinkNotUsable",
5942
+ "description": "HTTP 400: the token names no live link of the caller's."
5943
+ },
5944
+ {
5945
+ "name": "ActAsPerson",
5946
+ "description": "HTTP 400: `grant.actAs` is not a collective the platform knows (a person, or an unknown account); only a collective's grant can be attached."
5947
+ },
5948
+ {
5949
+ "name": "AlreadyGranted",
5950
+ "description": "HTTP 409: the link already carries another grant."
5951
+ },
5952
+ {
5953
+ "name": "Forbidden",
5954
+ "description": "HTTP 403: `grant.actAs` is not an account the caller may write as."
5955
+ },
5956
+ {
5957
+ "name": "ProgramRefused",
5958
+ "description": "HTTP 403: an agent's or program's token may not attach a grant that writes an approval record."
5959
+ },
5960
+ {
5961
+ "name": "NotSupported",
5962
+ "description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there."
5963
+ },
5964
+ {
5965
+ "name": "RateLimitExceeded",
5966
+ "description": "HTTP 429: too many writes from this DID, or the identity PDS is limiting the platform's checks; try again later."
5967
+ },
5968
+ {
5969
+ "name": "UpstreamFailure",
5970
+ "description": "HTTP 502: the identity PDS could not be reached or answered with a failure; try again."
5971
+ }
5972
+ ]
5973
+ }
5974
+ }
5975
+ })
5976
+ },
5885
5977
  {
5886
5978
  "nsid": "pub.techne.draft.identity.attest",
5887
5979
  "name": "draft.identity.attest",
@@ -6212,6 +6304,97 @@ export const catalog = {
6212
6304
  }
6213
6305
  })
6214
6306
  },
6307
+ {
6308
+ "nsid": "pub.techne.draft.identity.claimLinkGrant",
6309
+ "name": "draft.identity.claimLinkGrant",
6310
+ "group": "pub.techne",
6311
+ "kind": "procedure",
6312
+ "description": "Release, now, the grant of a link the caller redeemed on their own identity PDS (an app holding its own session calls redeemLinkToken there, then this through its PDS, in the same user action). The platform needs the redemption the identity PDS reported for the caller; it writes the grant's record as the grant's `actAs` in this request, under the grant's rules (the link's owner may still write as `actAs`, no block between owner and redeemer). The platform never releases such a grant in the background. Claiming a link again releases its grant again only for a reusable link still live under `token` (someone removed from a circle who opens its link again is a member again); otherwise it answers `written: false`. One call spends one of the caller's writes.",
6313
+ "doc": ({
6314
+ "lexicon": 1,
6315
+ "id": "pub.techne.draft.identity.claimLinkGrant",
6316
+ "defs": {
6317
+ "main": {
6318
+ "type": "procedure",
6319
+ "description": "Release, now, the grant of a link the caller redeemed on their own identity PDS (an app holding its own session calls redeemLinkToken there, then this through its PDS, in the same user action). The platform needs the redemption the identity PDS reported for the caller; it writes the grant's record as the grant's `actAs` in this request, under the grant's rules (the link's owner may still write as `actAs`, no block between owner and redeemer). The platform never releases such a grant in the background. Claiming a link again releases its grant again only for a reusable link still live under `token` (someone removed from a circle who opens its link again is a member again); otherwise it answers `written: false`. One call spends one of the caller's writes.",
6320
+ "input": {
6321
+ "encoding": "application/json",
6322
+ "schema": {
6323
+ "type": "object",
6324
+ "required": [
6325
+ "id",
6326
+ "token"
6327
+ ],
6328
+ "properties": {
6329
+ "id": {
6330
+ "type": "string",
6331
+ "minLength": 1,
6332
+ "maxLength": 512,
6333
+ "description": "The link's id, as redeemLinkToken answered it."
6334
+ },
6335
+ "token": {
6336
+ "type": "string",
6337
+ "minLength": 1,
6338
+ "maxLength": 512,
6339
+ "description": "The link's token, as redeemed."
6340
+ }
6341
+ }
6342
+ }
6343
+ },
6344
+ "output": {
6345
+ "encoding": "application/json",
6346
+ "schema": {
6347
+ "type": "object",
6348
+ "required": [
6349
+ "id",
6350
+ "written"
6351
+ ],
6352
+ "properties": {
6353
+ "id": {
6354
+ "type": "string",
6355
+ "description": "The link's id."
6356
+ },
6357
+ "written": {
6358
+ "type": "boolean",
6359
+ "description": "Whether the grant's record was written by this call."
6360
+ },
6361
+ "reason": {
6362
+ "type": "string",
6363
+ "description": "When nothing was written: why (the record is already there, the link carries no grant, it was revoked, the grant was released before, ...). Free text, for logs."
6364
+ }
6365
+ }
6366
+ }
6367
+ },
6368
+ "errors": [
6369
+ {
6370
+ "name": "InvalidRequest",
6371
+ "description": "HTTP 400: a field out of bounds, or a body that is not JSON; 413: the body over its size cap; 415: not application/json; 422: not the input's shape."
6372
+ },
6373
+ {
6374
+ "name": "NotRedeemed",
6375
+ "description": "HTTP 409: no redemption of this link by the caller has been reported by the identity PDS (yet); redeem it there first."
6376
+ },
6377
+ {
6378
+ "name": "TryAgain",
6379
+ "description": "HTTP 503: the release could not finish now; claim it again."
6380
+ },
6381
+ {
6382
+ "name": "NotSupported",
6383
+ "description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there."
6384
+ },
6385
+ {
6386
+ "name": "RateLimitExceeded",
6387
+ "description": "HTTP 429: too many writes from this DID, or the identity PDS is limiting the platform's checks; try again later."
6388
+ },
6389
+ {
6390
+ "name": "UpstreamFailure",
6391
+ "description": "HTTP 502: the identity PDS could not be reached or answered with a failure; try again."
6392
+ }
6393
+ ]
6394
+ }
6395
+ }
6396
+ })
6397
+ },
6215
6398
  {
6216
6399
  "nsid": "pub.techne.draft.identity.createCollective",
6217
6400
  "name": "draft.identity.createCollective",
@@ -6358,7 +6541,7 @@ export const catalog = {
6358
6541
  },
6359
6542
  {
6360
6543
  "name": "NotSupported",
6361
- "description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there."
6544
+ "description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there; or the caller holds its own session (it came through its PDS with a service-auth token): call this method on its identity PDS itself and attach a grant with attachLinkGrant."
6362
6545
  },
6363
6546
  {
6364
6547
  "name": "RateLimitExceeded",
@@ -7287,7 +7470,7 @@ export const catalog = {
7287
7470
  },
7288
7471
  {
7289
7472
  "name": "NotSupported",
7290
- "description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there."
7473
+ "description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there; or the caller holds its own session (it came through its PDS with a service-auth token): call this method on its identity PDS itself."
7291
7474
  },
7292
7475
  {
7293
7476
  "name": "RateLimitExceeded",
@@ -7364,7 +7547,7 @@ export const catalog = {
7364
7547
  },
7365
7548
  {
7366
7549
  "name": "NotSupported",
7367
- "description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there."
7550
+ "description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there; or the caller holds its own session (it came through its PDS with a service-auth token): call this method on its identity PDS itself."
7368
7551
  },
7369
7552
  {
7370
7553
  "name": "RateLimitExceeded",
@@ -8307,14 +8490,14 @@ export const catalog = {
8307
8490
  "name": "draft.identity.redeemLinkToken",
8308
8491
  "group": "pub.techne",
8309
8492
  "kind": "procedure",
8310
- "description": "Redeem a link token as the caller. The identity PDS records it and reports it to the platform, which writes the caller's linkRedemption record and the link's grant, usually before this answers. Redeeming again a link the caller already redeemed answers `repeat` and changes nothing. One call spends one of the caller's writes. An older link (one the served app made before link tokens) writes no linkRedemption record.",
8493
+ "description": "Redeem a link token as the caller. The identity PDS records it and reports it to the platform, which writes the caller's linkRedemption record and the link's grant, usually before this answers. Redeeming again a link the caller already redeemed answers `repeat` and changes nothing. One call spends one of the caller's writes. An older link (one the served app made before link tokens) writes no linkRedemption record. A caller that holds its own session redeems at its identity PDS and then calls claimLinkGrant; here it opens only the app's links from before link tokens. A link whose grant was attached with attachLinkGrant has it released in this request.",
8311
8494
  "doc": ({
8312
8495
  "lexicon": 1,
8313
8496
  "id": "pub.techne.draft.identity.redeemLinkToken",
8314
8497
  "defs": {
8315
8498
  "main": {
8316
8499
  "type": "procedure",
8317
- "description": "Redeem a link token as the caller. The identity PDS records it and reports it to the platform, which writes the caller's linkRedemption record and the link's grant, usually before this answers. Redeeming again a link the caller already redeemed answers `repeat` and changes nothing. One call spends one of the caller's writes. An older link (one the served app made before link tokens) writes no linkRedemption record.",
8500
+ "description": "Redeem a link token as the caller. The identity PDS records it and reports it to the platform, which writes the caller's linkRedemption record and the link's grant, usually before this answers. Redeeming again a link the caller already redeemed answers `repeat` and changes nothing. One call spends one of the caller's writes. An older link (one the served app made before link tokens) writes no linkRedemption record. A caller that holds its own session redeems at its identity PDS and then calls claimLinkGrant; here it opens only the app's links from before link tokens. A link whose grant was attached with attachLinkGrant has it released in this request.",
8318
8501
  "input": {
8319
8502
  "encoding": "application/json",
8320
8503
  "schema": {
@@ -8377,7 +8560,7 @@ export const catalog = {
8377
8560
  },
8378
8561
  {
8379
8562
  "name": "LinkNotUsable",
8380
- "description": "HTTP 400: the link is unknown, revoked, expired or already used by another account (\"this link no longer works\")."
8563
+ "description": "HTTP 400: the link is unknown, revoked, expired or already used by another account (\"this link no longer works\"); or, for a caller that holds its own session, any token but one of the app's links from before link tokens."
8381
8564
  },
8382
8565
  {
8383
8566
  "name": "OwnLink",
@@ -8531,7 +8714,7 @@ export const catalog = {
8531
8714
  },
8532
8715
  {
8533
8716
  "name": "NotSupported",
8534
- "description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there."
8717
+ "description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there; or the caller holds its own session (it came through its PDS with a service-auth token): call this method on its identity PDS itself and attach a grant with attachLinkGrant."
8535
8718
  },
8536
8719
  {
8537
8720
  "name": "RateLimitExceeded",
@@ -8704,7 +8887,7 @@ export const catalog = {
8704
8887
  },
8705
8888
  {
8706
8889
  "name": "NotSupported",
8707
- "description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there."
8890
+ "description": "HTTP 400: the caller's account is not hosted on the platform's identity PDS, or link tokens are not configured there; or the caller holds its own session (it came through its PDS with a service-auth token): call this method on its identity PDS itself."
8708
8891
  },
8709
8892
  {
8710
8893
  "name": "RateLimitExceeded",
@@ -16457,6 +16640,95 @@ export const catalog = {
16457
16640
  }
16458
16641
  })
16459
16642
  },
16643
+ {
16644
+ "nsid": "pub.techne.draft.tagFeedback",
16645
+ "name": "draft.tagFeedback",
16646
+ "group": "pub.techne",
16647
+ "kind": "record",
16648
+ "key": "tid",
16649
+ "description": "One live feedback per person per record and tag: a newer one replaces an older one (whatever its verdict), and a person who changes their mind deletes it.",
16650
+ "fields": [
16651
+ {
16652
+ "name": "subject",
16653
+ "type": "→ com.atproto.repo.strongRef",
16654
+ "required": true,
16655
+ "description": "The record the tag is on: the curated commons event (the subject of its assessment)."
16656
+ },
16657
+ {
16658
+ "name": "tag",
16659
+ "type": "string",
16660
+ "required": true,
16661
+ "description": "The tag as the app names it: a chip id in the app's chip groups, e.g. allAges or kids. Not a bank question: the chip groups map the tag to its questions."
16662
+ },
16663
+ {
16664
+ "name": "verdict",
16665
+ "type": "string (enum)",
16666
+ "required": true,
16667
+ "description": "What the person says about the record, not about the display: `fits`: the record has this tag's quality; `doesntFit`: it does not. Either can be said whether or not the tag is shown; feedback that agrees with what is shown asks nothing.",
16668
+ "knownValues": [
16669
+ "fits",
16670
+ "doesntFit"
16671
+ ]
16672
+ },
16673
+ {
16674
+ "name": "createdAt",
16675
+ "type": "string<datetime>",
16676
+ "required": true
16677
+ }
16678
+ ],
16679
+ "doc": ({
16680
+ "lexicon": 1,
16681
+ "id": "pub.techne.draft.tagFeedback",
16682
+ "description": "A person's feedback on one tag they saw on a record: that the record has that tag's quality (it fits) or does not (a Kids tag on a bar show does not fit). It records what the person saw, the tag, not the questions behind it: the commons maps a tag to its bank questions at read time, by the app's chip groups (the same mapping that lights the tag), so the feedback still applies after the record's assessment is rewritten or a chip's questions change. Tags only: there is no free text (prose about an event goes to the app's moderation report). Effect: the commons features rule asks the tag's questions about the record again, telling its classifier how many people say the tag does or does not fit; the classifier still answers from the record's own listing: feedback is context for it, not a vote. Feedback from the record's own publisher, or from the publisher of any source record merged into it, does not count. It is about the tag, never a mark against the record's author, host or venue. Written by the person, in their own repo. PUBLIC.",
16683
+ "defs": {
16684
+ "main": {
16685
+ "type": "record",
16686
+ "key": "tid",
16687
+ "description": "One live feedback per person per record and tag: a newer one replaces an older one (whatever its verdict), and a person who changes their mind deletes it.",
16688
+ "record": {
16689
+ "type": "object",
16690
+ "required": [
16691
+ "subject",
16692
+ "tag",
16693
+ "verdict",
16694
+ "createdAt"
16695
+ ],
16696
+ "properties": {
16697
+ "subject": {
16698
+ "type": "ref",
16699
+ "ref": "com.atproto.repo.strongRef",
16700
+ "description": "The record the tag is on: the curated commons event (the subject of its assessment)."
16701
+ },
16702
+ "tag": {
16703
+ "type": "string",
16704
+ "maxLength": 64,
16705
+ "description": "The tag as the app names it: a chip id in the app's chip groups, e.g. allAges or kids. Not a bank question: the chip groups map the tag to its questions."
16706
+ },
16707
+ "verdict": {
16708
+ "type": "string",
16709
+ "maxLength": 64,
16710
+ "knownValues": [
16711
+ "fits",
16712
+ "doesntFit"
16713
+ ],
16714
+ "description": "What the person says about the record, not about the display: `fits`: the record has this tag's quality; `doesntFit`: it does not. Either can be said whether or not the tag is shown; feedback that agrees with what is shown asks nothing."
16715
+ },
16716
+ "createdAt": {
16717
+ "type": "string",
16718
+ "format": "datetime"
16719
+ }
16720
+ }
16721
+ }
16722
+ }
16723
+ }
16724
+ }),
16725
+ "homes": [
16726
+ {
16727
+ "space": "public",
16728
+ "unbuilt": false
16729
+ }
16730
+ ]
16731
+ },
16460
16732
  {
16461
16733
  "nsid": "pub.techne.draft.verdict",
16462
16734
  "name": "draft.verdict",
@@ -18146,6 +18418,7 @@ export const catalog = {
18146
18418
  "pub.techne.draft.assessment",
18147
18419
  "pub.techne.draft.placeResearch",
18148
18420
  "pub.techne.draft.summary",
18421
+ "pub.techne.draft.tagFeedback",
18149
18422
  "pub.techne.draft.provenance",
18150
18423
  "pub.techne.draft.questionSet",
18151
18424
  "pub.techne.draft.receipt",
@@ -18251,6 +18524,7 @@ export const catalog = {
18251
18524
  "pub.techne.draft.assessment",
18252
18525
  "pub.techne.draft.placeResearch",
18253
18526
  "pub.techne.draft.summary",
18527
+ "pub.techne.draft.tagFeedback",
18254
18528
  "pub.techne.draft.provenance",
18255
18529
  "pub.techne.draft.questionSet",
18256
18530
  "pub.techne.draft.receipt",
@@ -34438,7 +34712,7 @@ export const catalog = {
34438
34712
  "group": "social.scenius",
34439
34713
  "kind": "procedure",
34440
34714
  "class": "write",
34441
- "description": "Upload profile-photo bytes and get back the atproto blob ref to hand to social.scenius.putProfile. This is a PASSTHROUGH to the caller's own PDS (com.atproto.repo.uploadBlob, authenticated as the repo owner): the bytes live in the author's OWN repo, never in an AppView-local store, so a photo is as portable as every other record. Custodial-only (a BYOD account gets a warm 400) — we can only upload into a repo whose credentials we hold. The body is the raw image bytes; Content-Type MUST be the image's mime type. Auth required. Nothing is written to any record here — the upload is only durable once a putProfile references it.",
34715
+ "description": "Upload profile-photo bytes and get back the atproto blob ref to hand to social.scenius.putProfile. This is a PASSTHROUGH to the caller's own PDS (com.atproto.repo.uploadBlob, authenticated as the repo owner): the bytes live in the author's OWN repo, never in an AppView-local store, so a photo is as portable as every other record. Only for a caller signed in to the platform itself, for a repo whose credential the platform holds (custodial, or a session it holds). A caller that comes through its own PDS with a service-auth token (an app or phone holding its own OAuth session), or whose repo the platform holds no credential for (a BYOD account), gets 400 InvalidRequest and uploads with com.atproto.repo.uploadBlob at its own PDS. The body is the raw image bytes; Content-Type MUST be the image's mime type. Auth required. Nothing is written to any record here — the upload is only durable once a putProfile references it.",
34442
34716
  "output": [
34443
34717
  {
34444
34718
  "name": "blob",
@@ -34453,7 +34727,7 @@ export const catalog = {
34453
34727
  "defs": {
34454
34728
  "main": {
34455
34729
  "type": "procedure",
34456
- "description": "Upload profile-photo bytes and get back the atproto blob ref to hand to social.scenius.putProfile. This is a PASSTHROUGH to the caller's own PDS (com.atproto.repo.uploadBlob, authenticated as the repo owner): the bytes live in the author's OWN repo, never in an AppView-local store, so a photo is as portable as every other record. Custodial-only (a BYOD account gets a warm 400) — we can only upload into a repo whose credentials we hold. The body is the raw image bytes; Content-Type MUST be the image's mime type. Auth required. Nothing is written to any record here — the upload is only durable once a putProfile references it.",
34730
+ "description": "Upload profile-photo bytes and get back the atproto blob ref to hand to social.scenius.putProfile. This is a PASSTHROUGH to the caller's own PDS (com.atproto.repo.uploadBlob, authenticated as the repo owner): the bytes live in the author's OWN repo, never in an AppView-local store, so a photo is as portable as every other record. Only for a caller signed in to the platform itself, for a repo whose credential the platform holds (custodial, or a session it holds). A caller that comes through its own PDS with a service-auth token (an app or phone holding its own OAuth session), or whose repo the platform holds no credential for (a BYOD account), gets 400 InvalidRequest and uploads with com.atproto.repo.uploadBlob at its own PDS. The body is the raw image bytes; Content-Type MUST be the image's mime type. Auth required. Nothing is written to any record here — the upload is only durable once a putProfile references it.",
34457
34731
  "input": {
34458
34732
  "encoding": "*/*",
34459
34733
  "description": "The raw image bytes. Content-Type must be image/png, image/jpeg or image/webp; the body must be at most 2000000 bytes. Both are enforced server-side and a violation is a 400 InvalidRequest with a readable message, never a silent success. (A body over the route's own 8 MiB transport ceiling is refused by the HTTP layer with a bare 413 before this handler sees it — still a real error, just not this method's typed one.)"
@@ -34482,7 +34756,7 @@ export const catalog = {
34482
34756
  "errors": [
34483
34757
  {
34484
34758
  "name": "InvalidRequest",
34485
- "description": "Unaccepted Content-Type, an empty body, a body over maxSize, or a non-custodial (BYOD) account."
34759
+ "description": "Unaccepted Content-Type, an empty body, a body over maxSize, a caller that came through its own PDS (service-auth), or a repo the platform holds no credential for."
34486
34760
  }
34487
34761
  ]
34488
34762
  }
@@ -34491,7 +34765,7 @@ export const catalog = {
34491
34765
  }
34492
34766
  ],
34493
34767
  "counts": {
34494
- "records": 159,
34768
+ "records": 162,
34495
34769
  "spaces": 13,
34496
34770
  "predicates": 9,
34497
34771
  "methods": 130
@@ -49,10 +49,12 @@ import * as PubTechneDraftFinancials from './types/pub/techne/draft/financials.j
49
49
  import * as PubTechneDraftGeo from './types/pub/techne/draft/geo.js';
50
50
  import * as PubTechneDraftHeldAt from './types/pub/techne/draft/heldAt.js';
51
51
  import * as PubTechneDraftIdentityAccountsForPhones from './types/pub/techne/draft/identity/accountsForPhones.js';
52
+ import * as PubTechneDraftIdentityAttachLinkGrant from './types/pub/techne/draft/identity/attachLinkGrant.js';
52
53
  import * as PubTechneDraftIdentityAttest from './types/pub/techne/draft/identity/attest.js';
53
54
  import * as PubTechneDraftIdentityBeginAddMethod from './types/pub/techne/draft/identity/beginAddMethod.js';
54
55
  import * as PubTechneDraftIdentityCancelPendingChange from './types/pub/techne/draft/identity/cancelPendingChange.js';
55
56
  import * as PubTechneDraftIdentityCheckLinkToken from './types/pub/techne/draft/identity/checkLinkToken.js';
57
+ import * as PubTechneDraftIdentityClaimLinkGrant from './types/pub/techne/draft/identity/claimLinkGrant.js';
56
58
  import * as PubTechneDraftIdentityCreateCollective from './types/pub/techne/draft/identity/createCollective.js';
57
59
  import * as PubTechneDraftIdentityCreateLinkToken from './types/pub/techne/draft/identity/createLinkToken.js';
58
60
  import * as PubTechneDraftIdentityFinishAddMethod from './types/pub/techne/draft/identity/finishAddMethod.js';
@@ -131,6 +133,7 @@ import * as PubTechneDraftStatement from './types/pub/techne/draft/statement.js'
131
133
  import * as PubTechneDraftSubjectPrefs from './types/pub/techne/draft/subjectPrefs.js';
132
134
  import * as PubTechneDraftSummary from './types/pub/techne/draft/summary.js';
133
135
  import * as PubTechneDraftSyncIndexRecord from './types/pub/techne/draft/sync/indexRecord.js';
136
+ import * as PubTechneDraftTagFeedback from './types/pub/techne/draft/tagFeedback.js';
134
137
  import * as PubTechneDraftVerdict from './types/pub/techne/draft/verdict.js';
135
138
  import * as PubTechneDraftVerification from './types/pub/techne/draft/verification.js';
136
139
  import * as PubTechneDraftWeeklyCheckIn from './types/pub/techne/draft/weeklyCheckIn.js';
@@ -212,10 +215,12 @@ export * as PubTechneDraftFinancials from './types/pub/techne/draft/financials.j
212
215
  export * as PubTechneDraftGeo from './types/pub/techne/draft/geo.js';
213
216
  export * as PubTechneDraftHeldAt from './types/pub/techne/draft/heldAt.js';
214
217
  export * as PubTechneDraftIdentityAccountsForPhones from './types/pub/techne/draft/identity/accountsForPhones.js';
218
+ export * as PubTechneDraftIdentityAttachLinkGrant from './types/pub/techne/draft/identity/attachLinkGrant.js';
215
219
  export * as PubTechneDraftIdentityAttest from './types/pub/techne/draft/identity/attest.js';
216
220
  export * as PubTechneDraftIdentityBeginAddMethod from './types/pub/techne/draft/identity/beginAddMethod.js';
217
221
  export * as PubTechneDraftIdentityCancelPendingChange from './types/pub/techne/draft/identity/cancelPendingChange.js';
218
222
  export * as PubTechneDraftIdentityCheckLinkToken from './types/pub/techne/draft/identity/checkLinkToken.js';
223
+ export * as PubTechneDraftIdentityClaimLinkGrant from './types/pub/techne/draft/identity/claimLinkGrant.js';
219
224
  export * as PubTechneDraftIdentityCreateCollective from './types/pub/techne/draft/identity/createCollective.js';
220
225
  export * as PubTechneDraftIdentityCreateLinkToken from './types/pub/techne/draft/identity/createLinkToken.js';
221
226
  export * as PubTechneDraftIdentityDefs from './types/pub/techne/draft/identity/defs.js';
@@ -296,6 +301,7 @@ export * as PubTechneDraftStatement from './types/pub/techne/draft/statement.js'
296
301
  export * as PubTechneDraftSubjectPrefs from './types/pub/techne/draft/subjectPrefs.js';
297
302
  export * as PubTechneDraftSummary from './types/pub/techne/draft/summary.js';
298
303
  export * as PubTechneDraftSyncIndexRecord from './types/pub/techne/draft/sync/indexRecord.js';
304
+ export * as PubTechneDraftTagFeedback from './types/pub/techne/draft/tagFeedback.js';
299
305
  export * as PubTechneDraftVerdict from './types/pub/techne/draft/verdict.js';
300
306
  export * as PubTechneDraftVerification from './types/pub/techne/draft/verification.js';
301
307
  export * as PubTechneDraftWeeklyCheckIn from './types/pub/techne/draft/weeklyCheckIn.js';
@@ -580,6 +586,7 @@ export declare class PubTechneDraftNS {
580
586
  statement: PubTechneDraftStatementRecord;
581
587
  subjectPrefs: PubTechneDraftSubjectPrefsRecord;
582
588
  summary: PubTechneDraftSummaryRecord;
589
+ tagFeedback: PubTechneDraftTagFeedbackRecord;
583
590
  verdict: PubTechneDraftVerdictRecord;
584
591
  verification: PubTechneDraftVerificationRecord;
585
592
  weeklyCheckIn: PubTechneDraftWeeklyCheckInRecord;
@@ -751,10 +758,12 @@ export declare class PubTechneDraftIdentityNS {
751
758
  linkRedemption: PubTechneDraftIdentityLinkRedemptionRecord;
752
759
  constructor(client: XrpcClient);
753
760
  accountsForPhones(data?: PubTechneDraftIdentityAccountsForPhones.InputSchema, opts?: PubTechneDraftIdentityAccountsForPhones.CallOptions): Promise<PubTechneDraftIdentityAccountsForPhones.Response>;
761
+ attachLinkGrant(data?: PubTechneDraftIdentityAttachLinkGrant.InputSchema, opts?: PubTechneDraftIdentityAttachLinkGrant.CallOptions): Promise<PubTechneDraftIdentityAttachLinkGrant.Response>;
754
762
  attest(data?: PubTechneDraftIdentityAttest.InputSchema, opts?: PubTechneDraftIdentityAttest.CallOptions): Promise<PubTechneDraftIdentityAttest.Response>;
755
763
  beginAddMethod(data?: PubTechneDraftIdentityBeginAddMethod.InputSchema, opts?: PubTechneDraftIdentityBeginAddMethod.CallOptions): Promise<PubTechneDraftIdentityBeginAddMethod.Response>;
756
764
  cancelPendingChange(data?: PubTechneDraftIdentityCancelPendingChange.InputSchema, opts?: PubTechneDraftIdentityCancelPendingChange.CallOptions): Promise<PubTechneDraftIdentityCancelPendingChange.Response>;
757
765
  checkLinkToken(data?: PubTechneDraftIdentityCheckLinkToken.InputSchema, opts?: PubTechneDraftIdentityCheckLinkToken.CallOptions): Promise<PubTechneDraftIdentityCheckLinkToken.Response>;
766
+ claimLinkGrant(data?: PubTechneDraftIdentityClaimLinkGrant.InputSchema, opts?: PubTechneDraftIdentityClaimLinkGrant.CallOptions): Promise<PubTechneDraftIdentityClaimLinkGrant.Response>;
758
767
  createCollective(data?: PubTechneDraftIdentityCreateCollective.InputSchema, opts?: PubTechneDraftIdentityCreateCollective.CallOptions): Promise<PubTechneDraftIdentityCreateCollective.Response>;
759
768
  createLinkToken(data?: PubTechneDraftIdentityCreateLinkToken.InputSchema, opts?: PubTechneDraftIdentityCreateLinkToken.CallOptions): Promise<PubTechneDraftIdentityCreateLinkToken.Response>;
760
769
  finishAddMethod(data?: PubTechneDraftIdentityFinishAddMethod.InputSchema, opts?: PubTechneDraftIdentityFinishAddMethod.CallOptions): Promise<PubTechneDraftIdentityFinishAddMethod.Response>;
@@ -2452,6 +2461,31 @@ export declare class PubTechneDraftSummaryRecord {
2452
2461
  }>;
2453
2462
  delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
2454
2463
  }
2464
+ export declare class PubTechneDraftTagFeedbackRecord {
2465
+ _client: XrpcClient;
2466
+ constructor(client: XrpcClient);
2467
+ list(params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
2468
+ cursor?: string;
2469
+ records: {
2470
+ uri: string;
2471
+ value: PubTechneDraftTagFeedback.Record;
2472
+ }[];
2473
+ }>;
2474
+ get(params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
2475
+ uri: string;
2476
+ cid: string;
2477
+ value: PubTechneDraftTagFeedback.Record;
2478
+ }>;
2479
+ create(params: OmitKey<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftTagFeedback.Record>, headers?: Record<string, string>): Promise<{
2480
+ uri: string;
2481
+ cid: string;
2482
+ }>;
2483
+ put(params: OmitKey<ComAtprotoRepoPutRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftTagFeedback.Record>, headers?: Record<string, string>): Promise<{
2484
+ uri: string;
2485
+ cid: string;
2486
+ }>;
2487
+ delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
2488
+ }
2455
2489
  export declare class PubTechneDraftVerdictRecord {
2456
2490
  _client: XrpcClient;
2457
2491
  constructor(client: XrpcClient);