techne-sdk 0.8.0 → 0.10.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 +25 -0
- package/README.md +29 -0
- package/dist/auth/placement.gen.d.ts +1 -1
- package/dist/auth/placement.gen.js +1 -0
- package/dist/catalog/catalog.gen.js +286 -12
- package/dist/generated/index.d.ts +34 -0
- package/dist/generated/index.js +54 -0
- package/dist/generated/lexicons.d.ts +372 -14
- package/dist/generated/lexicons.js +206 -7
- package/dist/generated/nsid.d.ts +3 -0
- package/dist/generated/nsid.js +3 -0
- package/dist/generated/nsid.json +3 -0
- package/dist/generated/records.d.ts +8 -6
- package/dist/generated/types/pub/techne/draft/identity/attachLinkGrant.d.ts +54 -0
- package/dist/generated/types/pub/techne/draft/identity/attachLinkGrant.js +76 -0
- package/dist/generated/types/pub/techne/draft/identity/claimLinkGrant.d.ts +49 -0
- package/dist/generated/types/pub/techne/draft/identity/claimLinkGrant.js +55 -0
- package/dist/generated/types/pub/techne/draft/tagFeedback.d.ts +18 -0
- package/dist/generated/types/pub/techne/draft/tagFeedback.js +12 -0
- package/dist/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +21195 -21195
- package/package.json +1 -1
package/dist/generated/index.js
CHANGED
|
@@ -11,10 +11,12 @@ import * as PubTechneDraftCommonsGetVersions from './types/pub/techne/draft/comm
|
|
|
11
11
|
import * as PubTechneDraftCommonsMoveAccountHandle from './types/pub/techne/draft/commons/moveAccountHandle.js';
|
|
12
12
|
import * as PubTechneDraftCommonsRunChain from './types/pub/techne/draft/commons/runChain.js';
|
|
13
13
|
import * as PubTechneDraftIdentityAccountsForPhones from './types/pub/techne/draft/identity/accountsForPhones.js';
|
|
14
|
+
import * as PubTechneDraftIdentityAttachLinkGrant from './types/pub/techne/draft/identity/attachLinkGrant.js';
|
|
14
15
|
import * as PubTechneDraftIdentityAttest from './types/pub/techne/draft/identity/attest.js';
|
|
15
16
|
import * as PubTechneDraftIdentityBeginAddMethod from './types/pub/techne/draft/identity/beginAddMethod.js';
|
|
16
17
|
import * as PubTechneDraftIdentityCancelPendingChange from './types/pub/techne/draft/identity/cancelPendingChange.js';
|
|
17
18
|
import * as PubTechneDraftIdentityCheckLinkToken from './types/pub/techne/draft/identity/checkLinkToken.js';
|
|
19
|
+
import * as PubTechneDraftIdentityClaimLinkGrant from './types/pub/techne/draft/identity/claimLinkGrant.js';
|
|
18
20
|
import * as PubTechneDraftIdentityCreateCollective from './types/pub/techne/draft/identity/createCollective.js';
|
|
19
21
|
import * as PubTechneDraftIdentityCreateLinkToken from './types/pub/techne/draft/identity/createLinkToken.js';
|
|
20
22
|
import * as PubTechneDraftIdentityFinishAddMethod from './types/pub/techne/draft/identity/finishAddMethod.js';
|
|
@@ -131,10 +133,12 @@ export * as PubTechneDraftFinancials from './types/pub/techne/draft/financials.j
|
|
|
131
133
|
export * as PubTechneDraftGeo from './types/pub/techne/draft/geo.js';
|
|
132
134
|
export * as PubTechneDraftHeldAt from './types/pub/techne/draft/heldAt.js';
|
|
133
135
|
export * as PubTechneDraftIdentityAccountsForPhones from './types/pub/techne/draft/identity/accountsForPhones.js';
|
|
136
|
+
export * as PubTechneDraftIdentityAttachLinkGrant from './types/pub/techne/draft/identity/attachLinkGrant.js';
|
|
134
137
|
export * as PubTechneDraftIdentityAttest from './types/pub/techne/draft/identity/attest.js';
|
|
135
138
|
export * as PubTechneDraftIdentityBeginAddMethod from './types/pub/techne/draft/identity/beginAddMethod.js';
|
|
136
139
|
export * as PubTechneDraftIdentityCancelPendingChange from './types/pub/techne/draft/identity/cancelPendingChange.js';
|
|
137
140
|
export * as PubTechneDraftIdentityCheckLinkToken from './types/pub/techne/draft/identity/checkLinkToken.js';
|
|
141
|
+
export * as PubTechneDraftIdentityClaimLinkGrant from './types/pub/techne/draft/identity/claimLinkGrant.js';
|
|
138
142
|
export * as PubTechneDraftIdentityCreateCollective from './types/pub/techne/draft/identity/createCollective.js';
|
|
139
143
|
export * as PubTechneDraftIdentityCreateLinkToken from './types/pub/techne/draft/identity/createLinkToken.js';
|
|
140
144
|
export * as PubTechneDraftIdentityDefs from './types/pub/techne/draft/identity/defs.js';
|
|
@@ -215,6 +219,7 @@ export * as PubTechneDraftStatement from './types/pub/techne/draft/statement.js'
|
|
|
215
219
|
export * as PubTechneDraftSubjectPrefs from './types/pub/techne/draft/subjectPrefs.js';
|
|
216
220
|
export * as PubTechneDraftSummary from './types/pub/techne/draft/summary.js';
|
|
217
221
|
export * as PubTechneDraftSyncIndexRecord from './types/pub/techne/draft/sync/indexRecord.js';
|
|
222
|
+
export * as PubTechneDraftTagFeedback from './types/pub/techne/draft/tagFeedback.js';
|
|
218
223
|
export * as PubTechneDraftVerdict from './types/pub/techne/draft/verdict.js';
|
|
219
224
|
export * as PubTechneDraftVerification from './types/pub/techne/draft/verification.js';
|
|
220
225
|
export * as PubTechneDraftWeeklyCheckIn from './types/pub/techne/draft/weeklyCheckIn.js';
|
|
@@ -623,6 +628,7 @@ export class PubTechneDraftNS {
|
|
|
623
628
|
statement;
|
|
624
629
|
subjectPrefs;
|
|
625
630
|
summary;
|
|
631
|
+
tagFeedback;
|
|
626
632
|
verdict;
|
|
627
633
|
verification;
|
|
628
634
|
weeklyCheckIn;
|
|
@@ -709,6 +715,7 @@ export class PubTechneDraftNS {
|
|
|
709
715
|
this.statement = new PubTechneDraftStatementRecord(client);
|
|
710
716
|
this.subjectPrefs = new PubTechneDraftSubjectPrefsRecord(client);
|
|
711
717
|
this.summary = new PubTechneDraftSummaryRecord(client);
|
|
718
|
+
this.tagFeedback = new PubTechneDraftTagFeedbackRecord(client);
|
|
712
719
|
this.verdict = new PubTechneDraftVerdictRecord(client);
|
|
713
720
|
this.verification = new PubTechneDraftVerificationRecord(client);
|
|
714
721
|
this.weeklyCheckIn = new PubTechneDraftWeeklyCheckInRecord(client);
|
|
@@ -955,6 +962,13 @@ export class PubTechneDraftIdentityNS {
|
|
|
955
962
|
throw PubTechneDraftIdentityAccountsForPhones.toKnownErr(e);
|
|
956
963
|
});
|
|
957
964
|
}
|
|
965
|
+
attachLinkGrant(data, opts) {
|
|
966
|
+
return this._client
|
|
967
|
+
.call('pub.techne.draft.identity.attachLinkGrant', opts?.qp, data, opts)
|
|
968
|
+
.catch((e) => {
|
|
969
|
+
throw PubTechneDraftIdentityAttachLinkGrant.toKnownErr(e);
|
|
970
|
+
});
|
|
971
|
+
}
|
|
958
972
|
attest(data, opts) {
|
|
959
973
|
return this._client
|
|
960
974
|
.call('pub.techne.draft.identity.attest', opts?.qp, data, opts)
|
|
@@ -983,6 +997,13 @@ export class PubTechneDraftIdentityNS {
|
|
|
983
997
|
throw PubTechneDraftIdentityCheckLinkToken.toKnownErr(e);
|
|
984
998
|
});
|
|
985
999
|
}
|
|
1000
|
+
claimLinkGrant(data, opts) {
|
|
1001
|
+
return this._client
|
|
1002
|
+
.call('pub.techne.draft.identity.claimLinkGrant', opts?.qp, data, opts)
|
|
1003
|
+
.catch((e) => {
|
|
1004
|
+
throw PubTechneDraftIdentityClaimLinkGrant.toKnownErr(e);
|
|
1005
|
+
});
|
|
1006
|
+
}
|
|
986
1007
|
createCollective(data, opts) {
|
|
987
1008
|
return this._client
|
|
988
1009
|
.call('pub.techne.draft.identity.createCollective', opts?.qp, data, opts)
|
|
@@ -3491,6 +3512,39 @@ export class PubTechneDraftSummaryRecord {
|
|
|
3491
3512
|
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.summary', ...params }, { headers });
|
|
3492
3513
|
}
|
|
3493
3514
|
}
|
|
3515
|
+
export class PubTechneDraftTagFeedbackRecord {
|
|
3516
|
+
_client;
|
|
3517
|
+
constructor(client) {
|
|
3518
|
+
this._client = client;
|
|
3519
|
+
}
|
|
3520
|
+
async list(params) {
|
|
3521
|
+
const res = await this._client.call('com.atproto.repo.listRecords', {
|
|
3522
|
+
collection: 'pub.techne.draft.tagFeedback',
|
|
3523
|
+
...params,
|
|
3524
|
+
});
|
|
3525
|
+
return res.data;
|
|
3526
|
+
}
|
|
3527
|
+
async get(params) {
|
|
3528
|
+
const res = await this._client.call('com.atproto.repo.getRecord', {
|
|
3529
|
+
collection: 'pub.techne.draft.tagFeedback',
|
|
3530
|
+
...params,
|
|
3531
|
+
});
|
|
3532
|
+
return res.data;
|
|
3533
|
+
}
|
|
3534
|
+
async create(params, record, headers) {
|
|
3535
|
+
const collection = 'pub.techne.draft.tagFeedback';
|
|
3536
|
+
const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
3537
|
+
return res.data;
|
|
3538
|
+
}
|
|
3539
|
+
async put(params, record, headers) {
|
|
3540
|
+
const collection = 'pub.techne.draft.tagFeedback';
|
|
3541
|
+
const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
|
|
3542
|
+
return res.data;
|
|
3543
|
+
}
|
|
3544
|
+
async delete(params, headers) {
|
|
3545
|
+
await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.tagFeedback', ...params }, { headers });
|
|
3546
|
+
}
|
|
3547
|
+
}
|
|
3494
3548
|
export class PubTechneDraftVerdictRecord {
|
|
3495
3549
|
_client;
|
|
3496
3550
|
constructor(client) {
|