@relaycast/types 0.2.5 → 0.3.0
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 +77 -139
- package/dist/agent.d.ts.map +1 -1
- package/dist/agent.js +4 -4
- package/dist/agent.js.map +1 -1
- package/dist/api.d.ts +13 -177
- package/dist/api.d.ts.map +1 -1
- package/dist/billing.d.ts +32 -82
- package/dist/billing.d.ts.map +1 -1
- package/dist/channel.d.ts +14 -64
- package/dist/channel.d.ts.map +1 -1
- package/dist/command.d.ts +29 -153
- package/dist/command.d.ts.map +1 -1
- package/dist/command.js +2 -2
- package/dist/command.js.map +1 -1
- package/dist/dm.d.ts +19 -62
- package/dist/dm.d.ts.map +1 -1
- package/dist/events.d.ts +169 -1217
- package/dist/events.d.ts.map +1 -1
- package/dist/events.js +21 -1
- package/dist/events.js.map +1 -1
- package/dist/file.d.ts +15 -69
- package/dist/file.d.ts.map +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +0 -1
- package/dist/index.js.map +1 -1
- package/dist/message.d.ts +85 -746
- package/dist/message.d.ts.map +1 -1
- package/dist/reaction.d.ts +4 -28
- package/dist/reaction.d.ts.map +1 -1
- package/dist/receipt.d.ts +3 -27
- package/dist/receipt.d.ts.map +1 -1
- package/dist/subscription.d.ts +87 -95
- package/dist/subscription.d.ts.map +1 -1
- package/dist/webhook.d.ts +6 -64
- package/dist/webhook.d.ts.map +1 -1
- package/dist/webhook.js +1 -1
- package/dist/webhook.js.map +1 -1
- package/dist/workspace.d.ts +41 -57
- package/dist/workspace.d.ts.map +1 -1
- package/dist/workspace.js +26 -1
- package/dist/workspace.js.map +1 -1
- package/package.json +2 -2
- package/dist/dashboard.d.ts +0 -174
- package/dist/dashboard.d.ts.map +0 -1
- package/dist/dashboard.js +0 -33
- package/dist/dashboard.js.map +0 -1
package/dist/billing.d.ts
CHANGED
|
@@ -1,24 +1,32 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const PlanTypeSchema: z.ZodEnum<
|
|
2
|
+
export declare const PlanTypeSchema: z.ZodEnum<{
|
|
3
|
+
free: "free";
|
|
4
|
+
pro: "pro";
|
|
5
|
+
enterprise: "enterprise";
|
|
6
|
+
}>;
|
|
3
7
|
export type PlanType = z.infer<typeof PlanTypeSchema>;
|
|
4
|
-
export declare const SubscriptionStatusSchema: z.ZodEnum<
|
|
8
|
+
export declare const SubscriptionStatusSchema: z.ZodEnum<{
|
|
9
|
+
active: "active";
|
|
10
|
+
canceled: "canceled";
|
|
11
|
+
past_due: "past_due";
|
|
12
|
+
trialing: "trialing";
|
|
13
|
+
}>;
|
|
5
14
|
export type SubscriptionStatus = z.infer<typeof SubscriptionStatusSchema>;
|
|
6
15
|
export declare const BillingSubscriptionSchema: z.ZodObject<{
|
|
7
16
|
subscription_id: z.ZodString;
|
|
8
|
-
plan: z.ZodEnum<
|
|
9
|
-
|
|
17
|
+
plan: z.ZodEnum<{
|
|
18
|
+
free: "free";
|
|
19
|
+
pro: "pro";
|
|
20
|
+
enterprise: "enterprise";
|
|
21
|
+
}>;
|
|
22
|
+
status: z.ZodEnum<{
|
|
23
|
+
active: "active";
|
|
24
|
+
canceled: "canceled";
|
|
25
|
+
past_due: "past_due";
|
|
26
|
+
trialing: "trialing";
|
|
27
|
+
}>;
|
|
10
28
|
current_period_end: z.ZodString;
|
|
11
|
-
},
|
|
12
|
-
status: "active" | "canceled" | "past_due" | "trialing";
|
|
13
|
-
subscription_id: string;
|
|
14
|
-
plan: "free" | "pro" | "enterprise";
|
|
15
|
-
current_period_end: string;
|
|
16
|
-
}, {
|
|
17
|
-
status: "active" | "canceled" | "past_due" | "trialing";
|
|
18
|
-
subscription_id: string;
|
|
19
|
-
plan: "free" | "pro" | "enterprise";
|
|
20
|
-
current_period_end: string;
|
|
21
|
-
}>;
|
|
29
|
+
}, z.core.$strip>;
|
|
22
30
|
export type BillingSubscription = z.infer<typeof BillingSubscriptionSchema>;
|
|
23
31
|
export declare const UsageRecordSchema: z.ZodObject<{
|
|
24
32
|
id: z.ZodString;
|
|
@@ -31,29 +39,7 @@ export declare const UsageRecordSchema: z.ZodObject<{
|
|
|
31
39
|
file_bytes: z.ZodNumber;
|
|
32
40
|
ws_minutes: z.ZodNumber;
|
|
33
41
|
created_at: z.ZodString;
|
|
34
|
-
},
|
|
35
|
-
id: string;
|
|
36
|
-
workspace_id: string;
|
|
37
|
-
created_at: string;
|
|
38
|
-
period_start: string;
|
|
39
|
-
period_end: string;
|
|
40
|
-
messages_sent: number;
|
|
41
|
-
api_calls: number;
|
|
42
|
-
files_uploaded: number;
|
|
43
|
-
file_bytes: number;
|
|
44
|
-
ws_minutes: number;
|
|
45
|
-
}, {
|
|
46
|
-
id: string;
|
|
47
|
-
workspace_id: string;
|
|
48
|
-
created_at: string;
|
|
49
|
-
period_start: string;
|
|
50
|
-
period_end: string;
|
|
51
|
-
messages_sent: number;
|
|
52
|
-
api_calls: number;
|
|
53
|
-
files_uploaded: number;
|
|
54
|
-
file_bytes: number;
|
|
55
|
-
ws_minutes: number;
|
|
56
|
-
}>;
|
|
42
|
+
}, z.core.$strip>;
|
|
57
43
|
export type UsageRecord = z.infer<typeof UsageRecordSchema>;
|
|
58
44
|
export declare const UsageInfoSchema: z.ZodObject<{
|
|
59
45
|
messages_sent: z.ZodNumber;
|
|
@@ -65,38 +51,16 @@ export declare const UsageInfoSchema: z.ZodObject<{
|
|
|
65
51
|
websocket_minutes: z.ZodNumber;
|
|
66
52
|
period_start: z.ZodString;
|
|
67
53
|
period_end: z.ZodString;
|
|
68
|
-
},
|
|
69
|
-
period_start: string;
|
|
70
|
-
period_end: string;
|
|
71
|
-
messages_sent: number;
|
|
72
|
-
api_calls: number;
|
|
73
|
-
files_uploaded: number;
|
|
74
|
-
messages_stored: number;
|
|
75
|
-
file_storage_bytes: number;
|
|
76
|
-
agents_registered: number;
|
|
77
|
-
websocket_minutes: number;
|
|
78
|
-
}, {
|
|
79
|
-
period_start: string;
|
|
80
|
-
period_end: string;
|
|
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
|
-
}>;
|
|
54
|
+
}, z.core.$strip>;
|
|
89
55
|
export type UsageInfo = z.infer<typeof UsageInfoSchema>;
|
|
90
56
|
export declare const SubscribeRequestSchema: z.ZodObject<{
|
|
91
|
-
plan: z.ZodEnum<
|
|
57
|
+
plan: z.ZodEnum<{
|
|
58
|
+
free: "free";
|
|
59
|
+
pro: "pro";
|
|
60
|
+
enterprise: "enterprise";
|
|
61
|
+
}>;
|
|
92
62
|
payment_method: z.ZodString;
|
|
93
|
-
},
|
|
94
|
-
plan: "free" | "pro" | "enterprise";
|
|
95
|
-
payment_method: string;
|
|
96
|
-
}, {
|
|
97
|
-
plan: "free" | "pro" | "enterprise";
|
|
98
|
-
payment_method: string;
|
|
99
|
-
}>;
|
|
63
|
+
}, z.core.$strip>;
|
|
100
64
|
export type SubscribeRequest = z.infer<typeof SubscribeRequestSchema>;
|
|
101
65
|
export declare const PlanLimitsSchema: z.ZodObject<{
|
|
102
66
|
messages_per_month: z.ZodNumber;
|
|
@@ -105,20 +69,6 @@ export declare const PlanLimitsSchema: z.ZodObject<{
|
|
|
105
69
|
message_retention_days: z.ZodNumber;
|
|
106
70
|
channels: z.ZodNumber;
|
|
107
71
|
api_rate_per_minute: z.ZodNumber;
|
|
108
|
-
},
|
|
109
|
-
file_storage_bytes: number;
|
|
110
|
-
messages_per_month: number;
|
|
111
|
-
agents: number;
|
|
112
|
-
message_retention_days: number;
|
|
113
|
-
channels: number;
|
|
114
|
-
api_rate_per_minute: number;
|
|
115
|
-
}, {
|
|
116
|
-
file_storage_bytes: number;
|
|
117
|
-
messages_per_month: number;
|
|
118
|
-
agents: number;
|
|
119
|
-
message_retention_days: number;
|
|
120
|
-
channels: number;
|
|
121
|
-
api_rate_per_minute: number;
|
|
122
|
-
}>;
|
|
72
|
+
}, z.core.$strip>;
|
|
123
73
|
export type PlanLimits = z.infer<typeof PlanLimitsSchema>;
|
|
124
74
|
//# 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,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc,
|
|
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;;;;EAAwC,CAAC;AACpE,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,wBAAwB;;;;;EAAyD,CAAC;AAC/F,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;iBAKpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,iBAAiB;;;;;;;;;;;iBAW5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,eAAe;;;;;;;;;;iBAU1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,sBAAsB;;;;;;;iBAGjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,gBAAgB;;;;;;;iBAO3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC"}
|
package/dist/channel.d.ts
CHANGED
|
@@ -9,90 +9,40 @@ export declare const ChannelSchema: z.ZodObject<{
|
|
|
9
9
|
created_at: z.ZodString;
|
|
10
10
|
is_archived: z.ZodBoolean;
|
|
11
11
|
member_count: z.ZodOptional<z.ZodNumber>;
|
|
12
|
-
},
|
|
13
|
-
id: string;
|
|
14
|
-
workspace_id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
created_at: string;
|
|
17
|
-
channel_type: number;
|
|
18
|
-
topic: string | null;
|
|
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;
|
|
26
|
-
created_at: string;
|
|
27
|
-
channel_type: number;
|
|
28
|
-
topic: string | null;
|
|
29
|
-
created_by: string | null;
|
|
30
|
-
is_archived: boolean;
|
|
31
|
-
member_count?: number | undefined;
|
|
32
|
-
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
33
13
|
export type Channel = z.infer<typeof ChannelSchema>;
|
|
34
14
|
export declare const ChannelMemberSchema: z.ZodObject<{
|
|
35
15
|
channel_id: z.ZodString;
|
|
36
16
|
agent_id: z.ZodString;
|
|
37
|
-
role: z.ZodEnum<
|
|
17
|
+
role: z.ZodEnum<{
|
|
18
|
+
owner: "owner";
|
|
19
|
+
member: "member";
|
|
20
|
+
}>;
|
|
38
21
|
joined_at: z.ZodString;
|
|
39
22
|
last_read_id: z.ZodNullable<z.ZodString>;
|
|
40
|
-
},
|
|
41
|
-
agent_id: string;
|
|
42
|
-
channel_id: string;
|
|
43
|
-
role: "owner" | "member";
|
|
44
|
-
joined_at: string;
|
|
45
|
-
last_read_id: string | null;
|
|
46
|
-
}, {
|
|
47
|
-
agent_id: string;
|
|
48
|
-
channel_id: string;
|
|
49
|
-
role: "owner" | "member";
|
|
50
|
-
joined_at: string;
|
|
51
|
-
last_read_id: string | null;
|
|
52
|
-
}>;
|
|
23
|
+
}, z.core.$strip>;
|
|
53
24
|
export type ChannelMember = z.infer<typeof ChannelMemberSchema>;
|
|
54
25
|
export declare const CreateChannelRequestSchema: z.ZodObject<{
|
|
55
26
|
name: z.ZodString;
|
|
56
27
|
topic: z.ZodOptional<z.ZodString>;
|
|
57
|
-
},
|
|
58
|
-
name: string;
|
|
59
|
-
topic?: string | undefined;
|
|
60
|
-
}, {
|
|
61
|
-
name: string;
|
|
62
|
-
topic?: string | undefined;
|
|
63
|
-
}>;
|
|
28
|
+
}, z.core.$strip>;
|
|
64
29
|
export type CreateChannelRequest = z.infer<typeof CreateChannelRequestSchema>;
|
|
65
30
|
export declare const UpdateChannelRequestSchema: z.ZodObject<{
|
|
66
31
|
topic: z.ZodOptional<z.ZodString>;
|
|
67
|
-
},
|
|
68
|
-
topic?: string | undefined;
|
|
69
|
-
}, {
|
|
70
|
-
topic?: string | undefined;
|
|
71
|
-
}>;
|
|
32
|
+
}, z.core.$strip>;
|
|
72
33
|
export type UpdateChannelRequest = z.infer<typeof UpdateChannelRequestSchema>;
|
|
73
34
|
export declare const ChannelMemberInfoSchema: z.ZodObject<{
|
|
74
35
|
agent_id: z.ZodString;
|
|
75
36
|
agent_name: z.ZodString;
|
|
76
|
-
role: z.ZodEnum<
|
|
37
|
+
role: z.ZodEnum<{
|
|
38
|
+
owner: "owner";
|
|
39
|
+
member: "member";
|
|
40
|
+
}>;
|
|
77
41
|
joined_at: z.ZodString;
|
|
78
|
-
},
|
|
79
|
-
agent_id: string;
|
|
80
|
-
agent_name: string;
|
|
81
|
-
role: "owner" | "member";
|
|
82
|
-
joined_at: string;
|
|
83
|
-
}, {
|
|
84
|
-
agent_id: string;
|
|
85
|
-
agent_name: string;
|
|
86
|
-
role: "owner" | "member";
|
|
87
|
-
joined_at: string;
|
|
88
|
-
}>;
|
|
42
|
+
}, z.core.$strip>;
|
|
89
43
|
export type ChannelMemberInfo = z.infer<typeof ChannelMemberInfoSchema>;
|
|
90
44
|
export declare const InviteRequestSchema: z.ZodObject<{
|
|
91
45
|
agent: z.ZodString;
|
|
92
|
-
},
|
|
93
|
-
agent: string;
|
|
94
|
-
}, {
|
|
95
|
-
agent: string;
|
|
96
|
-
}>;
|
|
46
|
+
}, z.core.$strip>;
|
|
97
47
|
export type InviteRequest = z.infer<typeof InviteRequestSchema>;
|
|
98
48
|
//# 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,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,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;;;;;;;;;;iBAUxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,mBAAmB;;;;;;;;;iBAM9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,0BAA0B;;;iBAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,0BAA0B;;iBAErC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,uBAAuB;;;;;;;;iBAKlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,mBAAmB;;iBAE9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
package/dist/command.d.ts
CHANGED
|
@@ -2,19 +2,13 @@ import { z } from 'zod';
|
|
|
2
2
|
export declare const CommandParameterSchema: z.ZodObject<{
|
|
3
3
|
name: z.ZodString;
|
|
4
4
|
description: z.ZodOptional<z.ZodString>;
|
|
5
|
-
type: z.ZodEnum<
|
|
5
|
+
type: z.ZodEnum<{
|
|
6
|
+
string: "string";
|
|
7
|
+
number: "number";
|
|
8
|
+
boolean: "boolean";
|
|
9
|
+
}>;
|
|
6
10
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
7
|
-
},
|
|
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
|
-
}>;
|
|
11
|
+
}, z.core.$strip>;
|
|
18
12
|
export type CommandParameter = z.infer<typeof CommandParameterSchema>;
|
|
19
13
|
export declare const AgentCommandSchema: z.ZodObject<{
|
|
20
14
|
id: z.ZodString;
|
|
@@ -26,52 +20,16 @@ export declare const AgentCommandSchema: z.ZodObject<{
|
|
|
26
20
|
parameters: z.ZodArray<z.ZodObject<{
|
|
27
21
|
name: z.ZodString;
|
|
28
22
|
description: z.ZodOptional<z.ZodString>;
|
|
29
|
-
type: z.ZodEnum<
|
|
23
|
+
type: z.ZodEnum<{
|
|
24
|
+
string: "string";
|
|
25
|
+
number: "number";
|
|
26
|
+
boolean: "boolean";
|
|
27
|
+
}>;
|
|
30
28
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
-
},
|
|
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">;
|
|
29
|
+
}, z.core.$strip>>;
|
|
42
30
|
created_at: z.ZodString;
|
|
43
31
|
is_active: z.ZodBoolean;
|
|
44
|
-
},
|
|
45
|
-
id: string;
|
|
46
|
-
workspace_id: string;
|
|
47
|
-
created_at: string;
|
|
48
|
-
description: string;
|
|
49
|
-
command: string;
|
|
50
|
-
handler_agent_id: string;
|
|
51
|
-
handler_agent_name: string;
|
|
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;
|
|
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
|
-
}[];
|
|
73
|
-
is_active: boolean;
|
|
74
|
-
}>;
|
|
32
|
+
}, z.core.$strip>;
|
|
75
33
|
export type AgentCommand = z.infer<typeof AgentCommandSchema>;
|
|
76
34
|
export declare const CreateCommandRequestSchema: z.ZodObject<{
|
|
77
35
|
command: z.ZodString;
|
|
@@ -80,40 +38,14 @@ export declare const CreateCommandRequestSchema: z.ZodObject<{
|
|
|
80
38
|
parameters: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
81
39
|
name: z.ZodString;
|
|
82
40
|
description: z.ZodOptional<z.ZodString>;
|
|
83
|
-
type: z.ZodEnum<
|
|
41
|
+
type: z.ZodEnum<{
|
|
42
|
+
string: "string";
|
|
43
|
+
number: "number";
|
|
44
|
+
boolean: "boolean";
|
|
45
|
+
}>;
|
|
84
46
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
85
|
-
},
|
|
86
|
-
|
|
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;
|
|
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
|
-
}, {
|
|
107
|
-
description: string;
|
|
108
|
-
command: string;
|
|
109
|
-
handler_agent: string;
|
|
110
|
-
parameters?: {
|
|
111
|
-
type: "string" | "number" | "boolean";
|
|
112
|
-
name: string;
|
|
113
|
-
description?: string | undefined;
|
|
114
|
-
required?: boolean | undefined;
|
|
115
|
-
}[] | undefined;
|
|
116
|
-
}>;
|
|
47
|
+
}, z.core.$strip>>>;
|
|
48
|
+
}, z.core.$strip>;
|
|
117
49
|
export type CreateCommandRequest = z.infer<typeof CreateCommandRequestSchema>;
|
|
118
50
|
export declare const CreateCommandResponseSchema: z.ZodObject<{
|
|
119
51
|
id: z.ZodString;
|
|
@@ -123,59 +55,21 @@ export declare const CreateCommandResponseSchema: z.ZodObject<{
|
|
|
123
55
|
parameters: z.ZodArray<z.ZodObject<{
|
|
124
56
|
name: z.ZodString;
|
|
125
57
|
description: z.ZodOptional<z.ZodString>;
|
|
126
|
-
type: z.ZodEnum<
|
|
58
|
+
type: z.ZodEnum<{
|
|
59
|
+
string: "string";
|
|
60
|
+
number: "number";
|
|
61
|
+
boolean: "boolean";
|
|
62
|
+
}>;
|
|
127
63
|
required: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
-
},
|
|
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">;
|
|
64
|
+
}, z.core.$strip>>;
|
|
139
65
|
created_at: z.ZodString;
|
|
140
|
-
},
|
|
141
|
-
id: string;
|
|
142
|
-
created_at: string;
|
|
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
|
-
}[];
|
|
151
|
-
handler_agent: string;
|
|
152
|
-
}, {
|
|
153
|
-
id: string;
|
|
154
|
-
created_at: string;
|
|
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
|
-
}>;
|
|
66
|
+
}, z.core.$strip>;
|
|
165
67
|
export type CreateCommandResponse = z.infer<typeof CreateCommandResponseSchema>;
|
|
166
68
|
export declare const InvokeCommandRequestSchema: z.ZodObject<{
|
|
167
69
|
channel: z.ZodString;
|
|
168
70
|
args: z.ZodOptional<z.ZodString>;
|
|
169
71
|
parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
170
|
-
},
|
|
171
|
-
channel: string;
|
|
172
|
-
parameters?: Record<string, unknown> | undefined;
|
|
173
|
-
args?: string | undefined;
|
|
174
|
-
}, {
|
|
175
|
-
channel: string;
|
|
176
|
-
parameters?: Record<string, unknown> | undefined;
|
|
177
|
-
args?: string | undefined;
|
|
178
|
-
}>;
|
|
72
|
+
}, z.core.$strip>;
|
|
179
73
|
export type InvokeCommandRequest = z.infer<typeof InvokeCommandRequestSchema>;
|
|
180
74
|
export declare const CommandInvocationSchema: z.ZodObject<{
|
|
181
75
|
id: z.ZodString;
|
|
@@ -186,24 +80,6 @@ export declare const CommandInvocationSchema: z.ZodObject<{
|
|
|
186
80
|
parameters: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
187
81
|
response_message_id: z.ZodNullable<z.ZodString>;
|
|
188
82
|
created_at: z.ZodString;
|
|
189
|
-
},
|
|
190
|
-
id: string;
|
|
191
|
-
created_at: string;
|
|
192
|
-
channel: string;
|
|
193
|
-
command: string;
|
|
194
|
-
parameters: Record<string, unknown> | null;
|
|
195
|
-
args: string | null;
|
|
196
|
-
invoked_by: string;
|
|
197
|
-
response_message_id: string | null;
|
|
198
|
-
}, {
|
|
199
|
-
id: string;
|
|
200
|
-
created_at: string;
|
|
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
|
-
}>;
|
|
83
|
+
}, z.core.$strip>;
|
|
208
84
|
export type CommandInvocation = z.infer<typeof CommandInvocationSchema>;
|
|
209
85
|
//# 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,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,sBAAsB
|
|
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;;;;;;;;;iBAKjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;iBAU7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;iBAKrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;iBAOtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,0BAA0B;;;;iBAIrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,uBAAuB;;;;;;;;;iBASlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
package/dist/command.js
CHANGED
|
@@ -33,7 +33,7 @@ export const CreateCommandResponseSchema = z.object({
|
|
|
33
33
|
export const InvokeCommandRequestSchema = z.object({
|
|
34
34
|
channel: z.string(),
|
|
35
35
|
args: z.string().optional(),
|
|
36
|
-
parameters: z.record(z.unknown()).optional(),
|
|
36
|
+
parameters: z.record(z.string(), z.unknown()).optional(),
|
|
37
37
|
});
|
|
38
38
|
export const CommandInvocationSchema = z.object({
|
|
39
39
|
id: z.string(),
|
|
@@ -41,7 +41,7 @@ export const CommandInvocationSchema = z.object({
|
|
|
41
41
|
channel: z.string(),
|
|
42
42
|
invoked_by: z.string(),
|
|
43
43
|
args: z.string().nullable(),
|
|
44
|
-
parameters: z.record(z.unknown()).nullable(),
|
|
44
|
+
parameters: z.record(z.string(), z.unknown()).nullable(),
|
|
45
45
|
response_message_id: z.string().nullable(),
|
|
46
46
|
created_at: z.string(),
|
|
47
47
|
});
|
package/dist/command.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"command.js","sourceRoot":"","sources":["../src/command.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC7C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAClC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,EAAE,SAAS,CAAC,CAAC;IAC7C,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE,CAAC,QAAQ,EAAE;CACjC,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,gBAAgB,EAAE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
|
|
3
|
+
"1:1": "1:1";
|
|
4
|
+
group: "group";
|
|
5
|
+
}>;
|
|
3
6
|
export type DmType = z.infer<typeof DmTypeSchema>;
|
|
4
7
|
export declare const DmConversationSchema: z.ZodObject<{
|
|
5
8
|
id: z.ZodString;
|
|
6
9
|
workspace_id: z.ZodString;
|
|
7
10
|
channel_id: z.ZodString;
|
|
8
|
-
dm_type: z.ZodEnum<
|
|
11
|
+
dm_type: z.ZodEnum<{
|
|
12
|
+
"1:1": "1:1";
|
|
13
|
+
group: "group";
|
|
14
|
+
}>;
|
|
9
15
|
name: z.ZodNullable<z.ZodString>;
|
|
10
16
|
created_at: z.ZodString;
|
|
11
|
-
},
|
|
12
|
-
id: string;
|
|
13
|
-
workspace_id: string;
|
|
14
|
-
name: string | null;
|
|
15
|
-
created_at: string;
|
|
16
|
-
channel_id: string;
|
|
17
|
-
dm_type: "1:1" | "group";
|
|
18
|
-
}, {
|
|
19
|
-
id: string;
|
|
20
|
-
workspace_id: string;
|
|
21
|
-
name: string | null;
|
|
22
|
-
created_at: string;
|
|
23
|
-
channel_id: string;
|
|
24
|
-
dm_type: "1:1" | "group";
|
|
25
|
-
}>;
|
|
17
|
+
}, z.core.$strip>;
|
|
26
18
|
export type DmConversation = z.infer<typeof DmConversationSchema>;
|
|
27
19
|
export declare const DmParticipantSchema: z.ZodObject<{
|
|
28
20
|
conversation_id: z.ZodString;
|
|
29
21
|
agent_id: z.ZodString;
|
|
30
22
|
joined_at: z.ZodString;
|
|
31
23
|
left_at: z.ZodNullable<z.ZodString>;
|
|
32
|
-
},
|
|
33
|
-
agent_id: string;
|
|
34
|
-
conversation_id: string;
|
|
35
|
-
joined_at: string;
|
|
36
|
-
left_at: string | null;
|
|
37
|
-
}, {
|
|
38
|
-
agent_id: string;
|
|
39
|
-
conversation_id: string;
|
|
40
|
-
joined_at: string;
|
|
41
|
-
left_at: string | null;
|
|
42
|
-
}>;
|
|
24
|
+
}, z.core.$strip>;
|
|
43
25
|
export type DmParticipant = z.infer<typeof DmParticipantSchema>;
|
|
44
26
|
export declare const SendDmRequestSchema: z.ZodObject<{
|
|
45
27
|
to: z.ZodString;
|
|
46
28
|
text: z.ZodString;
|
|
47
|
-
},
|
|
48
|
-
text: string;
|
|
49
|
-
to: string;
|
|
50
|
-
}, {
|
|
51
|
-
text: string;
|
|
52
|
-
to: string;
|
|
53
|
-
}>;
|
|
29
|
+
}, z.core.$strip>;
|
|
54
30
|
export type SendDmRequest = z.infer<typeof SendDmRequestSchema>;
|
|
55
31
|
export declare const CreateGroupDmRequestSchema: z.ZodObject<{
|
|
56
|
-
participants: z.ZodArray<z.ZodString
|
|
32
|
+
participants: z.ZodArray<z.ZodString>;
|
|
57
33
|
name: z.ZodOptional<z.ZodString>;
|
|
58
34
|
text: z.ZodString;
|
|
59
|
-
},
|
|
60
|
-
text: string;
|
|
61
|
-
participants: string[];
|
|
62
|
-
name?: string | undefined;
|
|
63
|
-
}, {
|
|
64
|
-
text: string;
|
|
65
|
-
participants: string[];
|
|
66
|
-
name?: string | undefined;
|
|
67
|
-
}>;
|
|
35
|
+
}, z.core.$strip>;
|
|
68
36
|
export type CreateGroupDmRequest = z.infer<typeof CreateGroupDmRequestSchema>;
|
|
69
37
|
export declare const DmConversationSummarySchema: z.ZodObject<{
|
|
70
38
|
id: z.ZodString;
|
|
71
|
-
type: z.ZodEnum<
|
|
39
|
+
type: z.ZodEnum<{
|
|
40
|
+
"1:1": "1:1";
|
|
41
|
+
group: "group";
|
|
42
|
+
}>;
|
|
72
43
|
name: z.ZodNullable<z.ZodString>;
|
|
73
|
-
participants: z.ZodArray<z.ZodString
|
|
44
|
+
participants: z.ZodArray<z.ZodString>;
|
|
74
45
|
last_message: z.ZodNullable<z.ZodString>;
|
|
75
46
|
unread_count: z.ZodNumber;
|
|
76
|
-
},
|
|
77
|
-
type: "1:1" | "group";
|
|
78
|
-
id: string;
|
|
79
|
-
name: string | null;
|
|
80
|
-
unread_count: number;
|
|
81
|
-
last_message: string | null;
|
|
82
|
-
participants: string[];
|
|
83
|
-
}, {
|
|
84
|
-
type: "1:1" | "group";
|
|
85
|
-
id: string;
|
|
86
|
-
name: string | null;
|
|
87
|
-
unread_count: number;
|
|
88
|
-
last_message: string | null;
|
|
89
|
-
participants: string[];
|
|
90
|
-
}>;
|
|
47
|
+
}, z.core.$strip>;
|
|
91
48
|
export type DmConversationSummary = z.infer<typeof DmConversationSummarySchema>;
|
|
92
49
|
//# sourceMappingURL=dm.d.ts.map
|
package/dist/dm.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"dm.d.ts","sourceRoot":"","sources":["../src/dm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY,
|
|
1
|
+
{"version":3,"file":"dm.d.ts","sourceRoot":"","sources":["../src/dm.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,YAAY;;;EAA2B,CAAC;AACrD,MAAM,MAAM,MAAM,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,YAAY,CAAC,CAAC;AAElD,eAAO,MAAM,oBAAoB;;;;;;;;;;iBAO/B,CAAC;AACH,MAAM,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,oBAAoB,CAAC,CAAC;AAElE,eAAO,MAAM,mBAAmB;;;;;iBAK9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,mBAAmB;;;iBAG9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,0BAA0B;;;;iBAIrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;;;;;;;;;iBAOtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC"}
|