@hexclave/shared 1.0.27 → 1.0.28
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/config/schema.d.ts +24 -24
- package/dist/esm/config/schema.d.ts +24 -24
- package/dist/esm/hooks/use-async-callback.js +1 -1
- package/dist/esm/hooks/use-async-external-store.js +1 -1
- package/dist/esm/hooks/use-strict-memo.js +1 -1
- package/dist/esm/interface/admin-interface.js +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +13 -13
- package/dist/esm/interface/client-interface.js +1 -1
- package/dist/esm/interface/conversations.d.ts +37 -37
- package/dist/esm/interface/crud/current-user.d.ts +4 -4
- package/dist/esm/interface/crud/email-outbox.d.ts +168 -168
- package/dist/esm/interface/crud/invoices.d.ts +2 -2
- package/dist/esm/interface/crud/products.d.ts +5 -5
- package/dist/esm/interface/crud/project-api-keys.d.ts +5 -5
- package/dist/esm/interface/crud/projects.d.ts +35 -35
- package/dist/esm/interface/crud/team-member-profiles.d.ts +10 -10
- package/dist/esm/interface/crud/transactions.d.ts +2 -2
- package/dist/esm/interface/crud/users.d.ts +8 -8
- package/dist/esm/interface/server-interface.js +1 -1
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/esm/schema-fields.d.ts +1 -1
- package/dist/esm/sessions.d.ts +3 -3
- package/dist/esm/utils/passkey.d.ts +1 -1
- package/dist/esm/utils/promises.js +1 -1
- package/dist/hooks/use-async-callback.js +1 -1
- package/dist/hooks/use-async-external-store.js +1 -1
- package/dist/hooks/use-strict-memo.js +1 -1
- package/dist/interface/admin-interface.js +1 -1
- package/dist/interface/admin-metrics.d.ts +13 -13
- package/dist/interface/client-interface.d.ts +1 -1
- package/dist/interface/client-interface.js +1 -1
- package/dist/interface/conversations.d.ts +37 -37
- package/dist/interface/crud/current-user.d.ts +4 -4
- package/dist/interface/crud/email-outbox.d.ts +168 -168
- package/dist/interface/crud/invoices.d.ts +2 -2
- package/dist/interface/crud/products.d.ts +5 -5
- package/dist/interface/crud/project-api-keys.d.ts +5 -5
- package/dist/interface/crud/projects.d.ts +35 -35
- package/dist/interface/crud/team-member-profiles.d.ts +10 -10
- package/dist/interface/crud/transactions.d.ts +2 -2
- package/dist/interface/crud/users.d.ts +8 -8
- package/dist/interface/server-interface.js +1 -1
- package/dist/interface/webhooks.d.ts +2 -2
- package/dist/schema-fields.d.ts +1 -1
- package/dist/sessions.d.ts +3 -3
- package/dist/utils/passkey.d.ts +1 -1
- package/dist/utils/promises.js +1 -1
- package/package.json +3 -7
- package/src/utils/passkey.tsx +1 -1
- package/dist/index-nCRuFJTF.d.ts +0 -153
- package/dist/index-nCRuFJTF.d.ts.map +0 -1
package/dist/config/schema.d.ts
CHANGED
|
@@ -141,6 +141,9 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
|
|
|
141
141
|
otp: {
|
|
142
142
|
allowSignIn?: boolean | undefined;
|
|
143
143
|
};
|
|
144
|
+
passkey: {
|
|
145
|
+
allowSignIn?: boolean | undefined;
|
|
146
|
+
};
|
|
144
147
|
oauth: {
|
|
145
148
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
146
149
|
providers: Record<string, {
|
|
@@ -149,13 +152,10 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
|
|
|
149
152
|
allowConnectedAccounts?: boolean | undefined;
|
|
150
153
|
}>;
|
|
151
154
|
};
|
|
152
|
-
passkey: {
|
|
153
|
-
allowSignIn?: boolean | undefined;
|
|
154
|
-
};
|
|
155
155
|
signUpRules: Record<string, {
|
|
156
156
|
displayName?: string | undefined;
|
|
157
|
-
priority?: number | undefined;
|
|
158
157
|
enabled?: boolean | undefined;
|
|
158
|
+
priority?: number | undefined;
|
|
159
159
|
condition?: string | undefined;
|
|
160
160
|
action: {
|
|
161
161
|
message?: string | undefined;
|
|
@@ -350,6 +350,9 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
350
350
|
otp: {
|
|
351
351
|
allowSignIn?: boolean | undefined;
|
|
352
352
|
};
|
|
353
|
+
passkey: {
|
|
354
|
+
allowSignIn?: boolean | undefined;
|
|
355
|
+
};
|
|
353
356
|
oauth: {
|
|
354
357
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
355
358
|
providers: Record<string, {
|
|
@@ -358,13 +361,10 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
358
361
|
allowConnectedAccounts?: boolean | undefined;
|
|
359
362
|
}>;
|
|
360
363
|
};
|
|
361
|
-
passkey: {
|
|
362
|
-
allowSignIn?: boolean | undefined;
|
|
363
|
-
};
|
|
364
364
|
signUpRules: Record<string, {
|
|
365
365
|
displayName?: string | undefined;
|
|
366
|
-
priority?: number | undefined;
|
|
367
366
|
enabled?: boolean | undefined;
|
|
367
|
+
priority?: number | undefined;
|
|
368
368
|
condition?: string | undefined;
|
|
369
369
|
action: {
|
|
370
370
|
message?: string | undefined;
|
|
@@ -474,6 +474,9 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
474
474
|
otp: {
|
|
475
475
|
allowSignIn?: boolean | undefined;
|
|
476
476
|
};
|
|
477
|
+
passkey: {
|
|
478
|
+
allowSignIn?: boolean | undefined;
|
|
479
|
+
};
|
|
477
480
|
oauth: {
|
|
478
481
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
479
482
|
providers: Record<string, {
|
|
@@ -482,13 +485,10 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
482
485
|
allowConnectedAccounts?: boolean | undefined;
|
|
483
486
|
}>;
|
|
484
487
|
};
|
|
485
|
-
passkey: {
|
|
486
|
-
allowSignIn?: boolean | undefined;
|
|
487
|
-
};
|
|
488
488
|
signUpRules: Record<string, {
|
|
489
489
|
displayName?: string | undefined;
|
|
490
|
-
priority?: number | undefined;
|
|
491
490
|
enabled?: boolean | undefined;
|
|
491
|
+
priority?: number | undefined;
|
|
492
492
|
condition?: string | undefined;
|
|
493
493
|
action: {
|
|
494
494
|
message?: string | undefined;
|
|
@@ -1098,6 +1098,9 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
|
|
|
1098
1098
|
otp: {
|
|
1099
1099
|
allowSignIn?: boolean | undefined;
|
|
1100
1100
|
};
|
|
1101
|
+
passkey: {
|
|
1102
|
+
allowSignIn?: boolean | undefined;
|
|
1103
|
+
};
|
|
1101
1104
|
oauth: {
|
|
1102
1105
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
1103
1106
|
providers: Record<string, {
|
|
@@ -1106,13 +1109,10 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
|
|
|
1106
1109
|
allowConnectedAccounts?: boolean | undefined;
|
|
1107
1110
|
}>;
|
|
1108
1111
|
};
|
|
1109
|
-
passkey: {
|
|
1110
|
-
allowSignIn?: boolean | undefined;
|
|
1111
|
-
};
|
|
1112
1112
|
signUpRules: Record<string, {
|
|
1113
1113
|
displayName?: string | undefined;
|
|
1114
|
-
priority?: number | undefined;
|
|
1115
1114
|
enabled?: boolean | undefined;
|
|
1115
|
+
priority?: number | undefined;
|
|
1116
1116
|
condition?: string | undefined;
|
|
1117
1117
|
action: {
|
|
1118
1118
|
message?: string | undefined;
|
|
@@ -1222,6 +1222,9 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
|
|
|
1222
1222
|
otp: {
|
|
1223
1223
|
allowSignIn?: boolean | undefined;
|
|
1224
1224
|
};
|
|
1225
|
+
passkey: {
|
|
1226
|
+
allowSignIn?: boolean | undefined;
|
|
1227
|
+
};
|
|
1225
1228
|
oauth: {
|
|
1226
1229
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
1227
1230
|
providers: Record<string, {
|
|
@@ -1230,13 +1233,10 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
|
|
|
1230
1233
|
allowConnectedAccounts?: boolean | undefined;
|
|
1231
1234
|
}>;
|
|
1232
1235
|
};
|
|
1233
|
-
passkey: {
|
|
1234
|
-
allowSignIn?: boolean | undefined;
|
|
1235
|
-
};
|
|
1236
1236
|
signUpRules: Record<string, {
|
|
1237
1237
|
displayName?: string | undefined;
|
|
1238
|
-
priority?: number | undefined;
|
|
1239
1238
|
enabled?: boolean | undefined;
|
|
1239
|
+
priority?: number | undefined;
|
|
1240
1240
|
condition?: string | undefined;
|
|
1241
1241
|
action: {
|
|
1242
1242
|
message?: string | undefined;
|
|
@@ -2073,14 +2073,15 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
2073
2073
|
};
|
|
2074
2074
|
signUpRules: Record<string, {
|
|
2075
2075
|
displayName: string | undefined;
|
|
2076
|
-
priority: number;
|
|
2077
2076
|
enabled: boolean;
|
|
2077
|
+
priority: number;
|
|
2078
2078
|
condition: string | undefined;
|
|
2079
2079
|
action: {
|
|
2080
|
-
type: "allow" | "reject" | "restrict" | "log";
|
|
2081
2080
|
message: string | undefined;
|
|
2081
|
+
type: "allow" | "reject" | "restrict" | "log";
|
|
2082
2082
|
};
|
|
2083
2083
|
}>;
|
|
2084
|
+
allowSignUp: boolean;
|
|
2084
2085
|
password: {
|
|
2085
2086
|
allowSignIn: boolean;
|
|
2086
2087
|
};
|
|
@@ -2090,7 +2091,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
2090
2091
|
passkey: {
|
|
2091
2092
|
allowSignIn: boolean;
|
|
2092
2093
|
};
|
|
2093
|
-
allowSignUp: boolean;
|
|
2094
2094
|
signUpRulesDefaultAction: string;
|
|
2095
2095
|
};
|
|
2096
2096
|
emails: {
|
|
@@ -2146,8 +2146,8 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
2146
2146
|
stackable: boolean | undefined;
|
|
2147
2147
|
includedItems: {
|
|
2148
2148
|
[x: string]: {
|
|
2149
|
-
repeat: "never" | [number, "day" | "week" | "month" | "year"];
|
|
2150
2149
|
quantity: number;
|
|
2150
|
+
repeat: "never" | [number, "day" | "week" | "month" | "year"];
|
|
2151
2151
|
expires: "never" | "when-purchase-expires" | "when-repeated";
|
|
2152
2152
|
};
|
|
2153
2153
|
};
|
|
@@ -141,6 +141,9 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
|
|
|
141
141
|
otp: {
|
|
142
142
|
allowSignIn?: boolean | undefined;
|
|
143
143
|
};
|
|
144
|
+
passkey: {
|
|
145
|
+
allowSignIn?: boolean | undefined;
|
|
146
|
+
};
|
|
144
147
|
oauth: {
|
|
145
148
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
146
149
|
providers: Record<string, {
|
|
@@ -149,13 +152,10 @@ declare const branchConfigSchema: yup$1.Schema<Omit<Omit<{
|
|
|
149
152
|
allowConnectedAccounts?: boolean | undefined;
|
|
150
153
|
}>;
|
|
151
154
|
};
|
|
152
|
-
passkey: {
|
|
153
|
-
allowSignIn?: boolean | undefined;
|
|
154
|
-
};
|
|
155
155
|
signUpRules: Record<string, {
|
|
156
156
|
displayName?: string | undefined;
|
|
157
|
-
priority?: number | undefined;
|
|
158
157
|
enabled?: boolean | undefined;
|
|
158
|
+
priority?: number | undefined;
|
|
159
159
|
condition?: string | undefined;
|
|
160
160
|
action: {
|
|
161
161
|
message?: string | undefined;
|
|
@@ -350,6 +350,9 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
350
350
|
otp: {
|
|
351
351
|
allowSignIn?: boolean | undefined;
|
|
352
352
|
};
|
|
353
|
+
passkey: {
|
|
354
|
+
allowSignIn?: boolean | undefined;
|
|
355
|
+
};
|
|
353
356
|
oauth: {
|
|
354
357
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
355
358
|
providers: Record<string, {
|
|
@@ -358,13 +361,10 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
358
361
|
allowConnectedAccounts?: boolean | undefined;
|
|
359
362
|
}>;
|
|
360
363
|
};
|
|
361
|
-
passkey: {
|
|
362
|
-
allowSignIn?: boolean | undefined;
|
|
363
|
-
};
|
|
364
364
|
signUpRules: Record<string, {
|
|
365
365
|
displayName?: string | undefined;
|
|
366
|
-
priority?: number | undefined;
|
|
367
366
|
enabled?: boolean | undefined;
|
|
367
|
+
priority?: number | undefined;
|
|
368
368
|
condition?: string | undefined;
|
|
369
369
|
action: {
|
|
370
370
|
message?: string | undefined;
|
|
@@ -474,6 +474,9 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
474
474
|
otp: {
|
|
475
475
|
allowSignIn?: boolean | undefined;
|
|
476
476
|
};
|
|
477
|
+
passkey: {
|
|
478
|
+
allowSignIn?: boolean | undefined;
|
|
479
|
+
};
|
|
477
480
|
oauth: {
|
|
478
481
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
479
482
|
providers: Record<string, {
|
|
@@ -482,13 +485,10 @@ declare const environmentConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<Omit<{
|
|
|
482
485
|
allowConnectedAccounts?: boolean | undefined;
|
|
483
486
|
}>;
|
|
484
487
|
};
|
|
485
|
-
passkey: {
|
|
486
|
-
allowSignIn?: boolean | undefined;
|
|
487
|
-
};
|
|
488
488
|
signUpRules: Record<string, {
|
|
489
489
|
displayName?: string | undefined;
|
|
490
|
-
priority?: number | undefined;
|
|
491
490
|
enabled?: boolean | undefined;
|
|
491
|
+
priority?: number | undefined;
|
|
492
492
|
condition?: string | undefined;
|
|
493
493
|
action: {
|
|
494
494
|
message?: string | undefined;
|
|
@@ -1098,6 +1098,9 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
|
|
|
1098
1098
|
otp: {
|
|
1099
1099
|
allowSignIn?: boolean | undefined;
|
|
1100
1100
|
};
|
|
1101
|
+
passkey: {
|
|
1102
|
+
allowSignIn?: boolean | undefined;
|
|
1103
|
+
};
|
|
1101
1104
|
oauth: {
|
|
1102
1105
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
1103
1106
|
providers: Record<string, {
|
|
@@ -1106,13 +1109,10 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
|
|
|
1106
1109
|
allowConnectedAccounts?: boolean | undefined;
|
|
1107
1110
|
}>;
|
|
1108
1111
|
};
|
|
1109
|
-
passkey: {
|
|
1110
|
-
allowSignIn?: boolean | undefined;
|
|
1111
|
-
};
|
|
1112
1112
|
signUpRules: Record<string, {
|
|
1113
1113
|
displayName?: string | undefined;
|
|
1114
|
-
priority?: number | undefined;
|
|
1115
1114
|
enabled?: boolean | undefined;
|
|
1115
|
+
priority?: number | undefined;
|
|
1116
1116
|
condition?: string | undefined;
|
|
1117
1117
|
action: {
|
|
1118
1118
|
message?: string | undefined;
|
|
@@ -1222,6 +1222,9 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
|
|
|
1222
1222
|
otp: {
|
|
1223
1223
|
allowSignIn?: boolean | undefined;
|
|
1224
1224
|
};
|
|
1225
|
+
passkey: {
|
|
1226
|
+
allowSignIn?: boolean | undefined;
|
|
1227
|
+
};
|
|
1225
1228
|
oauth: {
|
|
1226
1229
|
accountMergeStrategy?: "link_method" | "raise_error" | "allow_duplicates" | undefined;
|
|
1227
1230
|
providers: Record<string, {
|
|
@@ -1230,13 +1233,10 @@ declare const organizationConfigSchema: yup$1.Schema<Omit<NonNullable<Omit<NonNu
|
|
|
1230
1233
|
allowConnectedAccounts?: boolean | undefined;
|
|
1231
1234
|
}>;
|
|
1232
1235
|
};
|
|
1233
|
-
passkey: {
|
|
1234
|
-
allowSignIn?: boolean | undefined;
|
|
1235
|
-
};
|
|
1236
1236
|
signUpRules: Record<string, {
|
|
1237
1237
|
displayName?: string | undefined;
|
|
1238
|
-
priority?: number | undefined;
|
|
1239
1238
|
enabled?: boolean | undefined;
|
|
1239
|
+
priority?: number | undefined;
|
|
1240
1240
|
condition?: string | undefined;
|
|
1241
1241
|
action: {
|
|
1242
1242
|
message?: string | undefined;
|
|
@@ -2073,14 +2073,15 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
2073
2073
|
};
|
|
2074
2074
|
signUpRules: Record<string, {
|
|
2075
2075
|
displayName: string | undefined;
|
|
2076
|
-
priority: number;
|
|
2077
2076
|
enabled: boolean;
|
|
2077
|
+
priority: number;
|
|
2078
2078
|
condition: string | undefined;
|
|
2079
2079
|
action: {
|
|
2080
|
-
type: "allow" | "reject" | "restrict" | "log";
|
|
2081
2080
|
message: string | undefined;
|
|
2081
|
+
type: "allow" | "reject" | "restrict" | "log";
|
|
2082
2082
|
};
|
|
2083
2083
|
}>;
|
|
2084
|
+
allowSignUp: boolean;
|
|
2084
2085
|
password: {
|
|
2085
2086
|
allowSignIn: boolean;
|
|
2086
2087
|
};
|
|
@@ -2090,7 +2091,6 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
2090
2091
|
passkey: {
|
|
2091
2092
|
allowSignIn: boolean;
|
|
2092
2093
|
};
|
|
2093
|
-
allowSignUp: boolean;
|
|
2094
2094
|
signUpRulesDefaultAction: string;
|
|
2095
2095
|
};
|
|
2096
2096
|
emails: {
|
|
@@ -2146,8 +2146,8 @@ declare function sanitizeOrganizationConfig(config: OrganizationRenderedConfigBe
|
|
|
2146
2146
|
stackable: boolean | undefined;
|
|
2147
2147
|
includedItems: {
|
|
2148
2148
|
[x: string]: {
|
|
2149
|
-
repeat: "never" | [number, "day" | "week" | "month" | "year"];
|
|
2150
2149
|
quantity: number;
|
|
2150
|
+
repeat: "never" | [number, "day" | "week" | "month" | "year"];
|
|
2151
2151
|
expires: "never" | "when-purchase-expires" | "when-repeated";
|
|
2152
2152
|
};
|
|
2153
2153
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Result } from "../utils/results.js";
|
|
2
|
-
import { urlString } from "../utils/urls.js";
|
|
3
2
|
import { KnownErrors } from "../known-errors.js";
|
|
3
|
+
import { urlString } from "../utils/urls.js";
|
|
4
4
|
import { HexclaveServerInterface } from "./server-interface.js";
|
|
5
5
|
|
|
6
6
|
//#region src/interface/admin-interface.ts
|
|
@@ -150,23 +150,23 @@ declare const MetricsEmailOverviewSchema: yup.ObjectSchema<{
|
|
|
150
150
|
activity: number;
|
|
151
151
|
}[];
|
|
152
152
|
daily_emails_by_status: {
|
|
153
|
-
ok: number;
|
|
154
153
|
error: number;
|
|
154
|
+
ok: number;
|
|
155
155
|
date: string;
|
|
156
156
|
in_progress: number;
|
|
157
157
|
}[];
|
|
158
158
|
emails_sent: number;
|
|
159
159
|
recent_emails: {
|
|
160
|
-
id: string;
|
|
161
160
|
status: string;
|
|
161
|
+
id: string;
|
|
162
162
|
subject: string;
|
|
163
163
|
created_at_millis: number;
|
|
164
164
|
}[];
|
|
165
165
|
deliverability_status: {
|
|
166
166
|
error: number;
|
|
167
|
+
bounced: number;
|
|
167
168
|
in_progress: number;
|
|
168
169
|
delivered: number;
|
|
169
|
-
bounced: number;
|
|
170
170
|
};
|
|
171
171
|
deliverability_rate: number;
|
|
172
172
|
bounce_rate: number;
|
|
@@ -397,23 +397,23 @@ declare const AnalyticsClickmapResponseBodySchema: yup.ObjectSchema<{
|
|
|
397
397
|
}[];
|
|
398
398
|
sampling: number;
|
|
399
399
|
routes: {
|
|
400
|
-
users: number;
|
|
401
400
|
path: string;
|
|
401
|
+
users: number;
|
|
402
402
|
clicks: number;
|
|
403
403
|
replays: number;
|
|
404
404
|
}[];
|
|
405
405
|
users: {
|
|
406
|
-
id: string;
|
|
407
406
|
primary_email: string | null;
|
|
408
407
|
display_name: string | null;
|
|
408
|
+
id: string;
|
|
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
|
-
id: string;
|
|
416
415
|
user_id: string | null;
|
|
416
|
+
id: string;
|
|
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
|
-
id: string;
|
|
447
446
|
primary_email: string | null;
|
|
448
447
|
display_name: string | null;
|
|
448
|
+
id: string;
|
|
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
|
-
id: string;
|
|
475
474
|
primary_email: string | null;
|
|
476
475
|
display_name: string | null;
|
|
476
|
+
id: string;
|
|
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
|
-
id: string;
|
|
483
482
|
primary_email: string | null;
|
|
484
483
|
display_name: string | null;
|
|
484
|
+
id: string;
|
|
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
|
-
id: string;
|
|
491
490
|
primary_email: string | null;
|
|
492
491
|
display_name: string | null;
|
|
492
|
+
id: string;
|
|
493
493
|
profile_image_url: string | null;
|
|
494
494
|
signed_up_at_millis: number;
|
|
495
495
|
last_active_at_millis: number | null;
|
|
@@ -563,23 +563,23 @@ 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
|
-
ok: number;
|
|
567
566
|
error: number;
|
|
567
|
+
ok: number;
|
|
568
568
|
date: string;
|
|
569
569
|
in_progress: number;
|
|
570
570
|
}[];
|
|
571
571
|
emails_sent: number;
|
|
572
572
|
recent_emails: {
|
|
573
|
-
id: string;
|
|
574
573
|
status: string;
|
|
574
|
+
id: string;
|
|
575
575
|
subject: string;
|
|
576
576
|
created_at_millis: number;
|
|
577
577
|
}[];
|
|
578
578
|
deliverability_status: {
|
|
579
579
|
error: number;
|
|
580
|
+
bounced: number;
|
|
580
581
|
in_progress: number;
|
|
581
582
|
delivered: number;
|
|
582
|
-
bounced: number;
|
|
583
583
|
};
|
|
584
584
|
deliverability_rate: number;
|
|
585
585
|
bounce_rate: number;
|
|
@@ -3,8 +3,8 @@ import { filterUndefined, filterUndefinedOrNull } from "../utils/objects.js";
|
|
|
3
3
|
import { deindent } from "../utils/strings.js";
|
|
4
4
|
import { publishableClientKeyNotNecessarySentinel } from "../utils/oauth.js";
|
|
5
5
|
import { Result } from "../utils/results.js";
|
|
6
|
-
import { urlString } from "../utils/urls.js";
|
|
7
6
|
import { KnownError, KnownErrors } from "../known-errors.js";
|
|
7
|
+
import { urlString } from "../utils/urls.js";
|
|
8
8
|
import { AccessToken, InternalSession } from "../sessions.js";
|
|
9
9
|
import { generateSecureRandomString } from "../utils/crypto.js";
|
|
10
10
|
import { globalVar } from "../utils/globals.js";
|
|
@@ -49,16 +49,16 @@ declare const conversationSummarySchema: yup$1.ObjectSchema<{
|
|
|
49
49
|
userPrimaryEmail: string | null;
|
|
50
50
|
userProfileImageUrl: string | null;
|
|
51
51
|
subject: string;
|
|
52
|
-
status: "
|
|
52
|
+
status: "pending" | "open" | "closed";
|
|
53
53
|
priority: "low" | "normal" | "high" | "urgent";
|
|
54
54
|
source: "email" | "manual" | "chat" | "api";
|
|
55
55
|
lastMessageType: "message" | "internal-note" | "status-change";
|
|
56
56
|
preview: string | null;
|
|
57
57
|
lastActivityAt: string;
|
|
58
58
|
metadata: {
|
|
59
|
+
tags: string[];
|
|
59
60
|
assignedToUserId: string | null;
|
|
60
61
|
assignedToDisplayName: string | null;
|
|
61
|
-
tags: string[];
|
|
62
62
|
firstResponseDueAt: string | null;
|
|
63
63
|
firstResponseAt: string | null;
|
|
64
64
|
nextResponseDueAt: string | null;
|
|
@@ -129,7 +129,7 @@ declare const conversationMessageSchema: yup$1.ObjectSchema<{
|
|
|
129
129
|
userId: string | null;
|
|
130
130
|
teamId: string | null;
|
|
131
131
|
subject: string;
|
|
132
|
-
status: "
|
|
132
|
+
status: "pending" | "open" | "closed";
|
|
133
133
|
priority: "low" | "normal" | "high" | "urgent";
|
|
134
134
|
source: "email" | "manual" | "chat" | "api";
|
|
135
135
|
messageType: "message" | "internal-note" | "status-change";
|
|
@@ -138,9 +138,9 @@ declare const conversationMessageSchema: yup$1.ObjectSchema<{
|
|
|
138
138
|
metadata: {} | null;
|
|
139
139
|
createdAt: string;
|
|
140
140
|
sender: {
|
|
141
|
-
id: string | null;
|
|
142
141
|
type: "user" | "agent" | "system";
|
|
143
142
|
displayName: string | null;
|
|
143
|
+
id: string | null;
|
|
144
144
|
primaryEmail: string | null;
|
|
145
145
|
};
|
|
146
146
|
}, yup$1.AnyObject, {
|
|
@@ -173,29 +173,29 @@ 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: "
|
|
177
|
-
subject: string;
|
|
178
|
-
conversationId: string;
|
|
179
|
-
userId: string | null;
|
|
180
|
-
teamId: string | null;
|
|
181
|
-
userDisplayName: string | null;
|
|
182
|
-
userPrimaryEmail: string | null;
|
|
183
|
-
userProfileImageUrl: string | null;
|
|
184
|
-
priority: "low" | "normal" | "high" | "urgent";
|
|
176
|
+
status: "pending" | "open" | "closed";
|
|
185
177
|
source: "email" | "manual" | "chat" | "api";
|
|
186
|
-
lastMessageType: "message" | "internal-note" | "status-change";
|
|
187
|
-
preview: string | null;
|
|
188
|
-
lastActivityAt: string;
|
|
189
178
|
metadata: {
|
|
179
|
+
tags: string[];
|
|
190
180
|
assignedToUserId: string | null;
|
|
191
181
|
assignedToDisplayName: string | null;
|
|
192
|
-
tags: string[];
|
|
193
182
|
firstResponseDueAt: string | null;
|
|
194
183
|
firstResponseAt: string | null;
|
|
195
184
|
nextResponseDueAt: string | null;
|
|
196
185
|
lastCustomerReplyAt: string | null;
|
|
197
186
|
lastAgentReplyAt: string | null;
|
|
198
187
|
};
|
|
188
|
+
priority: "low" | "normal" | "high" | "urgent";
|
|
189
|
+
subject: string;
|
|
190
|
+
conversationId: string;
|
|
191
|
+
userId: string | null;
|
|
192
|
+
teamId: string | null;
|
|
193
|
+
userDisplayName: string | null;
|
|
194
|
+
userPrimaryEmail: string | null;
|
|
195
|
+
userProfileImageUrl: string | null;
|
|
196
|
+
lastMessageType: "message" | "internal-note" | "status-change";
|
|
197
|
+
preview: string | null;
|
|
198
|
+
lastActivityAt: string;
|
|
199
199
|
}[];
|
|
200
200
|
hasMore: boolean;
|
|
201
201
|
}, yup$1.AnyObject, {
|
|
@@ -211,54 +211,54 @@ 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: "
|
|
215
|
-
subject: string;
|
|
216
|
-
conversationId: string;
|
|
217
|
-
userId: string | null;
|
|
218
|
-
teamId: string | null;
|
|
219
|
-
userDisplayName: string | null;
|
|
220
|
-
userPrimaryEmail: string | null;
|
|
221
|
-
userProfileImageUrl: string | null;
|
|
222
|
-
priority: "low" | "normal" | "high" | "urgent";
|
|
214
|
+
status: "pending" | "open" | "closed";
|
|
223
215
|
source: "email" | "manual" | "chat" | "api";
|
|
224
|
-
lastMessageType: "message" | "internal-note" | "status-change";
|
|
225
|
-
preview: string | null;
|
|
226
|
-
lastActivityAt: string;
|
|
227
216
|
metadata: {
|
|
217
|
+
tags: string[];
|
|
228
218
|
assignedToUserId: string | null;
|
|
229
219
|
assignedToDisplayName: string | null;
|
|
230
|
-
tags: string[];
|
|
231
220
|
firstResponseDueAt: string | null;
|
|
232
221
|
firstResponseAt: string | null;
|
|
233
222
|
nextResponseDueAt: string | null;
|
|
234
223
|
lastCustomerReplyAt: string | null;
|
|
235
224
|
lastAgentReplyAt: string | null;
|
|
236
225
|
};
|
|
226
|
+
priority: "low" | "normal" | "high" | "urgent";
|
|
227
|
+
subject: string;
|
|
228
|
+
conversationId: string;
|
|
229
|
+
userId: string | null;
|
|
230
|
+
teamId: string | null;
|
|
231
|
+
userDisplayName: string | null;
|
|
232
|
+
userPrimaryEmail: string | null;
|
|
233
|
+
userProfileImageUrl: string | null;
|
|
234
|
+
lastMessageType: "message" | "internal-note" | "status-change";
|
|
235
|
+
preview: string | null;
|
|
236
|
+
lastActivityAt: string;
|
|
237
237
|
};
|
|
238
238
|
messages: {
|
|
239
|
+
status: "pending" | "open" | "closed";
|
|
240
|
+
body: string | null;
|
|
241
|
+
source: "email" | "manual" | "chat" | "api";
|
|
242
|
+
metadata: {} | null;
|
|
239
243
|
id: string;
|
|
240
|
-
|
|
244
|
+
priority: "low" | "normal" | "high" | "urgent";
|
|
241
245
|
subject: string;
|
|
242
246
|
conversationId: string;
|
|
243
247
|
userId: string | null;
|
|
244
248
|
teamId: string | null;
|
|
245
|
-
priority: "low" | "normal" | "high" | "urgent";
|
|
246
|
-
source: "email" | "manual" | "chat" | "api";
|
|
247
|
-
metadata: {} | null;
|
|
248
249
|
createdAt: string;
|
|
249
250
|
messageType: "message" | "internal-note" | "status-change";
|
|
250
|
-
body: string | null;
|
|
251
251
|
attachments: {}[];
|
|
252
252
|
sender: {
|
|
253
|
-
id: string | null;
|
|
254
253
|
type: "user" | "agent" | "system";
|
|
255
254
|
displayName: string | null;
|
|
255
|
+
id: string | null;
|
|
256
256
|
primaryEmail: string | null;
|
|
257
257
|
};
|
|
258
258
|
}[];
|
|
259
259
|
entryPoints: {
|
|
260
|
-
id: string;
|
|
261
260
|
metadata: {} | null;
|
|
261
|
+
id: string;
|
|
262
262
|
createdAt: string;
|
|
263
263
|
updatedAt: string;
|
|
264
264
|
channelType: string;
|
|
@@ -5,7 +5,6 @@ import { CrudTypeOf } from "../../crud";
|
|
|
5
5
|
//#region src/interface/crud/current-user.d.ts
|
|
6
6
|
declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
|
|
7
7
|
clientReadSchema: yup$1.ObjectSchema<{
|
|
8
|
-
id: string;
|
|
9
8
|
restricted_reason: {
|
|
10
9
|
type: "anonymous" | "email_not_verified" | "restricted_by_administrator";
|
|
11
10
|
} | null;
|
|
@@ -13,13 +12,14 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
13
12
|
display_name: string | null;
|
|
14
13
|
client_metadata: {} | null;
|
|
15
14
|
client_read_only_metadata: {} | null;
|
|
15
|
+
id: string;
|
|
16
16
|
selected_team_id: string | null;
|
|
17
17
|
is_anonymous: boolean;
|
|
18
18
|
is_restricted: boolean;
|
|
19
19
|
requires_totp_mfa: boolean;
|
|
20
20
|
profile_image_url: string | null;
|
|
21
|
-
signed_up_at_millis: number;
|
|
22
21
|
primary_email_verified: boolean;
|
|
22
|
+
signed_up_at_millis: number;
|
|
23
23
|
has_password: boolean;
|
|
24
24
|
otp_auth_enabled: boolean;
|
|
25
25
|
passkey_auth_enabled: boolean;
|
|
@@ -35,8 +35,8 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
35
35
|
selected_team: {
|
|
36
36
|
client_metadata?: {} | null | undefined;
|
|
37
37
|
client_read_only_metadata?: {} | null | undefined;
|
|
38
|
-
id: string;
|
|
39
38
|
display_name: string;
|
|
39
|
+
id: string;
|
|
40
40
|
profile_image_url: string | null;
|
|
41
41
|
} | null;
|
|
42
42
|
}, yup$1.AnyObject, {
|
|
@@ -91,8 +91,8 @@ declare const currentUserCrud: ______crud0.CrudSchemaFromOptions<{
|
|
|
91
91
|
client_metadata?: {} | null | undefined;
|
|
92
92
|
client_read_only_metadata?: {} | null | undefined;
|
|
93
93
|
server_metadata?: {} | null | undefined;
|
|
94
|
-
id: string;
|
|
95
94
|
display_name: string;
|
|
95
|
+
id: string;
|
|
96
96
|
created_at_millis: number;
|
|
97
97
|
profile_image_url: string | null;
|
|
98
98
|
} | null;
|