@meistrari/chat-nuxt 4.11.0 → 4.12.0-rc.1
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/module.json
CHANGED
|
@@ -51,6 +51,10 @@ export declare const botTargetSchema: z.ZodObject<{
|
|
|
51
51
|
workspaceId: z.ZodUUID;
|
|
52
52
|
agentId: z.ZodUUID;
|
|
53
53
|
}, z.core.$strip>;
|
|
54
|
+
export declare const botPhotoSchema: z.ZodObject<{
|
|
55
|
+
url: z.ZodURL;
|
|
56
|
+
sha256: z.ZodString;
|
|
57
|
+
}, z.core.$strict>;
|
|
54
58
|
export declare const botRequestSchema: z.ZodObject<{
|
|
55
59
|
actorId: z.ZodString;
|
|
56
60
|
workspaceId: z.ZodUUID;
|
|
@@ -60,6 +64,10 @@ export declare const botRequestSchema: z.ZodObject<{
|
|
|
60
64
|
agentName: z.ZodString;
|
|
61
65
|
name: z.ZodString;
|
|
62
66
|
requestKey: z.ZodUUID;
|
|
67
|
+
photo: z.ZodOptional<z.ZodObject<{
|
|
68
|
+
url: z.ZodURL;
|
|
69
|
+
sha256: z.ZodString;
|
|
70
|
+
}, z.core.$strict>>;
|
|
63
71
|
}, z.core.$strip>;
|
|
64
72
|
export declare const botChangesSchema: z.ZodObject<{
|
|
65
73
|
actorId: z.ZodString;
|
|
@@ -68,6 +76,10 @@ export declare const botChangesSchema: z.ZodObject<{
|
|
|
68
76
|
name: z.ZodOptional<z.ZodString>;
|
|
69
77
|
addAdminActorIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
70
78
|
removeAdminSlackUserIds: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
79
|
+
photo: z.ZodOptional<z.ZodObject<{
|
|
80
|
+
url: z.ZodURL;
|
|
81
|
+
sha256: z.ZodString;
|
|
82
|
+
}, z.core.$strict>>;
|
|
71
83
|
}, z.core.$strip>;
|
|
72
84
|
export declare const botIdSchema: z.ZodUUID;
|
|
73
85
|
export type BotTarget = z.infer<typeof botTargetSchema>;
|
|
@@ -104,6 +116,13 @@ export declare const botSchema: z.ZodObject<{
|
|
|
104
116
|
}>;
|
|
105
117
|
error: z.ZodNullable<z.ZodString>;
|
|
106
118
|
updating: z.ZodBoolean;
|
|
119
|
+
photoUrl: z.ZodNullable<z.ZodString>;
|
|
120
|
+
pendingPhotoUrl: z.ZodNullable<z.ZodString>;
|
|
121
|
+
photoError: z.ZodNullable<z.ZodEnum<{
|
|
122
|
+
photo_rejected: "photo_rejected";
|
|
123
|
+
photo_unavailable: "photo_unavailable";
|
|
124
|
+
photo_unknown: "photo_unknown";
|
|
125
|
+
}>>;
|
|
107
126
|
openUrl: z.ZodNullable<z.ZodURL>;
|
|
108
127
|
creatorActorId: z.ZodString;
|
|
109
128
|
admins: z.ZodArray<z.ZodObject<{
|
|
@@ -21,9 +21,16 @@ export const appNameSchema = z.string().max(200).transform(value => value.normal
|
|
|
21
21
|
export const botStatuses = ['creating', 'configuring', 'awaiting_distribution', 'awaiting_installation', 'active', 'uninstalled', 'failed', 'unknown', 'deactivated', 'deleting', 'delete_failed', 'deleted'];
|
|
22
22
|
export const botStatusSchema = z.enum(botStatuses);
|
|
23
23
|
export const botTargetSchema = z.object({ actorId: actorIdSchema, workspaceId: z.uuid(), agentId: z.uuid() });
|
|
24
|
+
// A photo Tela validated and published, which Slack fetches as the app icon. Its SHA-256 identifies the image: Tela publishes
|
|
25
|
+
// every upload at a new URL, so a retry of the same request may carry another URL for the same bytes.
|
|
26
|
+
// Checked without the URL global, which the embeddable chat's declaration build does not type.
|
|
27
|
+
export const botPhotoSchema = z.strictObject({
|
|
28
|
+
url: z.url({ protocol: /^https$/ }).max(2048).refine(value => !/^https:\/\/[^/?#]*@/i.test(value)),
|
|
29
|
+
sha256: z.string().regex(/^[0-9a-f]{64}$/),
|
|
30
|
+
});
|
|
24
31
|
// Workspace and agent names are Tela's current titles, shown in the Slack app; the name is validated by the bot rules.
|
|
25
|
-
export const botRequestSchema = botTargetSchema.extend({ teamId: z.string().regex(/^T[A-Z0-9]+$/).max(100), workspaceName: z.string().min(1).max(200), agentName: z.string().min(1).max(200), name: z.string().max(200), requestKey: z.uuid() });
|
|
26
|
-
export const botChangesSchema = botTargetSchema.extend({ name: z.string().max(200).optional(), addAdminActorIds: z.array(actorIdSchema).max(20).optional(), removeAdminSlackUserIds: z.array(z.string().regex(/^[UW][A-Z0-9]{1,99}$/)).max(20).optional() });
|
|
32
|
+
export const botRequestSchema = botTargetSchema.extend({ teamId: z.string().regex(/^T[A-Z0-9]+$/).max(100), workspaceName: z.string().min(1).max(200), agentName: z.string().min(1).max(200), name: z.string().max(200), requestKey: z.uuid(), photo: botPhotoSchema.optional() });
|
|
33
|
+
export const botChangesSchema = botTargetSchema.extend({ name: z.string().max(200).optional(), addAdminActorIds: z.array(actorIdSchema).max(20).optional(), removeAdminSlackUserIds: z.array(z.string().regex(/^[UW][A-Z0-9]{1,99}$/)).max(20).optional(), photo: botPhotoSchema.optional() });
|
|
27
34
|
export const botIdSchema = z.uuid();
|
|
28
35
|
export const botAdministratorSchema = z.object({
|
|
29
36
|
slackUserId: z.string(),
|
|
@@ -35,8 +42,11 @@ export const botSchema = z.object({
|
|
|
35
42
|
teamId: z.string().describe('Slack workspace the bot is installed in.'),
|
|
36
43
|
teamName: z.string().nullable().describe('Workspace name learned from Sign in with Slack.'),
|
|
37
44
|
status: botStatusSchema,
|
|
38
|
-
error: z.string().nullable().describe('Why provisioning failed or is unknown, or why a deletion waits or failed.'),
|
|
39
|
-
updating: z.boolean().describe('A rename is being applied to the Slack app.'),
|
|
45
|
+
error: z.string().nullable().describe('Why provisioning failed or is unknown, why a configuring bot\'s chosen photo is still being retried (`photo_unavailable`, `photo_unknown`), or why a deletion waits or failed.'),
|
|
46
|
+
updating: z.boolean().describe('A rename or a changed photo is being applied to the Slack app.'),
|
|
47
|
+
photoUrl: z.string().nullable().describe('The app icon Slack accepted last, as Tela published it; null while the bot keeps Slack\'s default icon.'),
|
|
48
|
+
pendingPhotoUrl: z.string().nullable().describe('A photo an administrator chose, not the app icon yet.'),
|
|
49
|
+
photoError: z.enum(['photo_rejected', 'photo_unavailable', 'photo_unknown']).nullable().describe('Why a changed photo is not the app icon: Slack refused the image (`photo_rejected`) or the change was given up on (`photo_unavailable`), or why it is still being retried (`photo_unavailable`, `photo_unknown`).'),
|
|
40
50
|
openUrl: z.url().nullable().describe('Slack deep link, only while the bot is installed.'),
|
|
41
51
|
creatorActorId: z.string(),
|
|
42
52
|
// An administrator's Tela account while their Slack identity in the bot's team is connected, otherwise null.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@meistrari/chat-nuxt",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.12.0-rc.1",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"exports": {
|
|
6
6
|
".": {
|
|
@@ -52,7 +52,7 @@
|
|
|
52
52
|
"@iconify-json/ph": "^1.2.2",
|
|
53
53
|
"@iconify/vue": "^5.0.0",
|
|
54
54
|
"@meistrari/auth-nuxt": "3.31.0",
|
|
55
|
-
"@meistrari/chat-ui-lang": "0.
|
|
55
|
+
"@meistrari/chat-ui-lang": "0.6.0-rc.0",
|
|
56
56
|
"@meistrari/logger": "^2.1.3",
|
|
57
57
|
"@meistrari/tela-build": "^1.79.0",
|
|
58
58
|
"@openuidev/lang-core": "1.0.0",
|