@hexclave/shared 1.0.59 → 1.0.61
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-v-CiCt1-.d.ts → admin-interface-ChuyYSXj.d.ts} +11 -11
- package/dist/{admin-interface-v-CiCt1-.d.ts.map → admin-interface-ChuyYSXj.d.ts.map} +1 -1
- package/dist/{admin-metrics-bsOkw4YQ.d.ts → admin-metrics-1yiWGq9z.d.ts} +15 -15
- package/dist/{admin-metrics-bsOkw4YQ.d.ts.map → admin-metrics-1yiWGq9z.d.ts.map} +1 -1
- package/dist/ai/unified-prompts/reminders.js +1 -1
- package/dist/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +12 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
- package/dist/{client-interface-DvkciaL0.d.ts → client-interface-C4H4gn_G.d.ts} +10 -10
- package/dist/{client-interface-DvkciaL0.d.ts.map → client-interface-C4H4gn_G.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-BBoN3hsn.d.ts → current-user-BCkMYzHx.d.ts} +17 -17
- package/dist/{current-user-BBoN3hsn.d.ts.map → current-user-BCkMYzHx.d.ts.map} +1 -1
- package/dist/{email-outbox-B1wmVPRG.d.ts → email-outbox-BRZiK0ZG.d.ts} +221 -221
- package/dist/{email-outbox-B1wmVPRG.d.ts.map → email-outbox-BRZiK0ZG.d.ts.map} +1 -1
- package/dist/esm/ai/unified-prompts/reminders.js +1 -1
- package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +12 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.d.ts +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.js.map +1 -1
- package/dist/esm/config/schema.d.ts +116 -116
- 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 +220 -220
- 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 +12 -12
- package/dist/esm/sessions.d.ts +9 -9
- 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-CHo9YKbI.d.ts → invoices-BGLLnTlR.d.ts} +3 -3
- package/dist/{invoices-CHo9YKbI.d.ts.map → invoices-BGLLnTlR.d.ts.map} +1 -1
- package/dist/{known-errors-Bm4a61wL.d.ts → known-errors-Bhd0JAgh.d.ts} +5 -5
- package/dist/{known-errors-Bm4a61wL.d.ts.map → known-errors-Bhd0JAgh.d.ts.map} +1 -1
- package/dist/known-errors.d.ts +1 -1
- package/dist/{plan-usage-BaDxcLZ1.d.ts → plan-usage-COq9I00z.d.ts} +2 -2
- package/dist/{plan-usage-BaDxcLZ1.d.ts.map → plan-usage-COq9I00z.d.ts.map} +1 -1
- package/dist/{products-D4o8A2W0.d.ts → products-BkPf1X78.d.ts} +24 -24
- package/dist/{products-D4o8A2W0.d.ts.map → products-BkPf1X78.d.ts.map} +1 -1
- package/dist/{project-api-keys--7V5X_UW.d.ts → project-api-keys-CK9SIo0q.d.ts} +5 -5
- package/dist/{project-api-keys--7V5X_UW.d.ts.map → project-api-keys-CK9SIo0q.d.ts.map} +1 -1
- package/dist/{projects-BX5Y50kJ.d.ts → projects-CVqfljhv.d.ts} +60 -60
- package/dist/{projects-BX5Y50kJ.d.ts.map → projects-CVqfljhv.d.ts.map} +1 -1
- package/dist/{schema-DV0SQUbY.d.ts → schema-BPMGhu_7.d.ts} +117 -117
- package/dist/{schema-DV0SQUbY.d.ts.map → schema-BPMGhu_7.d.ts.map} +1 -1
- package/dist/{schema-fields-DZtDQEEO.d.ts → schema-fields-C8sIQVTq.d.ts} +13 -13
- package/dist/{schema-fields-DZtDQEEO.d.ts.map → schema-fields-C8sIQVTq.d.ts.map} +1 -1
- package/dist/schema-fields.d.ts +1 -1
- package/dist/{server-interface-Ra_vIHP4.d.ts → server-interface-CRp4VVZh.d.ts} +8 -8
- package/dist/{server-interface-Ra_vIHP4.d.ts.map → server-interface-CRp4VVZh.d.ts.map} +1 -1
- package/dist/{sessions-CI-0TBQb.d.ts → sessions-COluKK6_.d.ts} +11 -11
- package/dist/{sessions-CI-0TBQb.d.ts.map → sessions-COluKK6_.d.ts.map} +1 -1
- package/dist/sessions.d.ts +1 -1
- package/dist/{team-member-profiles-BoDEqx-0.d.ts → team-member-profiles-CgYXR-Rx.d.ts} +33 -33
- package/dist/{team-member-profiles-BoDEqx-0.d.ts.map → team-member-profiles-CgYXR-Rx.d.ts.map} +1 -1
- package/dist/{transactions-CHNUJ42J.d.ts → transactions-7q13mxhG.d.ts} +30 -30
- package/dist/transactions-7q13mxhG.d.ts.map +1 -0
- package/dist/{users-DHNRwoSz.d.ts → users-7MKfEyyq.d.ts} +24 -24
- package/dist/{users-DHNRwoSz.d.ts.map → users-7MKfEyyq.d.ts.map} +1 -1
- package/dist/{webhooks-8Ts1Clcb.d.ts → webhooks-C5gG85Ce.d.ts} +5 -5
- package/dist/{webhooks-8Ts1Clcb.d.ts.map → webhooks-C5gG85Ce.d.ts.map} +1 -1
- package/package.json +1 -1
- package/src/ai/unified-prompts/reminders.ts +1 -1
- package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +7 -7
- package/src/ai/unified-prompts/skill-site-prompt-parts/docs-json.generated.ts +1 -0
- package/dist/transactions-CHNUJ42J.d.ts.map +0 -1
|
@@ -4,8 +4,7 @@ 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
|
-
|
|
8
|
-
customer_type: "team" | "user" | "custom";
|
|
7
|
+
customer_type: "user" | "team" | "custom";
|
|
9
8
|
charged_amount: {
|
|
10
9
|
USD?: string | undefined;
|
|
11
10
|
EUR?: string | undefined;
|
|
@@ -20,31 +19,32 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
|
|
|
20
19
|
};
|
|
21
20
|
adjusted_transaction_id: string | null;
|
|
22
21
|
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;
|
|
27
25
|
quantity: number;
|
|
28
|
-
customer_type: "
|
|
26
|
+
customer_type: "user" | "team" | "custom";
|
|
29
27
|
adjusted_transaction_id: string | null;
|
|
30
28
|
adjusted_entry_index: number | null;
|
|
29
|
+
customer_id: string;
|
|
30
|
+
item_id: string;
|
|
31
31
|
} | {
|
|
32
|
-
one_time_purchase_id?: string | undefined;
|
|
33
32
|
subscription_id?: string | undefined;
|
|
33
|
+
one_time_purchase_id?: string | undefined;
|
|
34
34
|
type: "product_grant";
|
|
35
|
-
customer_id: string;
|
|
36
|
-
product_id: string | null;
|
|
37
35
|
quantity: number;
|
|
38
|
-
customer_type: "
|
|
36
|
+
customer_type: "user" | "team" | "custom";
|
|
39
37
|
product: {
|
|
40
|
-
free_trial?: DayInterval | undefined;
|
|
41
38
|
client_metadata?: {} | null | undefined;
|
|
42
39
|
client_read_only_metadata?: {} | null | undefined;
|
|
43
40
|
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";
|
|
46
45
|
stackable: boolean;
|
|
47
46
|
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;
|
|
57
56
|
}>;
|
|
58
|
-
display_name: string;
|
|
59
57
|
included_items: Record<string, {
|
|
60
|
-
quantity?: number | undefined;
|
|
61
58
|
repeat?: "never" | DayInterval | undefined;
|
|
59
|
+
quantity?: number | undefined;
|
|
62
60
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
63
61
|
}>;
|
|
64
62
|
};
|
|
63
|
+
product_id: string | null;
|
|
65
64
|
adjusted_transaction_id: string | null;
|
|
66
65
|
adjusted_entry_index: number | null;
|
|
66
|
+
customer_id: string;
|
|
67
67
|
price_id: string | null;
|
|
68
68
|
} | {
|
|
69
69
|
type: "product_revocation";
|
|
@@ -84,12 +84,11 @@ 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: "user" | "team" | "custom";
|
|
88
88
|
customer_id: string;
|
|
89
89
|
entries: ({
|
|
90
90
|
type: "money_transfer";
|
|
91
|
-
|
|
92
|
-
customer_type: "team" | "user" | "custom";
|
|
91
|
+
customer_type: "user" | "team" | "custom";
|
|
93
92
|
charged_amount: {
|
|
94
93
|
USD?: string | undefined;
|
|
95
94
|
EUR?: string | undefined;
|
|
@@ -104,31 +103,32 @@ declare const transactionSchema: import("yup").ObjectSchema<{
|
|
|
104
103
|
};
|
|
105
104
|
adjusted_transaction_id: string | null;
|
|
106
105
|
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;
|
|
111
109
|
quantity: number;
|
|
112
|
-
customer_type: "
|
|
110
|
+
customer_type: "user" | "team" | "custom";
|
|
113
111
|
adjusted_transaction_id: string | null;
|
|
114
112
|
adjusted_entry_index: number | null;
|
|
113
|
+
customer_id: string;
|
|
114
|
+
item_id: string;
|
|
115
115
|
} | {
|
|
116
|
-
one_time_purchase_id?: string | undefined;
|
|
117
116
|
subscription_id?: string | undefined;
|
|
117
|
+
one_time_purchase_id?: string | undefined;
|
|
118
118
|
type: "product_grant";
|
|
119
|
-
customer_id: string;
|
|
120
|
-
product_id: string | null;
|
|
121
119
|
quantity: number;
|
|
122
|
-
customer_type: "
|
|
120
|
+
customer_type: "user" | "team" | "custom";
|
|
123
121
|
product: {
|
|
124
|
-
free_trial?: DayInterval | undefined;
|
|
125
122
|
client_metadata?: {} | null | undefined;
|
|
126
123
|
client_read_only_metadata?: {} | null | undefined;
|
|
127
124
|
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";
|
|
130
129
|
stackable: boolean;
|
|
131
130
|
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;
|
|
141
140
|
}>;
|
|
142
|
-
display_name: string;
|
|
143
141
|
included_items: Record<string, {
|
|
144
|
-
quantity?: number | undefined;
|
|
145
142
|
repeat?: "never" | DayInterval | undefined;
|
|
143
|
+
quantity?: number | undefined;
|
|
146
144
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
147
145
|
}>;
|
|
148
146
|
};
|
|
147
|
+
product_id: string | null;
|
|
149
148
|
adjusted_transaction_id: string | null;
|
|
150
149
|
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-7q13mxhG.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
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"}
|
|
@@ -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-C5gG85Ce.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
|
-
display_name: string;
|
|
84
83
|
id: string;
|
|
85
|
-
|
|
84
|
+
display_name: string;
|
|
86
85
|
profile_image_url: string | null;
|
|
86
|
+
created_at_millis: number;
|
|
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;
|
|
167
165
|
client_metadata: {} | null | undefined;
|
|
168
166
|
client_read_only_metadata: {} | null | undefined;
|
|
169
167
|
server_metadata: {} | null | undefined;
|
|
170
|
-
|
|
171
|
-
password: string | null | undefined;
|
|
172
|
-
country_code: string | null | undefined;
|
|
173
|
-
profile_image_url: string | null | undefined;
|
|
168
|
+
primary_email: string | null | undefined;
|
|
174
169
|
primary_email_verified: boolean | undefined;
|
|
175
170
|
primary_email_auth_enabled: boolean | undefined;
|
|
171
|
+
display_name: string | null | undefined;
|
|
172
|
+
profile_image_url: string | null | undefined;
|
|
176
173
|
otp_auth_enabled: boolean | undefined;
|
|
177
174
|
passkey_auth_enabled: boolean | undefined;
|
|
175
|
+
is_anonymous: boolean | undefined;
|
|
178
176
|
restricted_by_admin: boolean | undefined;
|
|
179
177
|
restricted_by_admin_reason: string | null | undefined;
|
|
180
178
|
restricted_by_admin_private_details: string | null | undefined;
|
|
179
|
+
country_code: string | null | undefined;
|
|
181
180
|
risk_scores: {
|
|
182
181
|
sign_up: {
|
|
183
182
|
bot: number;
|
|
184
183
|
free_trial_abuse: number;
|
|
185
184
|
};
|
|
186
185
|
} | 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
|
-
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;
|
|
@@ -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
|
-
display_name: string;
|
|
237
236
|
id: string;
|
|
238
|
-
|
|
237
|
+
display_name: string;
|
|
239
238
|
profile_image_url: string | null;
|
|
239
|
+
created_at_millis: number;
|
|
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;
|
|
373
371
|
client_metadata: {} | null | undefined;
|
|
374
372
|
client_read_only_metadata: {} | null | undefined;
|
|
375
373
|
server_metadata: {} | null | undefined;
|
|
376
|
-
|
|
377
|
-
password: string | null | undefined;
|
|
378
|
-
country_code: string | null | undefined;
|
|
379
|
-
profile_image_url: string | null | undefined;
|
|
374
|
+
primary_email: string | null | undefined;
|
|
380
375
|
primary_email_verified: boolean | undefined;
|
|
381
376
|
primary_email_auth_enabled: boolean | undefined;
|
|
377
|
+
display_name: string | null | undefined;
|
|
378
|
+
profile_image_url: string | null | undefined;
|
|
382
379
|
otp_auth_enabled: boolean | undefined;
|
|
383
380
|
passkey_auth_enabled: boolean | undefined;
|
|
381
|
+
is_anonymous: boolean | undefined;
|
|
384
382
|
restricted_by_admin: boolean | undefined;
|
|
385
383
|
restricted_by_admin_reason: string | null | undefined;
|
|
386
384
|
restricted_by_admin_private_details: string | null | undefined;
|
|
385
|
+
country_code: string | null | undefined;
|
|
387
386
|
risk_scores: {
|
|
388
387
|
sign_up: {
|
|
389
388
|
bot: number;
|
|
390
389
|
free_trial_abuse: number;
|
|
391
390
|
};
|
|
392
391
|
} | 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
|
-
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;
|
|
@@ -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
|
-
display_name: string;
|
|
471
470
|
id: string;
|
|
472
|
-
|
|
471
|
+
display_name: string;
|
|
473
472
|
profile_image_url: string | null;
|
|
473
|
+
created_at_millis: number;
|
|
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
|
-
display_name: string;
|
|
562
561
|
id: string;
|
|
563
|
-
|
|
562
|
+
display_name: string;
|
|
564
563
|
profile_image_url: string | null;
|
|
564
|
+
created_at_millis: number;
|
|
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-7MKfEyyq.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users-
|
|
1
|
+
{"version":3,"file":"users-7MKfEyyq.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
|
-
display_name: string;
|
|
24
23
|
id: string;
|
|
25
|
-
|
|
24
|
+
display_name: string;
|
|
26
25
|
profile_image_url: string | null;
|
|
26
|
+
created_at_millis: number;
|
|
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
|
-
display_name: string;
|
|
114
113
|
id: string;
|
|
115
|
-
|
|
114
|
+
display_name: string;
|
|
116
115
|
profile_image_url: string | null;
|
|
116
|
+
created_at_millis: number;
|
|
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-C5gG85Ce.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhooks-
|
|
1
|
+
{"version":3,"file":"webhooks-C5gG85Ce.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
|
@@ -13,7 +13,7 @@ export const remindersPrompt = deindent`
|
|
|
13
13
|
- Follow indirection. If a doc page points to another URL, script, or resource, fetch that too — Hexclave composes behavior across pages.
|
|
14
14
|
- Hexclave is a platform that provides a variety of apps that help you connect with your users. As of the time of writing these reminders, Hexclave provides the following apps (although not all may be enabled): ${Object.entries(ALL_APPS).filter(([, app]) => app.stage !== "alpha").map(([key]) => key).join(", ")}. Don't hardcode this list, as it changes rapidly. Whenever you need anything related to any of these apps, always try to use Hexclave first.
|
|
15
15
|
- The most important object in the Hexclave SDK is the Hexclave App object. HexclaveClientApp provides client-side functionality, while HexclaveServerApp also provides server-side functionality (but can usually only be imported on the server, as it requires a secret server key environment variable). You can usually find an instance of this object in a file called \`hexclave/client.tsx\` or \`hexclave/server.tsx\`, although it may be in a different location in this particular codebase.
|
|
16
|
-
-
|
|
16
|
+
- During development, project ID and secret server key environment variables are AUTOMATICALLY provided to the child process by the \`dev\` command of the CLI (\`npx @hexclave/cli dev --config-file <path-to-config-file> -- <command-to-execute>\`). This is the recommended way to fill the environment variables during local development. This is recommended because it allows you to use the config file to configure Hexclave declaratively, instead of requiring the user to configure things in the dashboard manually. Do NOT ask the user to set up those environment variables manually during development; instead, if you are facing issues, debug why \`dev\` isn't wrapping the command correctly.
|
|
17
17
|
- Take extra care to always have great error handling and loading states whenever necessary (including in button onClick handlers; Hexclave's code examples often use a special onClick class which handles loading states, but your own button may not). Hexclave's SDK tends to return errors that need to be handled explicitly in its return types.
|
|
18
18
|
- Language, framework, and library-specific details:
|
|
19
19
|
- JavaScript & TypeScript:
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import packageJson from "../../../../package.json";
|
|
1
2
|
import { ALL_APPS, type AppId } from "../../../apps/apps-config";
|
|
2
3
|
import { typedEntries } from "../../../utils/objects";
|
|
3
4
|
import { deindent } from "../../../utils/strings";
|
|
@@ -890,12 +891,11 @@ export function getSdkSetupPrompt(mainType: "ai-prompt" | "nextjs" | "react" | "
|
|
|
890
891
|
\`\`\`html
|
|
891
892
|
<script type="module">
|
|
892
893
|
// Pin a specific version so a new release cannot unexpectedly break your page.
|
|
893
|
-
import { HexclaveClientApp } from "https://esm.sh/@hexclave/js
|
|
894
|
+
import { HexclaveClientApp } from "https://esm.sh/@hexclave/js@${packageJson.version}";
|
|
894
895
|
|
|
895
896
|
globalThis.hexclaveClientApp = new HexclaveClientApp({
|
|
896
|
-
//
|
|
897
|
-
//
|
|
898
|
-
// enabled) MUST be passed explicitly here.
|
|
897
|
+
// As you cannot inject environment variables into the browser without a bundler,
|
|
898
|
+
// the project ID must be passed explicitly here.
|
|
899
899
|
projectId: "your-project-id",
|
|
900
900
|
tokenStore: "cookie",
|
|
901
901
|
urls: {
|
|
@@ -911,9 +911,9 @@ export function getSdkSetupPrompt(mainType: "ai-prompt" | "nextjs" | "react" | "
|
|
|
911
911
|
|
|
912
912
|
Important caveats for this approach:
|
|
913
913
|
|
|
914
|
-
-
|
|
915
|
-
- Only ever construct a \`HexclaveClientApp\` here, never a \`HexclaveServerApp\`, since
|
|
916
|
-
- As shown above, pin a specific version (e.g. \`https://esm.sh/@hexclave/js
|
|
914
|
+
- Without a bundler or build step, there is no concept of environment variables in a browser. If there is no build step to inject \`HEXCLAVE_PROJECT_ID\` and related variables, you must hard-code \`projectId\` (and \`publishableClientKey\` if \`requirePublishableClientKey\` is enabled) directly in the constructor, or inject the environment variables either at build or request time in the server that serves the static file.
|
|
915
|
+
- Only ever construct a \`HexclaveClientApp\` here, never a \`HexclaveServerApp\`, since a \`<script>\` tag runs on the client by design. Do not put a secret server key on the page.
|
|
916
|
+
- As shown above, pin a specific version (e.g. \`https://esm.sh/@hexclave/js@${packageJson.version}\`) rather than the unpinned \`https://esm.sh/@hexclave/js\`, so that a new SDK release cannot unexpectedly break your page.
|
|
917
917
|
` : ""}
|
|
918
918
|
|
|
919
919
|
${isMaybeBackend ? 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"}
|