@hexclave/shared 1.0.65 → 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.
- package/dist/{admin-interface-DpRVOD-m.d.ts → admin-interface-0fhNIT4c.d.ts} +11 -11
- package/dist/{admin-interface-DpRVOD-m.d.ts.map → admin-interface-0fhNIT4c.d.ts.map} +1 -1
- package/dist/{admin-metrics-1yiWGq9z.d.ts → admin-metrics-bsOkw4YQ.d.ts} +15 -15
- package/dist/{admin-metrics-1yiWGq9z.d.ts.map → admin-metrics-bsOkw4YQ.d.ts.map} +1 -1
- package/dist/ai/llms/llms.js +1 -1
- package/dist/ai/llms/llms.js.map +1 -1
- package/dist/ai/unified-prompts/reminders.js +2 -3
- package/dist/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
- package/dist/apps/apps-config.d.ts +6 -0
- package/dist/apps/apps-config.d.ts.map +1 -1
- package/dist/apps/apps-config.js +6 -0
- package/dist/apps/apps-config.js.map +1 -1
- package/dist/{client-interface-DuVu82ry.d.ts → client-interface-DvkciaL0.d.ts} +10 -10
- package/dist/{client-interface-DuVu82ry.d.ts.map → client-interface-DvkciaL0.d.ts.map} +1 -1
- package/dist/config/schema.d.ts +1 -1
- package/dist/config-authoring.d.ts +1 -1
- package/dist/{current-user-BCkMYzHx.d.ts → current-user-BBoN3hsn.d.ts} +17 -17
- package/dist/{current-user-BCkMYzHx.d.ts.map → current-user-BBoN3hsn.d.ts.map} +1 -1
- package/dist/{email-outbox-BRZiK0ZG.d.ts → email-outbox-CqzwInBL.d.ts} +313 -313
- package/dist/{email-outbox-BRZiK0ZG.d.ts.map → email-outbox-CqzwInBL.d.ts.map} +1 -1
- package/dist/esm/ai/llms/llms.js +1 -1
- package/dist/esm/ai/llms/llms.js.map +1 -1
- package/dist/esm/ai/unified-prompts/reminders.js +2 -3
- package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
- package/dist/esm/apps/apps-config.d.ts +6 -0
- package/dist/esm/apps/apps-config.d.ts.map +1 -1
- package/dist/esm/apps/apps-config.js +6 -0
- package/dist/esm/apps/apps-config.js.map +1 -1
- package/dist/esm/config/schema.d.ts +93 -93
- package/dist/esm/interface/admin-metrics.d.ts +14 -14
- package/dist/esm/interface/conversations.d.ts +37 -37
- package/dist/esm/interface/crud/current-user.d.ts +16 -16
- package/dist/esm/interface/crud/email-outbox.d.ts +312 -312
- package/dist/esm/interface/crud/invoices.d.ts +2 -2
- package/dist/esm/interface/crud/products.d.ts +23 -23
- package/dist/esm/interface/crud/project-api-keys.d.ts +4 -4
- package/dist/esm/interface/crud/projects.d.ts +59 -59
- package/dist/esm/interface/crud/team-member-profiles.d.ts +32 -32
- package/dist/esm/interface/crud/transactions.d.ts +29 -29
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +22 -22
- package/dist/esm/interface/plan-usage.d.ts +1 -1
- package/dist/esm/interface/webhooks.d.ts +4 -4
- package/dist/esm/known-errors.d.ts +4 -4
- package/dist/esm/schema-fields.d.ts +8 -8
- package/dist/esm/sessions.d.ts +8 -8
- package/dist/helpers/password.d.ts +1 -1
- package/dist/helpers/production-mode.d.ts +1 -1
- package/dist/index.d.ts +4 -4
- package/dist/interface/admin-interface.d.ts +2 -2
- package/dist/interface/admin-metrics.d.ts +1 -1
- package/dist/interface/client-interface.d.ts +1 -1
- package/dist/interface/conversations.d.ts +37 -37
- package/dist/interface/crud/current-user.d.ts +1 -1
- package/dist/interface/crud/email-outbox.d.ts +1 -1
- package/dist/interface/crud/invoices.d.ts +1 -1
- package/dist/interface/crud/products.d.ts +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +1 -1
- package/dist/interface/crud/projects.d.ts +1 -1
- package/dist/interface/crud/team-member-profiles.d.ts +1 -1
- package/dist/interface/crud/transactions.d.ts +1 -1
- package/dist/interface/crud/users.d.ts +1 -1
- package/dist/interface/plan-usage.d.ts +1 -1
- package/dist/interface/server-interface.d.ts +1 -1
- package/dist/interface/webhooks.d.ts +1 -1
- package/dist/{invoices-BGLLnTlR.d.ts → invoices-CHo9YKbI.d.ts} +3 -3
- package/dist/{invoices-BGLLnTlR.d.ts.map → invoices-CHo9YKbI.d.ts.map} +1 -1
- package/dist/{known-errors-Bhd0JAgh.d.ts → known-errors-Bm4a61wL.d.ts} +5 -5
- package/dist/{known-errors-Bhd0JAgh.d.ts.map → known-errors-Bm4a61wL.d.ts.map} +1 -1
- package/dist/known-errors.d.ts +1 -1
- package/dist/{plan-usage-COq9I00z.d.ts → plan-usage-BaDxcLZ1.d.ts} +2 -2
- package/dist/{plan-usage-COq9I00z.d.ts.map → plan-usage-BaDxcLZ1.d.ts.map} +1 -1
- package/dist/{products-BkPf1X78.d.ts → products-D4o8A2W0.d.ts} +24 -24
- package/dist/{products-BkPf1X78.d.ts.map → products-D4o8A2W0.d.ts.map} +1 -1
- package/dist/{project-api-keys-CK9SIo0q.d.ts → project-api-keys--7V5X_UW.d.ts} +5 -5
- package/dist/{project-api-keys-CK9SIo0q.d.ts.map → project-api-keys--7V5X_UW.d.ts.map} +1 -1
- package/dist/{projects-CVqfljhv.d.ts → projects-BX5Y50kJ.d.ts} +60 -60
- package/dist/{projects-CVqfljhv.d.ts.map → projects-BX5Y50kJ.d.ts.map} +1 -1
- package/dist/{schema-3X-2xYMA.d.ts → schema-KigK8FiY.d.ts} +94 -94
- package/dist/{schema-3X-2xYMA.d.ts.map → schema-KigK8FiY.d.ts.map} +1 -1
- package/dist/{schema-fields-D_5cu_1S.d.ts → schema-fields-DZtDQEEO.d.ts} +9 -9
- package/dist/{schema-fields-D_5cu_1S.d.ts.map → schema-fields-DZtDQEEO.d.ts.map} +1 -1
- package/dist/schema-fields.d.ts +1 -1
- package/dist/{server-interface-D4qaM0LE.d.ts → server-interface-Ra_vIHP4.d.ts} +8 -8
- package/dist/{server-interface-D4qaM0LE.d.ts.map → server-interface-Ra_vIHP4.d.ts.map} +1 -1
- package/dist/{sessions-Cu_D5stb.d.ts → sessions-CI-0TBQb.d.ts} +10 -10
- package/dist/{sessions-Cu_D5stb.d.ts.map → sessions-CI-0TBQb.d.ts.map} +1 -1
- package/dist/sessions.d.ts +1 -1
- package/dist/{team-member-profiles-CgYXR-Rx.d.ts → team-member-profiles-BoDEqx-0.d.ts} +33 -33
- package/dist/{team-member-profiles-CgYXR-Rx.d.ts.map → team-member-profiles-BoDEqx-0.d.ts.map} +1 -1
- package/dist/{transactions-7q13mxhG.d.ts → transactions-CHNUJ42J.d.ts} +30 -30
- package/dist/transactions-CHNUJ42J.d.ts.map +1 -0
- package/dist/{users-7MKfEyyq.d.ts → users-DHNRwoSz.d.ts} +24 -24
- package/dist/{users-7MKfEyyq.d.ts.map → users-DHNRwoSz.d.ts.map} +1 -1
- package/dist/{webhooks-C5gG85Ce.d.ts → webhooks-8Ts1Clcb.d.ts} +5 -5
- package/dist/{webhooks-C5gG85Ce.d.ts.map → webhooks-8Ts1Clcb.d.ts.map} +1 -1
- package/package.json +1 -1
- package/src/ai/llms/llms.ts +1 -1
- package/src/ai/unified-prompts/reminders.ts +2 -3
- package/src/apps/apps-config.ts +6 -0
- package/dist/transactions-7q13mxhG.d.ts.map +0 -1
|
@@ -4,7 +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
|
-
|
|
7
|
+
customer_id: string;
|
|
8
|
+
customer_type: "team" | "user" | "custom";
|
|
8
9
|
charged_amount: {
|
|
9
10
|
USD?: string | undefined;
|
|
10
11
|
EUR?: string | undefined;
|
|
@@ -19,32 +20,31 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
|
|
|
19
20
|
};
|
|
20
21
|
adjusted_transaction_id: string | null;
|
|
21
22
|
adjusted_entry_index: number | null;
|
|
22
|
-
customer_id: string;
|
|
23
23
|
} | {
|
|
24
24
|
type: "item_quantity_change";
|
|
25
|
+
item_id: string;
|
|
26
|
+
customer_id: string;
|
|
25
27
|
quantity: number;
|
|
26
|
-
customer_type: "
|
|
28
|
+
customer_type: "team" | "user" | "custom";
|
|
27
29
|
adjusted_transaction_id: string | null;
|
|
28
30
|
adjusted_entry_index: number | null;
|
|
29
|
-
customer_id: string;
|
|
30
|
-
item_id: string;
|
|
31
31
|
} | {
|
|
32
|
-
subscription_id?: string | undefined;
|
|
33
32
|
one_time_purchase_id?: string | undefined;
|
|
33
|
+
subscription_id?: string | undefined;
|
|
34
34
|
type: "product_grant";
|
|
35
|
+
customer_id: string;
|
|
36
|
+
product_id: string | null;
|
|
35
37
|
quantity: number;
|
|
36
|
-
customer_type: "
|
|
38
|
+
customer_type: "team" | "user" | "custom";
|
|
37
39
|
product: {
|
|
40
|
+
free_trial?: DayInterval | undefined;
|
|
38
41
|
client_metadata?: {} | null | undefined;
|
|
39
42
|
client_read_only_metadata?: {} | null | undefined;
|
|
40
43
|
server_metadata?: {} | null | undefined;
|
|
41
|
-
free_trial?: DayInterval | undefined;
|
|
42
|
-
display_name: string;
|
|
43
|
-
customer_type: "user" | "team" | "custom";
|
|
44
44
|
server_only: boolean;
|
|
45
|
+
customer_type: "team" | "user" | "custom";
|
|
45
46
|
stackable: boolean;
|
|
46
47
|
prices: Record<string, {
|
|
47
|
-
free_trial?: DayInterval | undefined;
|
|
48
48
|
USD?: string | undefined;
|
|
49
49
|
EUR?: string | undefined;
|
|
50
50
|
GBP?: string | undefined;
|
|
@@ -53,17 +53,17 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
|
|
|
53
53
|
AUD?: string | undefined;
|
|
54
54
|
CAD?: string | undefined;
|
|
55
55
|
interval?: DayInterval | undefined;
|
|
56
|
+
free_trial?: DayInterval | undefined;
|
|
56
57
|
}>;
|
|
58
|
+
display_name: string;
|
|
57
59
|
included_items: Record<string, {
|
|
58
|
-
repeat?: "never" | DayInterval | undefined;
|
|
59
60
|
quantity?: number | undefined;
|
|
61
|
+
repeat?: "never" | DayInterval | undefined;
|
|
60
62
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
61
63
|
}>;
|
|
62
64
|
};
|
|
63
|
-
product_id: string | null;
|
|
64
65
|
adjusted_transaction_id: string | null;
|
|
65
66
|
adjusted_entry_index: number | null;
|
|
66
|
-
customer_id: string;
|
|
67
67
|
price_id: string | null;
|
|
68
68
|
} | {
|
|
69
69
|
type: "product_revocation";
|
|
@@ -84,11 +84,12 @@ declare const transactionSchema: import("yup").ObjectSchema<{
|
|
|
84
84
|
created_at_millis: number;
|
|
85
85
|
effective_at_millis: number;
|
|
86
86
|
type: "purchase" | "subscription-cancellation" | "subscription-renewal" | "manual-item-quantity-change" | "refund" | "chargeback" | "product-change" | null;
|
|
87
|
-
customer_type: "
|
|
87
|
+
customer_type: "team" | "user" | "custom";
|
|
88
88
|
customer_id: string;
|
|
89
89
|
entries: ({
|
|
90
90
|
type: "money_transfer";
|
|
91
|
-
|
|
91
|
+
customer_id: string;
|
|
92
|
+
customer_type: "team" | "user" | "custom";
|
|
92
93
|
charged_amount: {
|
|
93
94
|
USD?: string | undefined;
|
|
94
95
|
EUR?: string | undefined;
|
|
@@ -103,32 +104,31 @@ declare const transactionSchema: import("yup").ObjectSchema<{
|
|
|
103
104
|
};
|
|
104
105
|
adjusted_transaction_id: string | null;
|
|
105
106
|
adjusted_entry_index: number | null;
|
|
106
|
-
customer_id: string;
|
|
107
107
|
} | {
|
|
108
108
|
type: "item_quantity_change";
|
|
109
|
+
item_id: string;
|
|
110
|
+
customer_id: string;
|
|
109
111
|
quantity: number;
|
|
110
|
-
customer_type: "
|
|
112
|
+
customer_type: "team" | "user" | "custom";
|
|
111
113
|
adjusted_transaction_id: string | null;
|
|
112
114
|
adjusted_entry_index: number | null;
|
|
113
|
-
customer_id: string;
|
|
114
|
-
item_id: string;
|
|
115
115
|
} | {
|
|
116
|
-
subscription_id?: string | undefined;
|
|
117
116
|
one_time_purchase_id?: string | undefined;
|
|
117
|
+
subscription_id?: string | undefined;
|
|
118
118
|
type: "product_grant";
|
|
119
|
+
customer_id: string;
|
|
120
|
+
product_id: string | null;
|
|
119
121
|
quantity: number;
|
|
120
|
-
customer_type: "
|
|
122
|
+
customer_type: "team" | "user" | "custom";
|
|
121
123
|
product: {
|
|
124
|
+
free_trial?: DayInterval | undefined;
|
|
122
125
|
client_metadata?: {} | null | undefined;
|
|
123
126
|
client_read_only_metadata?: {} | null | undefined;
|
|
124
127
|
server_metadata?: {} | null | undefined;
|
|
125
|
-
free_trial?: DayInterval | undefined;
|
|
126
|
-
display_name: string;
|
|
127
|
-
customer_type: "user" | "team" | "custom";
|
|
128
128
|
server_only: boolean;
|
|
129
|
+
customer_type: "team" | "user" | "custom";
|
|
129
130
|
stackable: boolean;
|
|
130
131
|
prices: Record<string, {
|
|
131
|
-
free_trial?: DayInterval | undefined;
|
|
132
132
|
USD?: string | undefined;
|
|
133
133
|
EUR?: string | undefined;
|
|
134
134
|
GBP?: string | undefined;
|
|
@@ -137,17 +137,17 @@ declare const transactionSchema: import("yup").ObjectSchema<{
|
|
|
137
137
|
AUD?: string | undefined;
|
|
138
138
|
CAD?: string | undefined;
|
|
139
139
|
interval?: DayInterval | undefined;
|
|
140
|
+
free_trial?: DayInterval | undefined;
|
|
140
141
|
}>;
|
|
142
|
+
display_name: string;
|
|
141
143
|
included_items: Record<string, {
|
|
142
|
-
repeat?: "never" | DayInterval | undefined;
|
|
143
144
|
quantity?: number | undefined;
|
|
145
|
+
repeat?: "never" | DayInterval | undefined;
|
|
144
146
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
145
147
|
}>;
|
|
146
148
|
};
|
|
147
|
-
product_id: string | null;
|
|
148
149
|
adjusted_transaction_id: string | null;
|
|
149
150
|
adjusted_entry_index: number | null;
|
|
150
|
-
customer_id: string;
|
|
151
151
|
price_id: string | null;
|
|
152
152
|
} | {
|
|
153
153
|
type: "product_revocation";
|
|
@@ -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-
|
|
182
|
+
//# sourceMappingURL=transactions-CHNUJ42J.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { c as CrudTypeOf, s as CrudSchemaFromOptions } from "./crud-CqmEW9s6.js";
|
|
2
|
-
import { t as WebhookEvent } from "./webhooks-
|
|
2
|
+
import { t as WebhookEvent } from "./webhooks-8Ts1Clcb.js";
|
|
3
3
|
import * as yup$1 from "yup";
|
|
4
4
|
import { InferType } from "yup";
|
|
5
5
|
|
|
@@ -80,10 +80,10 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
80
80
|
client_metadata?: {} | null | undefined;
|
|
81
81
|
client_read_only_metadata?: {} | null | undefined;
|
|
82
82
|
server_metadata?: {} | null | undefined;
|
|
83
|
-
id: string;
|
|
84
83
|
display_name: string;
|
|
85
|
-
|
|
84
|
+
id: string;
|
|
86
85
|
created_at_millis: number;
|
|
86
|
+
profile_image_url: string | null;
|
|
87
87
|
} | null;
|
|
88
88
|
selected_team_id: string | null;
|
|
89
89
|
profile_image_url: string | null;
|
|
@@ -162,34 +162,34 @@ 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
|
+
display_name: string | null | undefined;
|
|
165
167
|
client_metadata: {} | null | undefined;
|
|
166
168
|
client_read_only_metadata: {} | null | undefined;
|
|
167
169
|
server_metadata: {} | null | undefined;
|
|
168
|
-
|
|
170
|
+
is_anonymous: boolean | undefined;
|
|
171
|
+
password: string | null | undefined;
|
|
172
|
+
country_code: string | null | undefined;
|
|
173
|
+
profile_image_url: string | null | undefined;
|
|
169
174
|
primary_email_verified: boolean | undefined;
|
|
170
175
|
primary_email_auth_enabled: boolean | undefined;
|
|
171
|
-
display_name: string | null | undefined;
|
|
172
|
-
profile_image_url: string | null | undefined;
|
|
173
176
|
otp_auth_enabled: boolean | undefined;
|
|
174
177
|
passkey_auth_enabled: boolean | undefined;
|
|
175
|
-
is_anonymous: boolean | undefined;
|
|
176
178
|
restricted_by_admin: boolean | undefined;
|
|
177
179
|
restricted_by_admin_reason: string | null | undefined;
|
|
178
180
|
restricted_by_admin_private_details: string | null | undefined;
|
|
179
|
-
country_code: string | null | undefined;
|
|
180
181
|
risk_scores: {
|
|
181
182
|
sign_up: {
|
|
182
183
|
bot: number;
|
|
183
184
|
free_trial_abuse: number;
|
|
184
185
|
};
|
|
185
186
|
} | undefined;
|
|
186
|
-
password: string | null | undefined;
|
|
187
187
|
password_hash: string | undefined;
|
|
188
188
|
totp_secret_base64: string | null | undefined;
|
|
189
189
|
} & {
|
|
190
190
|
oauth_providers: {
|
|
191
|
-
id: string;
|
|
192
191
|
email: string | null;
|
|
192
|
+
id: string;
|
|
193
193
|
account_id: string;
|
|
194
194
|
}[] | undefined;
|
|
195
195
|
is_anonymous: boolean | undefined;
|
|
@@ -233,10 +233,10 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
233
233
|
client_metadata?: {} | null | undefined;
|
|
234
234
|
client_read_only_metadata?: {} | null | undefined;
|
|
235
235
|
server_metadata?: {} | null | undefined;
|
|
236
|
-
id: string;
|
|
237
236
|
display_name: string;
|
|
238
|
-
|
|
237
|
+
id: string;
|
|
239
238
|
created_at_millis: number;
|
|
239
|
+
profile_image_url: string | null;
|
|
240
240
|
} | null;
|
|
241
241
|
selected_team_id: string | null;
|
|
242
242
|
profile_image_url: string | null;
|
|
@@ -368,34 +368,34 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
368
368
|
};
|
|
369
369
|
}, "">;
|
|
370
370
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
371
|
+
primary_email: string | null | undefined;
|
|
372
|
+
display_name: string | null | undefined;
|
|
371
373
|
client_metadata: {} | null | undefined;
|
|
372
374
|
client_read_only_metadata: {} | null | undefined;
|
|
373
375
|
server_metadata: {} | null | undefined;
|
|
374
|
-
|
|
376
|
+
is_anonymous: boolean | undefined;
|
|
377
|
+
password: string | null | undefined;
|
|
378
|
+
country_code: string | null | undefined;
|
|
379
|
+
profile_image_url: string | null | undefined;
|
|
375
380
|
primary_email_verified: boolean | undefined;
|
|
376
381
|
primary_email_auth_enabled: boolean | undefined;
|
|
377
|
-
display_name: string | null | undefined;
|
|
378
|
-
profile_image_url: string | null | undefined;
|
|
379
382
|
otp_auth_enabled: boolean | undefined;
|
|
380
383
|
passkey_auth_enabled: boolean | undefined;
|
|
381
|
-
is_anonymous: boolean | undefined;
|
|
382
384
|
restricted_by_admin: boolean | undefined;
|
|
383
385
|
restricted_by_admin_reason: string | null | undefined;
|
|
384
386
|
restricted_by_admin_private_details: string | null | undefined;
|
|
385
|
-
country_code: string | null | undefined;
|
|
386
387
|
risk_scores: {
|
|
387
388
|
sign_up: {
|
|
388
389
|
bot: number;
|
|
389
390
|
free_trial_abuse: number;
|
|
390
391
|
};
|
|
391
392
|
} | undefined;
|
|
392
|
-
password: string | null | undefined;
|
|
393
393
|
password_hash: string | undefined;
|
|
394
394
|
totp_secret_base64: string | null | undefined;
|
|
395
395
|
} & {
|
|
396
396
|
oauth_providers: {
|
|
397
|
-
id: string;
|
|
398
397
|
email: string | null;
|
|
398
|
+
id: string;
|
|
399
399
|
account_id: string;
|
|
400
400
|
}[] | undefined;
|
|
401
401
|
is_anonymous: boolean | undefined;
|
|
@@ -467,10 +467,10 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
467
467
|
client_metadata?: {} | null | undefined;
|
|
468
468
|
client_read_only_metadata?: {} | null | undefined;
|
|
469
469
|
server_metadata?: {} | null | undefined;
|
|
470
|
-
id: string;
|
|
471
470
|
display_name: string;
|
|
472
|
-
|
|
471
|
+
id: string;
|
|
473
472
|
created_at_millis: number;
|
|
473
|
+
profile_image_url: string | null;
|
|
474
474
|
} | null;
|
|
475
475
|
selected_team_id: string | null;
|
|
476
476
|
profile_image_url: string | null;
|
|
@@ -558,10 +558,10 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
558
558
|
client_metadata?: {} | null | undefined;
|
|
559
559
|
client_read_only_metadata?: {} | null | undefined;
|
|
560
560
|
server_metadata?: {} | null | undefined;
|
|
561
|
-
id: string;
|
|
562
561
|
display_name: string;
|
|
563
|
-
|
|
562
|
+
id: string;
|
|
564
563
|
created_at_millis: number;
|
|
564
|
+
profile_image_url: string | null;
|
|
565
565
|
} | null;
|
|
566
566
|
selected_team_id: string | null;
|
|
567
567
|
profile_image_url: string | null;
|
|
@@ -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-
|
|
653
|
+
//# sourceMappingURL=users-DHNRwoSz.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users-
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAM3B,KAAA,CAAA,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAEA,2BAAA,EAA2B,KAAA,CAAA,WAAA,iBAAA,KAAA,CAAA,SAAA;AAAA,cAE3B,SAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAiCD,SAAA,GAAY,UAAU,QAAQ,SAAA;AAAA,cAc7B,uBAAA,EAAuB,YAAA,CAAA,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cACvB,uBAAA,EAAuB,YAAA,CAAA,KAAA,CAAA,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAQvB,uBAAA,EAAuB,YAAA,CAAA,KAAA,CAAA,YAAA"}
|
|
@@ -20,10 +20,10 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
|
|
|
20
20
|
client_metadata?: {} | null | undefined;
|
|
21
21
|
client_read_only_metadata?: {} | null | undefined;
|
|
22
22
|
server_metadata?: {} | null | undefined;
|
|
23
|
-
id: string;
|
|
24
23
|
display_name: string;
|
|
25
|
-
|
|
24
|
+
id: string;
|
|
26
25
|
created_at_millis: number;
|
|
26
|
+
profile_image_url: string | null;
|
|
27
27
|
} | null;
|
|
28
28
|
selected_team_id: string | null;
|
|
29
29
|
profile_image_url: string | null;
|
|
@@ -110,10 +110,10 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
|
|
|
110
110
|
client_metadata?: {} | null | undefined;
|
|
111
111
|
client_read_only_metadata?: {} | null | undefined;
|
|
112
112
|
server_metadata?: {} | null | undefined;
|
|
113
|
-
id: string;
|
|
114
113
|
display_name: string;
|
|
115
|
-
|
|
114
|
+
id: string;
|
|
116
115
|
created_at_millis: number;
|
|
116
|
+
profile_image_url: string | null;
|
|
117
117
|
} | null;
|
|
118
118
|
selected_team_id: string | null;
|
|
119
119
|
profile_image_url: string | null;
|
|
@@ -323,4 +323,4 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
|
|
|
323
323
|
}];
|
|
324
324
|
//#endregion
|
|
325
325
|
export { webhookEvents as n, WebhookEvent as t };
|
|
326
|
-
//# sourceMappingURL=webhooks-
|
|
326
|
+
//# sourceMappingURL=webhooks-8Ts1Clcb.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-
|
|
1
|
+
{"version":3,"file":"webhooks-8Ts1Clcb.d.ts","names":[],"sources":["../src/interface/webhooks.ts"],"mappings":";;;KAMY,YAAA,WAAuB,KAAA,CAAI,MAAA;EACrC,IAAA;EACA,MAAA,EAAQ,CAAC;EACT,QAAA;IACE,OAAA;IACA,WAAA;IACA,IAAA;EAAA;AAAA;AAAA,cAIS,aAAA,YAAa,YAAA,CAAA,KAAA,CAAA,YAAA"}
|
package/package.json
CHANGED
package/src/ai/llms/llms.ts
CHANGED
|
@@ -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.
|
|
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
|
|
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
|
|
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
|
`;
|
package/src/apps/apps-config.ts
CHANGED
|
@@ -186,6 +186,12 @@ export const ALL_APPS = {
|
|
|
186
186
|
stage: "stable",
|
|
187
187
|
parentAppId: "analytics",
|
|
188
188
|
},
|
|
189
|
+
"gtm": {
|
|
190
|
+
displayName: "GTM",
|
|
191
|
+
subtitle: "Internal go-to-market workspace",
|
|
192
|
+
tags: ["gtm", "operations"],
|
|
193
|
+
stage: "alpha",
|
|
194
|
+
},
|
|
189
195
|
"cli-auth": {
|
|
190
196
|
displayName: "CLI Auth",
|
|
191
197
|
subtitle: "Monitor CLI authentication sessions and active tokens",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"transactions-7q13mxhG.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"}
|