@relaycast/types 0.2.3 → 0.2.5
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/agent.d.ts +189 -23
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +73 -1
- package/dist/agent.js.map +1 -1
- package/dist/api.d.ts +209 -14
- package/dist/api.d.ts.map +1 -1
- package/dist/api.js +22 -1
- package/dist/api.js.map +1 -1
- package/dist/billing.d.ts +97 -17
- package/dist/billing.d.ts.map +1 -1
- package/dist/billing.js +44 -1
- package/dist/billing.js.map +1 -1
- package/dist/channel.d.ts +80 -16
- package/dist/channel.d.ts.map +1 -1
- package/dist/channel.js +35 -1
- package/dist/channel.js.map +1 -1
- package/dist/command.d.ts +188 -26
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +47 -1
- package/dist/command.js.map +1 -1
- package/dist/dashboard.d.ts +141 -14
- package/dist/dashboard.d.ts.map +1 -1
- package/dist/dashboard.js +32 -1
- package/dist/dashboard.js.map +1 -1
- package/dist/dm.d.ts +74 -15
- package/dist/dm.d.ts.map +1 -1
- package/dist/dm.js +33 -1
- package/dist/dm.js.map +1 -1
- package/dist/events.d.ts +1479 -75
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +186 -1
- package/dist/events.js.map +1 -1
- package/dist/file.d.ts +83 -14
- package/dist/file.d.ts.map +1 -1
- package/dist/file.js +38 -1
- package/dist/file.js.map +1 -1
- package/dist/message.d.ts +875 -52
- package/dist/message.d.ts.map +1 -1
- package/dist/message.js +75 -1
- package/dist/message.js.map +1 -1
- package/dist/reaction.d.ts +35 -7
- package/dist/reaction.d.ts.map +1 -1
- package/dist/reaction.js +16 -1
- package/dist/reaction.js.map +1 -1
- package/dist/receipt.d.ts +34 -6
- package/dist/receipt.d.ts.map +1 -1
- package/dist/receipt.js +16 -1
- package/dist/receipt.js.map +1 -1
- package/dist/subscription.d.ts +119 -20
- package/dist/subscription.d.ts.map +1 -1
- package/dist/subscription.js +49 -1
- package/dist/subscription.js.map +1 -1
- package/dist/webhook.d.ts +81 -17
- package/dist/webhook.d.ts.map +1 -1
- package/dist/webhook.js +35 -1
- package/dist/webhook.js.map +1 -1
- package/dist/workspace.d.ts +77 -12
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +32 -1
- package/dist/workspace.js.map +1 -1
- package/package.json +4 -1
package/dist/billing.d.ts
CHANGED
|
@@ -1,14 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const PlanTypeSchema: z.ZodEnum<["free", "pro", "enterprise"]>;
|
|
3
|
+
export type PlanType = z.infer<typeof PlanTypeSchema>;
|
|
4
|
+
export declare const SubscriptionStatusSchema: z.ZodEnum<["active", "canceled", "past_due", "trialing"]>;
|
|
5
|
+
export type SubscriptionStatus = z.infer<typeof SubscriptionStatusSchema>;
|
|
6
|
+
export declare const BillingSubscriptionSchema: z.ZodObject<{
|
|
7
|
+
subscription_id: z.ZodString;
|
|
8
|
+
plan: z.ZodEnum<["free", "pro", "enterprise"]>;
|
|
9
|
+
status: z.ZodEnum<["active", "canceled", "past_due", "trialing"]>;
|
|
10
|
+
current_period_end: z.ZodString;
|
|
11
|
+
}, "strip", z.ZodTypeAny, {
|
|
12
|
+
status: "active" | "canceled" | "past_due" | "trialing";
|
|
4
13
|
subscription_id: string;
|
|
5
|
-
plan:
|
|
6
|
-
status: SubscriptionStatus;
|
|
14
|
+
plan: "free" | "pro" | "enterprise";
|
|
7
15
|
current_period_end: string;
|
|
8
|
-
}
|
|
9
|
-
|
|
16
|
+
}, {
|
|
17
|
+
status: "active" | "canceled" | "past_due" | "trialing";
|
|
18
|
+
subscription_id: string;
|
|
19
|
+
plan: "free" | "pro" | "enterprise";
|
|
20
|
+
current_period_end: string;
|
|
21
|
+
}>;
|
|
22
|
+
export type BillingSubscription = z.infer<typeof BillingSubscriptionSchema>;
|
|
23
|
+
export declare const UsageRecordSchema: z.ZodObject<{
|
|
24
|
+
id: z.ZodString;
|
|
25
|
+
workspace_id: z.ZodString;
|
|
26
|
+
period_start: z.ZodString;
|
|
27
|
+
period_end: z.ZodString;
|
|
28
|
+
messages_sent: z.ZodNumber;
|
|
29
|
+
api_calls: z.ZodNumber;
|
|
30
|
+
files_uploaded: z.ZodNumber;
|
|
31
|
+
file_bytes: z.ZodNumber;
|
|
32
|
+
ws_minutes: z.ZodNumber;
|
|
33
|
+
created_at: z.ZodString;
|
|
34
|
+
}, "strip", z.ZodTypeAny, {
|
|
10
35
|
id: string;
|
|
11
36
|
workspace_id: string;
|
|
37
|
+
created_at: string;
|
|
12
38
|
period_start: string;
|
|
13
39
|
period_end: string;
|
|
14
40
|
messages_sent: number;
|
|
@@ -16,29 +42,83 @@ export interface UsageRecord {
|
|
|
16
42
|
files_uploaded: number;
|
|
17
43
|
file_bytes: number;
|
|
18
44
|
ws_minutes: number;
|
|
45
|
+
}, {
|
|
46
|
+
id: string;
|
|
47
|
+
workspace_id: string;
|
|
19
48
|
created_at: string;
|
|
20
|
-
|
|
21
|
-
|
|
49
|
+
period_start: string;
|
|
50
|
+
period_end: string;
|
|
22
51
|
messages_sent: number;
|
|
23
|
-
|
|
52
|
+
api_calls: number;
|
|
53
|
+
files_uploaded: number;
|
|
54
|
+
file_bytes: number;
|
|
55
|
+
ws_minutes: number;
|
|
56
|
+
}>;
|
|
57
|
+
export type UsageRecord = z.infer<typeof UsageRecordSchema>;
|
|
58
|
+
export declare const UsageInfoSchema: z.ZodObject<{
|
|
59
|
+
messages_sent: z.ZodNumber;
|
|
60
|
+
messages_stored: z.ZodNumber;
|
|
61
|
+
files_uploaded: z.ZodNumber;
|
|
62
|
+
file_storage_bytes: z.ZodNumber;
|
|
63
|
+
agents_registered: z.ZodNumber;
|
|
64
|
+
api_calls: z.ZodNumber;
|
|
65
|
+
websocket_minutes: z.ZodNumber;
|
|
66
|
+
period_start: z.ZodString;
|
|
67
|
+
period_end: z.ZodString;
|
|
68
|
+
}, "strip", z.ZodTypeAny, {
|
|
69
|
+
period_start: string;
|
|
70
|
+
period_end: string;
|
|
71
|
+
messages_sent: number;
|
|
72
|
+
api_calls: number;
|
|
24
73
|
files_uploaded: number;
|
|
74
|
+
messages_stored: number;
|
|
25
75
|
file_storage_bytes: number;
|
|
26
76
|
agents_registered: number;
|
|
27
|
-
api_calls: number;
|
|
28
77
|
websocket_minutes: number;
|
|
78
|
+
}, {
|
|
29
79
|
period_start: string;
|
|
30
80
|
period_end: string;
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
81
|
+
messages_sent: number;
|
|
82
|
+
api_calls: number;
|
|
83
|
+
files_uploaded: number;
|
|
84
|
+
messages_stored: number;
|
|
85
|
+
file_storage_bytes: number;
|
|
86
|
+
agents_registered: number;
|
|
87
|
+
websocket_minutes: number;
|
|
88
|
+
}>;
|
|
89
|
+
export type UsageInfo = z.infer<typeof UsageInfoSchema>;
|
|
90
|
+
export declare const SubscribeRequestSchema: z.ZodObject<{
|
|
91
|
+
plan: z.ZodEnum<["free", "pro", "enterprise"]>;
|
|
92
|
+
payment_method: z.ZodString;
|
|
93
|
+
}, "strip", z.ZodTypeAny, {
|
|
94
|
+
plan: "free" | "pro" | "enterprise";
|
|
95
|
+
payment_method: string;
|
|
96
|
+
}, {
|
|
97
|
+
plan: "free" | "pro" | "enterprise";
|
|
34
98
|
payment_method: string;
|
|
35
|
-
}
|
|
36
|
-
export
|
|
99
|
+
}>;
|
|
100
|
+
export type SubscribeRequest = z.infer<typeof SubscribeRequestSchema>;
|
|
101
|
+
export declare const PlanLimitsSchema: z.ZodObject<{
|
|
102
|
+
messages_per_month: z.ZodNumber;
|
|
103
|
+
agents: z.ZodNumber;
|
|
104
|
+
file_storage_bytes: z.ZodNumber;
|
|
105
|
+
message_retention_days: z.ZodNumber;
|
|
106
|
+
channels: z.ZodNumber;
|
|
107
|
+
api_rate_per_minute: z.ZodNumber;
|
|
108
|
+
}, "strip", z.ZodTypeAny, {
|
|
109
|
+
file_storage_bytes: number;
|
|
37
110
|
messages_per_month: number;
|
|
38
111
|
agents: number;
|
|
112
|
+
message_retention_days: number;
|
|
113
|
+
channels: number;
|
|
114
|
+
api_rate_per_minute: number;
|
|
115
|
+
}, {
|
|
39
116
|
file_storage_bytes: number;
|
|
117
|
+
messages_per_month: number;
|
|
118
|
+
agents: number;
|
|
40
119
|
message_retention_days: number;
|
|
41
120
|
channels: number;
|
|
42
121
|
api_rate_per_minute: number;
|
|
43
|
-
}
|
|
122
|
+
}>;
|
|
123
|
+
export type PlanLimits = z.infer<typeof PlanLimitsSchema>;
|
|
44
124
|
//# sourceMappingURL=billing.d.ts.map
|
package/dist/billing.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../src/billing.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"billing.d.ts","sourceRoot":"","sources":["../src/billing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc,0CAAwC,CAAC;AACpE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,wBAAwB,2DAAyD,CAAC;AAC/F,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;EAKpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,iBAAiB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAW5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,sBAAsB;;;;;;;;;EAGjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,gBAAgB;;;;;;;;;;;;;;;;;;;;;EAO3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/billing.js
CHANGED
|
@@ -1,2 +1,45 @@
|
|
|
1
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const PlanTypeSchema = z.enum(['free', 'pro', 'enterprise']);
|
|
3
|
+
export const SubscriptionStatusSchema = z.enum(['active', 'canceled', 'past_due', 'trialing']);
|
|
4
|
+
export const BillingSubscriptionSchema = z.object({
|
|
5
|
+
subscription_id: z.string(),
|
|
6
|
+
plan: PlanTypeSchema,
|
|
7
|
+
status: SubscriptionStatusSchema,
|
|
8
|
+
current_period_end: z.string(),
|
|
9
|
+
});
|
|
10
|
+
export const UsageRecordSchema = z.object({
|
|
11
|
+
id: z.string(),
|
|
12
|
+
workspace_id: z.string(),
|
|
13
|
+
period_start: z.string(),
|
|
14
|
+
period_end: z.string(),
|
|
15
|
+
messages_sent: z.number(),
|
|
16
|
+
api_calls: z.number(),
|
|
17
|
+
files_uploaded: z.number(),
|
|
18
|
+
file_bytes: z.number(),
|
|
19
|
+
ws_minutes: z.number(),
|
|
20
|
+
created_at: z.string(),
|
|
21
|
+
});
|
|
22
|
+
export const UsageInfoSchema = z.object({
|
|
23
|
+
messages_sent: z.number(),
|
|
24
|
+
messages_stored: z.number(),
|
|
25
|
+
files_uploaded: z.number(),
|
|
26
|
+
file_storage_bytes: z.number(),
|
|
27
|
+
agents_registered: z.number(),
|
|
28
|
+
api_calls: z.number(),
|
|
29
|
+
websocket_minutes: z.number(),
|
|
30
|
+
period_start: z.string(),
|
|
31
|
+
period_end: z.string(),
|
|
32
|
+
});
|
|
33
|
+
export const SubscribeRequestSchema = z.object({
|
|
34
|
+
plan: PlanTypeSchema,
|
|
35
|
+
payment_method: z.string(),
|
|
36
|
+
});
|
|
37
|
+
export const PlanLimitsSchema = z.object({
|
|
38
|
+
messages_per_month: z.number(),
|
|
39
|
+
agents: z.number(),
|
|
40
|
+
file_storage_bytes: z.number(),
|
|
41
|
+
message_retention_days: z.number(),
|
|
42
|
+
channels: z.number(),
|
|
43
|
+
api_rate_per_minute: z.number(),
|
|
44
|
+
});
|
|
2
45
|
//# sourceMappingURL=billing.js.map
|
package/dist/billing.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"billing.js","sourceRoot":"","sources":["../src/billing.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"billing.js","sourceRoot":"","sources":["../src/billing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC,CAAC;AAGpE,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;AAG/F,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,MAAM,CAAC;IAChD,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,IAAI,EAAE,cAAc;IACpB,MAAM,EAAE,wBAAwB;IAChC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;CAC/B,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,eAAe,EAAE,CAAC,CAAC,MAAM,EAAE;IAC3B,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;IAC1B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC7B,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;CACvB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,cAAc;IACpB,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE;CAC3B,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,gBAAgB,GAAG,CAAC,CAAC,MAAM,CAAC;IACvC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,MAAM,EAAE,CAAC,CAAC,MAAM,EAAE;IAClB,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;IAClC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;CAChC,CAAC,CAAC"}
|
package/dist/channel.d.ts
CHANGED
|
@@ -1,34 +1,98 @@
|
|
|
1
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ChannelSchema: z.ZodObject<{
|
|
3
|
+
id: z.ZodString;
|
|
4
|
+
workspace_id: z.ZodString;
|
|
5
|
+
name: z.ZodString;
|
|
6
|
+
channel_type: z.ZodNumber;
|
|
7
|
+
topic: z.ZodNullable<z.ZodString>;
|
|
8
|
+
created_by: z.ZodNullable<z.ZodString>;
|
|
9
|
+
created_at: z.ZodString;
|
|
10
|
+
is_archived: z.ZodBoolean;
|
|
11
|
+
member_count: z.ZodOptional<z.ZodNumber>;
|
|
12
|
+
}, "strip", z.ZodTypeAny, {
|
|
2
13
|
id: string;
|
|
3
14
|
workspace_id: string;
|
|
4
15
|
name: string;
|
|
16
|
+
created_at: string;
|
|
5
17
|
channel_type: number;
|
|
6
18
|
topic: string | null;
|
|
7
19
|
created_by: string | null;
|
|
20
|
+
is_archived: boolean;
|
|
21
|
+
member_count?: number | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
id: string;
|
|
24
|
+
workspace_id: string;
|
|
25
|
+
name: string;
|
|
8
26
|
created_at: string;
|
|
27
|
+
channel_type: number;
|
|
28
|
+
topic: string | null;
|
|
29
|
+
created_by: string | null;
|
|
9
30
|
is_archived: boolean;
|
|
10
|
-
|
|
11
|
-
|
|
31
|
+
member_count?: number | undefined;
|
|
32
|
+
}>;
|
|
33
|
+
export type Channel = z.infer<typeof ChannelSchema>;
|
|
34
|
+
export declare const ChannelMemberSchema: z.ZodObject<{
|
|
35
|
+
channel_id: z.ZodString;
|
|
36
|
+
agent_id: z.ZodString;
|
|
37
|
+
role: z.ZodEnum<["owner", "member"]>;
|
|
38
|
+
joined_at: z.ZodString;
|
|
39
|
+
last_read_id: z.ZodNullable<z.ZodString>;
|
|
40
|
+
}, "strip", z.ZodTypeAny, {
|
|
41
|
+
agent_id: string;
|
|
12
42
|
channel_id: string;
|
|
43
|
+
role: "owner" | "member";
|
|
44
|
+
joined_at: string;
|
|
45
|
+
last_read_id: string | null;
|
|
46
|
+
}, {
|
|
13
47
|
agent_id: string;
|
|
14
|
-
|
|
48
|
+
channel_id: string;
|
|
49
|
+
role: "owner" | "member";
|
|
15
50
|
joined_at: string;
|
|
16
51
|
last_read_id: string | null;
|
|
17
|
-
}
|
|
18
|
-
export
|
|
52
|
+
}>;
|
|
53
|
+
export type ChannelMember = z.infer<typeof ChannelMemberSchema>;
|
|
54
|
+
export declare const CreateChannelRequestSchema: z.ZodObject<{
|
|
55
|
+
name: z.ZodString;
|
|
56
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
57
|
+
}, "strip", z.ZodTypeAny, {
|
|
58
|
+
name: string;
|
|
59
|
+
topic?: string | undefined;
|
|
60
|
+
}, {
|
|
19
61
|
name: string;
|
|
20
|
-
topic?: string;
|
|
21
|
-
}
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
62
|
+
topic?: string | undefined;
|
|
63
|
+
}>;
|
|
64
|
+
export type CreateChannelRequest = z.infer<typeof CreateChannelRequestSchema>;
|
|
65
|
+
export declare const UpdateChannelRequestSchema: z.ZodObject<{
|
|
66
|
+
topic: z.ZodOptional<z.ZodString>;
|
|
67
|
+
}, "strip", z.ZodTypeAny, {
|
|
68
|
+
topic?: string | undefined;
|
|
69
|
+
}, {
|
|
70
|
+
topic?: string | undefined;
|
|
71
|
+
}>;
|
|
72
|
+
export type UpdateChannelRequest = z.infer<typeof UpdateChannelRequestSchema>;
|
|
73
|
+
export declare const ChannelMemberInfoSchema: z.ZodObject<{
|
|
74
|
+
agent_id: z.ZodString;
|
|
75
|
+
agent_name: z.ZodString;
|
|
76
|
+
role: z.ZodEnum<["owner", "member"]>;
|
|
77
|
+
joined_at: z.ZodString;
|
|
78
|
+
}, "strip", z.ZodTypeAny, {
|
|
26
79
|
agent_id: string;
|
|
27
80
|
agent_name: string;
|
|
28
|
-
role:
|
|
81
|
+
role: "owner" | "member";
|
|
29
82
|
joined_at: string;
|
|
30
|
-
}
|
|
31
|
-
|
|
83
|
+
}, {
|
|
84
|
+
agent_id: string;
|
|
85
|
+
agent_name: string;
|
|
86
|
+
role: "owner" | "member";
|
|
87
|
+
joined_at: string;
|
|
88
|
+
}>;
|
|
89
|
+
export type ChannelMemberInfo = z.infer<typeof ChannelMemberInfoSchema>;
|
|
90
|
+
export declare const InviteRequestSchema: z.ZodObject<{
|
|
91
|
+
agent: z.ZodString;
|
|
92
|
+
}, "strip", z.ZodTypeAny, {
|
|
93
|
+
agent: string;
|
|
94
|
+
}, {
|
|
32
95
|
agent: string;
|
|
33
|
-
}
|
|
96
|
+
}>;
|
|
97
|
+
export type InviteRequest = z.infer<typeof InviteRequestSchema>;
|
|
34
98
|
//# sourceMappingURL=channel.d.ts.map
|
package/dist/channel.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../src/channel.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"channel.d.ts","sourceRoot":"","sources":["../src/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAUxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;;;;;;;EAM9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,0BAA0B;;;;;;;;;EAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,0BAA0B;;;;;;EAErC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;EAKlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,mBAAmB;;;;;;EAE9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
package/dist/channel.js
CHANGED
|
@@ -1,2 +1,36 @@
|
|
|
1
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export const ChannelSchema = z.object({
|
|
3
|
+
id: z.string(),
|
|
4
|
+
workspace_id: z.string(),
|
|
5
|
+
name: z.string(),
|
|
6
|
+
channel_type: z.number(),
|
|
7
|
+
topic: z.string().nullable(),
|
|
8
|
+
created_by: z.string().nullable(),
|
|
9
|
+
created_at: z.string(),
|
|
10
|
+
is_archived: z.boolean(),
|
|
11
|
+
member_count: z.number().optional(),
|
|
12
|
+
});
|
|
13
|
+
export const ChannelMemberSchema = z.object({
|
|
14
|
+
channel_id: z.string(),
|
|
15
|
+
agent_id: z.string(),
|
|
16
|
+
role: z.enum(['owner', 'member']),
|
|
17
|
+
joined_at: z.string(),
|
|
18
|
+
last_read_id: z.string().nullable(),
|
|
19
|
+
});
|
|
20
|
+
export const CreateChannelRequestSchema = z.object({
|
|
21
|
+
name: z.string(),
|
|
22
|
+
topic: z.string().optional(),
|
|
23
|
+
});
|
|
24
|
+
export const UpdateChannelRequestSchema = z.object({
|
|
25
|
+
topic: z.string().optional(),
|
|
26
|
+
});
|
|
27
|
+
export const ChannelMemberInfoSchema = z.object({
|
|
28
|
+
agent_id: z.string(),
|
|
29
|
+
agent_name: z.string(),
|
|
30
|
+
role: z.enum(['owner', 'member']),
|
|
31
|
+
joined_at: z.string(),
|
|
32
|
+
});
|
|
33
|
+
export const InviteRequestSchema = z.object({
|
|
34
|
+
agent: z.string(),
|
|
35
|
+
});
|
|
2
36
|
//# sourceMappingURL=channel.js.map
|
package/dist/channel.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"channel.js","sourceRoot":"","sources":["../src/channel.ts"],"names":[],"mappings":""}
|
|
1
|
+
{"version":3,"file":"channel.js","sourceRoot":"","sources":["../src/channel.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,aAAa,GAAG,CAAC,CAAC,MAAM,CAAC;IACpC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC5B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,WAAW,EAAE,CAAC,CAAC,OAAO,EAAE;IACxB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;IACrB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACpC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC7B,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC9C,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,OAAO,EAAE,QAAQ,CAAC,CAAC;IACjC,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC"}
|
package/dist/command.d.ts
CHANGED
|
@@ -1,47 +1,209 @@
|
|
|
1
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CommandParameterSchema: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
description: z.ZodOptional<z.ZodString>;
|
|
5
|
+
type: z.ZodEnum<["string", "number", "boolean"]>;
|
|
6
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
type: "string" | "number" | "boolean";
|
|
9
|
+
name: string;
|
|
10
|
+
description?: string | undefined;
|
|
11
|
+
required?: boolean | undefined;
|
|
12
|
+
}, {
|
|
13
|
+
type: "string" | "number" | "boolean";
|
|
14
|
+
name: string;
|
|
15
|
+
description?: string | undefined;
|
|
16
|
+
required?: boolean | undefined;
|
|
17
|
+
}>;
|
|
18
|
+
export type CommandParameter = z.infer<typeof CommandParameterSchema>;
|
|
19
|
+
export declare const AgentCommandSchema: z.ZodObject<{
|
|
20
|
+
id: z.ZodString;
|
|
21
|
+
workspace_id: z.ZodString;
|
|
22
|
+
command: z.ZodString;
|
|
23
|
+
description: z.ZodString;
|
|
24
|
+
handler_agent_id: z.ZodString;
|
|
25
|
+
handler_agent_name: z.ZodString;
|
|
26
|
+
parameters: z.ZodArray<z.ZodObject<{
|
|
27
|
+
name: z.ZodString;
|
|
28
|
+
description: z.ZodOptional<z.ZodString>;
|
|
29
|
+
type: z.ZodEnum<["string", "number", "boolean"]>;
|
|
30
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
}, "strip", z.ZodTypeAny, {
|
|
32
|
+
type: "string" | "number" | "boolean";
|
|
33
|
+
name: string;
|
|
34
|
+
description?: string | undefined;
|
|
35
|
+
required?: boolean | undefined;
|
|
36
|
+
}, {
|
|
37
|
+
type: "string" | "number" | "boolean";
|
|
38
|
+
name: string;
|
|
39
|
+
description?: string | undefined;
|
|
40
|
+
required?: boolean | undefined;
|
|
41
|
+
}>, "many">;
|
|
42
|
+
created_at: z.ZodString;
|
|
43
|
+
is_active: z.ZodBoolean;
|
|
44
|
+
}, "strip", z.ZodTypeAny, {
|
|
2
45
|
id: string;
|
|
3
46
|
workspace_id: string;
|
|
4
|
-
|
|
47
|
+
created_at: string;
|
|
5
48
|
description: string;
|
|
49
|
+
command: string;
|
|
6
50
|
handler_agent_id: string;
|
|
7
51
|
handler_agent_name: string;
|
|
8
|
-
parameters:
|
|
52
|
+
parameters: {
|
|
53
|
+
type: "string" | "number" | "boolean";
|
|
54
|
+
name: string;
|
|
55
|
+
description?: string | undefined;
|
|
56
|
+
required?: boolean | undefined;
|
|
57
|
+
}[];
|
|
58
|
+
is_active: boolean;
|
|
59
|
+
}, {
|
|
60
|
+
id: string;
|
|
61
|
+
workspace_id: string;
|
|
9
62
|
created_at: string;
|
|
63
|
+
description: string;
|
|
64
|
+
command: string;
|
|
65
|
+
handler_agent_id: string;
|
|
66
|
+
handler_agent_name: string;
|
|
67
|
+
parameters: {
|
|
68
|
+
type: "string" | "number" | "boolean";
|
|
69
|
+
name: string;
|
|
70
|
+
description?: string | undefined;
|
|
71
|
+
required?: boolean | undefined;
|
|
72
|
+
}[];
|
|
10
73
|
is_active: boolean;
|
|
11
|
-
}
|
|
12
|
-
export
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
74
|
+
}>;
|
|
75
|
+
export type AgentCommand = z.infer<typeof AgentCommandSchema>;
|
|
76
|
+
export declare const CreateCommandRequestSchema: z.ZodObject<{
|
|
77
|
+
command: z.ZodString;
|
|
78
|
+
description: z.ZodString;
|
|
79
|
+
handler_agent: z.ZodString;
|
|
80
|
+
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
81
|
+
name: z.ZodString;
|
|
82
|
+
description: z.ZodOptional<z.ZodString>;
|
|
83
|
+
type: z.ZodEnum<["string", "number", "boolean"]>;
|
|
84
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
+
}, "strip", z.ZodTypeAny, {
|
|
86
|
+
type: "string" | "number" | "boolean";
|
|
87
|
+
name: string;
|
|
88
|
+
description?: string | undefined;
|
|
89
|
+
required?: boolean | undefined;
|
|
90
|
+
}, {
|
|
91
|
+
type: "string" | "number" | "boolean";
|
|
92
|
+
name: string;
|
|
93
|
+
description?: string | undefined;
|
|
94
|
+
required?: boolean | undefined;
|
|
95
|
+
}>, "many">>;
|
|
96
|
+
}, "strip", z.ZodTypeAny, {
|
|
97
|
+
description: string;
|
|
19
98
|
command: string;
|
|
99
|
+
handler_agent: string;
|
|
100
|
+
parameters?: {
|
|
101
|
+
type: "string" | "number" | "boolean";
|
|
102
|
+
name: string;
|
|
103
|
+
description?: string | undefined;
|
|
104
|
+
required?: boolean | undefined;
|
|
105
|
+
}[] | undefined;
|
|
106
|
+
}, {
|
|
20
107
|
description: string;
|
|
108
|
+
command: string;
|
|
21
109
|
handler_agent: string;
|
|
22
|
-
parameters?:
|
|
23
|
-
|
|
24
|
-
|
|
110
|
+
parameters?: {
|
|
111
|
+
type: "string" | "number" | "boolean";
|
|
112
|
+
name: string;
|
|
113
|
+
description?: string | undefined;
|
|
114
|
+
required?: boolean | undefined;
|
|
115
|
+
}[] | undefined;
|
|
116
|
+
}>;
|
|
117
|
+
export type CreateCommandRequest = z.infer<typeof CreateCommandRequestSchema>;
|
|
118
|
+
export declare const CreateCommandResponseSchema: z.ZodObject<{
|
|
119
|
+
id: z.ZodString;
|
|
120
|
+
command: z.ZodString;
|
|
121
|
+
description: z.ZodString;
|
|
122
|
+
handler_agent: z.ZodString;
|
|
123
|
+
parameters: z.ZodArray<z.ZodObject<{
|
|
124
|
+
name: z.ZodString;
|
|
125
|
+
description: z.ZodOptional<z.ZodString>;
|
|
126
|
+
type: z.ZodEnum<["string", "number", "boolean"]>;
|
|
127
|
+
required: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
+
}, "strip", z.ZodTypeAny, {
|
|
129
|
+
type: "string" | "number" | "boolean";
|
|
130
|
+
name: string;
|
|
131
|
+
description?: string | undefined;
|
|
132
|
+
required?: boolean | undefined;
|
|
133
|
+
}, {
|
|
134
|
+
type: "string" | "number" | "boolean";
|
|
135
|
+
name: string;
|
|
136
|
+
description?: string | undefined;
|
|
137
|
+
required?: boolean | undefined;
|
|
138
|
+
}>, "many">;
|
|
139
|
+
created_at: z.ZodString;
|
|
140
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
141
|
id: string;
|
|
26
|
-
|
|
142
|
+
created_at: string;
|
|
27
143
|
description: string;
|
|
144
|
+
command: string;
|
|
145
|
+
parameters: {
|
|
146
|
+
type: "string" | "number" | "boolean";
|
|
147
|
+
name: string;
|
|
148
|
+
description?: string | undefined;
|
|
149
|
+
required?: boolean | undefined;
|
|
150
|
+
}[];
|
|
28
151
|
handler_agent: string;
|
|
29
|
-
|
|
152
|
+
}, {
|
|
153
|
+
id: string;
|
|
30
154
|
created_at: string;
|
|
31
|
-
|
|
32
|
-
|
|
155
|
+
description: string;
|
|
156
|
+
command: string;
|
|
157
|
+
parameters: {
|
|
158
|
+
type: "string" | "number" | "boolean";
|
|
159
|
+
name: string;
|
|
160
|
+
description?: string | undefined;
|
|
161
|
+
required?: boolean | undefined;
|
|
162
|
+
}[];
|
|
163
|
+
handler_agent: string;
|
|
164
|
+
}>;
|
|
165
|
+
export type CreateCommandResponse = z.infer<typeof CreateCommandResponseSchema>;
|
|
166
|
+
export declare const InvokeCommandRequestSchema: z.ZodObject<{
|
|
167
|
+
channel: z.ZodString;
|
|
168
|
+
args: z.ZodOptional<z.ZodString>;
|
|
169
|
+
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
170
|
+
}, "strip", z.ZodTypeAny, {
|
|
171
|
+
channel: string;
|
|
172
|
+
parameters?: Record<string, unknown> | undefined;
|
|
173
|
+
args?: string | undefined;
|
|
174
|
+
}, {
|
|
33
175
|
channel: string;
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
}
|
|
37
|
-
export
|
|
176
|
+
parameters?: Record<string, unknown> | undefined;
|
|
177
|
+
args?: string | undefined;
|
|
178
|
+
}>;
|
|
179
|
+
export type InvokeCommandRequest = z.infer<typeof InvokeCommandRequestSchema>;
|
|
180
|
+
export declare const CommandInvocationSchema: z.ZodObject<{
|
|
181
|
+
id: z.ZodString;
|
|
182
|
+
command: z.ZodString;
|
|
183
|
+
channel: z.ZodString;
|
|
184
|
+
invoked_by: z.ZodString;
|
|
185
|
+
args: z.ZodNullable<z.ZodString>;
|
|
186
|
+
parameters: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
187
|
+
response_message_id: z.ZodNullable<z.ZodString>;
|
|
188
|
+
created_at: z.ZodString;
|
|
189
|
+
}, "strip", z.ZodTypeAny, {
|
|
38
190
|
id: string;
|
|
39
|
-
|
|
191
|
+
created_at: string;
|
|
40
192
|
channel: string;
|
|
41
|
-
|
|
42
|
-
args: string | null;
|
|
193
|
+
command: string;
|
|
43
194
|
parameters: Record<string, unknown> | null;
|
|
195
|
+
args: string | null;
|
|
196
|
+
invoked_by: string;
|
|
44
197
|
response_message_id: string | null;
|
|
198
|
+
}, {
|
|
199
|
+
id: string;
|
|
45
200
|
created_at: string;
|
|
46
|
-
|
|
201
|
+
channel: string;
|
|
202
|
+
command: string;
|
|
203
|
+
parameters: Record<string, unknown> | null;
|
|
204
|
+
args: string | null;
|
|
205
|
+
invoked_by: string;
|
|
206
|
+
response_message_id: string | null;
|
|
207
|
+
}>;
|
|
208
|
+
export type CommandInvocation = z.infer<typeof CommandInvocationSchema>;
|
|
47
209
|
//# sourceMappingURL=command.d.ts.map
|
package/dist/command.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"command.d.ts","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB;;;;;;;;;;;;;;;EAKjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAU7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAKrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAOtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,0BAA0B;;;;;;;;;;;;EAIrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;EASlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|