techne-sdk 0.3.3 → 0.3.8

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 (66) hide show
  1. package/CHANGELOG.md +160 -0
  2. package/README.md +5 -4
  3. package/dist/auth/app-key.js +2 -2
  4. package/dist/auth/index.js +1 -1
  5. package/dist/catalog/catalog.gen.d.ts +24 -24
  6. package/dist/catalog/catalog.gen.js +356 -66
  7. package/dist/connect.d.ts +96 -12
  8. package/dist/connect.js +83 -12
  9. package/dist/generated/lexicons.d.ts +140 -36
  10. package/dist/generated/lexicons.js +77 -18
  11. package/dist/generated/nsid.d.ts +4 -0
  12. package/dist/generated/nsid.js +4 -0
  13. package/dist/generated/nsid.json +4 -0
  14. package/dist/generated/types/pub/techne/draft/beacon.d.ts +2 -0
  15. package/dist/generated/types/pub/techne/draft/collective.d.ts +1 -1
  16. package/dist/generated/types/pub/techne/draft/identity/attest.d.ts +3 -0
  17. package/dist/generated/types/pub/techne/draft/identity/attest.js +7 -0
  18. package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.d.ts +3 -0
  19. package/dist/generated/types/pub/techne/draft/identity/beginAddMethod.js +7 -0
  20. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.d.ts +6 -0
  21. package/dist/generated/types/pub/techne/draft/identity/finishAddMethod.js +14 -0
  22. package/dist/generated/types/pub/techne/draft/identity/resolve.d.ts +6 -0
  23. package/dist/generated/types/pub/techne/draft/membership.d.ts +1 -1
  24. package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.d.ts +3 -0
  25. package/dist/generated/types/pub/techne/draft/permissioned/deleteRecord.js +7 -0
  26. package/dist/generated/types/pub/techne/draft/permissioned/putRecord.d.ts +3 -0
  27. package/dist/generated/types/pub/techne/draft/permissioned/putRecord.js +7 -0
  28. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.d.ts +4 -1
  29. package/dist/generated/types/pub/techne/draft/permissioned/putRecords.js +7 -0
  30. package/dist/generated/types/pub/techne/draft/summary.d.ts +2 -0
  31. package/dist/item.d.ts +130 -0
  32. package/dist/item.js +74 -0
  33. package/dist/links/index.d.ts +15 -8
  34. package/dist/links/index.js +18 -0
  35. package/dist/put/contacts.d.ts +2 -2
  36. package/dist/put/index.d.ts +6 -9
  37. package/dist/put/index.js +8 -166
  38. package/dist/put/put.d.ts +14 -0
  39. package/dist/put/put.js +206 -0
  40. package/dist/query/compose.d.ts +246 -0
  41. package/dist/query/compose.js +572 -0
  42. package/dist/query/hosts.d.ts +98 -1
  43. package/dist/query/hosts.js +143 -2
  44. package/dist/query/index.d.ts +60 -29
  45. package/dist/query/index.js +55 -26
  46. package/dist/react/context.d.ts +18 -0
  47. package/dist/react/context.js +19 -0
  48. package/dist/react/index.d.ts +14 -0
  49. package/dist/react/index.js +14 -0
  50. package/dist/react/query.d.ts +75 -0
  51. package/dist/react/query.js +116 -0
  52. package/dist/read/index.d.ts +60 -0
  53. package/dist/read/index.js +107 -0
  54. package/dist/resend.d.ts +25 -0
  55. package/dist/resend.js +52 -0
  56. package/dist/versions/entities.gen.d.ts +8 -0
  57. package/dist/versions/entities.gen.js +9 -0
  58. package/dist/versions/index.d.ts +59 -17
  59. package/dist/versions/index.js +156 -22
  60. package/dist/versions/react.d.ts +1 -1
  61. package/dist/versions/react.js +1 -1
  62. package/dist/versions/text.d.ts +19 -0
  63. package/dist/versions/text.js +73 -0
  64. package/dist/wasm/techne-wasm.gen.js +1 -1
  65. package/dist/wasm/techne-wasm2js.gen.js +8928 -8927
  66. package/package.json +17 -5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "techne-sdk",
3
- "version": "0.3.3",
3
+ "version": "0.3.8",
4
4
  "description": "TechneSDK: sign in (\"Sign in with Techne\", browser OAuth), put, query, useEvent and the read-time check for apps on the Techne platform. Types and clients are generated from the published lexicons; the logic that must match the platform exactly (the check, version ranking, put's order) is Rust compiled to WebAssembly (wasm2js on hosts without it). Datetime fields are plain strings: send Date.prototype.toISOString() (UTC, trailing Z).",
5
5
  "license": "MIT",
6
6
  "repository": {
@@ -57,8 +57,12 @@
57
57
  "default": "./dist/versions/index.js"
58
58
  },
59
59
  "./react": {
60
- "types": "./dist/versions/react.d.ts",
61
- "default": "./dist/versions/react.js"
60
+ "types": "./dist/react/index.d.ts",
61
+ "default": "./dist/react/index.js"
62
+ },
63
+ "./react/query": {
64
+ "types": "./dist/react/query.d.ts",
65
+ "default": "./dist/react/query.js"
62
66
  },
63
67
  "./wasm": {
64
68
  "types": "./dist/wasm/index.d.ts",
@@ -101,7 +105,7 @@
101
105
  "typecheck": "tsc --noEmit && tsc --noEmit -p src/types-cli",
102
106
  "build": "node ./scripts/build.mjs",
103
107
  "prepack": "npm run build",
104
- "test": "npm run test:inputs && npm run test:catalog && npm run test:nsid && npm run test:versions && npm run test:wasm && npm run test:put && npm run test:query && npm run test:links && npm run test:auth && npm run test:types-cli && npm run test:package",
108
+ "test": "npm run test:inputs && npm run test:catalog && npm run test:nsid && npm run test:versions && npm run test:wasm && npm run test:put && npm run test:query && npm run test:links && npm run test:read && npm run test:react && npm run test:resend && npm run test:auth && npm run test:types-cli && npm run test:package",
105
109
  "test:inputs": "node --test ./scripts/inputs-sync.test.mjs",
106
110
  "test:catalog": "node --test ./scripts/gen-catalog.test.mjs",
107
111
  "test:nsid": "node --test ./scripts/gen-nsid.test.mjs",
@@ -110,6 +114,9 @@
110
114
  "test:put": "node --import tsx --test ./src/put/put.test.mjs",
111
115
  "test:query": "node --import tsx --test ./src/query/query.test.mjs",
112
116
  "test:links": "node --import tsx --test ./src/links/links.test.mjs",
117
+ "test:read": "node --import tsx --test ./src/read/read.test.mjs",
118
+ "test:react": "node --import tsx --test ./src/react/react.test.mjs",
119
+ "test:resend": "node --import tsx --test ./src/resend.test.mjs",
113
120
  "test:auth": "node --import tsx --test ./src/auth/auth.test.mjs",
114
121
  "test:package": "node --test ./scripts/package.test.mjs",
115
122
  "gate": "bash ./scripts/gate.sh",
@@ -124,16 +131,21 @@
124
131
  "@atproto/xrpc": "^0.6.12"
125
132
  },
126
133
  "peerDependencies": {
127
- "react": "^19"
134
+ "react": "^19",
135
+ "@tanstack/react-query": "^5"
128
136
  },
129
137
  "peerDependenciesMeta": {
130
138
  "react": {
131
139
  "optional": true
140
+ },
141
+ "@tanstack/react-query": {
142
+ "optional": true
132
143
  }
133
144
  },
134
145
  "devDependencies": {
135
146
  "@atproto/lex-cli": "^0.9.9",
136
147
  "@atproto/oauth-scopes": "^0.5.14",
148
+ "@tanstack/react-query": "^5.107.1",
137
149
  "@types/node": "^22.20.5",
138
150
  "@types/react": "^19.3.0",
139
151
  "multiformats": "^9.9.0",