@antiphony/shared 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 (71) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +50 -0
  3. package/dist/cjs/api-codecs.cjs +971 -0
  4. package/dist/cjs/api-codecs.d.cts +542 -0
  5. package/dist/cjs/errors/index.cjs +56 -0
  6. package/dist/cjs/errors/index.d.cts +45 -0
  7. package/dist/cjs/index.cjs +1276 -0
  8. package/dist/cjs/index.d.cts +11 -0
  9. package/dist/cjs/nsid.cjs +37 -0
  10. package/dist/cjs/nsid.d.cts +42 -0
  11. package/dist/cjs/observability/index.cjs +58 -0
  12. package/dist/cjs/observability/index.d.cts +1 -0
  13. package/dist/cjs/observability/report-error.cjs +58 -0
  14. package/dist/cjs/observability/report-error.d.cts +48 -0
  15. package/dist/cjs/types/api.cjs +726 -0
  16. package/dist/cjs/types/api.d.cts +494 -0
  17. package/dist/cjs/types/audio.cjs +835 -0
  18. package/dist/cjs/types/audio.d.cts +1149 -0
  19. package/dist/cjs/types/blob.cjs +23 -0
  20. package/dist/cjs/types/blob.d.cts +45 -0
  21. package/dist/cjs/types/channels.cjs +170 -0
  22. package/dist/cjs/types/channels.d.cts +262 -0
  23. package/dist/cjs/types/records.cjs +407 -0
  24. package/dist/cjs/types/records.d.cts +840 -0
  25. package/dist/cjs/types/storage.cjs +414 -0
  26. package/dist/cjs/types/storage.d.cts +197 -0
  27. package/dist/cjs/types/views.cjs +820 -0
  28. package/dist/cjs/types/views.d.cts +9806 -0
  29. package/dist/cjs/utils/index.cjs +8 -0
  30. package/dist/cjs/utils/index.d.cts +7 -0
  31. package/dist/esm/api-codecs.d.ts +542 -0
  32. package/dist/esm/api-codecs.js +6 -0
  33. package/dist/esm/chunk-24KIXQZK.js +6 -0
  34. package/dist/esm/chunk-3WZJXJNU.js +378 -0
  35. package/dist/esm/chunk-5EHV73BA.js +20 -0
  36. package/dist/esm/chunk-72G3LBUQ.js +1 -0
  37. package/dist/esm/chunk-7LW2FHLD.js +48 -0
  38. package/dist/esm/chunk-7V44CPRR.js +132 -0
  39. package/dist/esm/chunk-BUNMR4ZO.js +127 -0
  40. package/dist/esm/chunk-EA4OONDV.js +380 -0
  41. package/dist/esm/chunk-F2CANZZ7.js +40 -0
  42. package/dist/esm/chunk-ORMEWXMH.js +33 -0
  43. package/dist/esm/chunk-TIZRJORN.js +24 -0
  44. package/dist/esm/chunk-XDBKR6LW.js +32 -0
  45. package/dist/esm/errors/index.d.ts +45 -0
  46. package/dist/esm/errors/index.js +2 -0
  47. package/dist/esm/index.d.ts +11 -0
  48. package/dist/esm/index.js +12 -0
  49. package/dist/esm/nsid.d.ts +42 -0
  50. package/dist/esm/nsid.js +2 -0
  51. package/dist/esm/observability/index.d.ts +1 -0
  52. package/dist/esm/observability/index.js +3 -0
  53. package/dist/esm/observability/report-error.d.ts +48 -0
  54. package/dist/esm/observability/report-error.js +2 -0
  55. package/dist/esm/types/api.d.ts +494 -0
  56. package/dist/esm/types/api.js +5 -0
  57. package/dist/esm/types/audio.d.ts +1149 -0
  58. package/dist/esm/types/audio.js +5 -0
  59. package/dist/esm/types/blob.d.ts +45 -0
  60. package/dist/esm/types/blob.js +2 -0
  61. package/dist/esm/types/channels.d.ts +262 -0
  62. package/dist/esm/types/channels.js +162 -0
  63. package/dist/esm/types/records.d.ts +840 -0
  64. package/dist/esm/types/records.js +3 -0
  65. package/dist/esm/types/storage.d.ts +197 -0
  66. package/dist/esm/types/storage.js +26 -0
  67. package/dist/esm/types/views.d.ts +9806 -0
  68. package/dist/esm/types/views.js +4 -0
  69. package/dist/esm/utils/index.d.ts +7 -0
  70. package/dist/esm/utils/index.js +2 -0
  71. package/package.json +82 -0
@@ -0,0 +1,4 @@
1
+ export { EnrichedReplierSchema, HandleResolutionSchema, OrgInviteViewSchema, OrgProfileDataSchema, OrganizationMemberViewSchema, OrganizationViewSchema, ProfileViewAdminSchema, ProfileViewBasicSchema, ProfileViewDetailedSchema, ProfileViewSchema, ProfileViewSelfSchema, PromptRepliersSchema, PromptViewPublicSchema, PromptViewSchema, PromptWithRepliesSchema, ReplierSchema, ReplyViewPublicSchema, ReplyViewSchema, RssSummarySchema, UserProfileDataSchema, toProfileViewBasic, toPromptViewPublic, toReplyViewPublic } from '../chunk-EA4OONDV.js';
2
+ import '../chunk-3WZJXJNU.js';
3
+ import '../chunk-5EHV73BA.js';
4
+ import '../chunk-ORMEWXMH.js';
@@ -0,0 +1,7 @@
1
+ declare function isFirestoreTimestamp(data: unknown): data is {
2
+ seconds: number;
3
+ nanoseconds: number;
4
+ toDate: () => Date;
5
+ };
6
+
7
+ export { isFirestoreTimestamp };
@@ -0,0 +1,2 @@
1
+ export { isFirestoreTimestamp } from '../chunk-24KIXQZK.js';
2
+ import '../chunk-ORMEWXMH.js';
package/package.json ADDED
@@ -0,0 +1,82 @@
1
+ {
2
+ "name": "@antiphony/shared",
3
+ "version": "0.1.0",
4
+ "description": "Shared types, Zod schemas, and codecs for Antiphony — open audio call-and-response infrastructure and AT Protocol lexicons.",
5
+ "license": "MIT",
6
+ "homepage": "https://docs.antiphony.dev",
7
+ "repository": {
8
+ "type": "git",
9
+ "url": "git+https://github.com/bbthorson/antiphony.git",
10
+ "directory": "packages/shared"
11
+ },
12
+ "bugs": "https://github.com/bbthorson/antiphony/issues",
13
+ "type": "module",
14
+ "sideEffects": false,
15
+ "main": "./dist/cjs/index.cjs",
16
+ "module": "./dist/esm/index.js",
17
+ "types": "./dist/cjs/index.d.cts",
18
+ "exports": {
19
+ ".": {
20
+ "import": { "types": "./dist/esm/index.d.ts", "default": "./dist/esm/index.js" },
21
+ "require": { "types": "./dist/cjs/index.d.cts", "default": "./dist/cjs/index.cjs" }
22
+ },
23
+ "./api-codecs": {
24
+ "import": { "types": "./dist/esm/api-codecs.d.ts", "default": "./dist/esm/api-codecs.js" },
25
+ "require": { "types": "./dist/cjs/api-codecs.d.cts", "default": "./dist/cjs/api-codecs.cjs" }
26
+ },
27
+ "./nsid": {
28
+ "import": { "types": "./dist/esm/nsid.d.ts", "default": "./dist/esm/nsid.js" },
29
+ "require": { "types": "./dist/cjs/nsid.d.cts", "default": "./dist/cjs/nsid.cjs" }
30
+ },
31
+ "./errors": {
32
+ "import": { "types": "./dist/esm/errors/index.d.ts", "default": "./dist/esm/errors/index.js" },
33
+ "require": { "types": "./dist/cjs/errors/index.d.cts", "default": "./dist/cjs/errors/index.cjs" }
34
+ },
35
+ "./utils": {
36
+ "import": { "types": "./dist/esm/utils/index.d.ts", "default": "./dist/esm/utils/index.js" },
37
+ "require": { "types": "./dist/cjs/utils/index.d.cts", "default": "./dist/cjs/utils/index.cjs" }
38
+ },
39
+ "./observability": {
40
+ "import": { "types": "./dist/esm/observability/index.d.ts", "default": "./dist/esm/observability/index.js" },
41
+ "require": { "types": "./dist/cjs/observability/index.d.cts", "default": "./dist/cjs/observability/index.cjs" }
42
+ },
43
+ "./observability/report-error": {
44
+ "import": { "types": "./dist/esm/observability/report-error.d.ts", "default": "./dist/esm/observability/report-error.js" },
45
+ "require": { "types": "./dist/cjs/observability/report-error.d.cts", "default": "./dist/cjs/observability/report-error.cjs" }
46
+ },
47
+ "./types/*": {
48
+ "import": { "types": "./dist/esm/types/*.d.ts", "default": "./dist/esm/types/*.js" },
49
+ "require": { "types": "./dist/cjs/types/*.d.cts", "default": "./dist/cjs/types/*.cjs" }
50
+ },
51
+ "./package.json": "./package.json"
52
+ },
53
+ "typesVersions": {
54
+ "*": {
55
+ "api-codecs": ["./dist/cjs/api-codecs.d.cts"],
56
+ "nsid": ["./dist/cjs/nsid.d.cts"],
57
+ "errors": ["./dist/cjs/errors/index.d.cts"],
58
+ "utils": ["./dist/cjs/utils/index.d.cts"],
59
+ "observability": ["./dist/cjs/observability/index.d.cts"],
60
+ "observability/report-error": ["./dist/cjs/observability/report-error.d.cts"],
61
+ "types/*": ["./dist/cjs/types/*.d.cts"]
62
+ }
63
+ },
64
+ "files": [
65
+ "dist"
66
+ ],
67
+ "publishConfig": {
68
+ "access": "public"
69
+ },
70
+ "scripts": {
71
+ "build": "node ./scripts/clean.mjs && tsup",
72
+ "typecheck": "tsc --noEmit",
73
+ "lint": "eslint ."
74
+ },
75
+ "dependencies": {
76
+ "zod": "^3.24.1"
77
+ },
78
+ "devDependencies": {
79
+ "tsup": "^8.5.1",
80
+ "typescript": "^5.7.2"
81
+ }
82
+ }