techne-sdk 0.13.1 → 0.15.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (39) hide show
  1. package/CHANGELOG.md +93 -3
  2. package/README.md +66 -17
  3. package/dist/auth/hints.d.ts +14 -0
  4. package/dist/auth/hints.js +18 -0
  5. package/dist/auth/index.d.ts +19 -1
  6. package/dist/auth/index.js +48 -1
  7. package/dist/catalog/catalog.gen.d.ts +35 -29
  8. package/dist/catalog/catalog.gen.js +427 -64
  9. package/dist/generated/index.d.ts +56 -0
  10. package/dist/generated/index.js +72 -0
  11. package/dist/generated/lexicons.d.ts +164 -26
  12. package/dist/generated/lexicons.js +84 -12
  13. package/dist/generated/nsid.d.ts +8 -0
  14. package/dist/generated/nsid.js +8 -0
  15. package/dist/generated/nsid.json +8 -0
  16. package/dist/generated/records.d.ts +94 -90
  17. package/dist/generated/types/pub/techne/draft/beacon.d.ts +2 -0
  18. package/dist/generated/types/pub/techne/draft/derivation.d.ts +1 -1
  19. package/dist/generated/types/pub/techne/draft/evaluation.d.ts +3 -1
  20. package/dist/generated/types/pub/techne/draft/follow.d.ts +14 -0
  21. package/dist/generated/types/pub/techne/draft/follow.js +12 -0
  22. package/dist/generated/types/pub/techne/draft/notificationPref.d.ts +16 -0
  23. package/dist/generated/types/pub/techne/draft/notificationPref.js +12 -0
  24. package/dist/generated/types/pub/techne/draft/org.d.ts +2 -2
  25. package/dist/generated/types/pub/techne/draft/statement.d.ts +1 -1
  26. package/dist/query/index.d.ts +3 -2
  27. package/dist/react/sign-in.d.ts +34 -0
  28. package/dist/react/sign-in.js +52 -0
  29. package/dist/session/phone.d.ts +7 -6
  30. package/dist/session/phone.js +7 -6
  31. package/dist/session/relay.d.ts +1 -1
  32. package/dist/session/relay.js +1 -1
  33. package/dist/sign-in/index.d.ts +33 -0
  34. package/dist/sign-in/index.js +479 -0
  35. package/dist/sign-in/styles.d.ts +22 -0
  36. package/dist/sign-in/styles.js +108 -0
  37. package/dist/wasm/techne-wasm.gen.js +1 -1
  38. package/dist/wasm/techne-wasm2js.gen.js +7330 -7332
  39. package/package.json +14 -3
@@ -48,6 +48,7 @@ import * as PubTechneDraftEventDetail from './types/pub/techne/draft/event/detai
48
48
  import * as PubTechneDraftEventListing from './types/pub/techne/draft/event/listing.js';
49
49
  import * as PubTechneDraftFeedRecipe from './types/pub/techne/draft/feed/recipe.js';
50
50
  import * as PubTechneDraftFinancials from './types/pub/techne/draft/financials.js';
51
+ import * as PubTechneDraftFollow from './types/pub/techne/draft/follow.js';
51
52
  import * as PubTechneDraftGeo from './types/pub/techne/draft/geo.js';
52
53
  import * as PubTechneDraftHeldAt from './types/pub/techne/draft/heldAt.js';
53
54
  import * as PubTechneDraftIdentityAccountsForPhones from './types/pub/techne/draft/identity/accountsForPhones.js';
@@ -85,6 +86,7 @@ import * as PubTechneDraftInvite from './types/pub/techne/draft/invite.js';
85
86
  import * as PubTechneDraftMarketAsk from './types/pub/techne/draft/market/ask.js';
86
87
  import * as PubTechneDraftMarketOffer from './types/pub/techne/draft/market/offer.js';
87
88
  import * as PubTechneDraftMembership from './types/pub/techne/draft/membership.js';
89
+ import * as PubTechneDraftNotificationPref from './types/pub/techne/draft/notificationPref.js';
88
90
  import * as PubTechneDraftNotificationState from './types/pub/techne/draft/notificationState.js';
89
91
  import * as PubTechneDraftOperator from './types/pub/techne/draft/operator.js';
90
92
  import * as PubTechneDraftOrg from './types/pub/techne/draft/org.js';
@@ -219,6 +221,7 @@ export * as PubTechneDraftEventDetail from './types/pub/techne/draft/event/detai
219
221
  export * as PubTechneDraftEventListing from './types/pub/techne/draft/event/listing.js';
220
222
  export * as PubTechneDraftFeedRecipe from './types/pub/techne/draft/feed/recipe.js';
221
223
  export * as PubTechneDraftFinancials from './types/pub/techne/draft/financials.js';
224
+ export * as PubTechneDraftFollow from './types/pub/techne/draft/follow.js';
222
225
  export * as PubTechneDraftGeo from './types/pub/techne/draft/geo.js';
223
226
  export * as PubTechneDraftHeldAt from './types/pub/techne/draft/heldAt.js';
224
227
  export * as PubTechneDraftIdentityAccountsForPhones from './types/pub/techne/draft/identity/accountsForPhones.js';
@@ -258,6 +261,7 @@ export * as PubTechneDraftLocationEntry from './types/pub/techne/draft/locationE
258
261
  export * as PubTechneDraftMarketAsk from './types/pub/techne/draft/market/ask.js';
259
262
  export * as PubTechneDraftMarketOffer from './types/pub/techne/draft/market/offer.js';
260
263
  export * as PubTechneDraftMembership from './types/pub/techne/draft/membership.js';
264
+ export * as PubTechneDraftNotificationPref from './types/pub/techne/draft/notificationPref.js';
261
265
  export * as PubTechneDraftNotificationState from './types/pub/techne/draft/notificationState.js';
262
266
  export * as PubTechneDraftOperator from './types/pub/techne/draft/operator.js';
263
267
  export * as PubTechneDraftOrg from './types/pub/techne/draft/org.js';
@@ -567,12 +571,14 @@ export declare class PubTechneDraftNS {
567
571
  distinctFrom: PubTechneDraftDistinctFromRecord;
568
572
  evaluation: PubTechneDraftEvaluationRecord;
569
573
  financials: PubTechneDraftFinancialsRecord;
574
+ follow: PubTechneDraftFollowRecord;
570
575
  geo: PubTechneDraftGeoRecord;
571
576
  heldAt: PubTechneDraftHeldAtRecord;
572
577
  interest: PubTechneDraftInterestRecord;
573
578
  introProposal: PubTechneDraftIntroProposalRecord;
574
579
  invite: PubTechneDraftInviteRecord;
575
580
  membership: PubTechneDraftMembershipRecord;
581
+ notificationPref: PubTechneDraftNotificationPrefRecord;
576
582
  notificationState: PubTechneDraftNotificationStateRecord;
577
583
  operator: PubTechneDraftOperatorRecord;
578
584
  org: PubTechneDraftOrgRecord;
@@ -1727,6 +1733,31 @@ export declare class PubTechneDraftFinancialsRecord {
1727
1733
  }>;
1728
1734
  delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
1729
1735
  }
1736
+ export declare class PubTechneDraftFollowRecord {
1737
+ _client: XrpcClient;
1738
+ constructor(client: XrpcClient);
1739
+ list(params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
1740
+ cursor?: string;
1741
+ records: {
1742
+ uri: string;
1743
+ value: PubTechneDraftFollow.Record;
1744
+ }[];
1745
+ }>;
1746
+ get(params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
1747
+ uri: string;
1748
+ cid: string;
1749
+ value: PubTechneDraftFollow.Record;
1750
+ }>;
1751
+ create(params: OmitKey<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftFollow.Record>, headers?: Record<string, string>): Promise<{
1752
+ uri: string;
1753
+ cid: string;
1754
+ }>;
1755
+ put(params: OmitKey<ComAtprotoRepoPutRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftFollow.Record>, headers?: Record<string, string>): Promise<{
1756
+ uri: string;
1757
+ cid: string;
1758
+ }>;
1759
+ delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
1760
+ }
1730
1761
  export declare class PubTechneDraftGeoRecord {
1731
1762
  _client: XrpcClient;
1732
1763
  constructor(client: XrpcClient);
@@ -1877,6 +1908,31 @@ export declare class PubTechneDraftMembershipRecord {
1877
1908
  }>;
1878
1909
  delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
1879
1910
  }
1911
+ export declare class PubTechneDraftNotificationPrefRecord {
1912
+ _client: XrpcClient;
1913
+ constructor(client: XrpcClient);
1914
+ list(params: OmitKey<ComAtprotoRepoListRecords.QueryParams, 'collection'>): Promise<{
1915
+ cursor?: string;
1916
+ records: {
1917
+ uri: string;
1918
+ value: PubTechneDraftNotificationPref.Record;
1919
+ }[];
1920
+ }>;
1921
+ get(params: OmitKey<ComAtprotoRepoGetRecord.QueryParams, 'collection'>): Promise<{
1922
+ uri: string;
1923
+ cid: string;
1924
+ value: PubTechneDraftNotificationPref.Record;
1925
+ }>;
1926
+ create(params: OmitKey<ComAtprotoRepoCreateRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftNotificationPref.Record>, headers?: Record<string, string>): Promise<{
1927
+ uri: string;
1928
+ cid: string;
1929
+ }>;
1930
+ put(params: OmitKey<ComAtprotoRepoPutRecord.InputSchema, 'collection' | 'record'>, record: Un$Typed<PubTechneDraftNotificationPref.Record>, headers?: Record<string, string>): Promise<{
1931
+ uri: string;
1932
+ cid: string;
1933
+ }>;
1934
+ delete(params: OmitKey<ComAtprotoRepoDeleteRecord.InputSchema, 'collection'>, headers?: Record<string, string>): Promise<void>;
1935
+ }
1880
1936
  export declare class PubTechneDraftNotificationStateRecord {
1881
1937
  _client: XrpcClient;
1882
1938
  constructor(client: XrpcClient);
@@ -132,6 +132,7 @@ export * as PubTechneDraftEventDetail from './types/pub/techne/draft/event/detai
132
132
  export * as PubTechneDraftEventListing from './types/pub/techne/draft/event/listing.js';
133
133
  export * as PubTechneDraftFeedRecipe from './types/pub/techne/draft/feed/recipe.js';
134
134
  export * as PubTechneDraftFinancials from './types/pub/techne/draft/financials.js';
135
+ export * as PubTechneDraftFollow from './types/pub/techne/draft/follow.js';
135
136
  export * as PubTechneDraftGeo from './types/pub/techne/draft/geo.js';
136
137
  export * as PubTechneDraftHeldAt from './types/pub/techne/draft/heldAt.js';
137
138
  export * as PubTechneDraftIdentityAccountsForPhones from './types/pub/techne/draft/identity/accountsForPhones.js';
@@ -171,6 +172,7 @@ export * as PubTechneDraftLocationEntry from './types/pub/techne/draft/locationE
171
172
  export * as PubTechneDraftMarketAsk from './types/pub/techne/draft/market/ask.js';
172
173
  export * as PubTechneDraftMarketOffer from './types/pub/techne/draft/market/offer.js';
173
174
  export * as PubTechneDraftMembership from './types/pub/techne/draft/membership.js';
175
+ export * as PubTechneDraftNotificationPref from './types/pub/techne/draft/notificationPref.js';
174
176
  export * as PubTechneDraftNotificationState from './types/pub/techne/draft/notificationState.js';
175
177
  export * as PubTechneDraftOperator from './types/pub/techne/draft/operator.js';
176
178
  export * as PubTechneDraftOrg from './types/pub/techne/draft/org.js';
@@ -604,12 +606,14 @@ export class PubTechneDraftNS {
604
606
  distinctFrom;
605
607
  evaluation;
606
608
  financials;
609
+ follow;
607
610
  geo;
608
611
  heldAt;
609
612
  interest;
610
613
  introProposal;
611
614
  invite;
612
615
  membership;
616
+ notificationPref;
613
617
  notificationState;
614
618
  operator;
615
619
  org;
@@ -696,12 +700,14 @@ export class PubTechneDraftNS {
696
700
  this.distinctFrom = new PubTechneDraftDistinctFromRecord(client);
697
701
  this.evaluation = new PubTechneDraftEvaluationRecord(client);
698
702
  this.financials = new PubTechneDraftFinancialsRecord(client);
703
+ this.follow = new PubTechneDraftFollowRecord(client);
699
704
  this.geo = new PubTechneDraftGeoRecord(client);
700
705
  this.heldAt = new PubTechneDraftHeldAtRecord(client);
701
706
  this.interest = new PubTechneDraftInterestRecord(client);
702
707
  this.introProposal = new PubTechneDraftIntroProposalRecord(client);
703
708
  this.invite = new PubTechneDraftInviteRecord(client);
704
709
  this.membership = new PubTechneDraftMembershipRecord(client);
710
+ this.notificationPref = new PubTechneDraftNotificationPrefRecord(client);
705
711
  this.notificationState = new PubTechneDraftNotificationStateRecord(client);
706
712
  this.operator = new PubTechneDraftOperatorRecord(client);
707
713
  this.org = new PubTechneDraftOrgRecord(client);
@@ -2533,6 +2539,39 @@ export class PubTechneDraftFinancialsRecord {
2533
2539
  await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.financials', ...params }, { headers });
2534
2540
  }
2535
2541
  }
2542
+ export class PubTechneDraftFollowRecord {
2543
+ _client;
2544
+ constructor(client) {
2545
+ this._client = client;
2546
+ }
2547
+ async list(params) {
2548
+ const res = await this._client.call('com.atproto.repo.listRecords', {
2549
+ collection: 'pub.techne.draft.follow',
2550
+ ...params,
2551
+ });
2552
+ return res.data;
2553
+ }
2554
+ async get(params) {
2555
+ const res = await this._client.call('com.atproto.repo.getRecord', {
2556
+ collection: 'pub.techne.draft.follow',
2557
+ ...params,
2558
+ });
2559
+ return res.data;
2560
+ }
2561
+ async create(params, record, headers) {
2562
+ const collection = 'pub.techne.draft.follow';
2563
+ const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
2564
+ return res.data;
2565
+ }
2566
+ async put(params, record, headers) {
2567
+ const collection = 'pub.techne.draft.follow';
2568
+ const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
2569
+ return res.data;
2570
+ }
2571
+ async delete(params, headers) {
2572
+ await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.follow', ...params }, { headers });
2573
+ }
2574
+ }
2536
2575
  export class PubTechneDraftGeoRecord {
2537
2576
  _client;
2538
2577
  constructor(client) {
@@ -2736,6 +2775,39 @@ export class PubTechneDraftMembershipRecord {
2736
2775
  await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.membership', ...params }, { headers });
2737
2776
  }
2738
2777
  }
2778
+ export class PubTechneDraftNotificationPrefRecord {
2779
+ _client;
2780
+ constructor(client) {
2781
+ this._client = client;
2782
+ }
2783
+ async list(params) {
2784
+ const res = await this._client.call('com.atproto.repo.listRecords', {
2785
+ collection: 'pub.techne.draft.notificationPref',
2786
+ ...params,
2787
+ });
2788
+ return res.data;
2789
+ }
2790
+ async get(params) {
2791
+ const res = await this._client.call('com.atproto.repo.getRecord', {
2792
+ collection: 'pub.techne.draft.notificationPref',
2793
+ ...params,
2794
+ });
2795
+ return res.data;
2796
+ }
2797
+ async create(params, record, headers) {
2798
+ const collection = 'pub.techne.draft.notificationPref';
2799
+ const res = await this._client.call('com.atproto.repo.createRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
2800
+ return res.data;
2801
+ }
2802
+ async put(params, record, headers) {
2803
+ const collection = 'pub.techne.draft.notificationPref';
2804
+ const res = await this._client.call('com.atproto.repo.putRecord', undefined, { collection, ...params, record: { ...record, $type: collection } }, { encoding: 'application/json', headers });
2805
+ return res.data;
2806
+ }
2807
+ async delete(params, headers) {
2808
+ await this._client.call('com.atproto.repo.deleteRecord', undefined, { collection: 'pub.techne.draft.notificationPref', ...params }, { headers });
2809
+ }
2810
+ }
2739
2811
  export class PubTechneDraftNotificationStateRecord {
2740
2812
  _client;
2741
2813
  constructor(client) {