@hexclave/shared 1.0.6 → 1.0.8
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/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 +10 -7
- package/dist/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.d.ts.map +1 -1
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js +10 -7
- package/dist/esm/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.js.map +1 -1
- package/dist/esm/interface/admin-metrics.d.ts +2 -2
- package/dist/esm/interface/client-interface.js +1 -1
- package/dist/esm/interface/client-interface.js.map +1 -1
- package/dist/esm/interface/conversations.d.ts +27 -27
- package/dist/esm/interface/crud/current-user.d.ts +2 -2
- package/dist/esm/interface/crud/email-outbox.d.ts +156 -156
- package/dist/esm/interface/crud/team-member-profiles.d.ts +10 -10
- package/dist/esm/interface/crud/users.d.ts +8 -8
- package/dist/esm/interface/webhooks.d.ts +2 -2
- package/dist/interface/admin-metrics.d.ts +12 -12
- package/dist/interface/client-interface.js +1 -1
- package/dist/interface/client-interface.js.map +1 -1
- package/dist/interface/conversations.d.ts +27 -27
- package/dist/interface/crud/current-user.d.ts +2 -2
- package/dist/interface/crud/email-outbox.d.ts +156 -156
- package/dist/interface/crud/team-member-profiles.d.ts +10 -10
- package/dist/interface/crud/users.d.ts +8 -8
- package/dist/interface/webhooks.d.ts +2 -2
- package/package.json +1 -1
- package/src/ai/unified-prompts/skill-site-prompt-parts/ai-setup-prompt.ts +10 -7
- package/src/interface/client-interface.ts +2 -2
|
@@ -33,27 +33,27 @@ declare const teamMemberProfilesCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
33
33
|
client_read_only_metadata: {} | null;
|
|
34
34
|
server_metadata: {} | null;
|
|
35
35
|
id: string;
|
|
36
|
+
country_code: string | null;
|
|
37
|
+
profile_image_url: string | null;
|
|
38
|
+
signed_up_at_millis: number;
|
|
39
|
+
last_active_at_millis: number;
|
|
36
40
|
primary_email_verified: boolean;
|
|
37
41
|
primary_email_auth_enabled: boolean;
|
|
38
|
-
profile_image_url: string | null;
|
|
39
42
|
selected_team: {
|
|
40
43
|
client_metadata?: {} | null | undefined;
|
|
41
44
|
client_read_only_metadata?: {} | null | undefined;
|
|
42
45
|
server_metadata?: {} | null | undefined;
|
|
43
46
|
display_name: string;
|
|
44
47
|
id: string;
|
|
45
|
-
profile_image_url: string | null;
|
|
46
48
|
created_at_millis: number;
|
|
49
|
+
profile_image_url: string | null;
|
|
47
50
|
} | null;
|
|
48
|
-
signed_up_at_millis: number;
|
|
49
51
|
has_password: boolean;
|
|
50
52
|
otp_auth_enabled: boolean;
|
|
51
53
|
passkey_auth_enabled: boolean;
|
|
52
|
-
last_active_at_millis: number;
|
|
53
54
|
restricted_by_admin: boolean;
|
|
54
55
|
restricted_by_admin_reason: string | null;
|
|
55
56
|
restricted_by_admin_private_details: string | null;
|
|
56
|
-
country_code: string | null;
|
|
57
57
|
risk_scores: {
|
|
58
58
|
sign_up: {
|
|
59
59
|
bot: number;
|
|
@@ -156,27 +156,27 @@ declare const teamMemberProfilesCrud: CrudSchemaFromOptions<{
|
|
|
156
156
|
client_read_only_metadata: {} | null;
|
|
157
157
|
server_metadata: {} | null;
|
|
158
158
|
id: string;
|
|
159
|
+
country_code: string | null;
|
|
160
|
+
profile_image_url: string | null;
|
|
161
|
+
signed_up_at_millis: number;
|
|
162
|
+
last_active_at_millis: number;
|
|
159
163
|
primary_email_verified: boolean;
|
|
160
164
|
primary_email_auth_enabled: boolean;
|
|
161
|
-
profile_image_url: string | null;
|
|
162
165
|
selected_team: {
|
|
163
166
|
client_metadata?: {} | null | undefined;
|
|
164
167
|
client_read_only_metadata?: {} | null | undefined;
|
|
165
168
|
server_metadata?: {} | null | undefined;
|
|
166
169
|
display_name: string;
|
|
167
170
|
id: string;
|
|
168
|
-
profile_image_url: string | null;
|
|
169
171
|
created_at_millis: number;
|
|
172
|
+
profile_image_url: string | null;
|
|
170
173
|
} | null;
|
|
171
|
-
signed_up_at_millis: number;
|
|
172
174
|
has_password: boolean;
|
|
173
175
|
otp_auth_enabled: boolean;
|
|
174
176
|
passkey_auth_enabled: boolean;
|
|
175
|
-
last_active_at_millis: number;
|
|
176
177
|
restricted_by_admin: boolean;
|
|
177
178
|
restricted_by_admin_reason: string | null;
|
|
178
179
|
restricted_by_admin_private_details: string | null;
|
|
179
|
-
country_code: string | null;
|
|
180
180
|
risk_scores: {
|
|
181
181
|
sign_up: {
|
|
182
182
|
bot: number;
|
|
@@ -82,8 +82,8 @@ declare const usersCrudServerReadSchema: yup$1.ObjectSchema<{
|
|
|
82
82
|
server_metadata?: {} | null | undefined;
|
|
83
83
|
display_name: string;
|
|
84
84
|
id: string;
|
|
85
|
-
profile_image_url: string | null;
|
|
86
85
|
created_at_millis: number;
|
|
86
|
+
profile_image_url: string | null;
|
|
87
87
|
} | null;
|
|
88
88
|
selected_team_id: string | null;
|
|
89
89
|
profile_image_url: string | null;
|
|
@@ -169,15 +169,15 @@ declare const usersCrudServerCreateSchema: yup$1.ObjectSchema<{
|
|
|
169
169
|
client_read_only_metadata: {} | null | undefined;
|
|
170
170
|
server_metadata: {} | null | undefined;
|
|
171
171
|
password: string | null | undefined;
|
|
172
|
+
country_code: string | null | undefined;
|
|
173
|
+
profile_image_url: string | null | undefined;
|
|
172
174
|
primary_email_verified: boolean | undefined;
|
|
173
175
|
primary_email_auth_enabled: boolean | undefined;
|
|
174
|
-
profile_image_url: string | null | undefined;
|
|
175
176
|
otp_auth_enabled: boolean | undefined;
|
|
176
177
|
passkey_auth_enabled: boolean | undefined;
|
|
177
178
|
restricted_by_admin: boolean | undefined;
|
|
178
179
|
restricted_by_admin_reason: string | null | undefined;
|
|
179
180
|
restricted_by_admin_private_details: string | null | undefined;
|
|
180
|
-
country_code: string | null | undefined;
|
|
181
181
|
risk_scores: {
|
|
182
182
|
sign_up: {
|
|
183
183
|
bot: number;
|
|
@@ -235,8 +235,8 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
235
235
|
server_metadata?: {} | null | undefined;
|
|
236
236
|
display_name: string;
|
|
237
237
|
id: string;
|
|
238
|
-
profile_image_url: string | null;
|
|
239
238
|
created_at_millis: number;
|
|
239
|
+
profile_image_url: string | null;
|
|
240
240
|
} | null;
|
|
241
241
|
selected_team_id: string | null;
|
|
242
242
|
profile_image_url: string | null;
|
|
@@ -375,15 +375,15 @@ declare const usersCrud: CrudSchemaFromOptions<{
|
|
|
375
375
|
client_read_only_metadata: {} | null | undefined;
|
|
376
376
|
server_metadata: {} | null | undefined;
|
|
377
377
|
password: string | null | undefined;
|
|
378
|
+
country_code: string | null | undefined;
|
|
379
|
+
profile_image_url: string | null | undefined;
|
|
378
380
|
primary_email_verified: boolean | undefined;
|
|
379
381
|
primary_email_auth_enabled: boolean | undefined;
|
|
380
|
-
profile_image_url: string | null | undefined;
|
|
381
382
|
otp_auth_enabled: boolean | undefined;
|
|
382
383
|
passkey_auth_enabled: boolean | undefined;
|
|
383
384
|
restricted_by_admin: boolean | undefined;
|
|
384
385
|
restricted_by_admin_reason: string | null | undefined;
|
|
385
386
|
restricted_by_admin_private_details: string | null | undefined;
|
|
386
|
-
country_code: string | null | undefined;
|
|
387
387
|
risk_scores: {
|
|
388
388
|
sign_up: {
|
|
389
389
|
bot: number;
|
|
@@ -469,8 +469,8 @@ declare const userCreatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
469
469
|
server_metadata?: {} | null | undefined;
|
|
470
470
|
display_name: string;
|
|
471
471
|
id: string;
|
|
472
|
-
profile_image_url: string | null;
|
|
473
472
|
created_at_millis: number;
|
|
473
|
+
profile_image_url: string | null;
|
|
474
474
|
} | null;
|
|
475
475
|
selected_team_id: string | null;
|
|
476
476
|
profile_image_url: string | null;
|
|
@@ -560,8 +560,8 @@ declare const userUpdatedWebhookEvent: WebhookEvent<yup$1.ObjectSchema<{
|
|
|
560
560
|
server_metadata?: {} | null | undefined;
|
|
561
561
|
display_name: string;
|
|
562
562
|
id: string;
|
|
563
|
-
profile_image_url: string | null;
|
|
564
563
|
created_at_millis: number;
|
|
564
|
+
profile_image_url: string | null;
|
|
565
565
|
} | null;
|
|
566
566
|
selected_team_id: string | null;
|
|
567
567
|
profile_image_url: string | null;
|
|
@@ -22,8 +22,8 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
|
|
|
22
22
|
server_metadata?: {} | null | undefined;
|
|
23
23
|
display_name: string;
|
|
24
24
|
id: string;
|
|
25
|
-
profile_image_url: string | null;
|
|
26
25
|
created_at_millis: number;
|
|
26
|
+
profile_image_url: string | null;
|
|
27
27
|
} | null;
|
|
28
28
|
selected_team_id: string | null;
|
|
29
29
|
profile_image_url: string | null;
|
|
@@ -112,8 +112,8 @@ declare const webhookEvents: readonly [WebhookEvent<yup$1.ObjectSchema<{
|
|
|
112
112
|
server_metadata?: {} | null | undefined;
|
|
113
113
|
display_name: string;
|
|
114
114
|
id: string;
|
|
115
|
-
profile_image_url: string | null;
|
|
116
115
|
created_at_millis: number;
|
|
116
|
+
profile_image_url: string | null;
|
|
117
117
|
} | null;
|
|
118
118
|
selected_team_id: string | null;
|
|
119
119
|
profile_image_url: string | null;
|
package/package.json
CHANGED
|
@@ -817,20 +817,23 @@ export function getSdkSetupPrompt(mainType: "ai-prompt" | "nextjs" | "react" | "
|
|
|
817
817
|
` : ""}
|
|
818
818
|
|
|
819
819
|
${isMaybeNextjs ? deindent`
|
|
820
|
-
${!isDefinitelyNextjs ? "For Next.js specifically: " : ""}You can do this in the \`layout.tsx\` file in the \`app\` directory:
|
|
820
|
+
${!isDefinitelyNextjs ? "For Next.js specifically: " : ""}You can do this in the \`layout.tsx\` file in the \`app\` directory. The root layout must render the \`<html>\` and \`<body>\` tags, and \`HexclaveProvider\`/\`HexclaveTheme\` must go inside:
|
|
821
821
|
|
|
822
822
|
\`\`\`tsx src/app/layout.tsx
|
|
823
|
-
import { Suspense } from "react";
|
|
824
823
|
import { HexclaveProvider, HexclaveTheme } from "${packageName}";
|
|
825
824
|
import { hexclaveServerApp } from "@/hexclave/server";
|
|
826
825
|
|
|
827
826
|
export default function RootLayout({ children }: { children: React.ReactNode }) {
|
|
828
827
|
return (
|
|
829
|
-
<
|
|
830
|
-
<
|
|
831
|
-
{
|
|
832
|
-
|
|
833
|
-
|
|
828
|
+
<html lang="en" suppressHydrationWarning>
|
|
829
|
+
<body>
|
|
830
|
+
<HexclaveProvider app={hexclaveServerApp}>
|
|
831
|
+
<HexclaveTheme>
|
|
832
|
+
{children}
|
|
833
|
+
</HexclaveTheme>
|
|
834
|
+
</HexclaveProvider>
|
|
835
|
+
</body>
|
|
836
|
+
</html>
|
|
834
837
|
);
|
|
835
838
|
}
|
|
836
839
|
\`\`\`
|
|
@@ -786,14 +786,14 @@ export class HexclaveClientInterface {
|
|
|
786
786
|
if (res.ok) {
|
|
787
787
|
return Result.ok(res);
|
|
788
788
|
} else if (res.status === 429) {
|
|
789
|
-
// Rate limited, so retry if we can
|
|
790
789
|
const retryAfter = res.headers.get("Retry-After");
|
|
791
790
|
if (retryAfter !== null) {
|
|
792
791
|
console.log(`Rate limited while sending request to ${url}. Will retry after ${retryAfter} seconds...`);
|
|
793
792
|
await wait(Number(retryAfter) * 1000);
|
|
794
793
|
return Result.error(new Error(`Rate limited, retrying after ${retryAfter} seconds`));
|
|
795
794
|
}
|
|
796
|
-
|
|
795
|
+
|
|
796
|
+
console.log(`Rate limited while sending request to ${url}, no retry-after header received. Retrying with default backoff...`);
|
|
797
797
|
return Result.error(new Error("Rate limited, no retry-after header received"));
|
|
798
798
|
} else {
|
|
799
799
|
const error = await res.text();
|