@tiddlywiki/mws 0.0.21 → 0.1.1

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 (202) hide show
  1. package/README.md +42 -9
  2. package/dist/metafile-esm.json +1 -0
  3. package/dist/mws.d.ts +1 -0
  4. package/dist/mws.js +34710 -0
  5. package/dist/mws.js.map +1 -0
  6. package/editions/mws-docs/tiddlers/$__StoryList.tid +1 -2
  7. package/editions/mws-docs/tiddlers/2025-02-18 - User Management.md.meta +2 -2
  8. package/editions/mws-docs/tiddlers/2025-04-14 - client plugins /342/234/224/357/270/217.md" +31 -0
  9. package/editions/mws-docs/tiddlers/2025-04-14 - client plugins /342/234/224/357/270/217.md.meta" +5 -0
  10. package/editions/mws-docs/tiddlers/{2025-05-04.md → 2025-05-04 - event hooks /342/234/224/357/270/217.md" } +7 -1
  11. package/editions/mws-docs/tiddlers/2025-05-04 - event hooks /342/234/224/357/270/217.md.meta" +5 -0
  12. package/editions/mws-docs/tiddlers/{2025-05-06.md → 2025-05-06 - syncer design.md } +0 -4
  13. package/editions/mws-docs/tiddlers/2025-05-06 - syncer design.md.meta +5 -0
  14. package/editions/mws-docs/tiddlers/Allowed Methods.tid +8 -0
  15. package/editions/mws-docs/tiddlers/Application Access & Security.md +14 -84
  16. package/editions/mws-docs/tiddlers/Application Access & Security.md.meta +1 -1
  17. package/editions/mws-docs/tiddlers/Body Format.md +19 -0
  18. package/editions/mws-docs/tiddlers/Body Format.md.meta +4 -0
  19. package/editions/mws-docs/tiddlers/Checklists and Features.md +0 -3
  20. package/editions/mws-docs/tiddlers/Checklists and Features.md.meta +1 -1
  21. package/editions/mws-docs/tiddlers/Client Plugins.md +17 -0
  22. package/editions/mws-docs/tiddlers/Client Plugins.md.meta +5 -0
  23. package/editions/mws-docs/tiddlers/HTTP API.md +4 -3
  24. package/editions/mws-docs/tiddlers/HTTP API.md.meta +1 -1
  25. package/editions/mws-docs/tiddlers/HelloThere.tid +2 -2
  26. package/editions/mws-docs/tiddlers/Installation.tid +2 -3
  27. package/editions/mws-docs/tiddlers/MWS Architecture.tid +6 -1
  28. package/editions/mws-docs/tiddlers/Multi-user Trust.md +12 -0
  29. package/editions/mws-docs/tiddlers/Multi-user Trust.md.meta +5 -0
  30. package/editions/mws-docs/tiddlers/Notes.tid +5 -3
  31. package/editions/mws-docs/tiddlers/Oracle Attacks.md +29 -0
  32. package/editions/mws-docs/tiddlers/Oracle Attacks.md.meta +5 -0
  33. package/editions/mws-docs/tiddlers/Reference.md +1 -0
  34. package/editions/mws-docs/tiddlers/Reference.md.meta +1 -1
  35. package/editions/mws-docs/tiddlers/Request Handling.md +53 -0
  36. package/editions/mws-docs/tiddlers/Request Handling.md.meta +5 -0
  37. package/editions/mws-docs/tiddlers/Roadmap.tid +7 -0
  38. package/editions/mws-docs/tiddlers/Route Definers.md +206 -0
  39. package/editions/mws-docs/tiddlers/Route Definers.md.meta +5 -0
  40. package/editions/mws-docs/tiddlers/Security.md +75 -0
  41. package/editions/mws-docs/tiddlers/Security.md.meta +5 -0
  42. package/editions/mws-docs/tiddlers/Server Plugins.md +7 -0
  43. package/editions/mws-docs/tiddlers/Server Plugins.md.meta +5 -0
  44. package/editions/mws-docs/tiddlers/Startup Cache.md +28 -0
  45. package/editions/mws-docs/tiddlers/Startup Cache.md.meta +5 -0
  46. package/editions/mws-docs/tiddlers/TiddlerFields.md +5 -0
  47. package/editions/mws-docs/tiddlers/TiddlerFields.md.meta +4 -0
  48. package/editions/mws-docs/tiddlers/Usage.tid +2 -2
  49. package/editions/mws-docs/tiddlers/system/$__mws_cssvar-macro.tid +10 -0
  50. package/editions/mws-docs/tiddlers/system/$__palettes_MUI +143 -0
  51. package/editions/mws-docs/tiddlers/system/$__palettes_MUI.meta +7 -0
  52. package/editions/mws-docs/tiddlers/system/$__palettes_MUI_styles.css +567 -0
  53. package/editions/mws-docs/tiddlers/system/$__palettes_MUI_styles.css.meta +6 -0
  54. package/editions/mws-docs/tiddlers/system/$__theme.tid +6 -0
  55. package/editions/mws-docs/tiddlers/system/SplashScreen.tid +21 -0
  56. package/editions/mws-docs/tiddlers/system/StaticBanner.tid +1 -1
  57. package/editions/mws-docs/tiddlers/system/Styles.tid +13 -0
  58. package/editions/mws-docs/tiddlers/system/palette.tid +4 -1
  59. package/editions/mws-docs/tiddlers/system/sidebarlayout.tid +4 -1
  60. package/editions/mws-docs/tiddlers/x-mws-tiddler.md +35 -0
  61. package/editions/mws-docs/tiddlers/x-mws-tiddler.md.meta +5 -0
  62. package/mws.run.mjs +30 -0
  63. package/package.json +47 -36
  64. package/plugins/client/package-lock.json +46 -83
  65. package/plugins/client/package.json +1 -6
  66. package/plugins/client/plugin.info +2 -2
  67. package/plugins/client/src/fflate.d.ts +1501 -0
  68. package/plugins/client/src/multiwikiclientadaptor.ts +768 -317
  69. package/plugins/client/src/mws.d.ts +4 -0
  70. package/plugins/client/src/types.d.ts +3928 -0
  71. package/plugins/client/tiddlers/en-US.multids +3 -0
  72. package/plugins/client/tiddlers/status/SaveWikiButtonTemplate.tid +3 -0
  73. package/plugins/client/tiddlers/status/icon-cloud.tid +4 -0
  74. package/plugins/client/tiddlers/status/info-segment.tid +8 -0
  75. package/plugins/client/tiddlers/status/readonly-styles.tid +27 -0
  76. package/plugins/client/tiddlers/status/save-offline.tid +7 -0
  77. package/plugins/client/tiddlers/status/save-wiki-button.tid +26 -0
  78. package/plugins/client/tiddlers/status/styles.tid +44 -0
  79. package/plugins/client/tiddlers/status/syncer-actions-copy-logs.tid +6 -0
  80. package/plugins/client/tiddlers/status/syncer-actions-login-status.tid +9 -0
  81. package/plugins/client/tiddlers/status/syncer-actions-login.tid +8 -0
  82. package/plugins/client/tiddlers/status/syncer-actions-logout.tid +8 -0
  83. package/plugins/client/tiddlers/status/syncer-actions-refresh.tid +9 -0
  84. package/plugins/client/tiddlers/status/syncer-actions-save-snapshot.tid +9 -0
  85. package/plugins/client/tiddlers/status/tags-syncerdropdown.tid +2 -0
  86. package/plugins/client/tiddlers/syncer/multiwikiclientadaptor.js +640 -0
  87. package/plugins/client/tiddlers/syncer/syncer.js +831 -0
  88. package/plugins/client/tsconfig.json +19 -16
  89. package/plugins/filter-ast-to-sql/example-run-series.ts +146 -0
  90. package/plugins/server/SplashScreen.tid +150 -0
  91. package/plugins/server/fflate.js +9 -0
  92. package/plugins/server/plugin.info +8 -0
  93. package/plugins/server/readme +1 -0
  94. package/plugins/server/url-polyfill.js +294 -0
  95. package/prisma/client/client.d.ts +1 -0
  96. package/prisma/client/client.js +3 -0
  97. package/prisma/client/default.d.ts +1 -0
  98. package/prisma/client/default.js +3 -0
  99. package/prisma/client/edge.d.ts +1 -0
  100. package/prisma/client/edge.js +297 -0
  101. package/prisma/client/index-browser.js +275 -0
  102. package/prisma/client/index.d.ts +17770 -0
  103. package/prisma/client/index.js +324 -0
  104. package/prisma/client/package.json +173 -0
  105. package/prisma/client/query_engine_bg.js +811 -0
  106. package/prisma/client/query_engine_bg.wasm +0 -0
  107. package/prisma/client/runtime/edge-esm.js +10000 -0
  108. package/prisma/client/runtime/edge.js +10036 -0
  109. package/prisma/client/runtime/index-browser.d.ts +370 -0
  110. package/prisma/client/runtime/index-browser.js +2300 -0
  111. package/prisma/client/runtime/library.d.ts +3681 -0
  112. package/prisma/client/runtime/library.js +10604 -0
  113. package/prisma/client/runtime/react-native.js +10629 -0
  114. package/prisma/client/runtime/wasm-compiler-edge.js +11238 -0
  115. package/prisma/client/runtime/wasm-engine-edge.js +7801 -0
  116. package/prisma/client/schema.prisma +156 -0
  117. package/prisma/client/wasm-edge-light-loader.mjs +4 -0
  118. package/prisma/client/wasm-worker-loader.mjs +4 -0
  119. package/prisma/client/wasm.d.ts +1 -0
  120. package/prisma/client/wasm.js +304 -0
  121. package/prisma/global.ts +53 -0
  122. package/prisma/migrations/{20250406213424_init → 20250606001949_init}/migration.sql +46 -48
  123. package/prisma/migrations/20250613000526_remove_group/migration.sql +22 -0
  124. package/prisma/migrations/20250620014502_settings/migration.sql +5 -0
  125. package/prisma/migrations/20250707205229_recipes/migration.sql +20 -0
  126. package/prisma/migrations/migration_lock.toml +1 -1
  127. package/prisma/notes.md +1 -2
  128. package/prisma/schema.prisma +52 -49
  129. package/prisma/test.sqlite +0 -0
  130. package/prisma/test.sqlite-journal +0 -0
  131. package/public/react-admin/android-chrome-192x192.png +0 -0
  132. package/public/react-admin/android-chrome-512x512.png +0 -0
  133. package/public/react-admin/apple-touch-icon.png +0 -0
  134. package/{react-user-mgmt/public/esm-QKDFEP3B.js → public/react-admin/esm-L4WLVWJN.js} +1 -1
  135. package/public/react-admin/esm-L4WLVWJN.js.map +7 -0
  136. package/public/react-admin/esm-QMNGI3LF.js +3 -0
  137. package/public/react-admin/favicon-16x16.png +0 -0
  138. package/public/react-admin/favicon-32x32.png +0 -0
  139. package/public/react-admin/favicon.ico +0 -0
  140. package/public/react-admin/index.html +36 -0
  141. package/public/react-admin/main.js +268 -0
  142. package/public/react-admin/main.js.map +7 -0
  143. package/public/react-admin/site.webmanifest +20 -0
  144. package/public/react-admin/stats.json +1 -0
  145. package/scripts.mjs +134 -25
  146. package/dist/server.d.ts +0 -945
  147. package/dist/server.js +0 -20775
  148. package/dist/server.js.map +0 -1
  149. package/editions/mws-docs/tiddlers/2025-04-03 - Phases of Development.md +0 -64
  150. package/editions/mws-docs/tiddlers/2025-04-03 - Phases of Development.md.meta +0 -5
  151. package/editions/mws-docs/tiddlers/2025-04-13 - Plugins.md +0 -18
  152. package/editions/mws-docs/tiddlers/2025-04-13 - Plugins.md.meta +0 -5
  153. package/editions/mws-docs/tiddlers/2025-05-04.md.meta +0 -5
  154. package/editions/mws-docs/tiddlers/2025-05-06.md.meta +0 -5
  155. package/editions/mws-docs/tiddlers/Moduler Design.md +0 -29
  156. package/editions/mws-docs/tiddlers/Moduler Design.md.meta +0 -5
  157. package/editions/mws-docs/tiddlers/Request Server.md +0 -20
  158. package/editions/mws-docs/tiddlers/Request Server.md.meta +0 -5
  159. package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Dark +0 -173
  160. package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Dark.meta +0 -6
  161. package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Light +0 -172
  162. package/editions/mws-docs/tiddlers/system/$__palettes_MUI-Light.meta +0 -6
  163. package/plugins/client/tiddlers/config-tiddlers-filter.tid +0 -2
  164. package/plugins/client/tiddlers/config-use-server-sent-events.tid +0 -2
  165. package/plugins/client/tiddlers/info-segment.tid +0 -8
  166. package/plugins/client/tiddlers/multiwikiclientadaptor.js +0 -444
  167. package/prisma/migrations/20250407002306_disconnect_user_tables/migration.sql +0 -52
  168. package/prisma/old-db.sql +0 -144
  169. package/react-user-mgmt/README.md +0 -50
  170. package/react-user-mgmt/eslint.config.js +0 -28
  171. package/react-user-mgmt/package-lock.json +0 -2738
  172. package/react-user-mgmt/package.json +0 -31
  173. package/react-user-mgmt/public/index.html +0 -1
  174. package/react-user-mgmt/public/main.js +0 -295
  175. package/react-user-mgmt/public/main.js.map +0 -7
  176. package/react-user-mgmt/public/stats.json +0 -1
  177. package/react-user-mgmt/tsconfig.json +0 -40
  178. package/react-user-mgmt/types.d.ts +0 -2
  179. package/tiddlywiki-types/boot/boot.d.ts +0 -378
  180. package/tiddlywiki-types/boot/bootprefix.d.ts +0 -110
  181. package/tiddlywiki-types/core/modules/filters.d.ts +0 -107
  182. package/tiddlywiki-types/core/modules/tiddler.d.ts +0 -47
  183. package/tiddlywiki-types/core/modules/wiki-bulkops.d.ts +0 -36
  184. package/tiddlywiki-types/core/modules/wiki.d.ts +0 -208
  185. package/tiddlywiki-types/index.d.ts +0 -7
  186. package/tiddlywiki-types/package.json +0 -3
  187. /package/plugins/client/tiddlers/{sidebarsegment.tid → status/sidebarsegment.tid} +0 -0
  188. /package/plugins/client/tiddlers/{GettingStarted.tid → syncer/GettingStarted.tid} +0 -0
  189. /package/plugins/client/tiddlers/{config-incoming-updates-filter.tid → syncer/config-incoming-updates-filter.tid} +0 -0
  190. /package/plugins/client/tiddlers/{readme.tid → syncer/readme.tid} +0 -0
  191. /package/{react-user-mgmt/public → public/react-admin}/chunk-YALWN5OT.js +0 -0
  192. /package/{react-user-mgmt/public → public/react-admin}/chunk-YALWN5OT.js.map +0 -0
  193. /package/{react-user-mgmt/public/esm-QKDFEP3B.js.map → public/react-admin/esm-QMNGI3LF.js.map} +0 -0
  194. /package/{react-user-mgmt/public → public/react-admin}/favicon.png +0 -0
  195. /package/{react-user-mgmt/public → public/react-admin}/missing-favicon.png +0 -0
  196. /package/{react-user-mgmt/public → public/react-admin}/motovun-jack.jpg +0 -0
  197. /package/{react-user-mgmt/public → public/react-admin}/mws-icon.png +0 -0
  198. /package/{react-user-mgmt/public → public/react-admin}/stats.css +0 -0
  199. /package/{react-user-mgmt/public → public/react-admin}/stats.html +0 -0
  200. /package/{react-user-mgmt/public → public/react-admin}/stats.js +0 -0
  201. /package/{react-user-mgmt/public → public/react-admin}/stats.svg +0 -0
  202. /package/{react-user-mgmt/public → public/react-admin}/vite.svg +0 -0
@@ -0,0 +1,275 @@
1
+ /* !!! This is code generated by Prisma. Do not edit directly. !!!
2
+ /* eslint-disable */
3
+
4
+ Object.defineProperty(exports, "__esModule", { value: true });
5
+
6
+ const {
7
+ Decimal,
8
+ objectEnumValues,
9
+ makeStrictEnum,
10
+ Public,
11
+ getRuntime,
12
+ skip,
13
+ } = require("./runtime/index-browser.js");
14
+
15
+ const Prisma = {};
16
+
17
+ exports.Prisma = Prisma;
18
+ exports.$Enums = {};
19
+
20
+ /**
21
+ * Prisma Client JS version: 6.10.1
22
+ * Query Engine version: 9b628578b3b7cae625e8c927178f15a170e74a9c
23
+ */
24
+ Prisma.prismaVersion = {
25
+ client: "6.10.1",
26
+ engine: "9b628578b3b7cae625e8c927178f15a170e74a9c",
27
+ };
28
+
29
+ Prisma.PrismaClientKnownRequestError = () => {
30
+ const runtimeName = getRuntime().prettyName;
31
+ throw new Error(`PrismaClientKnownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
32
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
33
+ };
34
+ Prisma.PrismaClientUnknownRequestError = () => {
35
+ const runtimeName = getRuntime().prettyName;
36
+ throw new Error(`PrismaClientUnknownRequestError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
37
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
38
+ };
39
+ Prisma.PrismaClientRustPanicError = () => {
40
+ const runtimeName = getRuntime().prettyName;
41
+ throw new Error(`PrismaClientRustPanicError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
42
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
43
+ };
44
+ Prisma.PrismaClientInitializationError = () => {
45
+ const runtimeName = getRuntime().prettyName;
46
+ throw new Error(`PrismaClientInitializationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
47
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
48
+ };
49
+ Prisma.PrismaClientValidationError = () => {
50
+ const runtimeName = getRuntime().prettyName;
51
+ throw new Error(`PrismaClientValidationError is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
52
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
53
+ };
54
+ Prisma.Decimal = Decimal;
55
+
56
+ /**
57
+ * Re-export of sql-template-tag
58
+ */
59
+ Prisma.sql = () => {
60
+ const runtimeName = getRuntime().prettyName;
61
+ throw new Error(`sqltag is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
62
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
63
+ };
64
+ Prisma.empty = () => {
65
+ const runtimeName = getRuntime().prettyName;
66
+ throw new Error(`empty is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
67
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
68
+ };
69
+ Prisma.join = () => {
70
+ const runtimeName = getRuntime().prettyName;
71
+ throw new Error(`join is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
72
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
73
+ };
74
+ Prisma.raw = () => {
75
+ const runtimeName = getRuntime().prettyName;
76
+ throw new Error(`raw is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
77
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
78
+ };
79
+ Prisma.validator = Public.validator;
80
+
81
+ /**
82
+ * Extensions
83
+ */
84
+ Prisma.getExtensionContext = () => {
85
+ const runtimeName = getRuntime().prettyName;
86
+ throw new Error(`Extensions.getExtensionContext is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
87
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
88
+ };
89
+ Prisma.defineExtension = () => {
90
+ const runtimeName = getRuntime().prettyName;
91
+ throw new Error(`Extensions.defineExtension is unable to run in this browser environment, or has been bundled for the browser (running in ${runtimeName}).
92
+ In case this error is unexpected for you, please report it in https://pris.ly/prisma-prisma-bug-report`);
93
+ };
94
+
95
+ /**
96
+ * Shorthand utilities for JSON filtering
97
+ */
98
+ Prisma.DbNull = objectEnumValues.instances.DbNull;
99
+ Prisma.JsonNull = objectEnumValues.instances.JsonNull;
100
+ Prisma.AnyNull = objectEnumValues.instances.AnyNull;
101
+
102
+ Prisma.NullTypes = {
103
+ DbNull: objectEnumValues.classes.DbNull,
104
+ JsonNull: objectEnumValues.classes.JsonNull,
105
+ AnyNull: objectEnumValues.classes.AnyNull,
106
+ };
107
+
108
+ /**
109
+ * Enums
110
+ */
111
+
112
+ exports.Prisma.TransactionIsolationLevel = makeStrictEnum({
113
+ Serializable: "Serializable",
114
+ });
115
+
116
+ exports.Prisma.SettingsScalarFieldEnum = {
117
+ key: "key",
118
+ value: "value",
119
+ };
120
+
121
+ exports.Prisma.RecipesScalarFieldEnum = {
122
+ recipe_id: "recipe_id",
123
+ recipe_name: "recipe_name",
124
+ description: "description",
125
+ owner_id: "owner_id",
126
+ plugin_names: "plugin_names",
127
+ skip_required_plugins: "skip_required_plugins",
128
+ skip_core: "skip_core",
129
+ preload_store: "preload_store",
130
+ custom_wiki: "custom_wiki",
131
+ };
132
+
133
+ exports.Prisma.RecipeAclScalarFieldEnum = {
134
+ acl_id: "acl_id",
135
+ role_id: "role_id",
136
+ permission: "permission",
137
+ recipe_id: "recipe_id",
138
+ };
139
+
140
+ exports.Prisma.Recipe_bagsScalarFieldEnum = {
141
+ recipe_id: "recipe_id",
142
+ bag_id: "bag_id",
143
+ position: "position",
144
+ with_acl: "with_acl",
145
+ load_modules: "load_modules",
146
+ };
147
+
148
+ exports.Prisma.BagsScalarFieldEnum = {
149
+ bag_id: "bag_id",
150
+ bag_name: "bag_name",
151
+ description: "description",
152
+ owner_id: "owner_id",
153
+ };
154
+
155
+ exports.Prisma.BagAclScalarFieldEnum = {
156
+ acl_id: "acl_id",
157
+ bag_id: "bag_id",
158
+ role_id: "role_id",
159
+ permission: "permission",
160
+ };
161
+
162
+ exports.Prisma.TiddlersScalarFieldEnum = {
163
+ revision_id: "revision_id",
164
+ bag_id: "bag_id",
165
+ title: "title",
166
+ is_deleted: "is_deleted",
167
+ attachment_hash: "attachment_hash",
168
+ };
169
+
170
+ exports.Prisma.FieldsScalarFieldEnum = {
171
+ revision_id: "revision_id",
172
+ field_name: "field_name",
173
+ field_value: "field_value",
174
+ };
175
+
176
+ exports.Prisma.RolesScalarFieldEnum = {
177
+ role_id: "role_id",
178
+ role_name: "role_name",
179
+ description: "description",
180
+ };
181
+
182
+ exports.Prisma.UsersScalarFieldEnum = {
183
+ user_id: "user_id",
184
+ username: "username",
185
+ email: "email",
186
+ password: "password",
187
+ created_at: "created_at",
188
+ last_login: "last_login",
189
+ };
190
+
191
+ exports.Prisma.SessionsScalarFieldEnum = {
192
+ session_id: "session_id",
193
+ created_at: "created_at",
194
+ last_accessed: "last_accessed",
195
+ session_key: "session_key",
196
+ user_id: "user_id",
197
+ };
198
+
199
+ exports.Prisma.SortOrder = {
200
+ asc: "asc",
201
+ desc: "desc",
202
+ };
203
+
204
+ exports.Prisma.JsonNullValueInput = {
205
+ JsonNull: Prisma.JsonNull,
206
+ };
207
+
208
+ exports.Prisma.JsonNullValueFilter = {
209
+ DbNull: Prisma.DbNull,
210
+ JsonNull: Prisma.JsonNull,
211
+ AnyNull: Prisma.AnyNull,
212
+ };
213
+
214
+ exports.Prisma.QueryMode = {
215
+ default: "default",
216
+ insensitive: "insensitive",
217
+ };
218
+
219
+ exports.Prisma.NullsOrder = {
220
+ first: "first",
221
+ last: "last",
222
+ };
223
+ exports.Permission = exports.$Enums.Permission = {
224
+ READ: "READ",
225
+ WRITE: "WRITE",
226
+ ADMIN: "ADMIN",
227
+ };
228
+
229
+ exports.Prisma.ModelName = {
230
+ Settings: "Settings",
231
+ Recipes: "Recipes",
232
+ RecipeAcl: "RecipeAcl",
233
+ Recipe_bags: "Recipe_bags",
234
+ Bags: "Bags",
235
+ BagAcl: "BagAcl",
236
+ Tiddlers: "Tiddlers",
237
+ Fields: "Fields",
238
+ Roles: "Roles",
239
+ Users: "Users",
240
+ Sessions: "Sessions",
241
+ };
242
+
243
+ /**
244
+ * This is a stub Prisma Client that will error at runtime if called.
245
+ */
246
+ class PrismaClient {
247
+ constructor() {
248
+ return new Proxy(this, {
249
+ get(target, prop) {
250
+ let message;
251
+ const runtime = getRuntime();
252
+ if (runtime.isEdge) {
253
+ message = `PrismaClient is not configured to run in ${runtime.prettyName}. In order to run Prisma Client on edge runtime, either:
254
+ - Use Prisma Accelerate: https://pris.ly/d/accelerate
255
+ - Use Driver Adapters: https://pris.ly/d/driver-adapters
256
+ `;
257
+ } else {
258
+ message =
259
+ "PrismaClient is unable to run in this browser environment, or has been bundled for the browser (running in `" +
260
+ runtime.prettyName +
261
+ "`).";
262
+ }
263
+
264
+ message += `
265
+ If this is unexpected, please open an issue: https://pris.ly/prisma-prisma-bug-report`;
266
+
267
+ throw new Error(message);
268
+ },
269
+ });
270
+ }
271
+ }
272
+
273
+ exports.PrismaClient = PrismaClient;
274
+
275
+ Object.assign(exports, Prisma);