techne-sdk 0.14.0 → 0.15.1

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.
Files changed (34) hide show
  1. package/CHANGELOG.md +97 -0
  2. package/README.md +7 -4
  3. package/dist/auth/index.js +3 -4
  4. package/dist/catalog/catalog.gen.d.ts +35 -29
  5. package/dist/catalog/catalog.gen.js +560 -76
  6. package/dist/generated/index.d.ts +84 -0
  7. package/dist/generated/index.js +108 -0
  8. package/dist/generated/lexicons.d.ts +224 -32
  9. package/dist/generated/lexicons.js +121 -15
  10. package/dist/generated/nsid.d.ts +9 -0
  11. package/dist/generated/nsid.js +9 -0
  12. package/dist/generated/nsid.json +9 -0
  13. package/dist/generated/records.d.ts +96 -90
  14. package/dist/generated/types/pub/techne/draft/beacon.d.ts +2 -0
  15. package/dist/generated/types/pub/techne/draft/derivation.d.ts +1 -1
  16. package/dist/generated/types/pub/techne/draft/evaluation.d.ts +3 -1
  17. package/dist/generated/types/pub/techne/draft/follow.d.ts +14 -0
  18. package/dist/generated/types/pub/techne/draft/follow.js +12 -0
  19. package/dist/generated/types/pub/techne/draft/notificationPref.d.ts +16 -0
  20. package/dist/generated/types/pub/techne/draft/notificationPref.js +12 -0
  21. package/dist/generated/types/pub/techne/draft/org.d.ts +2 -2
  22. package/dist/generated/types/pub/techne/draft/statement.d.ts +1 -1
  23. package/dist/generated/types/pub/techne/draft/unfollow.d.ts +14 -0
  24. package/dist/generated/types/pub/techne/draft/unfollow.js +12 -0
  25. package/dist/generated/types/pub/techne/draft/verdict.d.ts +2 -2
  26. package/dist/query/index.d.ts +3 -2
  27. package/dist/session/phone.d.ts +7 -6
  28. package/dist/session/phone.js +7 -6
  29. package/dist/session/relay.d.ts +1 -1
  30. package/dist/session/relay.js +1 -1
  31. package/dist/sign-in/index.js +7 -11
  32. package/dist/wasm/techne-wasm.gen.js +1 -1
  33. package/dist/wasm/techne-wasm2js.gen.js +12317 -12317
  34. package/package.json +1 -1
@@ -35,51 +35,54 @@ import type * as R33 from './types/pub/techne/draft/event/detail.js';
35
35
  import type * as R34 from './types/pub/techne/draft/event/listing.js';
36
36
  import type * as R35 from './types/pub/techne/draft/feed/recipe.js';
37
37
  import type * as R36 from './types/pub/techne/draft/financials.js';
38
- import type * as R37 from './types/pub/techne/draft/geo.js';
39
- import type * as R38 from './types/pub/techne/draft/heldAt.js';
40
- import type * as R39 from './types/pub/techne/draft/identity/linkRedemption.js';
41
- import type * as R40 from './types/pub/techne/draft/interest.js';
42
- import type * as R41 from './types/pub/techne/draft/introProposal.js';
43
- import type * as R42 from './types/pub/techne/draft/invite.js';
44
- import type * as R43 from './types/pub/techne/draft/market/ask.js';
45
- import type * as R44 from './types/pub/techne/draft/market/offer.js';
46
- import type * as R45 from './types/pub/techne/draft/membership.js';
47
- import type * as R46 from './types/pub/techne/draft/notificationState.js';
48
- import type * as R47 from './types/pub/techne/draft/operator.js';
49
- import type * as R48 from './types/pub/techne/draft/org.js';
50
- import type * as R49 from './types/pub/techne/draft/orgAtPlace.js';
51
- import type * as R50 from './types/pub/techne/draft/passage.js';
52
- import type * as R51 from './types/pub/techne/draft/pendingBeaconSpot.js';
53
- import type * as R52 from './types/pub/techne/draft/pendingBeaconSpotV2.js';
54
- import type * as R53 from './types/pub/techne/draft/place.js';
55
- import type * as R54 from './types/pub/techne/draft/placeResearch.js';
56
- import type * as R55 from './types/pub/techne/draft/placeV2.js';
57
- import type * as R56 from './types/pub/techne/draft/post.js';
58
- import type * as R57 from './types/pub/techne/draft/presence.js';
59
- import type * as R58 from './types/pub/techne/draft/profile.js';
60
- import type * as R59 from './types/pub/techne/draft/provenance.js';
61
- import type * as R60 from './types/pub/techne/draft/publisher.js';
62
- import type * as R61 from './types/pub/techne/draft/questionSet.js';
63
- import type * as R62 from './types/pub/techne/draft/receipt.js';
64
- import type * as R63 from './types/pub/techne/draft/reflection.js';
65
- import type * as R64 from './types/pub/techne/draft/region.js';
66
- import type * as R65 from './types/pub/techne/draft/registry/typeRequest.js';
67
- import type * as R66 from './types/pub/techne/draft/retirement.js';
68
- import type * as R67 from './types/pub/techne/draft/rsvpNote.js';
69
- import type * as R68 from './types/pub/techne/draft/sameAs.js';
70
- import type * as R69 from './types/pub/techne/draft/scraper/cursor.js';
71
- import type * as R70 from './types/pub/techne/draft/scraper/raw.js';
72
- import type * as R71 from './types/pub/techne/draft/share.js';
73
- import type * as R72 from './types/pub/techne/draft/source.js';
74
- import type * as R73 from './types/pub/techne/draft/sourceAttribution.js';
75
- import type * as R74 from './types/pub/techne/draft/sourceRef.js';
76
- import type * as R75 from './types/pub/techne/draft/statement.js';
77
- import type * as R76 from './types/pub/techne/draft/subjectPrefs.js';
78
- import type * as R77 from './types/pub/techne/draft/summary.js';
79
- import type * as R78 from './types/pub/techne/draft/tagFeedback.js';
80
- import type * as R79 from './types/pub/techne/draft/verdict.js';
81
- import type * as R80 from './types/pub/techne/draft/verification.js';
82
- import type * as R81 from './types/pub/techne/draft/weeklyCheckIn.js';
38
+ import type * as R37 from './types/pub/techne/draft/follow.js';
39
+ import type * as R38 from './types/pub/techne/draft/geo.js';
40
+ import type * as R39 from './types/pub/techne/draft/heldAt.js';
41
+ import type * as R40 from './types/pub/techne/draft/identity/linkRedemption.js';
42
+ import type * as R41 from './types/pub/techne/draft/interest.js';
43
+ import type * as R42 from './types/pub/techne/draft/introProposal.js';
44
+ import type * as R43 from './types/pub/techne/draft/invite.js';
45
+ import type * as R44 from './types/pub/techne/draft/market/ask.js';
46
+ import type * as R45 from './types/pub/techne/draft/market/offer.js';
47
+ import type * as R46 from './types/pub/techne/draft/membership.js';
48
+ import type * as R47 from './types/pub/techne/draft/notificationPref.js';
49
+ import type * as R48 from './types/pub/techne/draft/notificationState.js';
50
+ import type * as R49 from './types/pub/techne/draft/operator.js';
51
+ import type * as R50 from './types/pub/techne/draft/org.js';
52
+ import type * as R51 from './types/pub/techne/draft/orgAtPlace.js';
53
+ import type * as R52 from './types/pub/techne/draft/passage.js';
54
+ import type * as R53 from './types/pub/techne/draft/pendingBeaconSpot.js';
55
+ import type * as R54 from './types/pub/techne/draft/pendingBeaconSpotV2.js';
56
+ import type * as R55 from './types/pub/techne/draft/place.js';
57
+ import type * as R56 from './types/pub/techne/draft/placeResearch.js';
58
+ import type * as R57 from './types/pub/techne/draft/placeV2.js';
59
+ import type * as R58 from './types/pub/techne/draft/post.js';
60
+ import type * as R59 from './types/pub/techne/draft/presence.js';
61
+ import type * as R60 from './types/pub/techne/draft/profile.js';
62
+ import type * as R61 from './types/pub/techne/draft/provenance.js';
63
+ import type * as R62 from './types/pub/techne/draft/publisher.js';
64
+ import type * as R63 from './types/pub/techne/draft/questionSet.js';
65
+ import type * as R64 from './types/pub/techne/draft/receipt.js';
66
+ import type * as R65 from './types/pub/techne/draft/reflection.js';
67
+ import type * as R66 from './types/pub/techne/draft/region.js';
68
+ import type * as R67 from './types/pub/techne/draft/registry/typeRequest.js';
69
+ import type * as R68 from './types/pub/techne/draft/retirement.js';
70
+ import type * as R69 from './types/pub/techne/draft/rsvpNote.js';
71
+ import type * as R70 from './types/pub/techne/draft/sameAs.js';
72
+ import type * as R71 from './types/pub/techne/draft/scraper/cursor.js';
73
+ import type * as R72 from './types/pub/techne/draft/scraper/raw.js';
74
+ import type * as R73 from './types/pub/techne/draft/share.js';
75
+ import type * as R74 from './types/pub/techne/draft/source.js';
76
+ import type * as R75 from './types/pub/techne/draft/sourceAttribution.js';
77
+ import type * as R76 from './types/pub/techne/draft/sourceRef.js';
78
+ import type * as R77 from './types/pub/techne/draft/statement.js';
79
+ import type * as R78 from './types/pub/techne/draft/subjectPrefs.js';
80
+ import type * as R79 from './types/pub/techne/draft/summary.js';
81
+ import type * as R80 from './types/pub/techne/draft/tagFeedback.js';
82
+ import type * as R81 from './types/pub/techne/draft/unfollow.js';
83
+ import type * as R82 from './types/pub/techne/draft/verdict.js';
84
+ import type * as R83 from './types/pub/techne/draft/verification.js';
85
+ import type * as R84 from './types/pub/techne/draft/weeklyCheckIn.js';
83
86
  /** Every record type the lexicons define, by collection. */
84
87
  export interface Records {
85
88
  'community.lexicon.calendar.event': R0.Record;
@@ -119,51 +122,54 @@ export interface Records {
119
122
  'pub.techne.draft.event.listing': R34.Record;
120
123
  'pub.techne.draft.feed.recipe': R35.Record;
121
124
  'pub.techne.draft.financials': R36.Record;
122
- 'pub.techne.draft.geo': R37.Record;
123
- 'pub.techne.draft.heldAt': R38.Record;
124
- 'pub.techne.draft.identity.linkRedemption': R39.Record;
125
- 'pub.techne.draft.interest': R40.Record;
126
- 'pub.techne.draft.introProposal': R41.Record;
127
- 'pub.techne.draft.invite': R42.Record;
128
- 'pub.techne.draft.market.ask': R43.Record;
129
- 'pub.techne.draft.market.offer': R44.Record;
130
- 'pub.techne.draft.membership': R45.Record;
131
- 'pub.techne.draft.notificationState': R46.Record;
132
- 'pub.techne.draft.operator': R47.Record;
133
- 'pub.techne.draft.org': R48.Record;
134
- 'pub.techne.draft.orgAtPlace': R49.Record;
135
- 'pub.techne.draft.passage': R50.Record;
136
- 'pub.techne.draft.pendingBeaconSpot': R51.Record;
137
- 'pub.techne.draft.pendingBeaconSpotV2': R52.Record;
138
- 'pub.techne.draft.place': R53.Record;
139
- 'pub.techne.draft.placeResearch': R54.Record;
140
- 'pub.techne.draft.placeV2': R55.Record;
141
- 'pub.techne.draft.post': R56.Record;
142
- 'pub.techne.draft.presence': R57.Record;
143
- 'pub.techne.draft.profile': R58.Record;
144
- 'pub.techne.draft.provenance': R59.Record;
145
- 'pub.techne.draft.publisher': R60.Record;
146
- 'pub.techne.draft.questionSet': R61.Record;
147
- 'pub.techne.draft.receipt': R62.Record;
148
- 'pub.techne.draft.reflection': R63.Record;
149
- 'pub.techne.draft.region': R64.Record;
150
- 'pub.techne.draft.registry.typeRequest': R65.Record;
151
- 'pub.techne.draft.retirement': R66.Record;
152
- 'pub.techne.draft.rsvpNote': R67.Record;
153
- 'pub.techne.draft.sameAs': R68.Record;
154
- 'pub.techne.draft.scraper.cursor': R69.Record;
155
- 'pub.techne.draft.scraper.raw': R70.Record;
156
- 'pub.techne.draft.share': R71.Record;
157
- 'pub.techne.draft.source': R72.Record;
158
- 'pub.techne.draft.sourceAttribution': R73.Record;
159
- 'pub.techne.draft.sourceRef': R74.Record;
160
- 'pub.techne.draft.statement': R75.Record;
161
- 'pub.techne.draft.subjectPrefs': R76.Record;
162
- 'pub.techne.draft.summary': R77.Record;
163
- 'pub.techne.draft.tagFeedback': R78.Record;
164
- 'pub.techne.draft.verdict': R79.Record;
165
- 'pub.techne.draft.verification': R80.Record;
166
- 'pub.techne.draft.weeklyCheckIn': R81.Record;
125
+ 'pub.techne.draft.follow': R37.Record;
126
+ 'pub.techne.draft.geo': R38.Record;
127
+ 'pub.techne.draft.heldAt': R39.Record;
128
+ 'pub.techne.draft.identity.linkRedemption': R40.Record;
129
+ 'pub.techne.draft.interest': R41.Record;
130
+ 'pub.techne.draft.introProposal': R42.Record;
131
+ 'pub.techne.draft.invite': R43.Record;
132
+ 'pub.techne.draft.market.ask': R44.Record;
133
+ 'pub.techne.draft.market.offer': R45.Record;
134
+ 'pub.techne.draft.membership': R46.Record;
135
+ 'pub.techne.draft.notificationPref': R47.Record;
136
+ 'pub.techne.draft.notificationState': R48.Record;
137
+ 'pub.techne.draft.operator': R49.Record;
138
+ 'pub.techne.draft.org': R50.Record;
139
+ 'pub.techne.draft.orgAtPlace': R51.Record;
140
+ 'pub.techne.draft.passage': R52.Record;
141
+ 'pub.techne.draft.pendingBeaconSpot': R53.Record;
142
+ 'pub.techne.draft.pendingBeaconSpotV2': R54.Record;
143
+ 'pub.techne.draft.place': R55.Record;
144
+ 'pub.techne.draft.placeResearch': R56.Record;
145
+ 'pub.techne.draft.placeV2': R57.Record;
146
+ 'pub.techne.draft.post': R58.Record;
147
+ 'pub.techne.draft.presence': R59.Record;
148
+ 'pub.techne.draft.profile': R60.Record;
149
+ 'pub.techne.draft.provenance': R61.Record;
150
+ 'pub.techne.draft.publisher': R62.Record;
151
+ 'pub.techne.draft.questionSet': R63.Record;
152
+ 'pub.techne.draft.receipt': R64.Record;
153
+ 'pub.techne.draft.reflection': R65.Record;
154
+ 'pub.techne.draft.region': R66.Record;
155
+ 'pub.techne.draft.registry.typeRequest': R67.Record;
156
+ 'pub.techne.draft.retirement': R68.Record;
157
+ 'pub.techne.draft.rsvpNote': R69.Record;
158
+ 'pub.techne.draft.sameAs': R70.Record;
159
+ 'pub.techne.draft.scraper.cursor': R71.Record;
160
+ 'pub.techne.draft.scraper.raw': R72.Record;
161
+ 'pub.techne.draft.share': R73.Record;
162
+ 'pub.techne.draft.source': R74.Record;
163
+ 'pub.techne.draft.sourceAttribution': R75.Record;
164
+ 'pub.techne.draft.sourceRef': R76.Record;
165
+ 'pub.techne.draft.statement': R77.Record;
166
+ 'pub.techne.draft.subjectPrefs': R78.Record;
167
+ 'pub.techne.draft.summary': R79.Record;
168
+ 'pub.techne.draft.tagFeedback': R80.Record;
169
+ 'pub.techne.draft.unfollow': R81.Record;
170
+ 'pub.techne.draft.verdict': R82.Record;
171
+ 'pub.techne.draft.verification': R83.Record;
172
+ 'pub.techne.draft.weeklyCheckIn': R84.Record;
167
173
  }
168
174
  /** Any one record the lexicons define (its `$type` says which). */
169
175
  export type AnyRecord = Records[keyof Records];
@@ -11,6 +11,8 @@ export interface Main {
11
11
  emoji?: string;
12
12
  /** Optional: the emoji the lighter picked for the answers, in this order: going (I'm in), interested (Maybe), notgoing (Can't go). A missing or empty entry means the app's own emoji for that answer. */
13
13
  answerEmojis?: string[];
14
+ /** Optional, set when the beacon is lit: true = the people it is shared with do not see who else it was shared with or how they answered. The platform then places each share it writes for this beacon in the lighter's pub.techne.draft.space.audience at this rkey instead of the beacon's space, and guests keep every answer (going, Maybe, Can't go) in their own pub.techne.draft.space.beaconDecline. Absent or false = the guest list is visible to the guests. Read each time a share is written: changing it later moves only shares written after the change. */
15
+ guestsHidden?: boolean;
14
16
  createdAt: string;
15
17
  [k: string]: unknown;
16
18
  }
@@ -43,7 +43,7 @@ export declare function isMethod<V>(v: V): v is import("../../../../util.js").$T
43
43
  export declare function validateMethod<V>(v: V): ValidationResult<Method & V>;
44
44
  export interface Signal {
45
45
  $type?: 'pub.techne.draft.derivation#signal';
46
- name: 'titleSimilarity' | 'nameSimilarity' | 'nameContainment' | 'titleFrequency' | 'startDelta' | 'endDelta' | 'samePlaceCluster' | 'distance' | 'placePrecision' | 'sameAddress' | 'addressGeoConflict' | 'categoryConflict' | 'sameUrl' | 'venueNameConflict' | 'placeNameInTitle' | 'placeNameTokens' | 'edgeResolution' | (string & {});
46
+ name: 'titleSimilarity' | 'nameSimilarity' | 'nameContainment' | 'titleFrequency' | 'startDelta' | 'endDelta' | 'samePlaceCluster' | 'distance' | 'placePrecision' | 'sameAddress' | 'addressGeoConflict' | 'categoryConflict' | 'sameUrl' | 'venueNameConflict' | 'placeNameInTitle' | 'placeNameTokens' | 'edgeResolution' | 'ladderRung' | (string & {});
47
47
  value: number;
48
48
  }
49
49
  export declare function isSignal<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.derivation", "signal">;
@@ -1,7 +1,7 @@
1
1
  /**
2
2
  * GENERATED CODE - DO NOT MODIFY
3
3
  */
4
- import { type ValidationResult } from '@atproto/lexicon';
4
+ import { type ValidationResult, BlobRef } from '@atproto/lexicon';
5
5
  import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongRef.js';
6
6
  export interface Main {
7
7
  $type: 'pub.techne.draft.evaluation';
@@ -10,6 +10,8 @@ export interface Main {
10
10
  direction: 'positive' | 'negative' | (string & {});
11
11
  /** Optional free-form note. */
12
12
  note?: string;
13
+ /** Optional photo of the subject, set by the evaluator: a blob in the evaluator's own repo. Apps show it only when the subject has no picture of its own. */
14
+ image?: BlobRef;
13
15
  createdAt: string;
14
16
  [k: string]: unknown;
15
17
  }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ export interface Main {
6
+ $type: 'pub.techne.draft.follow';
7
+ /** The person followed. */
8
+ subject: string;
9
+ createdAt: string;
10
+ [k: string]: unknown;
11
+ }
12
+ export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.follow", "main">;
13
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
14
+ 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.follow';
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, };
@@ -0,0 +1,16 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ export interface Main {
6
+ $type: 'pub.techne.draft.notificationPref';
7
+ /** The kind of notice. An unknown kind is kept and ignored. */
8
+ kind: 'curator.new' | 'curator.picks' | (string & {});
9
+ /** Send this kind of notice (push and the other interrupting channels). The in-app inbox is not switched. */
10
+ enabled: boolean;
11
+ createdAt: string;
12
+ [k: string]: unknown;
13
+ }
14
+ export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.notificationPref", "main">;
15
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
16
+ 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.notificationPref';
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, };
@@ -26,7 +26,7 @@ export interface Main {
26
26
  url?: string;
27
27
  /** Public phone number, E.164. */
28
28
  phone?: string;
29
- /** Where the organization is: a point, an H3 cell, an address or a place record, each bare entry a site of the org (its office, its storefront, a place it runs). A `pub.techne.draft.locationEntry` says something other than "is at": `serves` for a service area, `registered` for where a registry lists it (a nonprofit's filing city or ZIP area, never the street address). Never a mailing address: a registry's address is often an organizer's home, so it is not published. Its query document reads the entries as `sites`: each is its own location. This replaces `pub.techne.draft.orgAtPlace`. */
29
+ /** Where the organization is: a point, an H3 cell, an address or a place record, each bare entry a site of the org (its office, its storefront, a place it runs). A `pub.techne.draft.locationEntry` says something other than "is at": `serves` for a service area, `registered` for where a registry lists it (a nonprofit's filing city or ZIP area, never the street address). Never a mailing address: a registry's address is often an organizer's home, so it is not published. Its query document reads the entries as `sites`: each is its own location. With a `pub.techne.draft.statement` about the org carrying `locations` (a site the org's author did not state), this replaces `pub.techne.draft.orgAtPlace`. */
30
30
  locations?: ($Typed<CommunityLexiconLocationGeo.Main> | $Typed<CommunityLexiconLocationHthree.Main> | $Typed<CommunityLexiconLocationAddress.Main> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<PubTechneDraftLocationEntry.Main> | {
31
31
  $type: string;
32
32
  })[];
@@ -55,7 +55,7 @@ export interface Fields {
55
55
  url?: string;
56
56
  /** Public phone number, E.164. */
57
57
  phone?: string;
58
- /** Where the organization is: a point, an H3 cell, an address or a place record, each bare entry a site of the org (its office, its storefront, a place it runs). A `pub.techne.draft.locationEntry` says something other than "is at": `serves` for a service area, `registered` for where a registry lists it (a nonprofit's filing city or ZIP area, never the street address). Never a mailing address: a registry's address is often an organizer's home, so it is not published. Its query document reads the entries as `sites`: each is its own location. This replaces `pub.techne.draft.orgAtPlace`. */
58
+ /** Where the organization is: a point, an H3 cell, an address or a place record, each bare entry a site of the org (its office, its storefront, a place it runs). A `pub.techne.draft.locationEntry` says something other than "is at": `serves` for a service area, `registered` for where a registry lists it (a nonprofit's filing city or ZIP area, never the street address). Never a mailing address: a registry's address is often an organizer's home, so it is not published. Its query document reads the entries as `sites`: each is its own location. With a `pub.techne.draft.statement` about the org carrying `locations` (a site the org's author did not state), this replaces `pub.techne.draft.orgAtPlace`. */
59
59
  locations?: ($Typed<CommunityLexiconLocationGeo.Main> | $Typed<CommunityLexiconLocationHthree.Main> | $Typed<CommunityLexiconLocationAddress.Main> | $Typed<ComAtprotoRepoStrongRef.Main> | $Typed<PubTechneDraftLocationEntry.Main> | {
60
60
  $type: string;
61
61
  })[];
@@ -21,7 +21,7 @@ export interface Main {
21
21
  export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.statement", "main">;
22
22
  export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
23
23
  export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
24
- /** Where the subject is, as the writer of the statement says, for a subject of any type. It counts only as the view decides: the subject's own locations win, and a statement fills in only where the subject states no location of that kind, or (with `basis`) gives a position to a subject's entry that has none. A statement the subject's own author writes counts as the subject's own locations. A `basis` equal to the subject record's CID (a legacy claim) counts for any own entry of that kind with no position, while the subject is still that version. When several claims compete for one slot (the same kind, and the same `basis` or none), one counts: the finest grain wins, then the newest, then the lowest source URI; the others are conflicts. On a type whose query document reads its entries as sites (`entries: sites`, as on an org), a claim entry that names no own entry (no `basis`, or a legacy `basis` while the subject states no location of that kind) is its own site: it counts beside every other such entry and competes with none. A claim that names an own entry still competes for that entry, and a subject that states a location of that kind still bars a claim with no `basis`. Read as written, every writer's claim is weighed; curated, only the subject's author's and those of writers the commons root endorses. */
24
+ /** Where the subject is, as the writer of the statement says, for a subject of any type. It counts only as the view decides: the subject's own locations win, and a statement fills in only where the subject states no location of that kind, or (with `basis`) gives a position to a subject's entry that has none. A statement the subject's own author writes counts as the subject's own locations. A `basis` equal to the subject record's CID (a legacy claim) counts for any own entry of that kind with no position, while the subject is still that version. When several claims compete for one slot (the same kind, and the same `basis` or none), one counts: the finest grain wins, then the newest, then the lowest source URI; the others are conflicts. On a type whose query document reads its entries as sites (`entries: sites`, as on an org), a claim entry that names no own entry (no `basis`, or a legacy `basis` while the subject states no location of that kind) is its own site: it counts beside every other such entry and competes with none. A claim that names an own entry still competes for that entry, and a subject that states a location of that kind still bars a claim with no `basis`. Read as written, every writer's claim is weighed; curated, only the subject's author's and those of writers the commons root endorses. The commons curator makes a curated copy of a statement carrying `locations` only when its subject's type reads its entries as sites (an org; never an event or a place) and the statement's author is one the root endorses for statements: the copy is about the curated org and written by the org's curator, so it counts as the org's own locations. */
25
25
  export interface Locations {
26
26
  $type?: 'pub.techne.draft.statement#locations';
27
27
  /** Entries as in the subject's own `locations` field (lexicon naming register). */
@@ -0,0 +1,14 @@
1
+ /**
2
+ * GENERATED CODE - DO NOT MODIFY
3
+ */
4
+ import { type ValidationResult } from '@atproto/lexicon';
5
+ export interface Main {
6
+ $type: 'pub.techne.draft.unfollow';
7
+ /** The person unfollowed. */
8
+ subject: string;
9
+ createdAt: string;
10
+ [k: string]: unknown;
11
+ }
12
+ export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.unfollow", "main">;
13
+ export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
14
+ 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.unfollow';
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, };
@@ -6,8 +6,8 @@ import type * as ComAtprotoRepoStrongRef from '../../../com/atproto/repo/strongR
6
6
  export interface Main {
7
7
  $type: 'pub.techne.draft.verdict';
8
8
  subject: ComAtprotoRepoStrongRef.Main;
9
- /** What the version is. `spam`: advertising, scams, link farms or bulk promotion rather than a real gathering. `obscene`: sexually explicit or gratuitously graphic content. `!takedown`: an operator took the record down; it hides the record at every version. `declined`: an operator declined a pub.techne.draft.registry.typeRequest at this version; it hides nothing. */
10
- values: ('spam' | 'obscene' | '!takedown' | 'declined' | (string & {}))[];
9
+ /** What the version is. `spam`: advertising, scams, link farms or bulk promotion rather than a real gathering. `obscene`: sexually explicit or gratuitously graphic content. `!takedown`: an operator took the record down; it hides the record at every version. `declined`: an operator declined a pub.techne.draft.registry.typeRequest at this version; it hides nothing. `cleared`: an admin writer (the commons root, or an operator the root names whose period held when the verdict was first seen), writing in its own repo, lifts the `spam` and `obscene` verdicts on the exact version it names (`subject` uri and cid), as if none were written; an edit is a new version it does not cover. It never lifts `!takedown`. Deleting it withdraws it; from any other writer it lifts nothing (pub.techne.draft.provenancePolicy, gaps). */
10
+ values: ('spam' | 'obscene' | '!takedown' | 'declined' | 'cleared' | (string & {}))[];
11
11
  createdAt: string;
12
12
  [k: string]: unknown;
13
13
  }
@@ -43,7 +43,7 @@ export type QueryNode = {
43
43
  readonly [role: string]: Condition | readonly QueryNode[];
44
44
  };
45
45
  /**
46
- * Which public records a branch reads; every list names one, there is no default (the `view` property of `pub.techne.draft.query` and its `#branch`):
46
+ * Which public records a branch reads; every list names one, and the types require it (the `view` property of `pub.techne.draft.query` and its `#branch`):
47
47
  * - `curated`: the commons' listed records, one curated record per thing (merged from its sources by a curator
48
48
  * the commons root trusts), moderated, not hidden; an event only inside the supported areas. A type no curator
49
49
  * covers is refused with `NotCurated`, naming the type, never answered as an empty list.
@@ -71,7 +71,8 @@ export interface QueryOptions {
71
71
  /** A `pub.techne.draft.query`, as data (the platform validates it). Every branch names its {@link View}: `view`
72
72
  * beside `where` names it for every branch of the `where` (each child of a top-level `any` too), and the `any`
73
73
  * form, `{ any: [{ view, where }, …] }`, one per branch (an app's feed: curated events and its own records as
74
- * written, in one list). A query naming no view is refused with `ViewRequired`. */
74
+ * written, in one list). The platform answers a query naming no view the way it did before views through
75
+ * 2027-03-01 (UTC) and refuses it with `ViewRequired` from 2027-03-02. */
75
76
  export type Query = QueryOptions & ({
76
77
  readonly view: View;
77
78
  readonly where: QueryNode;
@@ -39,8 +39,8 @@ export interface FinishPhoneSignInOptions extends PhoneSignInOptions {
39
39
  /**
40
40
  * Step 1: ask the door for its endpoints, make the DPoP key and the PKCE pair, and start the sign-in (the
41
41
  * platform texts the code). Rejects with the platform's refusal as an {@link OwnSessionError}:
42
- * `OwnSessionUnavailable` (sign in the old way: the door is off, or a review number), `RateLimitExceeded`
43
- * (`retryAfter`), `InvalidRequest`.
42
+ * `Unavailable` (no code could be sent: try again; an older platform says `OwnSessionUnavailable`),
43
+ * `RateLimitExceeded` (`retryAfter`), `InvalidRequest`.
44
44
  */
45
45
  export declare function startPhoneSignIn(o: PhoneSignInOptions & {
46
46
  phone: string;
@@ -50,10 +50,11 @@ export declare function startPhoneSignIn(o: PhoneSignInOptions & {
50
50
  * platform uses only if a check refuses the sign-in) are signed with the latest nonce; a `UseDpopNonce`
51
51
  * answer with a new nonce is signed again and sent with the same code (the platform has not spent it), up to
52
52
  * twice (the code step and the token step may each ask). `pending.dpopNonce` keeps the latest nonce, so a
53
- * retry by the app signs with it. Answers the session to save ({@link OwnSession.signedIn}) and whether the
54
- * number's account was just made. Rejects with the platform's refusal: `InvalidRequest` (wrong code: try
55
- * again), `CodeExpired` (start again), `NewCodeSent`, `MethodFrozen`, `OwnSessionUnavailable`,
56
- * `RateLimitExceeded`, `Unavailable`.
53
+ * retry by the app signs with it. Answers the session to save ({@link OwnSession.signedIn}) and `created`: the
54
+ * platform records the account for the first time (normally a new number; the app asks for a name next).
55
+ * Rejects with the platform's refusal: `InvalidRequest` (wrong code: try again), `CodeExpired` (start again),
56
+ * `MethodFrozen`, `AccountUnavailable` (the number can't sign in here), `NumberRemoved` (sign in with the
57
+ * current number), `RateLimitExceeded`, `Unavailable`.
57
58
  */
58
59
  export declare function finishPhoneSignIn(pending: PendingPhoneSignIn, code: string, o: FinishPhoneSignInOptions): Promise<{
59
60
  session: OwnSessionData;
@@ -27,8 +27,8 @@ function ownAnswer(nsid, own) {
27
27
  /**
28
28
  * Step 1: ask the door for its endpoints, make the DPoP key and the PKCE pair, and start the sign-in (the
29
29
  * platform texts the code). Rejects with the platform's refusal as an {@link OwnSessionError}:
30
- * `OwnSessionUnavailable` (sign in the old way: the door is off, or a review number), `RateLimitExceeded`
31
- * (`retryAfter`), `InvalidRequest`.
30
+ * `Unavailable` (no code could be sent: try again; an older platform says `OwnSessionUnavailable`),
31
+ * `RateLimitExceeded` (`retryAfter`), `InvalidRequest`.
32
32
  */
33
33
  export async function startPhoneSignIn(o) {
34
34
  const fetch = fetchOr(o.fetch);
@@ -54,10 +54,11 @@ export async function startPhoneSignIn(o) {
54
54
  * platform uses only if a check refuses the sign-in) are signed with the latest nonce; a `UseDpopNonce`
55
55
  * answer with a new nonce is signed again and sent with the same code (the platform has not spent it), up to
56
56
  * twice (the code step and the token step may each ask). `pending.dpopNonce` keeps the latest nonce, so a
57
- * retry by the app signs with it. Answers the session to save ({@link OwnSession.signedIn}) and whether the
58
- * number's account was just made. Rejects with the platform's refusal: `InvalidRequest` (wrong code: try
59
- * again), `CodeExpired` (start again), `NewCodeSent`, `MethodFrozen`, `OwnSessionUnavailable`,
60
- * `RateLimitExceeded`, `Unavailable`.
57
+ * retry by the app signs with it. Answers the session to save ({@link OwnSession.signedIn}) and `created`: the
58
+ * platform records the account for the first time (normally a new number; the app asks for a name next).
59
+ * Rejects with the platform's refusal: `InvalidRequest` (wrong code: try again), `CodeExpired` (start again),
60
+ * `MethodFrozen`, `AccountUnavailable` (the number can't sign in here), `NumberRemoved` (sign in with the
61
+ * current number), `RateLimitExceeded`, `Unavailable`.
61
62
  */
62
63
  export async function finishPhoneSignIn(pending, code, o) {
63
64
  const fetch = fetchOr(o.fetch);
@@ -7,7 +7,7 @@
7
7
  * `SessionEnded` (sign in again), `NetworkError` (no answer), `WrongAccount` (the tokens name another DID),
8
8
  * `InvalidResponse` (an answer without what the lexicon promises). */
9
9
  export declare class OwnSessionError extends Error {
10
- /** The XRPC error name (`UseDpopNonce`, `InvalidGrant`, `OwnSessionUnavailable`, `RateLimitExceeded`, ...) or the SDK's. */
10
+ /** The XRPC error name (`UseDpopNonce`, `InvalidGrant`, `Unavailable`, `RateLimitExceeded`, ...) or the SDK's. */
11
11
  readonly code: string;
12
12
  /** The HTTP status, when there was an answer. */
13
13
  readonly status?: number;
@@ -7,7 +7,7 @@
7
7
  * `SessionEnded` (sign in again), `NetworkError` (no answer), `WrongAccount` (the tokens name another DID),
8
8
  * `InvalidResponse` (an answer without what the lexicon promises). */
9
9
  export class OwnSessionError extends Error {
10
- /** The XRPC error name (`UseDpopNonce`, `InvalidGrant`, `OwnSessionUnavailable`, `RateLimitExceeded`, ...) or the SDK's. */
10
+ /** The XRPC error name (`UseDpopNonce`, `InvalidGrant`, `Unavailable`, `RateLimitExceeded`, ...) or the SDK's. */
11
11
  code;
12
12
  /** The HTTP status, when there was an answer. */
13
13
  status;
@@ -110,7 +110,7 @@ function countryList(languages) {
110
110
  names = new Intl.DisplayNames(languages, { type: 'region' });
111
111
  }
112
112
  catch {
113
- names = null;
113
+ /* no region names: the codes stand in */
114
114
  }
115
115
  const out = getCountries().map((region) => {
116
116
  let name = region;
@@ -118,7 +118,7 @@ function countryList(languages) {
118
118
  name = names?.of(region) || region;
119
119
  }
120
120
  catch {
121
- name = region;
121
+ /* keep the code */
122
122
  }
123
123
  return { region, dial: getCountryCallingCode(region), name, key: fold(name) };
124
124
  });
@@ -133,7 +133,7 @@ function defaultRegion(languages, known) {
133
133
  region = new Intl.Locale(l).maximize().region || '';
134
134
  }
135
135
  catch {
136
- region = '';
136
+ /* not a locale */
137
137
  }
138
138
  if (known.has(region))
139
139
  return region;
@@ -161,14 +161,10 @@ function flagsDrawn(doc) {
161
161
  }
162
162
  return false;
163
163
  }
164
- /** A typed number read under `region` (a number with its own `+` code wins); undefined when it reads as none. */
164
+ /** A typed number read under `region` (a number with its own `+` code wins); undefined when it reads as none.
165
+ * libphonenumber answers undefined for text it cannot parse; it throws only for a non-string or broken metadata. */
165
166
  function parsePhone(typed, region) {
166
- try {
167
- return parsePhoneNumberFromString(typed || '', region);
168
- }
169
- catch {
170
- return undefined;
171
- }
167
+ return parsePhoneNumberFromString(typed, region);
172
168
  }
173
169
  /** A typed number as E.164 under `region`, or null when it cannot be one. */
174
170
  function phoneE164(typed, region) {
@@ -257,7 +253,7 @@ export function mountSignIn(target, options) {
257
253
  stored = doc.defaultView?.localStorage?.getItem(COUNTRY_STORAGE_KEY) ?? null;
258
254
  }
259
255
  catch {
260
- stored = null;
256
+ /* storage blocked */
261
257
  }
262
258
  let current = byRegion.get(stored ?? '') ?? byRegion.get(defaultRegion(languages, new Set(byRegion.keys()))) ?? countries[0];
263
259
  let shown = [];