@hexclave/shared 1.0.66 → 1.0.67

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 (33) hide show
  1. package/dist/{admin-interface-CWBkUuzk.d.ts → admin-interface-0fhNIT4c.d.ts} +3 -3
  2. package/dist/{admin-interface-CWBkUuzk.d.ts.map → admin-interface-0fhNIT4c.d.ts.map} +1 -1
  3. package/dist/ai/llms/llms.js +1 -1
  4. package/dist/ai/llms/llms.js.map +1 -1
  5. package/dist/ai/unified-prompts/reminders.js +2 -3
  6. package/dist/ai/unified-prompts/reminders.js.map +1 -1
  7. package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
  8. package/dist/{client-interface-DCTCrVW8.d.ts → client-interface-DvkciaL0.d.ts} +2 -2
  9. package/dist/{client-interface-DCTCrVW8.d.ts.map → client-interface-DvkciaL0.d.ts.map} +1 -1
  10. package/dist/{email-outbox-B1wmVPRG.d.ts → email-outbox-CqzwInBL.d.ts} +91 -91
  11. package/dist/{email-outbox-B1wmVPRG.d.ts.map → email-outbox-CqzwInBL.d.ts.map} +1 -1
  12. package/dist/esm/ai/llms/llms.js +1 -1
  13. package/dist/esm/ai/llms/llms.js.map +1 -1
  14. package/dist/esm/ai/unified-prompts/reminders.js +2 -3
  15. package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
  16. package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
  17. package/dist/esm/interface/conversations.d.ts +31 -31
  18. package/dist/esm/interface/crud/email-outbox.d.ts +90 -90
  19. package/dist/esm/interface/crud/invoices.d.ts +2 -2
  20. package/dist/index.d.ts +3 -3
  21. package/dist/interface/admin-interface.d.ts +1 -1
  22. package/dist/interface/client-interface.d.ts +1 -1
  23. package/dist/interface/conversations.d.ts +31 -31
  24. package/dist/interface/crud/email-outbox.d.ts +1 -1
  25. package/dist/interface/crud/invoices.d.ts +1 -1
  26. package/dist/interface/server-interface.d.ts +1 -1
  27. package/dist/{invoices-U65KzAZX.d.ts → invoices-CHo9YKbI.d.ts} +3 -3
  28. package/dist/{invoices-U65KzAZX.d.ts.map → invoices-CHo9YKbI.d.ts.map} +1 -1
  29. package/dist/{server-interface-C2PILRLO.d.ts → server-interface-Ra_vIHP4.d.ts} +2 -2
  30. package/dist/{server-interface-C2PILRLO.d.ts.map → server-interface-Ra_vIHP4.d.ts.map} +1 -1
  31. package/package.json +1 -1
  32. package/src/ai/llms/llms.ts +1 -1
  33. package/src/ai/unified-prompts/reminders.ts +2 -3
@@ -49,16 +49,16 @@ declare const conversationSummarySchema: yup$1.ObjectSchema<{
49
49
  userPrimaryEmail: string | null;
50
50
  userProfileImageUrl: string | null;
51
51
  subject: string;
52
- status: "pending" | "open" | "closed";
52
+ status: "open" | "pending" | "closed";
53
53
  priority: "low" | "normal" | "high" | "urgent";
54
54
  source: "email" | "manual" | "chat" | "api";
55
55
  lastMessageType: "message" | "internal-note" | "status-change";
56
56
  preview: string | null;
57
57
  lastActivityAt: string;
58
58
  metadata: {
59
- tags: string[];
60
59
  assignedToUserId: string | null;
61
60
  assignedToDisplayName: string | null;
61
+ tags: string[];
62
62
  firstResponseDueAt: string | null;
63
63
  firstResponseAt: string | null;
64
64
  nextResponseDueAt: string | null;
@@ -129,7 +129,7 @@ declare const conversationMessageSchema: yup$1.ObjectSchema<{
129
129
  userId: string | null;
130
130
  teamId: string | null;
131
131
  subject: string;
132
- status: "pending" | "open" | "closed";
132
+ status: "open" | "pending" | "closed";
133
133
  priority: "low" | "normal" | "high" | "urgent";
134
134
  source: "email" | "manual" | "chat" | "api";
135
135
  messageType: "message" | "internal-note" | "status-change";
@@ -173,29 +173,29 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
173
173
  lastOutboundAt?: string | null | undefined;
174
174
  closedAt?: string | null | undefined;
175
175
  recordMetadata?: {} | null | undefined;
176
- status: "pending" | "open" | "closed";
176
+ status: "open" | "pending" | "closed";
177
177
  priority: "low" | "normal" | "high" | "urgent";
178
178
  subject: string;
179
- metadata: {
180
- tags: string[];
181
- assignedToUserId: string | null;
182
- assignedToDisplayName: string | null;
183
- firstResponseDueAt: string | null;
184
- firstResponseAt: string | null;
185
- nextResponseDueAt: string | null;
186
- lastCustomerReplyAt: string | null;
187
- lastAgentReplyAt: string | null;
188
- };
189
- source: "email" | "manual" | "chat" | "api";
190
179
  conversationId: string;
191
180
  userId: string | null;
192
181
  teamId: string | null;
193
182
  userDisplayName: string | null;
194
183
  userPrimaryEmail: string | null;
195
184
  userProfileImageUrl: string | null;
185
+ source: "email" | "manual" | "chat" | "api";
196
186
  lastMessageType: "message" | "internal-note" | "status-change";
197
187
  preview: string | null;
198
188
  lastActivityAt: string;
189
+ metadata: {
190
+ assignedToUserId: string | null;
191
+ assignedToDisplayName: string | null;
192
+ tags: string[];
193
+ firstResponseDueAt: string | null;
194
+ firstResponseAt: string | null;
195
+ nextResponseDueAt: string | null;
196
+ lastCustomerReplyAt: string | null;
197
+ lastAgentReplyAt: string | null;
198
+ };
199
199
  }[];
200
200
  hasMore: boolean;
201
201
  }, yup$1.AnyObject, {
@@ -211,43 +211,43 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
211
211
  lastOutboundAt?: string | null | undefined;
212
212
  closedAt?: string | null | undefined;
213
213
  recordMetadata?: {} | null | undefined;
214
- status: "pending" | "open" | "closed";
214
+ status: "open" | "pending" | "closed";
215
215
  priority: "low" | "normal" | "high" | "urgent";
216
216
  subject: string;
217
- metadata: {
218
- tags: string[];
219
- assignedToUserId: string | null;
220
- assignedToDisplayName: string | null;
221
- firstResponseDueAt: string | null;
222
- firstResponseAt: string | null;
223
- nextResponseDueAt: string | null;
224
- lastCustomerReplyAt: string | null;
225
- lastAgentReplyAt: string | null;
226
- };
227
- source: "email" | "manual" | "chat" | "api";
228
217
  conversationId: string;
229
218
  userId: string | null;
230
219
  teamId: string | null;
231
220
  userDisplayName: string | null;
232
221
  userPrimaryEmail: string | null;
233
222
  userProfileImageUrl: string | null;
223
+ source: "email" | "manual" | "chat" | "api";
234
224
  lastMessageType: "message" | "internal-note" | "status-change";
235
225
  preview: string | null;
236
226
  lastActivityAt: string;
227
+ metadata: {
228
+ assignedToUserId: string | null;
229
+ assignedToDisplayName: string | null;
230
+ tags: string[];
231
+ firstResponseDueAt: string | null;
232
+ firstResponseAt: string | null;
233
+ nextResponseDueAt: string | null;
234
+ lastCustomerReplyAt: string | null;
235
+ lastAgentReplyAt: string | null;
236
+ };
237
237
  };
238
238
  messages: {
239
- status: "pending" | "open" | "closed";
239
+ status: "open" | "pending" | "closed";
240
240
  id: string;
241
241
  priority: "low" | "normal" | "high" | "urgent";
242
242
  subject: string;
243
- metadata: {} | null;
244
- body: string | null;
245
- source: "email" | "manual" | "chat" | "api";
246
243
  conversationId: string;
247
244
  userId: string | null;
248
245
  teamId: string | null;
246
+ source: "email" | "manual" | "chat" | "api";
247
+ metadata: {} | null;
249
248
  createdAt: string;
250
249
  messageType: "message" | "internal-note" | "status-change";
250
+ body: string | null;
251
251
  attachments: {}[];
252
252
  sender: {
253
253
  type: "user" | "agent" | "system";
@@ -1,2 +1,2 @@
1
- import { i as emailOutboxUpdateSchema, n as emailOutboxCrud, r as emailOutboxReadSchema, t as EmailOutboxCrud } from "../../email-outbox-B1wmVPRG.js";
1
+ import { i as emailOutboxUpdateSchema, n as emailOutboxCrud, r as emailOutboxReadSchema, t as EmailOutboxCrud } from "../../email-outbox-CqzwInBL.js";
2
2
  export { EmailOutboxCrud, emailOutboxCrud, emailOutboxReadSchema, emailOutboxUpdateSchema };
@@ -1,2 +1,2 @@
1
- import { a as customerInvoicesListResponseSchema, i as customerInvoiceReadSchema, n as CustomerInvoicesListResponse, r as ListCustomerInvoicesOptions, t as CustomerInvoiceRead } from "../../invoices-U65KzAZX.js";
1
+ import { a as customerInvoicesListResponseSchema, i as customerInvoiceReadSchema, n as CustomerInvoicesListResponse, r as ListCustomerInvoicesOptions, t as CustomerInvoiceRead } from "../../invoices-CHo9YKbI.js";
2
2
  export { CustomerInvoiceRead, CustomerInvoicesListResponse, ListCustomerInvoicesOptions, customerInvoiceReadSchema, customerInvoicesListResponseSchema };
@@ -1,2 +1,2 @@
1
- import { n as ServerAuthApplicationOptions, t as HexclaveServerInterface } from "../server-interface-C2PILRLO.js";
1
+ import { n as ServerAuthApplicationOptions, t as HexclaveServerInterface } from "../server-interface-Ra_vIHP4.js";
2
2
  export { HexclaveServerInterface, ServerAuthApplicationOptions };
@@ -3,7 +3,7 @@ import * as yup$1 from "yup";
3
3
  //#region src/interface/crud/invoices.d.ts
4
4
  declare const customerInvoiceReadSchema: yup$1.ObjectSchema<{
5
5
  created_at_millis: number;
6
- status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
6
+ status: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
7
7
  amount_total: number;
8
8
  hosted_invoice_url: string | null;
9
9
  }, yup$1.AnyObject, {
@@ -15,7 +15,7 @@ declare const customerInvoiceReadSchema: yup$1.ObjectSchema<{
15
15
  type CustomerInvoiceRead = yup$1.InferType<typeof customerInvoiceReadSchema>;
16
16
  declare const customerInvoicesListResponseSchema: yup$1.ObjectSchema<{
17
17
  items: {
18
- status: "draft" | "open" | "paid" | "uncollectible" | "void" | null;
18
+ status: "open" | "draft" | "paid" | "uncollectible" | "void" | null;
19
19
  created_at_millis: number;
20
20
  amount_total: number;
21
21
  hosted_invoice_url: string | null;
@@ -40,4 +40,4 @@ type ListCustomerInvoicesOptions = {
40
40
  };
41
41
  //#endregion
42
42
  export { customerInvoicesListResponseSchema as a, customerInvoiceReadSchema as i, CustomerInvoicesListResponse as n, ListCustomerInvoicesOptions as r, CustomerInvoiceRead as t };
43
- //# sourceMappingURL=invoices-U65KzAZX.d.ts.map
43
+ //# sourceMappingURL=invoices-CHo9YKbI.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"invoices-U65KzAZX.d.ts","names":[],"sources":["../src/interface/crud/invoices.ts"],"mappings":";;;cAWa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;;GAK1B,KAAA,CAAA,SAAA;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAS,QAAQ,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;GAMnC,KAAA,CAAA,SAAA;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAS,QAAQ,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
1
+ {"version":3,"file":"invoices-CHo9YKbI.d.ts","names":[],"sources":["../src/interface/crud/invoices.ts"],"mappings":";;;cAWa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;;GAK1B,KAAA,CAAA,SAAA;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAS,QAAQ,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;GAMnC,KAAA,CAAA,SAAA;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAS,QAAQ,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
@@ -14,7 +14,7 @@ import { t as SessionsCrud } from "./sessions-B7Ko2Ldr.js";
14
14
  import { t as TeamInvitationCrud } from "./team-invitation-Cyqt9oWw.js";
15
15
  import { t as TeamMemberProfilesCrud } from "./team-member-profiles-BoDEqx-0.js";
16
16
  import { t as TeamsCrud } from "./teams-CQMcBnjM.js";
17
- import { n as HexclaveClientInterface, t as ClientInterfaceOptions } from "./client-interface-DCTCrVW8.js";
17
+ import { n as HexclaveClientInterface, t as ClientInterfaceOptions } from "./client-interface-DvkciaL0.js";
18
18
  import { n as AnalyticsQueryResponse, t as AnalyticsQueryOptions } from "./analytics-IjkAsefy.js";
19
19
  import { t as TeamMembershipsCrud } from "./team-memberships-DZHk2A5b.js";
20
20
  import { n as UsersCrud } from "./users-DHNRwoSz.js";
@@ -256,4 +256,4 @@ declare class HexclaveServerInterface extends HexclaveClientInterface {
256
256
  }
257
257
  //#endregion
258
258
  export { ServerAuthApplicationOptions as n, HexclaveServerInterface as t };
259
- //# sourceMappingURL=server-interface-C2PILRLO.d.ts.map
259
+ //# sourceMappingURL=server-interface-Ra_vIHP4.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"server-interface-C2PILRLO.d.ts","names":[],"sources":["../src/interface/server-interface.ts"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;KA6BY,4BAAA,IACR,sBAAA;EAAA,SAGW,eAAA;AAAA;EAAA,SAGA,mBAAA,EAAqB,eAAA,UAAyB,OAAA;AAAA;AAAA,cAKhD,uBAAA,SAAgC,uBAAA;EACf,OAAA,EAAS,4BAAA;cAAT,OAAA,EAAS,4BAAA;EAAA,UAIrB,iBAAA,CAAkB,IAAA,UAAc,OAAA,EAAS,WAAA,EAAa,OAAA,EAAS,eAAA,SAAwB,WAAA,wBAA0C,OAAA,CAAA,QAAA;;;;;;EAgBlI,kBAAA,CACb,YAAA,mBACA,UAAA,UACA,OAAA,EAAS,eAAA,UACR,OAAA;IACD,YAAA;IACA,sBAAA;MACE,EAAA;MACA,KAAA;MACA,KAAA;MACA,SAAA;MACA,QAAA;IAAA;EAAA;EAWW,sCAAA,CACb,YAAA,mBACA,UAAA,UACA,OAAA,EAAS,eAAA,UACR,OAAA;IACD,aAAA;IACA,iBAAA;EAAA;EAgBa,8CAAA,CACb,YAAA,mBACA,UAAA,UACA,aAAA,UACA,OAAA,EAAS,eAAA,UACR,OAAA;IACD,sBAAA;MACE,EAAA;MACA,KAAA;MACA,KAAA;MACA,SAAA;MACA,QAAA;IAAA;EAAA;EAAA,UAoBY,mCAAA,kBAAqD,WAAA,OAAkB,WAAA,GACrF,IAAA,UACA,cAAA,EAAgB,WAAA,EAChB,gBAAA,EAAkB,eAAA,SAClB,aAAA,WAAwB,CAAA,KACvB,OAAA,CAAQ,MAAA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AAA;MACA,gBAAA;MACA,cAAA;MACA,eAAA;MACA,gBAAA;IAAA;EAAA;EAgBE,0BAAA,IAA8B,OAAA;IAAU,UAAA;EAAA;EAexC,cAAA,CAAe,OAAA,EAAS,qBAAA,GAAwB,OAAA,CAAQ,sBAAA;EAmBxD,kBAAA,CACJ,OAAA;IACI,MAAA;IAAgB,MAAA;EAAA;IAChB,MAAA;IAAgB,MAAA;EAAA;IAChB,MAAA;IAAgB,gBAAA;EAAA,IAEpB,IAAA,EAAM,QAAA,uBACL,OAAA;EA8BG,YAAA,CACJ,OAAA;IACE,YAAA;IACA,UAAA;IACA,SAAA;IACA,OAAA,GAAU,KAAA,CAAI,SAAA,QAAiB,mBAAA;IAC/B,QAAA;EAAA,IAED,OAAA;EAuBG,sBAAA,CAAuB,MAAA,UAAgB,OAAA,UAAiB,GAAA,WAAW,OAAA;EAyBnE,sBAAA,CAAuB,MAAA,UAAgB,OAAA,UAAiB,GAAA,UAAa,KAAA,WAAa,OAAA;EAclF,iCAAA,CAAkC,MAAA,WAAiB,OAAA,CAAQ,MAAA;IAAS,YAAA;IAAmB,IAAA;EAAA,GAAgB,WAAA;AAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hexclave/shared",
3
- "version": "1.0.66",
3
+ "version": "1.0.67",
4
4
  "repository": "https://github.com/hexclave/hexclave",
5
5
  "files": [
6
6
  "README.md",
@@ -6,7 +6,7 @@ import { buildSkillSitePrompt, skillSitePrompt } from "../unified-prompts/skill-
6
6
  export const llmsTxt = deindent`
7
7
  # Hexclave
8
8
 
9
- > Hexclave is an authentication and user management platform for SaaS apps, with teams, RBAC, payments, and analytics. Formerly Stack Auth.
9
+ > Hexclave is an authentication and user management platform for SaaS apps, with teams, RBAC, payments, and analytics.
10
10
 
11
11
  ${remindersPrompt}
12
12
 
@@ -19,7 +19,7 @@ export const remindersPrompt = deindent`
19
19
  - Language, framework, and library-specific details:
20
20
  - JavaScript & TypeScript:
21
21
  - Hexclave has different SDK packages for different frameworks and languages. As of the time of writing these reminders, they are: @hexclave/js (JavaScript/TypeScript), @hexclave/next (Next.js), @hexclave/react (React), @hexclave/tanstack-start (TanStack Start). You can find all of these on npm. They are all versioned together, meaning that vX.Y.Z of one SDK was released at the same time as vX.Y.Z of another SDK. They are almost exactly the same with only very tiny differences; they have the same features, and any platform-exclusive features are obvious or clearly labeled as such.
22
- - The Hexclave/Stack Auth SDK constructor accepts a \`urls\` option that tells the SDK where auth pages and post-auth redirects live. When you add a custom auth page such as a \`sign-in\`, \`sign-up\`, \`forgot-password\`, \`account-settings\`, etc., update the corresponding \`urls\` key to point to that route; also set redirect targets such as \`afterSignIn\`, \`afterSignUp\`, \`afterSignOut\`, and \`home\` when those destinations are customized. The \`urls\` option is the source of truth for redirect helpers such as \`redirectToSignIn()\`, hosted or handler-page flows, and post-auth navigation; if it is left pointing at the default pages after custom pages are added, users can hit extra redirects, land on the wrong auth page, or return to an unexpected page after signing in or out.
22
+ - The Hexclave SDK constructor accepts a \`urls\` option that tells the SDK where auth pages and post-auth redirects live. When you add a custom auth page such as a \`sign-in\`, \`sign-up\`, \`forgot-password\`, \`account-settings\`, etc., update the corresponding \`urls\` key to point to that route; also set redirect targets such as \`afterSignIn\`, \`afterSignUp\`, \`afterSignOut\`, and \`home\` when those destinations are customized. The \`urls\` option is the source of truth for redirect helpers such as \`redirectToSignIn()\`, hosted or handler-page flows, and post-auth navigation; if it is left pointing at the default pages after custom pages are added, users can hit extra redirects, land on the wrong auth page, or return to an unexpected page after signing in or out.
23
23
  - The \`Result<T, E>\` type is \`{ status: "ok", data: T } | { status: "error", error: E }\`.
24
24
  - \`KnownErrors[KNOWN_ERROR_CODE]\` refers to a specific known error type. Each KnownError may have its own properties, but they all inherit from \`Error & { statusCode: number, humanReadableMessage: string, details?: Json }\`.
25
25
  - React & Next.js:
@@ -29,9 +29,8 @@ export const remindersPrompt = deindent`
29
29
  - 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.
30
30
  - 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>\`.
31
31
  - 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 } }\`.
32
- - 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.
32
+ - 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 HexclaveHandler 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.
33
33
  - 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.
34
34
  - 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).
35
- - Hexclave was formerly known as Stack Auth. You may still see references to it as Stack Auth in some places.
36
35
  - When a human is talking about Users, more often than not, they are referring to non-anonymous users. Make sure to decide whether to filter anonymous users out in SQL queries based on suspected intent. For example, when reporting number of users, or recent sign-ups, almost certainly they're just asking about non-anonymous users.
37
36
  `;