techne-sdk 0.1.0 → 0.3.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.
Files changed (72) hide show
  1. package/CHANGELOG.md +139 -0
  2. package/README.md +48 -2
  3. package/dist/auth/app-key.d.ts +8 -0
  4. package/dist/auth/app-key.js +95 -0
  5. package/dist/auth/index.d.ts +192 -0
  6. package/dist/auth/index.js +230 -0
  7. package/dist/auth/placement.gen.d.ts +1 -0
  8. package/dist/auth/placement.gen.js +50 -0
  9. package/dist/catalog/catalog.gen.js +2161 -681
  10. package/dist/connect.js +2 -1
  11. package/dist/generated/index.d.ts +61 -0
  12. package/dist/generated/index.js +116 -0
  13. package/dist/generated/lexicons.d.ts +3689 -1449
  14. package/dist/generated/lexicons.js +1237 -42
  15. package/dist/generated/nsid.d.ts +23 -1
  16. package/dist/generated/nsid.js +23 -19
  17. package/dist/generated/nsid.json +23 -19
  18. package/dist/generated/records.d.ts +28 -26
  19. package/dist/generated/types/pub/techne/draft/commons/getVersions.d.ts +3 -3
  20. package/dist/generated/types/pub/techne/draft/commons/runChain.d.ts +1 -1
  21. package/dist/generated/types/pub/techne/draft/credential.d.ts +1 -1
  22. package/dist/generated/types/pub/techne/draft/credentialRevocation.d.ts +1 -1
  23. package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.d.ts +5 -0
  24. package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.js +7 -0
  25. package/dist/generated/types/pub/techne/draft/permissioned/getRecord.d.ts +2 -1
  26. package/dist/generated/types/pub/techne/draft/permissioned/listChanges.d.ts +1 -1
  27. package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +2 -2
  28. package/dist/generated/types/pub/techne/draft/provenance.d.ts +1 -1
  29. package/dist/generated/types/pub/techne/draft/publisher.d.ts +1 -1
  30. package/dist/generated/types/pub/techne/draft/query/composeRecords.d.ts +152 -0
  31. package/dist/generated/types/pub/techne/draft/query/composeRecords.js +55 -0
  32. package/dist/generated/types/pub/techne/draft/query/getRecords.d.ts +1 -1
  33. package/dist/generated/types/pub/techne/draft/query/listRecords.d.ts +0 -4
  34. package/dist/generated/types/pub/techne/draft/query/listRejections.d.ts +2 -2
  35. package/dist/generated/types/pub/techne/draft/registry/blockIndex.d.ts +42 -0
  36. package/dist/generated/types/pub/techne/draft/registry/blockIndex.js +34 -0
  37. package/dist/generated/types/pub/techne/draft/registry/defs.d.ts +112 -0
  38. package/dist/generated/types/pub/techne/draft/registry/defs.js +32 -0
  39. package/dist/generated/types/pub/techne/draft/registry/getType.d.ts +23 -0
  40. package/dist/generated/types/pub/techne/draft/registry/getType.js +20 -0
  41. package/dist/generated/types/pub/techne/draft/registry/getTypeRequest.d.ts +23 -0
  42. package/dist/generated/types/pub/techne/draft/registry/getTypeRequest.js +20 -0
  43. package/dist/generated/types/pub/techne/draft/registry/listTypeRequests.d.ts +27 -0
  44. package/dist/generated/types/pub/techne/draft/registry/listTypeRequests.js +7 -0
  45. package/dist/generated/types/pub/techne/draft/registry/listTypes.d.ts +34 -0
  46. package/dist/generated/types/pub/techne/draft/registry/listTypes.js +7 -0
  47. package/dist/generated/types/pub/techne/draft/registry/publishType.d.ts +77 -0
  48. package/dist/generated/types/pub/techne/draft/registry/publishType.js +83 -0
  49. package/dist/generated/types/pub/techne/draft/registry/purgeType.d.ts +39 -0
  50. package/dist/generated/types/pub/techne/draft/registry/purgeType.js +34 -0
  51. package/dist/generated/types/pub/techne/draft/registry/requestType.d.ts +53 -0
  52. package/dist/generated/types/pub/techne/draft/registry/requestType.js +76 -0
  53. package/dist/generated/types/pub/techne/draft/registry/typeRequest.d.ts +22 -0
  54. package/dist/generated/types/pub/techne/draft/registry/typeRequest.js +12 -0
  55. package/dist/generated/types/pub/techne/draft/sync/indexRecord.d.ts +1 -1
  56. package/dist/generated/types/pub/techne/draft/verdict.d.ts +2 -2
  57. package/dist/platform.d.ts +14 -0
  58. package/dist/platform.js +16 -0
  59. package/dist/put/index.js +17 -7
  60. package/dist/query/index.d.ts +1 -10
  61. package/dist/query/index.js +1 -1
  62. package/dist/types-cli/emit.d.ts +20 -0
  63. package/dist/types-cli/emit.js +217 -0
  64. package/dist/types-cli/main.d.ts +5 -0
  65. package/dist/types-cli/main.js +63 -0
  66. package/dist/types-cli/resolve.d.ts +26 -0
  67. package/dist/types-cli/resolve.js +99 -0
  68. package/dist/wasm/index.d.ts +20 -3
  69. package/dist/wasm/index.js +6 -1
  70. package/dist/wasm/techne-wasm.gen.js +1 -1
  71. package/dist/wasm/techne-wasm2js.gen.js +26425 -25985
  72. package/package.json +23 -6
@@ -20,6 +20,7 @@ export declare const NSID: {
20
20
  readonly AUTHORITY: "pub.techne";
21
21
  readonly AUTH_COMMONS: "pub.techne.draft.authCommons";
22
22
  readonly AUTH_OPERATOR: "pub.techne.draft.authOperator";
23
+ readonly AUTH_PERMISSIONED: "pub.techne.draft.authPermissioned";
23
24
  readonly AUTH_READ: "pub.techne.draft.authRead";
24
25
  readonly AUTH_WRITE: "pub.techne.draft.authWrite";
25
26
  readonly BEACON: "pub.techne.draft.beacon";
@@ -180,6 +181,11 @@ export declare const NSID: {
180
181
  readonly PUBLISHER_ISSUE: "pub.techne.draft.publisher#issue";
181
182
  readonly QUERY: "pub.techne.draft.query";
182
183
  readonly QUERY_CLOSENESS: "pub.techne.draft.query#closeness";
184
+ readonly QUERY_COMPOSE_RECORDS: "pub.techne.draft.query.composeRecords";
185
+ readonly QUERY_COMPOSE_RECORDS_RECORD: "pub.techne.draft.query.composeRecords#record";
186
+ readonly QUERY_COMPOSE_RECORDS_STEP: "pub.techne.draft.query.composeRecords#step";
187
+ readonly QUERY_COMPOSE_RECORDS_STEP_ERROR: "pub.techne.draft.query.composeRecords#stepError";
188
+ readonly QUERY_COMPOSE_RECORDS_STEP_RESULT: "pub.techne.draft.query.composeRecords#stepResult";
183
189
  readonly QUERY_CONDITION: "pub.techne.draft.query#condition";
184
190
  readonly QUERY_COUNT_RECORDS: "pub.techne.draft.query.countRecords";
185
191
  readonly QUERY_COUNT_RECORDS_GROUP: "pub.techne.draft.query.countRecords#group";
@@ -188,7 +194,7 @@ export declare const NSID: {
188
194
  readonly QUERY_GET_RECORDS_DEFAULT: "pub.techne.draft.query.getRecords#default";
189
195
  readonly QUERY_GET_RECORDS_HANDLE: "pub.techne.draft.query.getRecords#handle";
190
196
  readonly QUERY_GET_RECORDS_RESOLVED: "pub.techne.draft.query.getRecords#resolved";
191
- readonly QUERY_INCLUDE: "pub.techne.draft.query#include";
197
+ readonly QUERY_HAS: "pub.techne.draft.query#has";
192
198
  readonly QUERY_LIST_RECORDS: "pub.techne.draft.query.listRecords";
193
199
  readonly QUERY_LIST_RECORDS_RECORD: "pub.techne.draft.query.listRecords#record";
194
200
  readonly QUERY_LIST_REJECTIONS: "pub.techne.draft.query.listRejections";
@@ -203,6 +209,20 @@ export declare const NSID: {
203
209
  readonly RECEIPT: "pub.techne.draft.receipt";
204
210
  readonly RECEIPT_QUERY: "pub.techne.draft.receipt.query";
205
211
  readonly REFLECTION: "pub.techne.draft.reflection";
212
+ readonly REGISTRY_BLOCK_INDEX: "pub.techne.draft.registry.blockIndex";
213
+ readonly REGISTRY_DEFS: "pub.techne.draft.registry.defs";
214
+ readonly REGISTRY_DEFS_PREVIEW: "pub.techne.draft.registry.defs#preview";
215
+ readonly REGISTRY_DEFS_REQUEST_VIEW: "pub.techne.draft.registry.defs#requestView";
216
+ readonly REGISTRY_DEFS_TYPE_SUMMARY: "pub.techne.draft.registry.defs#typeSummary";
217
+ readonly REGISTRY_DEFS_TYPE_VIEW: "pub.techne.draft.registry.defs#typeView";
218
+ readonly REGISTRY_GET_TYPE: "pub.techne.draft.registry.getType";
219
+ readonly REGISTRY_GET_TYPE_REQUEST: "pub.techne.draft.registry.getTypeRequest";
220
+ readonly REGISTRY_LIST_TYPES: "pub.techne.draft.registry.listTypes";
221
+ readonly REGISTRY_LIST_TYPE_REQUESTS: "pub.techne.draft.registry.listTypeRequests";
222
+ readonly REGISTRY_PUBLISH_TYPE: "pub.techne.draft.registry.publishType";
223
+ readonly REGISTRY_PURGE_TYPE: "pub.techne.draft.registry.purgeType";
224
+ readonly REGISTRY_REQUEST_TYPE: "pub.techne.draft.registry.requestType";
225
+ readonly REGISTRY_TYPE_REQUEST: "pub.techne.draft.registry.typeRequest";
206
226
  readonly RETIREMENT: "pub.techne.draft.retirement";
207
227
  readonly RETIREMENT_QUERY: "pub.techne.draft.retirement.query";
208
228
  readonly RSVP_NOTE: "pub.techne.draft.rsvpNote";
@@ -235,6 +255,8 @@ export declare const NSID: {
235
255
  readonly SPACE_PERSONAL: "pub.techne.draft.space.personal";
236
256
  readonly SPACE_PERSONAL_POLICY: "pub.techne.draft.space.personal.policy";
237
257
  readonly SPACE_PREFIX: "pub.techne.draft.space.";
258
+ readonly SPACE_PRIVATE: "pub.techne.draft.space.private";
259
+ readonly SPACE_PRIVATE_POLICY: "pub.techne.draft.space.private.policy";
238
260
  readonly SPACE_SOURCE: "pub.techne.draft.space.source";
239
261
  readonly SPACE_SOURCE_POLICY: "pub.techne.draft.space.source.policy";
240
262
  readonly SUBJECT_PREFS: "pub.techne.draft.subjectPrefs";
@@ -24,6 +24,7 @@ export const NSID = {
24
24
  AUTHORITY: 'pub.techne',
25
25
  AUTH_COMMONS: 'pub.techne.draft.authCommons',
26
26
  AUTH_OPERATOR: 'pub.techne.draft.authOperator',
27
+ AUTH_PERMISSIONED: 'pub.techne.draft.authPermissioned',
27
28
  AUTH_READ: 'pub.techne.draft.authRead',
28
29
  AUTH_WRITE: 'pub.techne.draft.authWrite',
29
30
  BEACON: 'pub.techne.draft.beacon',
@@ -184,6 +185,11 @@ export const NSID = {
184
185
  PUBLISHER_ISSUE: 'pub.techne.draft.publisher#issue',
185
186
  QUERY: 'pub.techne.draft.query',
186
187
  QUERY_CLOSENESS: 'pub.techne.draft.query#closeness',
188
+ QUERY_COMPOSE_RECORDS: 'pub.techne.draft.query.composeRecords',
189
+ QUERY_COMPOSE_RECORDS_RECORD: 'pub.techne.draft.query.composeRecords#record',
190
+ QUERY_COMPOSE_RECORDS_STEP: 'pub.techne.draft.query.composeRecords#step',
191
+ QUERY_COMPOSE_RECORDS_STEP_ERROR: 'pub.techne.draft.query.composeRecords#stepError',
192
+ QUERY_COMPOSE_RECORDS_STEP_RESULT: 'pub.techne.draft.query.composeRecords#stepResult',
187
193
  QUERY_CONDITION: 'pub.techne.draft.query#condition',
188
194
  QUERY_COUNT_RECORDS: 'pub.techne.draft.query.countRecords',
189
195
  QUERY_COUNT_RECORDS_GROUP: 'pub.techne.draft.query.countRecords#group',
@@ -192,7 +198,7 @@ export const NSID = {
192
198
  QUERY_GET_RECORDS_DEFAULT: 'pub.techne.draft.query.getRecords#default',
193
199
  QUERY_GET_RECORDS_HANDLE: 'pub.techne.draft.query.getRecords#handle',
194
200
  QUERY_GET_RECORDS_RESOLVED: 'pub.techne.draft.query.getRecords#resolved',
195
- QUERY_INCLUDE: 'pub.techne.draft.query#include',
201
+ QUERY_HAS: 'pub.techne.draft.query#has',
196
202
  QUERY_LIST_RECORDS: 'pub.techne.draft.query.listRecords',
197
203
  QUERY_LIST_RECORDS_RECORD: 'pub.techne.draft.query.listRecords#record',
198
204
  QUERY_LIST_REJECTIONS: 'pub.techne.draft.query.listRejections',
@@ -207,6 +213,20 @@ export const NSID = {
207
213
  RECEIPT: 'pub.techne.draft.receipt',
208
214
  RECEIPT_QUERY: 'pub.techne.draft.receipt.query',
209
215
  REFLECTION: 'pub.techne.draft.reflection',
216
+ REGISTRY_BLOCK_INDEX: 'pub.techne.draft.registry.blockIndex',
217
+ REGISTRY_DEFS: 'pub.techne.draft.registry.defs',
218
+ REGISTRY_DEFS_PREVIEW: 'pub.techne.draft.registry.defs#preview',
219
+ REGISTRY_DEFS_REQUEST_VIEW: 'pub.techne.draft.registry.defs#requestView',
220
+ REGISTRY_DEFS_TYPE_SUMMARY: 'pub.techne.draft.registry.defs#typeSummary',
221
+ REGISTRY_DEFS_TYPE_VIEW: 'pub.techne.draft.registry.defs#typeView',
222
+ REGISTRY_GET_TYPE: 'pub.techne.draft.registry.getType',
223
+ REGISTRY_GET_TYPE_REQUEST: 'pub.techne.draft.registry.getTypeRequest',
224
+ REGISTRY_LIST_TYPES: 'pub.techne.draft.registry.listTypes',
225
+ REGISTRY_LIST_TYPE_REQUESTS: 'pub.techne.draft.registry.listTypeRequests',
226
+ REGISTRY_PUBLISH_TYPE: 'pub.techne.draft.registry.publishType',
227
+ REGISTRY_PURGE_TYPE: 'pub.techne.draft.registry.purgeType',
228
+ REGISTRY_REQUEST_TYPE: 'pub.techne.draft.registry.requestType',
229
+ REGISTRY_TYPE_REQUEST: 'pub.techne.draft.registry.typeRequest',
210
230
  RETIREMENT: 'pub.techne.draft.retirement',
211
231
  RETIREMENT_QUERY: 'pub.techne.draft.retirement.query',
212
232
  RSVP_NOTE: 'pub.techne.draft.rsvpNote',
@@ -239,6 +259,8 @@ export const NSID = {
239
259
  SPACE_PERSONAL: 'pub.techne.draft.space.personal',
240
260
  SPACE_PERSONAL_POLICY: 'pub.techne.draft.space.personal.policy',
241
261
  SPACE_PREFIX: 'pub.techne.draft.space.',
262
+ SPACE_PRIVATE: 'pub.techne.draft.space.private',
263
+ SPACE_PRIVATE_POLICY: 'pub.techne.draft.space.private.policy',
242
264
  SPACE_SOURCE: 'pub.techne.draft.space.source',
243
265
  SPACE_SOURCE_POLICY: 'pub.techne.draft.space.source.policy',
244
266
  SUBJECT_PREFS: 'pub.techne.draft.subjectPrefs',
@@ -552,19 +574,16 @@ export const NSID_RENAMES = {
552
574
  'coop.lexicon.draft.channelVerification': 'pub.techne.draft.channelVerification',
553
575
  'coop.lexicon.draft.circleBeacon': 'pub.techne.draft.circleBeacon',
554
576
  'coop.lexicon.draft.collective': 'pub.techne.draft.collective',
555
- 'coop.lexicon.draft.commons.adjudicatePair': 'pub.techne.draft.commons.adjudicatePair',
556
577
  'coop.lexicon.draft.commons.countClusters': 'pub.techne.draft.commons.countClusters',
557
578
  'coop.lexicon.draft.commons.countRecords': 'pub.techne.draft.commons.countRecords',
558
579
  'coop.lexicon.draft.commons.createServiceAccount': 'pub.techne.draft.commons.createServiceAccount',
559
580
  'coop.lexicon.draft.commons.defs': 'pub.techne.draft.commons.defs',
560
- 'coop.lexicon.draft.commons.endorseRule': 'pub.techne.draft.commons.endorseRule',
561
581
  'coop.lexicon.draft.commons.getCluster': 'pub.techne.draft.commons.getCluster',
562
582
  'coop.lexicon.draft.commons.getMetrics': 'pub.techne.draft.commons.getMetrics',
563
583
  'coop.lexicon.draft.commons.getRecord': 'pub.techne.draft.commons.getRecord',
564
584
  'coop.lexicon.draft.commons.getSidecars': 'pub.techne.draft.commons.getSidecars',
565
585
  'coop.lexicon.draft.commons.getStatus': 'pub.techne.draft.commons.getStatus',
566
586
  'coop.lexicon.draft.commons.getVersions': 'pub.techne.draft.commons.getVersions',
567
- 'coop.lexicon.draft.commons.grantOperator': 'pub.techne.draft.commons.grantOperator',
568
587
  'coop.lexicon.draft.commons.grantProviderAllowance': 'pub.techne.draft.commons.grantProviderAllowance',
569
588
  'coop.lexicon.draft.commons.indexRecord': 'pub.techne.draft.commons.indexRecord',
570
589
  'coop.lexicon.draft.commons.listClusters': 'pub.techne.draft.commons.listClusters',
@@ -585,15 +604,9 @@ export const NSID_RENAMES = {
585
604
  'coop.lexicon.draft.commons.putScraper': 'pub.techne.draft.commons.putScraper',
586
605
  'coop.lexicon.draft.commons.rerunJob': 'pub.techne.draft.commons.rerunJob',
587
606
  'coop.lexicon.draft.commons.rerunRule': 'pub.techne.draft.commons.rerunRule',
588
- 'coop.lexicon.draft.commons.restoreRecord': 'pub.techne.draft.commons.restoreRecord',
589
- 'coop.lexicon.draft.commons.retireIdentity': 'pub.techne.draft.commons.retireIdentity',
590
- 'coop.lexicon.draft.commons.revokeOperator': 'pub.techne.draft.commons.revokeOperator',
591
- 'coop.lexicon.draft.commons.revokeRule': 'pub.techne.draft.commons.revokeRule',
592
607
  'coop.lexicon.draft.commons.runChain': 'pub.techne.draft.commons.runChain',
593
608
  'coop.lexicon.draft.commons.runScraper': 'pub.techne.draft.commons.runScraper',
594
609
  'coop.lexicon.draft.commons.setScraperEnabled': 'pub.techne.draft.commons.setScraperEnabled',
595
- 'coop.lexicon.draft.commons.takedownRecord': 'pub.techne.draft.commons.takedownRecord',
596
- 'coop.lexicon.draft.commons.unretireIdentity': 'pub.techne.draft.commons.unretireIdentity',
597
610
  'coop.lexicon.draft.commons.whoami': 'pub.techne.draft.commons.whoami',
598
611
  'coop.lexicon.draft.connection': 'pub.techne.draft.connection',
599
612
  'coop.lexicon.draft.contact': 'pub.techne.draft.contact',
@@ -875,19 +888,16 @@ export const RENAMES_LAST_DAY = {
875
888
  'coop.lexicon.draft.channelVerification': '2027-10-25',
876
889
  'coop.lexicon.draft.circleBeacon': '2027-10-25',
877
890
  'coop.lexicon.draft.collective': '2027-10-25',
878
- 'coop.lexicon.draft.commons.adjudicatePair': '2027-10-25',
879
891
  'coop.lexicon.draft.commons.countClusters': '2027-10-25',
880
892
  'coop.lexicon.draft.commons.countRecords': '2027-10-25',
881
893
  'coop.lexicon.draft.commons.createServiceAccount': '2027-10-25',
882
894
  'coop.lexicon.draft.commons.defs': '2027-10-25',
883
- 'coop.lexicon.draft.commons.endorseRule': '2027-10-25',
884
895
  'coop.lexicon.draft.commons.getCluster': '2027-10-25',
885
896
  'coop.lexicon.draft.commons.getMetrics': '2027-10-25',
886
897
  'coop.lexicon.draft.commons.getRecord': '2027-10-25',
887
898
  'coop.lexicon.draft.commons.getSidecars': '2027-10-25',
888
899
  'coop.lexicon.draft.commons.getStatus': '2027-10-25',
889
900
  'coop.lexicon.draft.commons.getVersions': '2027-10-25',
890
- 'coop.lexicon.draft.commons.grantOperator': '2027-10-25',
891
901
  'coop.lexicon.draft.commons.grantProviderAllowance': '2027-10-25',
892
902
  'coop.lexicon.draft.commons.indexRecord': '2027-10-25',
893
903
  'coop.lexicon.draft.commons.listClusters': '2027-10-25',
@@ -908,15 +918,9 @@ export const RENAMES_LAST_DAY = {
908
918
  'coop.lexicon.draft.commons.putScraper': '2027-10-25',
909
919
  'coop.lexicon.draft.commons.rerunJob': '2027-10-25',
910
920
  'coop.lexicon.draft.commons.rerunRule': '2027-10-25',
911
- 'coop.lexicon.draft.commons.restoreRecord': '2027-10-25',
912
- 'coop.lexicon.draft.commons.retireIdentity': '2027-10-25',
913
- 'coop.lexicon.draft.commons.revokeOperator': '2027-10-25',
914
- 'coop.lexicon.draft.commons.revokeRule': '2027-10-25',
915
921
  'coop.lexicon.draft.commons.runChain': '2027-10-25',
916
922
  'coop.lexicon.draft.commons.runScraper': '2027-10-25',
917
923
  'coop.lexicon.draft.commons.setScraperEnabled': '2027-10-25',
918
- 'coop.lexicon.draft.commons.takedownRecord': '2027-10-25',
919
- 'coop.lexicon.draft.commons.unretireIdentity': '2027-10-25',
920
924
  'coop.lexicon.draft.commons.whoami': '2027-10-25',
921
925
  'coop.lexicon.draft.connection': '2027-10-25',
922
926
  'coop.lexicon.draft.contact': '2027-10-25',
@@ -20,6 +20,7 @@
20
20
  "AUTHORITY": "pub.techne",
21
21
  "AUTH_COMMONS": "pub.techne.draft.authCommons",
22
22
  "AUTH_OPERATOR": "pub.techne.draft.authOperator",
23
+ "AUTH_PERMISSIONED": "pub.techne.draft.authPermissioned",
23
24
  "AUTH_READ": "pub.techne.draft.authRead",
24
25
  "AUTH_WRITE": "pub.techne.draft.authWrite",
25
26
  "BEACON": "pub.techne.draft.beacon",
@@ -180,6 +181,11 @@
180
181
  "PUBLISHER_ISSUE": "pub.techne.draft.publisher#issue",
181
182
  "QUERY": "pub.techne.draft.query",
182
183
  "QUERY_CLOSENESS": "pub.techne.draft.query#closeness",
184
+ "QUERY_COMPOSE_RECORDS": "pub.techne.draft.query.composeRecords",
185
+ "QUERY_COMPOSE_RECORDS_RECORD": "pub.techne.draft.query.composeRecords#record",
186
+ "QUERY_COMPOSE_RECORDS_STEP": "pub.techne.draft.query.composeRecords#step",
187
+ "QUERY_COMPOSE_RECORDS_STEP_ERROR": "pub.techne.draft.query.composeRecords#stepError",
188
+ "QUERY_COMPOSE_RECORDS_STEP_RESULT": "pub.techne.draft.query.composeRecords#stepResult",
183
189
  "QUERY_CONDITION": "pub.techne.draft.query#condition",
184
190
  "QUERY_COUNT_RECORDS": "pub.techne.draft.query.countRecords",
185
191
  "QUERY_COUNT_RECORDS_GROUP": "pub.techne.draft.query.countRecords#group",
@@ -188,7 +194,7 @@
188
194
  "QUERY_GET_RECORDS_DEFAULT": "pub.techne.draft.query.getRecords#default",
189
195
  "QUERY_GET_RECORDS_HANDLE": "pub.techne.draft.query.getRecords#handle",
190
196
  "QUERY_GET_RECORDS_RESOLVED": "pub.techne.draft.query.getRecords#resolved",
191
- "QUERY_INCLUDE": "pub.techne.draft.query#include",
197
+ "QUERY_HAS": "pub.techne.draft.query#has",
192
198
  "QUERY_LIST_RECORDS": "pub.techne.draft.query.listRecords",
193
199
  "QUERY_LIST_RECORDS_RECORD": "pub.techne.draft.query.listRecords#record",
194
200
  "QUERY_LIST_REJECTIONS": "pub.techne.draft.query.listRejections",
@@ -203,6 +209,20 @@
203
209
  "RECEIPT": "pub.techne.draft.receipt",
204
210
  "RECEIPT_QUERY": "pub.techne.draft.receipt.query",
205
211
  "REFLECTION": "pub.techne.draft.reflection",
212
+ "REGISTRY_BLOCK_INDEX": "pub.techne.draft.registry.blockIndex",
213
+ "REGISTRY_DEFS": "pub.techne.draft.registry.defs",
214
+ "REGISTRY_DEFS_PREVIEW": "pub.techne.draft.registry.defs#preview",
215
+ "REGISTRY_DEFS_REQUEST_VIEW": "pub.techne.draft.registry.defs#requestView",
216
+ "REGISTRY_DEFS_TYPE_SUMMARY": "pub.techne.draft.registry.defs#typeSummary",
217
+ "REGISTRY_DEFS_TYPE_VIEW": "pub.techne.draft.registry.defs#typeView",
218
+ "REGISTRY_GET_TYPE": "pub.techne.draft.registry.getType",
219
+ "REGISTRY_GET_TYPE_REQUEST": "pub.techne.draft.registry.getTypeRequest",
220
+ "REGISTRY_LIST_TYPES": "pub.techne.draft.registry.listTypes",
221
+ "REGISTRY_LIST_TYPE_REQUESTS": "pub.techne.draft.registry.listTypeRequests",
222
+ "REGISTRY_PUBLISH_TYPE": "pub.techne.draft.registry.publishType",
223
+ "REGISTRY_PURGE_TYPE": "pub.techne.draft.registry.purgeType",
224
+ "REGISTRY_REQUEST_TYPE": "pub.techne.draft.registry.requestType",
225
+ "REGISTRY_TYPE_REQUEST": "pub.techne.draft.registry.typeRequest",
206
226
  "RETIREMENT": "pub.techne.draft.retirement",
207
227
  "RETIREMENT_QUERY": "pub.techne.draft.retirement.query",
208
228
  "RSVP_NOTE": "pub.techne.draft.rsvpNote",
@@ -235,6 +255,8 @@
235
255
  "SPACE_PERSONAL": "pub.techne.draft.space.personal",
236
256
  "SPACE_PERSONAL_POLICY": "pub.techne.draft.space.personal.policy",
237
257
  "SPACE_PREFIX": "pub.techne.draft.space.",
258
+ "SPACE_PRIVATE": "pub.techne.draft.space.private",
259
+ "SPACE_PRIVATE_POLICY": "pub.techne.draft.space.private.policy",
238
260
  "SPACE_SOURCE": "pub.techne.draft.space.source",
239
261
  "SPACE_SOURCE_POLICY": "pub.techne.draft.space.source.policy",
240
262
  "SUBJECT_PREFS": "pub.techne.draft.subjectPrefs",
@@ -544,19 +566,16 @@
544
566
  "coop.lexicon.draft.channelVerification": "pub.techne.draft.channelVerification",
545
567
  "coop.lexicon.draft.circleBeacon": "pub.techne.draft.circleBeacon",
546
568
  "coop.lexicon.draft.collective": "pub.techne.draft.collective",
547
- "coop.lexicon.draft.commons.adjudicatePair": "pub.techne.draft.commons.adjudicatePair",
548
569
  "coop.lexicon.draft.commons.countClusters": "pub.techne.draft.commons.countClusters",
549
570
  "coop.lexicon.draft.commons.countRecords": "pub.techne.draft.commons.countRecords",
550
571
  "coop.lexicon.draft.commons.createServiceAccount": "pub.techne.draft.commons.createServiceAccount",
551
572
  "coop.lexicon.draft.commons.defs": "pub.techne.draft.commons.defs",
552
- "coop.lexicon.draft.commons.endorseRule": "pub.techne.draft.commons.endorseRule",
553
573
  "coop.lexicon.draft.commons.getCluster": "pub.techne.draft.commons.getCluster",
554
574
  "coop.lexicon.draft.commons.getMetrics": "pub.techne.draft.commons.getMetrics",
555
575
  "coop.lexicon.draft.commons.getRecord": "pub.techne.draft.commons.getRecord",
556
576
  "coop.lexicon.draft.commons.getSidecars": "pub.techne.draft.commons.getSidecars",
557
577
  "coop.lexicon.draft.commons.getStatus": "pub.techne.draft.commons.getStatus",
558
578
  "coop.lexicon.draft.commons.getVersions": "pub.techne.draft.commons.getVersions",
559
- "coop.lexicon.draft.commons.grantOperator": "pub.techne.draft.commons.grantOperator",
560
579
  "coop.lexicon.draft.commons.grantProviderAllowance": "pub.techne.draft.commons.grantProviderAllowance",
561
580
  "coop.lexicon.draft.commons.indexRecord": "pub.techne.draft.commons.indexRecord",
562
581
  "coop.lexicon.draft.commons.listClusters": "pub.techne.draft.commons.listClusters",
@@ -577,15 +596,9 @@
577
596
  "coop.lexicon.draft.commons.putScraper": "pub.techne.draft.commons.putScraper",
578
597
  "coop.lexicon.draft.commons.rerunJob": "pub.techne.draft.commons.rerunJob",
579
598
  "coop.lexicon.draft.commons.rerunRule": "pub.techne.draft.commons.rerunRule",
580
- "coop.lexicon.draft.commons.restoreRecord": "pub.techne.draft.commons.restoreRecord",
581
- "coop.lexicon.draft.commons.retireIdentity": "pub.techne.draft.commons.retireIdentity",
582
- "coop.lexicon.draft.commons.revokeOperator": "pub.techne.draft.commons.revokeOperator",
583
- "coop.lexicon.draft.commons.revokeRule": "pub.techne.draft.commons.revokeRule",
584
599
  "coop.lexicon.draft.commons.runChain": "pub.techne.draft.commons.runChain",
585
600
  "coop.lexicon.draft.commons.runScraper": "pub.techne.draft.commons.runScraper",
586
601
  "coop.lexicon.draft.commons.setScraperEnabled": "pub.techne.draft.commons.setScraperEnabled",
587
- "coop.lexicon.draft.commons.takedownRecord": "pub.techne.draft.commons.takedownRecord",
588
- "coop.lexicon.draft.commons.unretireIdentity": "pub.techne.draft.commons.unretireIdentity",
589
602
  "coop.lexicon.draft.commons.whoami": "pub.techne.draft.commons.whoami",
590
603
  "coop.lexicon.draft.connection": "pub.techne.draft.connection",
591
604
  "coop.lexicon.draft.contact": "pub.techne.draft.contact",
@@ -862,19 +875,16 @@
862
875
  "coop.lexicon.draft.channelVerification": "2027-10-25",
863
876
  "coop.lexicon.draft.circleBeacon": "2027-10-25",
864
877
  "coop.lexicon.draft.collective": "2027-10-25",
865
- "coop.lexicon.draft.commons.adjudicatePair": "2027-10-25",
866
878
  "coop.lexicon.draft.commons.countClusters": "2027-10-25",
867
879
  "coop.lexicon.draft.commons.countRecords": "2027-10-25",
868
880
  "coop.lexicon.draft.commons.createServiceAccount": "2027-10-25",
869
881
  "coop.lexicon.draft.commons.defs": "2027-10-25",
870
- "coop.lexicon.draft.commons.endorseRule": "2027-10-25",
871
882
  "coop.lexicon.draft.commons.getCluster": "2027-10-25",
872
883
  "coop.lexicon.draft.commons.getMetrics": "2027-10-25",
873
884
  "coop.lexicon.draft.commons.getRecord": "2027-10-25",
874
885
  "coop.lexicon.draft.commons.getSidecars": "2027-10-25",
875
886
  "coop.lexicon.draft.commons.getStatus": "2027-10-25",
876
887
  "coop.lexicon.draft.commons.getVersions": "2027-10-25",
877
- "coop.lexicon.draft.commons.grantOperator": "2027-10-25",
878
888
  "coop.lexicon.draft.commons.grantProviderAllowance": "2027-10-25",
879
889
  "coop.lexicon.draft.commons.indexRecord": "2027-10-25",
880
890
  "coop.lexicon.draft.commons.listClusters": "2027-10-25",
@@ -895,15 +905,9 @@
895
905
  "coop.lexicon.draft.commons.putScraper": "2027-10-25",
896
906
  "coop.lexicon.draft.commons.rerunJob": "2027-10-25",
897
907
  "coop.lexicon.draft.commons.rerunRule": "2027-10-25",
898
- "coop.lexicon.draft.commons.restoreRecord": "2027-10-25",
899
- "coop.lexicon.draft.commons.retireIdentity": "2027-10-25",
900
- "coop.lexicon.draft.commons.revokeOperator": "2027-10-25",
901
- "coop.lexicon.draft.commons.revokeRule": "2027-10-25",
902
908
  "coop.lexicon.draft.commons.runChain": "2027-10-25",
903
909
  "coop.lexicon.draft.commons.runScraper": "2027-10-25",
904
910
  "coop.lexicon.draft.commons.setScraperEnabled": "2027-10-25",
905
- "coop.lexicon.draft.commons.takedownRecord": "2027-10-25",
906
- "coop.lexicon.draft.commons.unretireIdentity": "2027-10-25",
907
911
  "coop.lexicon.draft.commons.whoami": "2027-10-25",
908
912
  "coop.lexicon.draft.connection": "2027-10-25",
909
913
  "coop.lexicon.draft.contact": "2027-10-25",
@@ -54,19 +54,20 @@ import type * as R52 from './types/pub/techne/draft/publisher.js';
54
54
  import type * as R53 from './types/pub/techne/draft/questionSet.js';
55
55
  import type * as R54 from './types/pub/techne/draft/receipt.js';
56
56
  import type * as R55 from './types/pub/techne/draft/reflection.js';
57
- import type * as R56 from './types/pub/techne/draft/retirement.js';
58
- import type * as R57 from './types/pub/techne/draft/rsvpNote.js';
59
- import type * as R58 from './types/pub/techne/draft/sameAs.js';
60
- import type * as R59 from './types/pub/techne/draft/scraper/cursor.js';
61
- import type * as R60 from './types/pub/techne/draft/scraper/raw.js';
62
- import type * as R61 from './types/pub/techne/draft/share.js';
63
- import type * as R62 from './types/pub/techne/draft/source.js';
64
- import type * as R63 from './types/pub/techne/draft/sourceAttribution.js';
65
- import type * as R64 from './types/pub/techne/draft/sourceRef.js';
66
- import type * as R65 from './types/pub/techne/draft/subjectPrefs.js';
67
- import type * as R66 from './types/pub/techne/draft/verdict.js';
68
- import type * as R67 from './types/pub/techne/draft/verification.js';
69
- import type * as R68 from './types/pub/techne/draft/weeklyCheckIn.js';
57
+ import type * as R56 from './types/pub/techne/draft/registry/typeRequest.js';
58
+ import type * as R57 from './types/pub/techne/draft/retirement.js';
59
+ import type * as R58 from './types/pub/techne/draft/rsvpNote.js';
60
+ import type * as R59 from './types/pub/techne/draft/sameAs.js';
61
+ import type * as R60 from './types/pub/techne/draft/scraper/cursor.js';
62
+ import type * as R61 from './types/pub/techne/draft/scraper/raw.js';
63
+ import type * as R62 from './types/pub/techne/draft/share.js';
64
+ import type * as R63 from './types/pub/techne/draft/source.js';
65
+ import type * as R64 from './types/pub/techne/draft/sourceAttribution.js';
66
+ import type * as R65 from './types/pub/techne/draft/sourceRef.js';
67
+ import type * as R66 from './types/pub/techne/draft/subjectPrefs.js';
68
+ import type * as R67 from './types/pub/techne/draft/verdict.js';
69
+ import type * as R68 from './types/pub/techne/draft/verification.js';
70
+ import type * as R69 from './types/pub/techne/draft/weeklyCheckIn.js';
70
71
  /** Every record type the lexicons define, by collection. */
71
72
  export interface Records {
72
73
  'community.lexicon.calendar.event': R0.Record;
@@ -125,19 +126,20 @@ export interface Records {
125
126
  'pub.techne.draft.questionSet': R53.Record;
126
127
  'pub.techne.draft.receipt': R54.Record;
127
128
  'pub.techne.draft.reflection': R55.Record;
128
- 'pub.techne.draft.retirement': R56.Record;
129
- 'pub.techne.draft.rsvpNote': R57.Record;
130
- 'pub.techne.draft.sameAs': R58.Record;
131
- 'pub.techne.draft.scraper.cursor': R59.Record;
132
- 'pub.techne.draft.scraper.raw': R60.Record;
133
- 'pub.techne.draft.share': R61.Record;
134
- 'pub.techne.draft.source': R62.Record;
135
- 'pub.techne.draft.sourceAttribution': R63.Record;
136
- 'pub.techne.draft.sourceRef': R64.Record;
137
- 'pub.techne.draft.subjectPrefs': R65.Record;
138
- 'pub.techne.draft.verdict': R66.Record;
139
- 'pub.techne.draft.verification': R67.Record;
140
- 'pub.techne.draft.weeklyCheckIn': R68.Record;
129
+ 'pub.techne.draft.registry.typeRequest': R56.Record;
130
+ 'pub.techne.draft.retirement': R57.Record;
131
+ 'pub.techne.draft.rsvpNote': R58.Record;
132
+ 'pub.techne.draft.sameAs': R59.Record;
133
+ 'pub.techne.draft.scraper.cursor': R60.Record;
134
+ 'pub.techne.draft.scraper.raw': R61.Record;
135
+ 'pub.techne.draft.share': R62.Record;
136
+ 'pub.techne.draft.source': R63.Record;
137
+ 'pub.techne.draft.sourceAttribution': R64.Record;
138
+ 'pub.techne.draft.sourceRef': R65.Record;
139
+ 'pub.techne.draft.subjectPrefs': R66.Record;
140
+ 'pub.techne.draft.verdict': R67.Record;
141
+ 'pub.techne.draft.verification': R68.Record;
142
+ 'pub.techne.draft.weeklyCheckIn': R69.Record;
141
143
  }
142
144
  /** Any one record the lexicons define (its `$type` says which). */
143
145
  export type AnyRecord = Records[keyof Records];
@@ -52,9 +52,9 @@ export interface Version {
52
52
  handle?: string;
53
53
  /** Its rank in the composition. Absent: the curator left it out (a verdict) or nothing curates it. A retired identity's record is never a version, so it is not returned at all. */
54
54
  rank?: number;
55
- /** A mirror's copy of an upstream listing: its author wrote a pub.techne.draft.source or pub.techne.draft.sourceRef sidecar about it, and the commons root endorses that author as a source for the record's collection (a sidecar alone is the author's own claim and tags nothing). */
55
+ /** A mirror's copy of an upstream listing: its author wrote a pub.techne.draft.source or pub.techne.draft.sourceRef sidecar about it, and an admin writer vouches for that author as a writer of the record's collection (a sidecar alone is the author's own claim and tags nothing). */
56
56
  mirror: boolean;
57
- /** Verdict records about this version (its CID), from labelers the root endorses for their values. */
57
+ /** Verdict records about this version (its CID), from verdict writers an admin writer vouches for with their values. */
58
58
  verdicts: VerdictView[];
59
59
  verification?: VerificationView;
60
60
  /** When this version was indexed (its last edit). */
@@ -71,7 +71,7 @@ export declare function isVerdictView<V>(v: V): v is import("../../../../../util
71
71
  export declare function validateVerdictView<V>(v: V): ValidationResult<VerdictView & V>;
72
72
  export interface VerificationView {
73
73
  $type?: 'pub.techne.draft.commons.getVersions#verificationView';
74
- /** The pub.techne.draft.verification record about the author, by an issuer the root endorses for it. */
74
+ /** The pub.techne.draft.verification record about the author, by an author an admin writer vouches for as a writer of pub.techne.draft.verification. */
75
75
  uri: string;
76
76
  }
77
77
  export declare function isVerificationView<V>(v: V): v is import("../../../../../util.js").$TypedObject<V, "pub.techne.draft.commons.getVersions", "verificationView">;
@@ -18,7 +18,7 @@ export interface OutputSchema {
18
18
  };
19
19
  /** Live labels on the curated record (spam, obscene) from the runner's labelling rules. */
20
20
  labels: ComAtprotoLabelDefs.Label[];
21
- /** Pointers to the pub.techne.draft.receipt records the runner's curated-stage rules wrote for the canonical record at its current CID (the moderation verdict). A reader lists a curated record only with a receipt for its current CID from every rule the commons root endorses at stage `curated`, so the caller fetches each from its author's PDS, checks its CID and that its subject is the canonical record at the answered CID, and indexes it with the curated record. Absent or empty while none is written yet. */
21
+ /** Pointers to the pub.techne.draft.receipt records the runner's curated-stage rules wrote for the canonical record at its current CID (the moderation verdict). A reader lists a curated record only with a receipt for its current CID from every rule at stage `curated` that an admin writer (the commons root, or an operator the root names) vouches for, so the caller fetches each from its author's PDS, checks its CID and that its subject is the canonical record at the answered CID, and indexes it with the curated record. Absent or empty while none is written yet. */
22
22
  receipts?: ComAtprotoRepoStrongRef.Main[];
23
23
  /** Some step of the chain has not finished yet: the caller shows the record as publishing and asks again. */
24
24
  pending: boolean;
@@ -19,7 +19,7 @@ export interface Main {
19
19
  notBefore: string;
20
20
  /** Metadata: the issuer re-issues on use. A credential past it is not void by that alone. */
21
21
  notAfter: string;
22
- /** Where the issuer publishes a pub.techne.draft.credentialRevocation if it withdraws this credential (and every re-issue at the same binding id). Absent there = not revoked. */
22
+ /** Where the issuer publishes a pub.techne.draft.credentialRevocation if it withdraws this credential (and every re-issue at the same binding id). Absent there = not revoked by the issuer. The commons root can also revoke a commons credential an operator issued, with its own credentialRevocation at the same rkey in the root's repo; a reader counts either. */
23
23
  revocation: string;
24
24
  signature?: Signature;
25
25
  createdAt: string;
@@ -4,7 +4,7 @@
4
4
  import { type ValidationResult } from '@atproto/lexicon';
5
5
  export interface Main {
6
6
  $type: 'pub.techne.draft.credentialRevocation';
7
- /** `unlinked`: the holder removed the method; `deleted`: the holder's account was deleted; `folded`: the method moved to the holder's other account; `superseded`: replaced by a newer binding; `compromised`: the key or the binding was compromised; `withdrawn`: the issuer no longer vouches for it (the commons root revoking a publisher declaration). */
7
+ /** `unlinked`: the holder removed the method; `deleted`: the holder's account was deleted; `folded`: the method moved to the holder's other account; `superseded`: replaced by a newer binding; `compromised`: the key or the binding was compromised; `withdrawn`: the issuer no longer vouches for it (a commons admin writer, the root or an operator, withdrawing its vouching for a publisher declaration). */
8
8
  reason: 'unlinked' | 'deleted' | 'folded' | 'superseded' | 'compromised' | 'withdrawn' | (string & {});
9
9
  createdAt: string;
10
10
  [k: string]: unknown;
@@ -10,6 +10,8 @@ export interface InputSchema {
10
10
  rkey: string;
11
11
  /** Delete only if the record's current CID is this one. */
12
12
  swapCid?: string;
13
+ /** The space the record was written for (its putRecord space). One key holds one record per space (the 0016 record address), so this names which one goes. Absent: the record at the key whatever its space, refused as Conflict when the key holds records for more than one space. */
14
+ space?: string;
13
15
  }
14
16
  export interface OutputSchema {
15
17
  /** The repo revision of the delete. Absent when there was nothing to delete. */
@@ -38,6 +40,9 @@ export declare class AccountDeletingError extends XRPCError {
38
40
  export declare class InvalidSwapError extends XRPCError {
39
41
  constructor(src: XRPCError);
40
42
  }
43
+ export declare class ConflictError extends XRPCError {
44
+ constructor(src: XRPCError);
45
+ }
41
46
  export declare class AuthenticationRequiredError extends XRPCError {
42
47
  constructor(src: XRPCError);
43
48
  }
@@ -26,6 +26,11 @@ export class InvalidSwapError extends XRPCError {
26
26
  super(src.status, src.error, src.message, src.headers, { cause: src });
27
27
  }
28
28
  }
29
+ export class ConflictError extends XRPCError {
30
+ constructor(src) {
31
+ super(src.status, src.error, src.message, src.headers, { cause: src });
32
+ }
33
+ }
29
34
  export class AuthenticationRequiredError extends XRPCError {
30
35
  constructor(src) {
31
36
  super(src.status, src.error, src.message, src.headers, { cause: src });
@@ -46,6 +51,8 @@ export function toKnownErr(e) {
46
51
  return new AccountDeletingError(e);
47
52
  if (e.error === 'InvalidSwap')
48
53
  return new InvalidSwapError(e);
54
+ if (e.error === 'Conflict')
55
+ return new ConflictError(e);
49
56
  if (e.error === 'AuthenticationRequired')
50
57
  return new AuthenticationRequiredError(e);
51
58
  if (e.error === 'RateLimitExceeded')
@@ -3,11 +3,12 @@
3
3
  */
4
4
  import { HeadersMap, XRPCError } from '@atproto/xrpc';
5
5
  export type QueryParams = {
6
- /** at://{did}/{collection}/{rkey}, with a DID authority. (Native 0016 spaces address a permissioned record by its space URI instead.) */
6
+ /** The record's address, with DID authorities: the 0016 space record address at://{spaceAuthority}/space/{spaceType}/{skey}/{did}/{collection}/{rkey} names the record written for that space; the 3-part at://{did}/{collection}/{rkey} names none, and answers only when exactly one record at that key may be read by the caller (one key may hold one record per space). */
7
7
  uri: string;
8
8
  };
9
9
  export type InputSchema = undefined;
10
10
  export interface OutputSchema {
11
+ /** The address the record was asked for by: a 0016 read is answered under its 0016 address. */
11
12
  uri: string;
12
13
  cid: string;
13
14
  rev: string;
@@ -33,7 +33,7 @@ export declare class AuthenticationRequiredError extends XRPCError {
33
33
  constructor(src: XRPCError);
34
34
  }
35
35
  export declare function toKnownErr(e: any): any;
36
- /** A write or delete in an owner's repo. A delete's receipt is its tombstone. */
36
+ /** A write or delete in an owner's repo. A delete's receipt is its tombstone. One key (did, collection, rkey) may hold one record per space (the 0016 record address), so a reader keys its copies by (did, collection, rkey, space): a tombstone retracts only the copy with its space, never another space's record at the same key. */
37
37
  export interface RecordChange {
38
38
  $type?: 'pub.techne.draft.permissioned.listChanges#recordChange';
39
39
  /** Global order, strictly increasing in commit order. */
@@ -15,7 +15,7 @@ export interface InputSchema {
15
15
  };
16
16
  /** Write only if the record's current CID is this one. A missing record never matches. */
17
17
  swapCid?: string;
18
- /** The space the record is for: at://{authority}/{spaceType}/{skey} (for a source's own records, at://{repo}/pub.techne.draft.space.source/self). Absent: the record is for no space, and only its writer reads it. */
18
+ /** The space the record is for: at://{authority}/{spaceType}/{skey} (for a source's own records, at://{repo}/pub.techne.draft.space.source/self). Absent: the record is for no space, and only its writer reads it. The key holds one record per space (the 0016 record address): writing it for another space writes another record and leaves this one; to move a record, delete it and write it again. */
19
19
  space?: string;
20
20
  }
21
21
  export interface OutputSchema {
@@ -26,7 +26,7 @@ export interface OutputSchema {
26
26
  rev: string;
27
27
  /** The DIDs the `share`s placed in the space the record counts in name (its authority left out), when the caller may read that space; empty otherwise. For a source space this is its whole audience beside the owner (as getGrants). */
28
28
  read: string[];
29
- /** The space the record counts in now. Absent when it counts in none (no space was named, or the space's write policy does not admit the writer). */
29
+ /** The space the record counts in now. Absent when it counts in none (no space was named, or the space's write policy does not admit the writer, or a space.private space written by an app other than the one its key names). */
30
30
  space?: string;
31
31
  }
32
32
  export interface CallOptions {
@@ -19,7 +19,7 @@ export interface Main {
19
19
  export declare function isMain<V>(v: V): v is import("../../../../util.js").$TypedObject<V, "pub.techne.draft.provenance", "main">;
20
20
  export declare function validateMain<V>(v: V): ValidationResult<Main & V>;
21
21
  export { type Main as Record, isMain as isRecord, validateMain as validateRecord, };
22
- /** How the curated record was composed from its sources. Each source is a version, ranked: 1 a source the commons root vouches for in the collection (a mirror, a rule, a collective: its pub.techne.draft.publisher `writes` holds the collection and a live root pub.techne.draft.credential pins that declaration), 2 a verified account (a pub.techne.draft.verification by an issuer whose vouched declaration writes pub.techne.draft.verification) or a member of a collective vouched for to write membership claims (its vouched declaration's `writes` holds pub.techne.draft.membership), 3 everyone else. Per field the best rank wins, ties going to the newest edit; a rank 3 version only fills blanks or stands alone. A version with a moderation verdict the curator honours is left out (it has no rank here and gives no field), and so is a source by a retired identity: it is not a version. Readers show the composition as the default and may let a person pick another version. */
22
+ /** How the curated record was composed from its sources. Each source is a version, ranked: 1 a source an admin writer vouches for in the collection (a mirror, a rule, a collective: its pub.techne.draft.publisher `writes` holds the collection and a live pub.techne.draft.credential from the commons root, or from an operator the root names, pins that declaration), 2 a verified account (a pub.techne.draft.verification by an issuer whose vouched declaration writes pub.techne.draft.verification) or a member of a collective vouched for to write membership claims (its vouched declaration's `writes` holds pub.techne.draft.membership), 3 everyone else. Per field the best rank wins, ties going to the newest edit; a rank 3 version only fills blanks or stands alone. A version with a moderation verdict the curator honours is left out (it has no rank here and gives no field), and so is a source by a retired identity: it is not a version. Readers show the composition as the default and may let a person pick another version. */
23
23
  export interface Composition {
24
24
  $type?: 'pub.techne.draft.provenance#composition';
25
25
  /** The version that speaks first: always the first entry of `ranks` (best rank, newest edit), so it duplicates `ranks[0].uri`; a reader that finds them differ trusts `ranks`. Kept so readers need not re-derive the order to show who the record is from. */
@@ -24,7 +24,7 @@ export interface Main {
24
24
  stage?: 'source' | 'curated' | (string & {});
25
25
  /** The label values (com.atproto.label.defs#label `val`, and pub.techne.draft.verdict `values`) the account may assign, for example `spam` and `obscene`. A reader honours a label or verdict from this DID only when its value is listed here. Absent: it labels nothing. */
26
26
  labels?: string[];
27
- /** The credentials the account issues about a holder's record. Its pub.techne.draft.credential counts only while the root vouches for this declaration and the attested record is in an entry's `collection`, signed and stored by the subject, when the credential's `fields` are a subset of that entry's `fields` (a whole-record credential, by `cid`, only when that entry's `fields` is empty). Absent or empty: it issues none. */
27
+ /** The credentials the account issues about a holder's record. Its pub.techne.draft.credential counts only while an admin writer (the root, or an operator the root names) vouches for this declaration and the attested record is in an entry's `collection`, signed and stored by the subject, when the credential's `fields` are a subset of that entry's `fields` (a whole-record credential, by `cid`, only when that entry's `fields` is empty). Absent or empty: it issues none. */
28
28
  issues?: Issue[];
29
29
  createdAt: string;
30
30
  [k: string]: unknown;