@hexclave/shared 1.0.49 → 1.0.51

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 (87) hide show
  1. package/dist/{admin-interface-BPBTfhZC.d.ts → admin-interface-CoReEE6d.d.ts} +10 -10
  2. package/dist/{admin-interface-BPBTfhZC.d.ts.map → admin-interface-CoReEE6d.d.ts.map} +1 -1
  3. package/dist/{admin-metrics-bsOkw4YQ.d.ts → admin-metrics-mSeJUgs_.d.ts} +11 -11
  4. package/dist/{admin-metrics-bsOkw4YQ.d.ts.map → admin-metrics-mSeJUgs_.d.ts.map} +1 -1
  5. package/dist/ai/unified-prompts/reminders.js +1 -0
  6. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  7. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  8. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +3 -27
  9. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  10. package/dist/{client-interface-BQz4jNAC.d.ts → client-interface-Dq3rFlfp.d.ts} +8 -8
  11. package/dist/{client-interface-BQz4jNAC.d.ts.map → client-interface-Dq3rFlfp.d.ts.map} +1 -1
  12. package/dist/config/schema.d.ts +1 -1
  13. package/dist/config-authoring.d.ts +1 -1
  14. package/dist/{current-user-BBoN3hsn.d.ts → current-user-yKG-BuFC.d.ts} +6 -6
  15. package/dist/{current-user-BBoN3hsn.d.ts.map → current-user-yKG-BuFC.d.ts.map} +1 -1
  16. package/dist/{email-outbox-B1wmVPRG.d.ts → email-outbox-szT3xGTQ.d.ts} +95 -95
  17. package/dist/{email-outbox-B1wmVPRG.d.ts.map → email-outbox-szT3xGTQ.d.ts.map} +1 -1
  18. package/dist/esm/ai/unified-prompts/reminders.js +1 -0
  19. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  20. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
  21. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +3 -27
  22. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
  23. package/dist/esm/config/schema.d.ts +2 -2
  24. package/dist/esm/interface/admin-interface.js +1 -1
  25. package/dist/esm/interface/admin-metrics.d.ts +10 -10
  26. package/dist/esm/interface/client-interface.js +1 -1
  27. package/dist/esm/interface/conversations.d.ts +4 -4
  28. package/dist/esm/interface/crud/current-user.d.ts +5 -5
  29. package/dist/esm/interface/crud/email-outbox.d.ts +94 -94
  30. package/dist/esm/interface/crud/products.d.ts +15 -15
  31. package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
  32. package/dist/esm/interface/crud/team-member-profiles.d.ts +8 -8
  33. package/dist/esm/interface/crud/transactions.d.ts +20 -20
  34. package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
  35. package/dist/esm/interface/crud/users.d.ts +6 -6
  36. package/dist/esm/interface/plan-usage.d.ts +1 -1
  37. package/dist/esm/interface/server-interface.js +1 -1
  38. package/dist/esm/known-errors.d.ts +1 -1
  39. package/dist/esm/schema-fields.d.ts +2 -2
  40. package/dist/esm/sessions.d.ts +7 -7
  41. package/dist/helpers/password.d.ts +1 -1
  42. package/dist/index.d.ts +4 -4
  43. package/dist/interface/admin-interface.d.ts +2 -2
  44. package/dist/interface/admin-interface.js +1 -1
  45. package/dist/interface/admin-metrics.d.ts +1 -1
  46. package/dist/interface/client-interface.d.ts +1 -1
  47. package/dist/interface/client-interface.js +1 -1
  48. package/dist/interface/conversations.d.ts +4 -4
  49. package/dist/interface/crud/current-user.d.ts +1 -1
  50. package/dist/interface/crud/email-outbox.d.ts +1 -1
  51. package/dist/interface/crud/products.d.ts +1 -1
  52. package/dist/interface/crud/project-api-keys.d.ts +1 -1
  53. package/dist/interface/crud/team-member-profiles.d.ts +1 -1
  54. package/dist/interface/crud/transactions.d.ts +1 -1
  55. package/dist/interface/crud/users.d.ts +1 -1
  56. package/dist/interface/plan-usage.d.ts +1 -1
  57. package/dist/interface/server-interface.d.ts +1 -1
  58. package/dist/interface/server-interface.js +1 -1
  59. package/dist/{known-errors-Bm4a61wL.d.ts → known-errors-BFf8SVm8.d.ts} +2 -2
  60. package/dist/{known-errors-Bm4a61wL.d.ts.map → known-errors-BFf8SVm8.d.ts.map} +1 -1
  61. package/dist/known-errors.d.ts +1 -1
  62. package/dist/{plan-usage-BO2GsKlN.d.ts → plan-usage-CFwV688o.d.ts} +2 -2
  63. package/dist/{plan-usage-BO2GsKlN.d.ts.map → plan-usage-CFwV688o.d.ts.map} +1 -1
  64. package/dist/{products-D4o8A2W0.d.ts → products-DzedG6oU.d.ts} +16 -16
  65. package/dist/{products-D4o8A2W0.d.ts.map → products-DzedG6oU.d.ts.map} +1 -1
  66. package/dist/{project-api-keys--7V5X_UW.d.ts → project-api-keys-Di2ENRam.d.ts} +3 -3
  67. package/dist/{project-api-keys--7V5X_UW.d.ts.map → project-api-keys-Di2ENRam.d.ts.map} +1 -1
  68. package/dist/{schema-Daq0b_sf.d.ts → schema-Hy94hCXp.d.ts} +3 -3
  69. package/dist/{schema-Daq0b_sf.d.ts.map → schema-Hy94hCXp.d.ts.map} +1 -1
  70. package/dist/{schema-fields-DZtDQEEO.d.ts → schema-fields-DhryPaD4.d.ts} +3 -3
  71. package/dist/{schema-fields-DZtDQEEO.d.ts.map → schema-fields-DhryPaD4.d.ts.map} +1 -1
  72. package/dist/schema-fields.d.ts +1 -1
  73. package/dist/{server-interface-BjY-eS4Q.d.ts → server-interface-CCkVoW9E.d.ts} +8 -8
  74. package/dist/{server-interface-BjY-eS4Q.d.ts.map → server-interface-CCkVoW9E.d.ts.map} +1 -1
  75. package/dist/{sessions-CI-0TBQb.d.ts → sessions-CKNkS48M.d.ts} +9 -9
  76. package/dist/{sessions-CI-0TBQb.d.ts.map → sessions-CKNkS48M.d.ts.map} +1 -1
  77. package/dist/sessions.d.ts +1 -1
  78. package/dist/{team-member-profiles-BoDEqx-0.d.ts → team-member-profiles-jSNAduek.d.ts} +9 -9
  79. package/dist/{team-member-profiles-BoDEqx-0.d.ts.map → team-member-profiles-jSNAduek.d.ts.map} +1 -1
  80. package/dist/{transactions-CHNUJ42J.d.ts → transactions-icyjJzs-.d.ts} +21 -21
  81. package/dist/transactions-icyjJzs-.d.ts.map +1 -0
  82. package/dist/{users-DHNRwoSz.d.ts → users-CCg66YDE.d.ts} +7 -7
  83. package/dist/{users-DHNRwoSz.d.ts.map → users-CCg66YDE.d.ts.map} +1 -1
  84. package/package.json +1 -1
  85. package/src/ai/unified-prompts/reminders.ts +1 -0
  86. package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +3 -27
  87. package/dist/transactions-CHNUJ42J.d.ts.map +0 -1
@@ -4,8 +4,8 @@ import { InferType } from "yup";
4
4
  //#region src/interface/crud/transactions.d.ts
5
5
  declare const transactionEntrySchema: import("yup").MixedSchema<{
6
6
  type: "money_transfer";
7
- customer_id: string;
8
7
  customer_type: "team" | "user" | "custom";
8
+ customer_id: string;
9
9
  charged_amount: {
10
10
  USD?: string | undefined;
11
11
  EUR?: string | undefined;
@@ -22,27 +22,21 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
22
22
  adjusted_entry_index: number | null;
23
23
  } | {
24
24
  type: "item_quantity_change";
25
- item_id: string;
26
- customer_id: string;
27
25
  quantity: number;
28
26
  customer_type: "team" | "user" | "custom";
27
+ item_id: string;
28
+ customer_id: string;
29
29
  adjusted_transaction_id: string | null;
30
30
  adjusted_entry_index: number | null;
31
31
  } | {
32
32
  one_time_purchase_id?: string | undefined;
33
33
  subscription_id?: string | undefined;
34
34
  type: "product_grant";
35
- customer_id: string;
36
- product_id: string | null;
37
- quantity: number;
38
- customer_type: "team" | "user" | "custom";
39
35
  product: {
40
36
  free_trial?: DayInterval | undefined;
41
37
  client_metadata?: {} | null | undefined;
42
38
  client_read_only_metadata?: {} | null | undefined;
43
39
  server_metadata?: {} | null | undefined;
44
- server_only: boolean;
45
- customer_type: "team" | "user" | "custom";
46
40
  stackable: boolean;
47
41
  prices: Record<string, {
48
42
  USD?: string | undefined;
@@ -56,12 +50,18 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
56
50
  free_trial?: DayInterval | undefined;
57
51
  }>;
58
52
  display_name: string;
53
+ customer_type: "team" | "user" | "custom";
54
+ server_only: boolean;
59
55
  included_items: Record<string, {
60
- quantity?: number | undefined;
61
56
  repeat?: "never" | DayInterval | undefined;
57
+ quantity?: number | undefined;
62
58
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
63
59
  }>;
64
60
  };
61
+ quantity: number;
62
+ customer_type: "team" | "user" | "custom";
63
+ customer_id: string;
64
+ product_id: string | null;
65
65
  adjusted_transaction_id: string | null;
66
66
  adjusted_entry_index: number | null;
67
67
  price_id: string | null;
@@ -88,8 +88,8 @@ declare const transactionSchema: import("yup").ObjectSchema<{
88
88
  customer_id: string;
89
89
  entries: ({
90
90
  type: "money_transfer";
91
- customer_id: string;
92
91
  customer_type: "team" | "user" | "custom";
92
+ customer_id: string;
93
93
  charged_amount: {
94
94
  USD?: string | undefined;
95
95
  EUR?: string | undefined;
@@ -106,27 +106,21 @@ declare const transactionSchema: import("yup").ObjectSchema<{
106
106
  adjusted_entry_index: number | null;
107
107
  } | {
108
108
  type: "item_quantity_change";
109
- item_id: string;
110
- customer_id: string;
111
109
  quantity: number;
112
110
  customer_type: "team" | "user" | "custom";
111
+ item_id: string;
112
+ customer_id: string;
113
113
  adjusted_transaction_id: string | null;
114
114
  adjusted_entry_index: number | null;
115
115
  } | {
116
116
  one_time_purchase_id?: string | undefined;
117
117
  subscription_id?: string | undefined;
118
118
  type: "product_grant";
119
- customer_id: string;
120
- product_id: string | null;
121
- quantity: number;
122
- customer_type: "team" | "user" | "custom";
123
119
  product: {
124
120
  free_trial?: DayInterval | undefined;
125
121
  client_metadata?: {} | null | undefined;
126
122
  client_read_only_metadata?: {} | null | undefined;
127
123
  server_metadata?: {} | null | undefined;
128
- server_only: boolean;
129
- customer_type: "team" | "user" | "custom";
130
124
  stackable: boolean;
131
125
  prices: Record<string, {
132
126
  USD?: string | undefined;
@@ -140,12 +134,18 @@ declare const transactionSchema: import("yup").ObjectSchema<{
140
134
  free_trial?: DayInterval | undefined;
141
135
  }>;
142
136
  display_name: string;
137
+ customer_type: "team" | "user" | "custom";
138
+ server_only: boolean;
143
139
  included_items: Record<string, {
144
- quantity?: number | undefined;
145
140
  repeat?: "never" | DayInterval | undefined;
141
+ quantity?: number | undefined;
146
142
  expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
147
143
  }>;
148
144
  };
145
+ quantity: number;
146
+ customer_type: "team" | "user" | "custom";
147
+ customer_id: string;
148
+ product_id: string | null;
149
149
  adjusted_transaction_id: string | null;
150
150
  adjusted_entry_index: number | null;
151
151
  price_id: string | null;
@@ -179,4 +179,4 @@ declare const transactionSchema: import("yup").ObjectSchema<{
179
179
  type Transaction = InferType<typeof transactionSchema>;
180
180
  //#endregion
181
181
  export { transactionEntrySchema as a, TransactionType as i, Transaction as n, transactionSchema as o, TransactionEntry as r, TRANSACTION_TYPES as t };
182
- //# sourceMappingURL=transactions-CHNUJ42J.d.ts.map
182
+ //# sourceMappingURL=transactions-icyjJzs-.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactions-icyjJzs-.d.ts","names":[],"sources":["../src/interface/crud/transactions.ts"],"mappings":";;;;cAwFa,sBAAA,gBAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAS,QAAQ,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAiB;AAAA,cAE1C,iBAAA,gBAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAS,QAAQ,iBAAA"}
@@ -162,15 +162,15 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
162
162
  requires_totp_mfa: undefined;
163
163
  }, "">;
164
164
  declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
165
- primary_email: string | null | undefined;
166
165
  display_name: string | null | undefined;
167
166
  client_metadata: {} | null | undefined;
168
167
  client_read_only_metadata: {} | null | undefined;
169
168
  server_metadata: {} | null | undefined;
170
169
  is_anonymous: boolean | undefined;
171
- password: string | null | undefined;
170
+ primary_email: string | null | undefined;
172
171
  country_code: string | null | undefined;
173
172
  profile_image_url: string | null | undefined;
173
+ password: string | null | undefined;
174
174
  primary_email_verified: boolean | undefined;
175
175
  primary_email_auth_enabled: boolean | undefined;
176
176
  otp_auth_enabled: boolean | undefined;
@@ -188,8 +188,8 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
188
188
  totp_secret_base64: string | null | undefined;
189
189
  } & {
190
190
  oauth_providers: {
191
- email: string | null;
192
191
  id: string;
192
+ email: string | null;
193
193
  account_id: string;
194
194
  }[] | undefined;
195
195
  is_anonymous: boolean | undefined;
@@ -368,15 +368,15 @@ declare const usersCrud: CrudSchemaFromOptions<{
368
368
  };
369
369
  }, "">;
370
370
  serverCreateSchema: yup$1.ObjectSchema<{
371
- primary_email: string | null | undefined;
372
371
  display_name: string | null | undefined;
373
372
  client_metadata: {} | null | undefined;
374
373
  client_read_only_metadata: {} | null | undefined;
375
374
  server_metadata: {} | null | undefined;
376
375
  is_anonymous: boolean | undefined;
377
- password: string | null | undefined;
376
+ primary_email: string | null | undefined;
378
377
  country_code: string | null | undefined;
379
378
  profile_image_url: string | null | undefined;
379
+ password: string | null | undefined;
380
380
  primary_email_verified: boolean | undefined;
381
381
  primary_email_auth_enabled: boolean | undefined;
382
382
  otp_auth_enabled: boolean | undefined;
@@ -394,8 +394,8 @@ declare const usersCrud: CrudSchemaFromOptions<{
394
394
  totp_secret_base64: string | null | undefined;
395
395
  } & {
396
396
  oauth_providers: {
397
- email: string | null;
398
397
  id: string;
398
+ email: string | null;
399
399
  account_id: string;
400
400
  }[] | undefined;
401
401
  is_anonymous: boolean | undefined;
@@ -650,4 +650,4 @@ declare const userDeletedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
650
650
  }, "">>;
651
651
  //#endregion
652
652
  export { userCreatedWebhookEvent as a, usersCrud as c, usersCrudServerReadSchema as d, usersCrudServerUpdateSchema as f, signUpRiskScoresSchema as i, usersCrudServerCreateSchema as l, UsersCrud as n, userDeletedWebhookEvent as o, riskScoreFieldSchema as r, userUpdatedWebhookEvent as s, SignUpRiskScoresCrud as t, usersCrudServerDeleteSchema as u };
653
- //# sourceMappingURL=users-DHNRwoSz.d.ts.map
653
+ //# sourceMappingURL=users-CCg66YDE.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"users-DHNRwoSz.d.ts","names":[],"sources":["../src/interface/crud/users.ts"],"mappings":";;;;;;cAea,oBAAA,EAAoB,KAAA,CAAA,YAAA,SAAA,KAAA,CAAA,SAAA;AAAA,cACpB,sBAAA,EAAsB,KAAA,CAAA,YAAA;;;;;GAKjC,KAAA,CAAA,SAAA;;;;;;KACU,oBAAA,GAAuB,SAAS,QAAQ,sBAAA;AAAA,cAqBvC,2BAAA,EAA2B,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GAyBvC,KAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEY,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8CrC,KAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEY,2BAAA,EAA2B,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;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clave",
5
5
  "files": [
6
6
  "README.md",
@@ -28,6 +28,7 @@ export const remindersPrompt = deindent`
28
28
  - Hexclave also has a REST API with near-full feature parity with the SDK. It can be used for both client and server-side code.
29
29
  - If available, always prefer editing the \`hexclave.config.ts\` file directly over asking the user to make changes on the dashboard. When implementing new features, you can always update the config file, and then tell the user about the changes you've made. The config file is automatically synced when using the local dashboard/dev environment with \`npx @hexclave/cli dev --config-file <path-to-config-file>\`.
30
30
  - While allowed, avoid using nested property notation in Hexclave's config files for stylistic reasons. For example, instead of the config \`{ auth: { allowSignUp: true, password: { allowSignIn: true } } }\`, use config \`{ auth: { allowSignUp: true }, "auth.password": { allowSignIn: true } }\`.
31
+ - For new projects, prefer \`urls: { default: { type: "hosted" } }\` over the old \`type: "handler"\`. The latter uses URLs like \`/handler/sign-in\`, but the new flow instead redirects to hosted component pages, which are more user-friendly and update automatically. The old handler option requires the StackHandler component, which is only available in some frameworks and less flexible. The new hosted components flow does NOT have a URL like \`/handler/sign-in\` anymore.
31
32
  - You can use the \`npx @hexclave/cli exec <javascript>\` command to run JavaScript with a pre-configured HexclaveServerApp available as \`hexclaveServerApp\`. This allows you to read and write from and to the Hexclave project as you would on the dashboard, but from the CLI. To read and write project configuration, see the note on the config file above.
32
33
  - For advanced read queries, you can use \`hexclaveServerApp.queryAnalytics("<clickhouse-sql>")\`. Use \`SHOW TABLES\` and \`DESCRIBE TABLE\` to understand the schema of the available tables (columns have comments that may be useful as a description).
33
34
  - Hexclave was formerly known as Stack Auth. You may still see references to it as Stack Auth in some places.
@@ -559,7 +559,9 @@ const appSetupPrompt: Record<PublicAppSetupPromptId, string> =
559
559
  };
560
560
  \`\`\`
561
561
 
562
- Then wire the SDK setup above: create the Hexclave App object, wrap React apps in the provider, and add handler/auth pages where your framework needs them. OAuth client IDs/secrets and trusted domains are environment-specific, so leave placeholders or ask the user for those instead of inventing them. See [Auth providers](https://docs.hexclave.com/guides/apps/authentication/auth-providers) and [hexclave.config.ts: Auth](https://docs.hexclave.com/guides/going-further/hexclave-config#auth).
562
+ For some OAuth providers like Google and GitHub, Hexclave automatically provides a client ID and secret, so no extra provider setup is needed.
563
+
564
+ Then wire the SDK setup above: create the Hexclave App object, wrap React apps in the provider, and add auth pages where your framework needs them. OAuth client IDs/secrets and trusted domains are environment-specific, so leave placeholders or ask the user for those instead of inventing them. See [Auth providers](https://docs.hexclave.com/guides/apps/authentication/auth-providers) and [hexclave.config.ts: Auth](https://docs.hexclave.com/guides/going-further/hexclave-config#auth).
563
565
  `,
564
566
  "fraud-protection": deindent`
565
567
  Key concepts: sign-up rules are ordered checks that decide whether a sign-up should be allowed, rejected, restricted, or logged; rule priority decides which matching rule wins when multiple rules apply.
@@ -1172,32 +1174,6 @@ export function getSdkSetupPrompt(mainType: "ai-prompt" | "nextjs" | "react" | "
1172
1174
  Note: Keep the loading indicator simple. Avoid copy like "Getting Hexclave ready..." — a simple spinner, skeleton, or "Loading..." message is enough. Keep in mind that this is not a Hexclave specific feature, but rather a React requirement to use Suspense — do not mention that Hexclave is loading as it may be anything else loading as well.
1173
1175
  ` : ""}
1174
1176
  </Step>
1175
-
1176
- ${isMaybeTanstackStart ? deindent`
1177
- <Step title="${!isDefinitelyTanstackStart ? "TanStack Start: " : ""}Add the Hexclave handler route">
1178
- Hexclave's auth flows (sign-in, sign-up, OAuth callbacks, password reset, etc.) are rendered by a single \`HexclaveHandler\` component mounted at \`/handler/*\`. In TanStack Start, expose it as a splat file route at \`src/routes/handler/$.tsx\`:
1179
-
1180
- \`\`\`tsx src/routes/handler/$.tsx
1181
- import { HexclaveHandler } from "${isDefinitelyTanstackStart ? packageName : "@hexclave/tanstack-start"}";
1182
- import { createFileRoute, useLocation } from "@tanstack/react-router";
1183
-
1184
- export const Route = createFileRoute("/handler/$")({
1185
- ssr: false,
1186
- component: HandlerPage,
1187
- });
1188
-
1189
- function HandlerPage() {
1190
- const { pathname } = useLocation();
1191
- return <HexclaveHandler fullPage location={pathname} />;
1192
- }
1193
- \`\`\`
1194
-
1195
- Two TanStack-specific notes:
1196
-
1197
- - The route is opted out of SSR with \`ssr: false\`. The handler runs browser-only auth flows (cookies, redirects, popups), so rendering it on the server provides no benefit and can fight with hydration. Other routes can opt into or out of SSR per-route the same way.
1198
- - Hexclave resolves the current user during SSR by reading TanStack Start's request cookies through \`@hexclave/tanstack-start\`'s server context. No extra wiring is required — \`useUser()\` "just works" on both server and client routes as long as \`tokenStore: "cookie"\` is set on \`HexclaveClientApp\`.
1199
- </Step>
1200
- ` : ""}
1201
1177
  ` : ""}
1202
1178
 
1203
1179
  ${isMaybeBackend && !isDefinitelyNextjs ? deindent`
@@ -1 +0,0 @@
1
- {"version":3,"file":"transactions-CHNUJ42J.d.ts","names":[],"sources":["../src/interface/crud/transactions.ts"],"mappings":";;;;cAwFa,sBAAA,gBAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAS,QAAQ,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAiB;AAAA,cAE1C,iBAAA,gBAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAS,QAAQ,iBAAA"}