techne-sdk 0.1.0 → 0.2.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 +30 -0
- package/dist/auth/index.d.ts +151 -0
- package/dist/auth/index.js +167 -0
- package/dist/auth/placement.gen.d.ts +1 -0
- package/dist/auth/placement.gen.js +49 -0
- package/dist/catalog/catalog.gen.js +15 -15
- package/dist/connect.js +2 -1
- package/dist/generated/lexicons.d.ts +20 -20
- package/dist/generated/lexicons.js +10 -10
- 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/provenance.d.ts +1 -1
- package/dist/generated/types/pub/techne/draft/publisher.d.ts +1 -1
- package/dist/platform.d.ts +14 -0
- package/dist/platform.js +16 -0
- package/dist/wasm/index.d.ts +14 -2
- package/dist/wasm/techne-wasm.gen.js +1 -1
- package/dist/wasm/techne-wasm2js.gen.js +20671 -20227
- package/package.json +14 -4
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "techne-sdk",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "TechneSDK: sign in, 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).",
|
|
3
|
+
"version": "0.2.0",
|
|
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": {
|
|
7
7
|
"type": "git",
|
|
@@ -18,7 +18,8 @@
|
|
|
18
18
|
"sideEffects": false,
|
|
19
19
|
"files": [
|
|
20
20
|
"dist",
|
|
21
|
-
"README.md"
|
|
21
|
+
"README.md",
|
|
22
|
+
"CHANGELOG.md"
|
|
22
23
|
],
|
|
23
24
|
"main": "./dist/generated/index.js",
|
|
24
25
|
"types": "./dist/generated/index.d.ts",
|
|
@@ -81,18 +82,23 @@
|
|
|
81
82
|
"types": "./dist/links/index.d.ts",
|
|
82
83
|
"default": "./dist/links/index.js"
|
|
83
84
|
},
|
|
85
|
+
"./auth": {
|
|
86
|
+
"types": "./dist/auth/index.d.ts",
|
|
87
|
+
"default": "./dist/auth/index.js"
|
|
88
|
+
},
|
|
84
89
|
"./package.json": "./package.json"
|
|
85
90
|
},
|
|
86
91
|
"scripts": {
|
|
87
92
|
"codegen": "bash ./scripts/gen.sh",
|
|
88
93
|
"codegen:catalog": "node ./scripts/gen-catalog.mjs",
|
|
89
94
|
"codegen:nsid": "node ./scripts/gen-nsid.mjs",
|
|
95
|
+
"codegen:placement": "node ./scripts/gen-placement.mjs",
|
|
90
96
|
"build:wasm": "bash ./scripts/build-wasm.sh",
|
|
91
97
|
"inputs:check": "node ./scripts/inputs-sync.mjs --check",
|
|
92
98
|
"typecheck": "tsc --noEmit",
|
|
93
99
|
"build": "node ./scripts/build.mjs",
|
|
94
100
|
"prepack": "npm run build",
|
|
95
|
-
"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:package",
|
|
101
|
+
"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:package",
|
|
96
102
|
"test:inputs": "node --test ./scripts/inputs-sync.test.mjs",
|
|
97
103
|
"test:catalog": "node --test ./scripts/gen-catalog.test.mjs",
|
|
98
104
|
"test:nsid": "node --test ./scripts/gen-nsid.test.mjs",
|
|
@@ -101,11 +107,14 @@
|
|
|
101
107
|
"test:put": "node --import tsx --test ./src/put/put.test.mjs",
|
|
102
108
|
"test:query": "node --import tsx --test ./src/query/query.test.mjs",
|
|
103
109
|
"test:links": "node --import tsx --test ./src/links/links.test.mjs",
|
|
110
|
+
"test:auth": "node --import tsx --test ./src/auth/auth.test.mjs",
|
|
104
111
|
"test:package": "node --test ./scripts/package.test.mjs",
|
|
105
112
|
"gate": "bash ./scripts/gate.sh"
|
|
106
113
|
},
|
|
107
114
|
"dependencies": {
|
|
108
115
|
"@atproto/lexicon": "^0.4.3",
|
|
116
|
+
"@atproto/oauth-client-browser": "^0.5.10",
|
|
117
|
+
"@atproto/oauth-types": "^0.7.7",
|
|
109
118
|
"@atproto/xrpc": "^0.6.12"
|
|
110
119
|
},
|
|
111
120
|
"peerDependencies": {
|
|
@@ -118,6 +127,7 @@
|
|
|
118
127
|
},
|
|
119
128
|
"devDependencies": {
|
|
120
129
|
"@atproto/lex-cli": "^0.9.9",
|
|
130
|
+
"@atproto/oauth-scopes": "^0.5.14",
|
|
121
131
|
"@types/react": "^19.3.0",
|
|
122
132
|
"multiformats": "^9.9.0",
|
|
123
133
|
"react": "^19.2.3",
|