@hexclave/shared 1.0.34 → 1.0.35
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/ai/unified-prompts/reminders.js +2 -2
- package/dist/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/config/schema.d.ts +112 -112
- package/dist/esm/ai/unified-prompts/reminders.js +2 -2
- package/dist/esm/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/esm/config/schema.d.ts +112 -112
- package/dist/esm/helpers/init-prompt.js +1 -1
- package/dist/esm/helpers/init-prompt.js.map +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +17 -17
- package/dist/esm/interface/conversations.d.ts +31 -31
- package/dist/esm/interface/crud/current-user.d.ts +14 -14
- package/dist/esm/interface/crud/email-outbox.d.ts +138 -138
- package/dist/esm/interface/crud/products.d.ts +23 -23
- package/dist/esm/interface/crud/products.d.ts.map +1 -1
- package/dist/esm/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/esm/interface/crud/projects.d.ts +7 -7
- package/dist/esm/interface/crud/team-member-profiles.d.ts +24 -24
- package/dist/esm/interface/crud/transactions.d.ts +25 -25
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +16 -16
- package/dist/esm/interface/plan-usage.d.ts +2 -2
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/known-errors.d.ts +6 -6
- package/dist/esm/schema-fields.d.ts +17 -17
- package/dist/esm/sessions.d.ts +8 -8
- package/dist/helpers/init-prompt.js +1 -1
- package/dist/helpers/init-prompt.js.map +1 -1
- package/dist/interface/admin-metrics.d.ts +17 -17
- package/dist/interface/conversations.d.ts +31 -31
- package/dist/interface/crud/current-user.d.ts +14 -14
- package/dist/interface/crud/email-outbox.d.ts +138 -138
- package/dist/interface/crud/products.d.ts +23 -23
- package/dist/interface/crud/products.d.ts.map +1 -1
- package/dist/interface/crud/project-api-keys.d.ts +2 -2
- package/dist/interface/crud/projects.d.ts +7 -7
- package/dist/interface/crud/team-member-profiles.d.ts +24 -24
- package/dist/interface/crud/transactions.d.ts +25 -25
- package/dist/interface/crud/transactions.d.ts.map +1 -1
- package/dist/interface/crud/users.d.ts +16 -16
- package/dist/interface/plan-usage.d.ts +2 -2
- package/dist/interface/webhooks.d.ts +2 -2
- package/dist/known-errors.d.ts +6 -6
- package/dist/schema-fields.d.ts +17 -17
- package/dist/sessions.d.ts +8 -8
- package/package.json +1 -1
- package/src/ai/unified-prompts/reminders.ts +1 -1
- package/src/helpers/init-prompt.ts +1 -1
|
@@ -6,13 +6,14 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
6
6
|
id: string | null;
|
|
7
7
|
quantity: number;
|
|
8
8
|
product: {
|
|
9
|
+
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
9
10
|
client_metadata?: {} | null | undefined;
|
|
10
11
|
client_read_only_metadata?: {} | null | undefined;
|
|
11
12
|
server_metadata?: {} | null | undefined;
|
|
12
|
-
|
|
13
|
+
server_only: boolean;
|
|
14
|
+
customer_type: "team" | "user" | "custom";
|
|
13
15
|
stackable: boolean;
|
|
14
16
|
prices: Record<string, {
|
|
15
|
-
interval?: ______utils_dates0.DayInterval | undefined;
|
|
16
17
|
USD?: string | undefined;
|
|
17
18
|
EUR?: string | undefined;
|
|
18
19
|
GBP?: string | undefined;
|
|
@@ -20,14 +21,13 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
20
21
|
INR?: string | undefined;
|
|
21
22
|
AUD?: string | undefined;
|
|
22
23
|
CAD?: string | undefined;
|
|
24
|
+
interval?: ______utils_dates0.DayInterval | undefined;
|
|
23
25
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
24
26
|
}>;
|
|
25
27
|
display_name: string;
|
|
26
|
-
server_only: boolean;
|
|
27
|
-
customer_type: "user" | "team" | "custom";
|
|
28
28
|
included_items: Record<string, {
|
|
29
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
30
29
|
quantity?: number | undefined;
|
|
30
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
31
31
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
};
|
|
@@ -39,14 +39,16 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
39
39
|
is_cancelable: boolean;
|
|
40
40
|
} | null | undefined;
|
|
41
41
|
switch_options: {
|
|
42
|
+
product_id: string;
|
|
42
43
|
product: {
|
|
44
|
+
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
43
45
|
client_metadata?: {} | null | undefined;
|
|
44
46
|
client_read_only_metadata?: {} | null | undefined;
|
|
45
47
|
server_metadata?: {} | null | undefined;
|
|
46
|
-
|
|
48
|
+
server_only: boolean;
|
|
49
|
+
customer_type: "team" | "user" | "custom";
|
|
47
50
|
stackable: boolean;
|
|
48
51
|
prices: Record<string, {
|
|
49
|
-
interval?: ______utils_dates0.DayInterval | undefined;
|
|
50
52
|
USD?: string | undefined;
|
|
51
53
|
EUR?: string | undefined;
|
|
52
54
|
GBP?: string | undefined;
|
|
@@ -54,18 +56,16 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
54
56
|
INR?: string | undefined;
|
|
55
57
|
AUD?: string | undefined;
|
|
56
58
|
CAD?: string | undefined;
|
|
59
|
+
interval?: ______utils_dates0.DayInterval | undefined;
|
|
57
60
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
58
61
|
}>;
|
|
59
62
|
display_name: string;
|
|
60
|
-
server_only: boolean;
|
|
61
|
-
customer_type: "user" | "team" | "custom";
|
|
62
63
|
included_items: Record<string, {
|
|
63
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
64
64
|
quantity?: number | undefined;
|
|
65
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
65
66
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
66
67
|
}>;
|
|
67
68
|
};
|
|
68
|
-
product_id: string;
|
|
69
69
|
}[] | undefined;
|
|
70
70
|
}, yup$1.AnyObject, {
|
|
71
71
|
id: undefined;
|
|
@@ -102,14 +102,16 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
102
102
|
is_cancelable: boolean;
|
|
103
103
|
} | null | undefined;
|
|
104
104
|
switch_options?: {
|
|
105
|
+
product_id: string;
|
|
105
106
|
product: {
|
|
107
|
+
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
106
108
|
client_metadata?: {} | null | undefined;
|
|
107
109
|
client_read_only_metadata?: {} | null | undefined;
|
|
108
110
|
server_metadata?: {} | null | undefined;
|
|
109
|
-
|
|
111
|
+
server_only: boolean;
|
|
112
|
+
customer_type: "team" | "user" | "custom";
|
|
110
113
|
stackable: boolean;
|
|
111
114
|
prices: Record<string, {
|
|
112
|
-
interval?: ______utils_dates0.DayInterval | undefined;
|
|
113
115
|
USD?: string | undefined;
|
|
114
116
|
EUR?: string | undefined;
|
|
115
117
|
GBP?: string | undefined;
|
|
@@ -117,27 +119,27 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
117
119
|
INR?: string | undefined;
|
|
118
120
|
AUD?: string | undefined;
|
|
119
121
|
CAD?: string | undefined;
|
|
122
|
+
interval?: ______utils_dates0.DayInterval | undefined;
|
|
120
123
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
121
124
|
}>;
|
|
122
125
|
display_name: string;
|
|
123
|
-
server_only: boolean;
|
|
124
|
-
customer_type: "user" | "team" | "custom";
|
|
125
126
|
included_items: Record<string, {
|
|
126
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
127
127
|
quantity?: number | undefined;
|
|
128
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
128
129
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
129
130
|
}>;
|
|
130
131
|
};
|
|
131
|
-
product_id: string;
|
|
132
132
|
}[] | undefined;
|
|
133
|
+
quantity: number;
|
|
133
134
|
product: {
|
|
135
|
+
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
134
136
|
client_metadata?: {} | null | undefined;
|
|
135
137
|
client_read_only_metadata?: {} | null | undefined;
|
|
136
138
|
server_metadata?: {} | null | undefined;
|
|
137
|
-
|
|
139
|
+
server_only: boolean;
|
|
140
|
+
customer_type: "team" | "user" | "custom";
|
|
138
141
|
stackable: boolean;
|
|
139
142
|
prices: Record<string, {
|
|
140
|
-
interval?: ______utils_dates0.DayInterval | undefined;
|
|
141
143
|
USD?: string | undefined;
|
|
142
144
|
EUR?: string | undefined;
|
|
143
145
|
GBP?: string | undefined;
|
|
@@ -145,18 +147,16 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
145
147
|
INR?: string | undefined;
|
|
146
148
|
AUD?: string | undefined;
|
|
147
149
|
CAD?: string | undefined;
|
|
150
|
+
interval?: ______utils_dates0.DayInterval | undefined;
|
|
148
151
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
149
152
|
}>;
|
|
150
153
|
display_name: string;
|
|
151
|
-
server_only: boolean;
|
|
152
|
-
customer_type: "user" | "team" | "custom";
|
|
153
154
|
included_items: Record<string, {
|
|
154
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
155
155
|
quantity?: number | undefined;
|
|
156
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
156
157
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
157
158
|
}>;
|
|
158
159
|
};
|
|
159
|
-
quantity: number;
|
|
160
160
|
id: string | null;
|
|
161
161
|
}[];
|
|
162
162
|
is_paginated: boolean;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA
|
|
1
|
+
{"version":3,"file":"products.d.ts","names":[],"sources":["../../../../src/interface/crud/products.ts"],"mappings":";;;;cAQa,yBAAA,EAAyB,KAAA,CAAA,YAAA;;;;iBAc1B,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,KAAA,CAAA,YAAA;;;;;;;;;;;;qBAMnC,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,4BAAA,GAA+B,KAAA,CAAI,SAAA,QAAiB,kCAAA;AAAA,KAEpD,2BAAA;EACV,aAAA;EACA,WAAA;EACA,MAAA;EACA,KAAA;AAAA"}
|
|
@@ -79,12 +79,12 @@ declare const userApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
79
79
|
is_public: undefined;
|
|
80
80
|
user_id: undefined;
|
|
81
81
|
}, "">, userApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
82
|
+
user_id: string;
|
|
82
83
|
type: "user";
|
|
83
84
|
description: string;
|
|
84
85
|
id: string;
|
|
85
86
|
created_at_millis: number;
|
|
86
87
|
expires_at_millis: number | undefined;
|
|
87
|
-
user_id: string;
|
|
88
88
|
manually_revoked_at_millis: number | undefined;
|
|
89
89
|
is_public: boolean;
|
|
90
90
|
} & {
|
|
@@ -178,11 +178,11 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
178
178
|
team_id: undefined;
|
|
179
179
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
180
180
|
type: "team";
|
|
181
|
+
team_id: string;
|
|
181
182
|
description: string;
|
|
182
183
|
id: string;
|
|
183
184
|
created_at_millis: number;
|
|
184
185
|
expires_at_millis: number | undefined;
|
|
185
|
-
team_id: string;
|
|
186
186
|
manually_revoked_at_millis: number | undefined;
|
|
187
187
|
is_public: boolean;
|
|
188
188
|
} & {
|
|
@@ -52,7 +52,7 @@ declare const projectsCrudAdminReadSchema: yup$1.ObjectSchema<{
|
|
|
52
52
|
onboarding_state: {
|
|
53
53
|
selected_config_choice: "create-new" | "link-existing";
|
|
54
54
|
selected_apps: string[];
|
|
55
|
-
selected_sign_in_methods: ("
|
|
55
|
+
selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
|
|
56
56
|
selected_email_theme_id: string | null;
|
|
57
57
|
selected_payments_country: "US" | "OTHER";
|
|
58
58
|
} | null | undefined;
|
|
@@ -225,7 +225,7 @@ declare const projectsCrudAdminUpdateSchema: yup$1.ObjectSchema<{
|
|
|
225
225
|
onboarding_state: {
|
|
226
226
|
selected_config_choice: "create-new" | "link-existing";
|
|
227
227
|
selected_apps: string[];
|
|
228
|
-
selected_sign_in_methods: ("
|
|
228
|
+
selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
|
|
229
229
|
selected_email_theme_id: string | null;
|
|
230
230
|
selected_payments_country: "US" | "OTHER";
|
|
231
231
|
} | null | undefined;
|
|
@@ -305,7 +305,7 @@ declare const projectsCrudAdminCreateSchema: yup$1.ObjectSchema<{
|
|
|
305
305
|
onboarding_state: {
|
|
306
306
|
selected_config_choice: "create-new" | "link-existing";
|
|
307
307
|
selected_apps: string[];
|
|
308
|
-
selected_sign_in_methods: ("
|
|
308
|
+
selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
|
|
309
309
|
selected_email_theme_id: string | null;
|
|
310
310
|
selected_payments_country: "US" | "OTHER";
|
|
311
311
|
} | null | undefined;
|
|
@@ -455,7 +455,7 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
455
455
|
onboarding_state: {
|
|
456
456
|
selected_config_choice: "create-new" | "link-existing";
|
|
457
457
|
selected_apps: string[];
|
|
458
|
-
selected_sign_in_methods: ("
|
|
458
|
+
selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
|
|
459
459
|
selected_email_theme_id: string | null;
|
|
460
460
|
selected_payments_country: "US" | "OTHER";
|
|
461
461
|
} | null | undefined;
|
|
@@ -580,7 +580,7 @@ declare const projectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
580
580
|
onboarding_state: {
|
|
581
581
|
selected_config_choice: "create-new" | "link-existing";
|
|
582
582
|
selected_apps: string[];
|
|
583
|
-
selected_sign_in_methods: ("
|
|
583
|
+
selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
|
|
584
584
|
selected_email_theme_id: string | null;
|
|
585
585
|
selected_payments_country: "US" | "OTHER";
|
|
586
586
|
} | null | undefined;
|
|
@@ -688,7 +688,7 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
688
688
|
onboarding_state: {
|
|
689
689
|
selected_config_choice: "create-new" | "link-existing";
|
|
690
690
|
selected_apps: string[];
|
|
691
|
-
selected_sign_in_methods: ("
|
|
691
|
+
selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
|
|
692
692
|
selected_email_theme_id: string | null;
|
|
693
693
|
selected_payments_country: "US" | "OTHER";
|
|
694
694
|
} | null | undefined;
|
|
@@ -813,7 +813,7 @@ declare const adminUserProjectsCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
813
813
|
onboarding_state: {
|
|
814
814
|
selected_config_choice: "create-new" | "link-existing";
|
|
815
815
|
selected_apps: string[];
|
|
816
|
-
selected_sign_in_methods: ("
|
|
816
|
+
selected_sign_in_methods: ("google" | "github" | "microsoft" | "passkey" | "credential" | "magicLink")[];
|
|
817
817
|
selected_email_theme_id: string | null;
|
|
818
818
|
selected_payments_country: "US" | "OTHER";
|
|
819
819
|
} | null | undefined;
|
|
@@ -21,32 +21,32 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
21
21
|
profile_image_url: string | null;
|
|
22
22
|
} & {
|
|
23
23
|
user: {
|
|
24
|
-
id: string;
|
|
25
|
-
country_code: string | null;
|
|
26
|
-
display_name: string | null;
|
|
27
|
-
primary_email: string | null;
|
|
28
|
-
profile_image_url: string | null;
|
|
29
|
-
signed_up_at_millis: number;
|
|
30
|
-
last_active_at_millis: number;
|
|
31
|
-
selected_team_id: string | null;
|
|
32
|
-
is_anonymous: boolean;
|
|
33
|
-
is_restricted: boolean;
|
|
34
24
|
restricted_reason: {
|
|
35
25
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
36
26
|
} | null;
|
|
37
|
-
|
|
27
|
+
primary_email: string | null;
|
|
28
|
+
display_name: string | null;
|
|
38
29
|
client_metadata: {} | null;
|
|
39
30
|
client_read_only_metadata: {} | null;
|
|
40
31
|
server_metadata: {} | null;
|
|
32
|
+
id: string;
|
|
33
|
+
selected_team_id: string | null;
|
|
34
|
+
is_anonymous: boolean;
|
|
35
|
+
is_restricted: boolean;
|
|
36
|
+
requires_totp_mfa: boolean;
|
|
37
|
+
country_code: string | null;
|
|
38
|
+
profile_image_url: string | null;
|
|
39
|
+
signed_up_at_millis: number;
|
|
40
|
+
last_active_at_millis: number;
|
|
41
41
|
primary_email_verified: boolean;
|
|
42
42
|
primary_email_auth_enabled: boolean;
|
|
43
43
|
selected_team: {
|
|
44
44
|
client_metadata?: {} | null | undefined;
|
|
45
45
|
client_read_only_metadata?: {} | null | undefined;
|
|
46
46
|
server_metadata?: {} | null | undefined;
|
|
47
|
+
display_name: string;
|
|
47
48
|
id: string;
|
|
48
49
|
created_at_millis: number;
|
|
49
|
-
display_name: string;
|
|
50
50
|
profile_image_url: string | null;
|
|
51
51
|
} | null;
|
|
52
52
|
has_password: boolean;
|
|
@@ -144,32 +144,32 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
144
144
|
profile_image_url: string | null;
|
|
145
145
|
} & {
|
|
146
146
|
user: {
|
|
147
|
-
id: string;
|
|
148
|
-
country_code: string | null;
|
|
149
|
-
display_name: string | null;
|
|
150
|
-
primary_email: string | null;
|
|
151
|
-
profile_image_url: string | null;
|
|
152
|
-
signed_up_at_millis: number;
|
|
153
|
-
last_active_at_millis: number;
|
|
154
|
-
selected_team_id: string | null;
|
|
155
|
-
is_anonymous: boolean;
|
|
156
|
-
is_restricted: boolean;
|
|
157
147
|
restricted_reason: {
|
|
158
148
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
159
149
|
} | null;
|
|
160
|
-
|
|
150
|
+
primary_email: string | null;
|
|
151
|
+
display_name: string | null;
|
|
161
152
|
client_metadata: {} | null;
|
|
162
153
|
client_read_only_metadata: {} | null;
|
|
163
154
|
server_metadata: {} | null;
|
|
155
|
+
id: string;
|
|
156
|
+
selected_team_id: string | null;
|
|
157
|
+
is_anonymous: boolean;
|
|
158
|
+
is_restricted: boolean;
|
|
159
|
+
requires_totp_mfa: boolean;
|
|
160
|
+
country_code: string | null;
|
|
161
|
+
profile_image_url: string | null;
|
|
162
|
+
signed_up_at_millis: number;
|
|
163
|
+
last_active_at_millis: number;
|
|
164
164
|
primary_email_verified: boolean;
|
|
165
165
|
primary_email_auth_enabled: boolean;
|
|
166
166
|
selected_team: {
|
|
167
167
|
client_metadata?: {} | null | undefined;
|
|
168
168
|
client_read_only_metadata?: {} | null | undefined;
|
|
169
169
|
server_metadata?: {} | null | undefined;
|
|
170
|
+
display_name: string;
|
|
170
171
|
id: string;
|
|
171
172
|
created_at_millis: number;
|
|
172
|
-
display_name: string;
|
|
173
173
|
profile_image_url: string | null;
|
|
174
174
|
} | null;
|
|
175
175
|
has_password: boolean;
|
|
@@ -6,7 +6,7 @@ import * as ______utils_dates0 from "../../utils/dates";
|
|
|
6
6
|
declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
7
7
|
type: "money_transfer";
|
|
8
8
|
customer_id: string;
|
|
9
|
-
customer_type: "
|
|
9
|
+
customer_type: "team" | "user" | "custom";
|
|
10
10
|
charged_amount: {
|
|
11
11
|
USD?: string | undefined;
|
|
12
12
|
EUR?: string | undefined;
|
|
@@ -23,24 +23,29 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
23
23
|
adjusted_entry_index: number | null;
|
|
24
24
|
} | {
|
|
25
25
|
type: "item_quantity_change";
|
|
26
|
-
quantity: number;
|
|
27
26
|
item_id: string;
|
|
28
27
|
customer_id: string;
|
|
29
|
-
|
|
28
|
+
quantity: number;
|
|
29
|
+
customer_type: "team" | "user" | "custom";
|
|
30
30
|
adjusted_transaction_id: string | null;
|
|
31
31
|
adjusted_entry_index: number | null;
|
|
32
32
|
} | {
|
|
33
33
|
one_time_purchase_id?: string | undefined;
|
|
34
34
|
subscription_id?: string | undefined;
|
|
35
35
|
type: "product_grant";
|
|
36
|
+
customer_id: string;
|
|
37
|
+
product_id: string | null;
|
|
38
|
+
quantity: number;
|
|
39
|
+
customer_type: "team" | "user" | "custom";
|
|
36
40
|
product: {
|
|
41
|
+
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
37
42
|
client_metadata?: {} | null | undefined;
|
|
38
43
|
client_read_only_metadata?: {} | null | undefined;
|
|
39
44
|
server_metadata?: {} | null | undefined;
|
|
40
|
-
|
|
45
|
+
server_only: boolean;
|
|
46
|
+
customer_type: "team" | "user" | "custom";
|
|
41
47
|
stackable: boolean;
|
|
42
48
|
prices: Record<string, {
|
|
43
|
-
interval?: ______utils_dates0.DayInterval | undefined;
|
|
44
49
|
USD?: string | undefined;
|
|
45
50
|
EUR?: string | undefined;
|
|
46
51
|
GBP?: string | undefined;
|
|
@@ -48,21 +53,16 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
48
53
|
INR?: string | undefined;
|
|
49
54
|
AUD?: string | undefined;
|
|
50
55
|
CAD?: string | undefined;
|
|
56
|
+
interval?: ______utils_dates0.DayInterval | undefined;
|
|
51
57
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
52
58
|
}>;
|
|
53
59
|
display_name: string;
|
|
54
|
-
server_only: boolean;
|
|
55
|
-
customer_type: "user" | "team" | "custom";
|
|
56
60
|
included_items: Record<string, {
|
|
57
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
58
61
|
quantity?: number | undefined;
|
|
62
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
59
63
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
60
64
|
}>;
|
|
61
65
|
};
|
|
62
|
-
quantity: number;
|
|
63
|
-
customer_id: string;
|
|
64
|
-
product_id: string | null;
|
|
65
|
-
customer_type: "user" | "team" | "custom";
|
|
66
66
|
adjusted_transaction_id: string | null;
|
|
67
67
|
adjusted_entry_index: number | null;
|
|
68
68
|
price_id: string | null;
|
|
@@ -85,12 +85,12 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
85
85
|
created_at_millis: number;
|
|
86
86
|
effective_at_millis: number;
|
|
87
87
|
type: "purchase" | "subscription-cancellation" | "subscription-renewal" | "manual-item-quantity-change" | "refund" | "chargeback" | "product-change" | null;
|
|
88
|
-
customer_type: "
|
|
88
|
+
customer_type: "team" | "user" | "custom";
|
|
89
89
|
customer_id: string;
|
|
90
90
|
entries: ({
|
|
91
91
|
type: "money_transfer";
|
|
92
92
|
customer_id: string;
|
|
93
|
-
customer_type: "
|
|
93
|
+
customer_type: "team" | "user" | "custom";
|
|
94
94
|
charged_amount: {
|
|
95
95
|
USD?: string | undefined;
|
|
96
96
|
EUR?: string | undefined;
|
|
@@ -107,24 +107,29 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
107
107
|
adjusted_entry_index: number | null;
|
|
108
108
|
} | {
|
|
109
109
|
type: "item_quantity_change";
|
|
110
|
-
quantity: number;
|
|
111
110
|
item_id: string;
|
|
112
111
|
customer_id: string;
|
|
113
|
-
|
|
112
|
+
quantity: number;
|
|
113
|
+
customer_type: "team" | "user" | "custom";
|
|
114
114
|
adjusted_transaction_id: string | null;
|
|
115
115
|
adjusted_entry_index: number | null;
|
|
116
116
|
} | {
|
|
117
117
|
one_time_purchase_id?: string | undefined;
|
|
118
118
|
subscription_id?: string | undefined;
|
|
119
119
|
type: "product_grant";
|
|
120
|
+
customer_id: string;
|
|
121
|
+
product_id: string | null;
|
|
122
|
+
quantity: number;
|
|
123
|
+
customer_type: "team" | "user" | "custom";
|
|
120
124
|
product: {
|
|
125
|
+
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
121
126
|
client_metadata?: {} | null | undefined;
|
|
122
127
|
client_read_only_metadata?: {} | null | undefined;
|
|
123
128
|
server_metadata?: {} | null | undefined;
|
|
124
|
-
|
|
129
|
+
server_only: boolean;
|
|
130
|
+
customer_type: "team" | "user" | "custom";
|
|
125
131
|
stackable: boolean;
|
|
126
132
|
prices: Record<string, {
|
|
127
|
-
interval?: ______utils_dates0.DayInterval | undefined;
|
|
128
133
|
USD?: string | undefined;
|
|
129
134
|
EUR?: string | undefined;
|
|
130
135
|
GBP?: string | undefined;
|
|
@@ -132,21 +137,16 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
132
137
|
INR?: string | undefined;
|
|
133
138
|
AUD?: string | undefined;
|
|
134
139
|
CAD?: string | undefined;
|
|
140
|
+
interval?: ______utils_dates0.DayInterval | undefined;
|
|
135
141
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
136
142
|
}>;
|
|
137
143
|
display_name: string;
|
|
138
|
-
server_only: boolean;
|
|
139
|
-
customer_type: "user" | "team" | "custom";
|
|
140
144
|
included_items: Record<string, {
|
|
141
|
-
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
142
145
|
quantity?: number | undefined;
|
|
146
|
+
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
143
147
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
144
148
|
}>;
|
|
145
149
|
};
|
|
146
|
-
quantity: number;
|
|
147
|
-
customer_id: string;
|
|
148
|
-
product_id: string | null;
|
|
149
|
-
customer_type: "user" | "team" | "custom";
|
|
150
150
|
adjusted_transaction_id: string | null;
|
|
151
151
|
adjusted_entry_index: number | null;
|
|
152
152
|
price_id: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA
|
|
1
|
+
{"version":3,"file":"transactions.d.ts","names":[],"sources":["../../../../src/interface/crud/transactions.ts"],"mappings":";;;;;cAwFa,sBAAA,QAAsB,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAMxB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEC,gBAAA,GAAmB,SAAA,QAAiB,sBAAA;AAAA,cAEnC,iBAAA;AAAA,KAUD,eAAA,WAA0B,iBAAA;AAAA,cAEzB,iBAAA,QAAiB,YAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;mBAkBlB,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,WAAA,GAAc,SAAA,QAAiB,iBAAA"}
|
|
@@ -81,9 +81,9 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
81
81
|
client_metadata?: {} | null | undefined;
|
|
82
82
|
client_read_only_metadata?: {} | null | undefined;
|
|
83
83
|
server_metadata?: {} | null | undefined;
|
|
84
|
+
display_name: string;
|
|
84
85
|
id: string;
|
|
85
86
|
created_at_millis: number;
|
|
86
|
-
display_name: string;
|
|
87
87
|
profile_image_url: string | null;
|
|
88
88
|
} | null;
|
|
89
89
|
selected_team_id: string | null;
|
|
@@ -163,15 +163,15 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
163
163
|
requires_totp_mfa: undefined;
|
|
164
164
|
}, "">;
|
|
165
165
|
declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
166
|
-
password: string | null | undefined;
|
|
167
|
-
country_code: string | null | undefined;
|
|
168
|
-
display_name: string | null | undefined;
|
|
169
166
|
primary_email: string | null | undefined;
|
|
170
|
-
|
|
171
|
-
is_anonymous: boolean | undefined;
|
|
167
|
+
display_name: string | null | undefined;
|
|
172
168
|
client_metadata: {} | null | undefined;
|
|
173
169
|
client_read_only_metadata: {} | null | undefined;
|
|
174
170
|
server_metadata: {} | null | undefined;
|
|
171
|
+
is_anonymous: boolean | undefined;
|
|
172
|
+
country_code: string | null | undefined;
|
|
173
|
+
profile_image_url: string | null | undefined;
|
|
174
|
+
password: string | null | undefined;
|
|
175
175
|
primary_email_verified: boolean | undefined;
|
|
176
176
|
primary_email_auth_enabled: boolean | undefined;
|
|
177
177
|
otp_auth_enabled: boolean | undefined;
|
|
@@ -189,8 +189,8 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
|
189
189
|
totp_secret_base64: string | null | undefined;
|
|
190
190
|
} & {
|
|
191
191
|
oauth_providers: {
|
|
192
|
-
id: string;
|
|
193
192
|
email: string | null;
|
|
193
|
+
id: string;
|
|
194
194
|
account_id: string;
|
|
195
195
|
}[] | undefined;
|
|
196
196
|
is_anonymous: boolean | undefined;
|
|
@@ -234,9 +234,9 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
234
234
|
client_metadata?: {} | null | undefined;
|
|
235
235
|
client_read_only_metadata?: {} | null | undefined;
|
|
236
236
|
server_metadata?: {} | null | undefined;
|
|
237
|
+
display_name: string;
|
|
237
238
|
id: string;
|
|
238
239
|
created_at_millis: number;
|
|
239
|
-
display_name: string;
|
|
240
240
|
profile_image_url: string | null;
|
|
241
241
|
} | null;
|
|
242
242
|
selected_team_id: string | null;
|
|
@@ -369,15 +369,15 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
369
369
|
};
|
|
370
370
|
}, "">;
|
|
371
371
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
372
|
-
password: string | null | undefined;
|
|
373
|
-
country_code: string | null | undefined;
|
|
374
|
-
display_name: string | null | undefined;
|
|
375
372
|
primary_email: string | null | undefined;
|
|
376
|
-
|
|
377
|
-
is_anonymous: boolean | undefined;
|
|
373
|
+
display_name: string | null | undefined;
|
|
378
374
|
client_metadata: {} | null | undefined;
|
|
379
375
|
client_read_only_metadata: {} | null | undefined;
|
|
380
376
|
server_metadata: {} | null | undefined;
|
|
377
|
+
is_anonymous: boolean | undefined;
|
|
378
|
+
country_code: string | null | undefined;
|
|
379
|
+
profile_image_url: string | null | undefined;
|
|
380
|
+
password: string | null | undefined;
|
|
381
381
|
primary_email_verified: boolean | undefined;
|
|
382
382
|
primary_email_auth_enabled: boolean | undefined;
|
|
383
383
|
otp_auth_enabled: boolean | undefined;
|
|
@@ -395,8 +395,8 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
395
395
|
totp_secret_base64: string | null | undefined;
|
|
396
396
|
} & {
|
|
397
397
|
oauth_providers: {
|
|
398
|
-
id: string;
|
|
399
398
|
email: string | null;
|
|
399
|
+
id: string;
|
|
400
400
|
account_id: string;
|
|
401
401
|
}[] | undefined;
|
|
402
402
|
is_anonymous: boolean | undefined;
|
|
@@ -468,9 +468,9 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
468
468
|
client_metadata?: {} | null | undefined;
|
|
469
469
|
client_read_only_metadata?: {} | null | undefined;
|
|
470
470
|
server_metadata?: {} | null | undefined;
|
|
471
|
+
display_name: string;
|
|
471
472
|
id: string;
|
|
472
473
|
created_at_millis: number;
|
|
473
|
-
display_name: string;
|
|
474
474
|
profile_image_url: string | null;
|
|
475
475
|
} | null;
|
|
476
476
|
selected_team_id: string | null;
|
|
@@ -559,9 +559,9 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
559
559
|
client_metadata?: {} | null | undefined;
|
|
560
560
|
client_read_only_metadata?: {} | null | undefined;
|
|
561
561
|
server_metadata?: {} | null | undefined;
|
|
562
|
+
display_name: string;
|
|
562
563
|
id: string;
|
|
563
564
|
created_at_millis: number;
|
|
564
|
-
display_name: string;
|
|
565
565
|
profile_image_url: string | null;
|
|
566
566
|
} | null;
|
|
567
567
|
selected_team_id: string | null;
|
|
@@ -24,15 +24,15 @@ declare const planUsageRowSchema: yup$1.ObjectSchema<{
|
|
|
24
24
|
declare const planUsageResponseSchema: yup$1.ObjectSchema<{
|
|
25
25
|
owner_team_id: string;
|
|
26
26
|
owner_team_display_name: string;
|
|
27
|
-
plan_id: "
|
|
27
|
+
plan_id: "free" | "team" | "growth";
|
|
28
28
|
plan_display_name: string;
|
|
29
29
|
period_start_millis: number;
|
|
30
30
|
period_end_millis: number;
|
|
31
31
|
next_plan_id: "team" | "growth" | null;
|
|
32
32
|
rows: {
|
|
33
|
+
item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
|
|
33
34
|
display_name: string;
|
|
34
35
|
kind: "current" | "metered" | "capability";
|
|
35
|
-
item_id: "dashboard_admins" | "auth_users" | "emails_per_month" | "analytics_timeout_seconds" | "analytics_events" | "session_replays" | "onboarding_call";
|
|
36
36
|
used: number | null;
|
|
37
37
|
limit: number | null;
|
|
38
38
|
remaining: number | null;
|
|
@@ -20,9 +20,9 @@ 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;
|
|
23
24
|
id: string;
|
|
24
25
|
created_at_millis: number;
|
|
25
|
-
display_name: string;
|
|
26
26
|
profile_image_url: string | null;
|
|
27
27
|
} | null;
|
|
28
28
|
selected_team_id: string | null;
|
|
@@ -110,9 +110,9 @@ 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;
|
|
113
114
|
id: string;
|
|
114
115
|
created_at_millis: number;
|
|
115
|
-
display_name: string;
|
|
116
116
|
profile_image_url: string | null;
|
|
117
117
|
} | null;
|
|
118
118
|
selected_team_id: string | null;
|