techne-sdk 0.8.0 → 0.9.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,20 @@
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.9.0 (2026-11-20)
7
+
8
+ npm 0.9.0 and crate 0.9.0 are built from the same commit. Additions only; no export is removed or renamed. The
9
+ crate moves from 0.7.0 to 0.9.0 (its check dependency and placement changed; 0.8.0 was npm only).
10
+
11
+ - **Tag feedback (`pub.techne.draft.tagFeedback`).** New public record type: a person's word on whether one
12
+ tag fits a record, `{subject (strongRef), tag (chip id), verdict ('fits' | 'doesntFit'), createdAt}`, key
13
+ `tid`. `NSID.TAG_FEEDBACK`, its generated type, and a public home in the placement manifest, so `put` and
14
+ `plan` write it to the author's repo instead of sending it to the private write (`permissioned.putRecords`)
15
+ as an unknown `pub.techne` type. `authWrite` (and so `everything: 'write'`) names it.
16
+ - **Lexicons `v0.1.22-techne.96`, check crate `techne-lexicon-check` 0.3.32** (the crate's dependency, exact).
17
+ - **Platform API at platform `main` `d26238730`** (the merge that indexes tagFeedback). Only description text
18
+ changed in its methods (`social.scenius.uploadAvatar`: who gets `InvalidRequest`).
19
+
6
20
  ## 0.8.0 (2026-11-20)
7
21
 
8
22
  npm 0.8.0 adds the app-held session; no export is removed or renamed. Nothing under `crates/` changed since
@@ -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,
@@ -16457,6 +16457,95 @@ export const catalog = {
16457
16457
  }
16458
16458
  })
16459
16459
  },
16460
+ {
16461
+ "nsid": "pub.techne.draft.tagFeedback",
16462
+ "name": "draft.tagFeedback",
16463
+ "group": "pub.techne",
16464
+ "kind": "record",
16465
+ "key": "tid",
16466
+ "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.",
16467
+ "fields": [
16468
+ {
16469
+ "name": "subject",
16470
+ "type": "→ com.atproto.repo.strongRef",
16471
+ "required": true,
16472
+ "description": "The record the tag is on: the curated commons event (the subject of its assessment)."
16473
+ },
16474
+ {
16475
+ "name": "tag",
16476
+ "type": "string",
16477
+ "required": true,
16478
+ "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."
16479
+ },
16480
+ {
16481
+ "name": "verdict",
16482
+ "type": "string (enum)",
16483
+ "required": true,
16484
+ "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.",
16485
+ "knownValues": [
16486
+ "fits",
16487
+ "doesntFit"
16488
+ ]
16489
+ },
16490
+ {
16491
+ "name": "createdAt",
16492
+ "type": "string<datetime>",
16493
+ "required": true
16494
+ }
16495
+ ],
16496
+ "doc": ({
16497
+ "lexicon": 1,
16498
+ "id": "pub.techne.draft.tagFeedback",
16499
+ "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.",
16500
+ "defs": {
16501
+ "main": {
16502
+ "type": "record",
16503
+ "key": "tid",
16504
+ "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.",
16505
+ "record": {
16506
+ "type": "object",
16507
+ "required": [
16508
+ "subject",
16509
+ "tag",
16510
+ "verdict",
16511
+ "createdAt"
16512
+ ],
16513
+ "properties": {
16514
+ "subject": {
16515
+ "type": "ref",
16516
+ "ref": "com.atproto.repo.strongRef",
16517
+ "description": "The record the tag is on: the curated commons event (the subject of its assessment)."
16518
+ },
16519
+ "tag": {
16520
+ "type": "string",
16521
+ "maxLength": 64,
16522
+ "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."
16523
+ },
16524
+ "verdict": {
16525
+ "type": "string",
16526
+ "maxLength": 64,
16527
+ "knownValues": [
16528
+ "fits",
16529
+ "doesntFit"
16530
+ ],
16531
+ "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."
16532
+ },
16533
+ "createdAt": {
16534
+ "type": "string",
16535
+ "format": "datetime"
16536
+ }
16537
+ }
16538
+ }
16539
+ }
16540
+ }
16541
+ }),
16542
+ "homes": [
16543
+ {
16544
+ "space": "public",
16545
+ "unbuilt": false
16546
+ }
16547
+ ]
16548
+ },
16460
16549
  {
16461
16550
  "nsid": "pub.techne.draft.verdict",
16462
16551
  "name": "draft.verdict",
@@ -18146,6 +18235,7 @@ export const catalog = {
18146
18235
  "pub.techne.draft.assessment",
18147
18236
  "pub.techne.draft.placeResearch",
18148
18237
  "pub.techne.draft.summary",
18238
+ "pub.techne.draft.tagFeedback",
18149
18239
  "pub.techne.draft.provenance",
18150
18240
  "pub.techne.draft.questionSet",
18151
18241
  "pub.techne.draft.receipt",
@@ -18251,6 +18341,7 @@ export const catalog = {
18251
18341
  "pub.techne.draft.assessment",
18252
18342
  "pub.techne.draft.placeResearch",
18253
18343
  "pub.techne.draft.summary",
18344
+ "pub.techne.draft.tagFeedback",
18254
18345
  "pub.techne.draft.provenance",
18255
18346
  "pub.techne.draft.questionSet",
18256
18347
  "pub.techne.draft.receipt",
@@ -34438,7 +34529,7 @@ export const catalog = {
34438
34529
  "group": "social.scenius",
34439
34530
  "kind": "procedure",
34440
34531
  "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.",
34532
+ "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
34533
  "output": [
34443
34534
  {
34444
34535
  "name": "blob",
@@ -34453,7 +34544,7 @@ export const catalog = {
34453
34544
  "defs": {
34454
34545
  "main": {
34455
34546
  "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.",
34547
+ "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
34548
  "input": {
34458
34549
  "encoding": "*/*",
34459
34550
  "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 +34573,7 @@ export const catalog = {
34482
34573
  "errors": [
34483
34574
  {
34484
34575
  "name": "InvalidRequest",
34485
- "description": "Unaccepted Content-Type, an empty body, a body over maxSize, or a non-custodial (BYOD) account."
34576
+ "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
34577
  }
34487
34578
  ]
34488
34579
  }
@@ -34491,7 +34582,7 @@ export const catalog = {
34491
34582
  }
34492
34583
  ],
34493
34584
  "counts": {
34494
- "records": 159,
34585
+ "records": 160,
34495
34586
  "spaces": 13,
34496
34587
  "predicates": 9,
34497
34588
  "methods": 130
@@ -131,6 +131,7 @@ import * as PubTechneDraftStatement from './types/pub/techne/draft/statement.js'
131
131
  import * as PubTechneDraftSubjectPrefs from './types/pub/techne/draft/subjectPrefs.js';
132
132
  import * as PubTechneDraftSummary from './types/pub/techne/draft/summary.js';
133
133
  import * as PubTechneDraftSyncIndexRecord from './types/pub/techne/draft/sync/indexRecord.js';
134
+ import * as PubTechneDraftTagFeedback from './types/pub/techne/draft/tagFeedback.js';
134
135
  import * as PubTechneDraftVerdict from './types/pub/techne/draft/verdict.js';
135
136
  import * as PubTechneDraftVerification from './types/pub/techne/draft/verification.js';
136
137
  import * as PubTechneDraftWeeklyCheckIn from './types/pub/techne/draft/weeklyCheckIn.js';
@@ -296,6 +297,7 @@ export * as PubTechneDraftStatement from './types/pub/techne/draft/statement.js'
296
297
  export * as PubTechneDraftSubjectPrefs from './types/pub/techne/draft/subjectPrefs.js';
297
298
  export * as PubTechneDraftSummary from './types/pub/techne/draft/summary.js';
298
299
  export * as PubTechneDraftSyncIndexRecord from './types/pub/techne/draft/sync/indexRecord.js';
300
+ export * as PubTechneDraftTagFeedback from './types/pub/techne/draft/tagFeedback.js';
299
301
  export * as PubTechneDraftVerdict from './types/pub/techne/draft/verdict.js';
300
302
  export * as PubTechneDraftVerification from './types/pub/techne/draft/verification.js';
301
303
  export * as PubTechneDraftWeeklyCheckIn from './types/pub/techne/draft/weeklyCheckIn.js';
@@ -580,6 +582,7 @@ export declare class PubTechneDraftNS {
580
582
  statement: PubTechneDraftStatementRecord;
581
583
  subjectPrefs: PubTechneDraftSubjectPrefsRecord;
582
584
  summary: PubTechneDraftSummaryRecord;
585
+ tagFeedback: PubTechneDraftTagFeedbackRecord;
583
586
  verdict: PubTechneDraftVerdictRecord;
584
587
  verification: PubTechneDraftVerificationRecord;
585
588
  weeklyCheckIn: PubTechneDraftWeeklyCheckInRecord;
@@ -2452,6 +2455,31 @@ export declare class PubTechneDraftSummaryRecord {
2452
2455
  }>;
2453
2456
  delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
2454
2457
  }
2458
+ export declare class PubTechneDraftTagFeedbackRecord {
2459
+ _client: XrpcClient;
2460
+ constructor(client: XrpcClient);
2461
+ list(params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
2462
+ cursor?: string;
2463
+ records: {
2464
+ uri: string;
2465
+ value: PubTechneDraftTagFeedback.Record;
2466
+ }[];
2467
+ }>;
2468
+ get(params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
2469
+ uri: string;
2470
+ cid: string;
2471
+ value: PubTechneDraftTagFeedback.Record;
2472
+ }>;
2473
+ create(params: OmitKey<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftTagFeedback.Record>, headers?: Record<string, string>): Promise<{
2474
+ uri: string;
2475
+ cid: string;
2476
+ }>;
2477
+ put(params: OmitKey<ComAtprotoRepoPutRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftTagFeedback.Record>, headers?: Record<string, string>): Promise<{
2478
+ uri: string;
2479
+ cid: string;
2480
+ }>;
2481
+ delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
2482
+ }
2455
2483
  export declare class PubTechneDraftVerdictRecord {
2456
2484
  _client: XrpcClient;
2457
2485
  constructor(client: XrpcClient);
@@ -215,6 +215,7 @@ export * as PubTechneDraftStatement from './types/pub/techne/draft/statement.js'
215
215
  export * as PubTechneDraftSubjectPrefs from './types/pub/techne/draft/subjectPrefs.js';
216
216
  export * as PubTechneDraftSummary from './types/pub/techne/draft/summary.js';
217
217
  export * as PubTechneDraftSyncIndexRecord from './types/pub/techne/draft/sync/indexRecord.js';
218
+ export * as PubTechneDraftTagFeedback from './types/pub/techne/draft/tagFeedback.js';
218
219
  export * as PubTechneDraftVerdict from './types/pub/techne/draft/verdict.js';
219
220
  export * as PubTechneDraftVerification from './types/pub/techne/draft/verification.js';
220
221
  export * as PubTechneDraftWeeklyCheckIn from './types/pub/techne/draft/weeklyCheckIn.js';
@@ -623,6 +624,7 @@ export class PubTechneDraftNS {
623
624
  statement;
624
625
  subjectPrefs;
625
626
  summary;
627
+ tagFeedback;
626
628
  verdict;
627
629
  verification;
628
630
  weeklyCheckIn;
@@ -709,6 +711,7 @@ export class PubTechneDraftNS {
709
711
  this.statement = new PubTechneDraftStatementRecord(client);
710
712
  this.subjectPrefs = new PubTechneDraftSubjectPrefsRecord(client);
711
713
  this.summary = new PubTechneDraftSummaryRecord(client);
714
+ this.tagFeedback = new PubTechneDraftTagFeedbackRecord(client);
712
715
  this.verdict = new PubTechneDraftVerdictRecord(client);
713
716
  this.verification = new PubTechneDraftVerificationRecord(client);
714
717
  this.weeklyCheckIn = new PubTechneDraftWeeklyCheckInRecord(client);
@@ -3491,6 +3494,39 @@ export class PubTechneDraftSummaryRecord {
3491
3494
  await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.summary', ...params }, { headers });
3492
3495
  }
3493
3496
  }
3497
+ export class PubTechneDraftTagFeedbackRecord {
3498
+ _client;
3499
+ constructor(client) {
3500
+ this._client = client;
3501
+ }
3502
+ async list(params) {
3503
+ const res = await this._client.call('com.atproto.repo.listRecords', {
3504
+ collection: 'pub.techne.draft.tagFeedback',
3505
+ ...params,
3506
+ });
3507
+ return res.data;
3508
+ }
3509
+ async get(params) {
3510
+ const res = await this._client.call('com.atproto.repo.getRecord', {
3511
+ collection: 'pub.techne.draft.tagFeedback',
3512
+ ...params,
3513
+ });
3514
+ return res.data;
3515
+ }
3516
+ async create(params, record, headers) {
3517
+ const collection = 'pub.techne.draft.tagFeedback';
3518
+ const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
3519
+ return res.data;
3520
+ }
3521
+ async put(params, record, headers) {
3522
+ const collection = 'pub.techne.draft.tagFeedback';
3523
+ const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
3524
+ return res.data;
3525
+ }
3526
+ async delete(params, headers) {
3527
+ await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.tagFeedback', ...params }, { headers });
3528
+ }
3529
+ }
3494
3530
  export class PubTechneDraftVerdictRecord {
3495
3531
  _client;
3496
3532
  constructor(client) {
@@ -9847,6 +9847,44 @@ export declare const schemaDict: {
9847
9847
  };
9848
9848
  };
9849
9849
  };
9850
+ readonly PubTechneDraftTagFeedback: {
9851
+ readonly lexicon: 1;
9852
+ readonly id: "pub.techne.draft.tagFeedback";
9853
+ readonly 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.";
9854
+ readonly defs: {
9855
+ readonly main: {
9856
+ readonly type: "record";
9857
+ readonly key: "tid";
9858
+ readonly 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.";
9859
+ readonly record: {
9860
+ readonly type: "object";
9861
+ readonly required: ["subject", "tag", "verdict", "createdAt"];
9862
+ readonly properties: {
9863
+ readonly subject: {
9864
+ readonly type: "ref";
9865
+ readonly ref: "lex:com.atproto.repo.strongRef";
9866
+ readonly description: "The record the tag is on: the curated commons event (the subject of its assessment).";
9867
+ };
9868
+ readonly tag: {
9869
+ readonly type: "string";
9870
+ readonly maxLength: 64;
9871
+ readonly 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.";
9872
+ };
9873
+ readonly verdict: {
9874
+ readonly type: "string";
9875
+ readonly maxLength: 64;
9876
+ readonly knownValues: ["fits", "doesntFit"];
9877
+ readonly 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.";
9878
+ };
9879
+ readonly createdAt: {
9880
+ readonly type: "string";
9881
+ readonly format: "datetime";
9882
+ };
9883
+ };
9884
+ };
9885
+ };
9886
+ };
9887
+ };
9850
9888
  readonly PubTechneDraftVerdict: {
9851
9889
  readonly lexicon: 1;
9852
9890
  readonly id: "pub.techne.draft.verdict";
@@ -20938,6 +20976,43 @@ export declare const schemas: ({
20938
20976
  }];
20939
20977
  };
20940
20978
  };
20979
+ } | {
20980
+ readonly lexicon: 1;
20981
+ readonly id: "pub.techne.draft.tagFeedback";
20982
+ readonly 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.";
20983
+ readonly defs: {
20984
+ readonly main: {
20985
+ readonly type: "record";
20986
+ readonly key: "tid";
20987
+ readonly 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.";
20988
+ readonly record: {
20989
+ readonly type: "object";
20990
+ readonly required: ["subject", "tag", "verdict", "createdAt"];
20991
+ readonly properties: {
20992
+ readonly subject: {
20993
+ readonly type: "ref";
20994
+ readonly ref: "lex:com.atproto.repo.strongRef";
20995
+ readonly description: "The record the tag is on: the curated commons event (the subject of its assessment).";
20996
+ };
20997
+ readonly tag: {
20998
+ readonly type: "string";
20999
+ readonly maxLength: 64;
21000
+ readonly 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.";
21001
+ };
21002
+ readonly verdict: {
21003
+ readonly type: "string";
21004
+ readonly maxLength: 64;
21005
+ readonly knownValues: ["fits", "doesntFit"];
21006
+ readonly 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.";
21007
+ };
21008
+ readonly createdAt: {
21009
+ readonly type: "string";
21010
+ readonly format: "datetime";
21011
+ };
21012
+ };
21013
+ };
21014
+ };
21015
+ };
20941
21016
  } | {
20942
21017
  readonly lexicon: 1;
20943
21018
  readonly id: "pub.techne.draft.verdict";
@@ -22454,6 +22529,7 @@ export declare const ids: {
22454
22529
  readonly PubTechneDraftSubjectPrefs: "pub.techne.draft.subjectPrefs";
22455
22530
  readonly PubTechneDraftSummary: "pub.techne.draft.summary";
22456
22531
  readonly PubTechneDraftSyncIndexRecord: "pub.techne.draft.sync.indexRecord";
22532
+ readonly PubTechneDraftTagFeedback: "pub.techne.draft.tagFeedback";
22457
22533
  readonly PubTechneDraftVerdict: "pub.techne.draft.verdict";
22458
22534
  readonly PubTechneDraftVerification: "pub.techne.draft.verification";
22459
22535
  readonly PubTechneDraftWeeklyCheckIn: "pub.techne.draft.weeklyCheckIn";
@@ -10517,6 +10517,44 @@ export const schemaDict = {
10517
10517
  },
10518
10518
  },
10519
10519
  },
10520
+ PubTechneDraftTagFeedback: {
10521
+ lexicon: 1,
10522
+ id: 'pub.techne.draft.tagFeedback',
10523
+ 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.",
10524
+ defs: {
10525
+ main: {
10526
+ type: 'record',
10527
+ key: 'tid',
10528
+ 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.',
10529
+ record: {
10530
+ type: 'object',
10531
+ required: ['subject', 'tag', 'verdict', 'createdAt'],
10532
+ properties: {
10533
+ subject: {
10534
+ type: 'ref',
10535
+ ref: 'lex:com.atproto.repo.strongRef',
10536
+ description: 'The record the tag is on: the curated commons event (the subject of its assessment).',
10537
+ },
10538
+ tag: {
10539
+ type: 'string',
10540
+ maxLength: 64,
10541
+ 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.",
10542
+ },
10543
+ verdict: {
10544
+ type: 'string',
10545
+ maxLength: 64,
10546
+ knownValues: ['fits', 'doesntFit'],
10547
+ 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.",
10548
+ },
10549
+ createdAt: {
10550
+ type: 'string',
10551
+ format: 'datetime',
10552
+ },
10553
+ },
10554
+ },
10555
+ },
10556
+ },
10557
+ },
10520
10558
  PubTechneDraftVerdict: {
10521
10559
  lexicon: 1,
10522
10560
  id: 'pub.techne.draft.verdict',
@@ -12125,6 +12163,7 @@ export const ids = {
12125
12163
  PubTechneDraftSubjectPrefs: 'pub.techne.draft.subjectPrefs',
12126
12164
  PubTechneDraftSummary: 'pub.techne.draft.summary',
12127
12165
  PubTechneDraftSyncIndexRecord: 'pub.techne.draft.sync.indexRecord',
12166
+ PubTechneDraftTagFeedback: 'pub.techne.draft.tagFeedback',
12128
12167
  PubTechneDraftVerdict: 'pub.techne.draft.verdict',
12129
12168
  PubTechneDraftVerification: 'pub.techne.draft.verification',
12130
12169
  PubTechneDraftWeeklyCheckIn: 'pub.techne.draft.weeklyCheckIn',
@@ -292,6 +292,7 @@ export declare const NSID: {
292
292
  readonly SUBJECT_PREFS: "pub.techne.draft.subjectPrefs";
293
293
  readonly SUMMARY: "pub.techne.draft.summary";
294
294
  readonly SYNC_INDEX_RECORD: "pub.techne.draft.sync.indexRecord";
295
+ readonly TAG_FEEDBACK: "pub.techne.draft.tagFeedback";
295
296
  readonly VERDICT: "pub.techne.draft.verdict";
296
297
  readonly VERIFICATION: "pub.techne.draft.verification";
297
298
  readonly WEEKLY_CHECK_IN: "pub.techne.draft.weeklyCheckIn";
@@ -296,6 +296,7 @@ export const NSID = {
296
296
  SUBJECT_PREFS: 'pub.techne.draft.subjectPrefs',
297
297
  SUMMARY: 'pub.techne.draft.summary',
298
298
  SYNC_INDEX_RECORD: 'pub.techne.draft.sync.indexRecord',
299
+ TAG_FEEDBACK: 'pub.techne.draft.tagFeedback',
299
300
  VERDICT: 'pub.techne.draft.verdict',
300
301
  VERIFICATION: 'pub.techne.draft.verification',
301
302
  WEEKLY_CHECK_IN: 'pub.techne.draft.weeklyCheckIn',
@@ -292,6 +292,7 @@
292
292
  "SUBJECT_PREFS": "pub.techne.draft.subjectPrefs",
293
293
  "SUMMARY": "pub.techne.draft.summary",
294
294
  "SYNC_INDEX_RECORD": "pub.techne.draft.sync.indexRecord",
295
+ "TAG_FEEDBACK": "pub.techne.draft.tagFeedback",
295
296
  "VERDICT": "pub.techne.draft.verdict",
296
297
  "VERIFICATION": "pub.techne.draft.verification",
297
298
  "WEEKLY_CHECK_IN": "pub.techne.draft.weeklyCheckIn"
@@ -71,9 +71,10 @@ import type * as R69 from './types/pub/techne/draft/sourceRef.js';
71
71
  import type * as R70 from './types/pub/techne/draft/statement.js';
72
72
  import type * as R71 from './types/pub/techne/draft/subjectPrefs.js';
73
73
  import type * as R72 from './types/pub/techne/draft/summary.js';
74
- import type * as R73 from './types/pub/techne/draft/verdict.js';
75
- import type * as R74 from './types/pub/techne/draft/verification.js';
76
- import type * as R75 from './types/pub/techne/draft/weeklyCheckIn.js';
74
+ import type * as R73 from './types/pub/techne/draft/tagFeedback.js';
75
+ import type * as R74 from './types/pub/techne/draft/verdict.js';
76
+ import type * as R75 from './types/pub/techne/draft/verification.js';
77
+ import type * as R76 from './types/pub/techne/draft/weeklyCheckIn.js';
77
78
  /** Every record type the lexicons define, by collection. */
78
79
  export interface Records {
79
80
  'community.lexicon.calendar.event': R0.Record;
@@ -149,9 +150,10 @@ export interface Records {
149
150
  'pub.techne.draft.statement': R70.Record;
150
151
  'pub.techne.draft.subjectPrefs': R71.Record;
151
152
  'pub.techne.draft.summary': R72.Record;
152
- 'pub.techne.draft.verdict': R73.Record;
153
- 'pub.techne.draft.verification': R74.Record;
154
- 'pub.techne.draft.weeklyCheckIn': R75.Record;
153
+ 'pub.techne.draft.tagFeedback': R73.Record;
154
+ 'pub.techne.draft.verdict': R74.Record;
155
+ 'pub.techne.draft.verification': R75.Record;
156
+ 'pub.techne.draft.weeklyCheckIn': R76.Record;
155
157
  }
156
158
  /** Any one record the lexicons define (its `$type` says which). */
157
159
  export type AnyRecord = Records[keyof Records];
@@ -0,0 +1,18 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
6
+ export interface Main {
7
+ $type: 'pub.techne.draft.tagFeedback';
8
+ subject: ComAtprotoRepoStrongRef.Main;
9
+ /** 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. */
10
+ tag: string;
11
+ /** 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. */
12
+ verdict: 'fits' | 'doesntFit' | (string & {});
13
+ createdAt: string;
14
+ [k: string]: unknown;
15
+ }
16
+ export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.tagFeedback", "main">;
17
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
18
+ export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
@@ -0,0 +1,12 @@
1
+ import { validate as _validate } from '../../../../lexicons.js';
2
+ import { is$typed as _is$typed, } from '../../../../util.js';
3
+ const is$typed = _is$typed, validate = _validate;
4
+ const id = 'pub.techne.draft.tagFeedback';
5
+ const hashMain = 'main';
6
+ export function isMain(v) {
7
+ return is$typed(v, id, hashMain);
8
+ }
9
+ export function validateMain(v) {
10
+ return validate(v, id, hashMain, true);
11
+ }
12
+ export { isMain as isRecord, validateMain as validateRecord, };