@hexclave/shared 1.0.17 → 1.0.19
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 +10 -7
- package/dist/ai/unified-prompts/reminders.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts +2 -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 +238 -10
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt.js +1 -1
- package/dist/ai/unified-prompts/skill-site-prompt.js.map +1 -1
- package/dist/apps/apps-config.d.ts +7 -3
- package/dist/apps/apps-config.d.ts.map +1 -1
- package/dist/apps/apps-config.js +12 -4
- package/dist/apps/apps-config.js.map +1 -1
- package/dist/config/schema.d.ts +192 -192
- package/dist/esm/ai/unified-prompts/reminders.js +10 -7
- 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 +2 -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 +238 -11
- 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.js +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt.js.map +1 -1
- package/dist/esm/apps/apps-config.d.ts +7 -3
- package/dist/esm/apps/apps-config.d.ts.map +1 -1
- package/dist/esm/apps/apps-config.js +12 -5
- package/dist/esm/apps/apps-config.js.map +1 -1
- package/dist/esm/config/schema.d.ts +192 -192
- package/dist/esm/interface/admin-metrics.d.ts +10 -10
- package/dist/esm/interface/conversations.d.ts +9 -9
- package/dist/esm/interface/crud/current-user.d.ts +5 -5
- package/dist/esm/interface/crud/email-outbox.d.ts +138 -138
- package/dist/esm/interface/crud/products.d.ts +15 -15
- 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/team-member-profiles.d.ts +8 -8
- package/dist/esm/interface/crud/transactions.d.ts +21 -21
- package/dist/esm/interface/crud/transactions.d.ts.map +1 -1
- package/dist/esm/interface/crud/users.d.ts +4 -4
- package/dist/esm/known-errors.d.ts +5 -5
- package/dist/esm/schema-fields.d.ts +5 -5
- package/dist/esm/sessions.d.ts +7 -7
- package/dist/interface/admin-metrics.d.ts +10 -10
- package/dist/interface/conversations.d.ts +9 -9
- package/dist/interface/crud/current-user.d.ts +5 -5
- package/dist/interface/crud/email-outbox.d.ts +138 -138
- package/dist/interface/crud/products.d.ts +15 -15
- 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/team-member-profiles.d.ts +8 -8
- package/dist/interface/crud/transactions.d.ts +21 -21
- package/dist/interface/crud/transactions.d.ts.map +1 -1
- package/dist/interface/crud/users.d.ts +4 -4
- package/dist/known-errors.d.ts +5 -5
- package/dist/schema-fields.d.ts +5 -5
- package/dist/sessions.d.ts +7 -7
- package/package.json +1 -1
- package/src/ai/unified-prompts/reminders.ts +10 -7
- package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +244 -10
- package/src/ai/unified-prompts/skill-site-prompt.ts +1 -1
- package/src/apps/apps-config.ts +13 -2
|
@@ -10,8 +10,6 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
10
10
|
client_metadata?: {} | null | undefined;
|
|
11
11
|
client_read_only_metadata?: {} | null | undefined;
|
|
12
12
|
server_metadata?: {} | null | undefined;
|
|
13
|
-
server_only: boolean;
|
|
14
|
-
customer_type: "team" | "user" | "custom";
|
|
15
13
|
stackable: boolean;
|
|
16
14
|
prices: Record<string, {
|
|
17
15
|
USD?: string | undefined;
|
|
@@ -25,9 +23,11 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
25
23
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
26
24
|
}>;
|
|
27
25
|
display_name: string;
|
|
26
|
+
customer_type: "user" | "team" | "custom";
|
|
27
|
+
server_only: boolean;
|
|
28
28
|
included_items: Record<string, {
|
|
29
|
-
quantity?: number | undefined;
|
|
30
29
|
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
30
|
+
quantity?: number | undefined;
|
|
31
31
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
32
32
|
}>;
|
|
33
33
|
};
|
|
@@ -39,14 +39,11 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
39
39
|
is_cancelable: boolean;
|
|
40
40
|
} | null | undefined;
|
|
41
41
|
switch_options: {
|
|
42
|
-
product_id: string;
|
|
43
42
|
product: {
|
|
44
43
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
45
44
|
client_metadata?: {} | null | undefined;
|
|
46
45
|
client_read_only_metadata?: {} | null | undefined;
|
|
47
46
|
server_metadata?: {} | null | undefined;
|
|
48
|
-
server_only: boolean;
|
|
49
|
-
customer_type: "team" | "user" | "custom";
|
|
50
47
|
stackable: boolean;
|
|
51
48
|
prices: Record<string, {
|
|
52
49
|
USD?: string | undefined;
|
|
@@ -60,12 +57,15 @@ declare const customerProductReadSchema: yup$1.ObjectSchema<{
|
|
|
60
57
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
61
58
|
}>;
|
|
62
59
|
display_name: string;
|
|
60
|
+
customer_type: "user" | "team" | "custom";
|
|
61
|
+
server_only: boolean;
|
|
63
62
|
included_items: Record<string, {
|
|
64
|
-
quantity?: number | undefined;
|
|
65
63
|
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
64
|
+
quantity?: number | undefined;
|
|
66
65
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
67
66
|
}>;
|
|
68
67
|
};
|
|
68
|
+
product_id: string;
|
|
69
69
|
}[] | undefined;
|
|
70
70
|
}, yup$1.AnyObject, {
|
|
71
71
|
id: undefined;
|
|
@@ -102,14 +102,11 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
102
102
|
is_cancelable: boolean;
|
|
103
103
|
} | null | undefined;
|
|
104
104
|
switch_options?: {
|
|
105
|
-
product_id: string;
|
|
106
105
|
product: {
|
|
107
106
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
108
107
|
client_metadata?: {} | null | undefined;
|
|
109
108
|
client_read_only_metadata?: {} | null | undefined;
|
|
110
109
|
server_metadata?: {} | null | undefined;
|
|
111
|
-
server_only: boolean;
|
|
112
|
-
customer_type: "team" | "user" | "custom";
|
|
113
110
|
stackable: boolean;
|
|
114
111
|
prices: Record<string, {
|
|
115
112
|
USD?: string | undefined;
|
|
@@ -123,21 +120,21 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
123
120
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
124
121
|
}>;
|
|
125
122
|
display_name: string;
|
|
123
|
+
customer_type: "user" | "team" | "custom";
|
|
124
|
+
server_only: boolean;
|
|
126
125
|
included_items: Record<string, {
|
|
127
|
-
quantity?: number | undefined;
|
|
128
126
|
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
127
|
+
quantity?: number | undefined;
|
|
129
128
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
130
129
|
}>;
|
|
131
130
|
};
|
|
131
|
+
product_id: string;
|
|
132
132
|
}[] | undefined;
|
|
133
|
-
quantity: number;
|
|
134
133
|
product: {
|
|
135
134
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
136
135
|
client_metadata?: {} | null | undefined;
|
|
137
136
|
client_read_only_metadata?: {} | null | undefined;
|
|
138
137
|
server_metadata?: {} | null | undefined;
|
|
139
|
-
server_only: boolean;
|
|
140
|
-
customer_type: "team" | "user" | "custom";
|
|
141
138
|
stackable: boolean;
|
|
142
139
|
prices: Record<string, {
|
|
143
140
|
USD?: string | undefined;
|
|
@@ -151,12 +148,15 @@ declare const customerProductsListResponseSchema: yup$1.ObjectSchema<{
|
|
|
151
148
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
152
149
|
}>;
|
|
153
150
|
display_name: string;
|
|
151
|
+
customer_type: "user" | "team" | "custom";
|
|
152
|
+
server_only: boolean;
|
|
154
153
|
included_items: Record<string, {
|
|
155
|
-
quantity?: number | undefined;
|
|
156
154
|
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
155
|
+
quantity?: number | undefined;
|
|
157
156
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
158
157
|
}>;
|
|
159
158
|
};
|
|
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;;;;iBAc1B,kBAAA,CAAA,WAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KAEA,mBAAA,GAAsB,KAAA,CAAI,SAAA,QAAiB,yBAAA;AAAA,cAE1C,kCAAA,EAAkC,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,10 +79,10 @@ 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;
|
|
83
82
|
type: "user";
|
|
84
83
|
description: string;
|
|
85
84
|
id: string;
|
|
85
|
+
user_id: string;
|
|
86
86
|
created_at_millis: number;
|
|
87
87
|
expires_at_millis: number | undefined;
|
|
88
88
|
manually_revoked_at_millis: number | undefined;
|
|
@@ -178,9 +178,9 @@ declare const teamApiKeysCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
178
178
|
team_id: undefined;
|
|
179
179
|
}, "">, teamApiKeysCreateOutputSchema: yup$1.ObjectSchema<{
|
|
180
180
|
type: "team";
|
|
181
|
-
team_id: string;
|
|
182
181
|
description: string;
|
|
183
182
|
id: string;
|
|
183
|
+
team_id: string;
|
|
184
184
|
created_at_millis: number;
|
|
185
185
|
expires_at_millis: number | undefined;
|
|
186
186
|
manually_revoked_at_millis: number | undefined;
|
|
@@ -21,10 +21,6 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
21
21
|
profile_image_url: string | null;
|
|
22
22
|
} & {
|
|
23
23
|
user: {
|
|
24
|
-
restricted_reason: {
|
|
25
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
26
|
-
} | null;
|
|
27
|
-
primary_email: string | null;
|
|
28
24
|
display_name: string | null;
|
|
29
25
|
client_metadata: {} | null;
|
|
30
26
|
client_read_only_metadata: {} | null;
|
|
@@ -33,7 +29,11 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
33
29
|
selected_team_id: string | null;
|
|
34
30
|
is_anonymous: boolean;
|
|
35
31
|
is_restricted: boolean;
|
|
32
|
+
restricted_reason: {
|
|
33
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
34
|
+
} | null;
|
|
36
35
|
requires_totp_mfa: boolean;
|
|
36
|
+
primary_email: string | null;
|
|
37
37
|
country_code: string | null;
|
|
38
38
|
profile_image_url: string | null;
|
|
39
39
|
signed_up_at_millis: number;
|
|
@@ -144,10 +144,6 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
144
144
|
profile_image_url: string | null;
|
|
145
145
|
} & {
|
|
146
146
|
user: {
|
|
147
|
-
restricted_reason: {
|
|
148
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
149
|
-
} | null;
|
|
150
|
-
primary_email: string | null;
|
|
151
147
|
display_name: string | null;
|
|
152
148
|
client_metadata: {} | null;
|
|
153
149
|
client_read_only_metadata: {} | null;
|
|
@@ -156,7 +152,11 @@ declare const teamMemberProfilesCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
156
152
|
selected_team_id: string | null;
|
|
157
153
|
is_anonymous: boolean;
|
|
158
154
|
is_restricted: boolean;
|
|
155
|
+
restricted_reason: {
|
|
156
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
157
|
+
} | null;
|
|
159
158
|
requires_totp_mfa: boolean;
|
|
159
|
+
primary_email: string | null;
|
|
160
160
|
country_code: string | null;
|
|
161
161
|
profile_image_url: string | null;
|
|
162
162
|
signed_up_at_millis: number;
|
|
@@ -5,8 +5,8 @@ import * as ______utils_dates0 from "../../utils/dates";
|
|
|
5
5
|
//#region src/interface/crud/transactions.d.ts
|
|
6
6
|
declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
7
7
|
type: "money_transfer";
|
|
8
|
+
customer_type: "user" | "team" | "custom";
|
|
8
9
|
customer_id: string;
|
|
9
|
-
customer_type: "team" | "user" | "custom";
|
|
10
10
|
charged_amount: {
|
|
11
11
|
USD?: string | undefined;
|
|
12
12
|
EUR?: string | undefined;
|
|
@@ -23,27 +23,21 @@ 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
|
+
customer_type: "user" | "team" | "custom";
|
|
26
28
|
item_id: string;
|
|
27
29
|
customer_id: string;
|
|
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";
|
|
40
36
|
product: {
|
|
41
37
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
42
38
|
client_metadata?: {} | null | undefined;
|
|
43
39
|
client_read_only_metadata?: {} | null | undefined;
|
|
44
40
|
server_metadata?: {} | null | undefined;
|
|
45
|
-
server_only: boolean;
|
|
46
|
-
customer_type: "team" | "user" | "custom";
|
|
47
41
|
stackable: boolean;
|
|
48
42
|
prices: Record<string, {
|
|
49
43
|
USD?: string | undefined;
|
|
@@ -57,12 +51,18 @@ declare const transactionEntrySchema: yup$1.MixedSchema<{
|
|
|
57
51
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
58
52
|
}>;
|
|
59
53
|
display_name: string;
|
|
54
|
+
customer_type: "user" | "team" | "custom";
|
|
55
|
+
server_only: boolean;
|
|
60
56
|
included_items: Record<string, {
|
|
61
|
-
quantity?: number | undefined;
|
|
62
57
|
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
58
|
+
quantity?: number | undefined;
|
|
63
59
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
64
60
|
}>;
|
|
65
61
|
};
|
|
62
|
+
quantity: number;
|
|
63
|
+
customer_type: "user" | "team" | "custom";
|
|
64
|
+
customer_id: string;
|
|
65
|
+
product_id: string | null;
|
|
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: "user" | "team" | "custom";
|
|
89
89
|
customer_id: string;
|
|
90
90
|
entries: ({
|
|
91
91
|
type: "money_transfer";
|
|
92
|
+
customer_type: "user" | "team" | "custom";
|
|
92
93
|
customer_id: string;
|
|
93
|
-
customer_type: "team" | "user" | "custom";
|
|
94
94
|
charged_amount: {
|
|
95
95
|
USD?: string | undefined;
|
|
96
96
|
EUR?: string | undefined;
|
|
@@ -107,27 +107,21 @@ 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
|
+
customer_type: "user" | "team" | "custom";
|
|
110
112
|
item_id: string;
|
|
111
113
|
customer_id: string;
|
|
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";
|
|
124
120
|
product: {
|
|
125
121
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
126
122
|
client_metadata?: {} | null | undefined;
|
|
127
123
|
client_read_only_metadata?: {} | null | undefined;
|
|
128
124
|
server_metadata?: {} | null | undefined;
|
|
129
|
-
server_only: boolean;
|
|
130
|
-
customer_type: "team" | "user" | "custom";
|
|
131
125
|
stackable: boolean;
|
|
132
126
|
prices: Record<string, {
|
|
133
127
|
USD?: string | undefined;
|
|
@@ -141,12 +135,18 @@ declare const transactionSchema: yup$1.ObjectSchema<{
|
|
|
141
135
|
free_trial?: ______utils_dates0.DayInterval | undefined;
|
|
142
136
|
}>;
|
|
143
137
|
display_name: string;
|
|
138
|
+
customer_type: "user" | "team" | "custom";
|
|
139
|
+
server_only: boolean;
|
|
144
140
|
included_items: Record<string, {
|
|
145
|
-
quantity?: number | undefined;
|
|
146
141
|
repeat?: "never" | ______utils_dates0.DayInterval | undefined;
|
|
142
|
+
quantity?: number | undefined;
|
|
147
143
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
148
144
|
}>;
|
|
149
145
|
};
|
|
146
|
+
quantity: number;
|
|
147
|
+
customer_type: "user" | "team" | "custom";
|
|
148
|
+
customer_id: string;
|
|
149
|
+
product_id: string | null;
|
|
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"}
|
|
@@ -163,13 +163,13 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
163
163
|
requires_totp_mfa: undefined;
|
|
164
164
|
}, "">;
|
|
165
165
|
declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
166
|
-
primary_email: string | null | undefined;
|
|
167
166
|
display_name: string | null | undefined;
|
|
168
167
|
client_metadata: {} | null | undefined;
|
|
169
168
|
client_read_only_metadata: {} | null | undefined;
|
|
170
169
|
server_metadata: {} | null | undefined;
|
|
171
170
|
is_anonymous: boolean | undefined;
|
|
172
171
|
password: string | null | undefined;
|
|
172
|
+
primary_email: string | null | undefined;
|
|
173
173
|
country_code: string | null | undefined;
|
|
174
174
|
profile_image_url: string | null | undefined;
|
|
175
175
|
primary_email_verified: 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
|
-
email: string | null;
|
|
193
192
|
id: string;
|
|
193
|
+
email: string | null;
|
|
194
194
|
account_id: string;
|
|
195
195
|
}[] | undefined;
|
|
196
196
|
is_anonymous: boolean | undefined;
|
|
@@ -369,13 +369,13 @@ declare const usersCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
369
369
|
};
|
|
370
370
|
}, "">;
|
|
371
371
|
serverCreateSchema: yup$1.ObjectSchema<{
|
|
372
|
-
primary_email: string | null | undefined;
|
|
373
372
|
display_name: string | null | undefined;
|
|
374
373
|
client_metadata: {} | null | undefined;
|
|
375
374
|
client_read_only_metadata: {} | null | undefined;
|
|
376
375
|
server_metadata: {} | null | undefined;
|
|
377
376
|
is_anonymous: boolean | undefined;
|
|
378
377
|
password: string | null | undefined;
|
|
378
|
+
primary_email: string | null | undefined;
|
|
379
379
|
country_code: string | null | undefined;
|
|
380
380
|
profile_image_url: string | null | undefined;
|
|
381
381
|
primary_email_verified: 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
|
-
email: string | null;
|
|
399
398
|
id: string;
|
|
399
|
+
email: string | null;
|
|
400
400
|
account_id: string;
|
|
401
401
|
}[] | undefined;
|
|
402
402
|
is_anonymous: boolean | undefined;
|
|
@@ -369,7 +369,7 @@ declare const KnownErrors: {
|
|
|
369
369
|
PermissionNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"PERMISSION_NOT_FOUND">, [permissionId: string]> & {
|
|
370
370
|
errorCode: "PERMISSION_NOT_FOUND";
|
|
371
371
|
};
|
|
372
|
-
PermissionScopeMismatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"WRONG_PERMISSION_SCOPE">, [permissionId: string, expectedScope: "
|
|
372
|
+
PermissionScopeMismatch: KnownErrorConstructor<KnownError & KnownErrorBrand<"WRONG_PERMISSION_SCOPE">, [permissionId: string, expectedScope: "project" | "team", actualScope: "project" | "team" | null]> & {
|
|
373
373
|
errorCode: "WRONG_PERMISSION_SCOPE";
|
|
374
374
|
};
|
|
375
375
|
ContainedPermissionNotFound: KnownErrorConstructor<KnownError & KnownErrorBrand<"CONTAINED_PERMISSION_NOT_FOUND">, [permissionId: string]> & {
|
|
@@ -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">, []> & {
|
|
@@ -172,7 +172,7 @@ declare const customDashboardsSchema: yup$1.MixedSchema<Record<string, {
|
|
|
172
172
|
displayName: string;
|
|
173
173
|
tsxSource: string;
|
|
174
174
|
}>, yup$1.AnyObject, undefined, "">;
|
|
175
|
-
declare const customerTypeSchema: yup$1.StringSchema<"
|
|
175
|
+
declare const customerTypeSchema: yup$1.StringSchema<"user" | "team" | "custom" | undefined, yup$1.AnyObject, undefined, "">;
|
|
176
176
|
/**
|
|
177
177
|
* Schema for a single product price. Each currency field (USD, EUR, etc.) is a decimal string
|
|
178
178
|
* like `"9.99"` or `"1000"` — never cent integers. See `MoneyAmount` for the exact format.
|
|
@@ -216,7 +216,7 @@ declare const productSchema: yup$1.ObjectSchema<{
|
|
|
216
216
|
displayName: string | undefined;
|
|
217
217
|
productLineId: string | undefined;
|
|
218
218
|
isAddOnTo: false | Record<string, true> | undefined;
|
|
219
|
-
customerType: "
|
|
219
|
+
customerType: "user" | "team" | "custom";
|
|
220
220
|
freeTrial: DayInterval | undefined;
|
|
221
221
|
serverOnly: boolean | undefined;
|
|
222
222
|
stackable: boolean | undefined;
|
|
@@ -255,7 +255,7 @@ declare const productSchemaWithMetadata: yup$1.ObjectSchema<{
|
|
|
255
255
|
displayName: string | undefined;
|
|
256
256
|
productLineId: string | undefined;
|
|
257
257
|
isAddOnTo: false | Record<string, true> | undefined;
|
|
258
|
-
customerType: "
|
|
258
|
+
customerType: "user" | "team" | "custom";
|
|
259
259
|
freeTrial: DayInterval | undefined;
|
|
260
260
|
serverOnly: boolean | undefined;
|
|
261
261
|
stackable: boolean | undefined;
|
|
@@ -296,7 +296,7 @@ declare const productSchemaWithMetadata: yup$1.ObjectSchema<{
|
|
|
296
296
|
}, "">;
|
|
297
297
|
declare const inlineProductSchema: yup$1.ObjectSchema<{
|
|
298
298
|
display_name: string;
|
|
299
|
-
customer_type: "
|
|
299
|
+
customer_type: "user" | "team" | "custom";
|
|
300
300
|
free_trial: DayInterval | undefined;
|
|
301
301
|
server_only: boolean;
|
|
302
302
|
stackable: boolean;
|
|
@@ -312,8 +312,8 @@ declare const inlineProductSchema: yup$1.ObjectSchema<{
|
|
|
312
312
|
free_trial?: DayInterval | undefined;
|
|
313
313
|
}>;
|
|
314
314
|
included_items: Record<string, {
|
|
315
|
-
quantity?: number | undefined;
|
|
316
315
|
repeat?: "never" | DayInterval | undefined;
|
|
316
|
+
quantity?: number | undefined;
|
|
317
317
|
expires?: "never" | "when-purchase-expires" | "when-repeated" | undefined;
|
|
318
318
|
}>;
|
|
319
319
|
client_metadata: {} | null | undefined;
|
package/dist/esm/sessions.d.ts
CHANGED
|
@@ -9,24 +9,24 @@ declare class AccessToken {
|
|
|
9
9
|
private constructor();
|
|
10
10
|
get payload(): {
|
|
11
11
|
exp?: number | undefined;
|
|
12
|
-
project_id: string;
|
|
13
|
-
refresh_token_id: string;
|
|
14
|
-
email: string | null;
|
|
15
|
-
restricted_reason: {
|
|
16
|
-
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
17
|
-
} | null;
|
|
18
|
-
branch_id: string;
|
|
19
12
|
sub: string;
|
|
20
13
|
iat: number;
|
|
21
14
|
iss: string;
|
|
22
15
|
aud: string;
|
|
16
|
+
project_id: string;
|
|
17
|
+
branch_id: string;
|
|
18
|
+
refresh_token_id: string;
|
|
23
19
|
role: "authenticated";
|
|
24
20
|
name: string | null;
|
|
21
|
+
email: string | null;
|
|
25
22
|
email_verified: boolean;
|
|
26
23
|
selected_team_id: string | null;
|
|
27
24
|
signed_up_at: number;
|
|
28
25
|
is_anonymous: boolean;
|
|
29
26
|
is_restricted: boolean;
|
|
27
|
+
restricted_reason: {
|
|
28
|
+
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
29
|
+
} | null;
|
|
30
30
|
requires_totp_mfa: boolean;
|
|
31
31
|
};
|
|
32
32
|
get expiresAt(): Date;
|
|
@@ -150,15 +150,15 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
|
|
|
150
150
|
activity: number;
|
|
151
151
|
}[];
|
|
152
152
|
daily_emails_by_status: {
|
|
153
|
-
error: number;
|
|
154
153
|
date: string;
|
|
154
|
+
error: number;
|
|
155
155
|
ok: number;
|
|
156
156
|
in_progress: number;
|
|
157
157
|
}[];
|
|
158
158
|
emails_sent: number;
|
|
159
159
|
recent_emails: {
|
|
160
|
-
status: string;
|
|
161
160
|
id: string;
|
|
161
|
+
status: string;
|
|
162
162
|
subject: string;
|
|
163
163
|
created_at_millis: number;
|
|
164
164
|
}[];
|
|
@@ -403,17 +403,17 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
|
|
|
403
403
|
replays: number;
|
|
404
404
|
}[];
|
|
405
405
|
users: {
|
|
406
|
-
primary_email: string | null;
|
|
407
406
|
display_name: string | null;
|
|
408
407
|
id: string;
|
|
408
|
+
primary_email: string | null;
|
|
409
409
|
profile_image_url: string | null;
|
|
410
410
|
clicks: number;
|
|
411
411
|
replays: number;
|
|
412
412
|
last_event_at_millis: number;
|
|
413
413
|
}[];
|
|
414
414
|
replays: {
|
|
415
|
-
user_id: string | null;
|
|
416
415
|
id: string;
|
|
416
|
+
user_id: string | null;
|
|
417
417
|
clicks: number;
|
|
418
418
|
last_event_at_millis: number;
|
|
419
419
|
route_path: string | null;
|
|
@@ -443,9 +443,9 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
|
|
|
443
443
|
elements: never[];
|
|
444
444
|
}, "">;
|
|
445
445
|
declare const MetricsActiveUsersByCountrySchema: yup.MixedSchema<Record<string, {
|
|
446
|
-
primary_email: string | null;
|
|
447
446
|
display_name: string | null;
|
|
448
447
|
id: string;
|
|
448
|
+
primary_email: string | null;
|
|
449
449
|
profile_image_url: string | null;
|
|
450
450
|
signed_up_at_millis: number;
|
|
451
451
|
last_active_at_millis: number | null;
|
|
@@ -471,25 +471,25 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
|
|
|
471
471
|
}[];
|
|
472
472
|
users_by_country: Record<string, number>;
|
|
473
473
|
active_users_by_country: Record<string, {
|
|
474
|
-
primary_email: string | null;
|
|
475
474
|
display_name: string | null;
|
|
476
475
|
id: string;
|
|
476
|
+
primary_email: string | null;
|
|
477
477
|
profile_image_url: string | null;
|
|
478
478
|
signed_up_at_millis: number;
|
|
479
479
|
last_active_at_millis: number | null;
|
|
480
480
|
}[]>;
|
|
481
481
|
recently_registered: {
|
|
482
|
-
primary_email: string | null;
|
|
483
482
|
display_name: string | null;
|
|
484
483
|
id: string;
|
|
484
|
+
primary_email: string | null;
|
|
485
485
|
profile_image_url: string | null;
|
|
486
486
|
signed_up_at_millis: number;
|
|
487
487
|
last_active_at_millis: number | null;
|
|
488
488
|
}[];
|
|
489
489
|
recently_active: {
|
|
490
|
-
primary_email: string | null;
|
|
491
490
|
display_name: string | null;
|
|
492
491
|
id: string;
|
|
492
|
+
primary_email: string | null;
|
|
493
493
|
profile_image_url: string | null;
|
|
494
494
|
signed_up_at_millis: number;
|
|
495
495
|
last_active_at_millis: number | null;
|
|
@@ -563,15 +563,15 @@ declare const MetricsResponseBodySchema: yup.ObjectSchema<{
|
|
|
563
563
|
emails_by_status: Record<string, number>;
|
|
564
564
|
total_emails: number;
|
|
565
565
|
daily_emails_by_status: {
|
|
566
|
-
error: number;
|
|
567
566
|
date: string;
|
|
567
|
+
error: number;
|
|
568
568
|
ok: number;
|
|
569
569
|
in_progress: number;
|
|
570
570
|
}[];
|
|
571
571
|
emails_sent: number;
|
|
572
572
|
recent_emails: {
|
|
573
|
-
status: string;
|
|
574
573
|
id: string;
|
|
574
|
+
status: string;
|
|
575
575
|
subject: string;
|
|
576
576
|
created_at_millis: number;
|
|
577
577
|
}[];
|
|
@@ -56,9 +56,9 @@ declare const conversationSummarySchema: yup$1.ObjectSchema<{
|
|
|
56
56
|
preview: string | null;
|
|
57
57
|
lastActivityAt: string;
|
|
58
58
|
metadata: {
|
|
59
|
-
tags: string[];
|
|
60
59
|
assignedToUserId: string | null;
|
|
61
60
|
assignedToDisplayName: string | null;
|
|
61
|
+
tags: string[];
|
|
62
62
|
firstResponseDueAt: string | null;
|
|
63
63
|
firstResponseAt: string | null;
|
|
64
64
|
nextResponseDueAt: string | null;
|
|
@@ -173,23 +173,23 @@ declare const conversationListResponseSchema: yup$1.ObjectSchema<{
|
|
|
173
173
|
lastOutboundAt?: string | null | undefined;
|
|
174
174
|
closedAt?: string | null | undefined;
|
|
175
175
|
recordMetadata?: {} | null | undefined;
|
|
176
|
-
status: "open" | "pending" | "closed";
|
|
177
176
|
priority: "low" | "normal" | "high" | "urgent";
|
|
178
|
-
|
|
177
|
+
status: "open" | "pending" | "closed";
|
|
179
178
|
conversationId: string;
|
|
180
179
|
userId: string | null;
|
|
181
180
|
teamId: string | null;
|
|
182
181
|
userDisplayName: string | null;
|
|
183
182
|
userPrimaryEmail: string | null;
|
|
184
183
|
userProfileImageUrl: string | null;
|
|
184
|
+
subject: string;
|
|
185
185
|
source: "email" | "manual" | "chat" | "api";
|
|
186
186
|
lastMessageType: "message" | "internal-note" | "status-change";
|
|
187
187
|
preview: string | null;
|
|
188
188
|
lastActivityAt: string;
|
|
189
189
|
metadata: {
|
|
190
|
-
tags: string[];
|
|
191
190
|
assignedToUserId: string | null;
|
|
192
191
|
assignedToDisplayName: string | null;
|
|
192
|
+
tags: string[];
|
|
193
193
|
firstResponseDueAt: string | null;
|
|
194
194
|
firstResponseAt: string | null;
|
|
195
195
|
nextResponseDueAt: string | null;
|
|
@@ -211,23 +211,23 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
211
211
|
lastOutboundAt?: string | null | undefined;
|
|
212
212
|
closedAt?: string | null | undefined;
|
|
213
213
|
recordMetadata?: {} | null | undefined;
|
|
214
|
-
status: "open" | "pending" | "closed";
|
|
215
214
|
priority: "low" | "normal" | "high" | "urgent";
|
|
216
|
-
|
|
215
|
+
status: "open" | "pending" | "closed";
|
|
217
216
|
conversationId: string;
|
|
218
217
|
userId: string | null;
|
|
219
218
|
teamId: string | null;
|
|
220
219
|
userDisplayName: string | null;
|
|
221
220
|
userPrimaryEmail: string | null;
|
|
222
221
|
userProfileImageUrl: string | null;
|
|
222
|
+
subject: string;
|
|
223
223
|
source: "email" | "manual" | "chat" | "api";
|
|
224
224
|
lastMessageType: "message" | "internal-note" | "status-change";
|
|
225
225
|
preview: string | null;
|
|
226
226
|
lastActivityAt: string;
|
|
227
227
|
metadata: {
|
|
228
|
-
tags: string[];
|
|
229
228
|
assignedToUserId: string | null;
|
|
230
229
|
assignedToDisplayName: string | null;
|
|
230
|
+
tags: string[];
|
|
231
231
|
firstResponseDueAt: string | null;
|
|
232
232
|
firstResponseAt: string | null;
|
|
233
233
|
nextResponseDueAt: string | null;
|
|
@@ -236,13 +236,13 @@ declare const conversationDetailResponseSchema: yup$1.ObjectSchema<{
|
|
|
236
236
|
};
|
|
237
237
|
};
|
|
238
238
|
messages: {
|
|
239
|
-
status: "open" | "pending" | "closed";
|
|
240
239
|
id: string;
|
|
241
240
|
priority: "low" | "normal" | "high" | "urgent";
|
|
242
|
-
|
|
241
|
+
status: "open" | "pending" | "closed";
|
|
243
242
|
conversationId: string;
|
|
244
243
|
userId: string | null;
|
|
245
244
|
teamId: string | null;
|
|
245
|
+
subject: string;
|
|
246
246
|
source: "email" | "manual" | "chat" | "api";
|
|
247
247
|
metadata: {} | null;
|
|
248
248
|
createdAt: string;
|