@everfur/sdk 0.1.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 (89) hide show
  1. package/CHANGELOG.md +74 -0
  2. package/LICENSE +21 -0
  3. package/README.md +161 -0
  4. package/animations/package.json +8 -0
  5. package/chat/package.json +8 -0
  6. package/client/package.json +8 -0
  7. package/core/package.json +8 -0
  8. package/dist/CameraPort-Cv31Pz7g.d.cts +29 -0
  9. package/dist/CameraPort-Cv31Pz7g.d.ts +29 -0
  10. package/dist/ChatController-CKdBvPj2.d.ts +146 -0
  11. package/dist/ChatController-CpUMvvZf.d.cts +146 -0
  12. package/dist/EverfurResult-D92-uL82.d.cts +240 -0
  13. package/dist/EverfurResult-D92-uL82.d.ts +240 -0
  14. package/dist/FilePort-BabWrv7I.d.cts +22 -0
  15. package/dist/FilePort-BabWrv7I.d.ts +22 -0
  16. package/dist/PhotoController-BItt5M7u.d.cts +43 -0
  17. package/dist/PhotoController-D8zMTdcW.d.ts +43 -0
  18. package/dist/TelemetryPort-BDNr00hu.d.cts +12 -0
  19. package/dist/TelemetryPort-BDNr00hu.d.ts +12 -0
  20. package/dist/animations/index.cjs +1997 -0
  21. package/dist/animations/index.d.cts +517 -0
  22. package/dist/animations/index.d.ts +517 -0
  23. package/dist/animations/index.js +1972 -0
  24. package/dist/cacheEpoch-DknKn3S0.d.cts +36 -0
  25. package/dist/cacheEpoch-DknKn3S0.d.ts +36 -0
  26. package/dist/chat/index.cjs +1170 -0
  27. package/dist/chat/index.d.cts +59 -0
  28. package/dist/chat/index.d.ts +59 -0
  29. package/dist/chat/index.js +1167 -0
  30. package/dist/client/index.cjs +2317 -0
  31. package/dist/client/index.d.cts +65 -0
  32. package/dist/client/index.d.ts +65 -0
  33. package/dist/client/index.js +2217 -0
  34. package/dist/config-BSjBdxrZ.d.cts +501 -0
  35. package/dist/config-CiJ0PVBB.d.ts +501 -0
  36. package/dist/core/index.cjs +3175 -0
  37. package/dist/core/index.d.cts +70 -0
  38. package/dist/core/index.d.ts +70 -0
  39. package/dist/core/index.js +3163 -0
  40. package/dist/identity-Brl-lDd6.d.cts +91 -0
  41. package/dist/identity-DK9zORrG.d.ts +91 -0
  42. package/dist/ids-CJ1S6adf.d.cts +46 -0
  43. package/dist/ids-CJ1S6adf.d.ts +46 -0
  44. package/dist/index.cjs +4488 -0
  45. package/dist/index.d.cts +156 -0
  46. package/dist/index.d.ts +156 -0
  47. package/dist/index.js +4464 -0
  48. package/dist/petsRepository-BEGb97M9.d.cts +326 -0
  49. package/dist/petsRepository-Bu18r2kK.d.ts +326 -0
  50. package/dist/photo/index.cjs +2189 -0
  51. package/dist/photo/index.d.cts +43 -0
  52. package/dist/photo/index.d.ts +43 -0
  53. package/dist/photo/index.js +2186 -0
  54. package/dist/projection-CeIUsbSk.d.cts +8 -0
  55. package/dist/projection-CeIUsbSk.d.ts +8 -0
  56. package/dist/records/index.cjs +2840 -0
  57. package/dist/records/index.d.cts +224 -0
  58. package/dist/records/index.d.ts +224 -0
  59. package/dist/records/index.js +2834 -0
  60. package/dist/requestFunnel-DuUH-kAe.d.cts +28 -0
  61. package/dist/requestFunnel-dio5OmR9.d.ts +28 -0
  62. package/dist/resolve-Dq_4_agU.d.cts +86 -0
  63. package/dist/resolve-Dq_4_agU.d.ts +86 -0
  64. package/dist/runtime-BgQnA594.d.cts +349 -0
  65. package/dist/runtime-CBA-LvdM.d.ts +349 -0
  66. package/dist/server/index.cjs +533 -0
  67. package/dist/server/index.d.cts +48 -0
  68. package/dist/server/index.d.ts +48 -0
  69. package/dist/server/index.js +530 -0
  70. package/dist/testing/index.cjs +825 -0
  71. package/dist/testing/index.d.cts +113 -0
  72. package/dist/testing/index.d.ts +113 -0
  73. package/dist/testing/index.js +822 -0
  74. package/dist/testing/rn/index.cjs +449 -0
  75. package/dist/testing/rn/index.d.cts +49 -0
  76. package/dist/testing/rn/index.d.ts +49 -0
  77. package/dist/testing/rn/index.js +444 -0
  78. package/dist/video/index.cjs +1941 -0
  79. package/dist/video/index.d.cts +66 -0
  80. package/dist/video/index.d.ts +66 -0
  81. package/dist/video/index.js +1938 -0
  82. package/package.json +311 -0
  83. package/photo/package.json +8 -0
  84. package/records/package.json +8 -0
  85. package/server/device-blocked.cjs +15 -0
  86. package/server/package.json +9 -0
  87. package/testing/package.json +8 -0
  88. package/testing/rn/package.json +8 -0
  89. package/video/package.json +8 -0
package/package.json ADDED
@@ -0,0 +1,311 @@
1
+ {
2
+ "name": "@everfur/sdk",
3
+ "version": "0.1.0",
4
+ "description": "Embed Everfur veterinary chat, health records, and pet-state surfaces in your React Native app.",
5
+ "license": "MIT",
6
+ "repository": {
7
+ "type": "git",
8
+ "url": "git+https://github.com/Everfur-Health/everfur-sdk-rn.git"
9
+ },
10
+ "homepage": "https://github.com/Everfur-Health/everfur-sdk-rn#readme",
11
+ "bugs": {
12
+ "url": "https://github.com/Everfur-Health/everfur-sdk-rn/issues"
13
+ },
14
+ "author": "Everfur Health, Inc.",
15
+ "type": "module",
16
+ "sideEffects": false,
17
+ "files": [
18
+ "CHANGELOG.md",
19
+ "dist",
20
+ "!dist/**/*.map",
21
+ "animations",
22
+ "chat",
23
+ "client",
24
+ "core",
25
+ "photo",
26
+ "records",
27
+ "server",
28
+ "testing",
29
+ "video"
30
+ ],
31
+ "publishConfig": {
32
+ "access": "public"
33
+ },
34
+ "main": "./dist/index.cjs",
35
+ "module": "./dist/index.js",
36
+ "react-native": "./dist/index.js",
37
+ "types": "./dist/index.d.ts",
38
+ "typesVersions": {
39
+ "*": {
40
+ "client": [
41
+ "./dist/client/index.d.ts"
42
+ ],
43
+ "server": [
44
+ "./dist/server/index.d.ts"
45
+ ],
46
+ "core": [
47
+ "./dist/core/index.d.ts"
48
+ ],
49
+ "chat": [
50
+ "./dist/chat/index.d.ts"
51
+ ],
52
+ "records": [
53
+ "./dist/records/index.d.ts"
54
+ ],
55
+ "video": [
56
+ "./dist/video/index.d.ts"
57
+ ],
58
+ "photo": [
59
+ "./dist/photo/index.d.ts"
60
+ ],
61
+ "animations": [
62
+ "./dist/animations/index.d.ts"
63
+ ],
64
+ "testing": [
65
+ "./dist/testing/index.d.ts"
66
+ ],
67
+ "testing/rn": [
68
+ "./dist/testing/rn/index.d.ts"
69
+ ]
70
+ }
71
+ },
72
+ "exports": {
73
+ ".": {
74
+ "react-native": "./dist/index.js",
75
+ "import": {
76
+ "types": "./dist/index.d.ts",
77
+ "default": "./dist/index.js"
78
+ },
79
+ "require": {
80
+ "types": "./dist/index.d.cts",
81
+ "default": "./dist/index.cjs"
82
+ }
83
+ },
84
+ "./client": {
85
+ "react-native": "./dist/client/index.js",
86
+ "import": {
87
+ "types": "./dist/client/index.d.ts",
88
+ "default": "./dist/client/index.js"
89
+ },
90
+ "require": {
91
+ "types": "./dist/client/index.d.cts",
92
+ "default": "./dist/client/index.cjs"
93
+ }
94
+ },
95
+ "./server": {
96
+ "react-native": null,
97
+ "node": {
98
+ "import": {
99
+ "types": "./dist/server/index.d.ts",
100
+ "default": "./dist/server/index.js"
101
+ },
102
+ "require": {
103
+ "types": "./dist/server/index.d.cts",
104
+ "default": "./dist/server/index.cjs"
105
+ }
106
+ },
107
+ "import": {
108
+ "types": "./dist/server/index.d.ts",
109
+ "default": "./dist/server/index.js"
110
+ },
111
+ "require": {
112
+ "types": "./dist/server/index.d.cts",
113
+ "default": "./dist/server/index.cjs"
114
+ }
115
+ },
116
+ "./core": {
117
+ "react-native": "./dist/core/index.js",
118
+ "import": {
119
+ "types": "./dist/core/index.d.ts",
120
+ "default": "./dist/core/index.js"
121
+ },
122
+ "require": {
123
+ "types": "./dist/core/index.d.cts",
124
+ "default": "./dist/core/index.cjs"
125
+ }
126
+ },
127
+ "./chat": {
128
+ "react-native": "./dist/chat/index.js",
129
+ "import": {
130
+ "types": "./dist/chat/index.d.ts",
131
+ "default": "./dist/chat/index.js"
132
+ },
133
+ "require": {
134
+ "types": "./dist/chat/index.d.cts",
135
+ "default": "./dist/chat/index.cjs"
136
+ }
137
+ },
138
+ "./records": {
139
+ "react-native": "./dist/records/index.js",
140
+ "import": {
141
+ "types": "./dist/records/index.d.ts",
142
+ "default": "./dist/records/index.js"
143
+ },
144
+ "require": {
145
+ "types": "./dist/records/index.d.cts",
146
+ "default": "./dist/records/index.cjs"
147
+ }
148
+ },
149
+ "./video": {
150
+ "react-native": "./dist/video/index.js",
151
+ "import": {
152
+ "types": "./dist/video/index.d.ts",
153
+ "default": "./dist/video/index.js"
154
+ },
155
+ "require": {
156
+ "types": "./dist/video/index.d.cts",
157
+ "default": "./dist/video/index.cjs"
158
+ }
159
+ },
160
+ "./photo": {
161
+ "react-native": "./dist/photo/index.js",
162
+ "import": {
163
+ "types": "./dist/photo/index.d.ts",
164
+ "default": "./dist/photo/index.js"
165
+ },
166
+ "require": {
167
+ "types": "./dist/photo/index.d.cts",
168
+ "default": "./dist/photo/index.cjs"
169
+ }
170
+ },
171
+ "./animations": {
172
+ "react-native": "./dist/animations/index.js",
173
+ "import": {
174
+ "types": "./dist/animations/index.d.ts",
175
+ "default": "./dist/animations/index.js"
176
+ },
177
+ "require": {
178
+ "types": "./dist/animations/index.d.cts",
179
+ "default": "./dist/animations/index.cjs"
180
+ }
181
+ },
182
+ "./testing": {
183
+ "react-native": "./dist/testing/index.js",
184
+ "import": {
185
+ "types": "./dist/testing/index.d.ts",
186
+ "default": "./dist/testing/index.js"
187
+ },
188
+ "require": {
189
+ "types": "./dist/testing/index.d.cts",
190
+ "default": "./dist/testing/index.cjs"
191
+ }
192
+ },
193
+ "./testing/rn": {
194
+ "react-native": "./dist/testing/rn/index.js",
195
+ "import": {
196
+ "types": "./dist/testing/rn/index.d.ts",
197
+ "default": "./dist/testing/rn/index.js"
198
+ },
199
+ "require": {
200
+ "types": "./dist/testing/rn/index.d.cts",
201
+ "default": "./dist/testing/rn/index.cjs"
202
+ }
203
+ },
204
+ "./package.json": "./package.json"
205
+ },
206
+ "scripts": {
207
+ "build": "tsup && node scripts/strip-sourcemap-pragma.mjs && node scripts/generate-subpath-shims.mjs",
208
+ "build:bob": "react-native-builder-bob build",
209
+ "clean": "rm -rf dist lib temp && node scripts/generate-subpath-shims.mjs --clean",
210
+ "typecheck": "tsc --noEmit",
211
+ "lint": "eslint .",
212
+ "test": "vitest run",
213
+ "test:unit": "vitest run --coverage",
214
+ "test:contract": "vitest run tests/contract",
215
+ "contract:errors": "node scripts/sync-error-registry.mjs",
216
+ "contract:errors:check": "node scripts/sync-error-registry.mjs --check",
217
+ "contract:types": "node scripts/generate-contract-types.mjs",
218
+ "contract:types:check": "node scripts/generate-contract-types.mjs --check",
219
+ "contract:check": "npm run contract:types:check && npm run contract:errors:check",
220
+ "api:check": "api-extractor run --config api-extractor.json && api-extractor run --config api-extractor.server.json && api-extractor run --config api-extractor.records.json && api-extractor run --config api-extractor.video.json && api-extractor run --config api-extractor.photo.json && api-extractor run --config api-extractor.animations.json && api-extractor run --config api-extractor.testing-rn.json && api-extractor run --config api-extractor.client.json && api-extractor run --config api-extractor.core.json && api-extractor run --config api-extractor.chat.json && api-extractor run --config api-extractor.testing.json",
221
+ "api:update": "api-extractor run --local --config api-extractor.json && api-extractor run --local --config api-extractor.server.json && api-extractor run --local --config api-extractor.records.json && api-extractor run --local --config api-extractor.video.json && api-extractor run --local --config api-extractor.photo.json && api-extractor run --local --config api-extractor.animations.json && api-extractor run --local --config api-extractor.testing-rn.json && api-extractor run --local --config api-extractor.client.json && api-extractor run --local --config api-extractor.core.json && api-extractor run --local --config api-extractor.chat.json && api-extractor run --local --config api-extractor.testing.json",
222
+ "attw": "attw --pack",
223
+ "verify:pack": "node scripts/verify-packed-install.mjs",
224
+ "docs:check": "node scripts/check-docs-compile.mjs && node scripts/build-docs-html.mjs --check",
225
+ "docs:html": "node scripts/build-docs-html.mjs",
226
+ "docs:html:check": "node scripts/build-docs-html.mjs --check",
227
+ "prepublishOnly": "npm run clean && npm run build",
228
+ "prepare": "npm run build"
229
+ },
230
+ "dependencies": {
231
+ "react-native-sse": "1.2.1",
232
+ "zod": "3.23.0"
233
+ },
234
+ "peerDependencies": {
235
+ "expo-file-system": ">=17 <19",
236
+ "expo-image-manipulator": ">=12 <14",
237
+ "react": ">=18",
238
+ "react-native": ">=0.74",
239
+ "react-native-safe-area-context": ">=5",
240
+ "react-native-vision-camera": ">=4"
241
+ },
242
+ "peerDependenciesMeta": {
243
+ "react-native-vision-camera": {
244
+ "optional": true
245
+ },
246
+ "expo-image-manipulator": {
247
+ "optional": true
248
+ },
249
+ "expo-file-system": {
250
+ "optional": true
251
+ }
252
+ },
253
+ "devDependencies": {
254
+ "@arethetypeswrong/cli": "^0.18.5",
255
+ "@eslint/js": "^9.9.0",
256
+ "@microsoft/api-extractor": "^7.47.0",
257
+ "@types/node": "^20.14.0",
258
+ "@types/react": "^18.3.0",
259
+ "@types/react-test-renderer": "^18.0.0",
260
+ "@vitest/coverage-v8": "^2.0.0",
261
+ "eslint": "^9.9.0",
262
+ "eslint-plugin-boundaries": "^5.0.0",
263
+ "fast-check": "^3.20.0",
264
+ "react": "18.2.0",
265
+ "react-native": "^0.74.0",
266
+ "react-native-builder-bob": "^0.30.0",
267
+ "react-native-safe-area-context": "^5.9.1",
268
+ "react-test-renderer": "18.2.0",
269
+ "tsup": "^8.2.0",
270
+ "typescript": "^5.5.0",
271
+ "typescript-eslint": "^8.0.0",
272
+ "vitest": "^2.0.0"
273
+ },
274
+ "overrides": {
275
+ "react": "$react",
276
+ "react-test-renderer": "$react-test-renderer"
277
+ },
278
+ "engines": {
279
+ "node": ">=18"
280
+ },
281
+ "react-native-builder-bob": {
282
+ "source": "src",
283
+ "output": "lib",
284
+ "targets": [
285
+ [
286
+ "module",
287
+ {
288
+ "esm": true
289
+ }
290
+ ],
291
+ [
292
+ "commonjs"
293
+ ],
294
+ [
295
+ "typescript",
296
+ {
297
+ "project": "tsconfig.json"
298
+ }
299
+ ]
300
+ ]
301
+ },
302
+ "keywords": [
303
+ "everfur",
304
+ "pet-health",
305
+ "react-native",
306
+ "sdk",
307
+ "veterinary",
308
+ "chat",
309
+ "expo"
310
+ ]
311
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "//": "GENERATED by scripts/subpath-shims.mjs from the package.json \"exports\" map. Do not edit by hand; run `npm run build`.",
3
+ "react-native": "../dist/photo/index.js",
4
+ "module": "../dist/photo/index.js",
5
+ "main": "../dist/photo/index.cjs",
6
+ "types": "../dist/photo/index.d.ts",
7
+ "sideEffects": false
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "//": "GENERATED by scripts/subpath-shims.mjs from the package.json \"exports\" map. Do not edit by hand; run `npm run build`.",
3
+ "react-native": "../dist/records/index.js",
4
+ "module": "../dist/records/index.js",
5
+ "main": "../dist/records/index.cjs",
6
+ "types": "../dist/records/index.d.ts",
7
+ "sideEffects": false
8
+ }
@@ -0,0 +1,15 @@
1
+ // GENERATED by scripts/subpath-shims.mjs from the package.json "exports" map. Do not edit by hand; run `npm run build`.
2
+ 'use strict';
3
+
4
+ /*
5
+ * "@everfur/sdk/server" is the partner BACKEND module. It carries the sk_partner_ session minter
6
+ * and the partner secret-key request header, and must never enter an app bundle. The package
7
+ * "exports" map already withholds the react-native condition, but a resolver with exports disabled
8
+ * (Metro 0.80.x, webpack 4, node10) ignores conditions and would otherwise fall through to "main".
9
+ * This module is what those resolvers hit instead.
10
+ */
11
+ throw new Error(
12
+ '@everfur/sdk/server is a server-only module and must not be bundled into an app. ' +
13
+ 'It holds the sk_partner_ session minter; mint sessions on your backend and send the ' +
14
+ 'short-lived session token to the device instead.',
15
+ );
@@ -0,0 +1,9 @@
1
+ {
2
+ "//": "GENERATED by scripts/subpath-shims.mjs from the package.json \"exports\" map. Do not edit by hand; run `npm run build`.",
3
+ "react-native": "./device-blocked.cjs",
4
+ "browser": "./device-blocked.cjs",
5
+ "module": "../dist/server/index.js",
6
+ "main": "../dist/server/index.cjs",
7
+ "types": "../dist/server/index.d.ts",
8
+ "sideEffects": false
9
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "//": "GENERATED by scripts/subpath-shims.mjs from the package.json \"exports\" map. Do not edit by hand; run `npm run build`.",
3
+ "react-native": "../dist/testing/index.js",
4
+ "module": "../dist/testing/index.js",
5
+ "main": "../dist/testing/index.cjs",
6
+ "types": "../dist/testing/index.d.ts",
7
+ "sideEffects": false
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "//": "GENERATED by scripts/subpath-shims.mjs from the package.json \"exports\" map. Do not edit by hand; run `npm run build`.",
3
+ "react-native": "../../dist/testing/rn/index.js",
4
+ "module": "../../dist/testing/rn/index.js",
5
+ "main": "../../dist/testing/rn/index.cjs",
6
+ "types": "../../dist/testing/rn/index.d.ts",
7
+ "sideEffects": false
8
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "//": "GENERATED by scripts/subpath-shims.mjs from the package.json \"exports\" map. Do not edit by hand; run `npm run build`.",
3
+ "react-native": "../dist/video/index.js",
4
+ "module": "../dist/video/index.js",
5
+ "main": "../dist/video/index.cjs",
6
+ "types": "../dist/video/index.d.ts",
7
+ "sideEffects": false
8
+ }