@hexclave/shared 1.0.61 → 1.0.62
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-ChuyYSXj.d.ts → admin-interface-D63SFHX_.d.ts} +94 -12
- package/dist/admin-interface-D63SFHX_.d.ts.map +1 -0
- 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/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/deployments-skill.d.ts +5 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/deployments-skill.d.ts.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/deployments-skill.js +128 -0
- package/dist/ai/unified-prompts/skill-site-prompt-parts/deployments-skill.js.map +1 -0
- package/dist/ai/unified-prompts/skill-site-prompt.d.ts +3 -1
- package/dist/ai/unified-prompts/skill-site-prompt.d.ts.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt.js +11 -0
- package/dist/ai/unified-prompts/skill-site-prompt.js.map +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-C4H4gn_G.d.ts → client-interface-DvkciaL0.d.ts} +10 -10
- package/dist/{client-interface-C4H4gn_G.d.ts.map → client-interface-DvkciaL0.d.ts.map} +1 -1
- package/dist/config/schema-fuzzer.test.js +38 -1
- package/dist/config/schema-fuzzer.test.js.map +1 -1
- package/dist/config/schema.d.ts +2 -2
- package/dist/config/schema.js +45 -0
- package/dist/config/schema.js.map +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/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/deployments-skill.d.ts +5 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/deployments-skill.d.ts.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/deployments-skill.js +128 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/deployments-skill.js.map +1 -0
- package/dist/esm/ai/unified-prompts/skill-site-prompt.d.ts +3 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt.d.ts.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt.js +10 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt.js.map +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-fuzzer.test.js +38 -1
- package/dist/esm/config/schema-fuzzer.test.js.map +1 -1
- package/dist/esm/config/schema.d.ts +249 -119
- package/dist/esm/config/schema.d.ts.map +1 -1
- package/dist/esm/config/schema.js +42 -1
- package/dist/esm/config/schema.js.map +1 -1
- package/dist/esm/interface/admin-interface.d.ts +83 -1
- package/dist/esm/interface/admin-interface.d.ts.map +1 -1
- package/dist/esm/interface/admin-interface.js +48 -0
- package/dist/esm/interface/admin-interface.js.map +1 -1
- 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 +12 -12
- package/dist/esm/sessions.d.ts +9 -9
- package/dist/esm/utils/tar.d.ts +26 -0
- package/dist/esm/utils/tar.d.ts.map +1 -0
- package/dist/esm/utils/tar.js +136 -0
- package/dist/esm/utils/tar.js.map +1 -0
- 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 +3 -3
- package/dist/interface/admin-interface.js +48 -0
- package/dist/interface/admin-interface.js.map +1 -1
- 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-BPMGhu_7.d.ts → schema-dJ_7rUCO.d.ts} +250 -120
- package/dist/schema-dJ_7rUCO.d.ts.map +1 -0
- package/dist/{schema-fields-C8sIQVTq.d.ts → schema-fields-DZtDQEEO.d.ts} +13 -13
- package/dist/{schema-fields-C8sIQVTq.d.ts.map → schema-fields-DZtDQEEO.d.ts.map} +1 -1
- package/dist/schema-fields.d.ts +1 -1
- package/dist/{server-interface-CRp4VVZh.d.ts → server-interface-Ra_vIHP4.d.ts} +8 -8
- package/dist/{server-interface-CRp4VVZh.d.ts.map → server-interface-Ra_vIHP4.d.ts.map} +1 -1
- package/dist/{sessions-COluKK6_.d.ts → sessions-CI-0TBQb.d.ts} +11 -11
- package/dist/{sessions-COluKK6_.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/utils/tar.d.ts +26 -0
- package/dist/utils/tar.d.ts.map +1 -0
- package/dist/utils/tar.js +138 -0
- package/dist/utils/tar.js.map +1 -0
- 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/unified-prompts/skill-site-prompt-parts/deployments-skill.ts +128 -0
- package/src/ai/unified-prompts/skill-site-prompt.ts +15 -0
- package/src/apps/apps-config.ts +9 -0
- package/src/config/schema-fuzzer.test.ts +37 -0
- package/src/config/schema.ts +193 -0
- package/src/interface/admin-interface.ts +173 -0
- package/src/utils/tar.tsx +261 -0
- package/dist/admin-interface-ChuyYSXj.d.ts.map +0 -1
- package/dist/schema-BPMGhu_7.d.ts.map +0 -1
- package/dist/transactions-7q13mxhG.d.ts.map +0 -1
|
@@ -19,39 +19,40 @@ declare const teamMemberProfilesCrudServerReadSchema: import("yup").ObjectSchema
|
|
|
19
19
|
profile_image_url: string | null;
|
|
20
20
|
} & {
|
|
21
21
|
user: {
|
|
22
|
-
|
|
22
|
+
restricted_reason: {
|
|
23
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
24
|
+
} | null;
|
|
25
|
+
primary_email: string | null;
|
|
26
|
+
display_name: string | null;
|
|
23
27
|
client_metadata: {} | null;
|
|
24
28
|
client_read_only_metadata: {} | null;
|
|
25
29
|
server_metadata: {} | null;
|
|
26
|
-
|
|
30
|
+
id: string;
|
|
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;
|
|
27
39
|
primary_email_verified: boolean;
|
|
28
40
|
primary_email_auth_enabled: boolean;
|
|
29
|
-
display_name: string | null;
|
|
30
|
-
profile_image_url: string | null;
|
|
31
41
|
selected_team: {
|
|
32
42
|
client_metadata?: {} | null | undefined;
|
|
33
43
|
client_read_only_metadata?: {} | null | undefined;
|
|
34
44
|
server_metadata?: {} | null | undefined;
|
|
35
|
-
id: string;
|
|
36
45
|
display_name: string;
|
|
37
|
-
|
|
46
|
+
id: string;
|
|
38
47
|
created_at_millis: number;
|
|
48
|
+
profile_image_url: string | null;
|
|
39
49
|
} | null;
|
|
40
|
-
selected_team_id: string | null;
|
|
41
|
-
signed_up_at_millis: number;
|
|
42
50
|
has_password: boolean;
|
|
43
51
|
otp_auth_enabled: boolean;
|
|
44
52
|
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;
|
|
51
53
|
restricted_by_admin: boolean;
|
|
52
54
|
restricted_by_admin_reason: string | null;
|
|
53
55
|
restricted_by_admin_private_details: string | null;
|
|
54
|
-
country_code: string | null;
|
|
55
56
|
risk_scores: {
|
|
56
57
|
sign_up: {
|
|
57
58
|
bot: number;
|
|
@@ -64,7 +65,6 @@ declare const teamMemberProfilesCrudServerReadSchema: import("yup").ObjectSchema
|
|
|
64
65
|
account_id: string;
|
|
65
66
|
}[];
|
|
66
67
|
auth_with_email: boolean;
|
|
67
|
-
requires_totp_mfa: boolean;
|
|
68
68
|
};
|
|
69
69
|
}, import("yup").AnyObject, {
|
|
70
70
|
team_id: undefined;
|
|
@@ -142,39 +142,40 @@ declare const teamMemberProfilesCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
142
142
|
profile_image_url: string | null;
|
|
143
143
|
} & {
|
|
144
144
|
user: {
|
|
145
|
-
|
|
145
|
+
restricted_reason: {
|
|
146
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
147
|
+
} | null;
|
|
148
|
+
primary_email: string | null;
|
|
149
|
+
display_name: string | null;
|
|
146
150
|
client_metadata: {} | null;
|
|
147
151
|
client_read_only_metadata: {} | null;
|
|
148
152
|
server_metadata: {} | null;
|
|
149
|
-
|
|
153
|
+
id: string;
|
|
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;
|
|
150
162
|
primary_email_verified: boolean;
|
|
151
163
|
primary_email_auth_enabled: boolean;
|
|
152
|
-
display_name: string | null;
|
|
153
|
-
profile_image_url: string | null;
|
|
154
164
|
selected_team: {
|
|
155
165
|
client_metadata?: {} | null | undefined;
|
|
156
166
|
client_read_only_metadata?: {} | null | undefined;
|
|
157
167
|
server_metadata?: {} | null | undefined;
|
|
158
|
-
id: string;
|
|
159
168
|
display_name: string;
|
|
160
|
-
|
|
169
|
+
id: string;
|
|
161
170
|
created_at_millis: number;
|
|
171
|
+
profile_image_url: string | null;
|
|
162
172
|
} | null;
|
|
163
|
-
selected_team_id: string | null;
|
|
164
|
-
signed_up_at_millis: number;
|
|
165
173
|
has_password: boolean;
|
|
166
174
|
otp_auth_enabled: boolean;
|
|
167
175
|
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;
|
|
174
176
|
restricted_by_admin: boolean;
|
|
175
177
|
restricted_by_admin_reason: string | null;
|
|
176
178
|
restricted_by_admin_private_details: string | null;
|
|
177
|
-
country_code: string | null;
|
|
178
179
|
risk_scores: {
|
|
179
180
|
sign_up: {
|
|
180
181
|
bot: number;
|
|
@@ -187,7 +188,6 @@ declare const teamMemberProfilesCrud: import("../../crud").CrudSchemaFromOptions
|
|
|
187
188
|
account_id: string;
|
|
188
189
|
}[];
|
|
189
190
|
auth_with_email: boolean;
|
|
190
|
-
requires_totp_mfa: boolean;
|
|
191
191
|
};
|
|
192
192
|
}, import("yup").AnyObject, {
|
|
193
193
|
team_id: undefined;
|
|
@@ -3,7 +3,8 @@ 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
|
-
|
|
6
|
+
customer_id: string;
|
|
7
|
+
customer_type: "team" | "user" | "custom";
|
|
7
8
|
charged_amount: {
|
|
8
9
|
USD?: string | undefined;
|
|
9
10
|
EUR?: string | undefined;
|
|
@@ -18,32 +19,31 @@ declare const transactionEntrySchema: import("yup").MixedSchema<{
|
|
|
18
19
|
};
|
|
19
20
|
adjusted_transaction_id: string | null;
|
|
20
21
|
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;
|
|
24
26
|
quantity: number;
|
|
25
|
-
customer_type: "
|
|
27
|
+
customer_type: "team" | "user" | "custom";
|
|
26
28
|
adjusted_transaction_id: string | null;
|
|
27
29
|
adjusted_entry_index: number | null;
|
|
28
|
-
customer_id: string;
|
|
29
|
-
item_id: string;
|
|
30
30
|
} | {
|
|
31
|
-
subscription_id?: string | undefined;
|
|
32
31
|
one_time_purchase_id?: string | undefined;
|
|
32
|
+
subscription_id?: string | undefined;
|
|
33
33
|
type: "product_grant";
|
|
34
|
+
customer_id: string;
|
|
35
|
+
product_id: string | null;
|
|
34
36
|
quantity: number;
|
|
35
|
-
customer_type: "
|
|
37
|
+
customer_type: "team" | "user" | "custom";
|
|
36
38
|
product: {
|
|
39
|
+
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
37
40
|
client_metadata?: {} | null | undefined;
|
|
38
41
|
client_read_only_metadata?: {} | null | undefined;
|
|
39
42
|
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";
|
|
44
45
|
stackable: boolean;
|
|
45
46
|
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;
|
|
55
56
|
}>;
|
|
57
|
+
display_name: string;
|
|
56
58
|
included_items: Record<string, {
|
|
57
|
-
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
58
59
|
quantity?: number | undefined;
|
|
60
|
+
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
59
61
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
60
62
|
}>;
|
|
61
63
|
};
|
|
62
|
-
product_id: string | null;
|
|
63
64
|
adjusted_transaction_id: string | null;
|
|
64
65
|
adjusted_entry_index: number | null;
|
|
65
|
-
customer_id: string;
|
|
66
66
|
price_id: string | null;
|
|
67
67
|
} | {
|
|
68
68
|
type: "product_revocation";
|
|
@@ -83,11 +83,12 @@ 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: "team" | "user" | "custom";
|
|
87
87
|
customer_id: string;
|
|
88
88
|
entries: ({
|
|
89
89
|
type: "money_transfer";
|
|
90
|
-
|
|
90
|
+
customer_id: string;
|
|
91
|
+
customer_type: "team" | "user" | "custom";
|
|
91
92
|
charged_amount: {
|
|
92
93
|
USD?: string | undefined;
|
|
93
94
|
EUR?: string | undefined;
|
|
@@ -102,32 +103,31 @@ declare const transactionSchema: import("yup").ObjectSchema<{
|
|
|
102
103
|
};
|
|
103
104
|
adjusted_transaction_id: string | null;
|
|
104
105
|
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;
|
|
108
110
|
quantity: number;
|
|
109
|
-
customer_type: "
|
|
111
|
+
customer_type: "team" | "user" | "custom";
|
|
110
112
|
adjusted_transaction_id: string | null;
|
|
111
113
|
adjusted_entry_index: number | null;
|
|
112
|
-
customer_id: string;
|
|
113
|
-
item_id: string;
|
|
114
114
|
} | {
|
|
115
|
-
subscription_id?: string | undefined;
|
|
116
115
|
one_time_purchase_id?: string | undefined;
|
|
116
|
+
subscription_id?: string | undefined;
|
|
117
117
|
type: "product_grant";
|
|
118
|
+
customer_id: string;
|
|
119
|
+
product_id: string | null;
|
|
118
120
|
quantity: number;
|
|
119
|
-
customer_type: "
|
|
121
|
+
customer_type: "team" | "user" | "custom";
|
|
120
122
|
product: {
|
|
123
|
+
free_trial?: import("../../utils/dates").DayInterval | undefined;
|
|
121
124
|
client_metadata?: {} | null | undefined;
|
|
122
125
|
client_read_only_metadata?: {} | null | undefined;
|
|
123
126
|
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";
|
|
128
129
|
stackable: boolean;
|
|
129
130
|
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;
|
|
139
140
|
}>;
|
|
141
|
+
display_name: string;
|
|
140
142
|
included_items: Record<string, {
|
|
141
|
-
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
142
143
|
quantity?: number | undefined;
|
|
144
|
+
repeat?: "never" | import("../../utils/dates").DayInterval | undefined;
|
|
143
145
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
144
146
|
}>;
|
|
145
147
|
};
|
|
146
|
-
product_id: string | null;
|
|
147
148
|
adjusted_transaction_id: string | null;
|
|
148
149
|
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
|
-
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: import("../../crud").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: 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;
|
|
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;
|
|
@@ -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
|
-
display_name: string;
|
|
35
34
|
item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
|
|
35
|
+
display_name: string;
|
|
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
|
-
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;
|
|
@@ -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: "team" | "user" | "custom" | undefined, actualCustomerType: "team" | "user" | "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: "item_exists" | "server_only" | 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: "team" | "user" | "custom" | undefined, actualCustomerType: "team" | "user" | "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: "team" | "user", 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<"shared" | "standard" | 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<"shared" | "standard" | 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<"team" | "user" | "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
|
-
freeTrial?: DayInterval | undefined;
|
|
215
214
|
serverOnly?: boolean | undefined;
|
|
215
|
+
freeTrial?: DayInterval | 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: "team" | "user" | "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
|
-
freeTrial?: DayInterval | undefined;
|
|
235
234
|
serverOnly?: boolean | undefined;
|
|
235
|
+
freeTrial?: DayInterval | 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: "team" | "user" | "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
|
-
freeTrial?: DayInterval | undefined;
|
|
274
273
|
serverOnly?: boolean | undefined;
|
|
274
|
+
freeTrial?: DayInterval | undefined;
|
|
275
275
|
}>;
|
|
276
276
|
includedItems: Record<string, {
|
|
277
277
|
repeat?: "never" | DayInterval | undefined;
|
|
@@ -298,12 +298,11 @@ 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: "team" | "user" | "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;
|
|
307
306
|
USD?: string | undefined;
|
|
308
307
|
EUR?: string | undefined;
|
|
309
308
|
GBP?: string | undefined;
|
|
@@ -312,10 +311,11 @@ declare const inlineProductSchema: yup$1.ObjectSchema<{
|
|
|
312
311
|
AUD?: string | undefined;
|
|
313
312
|
CAD?: string | undefined;
|
|
314
313
|
interval?: DayInterval | undefined;
|
|
314
|
+
free_trial?: DayInterval | undefined;
|
|
315
315
|
}>;
|
|
316
316
|
included_items: Record<string, {
|
|
317
|
-
repeat?: "never" | DayInterval | undefined;
|
|
318
317
|
quantity?: number | undefined;
|
|
318
|
+
repeat?: "never" | DayInterval | 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;
|
|
477
476
|
owner: string;
|
|
478
477
|
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
|
+
project_id: string;
|
|
13
|
+
refresh_token_id: string;
|
|
14
14
|
email: string | null;
|
|
15
|
-
selected_team_id: string | null;
|
|
16
|
-
is_anonymous: boolean;
|
|
17
|
-
is_restricted: boolean;
|
|
18
15
|
restricted_reason: {
|
|
19
16
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
20
17
|
} | null;
|
|
21
|
-
requires_totp_mfa: boolean;
|
|
22
|
-
project_id: string;
|
|
23
|
-
refresh_token_id: string;
|
|
24
18
|
branch_id: string;
|
|
25
|
-
|
|
19
|
+
sub: string;
|
|
26
20
|
iat: number;
|
|
27
21
|
iss: string;
|
|
28
22
|
aud: string;
|
|
23
|
+
role: "authenticated";
|
|
24
|
+
name: string | null;
|
|
29
25
|
email_verified: boolean;
|
|
26
|
+
selected_team_id: string | null;
|
|
30
27
|
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;
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
//#region src/utils/tar.d.ts
|
|
2
|
+
type TarEntry = {
|
|
3
|
+
path: string;
|
|
4
|
+
data: Uint8Array;
|
|
5
|
+
};
|
|
6
|
+
type TarLimits = {
|
|
7
|
+
maxEntries: number;
|
|
8
|
+
maxTotalBytes: number;
|
|
9
|
+
};
|
|
10
|
+
/**
|
|
11
|
+
* Serializes entries into an (uncompressed) ustar tarball. Entries whose path
|
|
12
|
+
* ends with "/" are written as directories and must have empty data.
|
|
13
|
+
*/
|
|
14
|
+
declare function createTar(entries: TarEntry[]): Uint8Array<ArrayBuffer>;
|
|
15
|
+
/**
|
|
16
|
+
* Parses an (uncompressed) ustar tarball produced by `createTar` (or any tool
|
|
17
|
+
* emitting the plain ustar subset). Strict by design — see module comment.
|
|
18
|
+
* Directory entries are returned with a trailing "/" and empty data.
|
|
19
|
+
*
|
|
20
|
+
* Throws `StatusError(400, ...)` on malformed or unsafe input so backend routes
|
|
21
|
+
* can surface it directly to the uploader.
|
|
22
|
+
*/
|
|
23
|
+
declare function parseTar(bytes: Uint8Array, limits: TarLimits): TarEntry[];
|
|
24
|
+
//#endregion
|
|
25
|
+
export { TarEntry, TarLimits, createTar, parseTar };
|
|
26
|
+
//# sourceMappingURL=tar.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"tar.d.ts","names":[],"sources":["../../../src/utils/tar.tsx"],"mappings":";KAeY,QAAA;EAEV,IAAA;EACA,IAAA,EAAM,UAAU;AAAA;AAAA,KAGN,SAAA;EACV,UAAA;EACA,aAAa;AAAA;;AALG;AAGlB;;iBAqDgB,SAAA,CAAU,OAAA,EAAS,QAAA,KAAa,UAAA,CAAW,WAAA;;AAnD5C;AAmDf;;;;;;iBA2EgB,QAAA,CAAS,KAAA,EAAO,UAAA,EAAY,MAAA,EAAQ,SAAA,GAAY,QAAA"}
|