techne-sdk 0.5.0 → 0.7.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 +54 -0
- package/README.md +12 -3
- package/dist/auth/app-key.d.ts +5 -0
- package/dist/auth/app-key.js +7 -0
- package/dist/auth/index.d.ts +19 -11
- package/dist/auth/index.js +26 -16
- package/dist/auth/placement.gen.d.ts +1 -1
- package/dist/auth/placement.gen.js +4 -0
- package/dist/catalog/catalog.gen.d.ts +2 -2
- package/dist/catalog/catalog.gen.js +1503 -133
- package/dist/connect.d.ts +18 -3
- package/dist/connect.js +2 -0
- package/dist/generated/index.d.ts +132 -0
- package/dist/generated/index.js +179 -0
- package/dist/generated/lexicons.d.ts +1138 -156
- package/dist/generated/lexicons.js +610 -63
- package/dist/generated/nsid.d.ts +17 -1
- package/dist/generated/nsid.js +17 -1
- package/dist/generated/nsid.json +17 -1
- package/dist/generated/records.d.ts +148 -140
- package/dist/generated/types/app/certified/defs.d.ts +20 -0
- package/dist/generated/types/app/certified/defs.js +18 -0
- package/dist/generated/types/app/certified/signature/defs.d.ts +29 -0
- package/dist/generated/types/app/certified/signature/defs.js +18 -0
- package/dist/generated/types/org/hypercerts/funding/receipt.d.ts +56 -0
- package/dist/generated/types/org/hypercerts/funding/receipt.js +19 -0
- package/dist/generated/types/pub/techne/draft/financials.d.ts +26 -0
- package/dist/generated/types/pub/techne/draft/financials.js +12 -0
- package/dist/generated/types/pub/techne/draft/identity/createCollective.d.ts +5 -0
- package/dist/generated/types/pub/techne/draft/identity/createCollective.js +7 -0
- package/dist/generated/types/pub/techne/draft/identity/defs.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/identity/manageMethods.d.ts +4 -1
- package/dist/generated/types/pub/techne/draft/identity/writeAsCollective.d.ts +51 -0
- package/dist/generated/types/pub/techne/draft/identity/writeAsCollective.js +55 -0
- package/dist/generated/types/pub/techne/draft/org.d.ts +55 -25
- package/dist/generated/types/pub/techne/draft/org.js +12 -5
- package/dist/generated/types/pub/techne/draft/orgAtPlace.d.ts +17 -0
- package/dist/generated/types/pub/techne/draft/orgAtPlace.js +12 -0
- package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/statement.d.ts +19 -0
- package/dist/generated/types/pub/techne/draft/statement.js +12 -0
- package/dist/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +16996 -16913
- package/package.json +3 -2
package/dist/connect.d.ts
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* techne-sdk/connect — the SDK's client over one signed-in session (techne P13.3): two clients, the
|
|
3
|
-
* reads (`query`, `get`, `versions` and their options forms, SDK1) and the
|
|
3
|
+
* reads (`query`, `get`, `versions` and their options forms, SDK1) and the writes (`put`, and
|
|
4
|
+
* `writeAsCollective` for writing as a collective the user may write as).
|
|
4
5
|
*
|
|
5
6
|
* Everything goes through the user's own PDS with the user's own session (an atproto OAuth session's
|
|
6
7
|
* `did` and `fetchHandler`, or anything shaped like it). `pds` calls the PDS itself (the user's repo).
|
|
@@ -16,7 +17,7 @@
|
|
|
16
17
|
* in to yet uses {@link connectAnonymous}: public reads straight from the platform, no write.
|
|
17
18
|
*/
|
|
18
19
|
import type { FetchHandler } from '@atproto/xrpc';
|
|
19
|
-
import { AtpBaseClient } from './generated/index.js';
|
|
20
|
+
import { AtpBaseClient, type PubTechneDraftIdentityWriteAsCollective } from './generated/index.js';
|
|
20
21
|
import type { IncludeOf, ItemFor, RecordOfQuery, RecordOfUri } from './item.js';
|
|
21
22
|
import type { Query } from './query/index.js';
|
|
22
23
|
import type { PutRecord, PutResult } from './put/index.js';
|
|
@@ -57,7 +58,11 @@ export interface ReadOptions<K extends readonly unknown[], R> {
|
|
|
57
58
|
queryKey: K;
|
|
58
59
|
queryFn: () => Promise<R>;
|
|
59
60
|
}
|
|
60
|
-
/**
|
|
61
|
+
/** {@link Techne.writeAsCollective}'s input: com.atproto.repo.applyWrites's, with `repo` the collective's DID. */
|
|
62
|
+
export type WriteAsCollectiveInput = PubTechneDraftIdentityWriteAsCollective.InputSchema;
|
|
63
|
+
/** {@link Techne.writeAsCollective}'s answer: com.atproto.repo.applyWrites's (`commit`, `results`). */
|
|
64
|
+
export type WriteAsCollectiveOutput = PubTechneDraftIdentityWriteAsCollective.OutputSchema;
|
|
65
|
+
/** The SDK's client for one signed-in user: its clients, its reads and its writes. */
|
|
61
66
|
export interface Techne extends Clients {
|
|
62
67
|
/** One page of a query document; a list across authors answers curated records. Valid items by default
|
|
63
68
|
* (`ValidItem<T>`); `{ include: 'all' }` any verdict (`Item<T>`). */
|
|
@@ -70,6 +75,16 @@ export interface Techne extends Clients {
|
|
|
70
75
|
versions<U extends string>(uri: U): Promise<Versions<RecordOfUri<U>> | null>;
|
|
71
76
|
/** Write records, and with `deletes` delete some (`techne-sdk/put` says how). */
|
|
72
77
|
put(records: PutRecord[], options?: PutOptions): Promise<PutResult>;
|
|
78
|
+
/**
|
|
79
|
+
* Write as a collective the user may write as (`pub.techne.draft.identity.writeAsCollective`): the
|
|
80
|
+
* writes are applied atomically to the collective's repo by the platform, with the credential it holds
|
|
81
|
+
* for the collective, after it checks the user's role there (403 `Forbidden` when the user may not).
|
|
82
|
+
* `input` is com.atproto.repo.applyWrites's, `repo` the collective's DID (never the user's own: that is
|
|
83
|
+
* `put`, or the PDS's applyWrites). Under {@link connect} it goes through the user's PDS like every
|
|
84
|
+
* platform call, so the app's OAuth scope needs
|
|
85
|
+
* `rpc:pub.techne.draft.identity.writeAsCollective?aud=<platform DID>%23atproto_appview`.
|
|
86
|
+
*/
|
|
87
|
+
writeAsCollective(input: WriteAsCollectiveInput): Promise<WriteAsCollectiveOutput>;
|
|
73
88
|
/** The options forms (TanStack Query's `{ queryKey, queryFn }`). Each key ends with the viewer's DID, so
|
|
74
89
|
* one viewer's reads are never another's, and a prefix (`['techne', 'versions']`) still names them all. */
|
|
75
90
|
queryOptions<Q extends Query, O extends QueryOpts = {}>(q: Q, opts?: O): ReadOptions<readonly ['techne', 'query', Q, QueryOpts, string], Page<RecordOfQuery<Q>, IncludeOf<O>>>;
|
package/dist/connect.js
CHANGED
|
@@ -16,6 +16,7 @@ export function bind(clients) {
|
|
|
16
16
|
get: (uri, opts) => get(techne, uri, opts),
|
|
17
17
|
versions: (uri) => versions(techne, uri),
|
|
18
18
|
put: (records, options) => put(techne, records, options),
|
|
19
|
+
writeAsCollective: async (input) => (await clients.platform.pub.techne.draft.identity.writeAsCollective(input)).data,
|
|
19
20
|
queryOptions: (q, opts) => ({ queryKey: ['techne', 'query', q, opts ?? {}, clients.did], queryFn: () => query(techne, q, opts) }),
|
|
20
21
|
getOptions: (uri, opts) => ({ queryKey: ['techne', 'record', uri, opts ?? {}, clients.did], queryFn: () => get(techne, uri, opts) }),
|
|
21
22
|
versionsOptions: (uri) => ({ queryKey: ['techne', 'versions', uri, clients.did], queryFn: () => versions(techne, uri) }),
|
|
@@ -78,6 +79,7 @@ export function connectAnonymous(platform = TECHNE_PLATFORM_DID, options = {}) {
|
|
|
78
79
|
const nowhere = async () => Promise.reject(new Error(SIGN_IN_TO_WRITE));
|
|
79
80
|
const techne = bind({ did: '', pds: new AtpBaseClient(nowhere), platform: new AtpBaseClient(direct), claims: options.claims });
|
|
80
81
|
techne.put = async () => Promise.reject(new Error(SIGN_IN_TO_WRITE));
|
|
82
|
+
techne.writeAsCollective = async () => Promise.reject(new Error(SIGN_IN_TO_WRITE));
|
|
81
83
|
return techne;
|
|
82
84
|
}
|
|
83
85
|
/**
|
|
@@ -9,6 +9,7 @@ import * as ComAtprotoRepoGetRecord from './types/com/atproto/repo/getRecord.js'
|
|
|
9
9
|
import * as ComAtprotoServerGetServiceAuth from './types/com/atproto/server/getServiceAuth.js';
|
|
10
10
|
import * as CommunityLexiconCalendarEvent from './types/community/lexicon/calendar/event.js';
|
|
11
11
|
import * as CommunityLexiconCalendarRsvp from './types/community/lexicon/calendar/rsvp.js';
|
|
12
|
+
import * as OrgHypercertsFundingReceipt from './types/org/hypercerts/funding/receipt.js';
|
|
12
13
|
import * as PubTechneDraftAccessRule from './types/pub/techne/draft/accessRule.js';
|
|
13
14
|
import * as PubTechneDraftAccountLink from './types/pub/techne/draft/accountLink.js';
|
|
14
15
|
import * as PubTechneDraftActorProfile from './types/pub/techne/draft/actor/profile.js';
|
|
@@ -44,6 +45,7 @@ import * as PubTechneDraftEventConfig from './types/pub/techne/draft/event/confi
|
|
|
44
45
|
import * as PubTechneDraftEventDetail from './types/pub/techne/draft/event/detail.js';
|
|
45
46
|
import * as PubTechneDraftEventListing from './types/pub/techne/draft/event/listing.js';
|
|
46
47
|
import * as PubTechneDraftFeedRecipe from './types/pub/techne/draft/feed/recipe.js';
|
|
48
|
+
import * as PubTechneDraftFinancials from './types/pub/techne/draft/financials.js';
|
|
47
49
|
import * as PubTechneDraftGeo from './types/pub/techne/draft/geo.js';
|
|
48
50
|
import * as PubTechneDraftHeldAt from './types/pub/techne/draft/heldAt.js';
|
|
49
51
|
import * as PubTechneDraftIdentityAccountsForPhones from './types/pub/techne/draft/identity/accountsForPhones.js';
|
|
@@ -72,6 +74,7 @@ import * as PubTechneDraftIdentityResolve from './types/pub/techne/draft/identit
|
|
|
72
74
|
import * as PubTechneDraftIdentityRevokeLinkToken from './types/pub/techne/draft/identity/revokeLinkToken.js';
|
|
73
75
|
import * as PubTechneDraftIdentityUnlinkAccount from './types/pub/techne/draft/identity/unlinkAccount.js';
|
|
74
76
|
import * as PubTechneDraftIdentityUnlinkMethod from './types/pub/techne/draft/identity/unlinkMethod.js';
|
|
77
|
+
import * as PubTechneDraftIdentityWriteAsCollective from './types/pub/techne/draft/identity/writeAsCollective.js';
|
|
75
78
|
import * as PubTechneDraftInterest from './types/pub/techne/draft/interest.js';
|
|
76
79
|
import * as PubTechneDraftIntroProposal from './types/pub/techne/draft/introProposal.js';
|
|
77
80
|
import * as PubTechneDraftInvite from './types/pub/techne/draft/invite.js';
|
|
@@ -81,6 +84,7 @@ import * as PubTechneDraftMembership from './types/pub/techne/draft/membership.j
|
|
|
81
84
|
import * as PubTechneDraftNotificationState from './types/pub/techne/draft/notificationState.js';
|
|
82
85
|
import * as PubTechneDraftOperator from './types/pub/techne/draft/operator.js';
|
|
83
86
|
import * as PubTechneDraftOrg from './types/pub/techne/draft/org.js';
|
|
87
|
+
import * as PubTechneDraftOrgAtPlace from './types/pub/techne/draft/orgAtPlace.js';
|
|
84
88
|
import * as PubTechneDraftPassage from './types/pub/techne/draft/passage.js';
|
|
85
89
|
import * as PubTechneDraftPendingBeaconSpot from './types/pub/techne/draft/pendingBeaconSpot.js';
|
|
86
90
|
import * as PubTechneDraftPermissionedDeleteRecord from './types/pub/techne/draft/permissioned/deleteRecord.js';
|
|
@@ -123,6 +127,7 @@ import * as PubTechneDraftShare from './types/pub/techne/draft/share.js';
|
|
|
123
127
|
import * as PubTechneDraftSource from './types/pub/techne/draft/source.js';
|
|
124
128
|
import * as PubTechneDraftSourceAttribution from './types/pub/techne/draft/sourceAttribution.js';
|
|
125
129
|
import * as PubTechneDraftSourceRef from './types/pub/techne/draft/sourceRef.js';
|
|
130
|
+
import * as PubTechneDraftStatement from './types/pub/techne/draft/statement.js';
|
|
126
131
|
import * as PubTechneDraftSubjectPrefs from './types/pub/techne/draft/subjectPrefs.js';
|
|
127
132
|
import * as PubTechneDraftSummary from './types/pub/techne/draft/summary.js';
|
|
128
133
|
import * as PubTechneDraftSyncIndexRecord from './types/pub/techne/draft/sync/indexRecord.js';
|
|
@@ -150,6 +155,8 @@ import * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteReco
|
|
|
150
155
|
import * as ComAtprotoRepoListRecords from './types/com/atproto/repo/listRecords.js';
|
|
151
156
|
import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord.js';
|
|
152
157
|
export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js';
|
|
158
|
+
export * as AppCertifiedDefs from './types/app/certified/defs.js';
|
|
159
|
+
export * as AppCertifiedSignatureDefs from './types/app/certified/signature/defs.js';
|
|
153
160
|
export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs.js';
|
|
154
161
|
export * as ComAtprotoLabelDefs from './types/com/atproto/label/defs.js';
|
|
155
162
|
export * as ComAtprotoModerationCreateReport from './types/com/atproto/moderation/createReport.js';
|
|
@@ -165,6 +172,7 @@ export * as CommunityLexiconLocationAddress from './types/community/lexicon/loca
|
|
|
165
172
|
export * as CommunityLexiconLocationFsq from './types/community/lexicon/location/fsq.js';
|
|
166
173
|
export * as CommunityLexiconLocationGeo from './types/community/lexicon/location/geo.js';
|
|
167
174
|
export * as CommunityLexiconLocationHthree from './types/community/lexicon/location/hthree.js';
|
|
175
|
+
export * as OrgHypercertsFundingReceipt from './types/org/hypercerts/funding/receipt.js';
|
|
168
176
|
export * as PubTechneDraftAccessRule from './types/pub/techne/draft/accessRule.js';
|
|
169
177
|
export * as PubTechneDraftAccountLink from './types/pub/techne/draft/accountLink.js';
|
|
170
178
|
export * as PubTechneDraftActorProfile from './types/pub/techne/draft/actor/profile.js';
|
|
@@ -200,6 +208,7 @@ export * as PubTechneDraftEventConfig from './types/pub/techne/draft/event/confi
|
|
|
200
208
|
export * as PubTechneDraftEventDetail from './types/pub/techne/draft/event/detail.js';
|
|
201
209
|
export * as PubTechneDraftEventListing from './types/pub/techne/draft/event/listing.js';
|
|
202
210
|
export * as PubTechneDraftFeedRecipe from './types/pub/techne/draft/feed/recipe.js';
|
|
211
|
+
export * as PubTechneDraftFinancials from './types/pub/techne/draft/financials.js';
|
|
203
212
|
export * as PubTechneDraftGeo from './types/pub/techne/draft/geo.js';
|
|
204
213
|
export * as PubTechneDraftHeldAt from './types/pub/techne/draft/heldAt.js';
|
|
205
214
|
export * as PubTechneDraftIdentityAccountsForPhones from './types/pub/techne/draft/identity/accountsForPhones.js';
|
|
@@ -229,6 +238,7 @@ export * as PubTechneDraftIdentityResolve from './types/pub/techne/draft/identit
|
|
|
229
238
|
export * as PubTechneDraftIdentityRevokeLinkToken from './types/pub/techne/draft/identity/revokeLinkToken.js';
|
|
230
239
|
export * as PubTechneDraftIdentityUnlinkAccount from './types/pub/techne/draft/identity/unlinkAccount.js';
|
|
231
240
|
export * as PubTechneDraftIdentityUnlinkMethod from './types/pub/techne/draft/identity/unlinkMethod.js';
|
|
241
|
+
export * as PubTechneDraftIdentityWriteAsCollective from './types/pub/techne/draft/identity/writeAsCollective.js';
|
|
232
242
|
export * as PubTechneDraftInterest from './types/pub/techne/draft/interest.js';
|
|
233
243
|
export * as PubTechneDraftIntroProposal from './types/pub/techne/draft/introProposal.js';
|
|
234
244
|
export * as PubTechneDraftInvite from './types/pub/techne/draft/invite.js';
|
|
@@ -238,6 +248,7 @@ export * as PubTechneDraftMembership from './types/pub/techne/draft/membership.j
|
|
|
238
248
|
export * as PubTechneDraftNotificationState from './types/pub/techne/draft/notificationState.js';
|
|
239
249
|
export * as PubTechneDraftOperator from './types/pub/techne/draft/operator.js';
|
|
240
250
|
export * as PubTechneDraftOrg from './types/pub/techne/draft/org.js';
|
|
251
|
+
export * as PubTechneDraftOrgAtPlace from './types/pub/techne/draft/orgAtPlace.js';
|
|
241
252
|
export * as PubTechneDraftPassage from './types/pub/techne/draft/passage.js';
|
|
242
253
|
export * as PubTechneDraftPendingBeaconSpot from './types/pub/techne/draft/pendingBeaconSpot.js';
|
|
243
254
|
export * as PubTechneDraftPermissionedDeleteRecord from './types/pub/techne/draft/permissioned/deleteRecord.js';
|
|
@@ -281,6 +292,7 @@ export * as PubTechneDraftShare from './types/pub/techne/draft/share.js';
|
|
|
281
292
|
export * as PubTechneDraftSource from './types/pub/techne/draft/source.js';
|
|
282
293
|
export * as PubTechneDraftSourceAttribution from './types/pub/techne/draft/sourceAttribution.js';
|
|
283
294
|
export * as PubTechneDraftSourceRef from './types/pub/techne/draft/sourceRef.js';
|
|
295
|
+
export * as PubTechneDraftStatement from './types/pub/techne/draft/statement.js';
|
|
284
296
|
export * as PubTechneDraftSubjectPrefs from './types/pub/techne/draft/subjectPrefs.js';
|
|
285
297
|
export * as PubTechneDraftSummary from './types/pub/techne/draft/summary.js';
|
|
286
298
|
export * as PubTechneDraftSyncIndexRecord from './types/pub/techne/draft/sync/indexRecord.js';
|
|
@@ -333,6 +345,7 @@ export declare class AtpBaseClient extends XrpcClient {
|
|
|
333
345
|
app: AppNS;
|
|
334
346
|
com: ComNS;
|
|
335
347
|
community: CommunityNS;
|
|
348
|
+
org: OrgNS;
|
|
336
349
|
pub: PubNS;
|
|
337
350
|
social: SocialNS;
|
|
338
351
|
constructor(options: FetchHandler | FetchHandlerOptions);
|
|
@@ -456,6 +469,46 @@ export declare class CommunityLexiconLocationNS {
|
|
|
456
469
|
_client: XrpcClient;
|
|
457
470
|
constructor(client: XrpcClient);
|
|
458
471
|
}
|
|
472
|
+
export declare class OrgNS {
|
|
473
|
+
_client: XrpcClient;
|
|
474
|
+
hypercerts: OrgHypercertsNS;
|
|
475
|
+
constructor(client: XrpcClient);
|
|
476
|
+
}
|
|
477
|
+
export declare class OrgHypercertsNS {
|
|
478
|
+
_client: XrpcClient;
|
|
479
|
+
funding: OrgHypercertsFundingNS;
|
|
480
|
+
constructor(client: XrpcClient);
|
|
481
|
+
}
|
|
482
|
+
export declare class OrgHypercertsFundingNS {
|
|
483
|
+
_client: XrpcClient;
|
|
484
|
+
receipt: OrgHypercertsFundingReceiptRecord;
|
|
485
|
+
constructor(client: XrpcClient);
|
|
486
|
+
}
|
|
487
|
+
export declare class OrgHypercertsFundingReceiptRecord {
|
|
488
|
+
_client: XrpcClient;
|
|
489
|
+
constructor(client: XrpcClient);
|
|
490
|
+
list(params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
|
|
491
|
+
cursor?: string;
|
|
492
|
+
records: {
|
|
493
|
+
uri: string;
|
|
494
|
+
value: OrgHypercertsFundingReceipt.Record;
|
|
495
|
+
}[];
|
|
496
|
+
}>;
|
|
497
|
+
get(params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
|
|
498
|
+
uri: string;
|
|
499
|
+
cid: string;
|
|
500
|
+
value: OrgHypercertsFundingReceipt.Record;
|
|
501
|
+
}>;
|
|
502
|
+
create(params: OmitKey<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<OrgHypercertsFundingReceipt.Record>, headers?: Record<string, string>): Promise<{
|
|
503
|
+
uri: string;
|
|
504
|
+
cid: string;
|
|
505
|
+
}>;
|
|
506
|
+
put(params: OmitKey<ComAtprotoRepoPutRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<OrgHypercertsFundingReceipt.Record>, headers?: Record<string, string>): Promise<{
|
|
507
|
+
uri: string;
|
|
508
|
+
cid: string;
|
|
509
|
+
}>;
|
|
510
|
+
delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
|
511
|
+
}
|
|
459
512
|
export declare class PubNS {
|
|
460
513
|
_client: XrpcClient;
|
|
461
514
|
techne: PubTechneNS;
|
|
@@ -494,6 +547,7 @@ export declare class PubTechneDraftNS {
|
|
|
494
547
|
description: PubTechneDraftDescriptionRecord;
|
|
495
548
|
distinctFrom: PubTechneDraftDistinctFromRecord;
|
|
496
549
|
evaluation: PubTechneDraftEvaluationRecord;
|
|
550
|
+
financials: PubTechneDraftFinancialsRecord;
|
|
497
551
|
geo: PubTechneDraftGeoRecord;
|
|
498
552
|
heldAt: PubTechneDraftHeldAtRecord;
|
|
499
553
|
interest: PubTechneDraftInterestRecord;
|
|
@@ -503,6 +557,7 @@ export declare class PubTechneDraftNS {
|
|
|
503
557
|
notificationState: PubTechneDraftNotificationStateRecord;
|
|
504
558
|
operator: PubTechneDraftOperatorRecord;
|
|
505
559
|
org: PubTechneDraftOrgRecord;
|
|
560
|
+
orgAtPlace: PubTechneDraftOrgAtPlaceRecord;
|
|
506
561
|
passage: PubTechneDraftPassageRecord;
|
|
507
562
|
pendingBeaconSpot: PubTechneDraftPendingBeaconSpotRecord;
|
|
508
563
|
place: PubTechneDraftPlaceRecord;
|
|
@@ -522,6 +577,7 @@ export declare class PubTechneDraftNS {
|
|
|
522
577
|
source: PubTechneDraftSourceRecord;
|
|
523
578
|
sourceAttribution: PubTechneDraftSourceAttributionRecord;
|
|
524
579
|
sourceRef: PubTechneDraftSourceRefRecord;
|
|
580
|
+
statement: PubTechneDraftStatementRecord;
|
|
525
581
|
subjectPrefs: PubTechneDraftSubjectPrefsRecord;
|
|
526
582
|
summary: PubTechneDraftSummaryRecord;
|
|
527
583
|
verdict: PubTechneDraftVerdictRecord;
|
|
@@ -719,6 +775,7 @@ export declare class PubTechneDraftIdentityNS {
|
|
|
719
775
|
revokeLinkToken(data?: PubTechneDraftIdentityRevokeLinkToken.InputSchema, opts?: PubTechneDraftIdentityRevokeLinkToken.CallOptions): Promise<PubTechneDraftIdentityRevokeLinkToken.Response>;
|
|
720
776
|
unlinkAccount(data?: PubTechneDraftIdentityUnlinkAccount.InputSchema, opts?: PubTechneDraftIdentityUnlinkAccount.CallOptions): Promise<PubTechneDraftIdentityUnlinkAccount.Response>;
|
|
721
777
|
unlinkMethod(data?: PubTechneDraftIdentityUnlinkMethod.InputSchema, opts?: PubTechneDraftIdentityUnlinkMethod.CallOptions): Promise<PubTechneDraftIdentityUnlinkMethod.Response>;
|
|
778
|
+
writeAsCollective(data?: PubTechneDraftIdentityWriteAsCollective.InputSchema, opts?: PubTechneDraftIdentityWriteAsCollective.CallOptions): Promise<PubTechneDraftIdentityWriteAsCollective.Response>;
|
|
722
779
|
}
|
|
723
780
|
export declare class PubTechneDraftIdentityLinkRedemptionRecord {
|
|
724
781
|
_client: XrpcClient;
|
|
@@ -1570,6 +1627,31 @@ export declare class PubTechneDraftEvaluationRecord {
|
|
|
1570
1627
|
}>;
|
|
1571
1628
|
delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
|
1572
1629
|
}
|
|
1630
|
+
export declare class PubTechneDraftFinancialsRecord {
|
|
1631
|
+
_client: XrpcClient;
|
|
1632
|
+
constructor(client: XrpcClient);
|
|
1633
|
+
list(params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
|
|
1634
|
+
cursor?: string;
|
|
1635
|
+
records: {
|
|
1636
|
+
uri: string;
|
|
1637
|
+
value: PubTechneDraftFinancials.Record;
|
|
1638
|
+
}[];
|
|
1639
|
+
}>;
|
|
1640
|
+
get(params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
|
|
1641
|
+
uri: string;
|
|
1642
|
+
cid: string;
|
|
1643
|
+
value: PubTechneDraftFinancials.Record;
|
|
1644
|
+
}>;
|
|
1645
|
+
create(params: OmitKey<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftFinancials.Record>, headers?: Record<string, string>): Promise<{
|
|
1646
|
+
uri: string;
|
|
1647
|
+
cid: string;
|
|
1648
|
+
}>;
|
|
1649
|
+
put(params: OmitKey<ComAtprotoRepoPutRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftFinancials.Record>, headers?: Record<string, string>): Promise<{
|
|
1650
|
+
uri: string;
|
|
1651
|
+
cid: string;
|
|
1652
|
+
}>;
|
|
1653
|
+
delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
|
1654
|
+
}
|
|
1573
1655
|
export declare class PubTechneDraftGeoRecord {
|
|
1574
1656
|
_client: XrpcClient;
|
|
1575
1657
|
constructor(client: XrpcClient);
|
|
@@ -1795,6 +1877,31 @@ export declare class PubTechneDraftOrgRecord {
|
|
|
1795
1877
|
}>;
|
|
1796
1878
|
delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
|
1797
1879
|
}
|
|
1880
|
+
export declare class PubTechneDraftOrgAtPlaceRecord {
|
|
1881
|
+
_client: XrpcClient;
|
|
1882
|
+
constructor(client: XrpcClient);
|
|
1883
|
+
list(params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
|
|
1884
|
+
cursor?: string;
|
|
1885
|
+
records: {
|
|
1886
|
+
uri: string;
|
|
1887
|
+
value: PubTechneDraftOrgAtPlace.Record;
|
|
1888
|
+
}[];
|
|
1889
|
+
}>;
|
|
1890
|
+
get(params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
|
|
1891
|
+
uri: string;
|
|
1892
|
+
cid: string;
|
|
1893
|
+
value: PubTechneDraftOrgAtPlace.Record;
|
|
1894
|
+
}>;
|
|
1895
|
+
create(params: OmitKey<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftOrgAtPlace.Record>, headers?: Record<string, string>): Promise<{
|
|
1896
|
+
uri: string;
|
|
1897
|
+
cid: string;
|
|
1898
|
+
}>;
|
|
1899
|
+
put(params: OmitKey<ComAtprotoRepoPutRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftOrgAtPlace.Record>, headers?: Record<string, string>): Promise<{
|
|
1900
|
+
uri: string;
|
|
1901
|
+
cid: string;
|
|
1902
|
+
}>;
|
|
1903
|
+
delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
|
1904
|
+
}
|
|
1798
1905
|
export declare class PubTechneDraftPassageRecord {
|
|
1799
1906
|
_client: XrpcClient;
|
|
1800
1907
|
constructor(client: XrpcClient);
|
|
@@ -2270,6 +2377,31 @@ export declare class PubTechneDraftSourceRefRecord {
|
|
|
2270
2377
|
}>;
|
|
2271
2378
|
delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
|
2272
2379
|
}
|
|
2380
|
+
export declare class PubTechneDraftStatementRecord {
|
|
2381
|
+
_client: XrpcClient;
|
|
2382
|
+
constructor(client: XrpcClient);
|
|
2383
|
+
list(params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
|
|
2384
|
+
cursor?: string;
|
|
2385
|
+
records: {
|
|
2386
|
+
uri: string;
|
|
2387
|
+
value: PubTechneDraftStatement.Record;
|
|
2388
|
+
}[];
|
|
2389
|
+
}>;
|
|
2390
|
+
get(params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
|
|
2391
|
+
uri: string;
|
|
2392
|
+
cid: string;
|
|
2393
|
+
value: PubTechneDraftStatement.Record;
|
|
2394
|
+
}>;
|
|
2395
|
+
create(params: OmitKey<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftStatement.Record>, headers?: Record<string, string>): Promise<{
|
|
2396
|
+
uri: string;
|
|
2397
|
+
cid: string;
|
|
2398
|
+
}>;
|
|
2399
|
+
put(params: OmitKey<ComAtprotoRepoPutRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftStatement.Record>, headers?: Record<string, string>): Promise<{
|
|
2400
|
+
uri: string;
|
|
2401
|
+
cid: string;
|
|
2402
|
+
}>;
|
|
2403
|
+
delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
|
|
2404
|
+
}
|
|
2273
2405
|
export declare class PubTechneDraftSubjectPrefsRecord {
|
|
2274
2406
|
_client: XrpcClient;
|
|
2275
2407
|
constructor(client: XrpcClient);
|
package/dist/generated/index.js
CHANGED
|
@@ -35,6 +35,7 @@ import * as PubTechneDraftIdentityResolve from './types/pub/techne/draft/identit
|
|
|
35
35
|
import * as PubTechneDraftIdentityRevokeLinkToken from './types/pub/techne/draft/identity/revokeLinkToken.js';
|
|
36
36
|
import * as PubTechneDraftIdentityUnlinkAccount from './types/pub/techne/draft/identity/unlinkAccount.js';
|
|
37
37
|
import * as PubTechneDraftIdentityUnlinkMethod from './types/pub/techne/draft/identity/unlinkMethod.js';
|
|
38
|
+
import * as PubTechneDraftIdentityWriteAsCollective from './types/pub/techne/draft/identity/writeAsCollective.js';
|
|
38
39
|
import * as PubTechneDraftPermissionedDeleteRecord from './types/pub/techne/draft/permissioned/deleteRecord.js';
|
|
39
40
|
import * as PubTechneDraftPermissionedGetGrants from './types/pub/techne/draft/permissioned/getGrants.js';
|
|
40
41
|
import * as PubTechneDraftPermissionedGetRecord from './types/pub/techne/draft/permissioned/getRecord.js';
|
|
@@ -73,6 +74,8 @@ import * as ComAtprotoRepoCreateRecord from './types/com/atproto/repo/createReco
|
|
|
73
74
|
import * as ComAtprotoRepoDeleteRecord from './types/com/atproto/repo/deleteRecord.js';
|
|
74
75
|
import * as ComAtprotoRepoPutRecord from './types/com/atproto/repo/putRecord.js';
|
|
75
76
|
export * as AppBskyRichtextFacet from './types/app/bsky/richtext/facet.js';
|
|
77
|
+
export * as AppCertifiedDefs from './types/app/certified/defs.js';
|
|
78
|
+
export * as AppCertifiedSignatureDefs from './types/app/certified/signature/defs.js';
|
|
76
79
|
export * as ComAtprotoAdminDefs from './types/com/atproto/admin/defs.js';
|
|
77
80
|
export * as ComAtprotoLabelDefs from './types/com/atproto/label/defs.js';
|
|
78
81
|
export * as ComAtprotoModerationCreateReport from './types/com/atproto/moderation/createReport.js';
|
|
@@ -88,6 +91,7 @@ export * as CommunityLexiconLocationAddress from './types/community/lexicon/loca
|
|
|
88
91
|
export * as CommunityLexiconLocationFsq from './types/community/lexicon/location/fsq.js';
|
|
89
92
|
export * as CommunityLexiconLocationGeo from './types/community/lexicon/location/geo.js';
|
|
90
93
|
export * as CommunityLexiconLocationHthree from './types/community/lexicon/location/hthree.js';
|
|
94
|
+
export * as OrgHypercertsFundingReceipt from './types/org/hypercerts/funding/receipt.js';
|
|
91
95
|
export * as PubTechneDraftAccessRule from './types/pub/techne/draft/accessRule.js';
|
|
92
96
|
export * as PubTechneDraftAccountLink from './types/pub/techne/draft/accountLink.js';
|
|
93
97
|
export * as PubTechneDraftActorProfile from './types/pub/techne/draft/actor/profile.js';
|
|
@@ -123,6 +127,7 @@ export * as PubTechneDraftEventConfig from './types/pub/techne/draft/event/confi
|
|
|
123
127
|
export * as PubTechneDraftEventDetail from './types/pub/techne/draft/event/detail.js';
|
|
124
128
|
export * as PubTechneDraftEventListing from './types/pub/techne/draft/event/listing.js';
|
|
125
129
|
export * as PubTechneDraftFeedRecipe from './types/pub/techne/draft/feed/recipe.js';
|
|
130
|
+
export * as PubTechneDraftFinancials from './types/pub/techne/draft/financials.js';
|
|
126
131
|
export * as PubTechneDraftGeo from './types/pub/techne/draft/geo.js';
|
|
127
132
|
export * as PubTechneDraftHeldAt from './types/pub/techne/draft/heldAt.js';
|
|
128
133
|
export * as PubTechneDraftIdentityAccountsForPhones from './types/pub/techne/draft/identity/accountsForPhones.js';
|
|
@@ -152,6 +157,7 @@ export * as PubTechneDraftIdentityResolve from './types/pub/techne/draft/identit
|
|
|
152
157
|
export * as PubTechneDraftIdentityRevokeLinkToken from './types/pub/techne/draft/identity/revokeLinkToken.js';
|
|
153
158
|
export * as PubTechneDraftIdentityUnlinkAccount from './types/pub/techne/draft/identity/unlinkAccount.js';
|
|
154
159
|
export * as PubTechneDraftIdentityUnlinkMethod from './types/pub/techne/draft/identity/unlinkMethod.js';
|
|
160
|
+
export * as PubTechneDraftIdentityWriteAsCollective from './types/pub/techne/draft/identity/writeAsCollective.js';
|
|
155
161
|
export * as PubTechneDraftInterest from './types/pub/techne/draft/interest.js';
|
|
156
162
|
export * as PubTechneDraftIntroProposal from './types/pub/techne/draft/introProposal.js';
|
|
157
163
|
export * as PubTechneDraftInvite from './types/pub/techne/draft/invite.js';
|
|
@@ -161,6 +167,7 @@ export * as PubTechneDraftMembership from './types/pub/techne/draft/membership.j
|
|
|
161
167
|
export * as PubTechneDraftNotificationState from './types/pub/techne/draft/notificationState.js';
|
|
162
168
|
export * as PubTechneDraftOperator from './types/pub/techne/draft/operator.js';
|
|
163
169
|
export * as PubTechneDraftOrg from './types/pub/techne/draft/org.js';
|
|
170
|
+
export * as PubTechneDraftOrgAtPlace from './types/pub/techne/draft/orgAtPlace.js';
|
|
164
171
|
export * as PubTechneDraftPassage from './types/pub/techne/draft/passage.js';
|
|
165
172
|
export * as PubTechneDraftPendingBeaconSpot from './types/pub/techne/draft/pendingBeaconSpot.js';
|
|
166
173
|
export * as PubTechneDraftPermissionedDeleteRecord from './types/pub/techne/draft/permissioned/deleteRecord.js';
|
|
@@ -204,6 +211,7 @@ export * as PubTechneDraftShare from './types/pub/techne/draft/share.js';
|
|
|
204
211
|
export * as PubTechneDraftSource from './types/pub/techne/draft/source.js';
|
|
205
212
|
export * as PubTechneDraftSourceAttribution from './types/pub/techne/draft/sourceAttribution.js';
|
|
206
213
|
export * as PubTechneDraftSourceRef from './types/pub/techne/draft/sourceRef.js';
|
|
214
|
+
export * as PubTechneDraftStatement from './types/pub/techne/draft/statement.js';
|
|
207
215
|
export * as PubTechneDraftSubjectPrefs from './types/pub/techne/draft/subjectPrefs.js';
|
|
208
216
|
export * as PubTechneDraftSummary from './types/pub/techne/draft/summary.js';
|
|
209
217
|
export * as PubTechneDraftSyncIndexRecord from './types/pub/techne/draft/sync/indexRecord.js';
|
|
@@ -256,6 +264,7 @@ export class AtpBaseClient extends XrpcClient {
|
|
|
256
264
|
app;
|
|
257
265
|
com;
|
|
258
266
|
community;
|
|
267
|
+
org;
|
|
259
268
|
pub;
|
|
260
269
|
social;
|
|
261
270
|
constructor(options) {
|
|
@@ -263,6 +272,7 @@ export class AtpBaseClient extends XrpcClient {
|
|
|
263
272
|
this.app = new AppNS(this);
|
|
264
273
|
this.com = new ComNS(this);
|
|
265
274
|
this.community = new CommunityNS(this);
|
|
275
|
+
this.org = new OrgNS(this);
|
|
266
276
|
this.pub = new PubNS(this);
|
|
267
277
|
this.social = new SocialNS(this);
|
|
268
278
|
}
|
|
@@ -479,6 +489,63 @@ export class CommunityLexiconLocationNS {
|
|
|
479
489
|
this._client = client;
|
|
480
490
|
}
|
|
481
491
|
}
|
|
492
|
+
export class OrgNS {
|
|
493
|
+
_client;
|
|
494
|
+
hypercerts;
|
|
495
|
+
constructor(client) {
|
|
496
|
+
this._client = client;
|
|
497
|
+
this.hypercerts = new OrgHypercertsNS(client);
|
|
498
|
+
}
|
|
499
|
+
}
|
|
500
|
+
export class OrgHypercertsNS {
|
|
501
|
+
_client;
|
|
502
|
+
funding;
|
|
503
|
+
constructor(client) {
|
|
504
|
+
this._client = client;
|
|
505
|
+
this.funding = new OrgHypercertsFundingNS(client);
|
|
506
|
+
}
|
|
507
|
+
}
|
|
508
|
+
export class OrgHypercertsFundingNS {
|
|
509
|
+
_client;
|
|
510
|
+
receipt;
|
|
511
|
+
constructor(client) {
|
|
512
|
+
this._client = client;
|
|
513
|
+
this.receipt = new OrgHypercertsFundingReceiptRecord(client);
|
|
514
|
+
}
|
|
515
|
+
}
|
|
516
|
+
export class OrgHypercertsFundingReceiptRecord {
|
|
517
|
+
_client;
|
|
518
|
+
constructor(client) {
|
|
519
|
+
this._client = client;
|
|
520
|
+
}
|
|
521
|
+
async list(params) {
|
|
522
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
523
|
+
collection: 'org.hypercerts.funding.receipt',
|
|
524
|
+
...params,
|
|
525
|
+
});
|
|
526
|
+
return res.data;
|
|
527
|
+
}
|
|
528
|
+
async get(params) {
|
|
529
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
530
|
+
collection: 'org.hypercerts.funding.receipt',
|
|
531
|
+
...params,
|
|
532
|
+
});
|
|
533
|
+
return res.data;
|
|
534
|
+
}
|
|
535
|
+
async create(params, record, headers) {
|
|
536
|
+
const collection = 'org.hypercerts.funding.receipt';
|
|
537
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
538
|
+
return res.data;
|
|
539
|
+
}
|
|
540
|
+
async put(params, record, headers) {
|
|
541
|
+
const collection = 'org.hypercerts.funding.receipt';
|
|
542
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
543
|
+
return res.data;
|
|
544
|
+
}
|
|
545
|
+
async delete(params, headers) {
|
|
546
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'org.hypercerts.funding.receipt', ...params }, { headers });
|
|
547
|
+
}
|
|
548
|
+
}
|
|
482
549
|
export class PubNS {
|
|
483
550
|
_client;
|
|
484
551
|
techne;
|
|
@@ -523,6 +590,7 @@ export class PubTechneDraftNS {
|
|
|
523
590
|
description;
|
|
524
591
|
distinctFrom;
|
|
525
592
|
evaluation;
|
|
593
|
+
financials;
|
|
526
594
|
geo;
|
|
527
595
|
heldAt;
|
|
528
596
|
interest;
|
|
@@ -532,6 +600,7 @@ export class PubTechneDraftNS {
|
|
|
532
600
|
notificationState;
|
|
533
601
|
operator;
|
|
534
602
|
org;
|
|
603
|
+
orgAtPlace;
|
|
535
604
|
passage;
|
|
536
605
|
pendingBeaconSpot;
|
|
537
606
|
place;
|
|
@@ -551,6 +620,7 @@ export class PubTechneDraftNS {
|
|
|
551
620
|
source;
|
|
552
621
|
sourceAttribution;
|
|
553
622
|
sourceRef;
|
|
623
|
+
statement;
|
|
554
624
|
subjectPrefs;
|
|
555
625
|
summary;
|
|
556
626
|
verdict;
|
|
@@ -606,6 +676,7 @@ export class PubTechneDraftNS {
|
|
|
606
676
|
this.description = new PubTechneDraftDescriptionRecord(client);
|
|
607
677
|
this.distinctFrom = new PubTechneDraftDistinctFromRecord(client);
|
|
608
678
|
this.evaluation = new PubTechneDraftEvaluationRecord(client);
|
|
679
|
+
this.financials = new PubTechneDraftFinancialsRecord(client);
|
|
609
680
|
this.geo = new PubTechneDraftGeoRecord(client);
|
|
610
681
|
this.heldAt = new PubTechneDraftHeldAtRecord(client);
|
|
611
682
|
this.interest = new PubTechneDraftInterestRecord(client);
|
|
@@ -615,6 +686,7 @@ export class PubTechneDraftNS {
|
|
|
615
686
|
this.notificationState = new PubTechneDraftNotificationStateRecord(client);
|
|
616
687
|
this.operator = new PubTechneDraftOperatorRecord(client);
|
|
617
688
|
this.org = new PubTechneDraftOrgRecord(client);
|
|
689
|
+
this.orgAtPlace = new PubTechneDraftOrgAtPlaceRecord(client);
|
|
618
690
|
this.passage = new PubTechneDraftPassageRecord(client);
|
|
619
691
|
this.pendingBeaconSpot = new PubTechneDraftPendingBeaconSpotRecord(client);
|
|
620
692
|
this.place = new PubTechneDraftPlaceRecord(client);
|
|
@@ -634,6 +706,7 @@ export class PubTechneDraftNS {
|
|
|
634
706
|
this.source = new PubTechneDraftSourceRecord(client);
|
|
635
707
|
this.sourceAttribution = new PubTechneDraftSourceAttributionRecord(client);
|
|
636
708
|
this.sourceRef = new PubTechneDraftSourceRefRecord(client);
|
|
709
|
+
this.statement = new PubTechneDraftStatementRecord(client);
|
|
637
710
|
this.subjectPrefs = new PubTechneDraftSubjectPrefsRecord(client);
|
|
638
711
|
this.summary = new PubTechneDraftSummaryRecord(client);
|
|
639
712
|
this.verdict = new PubTechneDraftVerdictRecord(client);
|
|
@@ -1050,6 +1123,13 @@ export class PubTechneDraftIdentityNS {
|
|
|
1050
1123
|
throw PubTechneDraftIdentityUnlinkMethod.toKnownErr(e);
|
|
1051
1124
|
});
|
|
1052
1125
|
}
|
|
1126
|
+
writeAsCollective(data, opts) {
|
|
1127
|
+
return this._client
|
|
1128
|
+
.call('pub.techne.draft.identity.writeAsCollective', opts?.qp, data, opts)
|
|
1129
|
+
.catch((e) => {
|
|
1130
|
+
throw PubTechneDraftIdentityWriteAsCollective.toKnownErr(e);
|
|
1131
|
+
});
|
|
1132
|
+
}
|
|
1053
1133
|
}
|
|
1054
1134
|
export class PubTechneDraftIdentityLinkRedemptionRecord {
|
|
1055
1135
|
_client;
|
|
@@ -2312,6 +2392,39 @@ export class PubTechneDraftEvaluationRecord {
|
|
|
2312
2392
|
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.evaluation', ...params }, { headers });
|
|
2313
2393
|
}
|
|
2314
2394
|
}
|
|
2395
|
+
export class PubTechneDraftFinancialsRecord {
|
|
2396
|
+
_client;
|
|
2397
|
+
constructor(client) {
|
|
2398
|
+
this._client = client;
|
|
2399
|
+
}
|
|
2400
|
+
async list(params) {
|
|
2401
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
2402
|
+
collection: 'pub.techne.draft.financials',
|
|
2403
|
+
...params,
|
|
2404
|
+
});
|
|
2405
|
+
return res.data;
|
|
2406
|
+
}
|
|
2407
|
+
async get(params) {
|
|
2408
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
2409
|
+
collection: 'pub.techne.draft.financials',
|
|
2410
|
+
...params,
|
|
2411
|
+
});
|
|
2412
|
+
return res.data;
|
|
2413
|
+
}
|
|
2414
|
+
async create(params, record, headers) {
|
|
2415
|
+
const collection = 'pub.techne.draft.financials';
|
|
2416
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2417
|
+
return res.data;
|
|
2418
|
+
}
|
|
2419
|
+
async put(params, record, headers) {
|
|
2420
|
+
const collection = 'pub.techne.draft.financials';
|
|
2421
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2422
|
+
return res.data;
|
|
2423
|
+
}
|
|
2424
|
+
async delete(params, headers) {
|
|
2425
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.financials', ...params }, { headers });
|
|
2426
|
+
}
|
|
2427
|
+
}
|
|
2315
2428
|
export class PubTechneDraftGeoRecord {
|
|
2316
2429
|
_client;
|
|
2317
2430
|
constructor(client) {
|
|
@@ -2614,6 +2727,39 @@ export class PubTechneDraftOrgRecord {
|
|
|
2614
2727
|
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.org', ...params }, { headers });
|
|
2615
2728
|
}
|
|
2616
2729
|
}
|
|
2730
|
+
export class PubTechneDraftOrgAtPlaceRecord {
|
|
2731
|
+
_client;
|
|
2732
|
+
constructor(client) {
|
|
2733
|
+
this._client = client;
|
|
2734
|
+
}
|
|
2735
|
+
async list(params) {
|
|
2736
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
2737
|
+
collection: 'pub.techne.draft.orgAtPlace',
|
|
2738
|
+
...params,
|
|
2739
|
+
});
|
|
2740
|
+
return res.data;
|
|
2741
|
+
}
|
|
2742
|
+
async get(params) {
|
|
2743
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
2744
|
+
collection: 'pub.techne.draft.orgAtPlace',
|
|
2745
|
+
...params,
|
|
2746
|
+
});
|
|
2747
|
+
return res.data;
|
|
2748
|
+
}
|
|
2749
|
+
async create(params, record, headers) {
|
|
2750
|
+
const collection = 'pub.techne.draft.orgAtPlace';
|
|
2751
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2752
|
+
return res.data;
|
|
2753
|
+
}
|
|
2754
|
+
async put(params, record, headers) {
|
|
2755
|
+
const collection = 'pub.techne.draft.orgAtPlace';
|
|
2756
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
2757
|
+
return res.data;
|
|
2758
|
+
}
|
|
2759
|
+
async delete(params, headers) {
|
|
2760
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.orgAtPlace', ...params }, { headers });
|
|
2761
|
+
}
|
|
2762
|
+
}
|
|
2617
2763
|
export class PubTechneDraftPassageRecord {
|
|
2618
2764
|
_client;
|
|
2619
2765
|
constructor(client) {
|
|
@@ -3246,6 +3392,39 @@ export class PubTechneDraftSourceRefRecord {
|
|
|
3246
3392
|
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.sourceRef', ...params }, { headers });
|
|
3247
3393
|
}
|
|
3248
3394
|
}
|
|
3395
|
+
export class PubTechneDraftStatementRecord {
|
|
3396
|
+
_client;
|
|
3397
|
+
constructor(client) {
|
|
3398
|
+
this._client = client;
|
|
3399
|
+
}
|
|
3400
|
+
async list(params) {
|
|
3401
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
3402
|
+
collection: 'pub.techne.draft.statement',
|
|
3403
|
+
...params,
|
|
3404
|
+
});
|
|
3405
|
+
return res.data;
|
|
3406
|
+
}
|
|
3407
|
+
async get(params) {
|
|
3408
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
3409
|
+
collection: 'pub.techne.draft.statement',
|
|
3410
|
+
...params,
|
|
3411
|
+
});
|
|
3412
|
+
return res.data;
|
|
3413
|
+
}
|
|
3414
|
+
async create(params, record, headers) {
|
|
3415
|
+
const collection = 'pub.techne.draft.statement';
|
|
3416
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
3417
|
+
return res.data;
|
|
3418
|
+
}
|
|
3419
|
+
async put(params, record, headers) {
|
|
3420
|
+
const collection = 'pub.techne.draft.statement';
|
|
3421
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
3422
|
+
return res.data;
|
|
3423
|
+
}
|
|
3424
|
+
async delete(params, headers) {
|
|
3425
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.statement', ...params }, { headers });
|
|
3426
|
+
}
|
|
3427
|
+
}
|
|
3249
3428
|
export class PubTechneDraftSubjectPrefsRecord {
|
|
3250
3429
|
_client;
|
|
3251
3430
|
constructor(client) {
|