@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
|
@@ -19,40 +19,39 @@ declare const teamMemberProfilesCrudServerReadSchema: import("yup").ObjectSchema
|
|
|
19
19
|
profile_image_url: string | null;
|
|
20
20
|
} & {
|
|
21
21
|
user: {
|
|
22
|
-
|
|
23
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
24
|
-
} | null;
|
|
25
|
-
primary_email: string | null;
|
|
26
|
-
display_name: string | null;
|
|
22
|
+
id: string;
|
|
27
23
|
client_metadata: {} | null;
|
|
28
24
|
client_read_only_metadata: {} | null;
|
|
29
25
|
server_metadata: {} | null;
|
|
30
|
-
|
|
31
|
-
selected_team_id: string | null;
|
|
32
|
-
is_anonymous: boolean;
|
|
33
|
-
is_restricted: boolean;
|
|
34
|
-
requires_totp_mfa: boolean;
|
|
35
|
-
country_code: string | null;
|
|
36
|
-
profile_image_url: string | null;
|
|
37
|
-
signed_up_at_millis: number;
|
|
38
|
-
last_active_at_millis: number;
|
|
26
|
+
primary_email: string | null;
|
|
39
27
|
primary_email_verified: boolean;
|
|
40
28
|
primary_email_auth_enabled: boolean;
|
|
29
|
+
display_name: string | null;
|
|
30
|
+
profile_image_url: string | null;
|
|
41
31
|
selected_team: {
|
|
42
32
|
client_metadata?: {} | null | undefined;
|
|
43
33
|
client_read_only_metadata?: {} | null | undefined;
|
|
44
34
|
server_metadata?: {} | null | undefined;
|
|
45
|
-
display_name: string;
|
|
46
35
|
id: string;
|
|
47
|
-
|
|
36
|
+
display_name: string;
|
|
48
37
|
profile_image_url: string | null;
|
|
38
|
+
created_at_millis: number;
|
|
49
39
|
} | null;
|
|
40
|
+
selected_team_id: string | null;
|
|
41
|
+
signed_up_at_millis: number;
|
|
50
42
|
has_password: boolean;
|
|
51
43
|
otp_auth_enabled: boolean;
|
|
52
44
|
passkey_auth_enabled: boolean;
|
|
45
|
+
last_active_at_millis: number;
|
|
46
|
+
is_anonymous: boolean;
|
|
47
|
+
is_restricted: boolean;
|
|
48
|
+
restricted_reason: {
|
|
49
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
50
|
+
} | null;
|
|
53
51
|
restricted_by_admin: boolean;
|
|
54
52
|
restricted_by_admin_reason: string | null;
|
|
55
53
|
restricted_by_admin_private_details: string | null;
|
|
54
|
+
country_code: string | null;
|
|
56
55
|
risk_scores: {
|
|
57
56
|
sign_up: {
|
|
58
57
|
bot: number;
|
|
@@ -65,6 +64,7 @@ declare const teamMemberProfilesCrudServerReadSchema: import("yup").ObjectSchema
|
|
|
65
64
|
account_id: string;
|
|
66
65
|
}[];
|
|
67
66
|
auth_with_email: boolean;
|
|
67
|
+
requires_totp_mfa: boolean;
|
|
68
68
|
};
|
|
69
69
|
}, import("yup").AnyObject, {
|
|
70
70
|
team_id: undefined;
|
|
@@ -142,40 +142,39 @@ declare const teamMemberProfilesCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
142
142
|
profile_image_url: string | null;
|
|
143
143
|
} & {
|
|
144
144
|
user: {
|
|
145
|
-
|
|
146
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
147
|
-
} | null;
|
|
148
|
-
primary_email: string | null;
|
|
149
|
-
display_name: string | null;
|
|
145
|
+
id: string;
|
|
150
146
|
client_metadata: {} | null;
|
|
151
147
|
client_read_only_metadata: {} | null;
|
|
152
148
|
server_metadata: {} | null;
|
|
153
|
-
|
|
154
|
-
selected_team_id: string | null;
|
|
155
|
-
is_anonymous: boolean;
|
|
156
|
-
is_restricted: boolean;
|
|
157
|
-
requires_totp_mfa: boolean;
|
|
158
|
-
country_code: string | null;
|
|
159
|
-
profile_image_url: string | null;
|
|
160
|
-
signed_up_at_millis: number;
|
|
161
|
-
last_active_at_millis: number;
|
|
149
|
+
primary_email: string | null;
|
|
162
150
|
primary_email_verified: boolean;
|
|
163
151
|
primary_email_auth_enabled: boolean;
|
|
152
|
+
display_name: string | null;
|
|
153
|
+
profile_image_url: string | null;
|
|
164
154
|
selected_team: {
|
|
165
155
|
client_metadata?: {} | null | undefined;
|
|
166
156
|
client_read_only_metadata?: {} | null | undefined;
|
|
167
157
|
server_metadata?: {} | null | undefined;
|
|
168
|
-
display_name: string;
|
|
169
158
|
id: string;
|
|
170
|
-
|
|
159
|
+
display_name: string;
|
|
171
160
|
profile_image_url: string | null;
|
|
161
|
+
created_at_millis: number;
|
|
172
162
|
} | null;
|
|
163
|
+
selected_team_id: string | null;
|
|
164
|
+
signed_up_at_millis: number;
|
|
173
165
|
has_password: boolean;
|
|
174
166
|
otp_auth_enabled: boolean;
|
|
175
167
|
passkey_auth_enabled: boolean;
|
|
168
|
+
last_active_at_millis: number;
|
|
169
|
+
is_anonymous: boolean;
|
|
170
|
+
is_restricted: boolean;
|
|
171
|
+
restricted_reason: {
|
|
172
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
173
|
+
} | null;
|
|
176
174
|
restricted_by_admin: boolean;
|
|
177
175
|
restricted_by_admin_reason: string | null;
|
|
178
176
|
restricted_by_admin_private_details: string | null;
|
|
177
|
+
country_code: string | null;
|
|
179
178
|
risk_scores: {
|
|
180
179
|
sign_up: {
|
|
181
180
|
bot: number;
|
|
@@ -188,6 +187,7 @@ declare const teamMemberProfilesCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
188
187
|
account_id: string;
|
|
189
188
|
}[];
|
|
190
189
|
auth_with_email: boolean;
|
|
190
|
+
requires_totp_mfa: boolean;
|
|
191
191
|
};
|
|
192
192
|
}, import("yup").AnyObject, {
|
|
193
193
|
team_id: undefined;
|
|
@@ -3,8 +3,7 @@ import { InferType } from "yup";
|
|
|
3
3
|
//#region src/interface/crud/transactions.d.ts
|
|
4
4
|
declare const transactionEntrySchema: import("yup").MixedSchema<{
|
|
5
5
|
type: "money_transfer";
|
|
6
|
-
|
|
7
|
-
customer_type: "team" | "user" | "custom";
|
|
6
|
+
customer_type: "user" | "team" | "custom";
|
|
8
7
|
charged_amount: {
|
|
9
8
|
USD?: string | undefined;
|
|
10
9
|
EUR?: string | undefined;
|
|
@@ -19,31 +18,32 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
|
|
|
19
18
|
};
|
|
20
19
|
adjusted_transaction_id: string | null;
|
|
21
20
|
adjusted_entry_index: number | null;
|
|
21
|
+
customer_id: string;
|
|
22
22
|
} | {
|
|
23
23
|
type: "item_quantity_change";
|
|
24
|
-
item_id: string;
|
|
25
|
-
customer_id: string;
|
|
26
24
|
quantity: number;
|
|
27
|
-
customer_type: "
|
|
25
|
+
customer_type: "user" | "team" | "custom";
|
|
28
26
|
adjusted_transaction_id: string | null;
|
|
29
27
|
adjusted_entry_index: number | null;
|
|
28
|
+
customer_id: string;
|
|
29
|
+
item_id: string;
|
|
30
30
|
} | {
|
|
31
|
-
one_time_purchase_id?: string | undefined;
|
|
32
31
|
subscription_id?: string | undefined;
|
|
32
|
+
one_time_purchase_id?: string | undefined;
|
|
33
33
|
type: "product_grant";
|
|
34
|
-
customer_id: string;
|
|
35
|
-
product_id: string | null;
|
|
36
34
|
quantity: number;
|
|
37
|
-
customer_type: "
|
|
35
|
+
customer_type: "user" | "team" | "custom";
|
|
38
36
|
product: {
|
|
39
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
40
37
|
client_metadata?: {} | null | undefined;
|
|
41
38
|
client_read_only_metadata?: {} | null | undefined;
|
|
42
39
|
server_metadata?: {} | null | undefined;
|
|
40
|
+
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
41
|
+
display_name: string;
|
|
42
|
+
customer_type: "user" | "team" | "custom";
|
|
43
43
|
server_only: boolean;
|
|
44
|
-
customer_type: "team" | "user" | "custom";
|
|
45
44
|
stackable: boolean;
|
|
46
45
|
prices: Record<string, {
|
|
46
|
+
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
47
47
|
USD?: string | undefined;
|
|
48
48
|
EUR?: string | undefined;
|
|
49
49
|
GBP?: string | undefined;
|
|
@@ -52,17 +52,17 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
|
|
|
52
52
|
AUD?: string | undefined;
|
|
53
53
|
CAD?: string | undefined;
|
|
54
54
|
interval?: import("../../utils/dates").DayInterval | undefined;
|
|
55
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
56
55
|
}>;
|
|
57
|
-
display_name: string;
|
|
58
56
|
included_items: Record<string, {
|
|
59
|
-
quantity?: number | undefined;
|
|
60
57
|
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
58
|
+
quantity?: number | undefined;
|
|
61
59
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
62
60
|
}>;
|
|
63
61
|
};
|
|
62
|
+
product_id: string | null;
|
|
64
63
|
adjusted_transaction_id: string | null;
|
|
65
64
|
adjusted_entry_index: number | null;
|
|
65
|
+
customer_id: string;
|
|
66
66
|
price_id: string | null;
|
|
67
67
|
} | {
|
|
68
68
|
type: "product_revocation";
|
|
@@ -83,12 +83,11 @@ declare const transactionSchema: import("yup").ObjectSchema<{
|
|
|
83
83
|
created_at_millis: number;
|
|
84
84
|
effective_at_millis: number;
|
|
85
85
|
type: "purchase" | "subscription-cancellation" | "subscription-renewal" | "manual-item-quantity-change" | "refund" | "chargeback" | "product-change" | null;
|
|
86
|
-
customer_type: "
|
|
86
|
+
customer_type: "user" | "team" | "custom";
|
|
87
87
|
customer_id: string;
|
|
88
88
|
entries: ({
|
|
89
89
|
type: "money_transfer";
|
|
90
|
-
|
|
91
|
-
customer_type: "team" | "user" | "custom";
|
|
90
|
+
customer_type: "user" | "team" | "custom";
|
|
92
91
|
charged_amount: {
|
|
93
92
|
USD?: string | undefined;
|
|
94
93
|
EUR?: string | undefined;
|
|
@@ -103,31 +102,32 @@ declare const transactionSchema: import("yup").ObjectSchema<{
|
|
|
103
102
|
};
|
|
104
103
|
adjusted_transaction_id: string | null;
|
|
105
104
|
adjusted_entry_index: number | null;
|
|
105
|
+
customer_id: string;
|
|
106
106
|
} | {
|
|
107
107
|
type: "item_quantity_change";
|
|
108
|
-
item_id: string;
|
|
109
|
-
customer_id: string;
|
|
110
108
|
quantity: number;
|
|
111
|
-
customer_type: "
|
|
109
|
+
customer_type: "user" | "team" | "custom";
|
|
112
110
|
adjusted_transaction_id: string | null;
|
|
113
111
|
adjusted_entry_index: number | null;
|
|
112
|
+
customer_id: string;
|
|
113
|
+
item_id: string;
|
|
114
114
|
} | {
|
|
115
|
-
one_time_purchase_id?: string | undefined;
|
|
116
115
|
subscription_id?: string | undefined;
|
|
116
|
+
one_time_purchase_id?: string | undefined;
|
|
117
117
|
type: "product_grant";
|
|
118
|
-
customer_id: string;
|
|
119
|
-
product_id: string | null;
|
|
120
118
|
quantity: number;
|
|
121
|
-
customer_type: "
|
|
119
|
+
customer_type: "user" | "team" | "custom";
|
|
122
120
|
product: {
|
|
123
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
124
121
|
client_metadata?: {} | null | undefined;
|
|
125
122
|
client_read_only_metadata?: {} | null | undefined;
|
|
126
123
|
server_metadata?: {} | null | undefined;
|
|
124
|
+
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
125
|
+
display_name: string;
|
|
126
|
+
customer_type: "user" | "team" | "custom";
|
|
127
127
|
server_only: boolean;
|
|
128
|
-
customer_type: "team" | "user" | "custom";
|
|
129
128
|
stackable: boolean;
|
|
130
129
|
prices: Record<string, {
|
|
130
|
+
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
131
131
|
USD?: string | undefined;
|
|
132
132
|
EUR?: string | undefined;
|
|
133
133
|
GBP?: string | undefined;
|
|
@@ -136,17 +136,17 @@ declare const transactionSchema: import("yup").ObjectSchema<{
|
|
|
136
136
|
AUD?: string | undefined;
|
|
137
137
|
CAD?: string | undefined;
|
|
138
138
|
interval?: import("../../utils/dates").DayInterval | undefined;
|
|
139
|
-
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
140
139
|
}>;
|
|
141
|
-
display_name: string;
|
|
142
140
|
included_items: Record<string, {
|
|
143
|
-
quantity?: number | undefined;
|
|
144
141
|
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
142
|
+
quantity?: number | undefined;
|
|
145
143
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
146
144
|
}>;
|
|
147
145
|
};
|
|
146
|
+
product_id: string | null;
|
|
148
147
|
adjusted_transaction_id: string | null;
|
|
149
148
|
adjusted_entry_index: number | null;
|
|
149
|
+
customer_id: string;
|
|
150
150
|
price_id: string | null;
|
|
151
151
|
} | {
|
|
152
152
|
type: "product_revocation";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;cAwFa,sBAAA,gBAAsB,WAAA
|
|
1
|
+
{"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;cAwFa,sBAAA,gBAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;YAMxB,MAAA;;;;;;;;;;;oBAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAS,QAAQ,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAiB;AAAA,cAE1C,iBAAA,gBAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;cAkBlB,MAAA;;;;;;;;;;;sBAAA,MAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAS,QAAQ,iBAAA"}
|
|
@@ -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: import("../../crud").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: import("../../crud").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;
|
|
@@ -31,8 +31,8 @@ declare const planUsageResponseSchema: yup$1.ObjectSchema<{
|
|
|
31
31
|
next_plan_id: "team" | "growth" | null;
|
|
32
32
|
are_plan_limits_enforced: boolean;
|
|
33
33
|
rows: {
|
|
34
|
-
item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
|
|
35
34
|
display_name: string;
|
|
35
|
+
item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
|
|
36
36
|
kind: "current" | "metered" | "capability";
|
|
37
37
|
used: number | null;
|
|
38
38
|
limit: number | null;
|
|
@@ -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;
|
|
@@ -512,16 +512,16 @@ declare const KnownErrors: {
|
|
|
512
512
|
ItemNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_NOT_FOUND">, [itemId: string]> & {
|
|
513
513
|
errorCode: "ITEM_NOT_FOUND";
|
|
514
514
|
};
|
|
515
|
-
ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "
|
|
515
|
+
ItemCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH">, [itemId: string, customerId: string, itemCustomerType: "user" | "team" | "custom" | undefined, actualCustomerType: "user" | "team" | "custom"]> & {
|
|
516
516
|
errorCode: "ITEM_CUSTOMER_TYPE_DOES_NOT_MATCH";
|
|
517
517
|
};
|
|
518
518
|
CustomerDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"CUSTOMER_DOES_NOT_EXIST">, [customerId: string]> & {
|
|
519
519
|
errorCode: "CUSTOMER_DOES_NOT_EXIST";
|
|
520
520
|
};
|
|
521
|
-
ProductDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_DOES_NOT_EXIST">, [productId: string, context: "
|
|
521
|
+
ProductDoesNotExist: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_DOES_NOT_EXIST">, [productId: string, context: "server_only" | "item_exists" | null]> & {
|
|
522
522
|
errorCode: "PRODUCT_DOES_NOT_EXIST";
|
|
523
523
|
};
|
|
524
|
-
ProductCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH">, [productId: string | undefined, customerId: string, productCustomerType: "
|
|
524
|
+
ProductCustomerTypeDoesNotMatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH">, [productId: string | undefined, customerId: string, productCustomerType: "user" | "team" | "custom" | undefined, actualCustomerType: "user" | "team" | "custom"]> & {
|
|
525
525
|
errorCode: "PRODUCT_CUSTOMER_TYPE_DOES_NOT_MATCH";
|
|
526
526
|
};
|
|
527
527
|
ProductAlreadyGranted: KnownErrorConstructor<KnownError & KnownErrorBrand<"PRODUCT_ALREADY_GRANTED">, [productId: string, customerId: string]> & {
|
|
@@ -548,7 +548,7 @@ declare const KnownErrors: {
|
|
|
548
548
|
StripeAccountInfoNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"STRIPE_ACCOUNT_INFO_NOT_FOUND">, []> & {
|
|
549
549
|
errorCode: "STRIPE_ACCOUNT_INFO_NOT_FOUND";
|
|
550
550
|
};
|
|
551
|
-
DefaultPaymentMethodRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"DEFAULT_PAYMENT_METHOD_REQUIRED">, [customerType: "
|
|
551
|
+
DefaultPaymentMethodRequired: KnownErrorConstructor<KnownError & KnownErrorBrand<"DEFAULT_PAYMENT_METHOD_REQUIRED">, [customerType: "user" | "team", customerId: string]> & {
|
|
552
552
|
errorCode: "DEFAULT_PAYMENT_METHOD_REQUIRED";
|
|
553
553
|
};
|
|
554
554
|
NewPurchasesBlocked: KnownErrorConstructor<KnownError & KnownErrorBrand<"NEW_PURCHASES_BLOCKED">, []> & {
|
|
@@ -140,7 +140,7 @@ declare const projectSignUpEnabledSchema: yup$1.BooleanSchema<boolean | undefine
|
|
|
140
140
|
declare const projectCredentialEnabledSchema: yup$1.BooleanSchema<boolean | undefined, yup$1.AnyObject, undefined, "">;
|
|
141
141
|
declare const oauthIdSchema: yup$1.StringSchema<"google" | "github" | "microsoft" | "spotify" | "facebook" | "discord" | "gitlab" | "bitbucket" | "linkedin" | "apple" | "x" | "twitch" | undefined, yup$1.AnyObject, undefined, "">;
|
|
142
142
|
declare const oauthEnabledSchema: yup$1.BooleanSchema<boolean | undefined, yup$1.AnyObject, undefined, "">;
|
|
143
|
-
declare const oauthTypeSchema: yup$1.StringSchema<"
|
|
143
|
+
declare const oauthTypeSchema: yup$1.StringSchema<"standard" | "shared" | undefined, yup$1.AnyObject, undefined, "">;
|
|
144
144
|
declare const oauthClientIdSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
145
145
|
declare const oauthClientSecretSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
146
146
|
declare const oauthCustomCallbackUrlSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
@@ -151,7 +151,7 @@ declare const oauthAppleBundleIdSchema: yup$1.StringSchema<string, yup$1.AnyObje
|
|
|
151
151
|
declare const oauthAccountMergeStrategySchema: yup$1.StringSchema<"link_method" | "raise_error" | "allow_duplicates" | undefined, yup$1.AnyObject, undefined, "">;
|
|
152
152
|
declare const oauthIssuerUrlSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
153
153
|
declare const oauthScopeSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
154
|
-
declare const emailTypeSchema: yup$1.StringSchema<"
|
|
154
|
+
declare const emailTypeSchema: yup$1.StringSchema<"standard" | "shared" | undefined, yup$1.AnyObject, undefined, "">;
|
|
155
155
|
declare const emailSenderNameSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
156
156
|
declare const emailHostSchema: yup$1.StringSchema<string | undefined, yup$1.AnyObject, undefined, "">;
|
|
157
157
|
declare const emailPortSchema: yup$1.NumberSchema<number | undefined, yup$1.AnyObject, undefined, "">;
|
|
@@ -174,7 +174,7 @@ declare const customDashboardsSchema: yup$1.MixedSchema<Record<string, {
|
|
|
174
174
|
displayName: string;
|
|
175
175
|
tsxSource: string;
|
|
176
176
|
}>, yup$1.AnyObject, undefined, "">;
|
|
177
|
-
declare const customerTypeSchema: yup$1.StringSchema<"
|
|
177
|
+
declare const customerTypeSchema: yup$1.StringSchema<"user" | "team" | "custom" | undefined, yup$1.AnyObject, undefined, "">;
|
|
178
178
|
/**
|
|
179
179
|
* Schema for a single product price. Each currency field (USD, EUR, etc.) is a decimal string
|
|
180
180
|
* like `"9.99"` or `"1000"` — never cent integers. See `MoneyAmount` for the exact format.
|
|
@@ -211,14 +211,14 @@ declare const pricesSchema: yup$1.MixedSchema<Record<string, {
|
|
|
211
211
|
AUD?: string | undefined;
|
|
212
212
|
CAD?: string | undefined;
|
|
213
213
|
interval?: DayInterval | undefined;
|
|
214
|
-
serverOnly?: boolean | undefined;
|
|
215
214
|
freeTrial?: DayInterval | undefined;
|
|
215
|
+
serverOnly?: boolean | undefined;
|
|
216
216
|
}>, yup$1.AnyObject, undefined, "">;
|
|
217
217
|
declare const productSchema: yup$1.ObjectSchema<{
|
|
218
218
|
displayName: string | undefined;
|
|
219
219
|
productLineId: string | undefined;
|
|
220
220
|
isAddOnTo: false | Record<string, true> | undefined;
|
|
221
|
-
customerType: "
|
|
221
|
+
customerType: "user" | "team" | "custom";
|
|
222
222
|
freeTrial: DayInterval | undefined;
|
|
223
223
|
serverOnly: boolean | undefined;
|
|
224
224
|
stackable: boolean | undefined;
|
|
@@ -231,8 +231,8 @@ declare const productSchema: yup$1.ObjectSchema<{
|
|
|
231
231
|
AUD?: string | undefined;
|
|
232
232
|
CAD?: string | undefined;
|
|
233
233
|
interval?: DayInterval | undefined;
|
|
234
|
-
serverOnly?: boolean | undefined;
|
|
235
234
|
freeTrial?: DayInterval | undefined;
|
|
235
|
+
serverOnly?: boolean | undefined;
|
|
236
236
|
}>;
|
|
237
237
|
includedItems: Record<string, {
|
|
238
238
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -257,7 +257,7 @@ declare const productSchemaWithMetadata: yup$1.ObjectSchema<{
|
|
|
257
257
|
displayName: string | undefined;
|
|
258
258
|
productLineId: string | undefined;
|
|
259
259
|
isAddOnTo: false | Record<string, true> | undefined;
|
|
260
|
-
customerType: "
|
|
260
|
+
customerType: "user" | "team" | "custom";
|
|
261
261
|
freeTrial: DayInterval | undefined;
|
|
262
262
|
serverOnly: boolean | undefined;
|
|
263
263
|
stackable: boolean | undefined;
|
|
@@ -270,8 +270,8 @@ declare const productSchemaWithMetadata: yup$1.ObjectSchema<{
|
|
|
270
270
|
AUD?: string | undefined;
|
|
271
271
|
CAD?: string | undefined;
|
|
272
272
|
interval?: DayInterval | undefined;
|
|
273
|
-
serverOnly?: boolean | undefined;
|
|
274
273
|
freeTrial?: DayInterval | undefined;
|
|
274
|
+
serverOnly?: boolean | undefined;
|
|
275
275
|
}>;
|
|
276
276
|
includedItems: Record<string, {
|
|
277
277
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -298,11 +298,12 @@ declare const productSchemaWithMetadata: yup$1.ObjectSchema<{
|
|
|
298
298
|
}, "">;
|
|
299
299
|
declare const inlineProductSchema: yup$1.ObjectSchema<{
|
|
300
300
|
display_name: string;
|
|
301
|
-
customer_type: "
|
|
301
|
+
customer_type: "user" | "team" | "custom";
|
|
302
302
|
free_trial: DayInterval | undefined;
|
|
303
303
|
server_only: boolean;
|
|
304
304
|
stackable: boolean;
|
|
305
305
|
prices: Record<string, {
|
|
306
|
+
free_trial?: DayInterval | undefined;
|
|
306
307
|
USD?: string | undefined;
|
|
307
308
|
EUR?: string | undefined;
|
|
308
309
|
GBP?: string | undefined;
|
|
@@ -311,11 +312,10 @@ declare const inlineProductSchema: yup$1.ObjectSchema<{
|
|
|
311
312
|
AUD?: string | undefined;
|
|
312
313
|
CAD?: string | undefined;
|
|
313
314
|
interval?: DayInterval | undefined;
|
|
314
|
-
free_trial?: DayInterval | undefined;
|
|
315
315
|
}>;
|
|
316
316
|
included_items: Record<string, {
|
|
317
|
-
quantity?: number | undefined;
|
|
318
317
|
repeat?: "never" | DayInterval | undefined;
|
|
318
|
+
quantity?: number | undefined;
|
|
319
319
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
320
320
|
}>;
|
|
321
321
|
client_metadata: {} | null | undefined;
|
|
@@ -473,9 +473,9 @@ declare function yupDefinedAndNonEmptyWhen<S extends yup$1.StringSchema>(schema:
|
|
|
473
473
|
declare const branchConfigSourceSchema: yup$1.MixedSchema<{
|
|
474
474
|
workflow_path?: string | undefined;
|
|
475
475
|
type: "pushed-from-github";
|
|
476
|
+
branch: string;
|
|
476
477
|
owner: string;
|
|
477
478
|
repo: string;
|
|
478
|
-
branch: string;
|
|
479
479
|
commit_hash: string;
|
|
480
480
|
config_file_path: string;
|
|
481
481
|
} | {
|
package/dist/esm/sessions.d.ts
CHANGED
|
@@ -9,25 +9,25 @@ declare class AccessToken {
|
|
|
9
9
|
private constructor();
|
|
10
10
|
get payload(): {
|
|
11
11
|
exp?: number | undefined;
|
|
12
|
-
|
|
13
|
-
|
|
12
|
+
sub: string;
|
|
13
|
+
name: string | null;
|
|
14
14
|
email: string | null;
|
|
15
|
+
selected_team_id: string | null;
|
|
16
|
+
is_anonymous: boolean;
|
|
17
|
+
is_restricted: boolean;
|
|
15
18
|
restricted_reason: {
|
|
16
19
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
17
20
|
} | null;
|
|
21
|
+
requires_totp_mfa: boolean;
|
|
22
|
+
project_id: string;
|
|
23
|
+
refresh_token_id: string;
|
|
18
24
|
branch_id: string;
|
|
19
|
-
|
|
25
|
+
role: "authenticated";
|
|
20
26
|
iat: number;
|
|
21
27
|
iss: string;
|
|
22
28
|
aud: string;
|
|
23
|
-
role: "authenticated";
|
|
24
|
-
name: string | null;
|
|
25
29
|
email_verified: boolean;
|
|
26
|
-
selected_team_id: string | null;
|
|
27
30
|
signed_up_at: number;
|
|
28
|
-
is_anonymous: boolean;
|
|
29
|
-
is_restricted: boolean;
|
|
30
|
-
requires_totp_mfa: boolean;
|
|
31
31
|
};
|
|
32
32
|
get expiresAt(): Date;
|
|
33
33
|
get issuedAt(): Date;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { a as KnownErrors } from "../known-errors-
|
|
1
|
+
import { a as KnownErrors } from "../known-errors-Bhd0JAgh.js";
|
|
2
2
|
//#region src/helpers/password.d.ts
|
|
3
3
|
declare function getPasswordError(password: string): KnownErrors["PasswordRequirementsNotMet"] | undefined;
|
|
4
4
|
//#endregion
|
package/dist/index.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { a as KnownErrors, n as KnownError } from "./known-errors-
|
|
2
|
-
import { n as HexclaveClientInterface } from "./client-interface-
|
|
3
|
-
import { t as HexclaveServerInterface } from "./server-interface-
|
|
4
|
-
import { r as HexclaveAdminInterface } from "./admin-interface-
|
|
1
|
+
import { a as KnownErrors, n as KnownError } from "./known-errors-Bhd0JAgh.js";
|
|
2
|
+
import { n as HexclaveClientInterface } from "./client-interface-C4H4gn_G.js";
|
|
3
|
+
import { t as HexclaveServerInterface } from "./server-interface-CRp4VVZh.js";
|
|
4
|
+
import { r as HexclaveAdminInterface } from "./admin-interface-ChuyYSXj.js";
|
|
5
5
|
export { HexclaveAdminInterface, HexclaveClientInterface, HexclaveServerInterface, KnownError, KnownErrors };
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { n as PlanUsageResponse } from "../plan-usage-
|
|
2
|
-
import { a as InternalApiKeyCreateCrudResponse, i as InternalApiKeyCreateCrudRequest, n as ChatContent, r as HexclaveAdminInterface, t as AdminAuthApplicationOptions } from "../admin-interface-
|
|
1
|
+
import { n as PlanUsageResponse } from "../plan-usage-COq9I00z.js";
|
|
2
|
+
import { a as InternalApiKeyCreateCrudResponse, i as InternalApiKeyCreateCrudRequest, n as ChatContent, r as HexclaveAdminInterface, t as AdminAuthApplicationOptions } from "../admin-interface-ChuyYSXj.js";
|
|
3
3
|
export { AdminAuthApplicationOptions, ChatContent, HexclaveAdminInterface, InternalApiKeyCreateCrudRequest, InternalApiKeyCreateCrudResponse, type PlanUsageResponse };
|