@hypercerts-org/lexicon 0.10.0-beta.0 → 0.10.0-beta.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (110) hide show
  1. package/README.md +126 -13
  2. package/dist/exports.d.ts +1018 -0
  3. package/dist/exports.d.ts.map +1 -0
  4. package/dist/generated/exports.d.ts +1018 -0
  5. package/dist/generated/exports.d.ts.map +1 -0
  6. package/dist/generated/lexicons.d.ts +1805 -0
  7. package/dist/generated/lexicons.d.ts.map +1 -0
  8. package/dist/generated/types/app/certified/badge/award.d.ts +24 -0
  9. package/dist/generated/types/app/certified/badge/award.d.ts.map +1 -0
  10. package/dist/generated/types/app/certified/badge/definition.d.ts +25 -0
  11. package/dist/generated/types/app/certified/badge/definition.d.ts.map +1 -0
  12. package/dist/generated/types/app/certified/badge/response.d.ts +20 -0
  13. package/dist/generated/types/app/certified/badge/response.d.ts.map +1 -0
  14. package/dist/generated/types/app/certified/defs.d.ts +3 -0
  15. package/dist/generated/types/app/certified/defs.d.ts.map +1 -0
  16. package/dist/generated/types/app/certified/location.d.ts +29 -0
  17. package/dist/generated/types/app/certified/location.d.ts.map +1 -0
  18. package/dist/generated/types/com/atproto/repo/strongRef.d.ts +12 -0
  19. package/dist/generated/types/com/atproto/repo/strongRef.d.ts.map +1 -0
  20. package/dist/generated/types/org/hypercerts/claim/activity.d.ts +57 -0
  21. package/dist/generated/types/org/hypercerts/claim/activity.d.ts.map +1 -0
  22. package/dist/generated/types/org/hypercerts/claim/collection.d.ts +25 -0
  23. package/dist/generated/types/org/hypercerts/claim/collection.d.ts.map +1 -0
  24. package/dist/generated/types/org/hypercerts/claim/contribution.d.ts +24 -0
  25. package/dist/generated/types/org/hypercerts/claim/contribution.d.ts.map +1 -0
  26. package/dist/generated/types/org/hypercerts/claim/evaluation.d.ts +43 -0
  27. package/dist/generated/types/org/hypercerts/claim/evaluation.d.ts.map +1 -0
  28. package/dist/generated/types/org/hypercerts/claim/evidence.d.ts +29 -0
  29. package/dist/generated/types/org/hypercerts/claim/evidence.d.ts.map +1 -0
  30. package/dist/generated/types/org/hypercerts/claim/measurement.d.ts +30 -0
  31. package/dist/generated/types/org/hypercerts/claim/measurement.d.ts.map +1 -0
  32. package/dist/generated/types/org/hypercerts/claim/project.d.ts +29 -0
  33. package/dist/generated/types/org/hypercerts/claim/project.d.ts.map +1 -0
  34. package/dist/generated/types/org/hypercerts/claim/rights.d.ts +25 -0
  35. package/dist/generated/types/org/hypercerts/claim/rights.d.ts.map +1 -0
  36. package/dist/generated/types/org/hypercerts/defs.d.ts +45 -0
  37. package/dist/generated/types/org/hypercerts/defs.d.ts.map +1 -0
  38. package/dist/generated/types/org/hypercerts/funding/receipt.d.ts +34 -0
  39. package/dist/generated/types/org/hypercerts/funding/receipt.d.ts.map +1 -0
  40. package/dist/generated/types/pub/leaflet/pages/linearDocument.d.ts +2 -0
  41. package/dist/generated/types/pub/leaflet/pages/linearDocument.d.ts.map +1 -0
  42. package/dist/generated/util.d.ts +37 -0
  43. package/dist/generated/util.d.ts.map +1 -0
  44. package/dist/index.cjs +2636 -0
  45. package/dist/index.cjs.map +1 -0
  46. package/dist/index.mjs +2560 -0
  47. package/dist/index.mjs.map +1 -0
  48. package/dist/lexicons.cjs +1002 -0
  49. package/dist/lexicons.cjs.map +1 -0
  50. package/dist/lexicons.d.ts +1805 -0
  51. package/dist/lexicons.d.ts.map +1 -0
  52. package/dist/lexicons.mjs +996 -0
  53. package/dist/lexicons.mjs.map +1 -0
  54. package/dist/types/app/certified/badge/award.d.ts +24 -0
  55. package/dist/types/app/certified/badge/award.d.ts.map +1 -0
  56. package/dist/types/app/certified/badge/definition.d.ts +25 -0
  57. package/dist/types/app/certified/badge/definition.d.ts.map +1 -0
  58. package/dist/types/app/certified/badge/response.d.ts +20 -0
  59. package/dist/types/app/certified/badge/response.d.ts.map +1 -0
  60. package/dist/types/app/certified/defs.d.ts +3 -0
  61. package/dist/types/app/certified/defs.d.ts.map +1 -0
  62. package/dist/types/app/certified/location.d.ts +29 -0
  63. package/dist/types/app/certified/location.d.ts.map +1 -0
  64. package/dist/types/com/atproto/repo/strongRef.d.ts +12 -0
  65. package/dist/types/com/atproto/repo/strongRef.d.ts.map +1 -0
  66. package/dist/types/org/hypercerts/claim/activity.d.ts +57 -0
  67. package/dist/types/org/hypercerts/claim/activity.d.ts.map +1 -0
  68. package/dist/types/org/hypercerts/claim/collection.d.ts +25 -0
  69. package/dist/types/org/hypercerts/claim/collection.d.ts.map +1 -0
  70. package/dist/types/org/hypercerts/claim/contribution.d.ts +24 -0
  71. package/dist/types/org/hypercerts/claim/contribution.d.ts.map +1 -0
  72. package/dist/types/org/hypercerts/claim/evaluation.d.ts +43 -0
  73. package/dist/types/org/hypercerts/claim/evaluation.d.ts.map +1 -0
  74. package/dist/types/org/hypercerts/claim/evidence.d.ts +29 -0
  75. package/dist/types/org/hypercerts/claim/evidence.d.ts.map +1 -0
  76. package/dist/types/org/hypercerts/claim/measurement.d.ts +30 -0
  77. package/dist/types/org/hypercerts/claim/measurement.d.ts.map +1 -0
  78. package/dist/types/org/hypercerts/claim/project.d.ts +29 -0
  79. package/dist/types/org/hypercerts/claim/project.d.ts.map +1 -0
  80. package/dist/types/org/hypercerts/claim/rights.d.ts +25 -0
  81. package/dist/types/org/hypercerts/claim/rights.d.ts.map +1 -0
  82. package/dist/types/org/hypercerts/defs.d.ts +45 -0
  83. package/dist/types/org/hypercerts/defs.d.ts.map +1 -0
  84. package/dist/types/org/hypercerts/funding/receipt.d.ts +34 -0
  85. package/dist/types/org/hypercerts/funding/receipt.d.ts.map +1 -0
  86. package/dist/types/pub/leaflet/pages/linearDocument.d.ts +2 -0
  87. package/dist/types/pub/leaflet/pages/linearDocument.d.ts.map +1 -0
  88. package/dist/util.d.ts +37 -0
  89. package/dist/util.d.ts.map +1 -0
  90. package/package.json +51 -21
  91. package/README.md.orig +0 -267
  92. package/types/index.ts +0 -1257
  93. package/types/lexicons.ts +0 -1071
  94. package/types/types/app/certified/badge/award.ts +0 -48
  95. package/types/types/app/certified/badge/definition.ts +0 -49
  96. package/types/types/app/certified/badge/response.ts +0 -44
  97. package/types/types/app/certified/defs.ts +0 -14
  98. package/types/types/app/certified/location.ts +0 -49
  99. package/types/types/com/atproto/repo/strongRef.ts +0 -31
  100. package/types/types/org/hypercerts/claim/activity.ts +0 -99
  101. package/types/types/org/hypercerts/claim/collection.ts +0 -49
  102. package/types/types/org/hypercerts/claim/contribution.ts +0 -48
  103. package/types/types/org/hypercerts/claim/evaluation.ts +0 -77
  104. package/types/types/org/hypercerts/claim/evidence.ts +0 -53
  105. package/types/types/org/hypercerts/claim/measurement.ts +0 -54
  106. package/types/types/org/hypercerts/claim/project.ts +0 -53
  107. package/types/types/org/hypercerts/claim/rights.ts +0 -49
  108. package/types/types/org/hypercerts/defs.ts +0 -96
  109. package/types/types/org/hypercerts/funding/receipt.ts +0 -58
  110. package/types/util.ts +0 -82
package/types/index.ts DELETED
@@ -1,1257 +0,0 @@
1
- /**
2
- * GENERATED CODE - DO NOT MODIFY
3
- */
4
- import {
5
- XrpcClient,
6
- type FetchHandler,
7
- type FetchHandlerOptions,
8
- } from '@atproto/xrpc'
9
- import { schemas } from './lexicons.js'
10
- import { CID } from 'multiformats/cid'
11
- import { type OmitKey, type Un$Typed } from './util.js'
12
- import * as AppCertifiedBadgeAward from './types/app/certified/badge/award.js'
13
- import * as AppCertifiedBadgeDefinition from './types/app/certified/badge/definition.js'
14
- import * as AppCertifiedBadgeResponse from './types/app/certified/badge/response.js'
15
- import * as AppCertifiedDefs from './types/app/certified/defs.js'
16
- import * as AppCertifiedLocation from './types/app/certified/location.js'
17
- import * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef.js'
18
- import * as OrgHypercertsClaimActivity from './types/org/hypercerts/claim/activity.js'
19
- import * as OrgHypercertsClaimCollection from './types/org/hypercerts/claim/collection.js'
20
- import * as OrgHypercertsClaimContribution from './types/org/hypercerts/claim/contribution.js'
21
- import * as OrgHypercertsClaimEvaluation from './types/org/hypercerts/claim/evaluation.js'
22
- import * as OrgHypercertsClaimEvidence from './types/org/hypercerts/claim/evidence.js'
23
- import * as OrgHypercertsClaimMeasurement from './types/org/hypercerts/claim/measurement.js'
24
- import * as OrgHypercertsClaimProject from './types/org/hypercerts/claim/project.js'
25
- import * as OrgHypercertsClaimRights from './types/org/hypercerts/claim/rights.js'
26
- import * as OrgHypercertsDefs from './types/org/hypercerts/defs.js'
27
- import * as OrgHypercertsFundingReceipt from './types/org/hypercerts/funding/receipt.js'
28
-
29
- export * as AppCertifiedBadgeAward from './types/app/certified/badge/award.js'
30
- export * as AppCertifiedBadgeDefinition from './types/app/certified/badge/definition.js'
31
- export * as AppCertifiedBadgeResponse from './types/app/certified/badge/response.js'
32
- export * as AppCertifiedDefs from './types/app/certified/defs.js'
33
- export * as AppCertifiedLocation from './types/app/certified/location.js'
34
- export * as ComAtprotoRepoStrongRef from './types/com/atproto/repo/strongRef.js'
35
- export * as OrgHypercertsClaimActivity from './types/org/hypercerts/claim/activity.js'
36
- export * as OrgHypercertsClaimCollection from './types/org/hypercerts/claim/collection.js'
37
- export * as OrgHypercertsClaimContribution from './types/org/hypercerts/claim/contribution.js'
38
- export * as OrgHypercertsClaimEvaluation from './types/org/hypercerts/claim/evaluation.js'
39
- export * as OrgHypercertsClaimEvidence from './types/org/hypercerts/claim/evidence.js'
40
- export * as OrgHypercertsClaimMeasurement from './types/org/hypercerts/claim/measurement.js'
41
- export * as OrgHypercertsClaimProject from './types/org/hypercerts/claim/project.js'
42
- export * as OrgHypercertsClaimRights from './types/org/hypercerts/claim/rights.js'
43
- export * as OrgHypercertsDefs from './types/org/hypercerts/defs.js'
44
- export * as OrgHypercertsFundingReceipt from './types/org/hypercerts/funding/receipt.js'
45
-
46
- export class AtpBaseClient extends XrpcClient {
47
- app: AppNS
48
- com: ComNS
49
- org: OrgNS
50
-
51
- constructor(options: FetchHandler | FetchHandlerOptions) {
52
- super(options, schemas)
53
- this.app = new AppNS(this)
54
- this.com = new ComNS(this)
55
- this.org = new OrgNS(this)
56
- }
57
-
58
- /** @deprecated use `this` instead */
59
- get xrpc(): XrpcClient {
60
- return this
61
- }
62
- }
63
-
64
- export class AppNS {
65
- _client: XrpcClient
66
- certified: AppCertifiedNS
67
-
68
- constructor(client: XrpcClient) {
69
- this._client = client
70
- this.certified = new AppCertifiedNS(client)
71
- }
72
- }
73
-
74
- export class AppCertifiedNS {
75
- _client: XrpcClient
76
- location: AppCertifiedLocationRecord
77
- badge: AppCertifiedBadgeNS
78
-
79
- constructor(client: XrpcClient) {
80
- this._client = client
81
- this.badge = new AppCertifiedBadgeNS(client)
82
- this.location = new AppCertifiedLocationRecord(client)
83
- }
84
- }
85
-
86
- export class AppCertifiedBadgeNS {
87
- _client: XrpcClient
88
- award: AppCertifiedBadgeAwardRecord
89
- definition: AppCertifiedBadgeDefinitionRecord
90
- response: AppCertifiedBadgeResponseRecord
91
-
92
- constructor(client: XrpcClient) {
93
- this._client = client
94
- this.award = new AppCertifiedBadgeAwardRecord(client)
95
- this.definition = new AppCertifiedBadgeDefinitionRecord(client)
96
- this.response = new AppCertifiedBadgeResponseRecord(client)
97
- }
98
- }
99
-
100
- export class AppCertifiedBadgeAwardRecord {
101
- _client: XrpcClient
102
-
103
- constructor(client: XrpcClient) {
104
- this._client = client
105
- }
106
-
107
- async list(
108
- params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
109
- ): Promise<{
110
- cursor?: string
111
- records: { uri: string; value: AppCertifiedBadgeAward.Record }[]
112
- }> {
113
- const res = await this._client.call('com.atproto.repo.listRecords', {
114
- collection: 'app.certified.badge.award',
115
- ...params,
116
- })
117
- return res.data
118
- }
119
-
120
- async get(
121
- params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
122
- ): Promise<{
123
- uri: string
124
- cid: string
125
- value: AppCertifiedBadgeAward.Record
126
- }> {
127
- const res = await this._client.call('com.atproto.repo.getRecord', {
128
- collection: 'app.certified.badge.award',
129
- ...params,
130
- })
131
- return res.data
132
- }
133
-
134
- async create(
135
- params: OmitKey<
136
- ComAtprotoRepoCreateRecord.InputSchema,
137
- 'collection' | 'record'
138
- >,
139
- record: Un$Typed<AppCertifiedBadgeAward.Record>,
140
- headers?: Record<string, string>,
141
- ): Promise<{ uri: string; cid: string }> {
142
- const collection = 'app.certified.badge.award'
143
- const res = await this._client.call(
144
- 'com.atproto.repo.createRecord',
145
- undefined,
146
- { collection, ...params, record: { ...record, $type: collection } },
147
- { encoding: 'application/json', headers },
148
- )
149
- return res.data
150
- }
151
-
152
- async put(
153
- params: OmitKey<
154
- ComAtprotoRepoPutRecord.InputSchema,
155
- 'collection' | 'record'
156
- >,
157
- record: Un$Typed<AppCertifiedBadgeAward.Record>,
158
- headers?: Record<string, string>,
159
- ): Promise<{ uri: string; cid: string }> {
160
- const collection = 'app.certified.badge.award'
161
- const res = await this._client.call(
162
- 'com.atproto.repo.putRecord',
163
- undefined,
164
- { collection, ...params, record: { ...record, $type: collection } },
165
- { encoding: 'application/json', headers },
166
- )
167
- return res.data
168
- }
169
-
170
- async delete(
171
- params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
172
- headers?: Record<string, string>,
173
- ): Promise<void> {
174
- await this._client.call(
175
- 'com.atproto.repo.deleteRecord',
176
- undefined,
177
- { collection: 'app.certified.badge.award', ...params },
178
- { headers },
179
- )
180
- }
181
- }
182
-
183
- export class AppCertifiedBadgeDefinitionRecord {
184
- _client: XrpcClient
185
-
186
- constructor(client: XrpcClient) {
187
- this._client = client
188
- }
189
-
190
- async list(
191
- params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
192
- ): Promise<{
193
- cursor?: string
194
- records: { uri: string; value: AppCertifiedBadgeDefinition.Record }[]
195
- }> {
196
- const res = await this._client.call('com.atproto.repo.listRecords', {
197
- collection: 'app.certified.badge.definition',
198
- ...params,
199
- })
200
- return res.data
201
- }
202
-
203
- async get(
204
- params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
205
- ): Promise<{
206
- uri: string
207
- cid: string
208
- value: AppCertifiedBadgeDefinition.Record
209
- }> {
210
- const res = await this._client.call('com.atproto.repo.getRecord', {
211
- collection: 'app.certified.badge.definition',
212
- ...params,
213
- })
214
- return res.data
215
- }
216
-
217
- async create(
218
- params: OmitKey<
219
- ComAtprotoRepoCreateRecord.InputSchema,
220
- 'collection' | 'record'
221
- >,
222
- record: Un$Typed<AppCertifiedBadgeDefinition.Record>,
223
- headers?: Record<string, string>,
224
- ): Promise<{ uri: string; cid: string }> {
225
- const collection = 'app.certified.badge.definition'
226
- const res = await this._client.call(
227
- 'com.atproto.repo.createRecord',
228
- undefined,
229
- { collection, ...params, record: { ...record, $type: collection } },
230
- { encoding: 'application/json', headers },
231
- )
232
- return res.data
233
- }
234
-
235
- async put(
236
- params: OmitKey<
237
- ComAtprotoRepoPutRecord.InputSchema,
238
- 'collection' | 'record'
239
- >,
240
- record: Un$Typed<AppCertifiedBadgeDefinition.Record>,
241
- headers?: Record<string, string>,
242
- ): Promise<{ uri: string; cid: string }> {
243
- const collection = 'app.certified.badge.definition'
244
- const res = await this._client.call(
245
- 'com.atproto.repo.putRecord',
246
- undefined,
247
- { collection, ...params, record: { ...record, $type: collection } },
248
- { encoding: 'application/json', headers },
249
- )
250
- return res.data
251
- }
252
-
253
- async delete(
254
- params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
255
- headers?: Record<string, string>,
256
- ): Promise<void> {
257
- await this._client.call(
258
- 'com.atproto.repo.deleteRecord',
259
- undefined,
260
- { collection: 'app.certified.badge.definition', ...params },
261
- { headers },
262
- )
263
- }
264
- }
265
-
266
- export class AppCertifiedBadgeResponseRecord {
267
- _client: XrpcClient
268
-
269
- constructor(client: XrpcClient) {
270
- this._client = client
271
- }
272
-
273
- async list(
274
- params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
275
- ): Promise<{
276
- cursor?: string
277
- records: { uri: string; value: AppCertifiedBadgeResponse.Record }[]
278
- }> {
279
- const res = await this._client.call('com.atproto.repo.listRecords', {
280
- collection: 'app.certified.badge.response',
281
- ...params,
282
- })
283
- return res.data
284
- }
285
-
286
- async get(
287
- params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
288
- ): Promise<{
289
- uri: string
290
- cid: string
291
- value: AppCertifiedBadgeResponse.Record
292
- }> {
293
- const res = await this._client.call('com.atproto.repo.getRecord', {
294
- collection: 'app.certified.badge.response',
295
- ...params,
296
- })
297
- return res.data
298
- }
299
-
300
- async create(
301
- params: OmitKey<
302
- ComAtprotoRepoCreateRecord.InputSchema,
303
- 'collection' | 'record'
304
- >,
305
- record: Un$Typed<AppCertifiedBadgeResponse.Record>,
306
- headers?: Record<string, string>,
307
- ): Promise<{ uri: string; cid: string }> {
308
- const collection = 'app.certified.badge.response'
309
- const res = await this._client.call(
310
- 'com.atproto.repo.createRecord',
311
- undefined,
312
- { collection, ...params, record: { ...record, $type: collection } },
313
- { encoding: 'application/json', headers },
314
- )
315
- return res.data
316
- }
317
-
318
- async put(
319
- params: OmitKey<
320
- ComAtprotoRepoPutRecord.InputSchema,
321
- 'collection' | 'record'
322
- >,
323
- record: Un$Typed<AppCertifiedBadgeResponse.Record>,
324
- headers?: Record<string, string>,
325
- ): Promise<{ uri: string; cid: string }> {
326
- const collection = 'app.certified.badge.response'
327
- const res = await this._client.call(
328
- 'com.atproto.repo.putRecord',
329
- undefined,
330
- { collection, ...params, record: { ...record, $type: collection } },
331
- { encoding: 'application/json', headers },
332
- )
333
- return res.data
334
- }
335
-
336
- async delete(
337
- params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
338
- headers?: Record<string, string>,
339
- ): Promise<void> {
340
- await this._client.call(
341
- 'com.atproto.repo.deleteRecord',
342
- undefined,
343
- { collection: 'app.certified.badge.response', ...params },
344
- { headers },
345
- )
346
- }
347
- }
348
-
349
- export class AppCertifiedLocationRecord {
350
- _client: XrpcClient
351
-
352
- constructor(client: XrpcClient) {
353
- this._client = client
354
- }
355
-
356
- async list(
357
- params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
358
- ): Promise<{
359
- cursor?: string
360
- records: { uri: string; value: AppCertifiedLocation.Record }[]
361
- }> {
362
- const res = await this._client.call('com.atproto.repo.listRecords', {
363
- collection: 'app.certified.location',
364
- ...params,
365
- })
366
- return res.data
367
- }
368
-
369
- async get(
370
- params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
371
- ): Promise<{ uri: string; cid: string; value: AppCertifiedLocation.Record }> {
372
- const res = await this._client.call('com.atproto.repo.getRecord', {
373
- collection: 'app.certified.location',
374
- ...params,
375
- })
376
- return res.data
377
- }
378
-
379
- async create(
380
- params: OmitKey<
381
- ComAtprotoRepoCreateRecord.InputSchema,
382
- 'collection' | 'record'
383
- >,
384
- record: Un$Typed<AppCertifiedLocation.Record>,
385
- headers?: Record<string, string>,
386
- ): Promise<{ uri: string; cid: string }> {
387
- const collection = 'app.certified.location'
388
- const res = await this._client.call(
389
- 'com.atproto.repo.createRecord',
390
- undefined,
391
- { collection, ...params, record: { ...record, $type: collection } },
392
- { encoding: 'application/json', headers },
393
- )
394
- return res.data
395
- }
396
-
397
- async put(
398
- params: OmitKey<
399
- ComAtprotoRepoPutRecord.InputSchema,
400
- 'collection' | 'record'
401
- >,
402
- record: Un$Typed<AppCertifiedLocation.Record>,
403
- headers?: Record<string, string>,
404
- ): Promise<{ uri: string; cid: string }> {
405
- const collection = 'app.certified.location'
406
- const res = await this._client.call(
407
- 'com.atproto.repo.putRecord',
408
- undefined,
409
- { collection, ...params, record: { ...record, $type: collection } },
410
- { encoding: 'application/json', headers },
411
- )
412
- return res.data
413
- }
414
-
415
- async delete(
416
- params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
417
- headers?: Record<string, string>,
418
- ): Promise<void> {
419
- await this._client.call(
420
- 'com.atproto.repo.deleteRecord',
421
- undefined,
422
- { collection: 'app.certified.location', ...params },
423
- { headers },
424
- )
425
- }
426
- }
427
-
428
- export class ComNS {
429
- _client: XrpcClient
430
- atproto: ComAtprotoNS
431
-
432
- constructor(client: XrpcClient) {
433
- this._client = client
434
- this.atproto = new ComAtprotoNS(client)
435
- }
436
- }
437
-
438
- export class ComAtprotoNS {
439
- _client: XrpcClient
440
- repo: ComAtprotoRepoNS
441
-
442
- constructor(client: XrpcClient) {
443
- this._client = client
444
- this.repo = new ComAtprotoRepoNS(client)
445
- }
446
- }
447
-
448
- export class ComAtprotoRepoNS {
449
- _client: XrpcClient
450
-
451
- constructor(client: XrpcClient) {
452
- this._client = client
453
- }
454
- }
455
-
456
- export class OrgNS {
457
- _client: XrpcClient
458
- hypercerts: OrgHypercertsNS
459
-
460
- constructor(client: XrpcClient) {
461
- this._client = client
462
- this.hypercerts = new OrgHypercertsNS(client)
463
- }
464
- }
465
-
466
- export class OrgHypercertsNS {
467
- _client: XrpcClient
468
- claim: OrgHypercertsClaimNS
469
- funding: OrgHypercertsFundingNS
470
-
471
- constructor(client: XrpcClient) {
472
- this._client = client
473
- this.claim = new OrgHypercertsClaimNS(client)
474
- this.funding = new OrgHypercertsFundingNS(client)
475
- }
476
- }
477
-
478
- export class OrgHypercertsClaimNS {
479
- _client: XrpcClient
480
- activity: OrgHypercertsClaimActivityRecord
481
- collection: OrgHypercertsClaimCollectionRecord
482
- contribution: OrgHypercertsClaimContributionRecord
483
- evaluation: OrgHypercertsClaimEvaluationRecord
484
- evidence: OrgHypercertsClaimEvidenceRecord
485
- measurement: OrgHypercertsClaimMeasurementRecord
486
- project: OrgHypercertsClaimProjectRecord
487
- rights: OrgHypercertsClaimRightsRecord
488
-
489
- constructor(client: XrpcClient) {
490
- this._client = client
491
- this.activity = new OrgHypercertsClaimActivityRecord(client)
492
- this.collection = new OrgHypercertsClaimCollectionRecord(client)
493
- this.contribution = new OrgHypercertsClaimContributionRecord(client)
494
- this.evaluation = new OrgHypercertsClaimEvaluationRecord(client)
495
- this.evidence = new OrgHypercertsClaimEvidenceRecord(client)
496
- this.measurement = new OrgHypercertsClaimMeasurementRecord(client)
497
- this.project = new OrgHypercertsClaimProjectRecord(client)
498
- this.rights = new OrgHypercertsClaimRightsRecord(client)
499
- }
500
- }
501
-
502
- export class OrgHypercertsClaimActivityRecord {
503
- _client: XrpcClient
504
-
505
- constructor(client: XrpcClient) {
506
- this._client = client
507
- }
508
-
509
- async list(
510
- params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
511
- ): Promise<{
512
- cursor?: string
513
- records: { uri: string; value: OrgHypercertsClaimActivity.Record }[]
514
- }> {
515
- const res = await this._client.call('com.atproto.repo.listRecords', {
516
- collection: 'org.hypercerts.claim.activity',
517
- ...params,
518
- })
519
- return res.data
520
- }
521
-
522
- async get(
523
- params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
524
- ): Promise<{
525
- uri: string
526
- cid: string
527
- value: OrgHypercertsClaimActivity.Record
528
- }> {
529
- const res = await this._client.call('com.atproto.repo.getRecord', {
530
- collection: 'org.hypercerts.claim.activity',
531
- ...params,
532
- })
533
- return res.data
534
- }
535
-
536
- async create(
537
- params: OmitKey<
538
- ComAtprotoRepoCreateRecord.InputSchema,
539
- 'collection' | 'record'
540
- >,
541
- record: Un$Typed<OrgHypercertsClaimActivity.Record>,
542
- headers?: Record<string, string>,
543
- ): Promise<{ uri: string; cid: string }> {
544
- const collection = 'org.hypercerts.claim.activity'
545
- const res = await this._client.call(
546
- 'com.atproto.repo.createRecord',
547
- undefined,
548
- { collection, ...params, record: { ...record, $type: collection } },
549
- { encoding: 'application/json', headers },
550
- )
551
- return res.data
552
- }
553
-
554
- async put(
555
- params: OmitKey<
556
- ComAtprotoRepoPutRecord.InputSchema,
557
- 'collection' | 'record'
558
- >,
559
- record: Un$Typed<OrgHypercertsClaimActivity.Record>,
560
- headers?: Record<string, string>,
561
- ): Promise<{ uri: string; cid: string }> {
562
- const collection = 'org.hypercerts.claim.activity'
563
- const res = await this._client.call(
564
- 'com.atproto.repo.putRecord',
565
- undefined,
566
- { collection, ...params, record: { ...record, $type: collection } },
567
- { encoding: 'application/json', headers },
568
- )
569
- return res.data
570
- }
571
-
572
- async delete(
573
- params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
574
- headers?: Record<string, string>,
575
- ): Promise<void> {
576
- await this._client.call(
577
- 'com.atproto.repo.deleteRecord',
578
- undefined,
579
- { collection: 'org.hypercerts.claim.activity', ...params },
580
- { headers },
581
- )
582
- }
583
- }
584
-
585
- export class OrgHypercertsClaimCollectionRecord {
586
- _client: XrpcClient
587
-
588
- constructor(client: XrpcClient) {
589
- this._client = client
590
- }
591
-
592
- async list(
593
- params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
594
- ): Promise<{
595
- cursor?: string
596
- records: { uri: string; value: OrgHypercertsClaimCollection.Record }[]
597
- }> {
598
- const res = await this._client.call('com.atproto.repo.listRecords', {
599
- collection: 'org.hypercerts.claim.collection',
600
- ...params,
601
- })
602
- return res.data
603
- }
604
-
605
- async get(
606
- params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
607
- ): Promise<{
608
- uri: string
609
- cid: string
610
- value: OrgHypercertsClaimCollection.Record
611
- }> {
612
- const res = await this._client.call('com.atproto.repo.getRecord', {
613
- collection: 'org.hypercerts.claim.collection',
614
- ...params,
615
- })
616
- return res.data
617
- }
618
-
619
- async create(
620
- params: OmitKey<
621
- ComAtprotoRepoCreateRecord.InputSchema,
622
- 'collection' | 'record'
623
- >,
624
- record: Un$Typed<OrgHypercertsClaimCollection.Record>,
625
- headers?: Record<string, string>,
626
- ): Promise<{ uri: string; cid: string }> {
627
- const collection = 'org.hypercerts.claim.collection'
628
- const res = await this._client.call(
629
- 'com.atproto.repo.createRecord',
630
- undefined,
631
- { collection, ...params, record: { ...record, $type: collection } },
632
- { encoding: 'application/json', headers },
633
- )
634
- return res.data
635
- }
636
-
637
- async put(
638
- params: OmitKey<
639
- ComAtprotoRepoPutRecord.InputSchema,
640
- 'collection' | 'record'
641
- >,
642
- record: Un$Typed<OrgHypercertsClaimCollection.Record>,
643
- headers?: Record<string, string>,
644
- ): Promise<{ uri: string; cid: string }> {
645
- const collection = 'org.hypercerts.claim.collection'
646
- const res = await this._client.call(
647
- 'com.atproto.repo.putRecord',
648
- undefined,
649
- { collection, ...params, record: { ...record, $type: collection } },
650
- { encoding: 'application/json', headers },
651
- )
652
- return res.data
653
- }
654
-
655
- async delete(
656
- params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
657
- headers?: Record<string, string>,
658
- ): Promise<void> {
659
- await this._client.call(
660
- 'com.atproto.repo.deleteRecord',
661
- undefined,
662
- { collection: 'org.hypercerts.claim.collection', ...params },
663
- { headers },
664
- )
665
- }
666
- }
667
-
668
- export class OrgHypercertsClaimContributionRecord {
669
- _client: XrpcClient
670
-
671
- constructor(client: XrpcClient) {
672
- this._client = client
673
- }
674
-
675
- async list(
676
- params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
677
- ): Promise<{
678
- cursor?: string
679
- records: { uri: string; value: OrgHypercertsClaimContribution.Record }[]
680
- }> {
681
- const res = await this._client.call('com.atproto.repo.listRecords', {
682
- collection: 'org.hypercerts.claim.contribution',
683
- ...params,
684
- })
685
- return res.data
686
- }
687
-
688
- async get(
689
- params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
690
- ): Promise<{
691
- uri: string
692
- cid: string
693
- value: OrgHypercertsClaimContribution.Record
694
- }> {
695
- const res = await this._client.call('com.atproto.repo.getRecord', {
696
- collection: 'org.hypercerts.claim.contribution',
697
- ...params,
698
- })
699
- return res.data
700
- }
701
-
702
- async create(
703
- params: OmitKey<
704
- ComAtprotoRepoCreateRecord.InputSchema,
705
- 'collection' | 'record'
706
- >,
707
- record: Un$Typed<OrgHypercertsClaimContribution.Record>,
708
- headers?: Record<string, string>,
709
- ): Promise<{ uri: string; cid: string }> {
710
- const collection = 'org.hypercerts.claim.contribution'
711
- const res = await this._client.call(
712
- 'com.atproto.repo.createRecord',
713
- undefined,
714
- { collection, ...params, record: { ...record, $type: collection } },
715
- { encoding: 'application/json', headers },
716
- )
717
- return res.data
718
- }
719
-
720
- async put(
721
- params: OmitKey<
722
- ComAtprotoRepoPutRecord.InputSchema,
723
- 'collection' | 'record'
724
- >,
725
- record: Un$Typed<OrgHypercertsClaimContribution.Record>,
726
- headers?: Record<string, string>,
727
- ): Promise<{ uri: string; cid: string }> {
728
- const collection = 'org.hypercerts.claim.contribution'
729
- const res = await this._client.call(
730
- 'com.atproto.repo.putRecord',
731
- undefined,
732
- { collection, ...params, record: { ...record, $type: collection } },
733
- { encoding: 'application/json', headers },
734
- )
735
- return res.data
736
- }
737
-
738
- async delete(
739
- params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
740
- headers?: Record<string, string>,
741
- ): Promise<void> {
742
- await this._client.call(
743
- 'com.atproto.repo.deleteRecord',
744
- undefined,
745
- { collection: 'org.hypercerts.claim.contribution', ...params },
746
- { headers },
747
- )
748
- }
749
- }
750
-
751
- export class OrgHypercertsClaimEvaluationRecord {
752
- _client: XrpcClient
753
-
754
- constructor(client: XrpcClient) {
755
- this._client = client
756
- }
757
-
758
- async list(
759
- params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
760
- ): Promise<{
761
- cursor?: string
762
- records: { uri: string; value: OrgHypercertsClaimEvaluation.Record }[]
763
- }> {
764
- const res = await this._client.call('com.atproto.repo.listRecords', {
765
- collection: 'org.hypercerts.claim.evaluation',
766
- ...params,
767
- })
768
- return res.data
769
- }
770
-
771
- async get(
772
- params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
773
- ): Promise<{
774
- uri: string
775
- cid: string
776
- value: OrgHypercertsClaimEvaluation.Record
777
- }> {
778
- const res = await this._client.call('com.atproto.repo.getRecord', {
779
- collection: 'org.hypercerts.claim.evaluation',
780
- ...params,
781
- })
782
- return res.data
783
- }
784
-
785
- async create(
786
- params: OmitKey<
787
- ComAtprotoRepoCreateRecord.InputSchema,
788
- 'collection' | 'record'
789
- >,
790
- record: Un$Typed<OrgHypercertsClaimEvaluation.Record>,
791
- headers?: Record<string, string>,
792
- ): Promise<{ uri: string; cid: string }> {
793
- const collection = 'org.hypercerts.claim.evaluation'
794
- const res = await this._client.call(
795
- 'com.atproto.repo.createRecord',
796
- undefined,
797
- { collection, ...params, record: { ...record, $type: collection } },
798
- { encoding: 'application/json', headers },
799
- )
800
- return res.data
801
- }
802
-
803
- async put(
804
- params: OmitKey<
805
- ComAtprotoRepoPutRecord.InputSchema,
806
- 'collection' | 'record'
807
- >,
808
- record: Un$Typed<OrgHypercertsClaimEvaluation.Record>,
809
- headers?: Record<string, string>,
810
- ): Promise<{ uri: string; cid: string }> {
811
- const collection = 'org.hypercerts.claim.evaluation'
812
- const res = await this._client.call(
813
- 'com.atproto.repo.putRecord',
814
- undefined,
815
- { collection, ...params, record: { ...record, $type: collection } },
816
- { encoding: 'application/json', headers },
817
- )
818
- return res.data
819
- }
820
-
821
- async delete(
822
- params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
823
- headers?: Record<string, string>,
824
- ): Promise<void> {
825
- await this._client.call(
826
- 'com.atproto.repo.deleteRecord',
827
- undefined,
828
- { collection: 'org.hypercerts.claim.evaluation', ...params },
829
- { headers },
830
- )
831
- }
832
- }
833
-
834
- export class OrgHypercertsClaimEvidenceRecord {
835
- _client: XrpcClient
836
-
837
- constructor(client: XrpcClient) {
838
- this._client = client
839
- }
840
-
841
- async list(
842
- params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
843
- ): Promise<{
844
- cursor?: string
845
- records: { uri: string; value: OrgHypercertsClaimEvidence.Record }[]
846
- }> {
847
- const res = await this._client.call('com.atproto.repo.listRecords', {
848
- collection: 'org.hypercerts.claim.evidence',
849
- ...params,
850
- })
851
- return res.data
852
- }
853
-
854
- async get(
855
- params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
856
- ): Promise<{
857
- uri: string
858
- cid: string
859
- value: OrgHypercertsClaimEvidence.Record
860
- }> {
861
- const res = await this._client.call('com.atproto.repo.getRecord', {
862
- collection: 'org.hypercerts.claim.evidence',
863
- ...params,
864
- })
865
- return res.data
866
- }
867
-
868
- async create(
869
- params: OmitKey<
870
- ComAtprotoRepoCreateRecord.InputSchema,
871
- 'collection' | 'record'
872
- >,
873
- record: Un$Typed<OrgHypercertsClaimEvidence.Record>,
874
- headers?: Record<string, string>,
875
- ): Promise<{ uri: string; cid: string }> {
876
- const collection = 'org.hypercerts.claim.evidence'
877
- const res = await this._client.call(
878
- 'com.atproto.repo.createRecord',
879
- undefined,
880
- { collection, ...params, record: { ...record, $type: collection } },
881
- { encoding: 'application/json', headers },
882
- )
883
- return res.data
884
- }
885
-
886
- async put(
887
- params: OmitKey<
888
- ComAtprotoRepoPutRecord.InputSchema,
889
- 'collection' | 'record'
890
- >,
891
- record: Un$Typed<OrgHypercertsClaimEvidence.Record>,
892
- headers?: Record<string, string>,
893
- ): Promise<{ uri: string; cid: string }> {
894
- const collection = 'org.hypercerts.claim.evidence'
895
- const res = await this._client.call(
896
- 'com.atproto.repo.putRecord',
897
- undefined,
898
- { collection, ...params, record: { ...record, $type: collection } },
899
- { encoding: 'application/json', headers },
900
- )
901
- return res.data
902
- }
903
-
904
- async delete(
905
- params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
906
- headers?: Record<string, string>,
907
- ): Promise<void> {
908
- await this._client.call(
909
- 'com.atproto.repo.deleteRecord',
910
- undefined,
911
- { collection: 'org.hypercerts.claim.evidence', ...params },
912
- { headers },
913
- )
914
- }
915
- }
916
-
917
- export class OrgHypercertsClaimMeasurementRecord {
918
- _client: XrpcClient
919
-
920
- constructor(client: XrpcClient) {
921
- this._client = client
922
- }
923
-
924
- async list(
925
- params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
926
- ): Promise<{
927
- cursor?: string
928
- records: { uri: string; value: OrgHypercertsClaimMeasurement.Record }[]
929
- }> {
930
- const res = await this._client.call('com.atproto.repo.listRecords', {
931
- collection: 'org.hypercerts.claim.measurement',
932
- ...params,
933
- })
934
- return res.data
935
- }
936
-
937
- async get(
938
- params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
939
- ): Promise<{
940
- uri: string
941
- cid: string
942
- value: OrgHypercertsClaimMeasurement.Record
943
- }> {
944
- const res = await this._client.call('com.atproto.repo.getRecord', {
945
- collection: 'org.hypercerts.claim.measurement',
946
- ...params,
947
- })
948
- return res.data
949
- }
950
-
951
- async create(
952
- params: OmitKey<
953
- ComAtprotoRepoCreateRecord.InputSchema,
954
- 'collection' | 'record'
955
- >,
956
- record: Un$Typed<OrgHypercertsClaimMeasurement.Record>,
957
- headers?: Record<string, string>,
958
- ): Promise<{ uri: string; cid: string }> {
959
- const collection = 'org.hypercerts.claim.measurement'
960
- const res = await this._client.call(
961
- 'com.atproto.repo.createRecord',
962
- undefined,
963
- { collection, ...params, record: { ...record, $type: collection } },
964
- { encoding: 'application/json', headers },
965
- )
966
- return res.data
967
- }
968
-
969
- async put(
970
- params: OmitKey<
971
- ComAtprotoRepoPutRecord.InputSchema,
972
- 'collection' | 'record'
973
- >,
974
- record: Un$Typed<OrgHypercertsClaimMeasurement.Record>,
975
- headers?: Record<string, string>,
976
- ): Promise<{ uri: string; cid: string }> {
977
- const collection = 'org.hypercerts.claim.measurement'
978
- const res = await this._client.call(
979
- 'com.atproto.repo.putRecord',
980
- undefined,
981
- { collection, ...params, record: { ...record, $type: collection } },
982
- { encoding: 'application/json', headers },
983
- )
984
- return res.data
985
- }
986
-
987
- async delete(
988
- params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
989
- headers?: Record<string, string>,
990
- ): Promise<void> {
991
- await this._client.call(
992
- 'com.atproto.repo.deleteRecord',
993
- undefined,
994
- { collection: 'org.hypercerts.claim.measurement', ...params },
995
- { headers },
996
- )
997
- }
998
- }
999
-
1000
- export class OrgHypercertsClaimProjectRecord {
1001
- _client: XrpcClient
1002
-
1003
- constructor(client: XrpcClient) {
1004
- this._client = client
1005
- }
1006
-
1007
- async list(
1008
- params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
1009
- ): Promise<{
1010
- cursor?: string
1011
- records: { uri: string; value: OrgHypercertsClaimProject.Record }[]
1012
- }> {
1013
- const res = await this._client.call('com.atproto.repo.listRecords', {
1014
- collection: 'org.hypercerts.claim.project',
1015
- ...params,
1016
- })
1017
- return res.data
1018
- }
1019
-
1020
- async get(
1021
- params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
1022
- ): Promise<{
1023
- uri: string
1024
- cid: string
1025
- value: OrgHypercertsClaimProject.Record
1026
- }> {
1027
- const res = await this._client.call('com.atproto.repo.getRecord', {
1028
- collection: 'org.hypercerts.claim.project',
1029
- ...params,
1030
- })
1031
- return res.data
1032
- }
1033
-
1034
- async create(
1035
- params: OmitKey<
1036
- ComAtprotoRepoCreateRecord.InputSchema,
1037
- 'collection' | 'record'
1038
- >,
1039
- record: Un$Typed<OrgHypercertsClaimProject.Record>,
1040
- headers?: Record<string, string>,
1041
- ): Promise<{ uri: string; cid: string }> {
1042
- const collection = 'org.hypercerts.claim.project'
1043
- const res = await this._client.call(
1044
- 'com.atproto.repo.createRecord',
1045
- undefined,
1046
- { collection, ...params, record: { ...record, $type: collection } },
1047
- { encoding: 'application/json', headers },
1048
- )
1049
- return res.data
1050
- }
1051
-
1052
- async put(
1053
- params: OmitKey<
1054
- ComAtprotoRepoPutRecord.InputSchema,
1055
- 'collection' | 'record'
1056
- >,
1057
- record: Un$Typed<OrgHypercertsClaimProject.Record>,
1058
- headers?: Record<string, string>,
1059
- ): Promise<{ uri: string; cid: string }> {
1060
- const collection = 'org.hypercerts.claim.project'
1061
- const res = await this._client.call(
1062
- 'com.atproto.repo.putRecord',
1063
- undefined,
1064
- { collection, ...params, record: { ...record, $type: collection } },
1065
- { encoding: 'application/json', headers },
1066
- )
1067
- return res.data
1068
- }
1069
-
1070
- async delete(
1071
- params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
1072
- headers?: Record<string, string>,
1073
- ): Promise<void> {
1074
- await this._client.call(
1075
- 'com.atproto.repo.deleteRecord',
1076
- undefined,
1077
- { collection: 'org.hypercerts.claim.project', ...params },
1078
- { headers },
1079
- )
1080
- }
1081
- }
1082
-
1083
- export class OrgHypercertsClaimRightsRecord {
1084
- _client: XrpcClient
1085
-
1086
- constructor(client: XrpcClient) {
1087
- this._client = client
1088
- }
1089
-
1090
- async list(
1091
- params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
1092
- ): Promise<{
1093
- cursor?: string
1094
- records: { uri: string; value: OrgHypercertsClaimRights.Record }[]
1095
- }> {
1096
- const res = await this._client.call('com.atproto.repo.listRecords', {
1097
- collection: 'org.hypercerts.claim.rights',
1098
- ...params,
1099
- })
1100
- return res.data
1101
- }
1102
-
1103
- async get(
1104
- params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
1105
- ): Promise<{
1106
- uri: string
1107
- cid: string
1108
- value: OrgHypercertsClaimRights.Record
1109
- }> {
1110
- const res = await this._client.call('com.atproto.repo.getRecord', {
1111
- collection: 'org.hypercerts.claim.rights',
1112
- ...params,
1113
- })
1114
- return res.data
1115
- }
1116
-
1117
- async create(
1118
- params: OmitKey<
1119
- ComAtprotoRepoCreateRecord.InputSchema,
1120
- 'collection' | 'record'
1121
- >,
1122
- record: Un$Typed<OrgHypercertsClaimRights.Record>,
1123
- headers?: Record<string, string>,
1124
- ): Promise<{ uri: string; cid: string }> {
1125
- const collection = 'org.hypercerts.claim.rights'
1126
- const res = await this._client.call(
1127
- 'com.atproto.repo.createRecord',
1128
- undefined,
1129
- { collection, ...params, record: { ...record, $type: collection } },
1130
- { encoding: 'application/json', headers },
1131
- )
1132
- return res.data
1133
- }
1134
-
1135
- async put(
1136
- params: OmitKey<
1137
- ComAtprotoRepoPutRecord.InputSchema,
1138
- 'collection' | 'record'
1139
- >,
1140
- record: Un$Typed<OrgHypercertsClaimRights.Record>,
1141
- headers?: Record<string, string>,
1142
- ): Promise<{ uri: string; cid: string }> {
1143
- const collection = 'org.hypercerts.claim.rights'
1144
- const res = await this._client.call(
1145
- 'com.atproto.repo.putRecord',
1146
- undefined,
1147
- { collection, ...params, record: { ...record, $type: collection } },
1148
- { encoding: 'application/json', headers },
1149
- )
1150
- return res.data
1151
- }
1152
-
1153
- async delete(
1154
- params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
1155
- headers?: Record<string, string>,
1156
- ): Promise<void> {
1157
- await this._client.call(
1158
- 'com.atproto.repo.deleteRecord',
1159
- undefined,
1160
- { collection: 'org.hypercerts.claim.rights', ...params },
1161
- { headers },
1162
- )
1163
- }
1164
- }
1165
-
1166
- export class OrgHypercertsFundingNS {
1167
- _client: XrpcClient
1168
- receipt: OrgHypercertsFundingReceiptRecord
1169
-
1170
- constructor(client: XrpcClient) {
1171
- this._client = client
1172
- this.receipt = new OrgHypercertsFundingReceiptRecord(client)
1173
- }
1174
- }
1175
-
1176
- export class OrgHypercertsFundingReceiptRecord {
1177
- _client: XrpcClient
1178
-
1179
- constructor(client: XrpcClient) {
1180
- this._client = client
1181
- }
1182
-
1183
- async list(
1184
- params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>,
1185
- ): Promise<{
1186
- cursor?: string
1187
- records: { uri: string; value: OrgHypercertsFundingReceipt.Record }[]
1188
- }> {
1189
- const res = await this._client.call('com.atproto.repo.listRecords', {
1190
- collection: 'org.hypercerts.funding.receipt',
1191
- ...params,
1192
- })
1193
- return res.data
1194
- }
1195
-
1196
- async get(
1197
- params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>,
1198
- ): Promise<{
1199
- uri: string
1200
- cid: string
1201
- value: OrgHypercertsFundingReceipt.Record
1202
- }> {
1203
- const res = await this._client.call('com.atproto.repo.getRecord', {
1204
- collection: 'org.hypercerts.funding.receipt',
1205
- ...params,
1206
- })
1207
- return res.data
1208
- }
1209
-
1210
- async create(
1211
- params: OmitKey<
1212
- ComAtprotoRepoCreateRecord.InputSchema,
1213
- 'collection' | 'record'
1214
- >,
1215
- record: Un$Typed<OrgHypercertsFundingReceipt.Record>,
1216
- headers?: Record<string, string>,
1217
- ): Promise<{ uri: string; cid: string }> {
1218
- const collection = 'org.hypercerts.funding.receipt'
1219
- const res = await this._client.call(
1220
- 'com.atproto.repo.createRecord',
1221
- undefined,
1222
- { collection, ...params, record: { ...record, $type: collection } },
1223
- { encoding: 'application/json', headers },
1224
- )
1225
- return res.data
1226
- }
1227
-
1228
- async put(
1229
- params: OmitKey<
1230
- ComAtprotoRepoPutRecord.InputSchema,
1231
- 'collection' | 'record'
1232
- >,
1233
- record: Un$Typed<OrgHypercertsFundingReceipt.Record>,
1234
- headers?: Record<string, string>,
1235
- ): Promise<{ uri: string; cid: string }> {
1236
- const collection = 'org.hypercerts.funding.receipt'
1237
- const res = await this._client.call(
1238
- 'com.atproto.repo.putRecord',
1239
- undefined,
1240
- { collection, ...params, record: { ...record, $type: collection } },
1241
- { encoding: 'application/json', headers },
1242
- )
1243
- return res.data
1244
- }
1245
-
1246
- async delete(
1247
- params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>,
1248
- headers?: Record<string, string>,
1249
- ): Promise<void> {
1250
- await this._client.call(
1251
- 'com.atproto.repo.deleteRecord',
1252
- undefined,
1253
- { collection: 'org.hypercerts.funding.receipt', ...params },
1254
- { headers },
1255
- )
1256
- }
1257
- }