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.
- package/CHANGELOG.md +139 -0
- package/README.md +48 -2
- package/dist/auth/app-key.d.ts +8 -0
- package/dist/auth/app-key.js +95 -0
- package/dist/auth/index.d.ts +192 -0
- package/dist/auth/index.js +230 -0
- package/dist/auth/placement.gen.d.ts +1 -0
- package/dist/auth/placement.gen.js +50 -0
- package/dist/catalog/catalog.gen.js +2161 -681
- package/dist/connect.js +2 -1
- package/dist/generated/index.d.ts +61 -0
- package/dist/generated/index.js +116 -0
- package/dist/generated/lexicons.d.ts +3689 -1449
- package/dist/generated/lexicons.js +1237 -42
- package/dist/generated/nsid.d.ts +23 -1
- package/dist/generated/nsid.js +23 -19
- package/dist/generated/nsid.json +23 -19
- package/dist/generated/records.d.ts +28 -26
- package/dist/generated/types/pub/techne/draft/commons/getVersions.d.ts +3 -3
- package/dist/generated/types/pub/techne/draft/commons/runChain.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/credential.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/credentialRevocation.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.d.ts +5 -0
- package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.js +7 -0
- package/dist/generated/types/pub/techne/draft/permissioned/getRecord.d.ts +2 -1
- package/dist/generated/types/pub/techne/draft/permissioned/listChanges.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +2 -2
- package/dist/generated/types/pub/techne/draft/provenance.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/publisher.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/query/composeRecords.d.ts +152 -0
- package/dist/generated/types/pub/techne/draft/query/composeRecords.js +55 -0
- package/dist/generated/types/pub/techne/draft/query/getRecords.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/query/listRecords.d.ts +0 -4
- package/dist/generated/types/pub/techne/draft/query/listRejections.d.ts +2 -2
- package/dist/generated/types/pub/techne/draft/registry/blockIndex.d.ts +42 -0
- package/dist/generated/types/pub/techne/draft/registry/blockIndex.js +34 -0
- package/dist/generated/types/pub/techne/draft/registry/defs.d.ts +112 -0
- package/dist/generated/types/pub/techne/draft/registry/defs.js +32 -0
- package/dist/generated/types/pub/techne/draft/registry/getType.d.ts +23 -0
- package/dist/generated/types/pub/techne/draft/registry/getType.js +20 -0
- package/dist/generated/types/pub/techne/draft/registry/getTypeRequest.d.ts +23 -0
- package/dist/generated/types/pub/techne/draft/registry/getTypeRequest.js +20 -0
- package/dist/generated/types/pub/techne/draft/registry/listTypeRequests.d.ts +27 -0
- package/dist/generated/types/pub/techne/draft/registry/listTypeRequests.js +7 -0
- package/dist/generated/types/pub/techne/draft/registry/listTypes.d.ts +34 -0
- package/dist/generated/types/pub/techne/draft/registry/listTypes.js +7 -0
- package/dist/generated/types/pub/techne/draft/registry/publishType.d.ts +77 -0
- package/dist/generated/types/pub/techne/draft/registry/publishType.js +83 -0
- package/dist/generated/types/pub/techne/draft/registry/purgeType.d.ts +39 -0
- package/dist/generated/types/pub/techne/draft/registry/purgeType.js +34 -0
- package/dist/generated/types/pub/techne/draft/registry/requestType.d.ts +53 -0
- package/dist/generated/types/pub/techne/draft/registry/requestType.js +76 -0
- package/dist/generated/types/pub/techne/draft/registry/typeRequest.d.ts +22 -0
- package/dist/generated/types/pub/techne/draft/registry/typeRequest.js +12 -0
- package/dist/generated/types/pub/techne/draft/sync/indexRecord.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/verdict.d.ts +2 -2
- package/dist/platform.d.ts +14 -0
- package/dist/platform.js +16 -0
- package/dist/put/index.js +17 -7
- package/dist/query/index.d.ts +1 -10
- package/dist/query/index.js +1 -1
- package/dist/types-cli/emit.d.ts +20 -0
- package/dist/types-cli/emit.js +217 -0
- package/dist/types-cli/main.d.ts +5 -0
- package/dist/types-cli/main.js +63 -0
- package/dist/types-cli/resolve.d.ts +26 -0
- package/dist/types-cli/resolve.js +99 -0
- package/dist/wasm/index.d.ts +20 -3
- package/dist/wasm/index.js +6 -1
- package/dist/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +26425 -25985
- package/package.json +23 -6
package/dist/connect.js
CHANGED
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import { AtpBaseClient } from './generated/index.js';
|
|
2
|
+
import { appviewRef } from './platform.js';
|
|
2
3
|
/** The clients for `session`, with `platform` the platform's service DID: its `did:plc` (techne P13.6), whose document names the `#atproto_appview` endpoint, so a host move changes nothing here. */
|
|
3
4
|
export function connect(session, platform) {
|
|
4
5
|
const proxied = new AtpBaseClient(session.fetchHandler);
|
|
5
|
-
proxied.setHeader('atproto-proxy',
|
|
6
|
+
proxied.setHeader('atproto-proxy', appviewRef(platform));
|
|
6
7
|
return { did: session.did, pds: new AtpBaseClient(session.fetchHandler), platform: proxied };
|
|
7
8
|
}
|
|
8
9
|
/**
|
|
@@ -93,6 +93,7 @@ import * as PubTechneDraftPresence from './types/pub/techne/draft/presence.js';
|
|
|
93
93
|
import * as PubTechneDraftProfile from './types/pub/techne/draft/profile.js';
|
|
94
94
|
import * as PubTechneDraftProvenance from './types/pub/techne/draft/provenance.js';
|
|
95
95
|
import * as PubTechneDraftPublisher from './types/pub/techne/draft/publisher.js';
|
|
96
|
+
import * as PubTechneDraftQueryComposeRecords from './types/pub/techne/draft/query/composeRecords.js';
|
|
96
97
|
import * as PubTechneDraftQueryCountRecords from './types/pub/techne/draft/query/countRecords.js';
|
|
97
98
|
import * as PubTechneDraftQueryGetRecords from './types/pub/techne/draft/query/getRecords.js';
|
|
98
99
|
import * as PubTechneDraftQueryListRecords from './types/pub/techne/draft/query/listRecords.js';
|
|
@@ -100,6 +101,15 @@ import * as PubTechneDraftQueryListRejections from './types/pub/techne/draft/que
|
|
|
100
101
|
import * as PubTechneDraftQuestionSet from './types/pub/techne/draft/questionSet.js';
|
|
101
102
|
import * as PubTechneDraftReceipt from './types/pub/techne/draft/receipt.js';
|
|
102
103
|
import * as PubTechneDraftReflection from './types/pub/techne/draft/reflection.js';
|
|
104
|
+
import * as PubTechneDraftRegistryBlockIndex from './types/pub/techne/draft/registry/blockIndex.js';
|
|
105
|
+
import * as PubTechneDraftRegistryGetType from './types/pub/techne/draft/registry/getType.js';
|
|
106
|
+
import * as PubTechneDraftRegistryGetTypeRequest from './types/pub/techne/draft/registry/getTypeRequest.js';
|
|
107
|
+
import * as PubTechneDraftRegistryListTypeRequests from './types/pub/techne/draft/registry/listTypeRequests.js';
|
|
108
|
+
import * as PubTechneDraftRegistryListTypes from './types/pub/techne/draft/registry/listTypes.js';
|
|
109
|
+
import * as PubTechneDraftRegistryPublishType from './types/pub/techne/draft/registry/publishType.js';
|
|
110
|
+
import * as PubTechneDraftRegistryPurgeType from './types/pub/techne/draft/registry/purgeType.js';
|
|
111
|
+
import * as PubTechneDraftRegistryRequestType from './types/pub/techne/draft/registry/requestType.js';
|
|
112
|
+
import * as PubTechneDraftRegistryTypeRequest from './types/pub/techne/draft/registry/typeRequest.js';
|
|
103
113
|
import * as PubTechneDraftRetirement from './types/pub/techne/draft/retirement.js';
|
|
104
114
|
import * as PubTechneDraftRsvpNote from './types/pub/techne/draft/rsvpNote.js';
|
|
105
115
|
import * as PubTechneDraftSameAs from './types/pub/techne/draft/sameAs.js';
|
|
@@ -235,6 +245,7 @@ export * as PubTechneDraftPresence from './types/pub/techne/draft/presence.js';
|
|
|
235
245
|
export * as PubTechneDraftProfile from './types/pub/techne/draft/profile.js';
|
|
236
246
|
export * as PubTechneDraftProvenance from './types/pub/techne/draft/provenance.js';
|
|
237
247
|
export * as PubTechneDraftPublisher from './types/pub/techne/draft/publisher.js';
|
|
248
|
+
export * as PubTechneDraftQueryComposeRecords from './types/pub/techne/draft/query/composeRecords.js';
|
|
238
249
|
export * as PubTechneDraftQueryCountRecords from './types/pub/techne/draft/query/countRecords.js';
|
|
239
250
|
export * as PubTechneDraftQueryGetRecords from './types/pub/techne/draft/query/getRecords.js';
|
|
240
251
|
export * as PubTechneDraftQueryListRecords from './types/pub/techne/draft/query/listRecords.js';
|
|
@@ -242,6 +253,16 @@ export * as PubTechneDraftQueryListRejections from './types/pub/techne/draft/que
|
|
|
242
253
|
export * as PubTechneDraftQuestionSet from './types/pub/techne/draft/questionSet.js';
|
|
243
254
|
export * as PubTechneDraftReceipt from './types/pub/techne/draft/receipt.js';
|
|
244
255
|
export * as PubTechneDraftReflection from './types/pub/techne/draft/reflection.js';
|
|
256
|
+
export * as PubTechneDraftRegistryBlockIndex from './types/pub/techne/draft/registry/blockIndex.js';
|
|
257
|
+
export * as PubTechneDraftRegistryDefs from './types/pub/techne/draft/registry/defs.js';
|
|
258
|
+
export * as PubTechneDraftRegistryGetType from './types/pub/techne/draft/registry/getType.js';
|
|
259
|
+
export * as PubTechneDraftRegistryGetTypeRequest from './types/pub/techne/draft/registry/getTypeRequest.js';
|
|
260
|
+
export * as PubTechneDraftRegistryListTypeRequests from './types/pub/techne/draft/registry/listTypeRequests.js';
|
|
261
|
+
export * as PubTechneDraftRegistryListTypes from './types/pub/techne/draft/registry/listTypes.js';
|
|
262
|
+
export * as PubTechneDraftRegistryPublishType from './types/pub/techne/draft/registry/publishType.js';
|
|
263
|
+
export * as PubTechneDraftRegistryPurgeType from './types/pub/techne/draft/registry/purgeType.js';
|
|
264
|
+
export * as PubTechneDraftRegistryRequestType from './types/pub/techne/draft/registry/requestType.js';
|
|
265
|
+
export * as PubTechneDraftRegistryTypeRequest from './types/pub/techne/draft/registry/typeRequest.js';
|
|
245
266
|
export * as PubTechneDraftRetirement from './types/pub/techne/draft/retirement.js';
|
|
246
267
|
export * as PubTechneDraftRsvpNote from './types/pub/techne/draft/rsvpNote.js';
|
|
247
268
|
export * as PubTechneDraftSameAs from './types/pub/techne/draft/sameAs.js';
|
|
@@ -502,6 +523,7 @@ export declare class PubTechneDraftNS {
|
|
|
502
523
|
market: PubTechneDraftMarketNS;
|
|
503
524
|
permissioned: PubTechneDraftPermissionedNS;
|
|
504
525
|
query: PubTechneDraftQueryNS;
|
|
526
|
+
registry: PubTechneDraftRegistryNS;
|
|
505
527
|
scraper: PubTechneDraftScraperNS;
|
|
506
528
|
sync: PubTechneDraftSyncNS;
|
|
507
529
|
constructor(client: XrpcClient);
|
|
@@ -778,11 +800,50 @@ export declare class PubTechneDraftPermissionedNS {
|
|
|
778
800
|
export declare class PubTechneDraftQueryNS {
|
|
779
801
|
_client: XrpcClient;
|
|
780
802
|
constructor(client: XrpcClient);
|
|
803
|
+
composeRecords(data?: PubTechneDraftQueryComposeRecords.InputSchema, opts?: PubTechneDraftQueryComposeRecords.CallOptions): Promise<PubTechneDraftQueryComposeRecords.Response>;
|
|
781
804
|
countRecords(params?: PubTechneDraftQueryCountRecords.QueryParams, opts?: PubTechneDraftQueryCountRecords.CallOptions): Promise<PubTechneDraftQueryCountRecords.Response>;
|
|
782
805
|
getRecords(params?: PubTechneDraftQueryGetRecords.QueryParams, opts?: PubTechneDraftQueryGetRecords.CallOptions): Promise<PubTechneDraftQueryGetRecords.Response>;
|
|
783
806
|
listRecords(params?: PubTechneDraftQueryListRecords.QueryParams, opts?: PubTechneDraftQueryListRecords.CallOptions): Promise<PubTechneDraftQueryListRecords.Response>;
|
|
784
807
|
listRejections(params?: PubTechneDraftQueryListRejections.QueryParams, opts?: PubTechneDraftQueryListRejections.CallOptions): Promise<PubTechneDraftQueryListRejections.Response>;
|
|
785
808
|
}
|
|
809
|
+
export declare class PubTechneDraftRegistryNS {
|
|
810
|
+
_client: XrpcClient;
|
|
811
|
+
typeRequest: PubTechneDraftRegistryTypeRequestRecord;
|
|
812
|
+
constructor(client: XrpcClient);
|
|
813
|
+
blockIndex(data?: PubTechneDraftRegistryBlockIndex.InputSchema, opts?: PubTechneDraftRegistryBlockIndex.CallOptions): Promise<PubTechneDraftRegistryBlockIndex.Response>;
|
|
814
|
+
getType(params?: PubTechneDraftRegistryGetType.QueryParams, opts?: PubTechneDraftRegistryGetType.CallOptions): Promise<PubTechneDraftRegistryGetType.Response>;
|
|
815
|
+
getTypeRequest(params?: PubTechneDraftRegistryGetTypeRequest.QueryParams, opts?: PubTechneDraftRegistryGetTypeRequest.CallOptions): Promise<PubTechneDraftRegistryGetTypeRequest.Response>;
|
|
816
|
+
listTypeRequests(params?: PubTechneDraftRegistryListTypeRequests.QueryParams, opts?: PubTechneDraftRegistryListTypeRequests.CallOptions): Promise<PubTechneDraftRegistryListTypeRequests.Response>;
|
|
817
|
+
listTypes(params?: PubTechneDraftRegistryListTypes.QueryParams, opts?: PubTechneDraftRegistryListTypes.CallOptions): Promise<PubTechneDraftRegistryListTypes.Response>;
|
|
818
|
+
publishType(data?: PubTechneDraftRegistryPublishType.InputSchema, opts?: PubTechneDraftRegistryPublishType.CallOptions): Promise<PubTechneDraftRegistryPublishType.Response>;
|
|
819
|
+
purgeType(data?: PubTechneDraftRegistryPurgeType.InputSchema, opts?: PubTechneDraftRegistryPurgeType.CallOptions): Promise<PubTechneDraftRegistryPurgeType.Response>;
|
|
820
|
+
requestType(data?: PubTechneDraftRegistryRequestType.InputSchema, opts?: PubTechneDraftRegistryRequestType.CallOptions): Promise<PubTechneDraftRegistryRequestType.Response>;
|
|
821
|
+
}
|
|
822
|
+
export declare class PubTechneDraftRegistryTypeRequestRecord {
|
|
823
|
+
_client: XrpcClient;
|
|
824
|
+
constructor(client: XrpcClient);
|
|
825
|
+
list(params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
|
|
826
|
+
cursor?: string;
|
|
827
|
+
records: {
|
|
828
|
+
uri: string;
|
|
829
|
+
value: PubTechneDraftRegistryTypeRequest.Record;
|
|
830
|
+
}[];
|
|
831
|
+
}>;
|
|
832
|
+
get(params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
|
|
833
|
+
uri: string;
|
|
834
|
+
cid: string;
|
|
835
|
+
value: PubTechneDraftRegistryTypeRequest.Record;
|
|
836
|
+
}>;
|
|
837
|
+
create(params: OmitKey<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftRegistryTypeRequest.Record>, headers?: Record<string, string>): Promise<{
|
|
838
|
+
uri: string;
|
|
839
|
+
cid: string;
|
|
840
|
+
}>;
|
|
841
|
+
put(params: OmitKey<ComAtprotoRepoPutRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftRegistryTypeRequest.Record>, headers?: Record<string, string>): Promise<{
|
|
842
|
+
uri: string;
|
|
843
|
+
cid: string;
|
|
844
|
+
}>;
|
|
845
|
+
delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
|
846
|
+
}
|
|
786
847
|
export declare class PubTechneDraftScraperNS {
|
|
787
848
|
_client: XrpcClient;
|
|
788
849
|
cursor: PubTechneDraftScraperCursorRecord;
|
package/dist/generated/index.js
CHANGED
|
@@ -39,10 +39,17 @@ import * as PubTechneDraftPermissionedListChanges from './types/pub/techne/draft
|
|
|
39
39
|
import * as PubTechneDraftPermissionedListRecords from './types/pub/techne/draft/permissioned/listRecords.js';
|
|
40
40
|
import * as PubTechneDraftPermissionedPutRecord from './types/pub/techne/draft/permissioned/putRecord.js';
|
|
41
41
|
import * as PubTechneDraftPermissionedPutRecords from './types/pub/techne/draft/permissioned/putRecords.js';
|
|
42
|
+
import * as PubTechneDraftQueryComposeRecords from './types/pub/techne/draft/query/composeRecords.js';
|
|
42
43
|
import * as PubTechneDraftQueryCountRecords from './types/pub/techne/draft/query/countRecords.js';
|
|
43
44
|
import * as PubTechneDraftQueryGetRecords from './types/pub/techne/draft/query/getRecords.js';
|
|
44
45
|
import * as PubTechneDraftQueryListRecords from './types/pub/techne/draft/query/listRecords.js';
|
|
45
46
|
import * as PubTechneDraftQueryListRejections from './types/pub/techne/draft/query/listRejections.js';
|
|
47
|
+
import * as PubTechneDraftRegistryBlockIndex from './types/pub/techne/draft/registry/blockIndex.js';
|
|
48
|
+
import * as PubTechneDraftRegistryGetType from './types/pub/techne/draft/registry/getType.js';
|
|
49
|
+
import * as PubTechneDraftRegistryGetTypeRequest from './types/pub/techne/draft/registry/getTypeRequest.js';
|
|
50
|
+
import * as PubTechneDraftRegistryPublishType from './types/pub/techne/draft/registry/publishType.js';
|
|
51
|
+
import * as PubTechneDraftRegistryPurgeType from './types/pub/techne/draft/registry/purgeType.js';
|
|
52
|
+
import * as PubTechneDraftRegistryRequestType from './types/pub/techne/draft/registry/requestType.js';
|
|
46
53
|
import * as PubTechneDraftSyncIndexRecord from './types/pub/techne/draft/sync/indexRecord.js';
|
|
47
54
|
import * as SocialSceniusApproveAppAccess from './types/social/scenius/approveAppAccess.js';
|
|
48
55
|
import * as SocialSceniusCreateCirclePost from './types/social/scenius/createCirclePost.js';
|
|
@@ -163,6 +170,7 @@ export * as PubTechneDraftPresence from './types/pub/techne/draft/presence.js';
|
|
|
163
170
|
export * as PubTechneDraftProfile from './types/pub/techne/draft/profile.js';
|
|
164
171
|
export * as PubTechneDraftProvenance from './types/pub/techne/draft/provenance.js';
|
|
165
172
|
export * as PubTechneDraftPublisher from './types/pub/techne/draft/publisher.js';
|
|
173
|
+
export * as PubTechneDraftQueryComposeRecords from './types/pub/techne/draft/query/composeRecords.js';
|
|
166
174
|
export * as PubTechneDraftQueryCountRecords from './types/pub/techne/draft/query/countRecords.js';
|
|
167
175
|
export * as PubTechneDraftQueryGetRecords from './types/pub/techne/draft/query/getRecords.js';
|
|
168
176
|
export * as PubTechneDraftQueryListRecords from './types/pub/techne/draft/query/listRecords.js';
|
|
@@ -170,6 +178,16 @@ export * as PubTechneDraftQueryListRejections from './types/pub/techne/draft/que
|
|
|
170
178
|
export * as PubTechneDraftQuestionSet from './types/pub/techne/draft/questionSet.js';
|
|
171
179
|
export * as PubTechneDraftReceipt from './types/pub/techne/draft/receipt.js';
|
|
172
180
|
export * as PubTechneDraftReflection from './types/pub/techne/draft/reflection.js';
|
|
181
|
+
export * as PubTechneDraftRegistryBlockIndex from './types/pub/techne/draft/registry/blockIndex.js';
|
|
182
|
+
export * as PubTechneDraftRegistryDefs from './types/pub/techne/draft/registry/defs.js';
|
|
183
|
+
export * as PubTechneDraftRegistryGetType from './types/pub/techne/draft/registry/getType.js';
|
|
184
|
+
export * as PubTechneDraftRegistryGetTypeRequest from './types/pub/techne/draft/registry/getTypeRequest.js';
|
|
185
|
+
export * as PubTechneDraftRegistryListTypeRequests from './types/pub/techne/draft/registry/listTypeRequests.js';
|
|
186
|
+
export * as PubTechneDraftRegistryListTypes from './types/pub/techne/draft/registry/listTypes.js';
|
|
187
|
+
export * as PubTechneDraftRegistryPublishType from './types/pub/techne/draft/registry/publishType.js';
|
|
188
|
+
export * as PubTechneDraftRegistryPurgeType from './types/pub/techne/draft/registry/purgeType.js';
|
|
189
|
+
export * as PubTechneDraftRegistryRequestType from './types/pub/techne/draft/registry/requestType.js';
|
|
190
|
+
export * as PubTechneDraftRegistryTypeRequest from './types/pub/techne/draft/registry/typeRequest.js';
|
|
173
191
|
export * as PubTechneDraftRetirement from './types/pub/techne/draft/retirement.js';
|
|
174
192
|
export * as PubTechneDraftRsvpNote from './types/pub/techne/draft/rsvpNote.js';
|
|
175
193
|
export * as PubTechneDraftSameAs from './types/pub/techne/draft/sameAs.js';
|
|
@@ -536,6 +554,7 @@ export class PubTechneDraftNS {
|
|
|
536
554
|
market;
|
|
537
555
|
permissioned;
|
|
538
556
|
query;
|
|
557
|
+
registry;
|
|
539
558
|
scraper;
|
|
540
559
|
sync;
|
|
541
560
|
constructor(client) {
|
|
@@ -548,6 +567,7 @@ export class PubTechneDraftNS {
|
|
|
548
567
|
this.market = new PubTechneDraftMarketNS(client);
|
|
549
568
|
this.permissioned = new PubTechneDraftPermissionedNS(client);
|
|
550
569
|
this.query = new PubTechneDraftQueryNS(client);
|
|
570
|
+
this.registry = new PubTechneDraftRegistryNS(client);
|
|
551
571
|
this.scraper = new PubTechneDraftScraperNS(client);
|
|
552
572
|
this.sync = new PubTechneDraftSyncNS(client);
|
|
553
573
|
this.accessRule = new PubTechneDraftAccessRuleRecord(client);
|
|
@@ -1167,6 +1187,13 @@ export class PubTechneDraftQueryNS {
|
|
|
1167
1187
|
constructor(client) {
|
|
1168
1188
|
this._client = client;
|
|
1169
1189
|
}
|
|
1190
|
+
composeRecords(data, opts) {
|
|
1191
|
+
return this._client
|
|
1192
|
+
.call('pub.techne.draft.query.composeRecords', opts?.qp, data, opts)
|
|
1193
|
+
.catch((e) => {
|
|
1194
|
+
throw PubTechneDraftQueryComposeRecords.toKnownErr(e);
|
|
1195
|
+
});
|
|
1196
|
+
}
|
|
1170
1197
|
countRecords(params, opts) {
|
|
1171
1198
|
return this._client
|
|
1172
1199
|
.call('pub.techne.draft.query.countRecords', params, undefined, opts)
|
|
@@ -1196,6 +1223,95 @@ export class PubTechneDraftQueryNS {
|
|
|
1196
1223
|
});
|
|
1197
1224
|
}
|
|
1198
1225
|
}
|
|
1226
|
+
export class PubTechneDraftRegistryNS {
|
|
1227
|
+
_client;
|
|
1228
|
+
typeRequest;
|
|
1229
|
+
constructor(client) {
|
|
1230
|
+
this._client = client;
|
|
1231
|
+
this.typeRequest = new PubTechneDraftRegistryTypeRequestRecord(client);
|
|
1232
|
+
}
|
|
1233
|
+
blockIndex(data, opts) {
|
|
1234
|
+
return this._client
|
|
1235
|
+
.call('pub.techne.draft.registry.blockIndex', opts?.qp, data, opts)
|
|
1236
|
+
.catch((e) => {
|
|
1237
|
+
throw PubTechneDraftRegistryBlockIndex.toKnownErr(e);
|
|
1238
|
+
});
|
|
1239
|
+
}
|
|
1240
|
+
getType(params, opts) {
|
|
1241
|
+
return this._client
|
|
1242
|
+
.call('pub.techne.draft.registry.getType', params, undefined, opts)
|
|
1243
|
+
.catch((e) => {
|
|
1244
|
+
throw PubTechneDraftRegistryGetType.toKnownErr(e);
|
|
1245
|
+
});
|
|
1246
|
+
}
|
|
1247
|
+
getTypeRequest(params, opts) {
|
|
1248
|
+
return this._client
|
|
1249
|
+
.call('pub.techne.draft.registry.getTypeRequest', params, undefined, opts)
|
|
1250
|
+
.catch((e) => {
|
|
1251
|
+
throw PubTechneDraftRegistryGetTypeRequest.toKnownErr(e);
|
|
1252
|
+
});
|
|
1253
|
+
}
|
|
1254
|
+
listTypeRequests(params, opts) {
|
|
1255
|
+
return this._client.call('pub.techne.draft.registry.listTypeRequests', params, undefined, opts);
|
|
1256
|
+
}
|
|
1257
|
+
listTypes(params, opts) {
|
|
1258
|
+
return this._client.call('pub.techne.draft.registry.listTypes', params, undefined, opts);
|
|
1259
|
+
}
|
|
1260
|
+
publishType(data, opts) {
|
|
1261
|
+
return this._client
|
|
1262
|
+
.call('pub.techne.draft.registry.publishType', opts?.qp, data, opts)
|
|
1263
|
+
.catch((e) => {
|
|
1264
|
+
throw PubTechneDraftRegistryPublishType.toKnownErr(e);
|
|
1265
|
+
});
|
|
1266
|
+
}
|
|
1267
|
+
purgeType(data, opts) {
|
|
1268
|
+
return this._client
|
|
1269
|
+
.call('pub.techne.draft.registry.purgeType', opts?.qp, data, opts)
|
|
1270
|
+
.catch((e) => {
|
|
1271
|
+
throw PubTechneDraftRegistryPurgeType.toKnownErr(e);
|
|
1272
|
+
});
|
|
1273
|
+
}
|
|
1274
|
+
requestType(data, opts) {
|
|
1275
|
+
return this._client
|
|
1276
|
+
.call('pub.techne.draft.registry.requestType', opts?.qp, data, opts)
|
|
1277
|
+
.catch((e) => {
|
|
1278
|
+
throw PubTechneDraftRegistryRequestType.toKnownErr(e);
|
|
1279
|
+
});
|
|
1280
|
+
}
|
|
1281
|
+
}
|
|
1282
|
+
export class PubTechneDraftRegistryTypeRequestRecord {
|
|
1283
|
+
_client;
|
|
1284
|
+
constructor(client) {
|
|
1285
|
+
this._client = client;
|
|
1286
|
+
}
|
|
1287
|
+
async list(params) {
|
|
1288
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
1289
|
+
collection: 'pub.techne.draft.registry.typeRequest',
|
|
1290
|
+
...params,
|
|
1291
|
+
});
|
|
1292
|
+
return res.data;
|
|
1293
|
+
}
|
|
1294
|
+
async get(params) {
|
|
1295
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
1296
|
+
collection: 'pub.techne.draft.registry.typeRequest',
|
|
1297
|
+
...params,
|
|
1298
|
+
});
|
|
1299
|
+
return res.data;
|
|
1300
|
+
}
|
|
1301
|
+
async create(params, record, headers) {
|
|
1302
|
+
const collection = 'pub.techne.draft.registry.typeRequest';
|
|
1303
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1304
|
+
return res.data;
|
|
1305
|
+
}
|
|
1306
|
+
async put(params, record, headers) {
|
|
1307
|
+
const collection = 'pub.techne.draft.registry.typeRequest';
|
|
1308
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
1309
|
+
return res.data;
|
|
1310
|
+
}
|
|
1311
|
+
async delete(params, headers) {
|
|
1312
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.registry.typeRequest', ...params }, { headers });
|
|
1313
|
+
}
|
|
1314
|
+
}
|
|
1199
1315
|
export class PubTechneDraftScraperNS {
|
|
1200
1316
|
_client;
|
|
1201
1317
|
cursor;
|