@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/message.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../src/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"message.d.ts","sourceRoot":"","sources":["../src/message.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAMxB,eAAO,MAAM,iBAAiB;;;iBAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,iBAAiB;;;;;;iBAG5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;;;;iBAM7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;iBAG7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,eAAe;;;iBAG1B,CAAC;AACH,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,kBAAkB;;iBAE7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;2BAM7B,CAAC;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,aAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWxB,CAAC;AACH,MAAM,MAAM,OAAO,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,aAAa,CAAC,CAAC;AAEpD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAWhC,CAAC;AACH,MAAM,MAAM,eAAe,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,qBAAqB,CAAC,CAAC;AAEpE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAInC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,sBAAsB;;;;iBAIjC,CAAC;AACH,MAAM,MAAM,gBAAgB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAEtE,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAGnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
package/dist/reaction.d.ts
CHANGED
|
@@ -5,40 +5,16 @@ export declare const ReactionSchema: z.ZodObject<{
|
|
|
5
5
|
agent_id: z.ZodString;
|
|
6
6
|
emoji: z.ZodString;
|
|
7
7
|
created_at: z.ZodString;
|
|
8
|
-
},
|
|
9
|
-
id: string;
|
|
10
|
-
created_at: string;
|
|
11
|
-
agent_id: string;
|
|
12
|
-
message_id: string;
|
|
13
|
-
emoji: string;
|
|
14
|
-
}, {
|
|
15
|
-
id: string;
|
|
16
|
-
created_at: string;
|
|
17
|
-
agent_id: string;
|
|
18
|
-
message_id: string;
|
|
19
|
-
emoji: string;
|
|
20
|
-
}>;
|
|
8
|
+
}, z.core.$strip>;
|
|
21
9
|
export type Reaction = z.infer<typeof ReactionSchema>;
|
|
22
10
|
export declare const AddReactionRequestSchema: z.ZodObject<{
|
|
23
11
|
emoji: z.ZodString;
|
|
24
|
-
},
|
|
25
|
-
emoji: string;
|
|
26
|
-
}, {
|
|
27
|
-
emoji: string;
|
|
28
|
-
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
29
13
|
export type AddReactionRequest = z.infer<typeof AddReactionRequestSchema>;
|
|
30
14
|
export declare const ReactionGroupSchema: z.ZodObject<{
|
|
31
15
|
emoji: z.ZodString;
|
|
32
16
|
count: z.ZodNumber;
|
|
33
|
-
agents: z.ZodArray<z.ZodString
|
|
34
|
-
},
|
|
35
|
-
agents: string[];
|
|
36
|
-
emoji: string;
|
|
37
|
-
count: number;
|
|
38
|
-
}, {
|
|
39
|
-
agents: string[];
|
|
40
|
-
emoji: string;
|
|
41
|
-
count: number;
|
|
42
|
-
}>;
|
|
17
|
+
agents: z.ZodArray<z.ZodString>;
|
|
18
|
+
}, z.core.$strip>;
|
|
43
19
|
export type ReactionGroup = z.infer<typeof ReactionGroupSchema>;
|
|
44
20
|
//# sourceMappingURL=reaction.d.ts.map
|
package/dist/reaction.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"reaction.d.ts","sourceRoot":"","sources":["../src/reaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc
|
|
1
|
+
{"version":3,"file":"reaction.d.ts","sourceRoot":"","sources":["../src/reaction.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,cAAc;;;;;;iBAMzB,CAAC;AACH,MAAM,MAAM,QAAQ,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,cAAc,CAAC,CAAC;AAEtD,eAAO,MAAM,wBAAwB;;iBAEnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,mBAAmB;;;;iBAI9B,CAAC;AACH,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC"}
|
package/dist/receipt.d.ts
CHANGED
|
@@ -3,42 +3,18 @@ export declare const ReadReceiptSchema: z.ZodObject<{
|
|
|
3
3
|
message_id: z.ZodString;
|
|
4
4
|
agent_id: z.ZodString;
|
|
5
5
|
read_at: z.ZodString;
|
|
6
|
-
},
|
|
7
|
-
agent_id: string;
|
|
8
|
-
message_id: string;
|
|
9
|
-
read_at: string;
|
|
10
|
-
}, {
|
|
11
|
-
agent_id: string;
|
|
12
|
-
message_id: string;
|
|
13
|
-
read_at: string;
|
|
14
|
-
}>;
|
|
6
|
+
}, z.core.$strip>;
|
|
15
7
|
export type ReadReceipt = z.infer<typeof ReadReceiptSchema>;
|
|
16
8
|
export declare const ReaderInfoSchema: z.ZodObject<{
|
|
17
9
|
agent_name: z.ZodString;
|
|
18
10
|
agent_id: z.ZodString;
|
|
19
11
|
read_at: z.ZodString;
|
|
20
|
-
},
|
|
21
|
-
agent_id: string;
|
|
22
|
-
agent_name: string;
|
|
23
|
-
read_at: string;
|
|
24
|
-
}, {
|
|
25
|
-
agent_id: string;
|
|
26
|
-
agent_name: string;
|
|
27
|
-
read_at: string;
|
|
28
|
-
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
29
13
|
export type ReaderInfo = z.infer<typeof ReaderInfoSchema>;
|
|
30
14
|
export declare const ChannelReadStatusSchema: z.ZodObject<{
|
|
31
15
|
agent_name: z.ZodString;
|
|
32
16
|
last_read_id: z.ZodNullable<z.ZodString>;
|
|
33
17
|
last_read_at: z.ZodNullable<z.ZodString>;
|
|
34
|
-
},
|
|
35
|
-
agent_name: string;
|
|
36
|
-
last_read_id: string | null;
|
|
37
|
-
last_read_at: string | null;
|
|
38
|
-
}, {
|
|
39
|
-
agent_name: string;
|
|
40
|
-
last_read_id: string | null;
|
|
41
|
-
last_read_at: string | null;
|
|
42
|
-
}>;
|
|
18
|
+
}, z.core.$strip>;
|
|
43
19
|
export type ChannelReadStatus = z.infer<typeof ChannelReadStatusSchema>;
|
|
44
20
|
//# sourceMappingURL=receipt.d.ts.map
|
package/dist/receipt.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"receipt.d.ts","sourceRoot":"","sources":["../src/receipt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB
|
|
1
|
+
{"version":3,"file":"receipt.d.ts","sourceRoot":"","sources":["../src/receipt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,iBAAiB;;;;iBAI5B,CAAC;AACH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,gBAAgB;;;;iBAI3B,CAAC;AACH,MAAM,MAAM,UAAU,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gBAAgB,CAAC,CAAC;AAE1D,eAAO,MAAM,uBAAuB;;;;iBAIlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC"}
|
package/dist/subscription.d.ts
CHANGED
|
@@ -1,129 +1,121 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const SubscribableEventTypeSchema: z.ZodEnum<
|
|
2
|
+
export declare const SubscribableEventTypeSchema: z.ZodEnum<{
|
|
3
|
+
"message.created": "message.created";
|
|
4
|
+
"message.updated": "message.updated";
|
|
5
|
+
"thread.reply": "thread.reply";
|
|
6
|
+
"reaction.added": "reaction.added";
|
|
7
|
+
"reaction.removed": "reaction.removed";
|
|
8
|
+
"dm.received": "dm.received";
|
|
9
|
+
"group_dm.received": "group_dm.received";
|
|
10
|
+
"agent.online": "agent.online";
|
|
11
|
+
"agent.offline": "agent.offline";
|
|
12
|
+
"channel.created": "channel.created";
|
|
13
|
+
"channel.updated": "channel.updated";
|
|
14
|
+
"channel.archived": "channel.archived";
|
|
15
|
+
"member.joined": "member.joined";
|
|
16
|
+
"member.left": "member.left";
|
|
17
|
+
"message.read": "message.read";
|
|
18
|
+
"file.uploaded": "file.uploaded";
|
|
19
|
+
"webhook.received": "webhook.received";
|
|
20
|
+
"command.invoked": "command.invoked";
|
|
21
|
+
}>;
|
|
3
22
|
export type SubscribableEventType = z.infer<typeof SubscribableEventTypeSchema>;
|
|
4
23
|
export declare const SubscriptionFilterSchema: z.ZodObject<{
|
|
5
24
|
channel: z.ZodOptional<z.ZodString>;
|
|
6
25
|
mentions: z.ZodOptional<z.ZodString>;
|
|
7
|
-
},
|
|
8
|
-
channel?: string | undefined;
|
|
9
|
-
mentions?: string | undefined;
|
|
10
|
-
}, {
|
|
11
|
-
channel?: string | undefined;
|
|
12
|
-
mentions?: string | undefined;
|
|
13
|
-
}>;
|
|
26
|
+
}, z.core.$strip>;
|
|
14
27
|
export type SubscriptionFilter = z.infer<typeof SubscriptionFilterSchema>;
|
|
15
28
|
export declare const EventSubscriptionSchema: z.ZodObject<{
|
|
16
29
|
id: z.ZodString;
|
|
17
30
|
workspace_id: z.ZodString;
|
|
18
|
-
events: z.ZodArray<z.ZodEnum<
|
|
31
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
32
|
+
"message.created": "message.created";
|
|
33
|
+
"message.updated": "message.updated";
|
|
34
|
+
"thread.reply": "thread.reply";
|
|
35
|
+
"reaction.added": "reaction.added";
|
|
36
|
+
"reaction.removed": "reaction.removed";
|
|
37
|
+
"dm.received": "dm.received";
|
|
38
|
+
"group_dm.received": "group_dm.received";
|
|
39
|
+
"agent.online": "agent.online";
|
|
40
|
+
"agent.offline": "agent.offline";
|
|
41
|
+
"channel.created": "channel.created";
|
|
42
|
+
"channel.updated": "channel.updated";
|
|
43
|
+
"channel.archived": "channel.archived";
|
|
44
|
+
"member.joined": "member.joined";
|
|
45
|
+
"member.left": "member.left";
|
|
46
|
+
"message.read": "message.read";
|
|
47
|
+
"file.uploaded": "file.uploaded";
|
|
48
|
+
"webhook.received": "webhook.received";
|
|
49
|
+
"command.invoked": "command.invoked";
|
|
50
|
+
}>>;
|
|
19
51
|
filter: z.ZodNullable<z.ZodObject<{
|
|
20
52
|
channel: z.ZodOptional<z.ZodString>;
|
|
21
53
|
mentions: z.ZodOptional<z.ZodString>;
|
|
22
|
-
},
|
|
23
|
-
channel?: string | undefined;
|
|
24
|
-
mentions?: string | undefined;
|
|
25
|
-
}, {
|
|
26
|
-
channel?: string | undefined;
|
|
27
|
-
mentions?: string | undefined;
|
|
28
|
-
}>>;
|
|
54
|
+
}, z.core.$strip>>;
|
|
29
55
|
url: z.ZodString;
|
|
30
56
|
secret: z.ZodNullable<z.ZodString>;
|
|
31
57
|
is_active: z.ZodBoolean;
|
|
32
58
|
created_at: z.ZodString;
|
|
33
|
-
},
|
|
34
|
-
filter: {
|
|
35
|
-
channel?: string | undefined;
|
|
36
|
-
mentions?: string | undefined;
|
|
37
|
-
} | null;
|
|
38
|
-
id: string;
|
|
39
|
-
workspace_id: string;
|
|
40
|
-
created_at: string;
|
|
41
|
-
is_active: boolean;
|
|
42
|
-
url: string;
|
|
43
|
-
events: ("message.created" | "message.updated" | "thread.reply" | "reaction.added" | "reaction.removed" | "dm.received" | "group_dm.received" | "agent.online" | "agent.offline" | "channel.created" | "channel.updated" | "channel.archived" | "member.joined" | "member.left" | "message.read" | "file.uploaded" | "webhook.received" | "command.invoked")[];
|
|
44
|
-
secret: string | null;
|
|
45
|
-
}, {
|
|
46
|
-
filter: {
|
|
47
|
-
channel?: string | undefined;
|
|
48
|
-
mentions?: string | undefined;
|
|
49
|
-
} | null;
|
|
50
|
-
id: string;
|
|
51
|
-
workspace_id: string;
|
|
52
|
-
created_at: string;
|
|
53
|
-
is_active: boolean;
|
|
54
|
-
url: string;
|
|
55
|
-
events: ("message.created" | "message.updated" | "thread.reply" | "reaction.added" | "reaction.removed" | "dm.received" | "group_dm.received" | "agent.online" | "agent.offline" | "channel.created" | "channel.updated" | "channel.archived" | "member.joined" | "member.left" | "message.read" | "file.uploaded" | "webhook.received" | "command.invoked")[];
|
|
56
|
-
secret: string | null;
|
|
57
|
-
}>;
|
|
59
|
+
}, z.core.$strip>;
|
|
58
60
|
export type EventSubscription = z.infer<typeof EventSubscriptionSchema>;
|
|
59
61
|
export declare const CreateSubscriptionRequestSchema: z.ZodObject<{
|
|
60
|
-
events: z.ZodArray<z.ZodEnum<
|
|
62
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
63
|
+
"message.created": "message.created";
|
|
64
|
+
"message.updated": "message.updated";
|
|
65
|
+
"thread.reply": "thread.reply";
|
|
66
|
+
"reaction.added": "reaction.added";
|
|
67
|
+
"reaction.removed": "reaction.removed";
|
|
68
|
+
"dm.received": "dm.received";
|
|
69
|
+
"group_dm.received": "group_dm.received";
|
|
70
|
+
"agent.online": "agent.online";
|
|
71
|
+
"agent.offline": "agent.offline";
|
|
72
|
+
"channel.created": "channel.created";
|
|
73
|
+
"channel.updated": "channel.updated";
|
|
74
|
+
"channel.archived": "channel.archived";
|
|
75
|
+
"member.joined": "member.joined";
|
|
76
|
+
"member.left": "member.left";
|
|
77
|
+
"message.read": "message.read";
|
|
78
|
+
"file.uploaded": "file.uploaded";
|
|
79
|
+
"webhook.received": "webhook.received";
|
|
80
|
+
"command.invoked": "command.invoked";
|
|
81
|
+
}>>;
|
|
61
82
|
filter: z.ZodOptional<z.ZodObject<{
|
|
62
83
|
channel: z.ZodOptional<z.ZodString>;
|
|
63
84
|
mentions: z.ZodOptional<z.ZodString>;
|
|
64
|
-
},
|
|
65
|
-
channel?: string | undefined;
|
|
66
|
-
mentions?: string | undefined;
|
|
67
|
-
}, {
|
|
68
|
-
channel?: string | undefined;
|
|
69
|
-
mentions?: string | undefined;
|
|
70
|
-
}>>;
|
|
85
|
+
}, z.core.$strip>>;
|
|
71
86
|
url: z.ZodString;
|
|
72
87
|
secret: z.ZodOptional<z.ZodString>;
|
|
73
|
-
},
|
|
74
|
-
url: string;
|
|
75
|
-
events: ("message.created" | "message.updated" | "thread.reply" | "reaction.added" | "reaction.removed" | "dm.received" | "group_dm.received" | "agent.online" | "agent.offline" | "channel.created" | "channel.updated" | "channel.archived" | "member.joined" | "member.left" | "message.read" | "file.uploaded" | "webhook.received" | "command.invoked")[];
|
|
76
|
-
filter?: {
|
|
77
|
-
channel?: string | undefined;
|
|
78
|
-
mentions?: string | undefined;
|
|
79
|
-
} | undefined;
|
|
80
|
-
secret?: string | undefined;
|
|
81
|
-
}, {
|
|
82
|
-
url: string;
|
|
83
|
-
events: ("message.created" | "message.updated" | "thread.reply" | "reaction.added" | "reaction.removed" | "dm.received" | "group_dm.received" | "agent.online" | "agent.offline" | "channel.created" | "channel.updated" | "channel.archived" | "member.joined" | "member.left" | "message.read" | "file.uploaded" | "webhook.received" | "command.invoked")[];
|
|
84
|
-
filter?: {
|
|
85
|
-
channel?: string | undefined;
|
|
86
|
-
mentions?: string | undefined;
|
|
87
|
-
} | undefined;
|
|
88
|
-
secret?: string | undefined;
|
|
89
|
-
}>;
|
|
88
|
+
}, z.core.$strip>;
|
|
90
89
|
export type CreateSubscriptionRequest = z.infer<typeof CreateSubscriptionRequestSchema>;
|
|
91
90
|
export declare const CreateSubscriptionResponseSchema: z.ZodObject<{
|
|
92
91
|
id: z.ZodString;
|
|
93
|
-
events: z.ZodArray<z.ZodEnum<
|
|
92
|
+
events: z.ZodArray<z.ZodEnum<{
|
|
93
|
+
"message.created": "message.created";
|
|
94
|
+
"message.updated": "message.updated";
|
|
95
|
+
"thread.reply": "thread.reply";
|
|
96
|
+
"reaction.added": "reaction.added";
|
|
97
|
+
"reaction.removed": "reaction.removed";
|
|
98
|
+
"dm.received": "dm.received";
|
|
99
|
+
"group_dm.received": "group_dm.received";
|
|
100
|
+
"agent.online": "agent.online";
|
|
101
|
+
"agent.offline": "agent.offline";
|
|
102
|
+
"channel.created": "channel.created";
|
|
103
|
+
"channel.updated": "channel.updated";
|
|
104
|
+
"channel.archived": "channel.archived";
|
|
105
|
+
"member.joined": "member.joined";
|
|
106
|
+
"member.left": "member.left";
|
|
107
|
+
"message.read": "message.read";
|
|
108
|
+
"file.uploaded": "file.uploaded";
|
|
109
|
+
"webhook.received": "webhook.received";
|
|
110
|
+
"command.invoked": "command.invoked";
|
|
111
|
+
}>>;
|
|
94
112
|
filter: z.ZodNullable<z.ZodObject<{
|
|
95
113
|
channel: z.ZodOptional<z.ZodString>;
|
|
96
114
|
mentions: z.ZodOptional<z.ZodString>;
|
|
97
|
-
},
|
|
98
|
-
channel?: string | undefined;
|
|
99
|
-
mentions?: string | undefined;
|
|
100
|
-
}, {
|
|
101
|
-
channel?: string | undefined;
|
|
102
|
-
mentions?: string | undefined;
|
|
103
|
-
}>>;
|
|
115
|
+
}, z.core.$strip>>;
|
|
104
116
|
url: z.ZodString;
|
|
105
117
|
is_active: z.ZodBoolean;
|
|
106
118
|
created_at: z.ZodString;
|
|
107
|
-
},
|
|
108
|
-
filter: {
|
|
109
|
-
channel?: string | undefined;
|
|
110
|
-
mentions?: string | undefined;
|
|
111
|
-
} | null;
|
|
112
|
-
id: string;
|
|
113
|
-
created_at: string;
|
|
114
|
-
is_active: boolean;
|
|
115
|
-
url: string;
|
|
116
|
-
events: ("message.created" | "message.updated" | "thread.reply" | "reaction.added" | "reaction.removed" | "dm.received" | "group_dm.received" | "agent.online" | "agent.offline" | "channel.created" | "channel.updated" | "channel.archived" | "member.joined" | "member.left" | "message.read" | "file.uploaded" | "webhook.received" | "command.invoked")[];
|
|
117
|
-
}, {
|
|
118
|
-
filter: {
|
|
119
|
-
channel?: string | undefined;
|
|
120
|
-
mentions?: string | undefined;
|
|
121
|
-
} | null;
|
|
122
|
-
id: string;
|
|
123
|
-
created_at: string;
|
|
124
|
-
is_active: boolean;
|
|
125
|
-
url: string;
|
|
126
|
-
events: ("message.created" | "message.updated" | "thread.reply" | "reaction.added" | "reaction.removed" | "dm.received" | "group_dm.received" | "agent.online" | "agent.offline" | "channel.created" | "channel.updated" | "channel.archived" | "member.joined" | "member.left" | "message.read" | "file.uploaded" | "webhook.received" | "command.invoked")[];
|
|
127
|
-
}>;
|
|
119
|
+
}, z.core.$strip>;
|
|
128
120
|
export type CreateSubscriptionResponse = z.infer<typeof CreateSubscriptionResponseSchema>;
|
|
129
121
|
//# sourceMappingURL=subscription.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../src/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B,
|
|
1
|
+
{"version":3,"file":"subscription.d.ts","sourceRoot":"","sources":["../src/subscription.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;EAmBtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,wBAAwB;;;iBAGnC,CAAC;AACH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC;AAE1E,eAAO,MAAM,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBASlC,CAAC;AACH,MAAM,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,uBAAuB,CAAC,CAAC;AAExE,eAAO,MAAM,+BAA+B;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAK1C,CAAC;AACH,MAAM,MAAM,yBAAyB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,+BAA+B,CAAC,CAAC;AAExF,eAAO,MAAM,gCAAgC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;iBAO3C,CAAC;AACH,MAAM,MAAM,0BAA0B,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,gCAAgC,CAAC,CAAC"}
|
package/dist/webhook.d.ts
CHANGED
|
@@ -9,38 +9,12 @@ export declare const WebhookSchema: z.ZodObject<{
|
|
|
9
9
|
created_by: z.ZodNullable<z.ZodString>;
|
|
10
10
|
created_at: z.ZodString;
|
|
11
11
|
is_active: z.ZodBoolean;
|
|
12
|
-
},
|
|
13
|
-
id: string;
|
|
14
|
-
workspace_id: string;
|
|
15
|
-
name: string;
|
|
16
|
-
created_at: string;
|
|
17
|
-
channel_name: string;
|
|
18
|
-
created_by: string | null;
|
|
19
|
-
channel_id: string;
|
|
20
|
-
is_active: boolean;
|
|
21
|
-
url: string;
|
|
22
|
-
}, {
|
|
23
|
-
id: string;
|
|
24
|
-
workspace_id: string;
|
|
25
|
-
name: string;
|
|
26
|
-
created_at: string;
|
|
27
|
-
channel_name: string;
|
|
28
|
-
created_by: string | null;
|
|
29
|
-
channel_id: string;
|
|
30
|
-
is_active: boolean;
|
|
31
|
-
url: string;
|
|
32
|
-
}>;
|
|
12
|
+
}, z.core.$strip>;
|
|
33
13
|
export type Webhook = z.infer<typeof WebhookSchema>;
|
|
34
14
|
export declare const CreateWebhookRequestSchema: z.ZodObject<{
|
|
35
15
|
name: z.ZodString;
|
|
36
16
|
channel: z.ZodString;
|
|
37
|
-
},
|
|
38
|
-
name: string;
|
|
39
|
-
channel: string;
|
|
40
|
-
}, {
|
|
41
|
-
name: string;
|
|
42
|
-
channel: string;
|
|
43
|
-
}>;
|
|
17
|
+
}, z.core.$strip>;
|
|
44
18
|
export type CreateWebhookRequest = z.infer<typeof CreateWebhookRequestSchema>;
|
|
45
19
|
export declare const CreateWebhookResponseSchema: z.ZodObject<{
|
|
46
20
|
webhook_id: z.ZodString;
|
|
@@ -48,52 +22,20 @@ export declare const CreateWebhookResponseSchema: z.ZodObject<{
|
|
|
48
22
|
channel: z.ZodString;
|
|
49
23
|
url: z.ZodString;
|
|
50
24
|
created_at: z.ZodString;
|
|
51
|
-
},
|
|
52
|
-
name: string;
|
|
53
|
-
created_at: string;
|
|
54
|
-
channel: string;
|
|
55
|
-
url: string;
|
|
56
|
-
webhook_id: string;
|
|
57
|
-
}, {
|
|
58
|
-
name: string;
|
|
59
|
-
created_at: string;
|
|
60
|
-
channel: string;
|
|
61
|
-
url: string;
|
|
62
|
-
webhook_id: string;
|
|
63
|
-
}>;
|
|
25
|
+
}, z.core.$strip>;
|
|
64
26
|
export type CreateWebhookResponse = z.infer<typeof CreateWebhookResponseSchema>;
|
|
65
27
|
export declare const WebhookTriggerRequestSchema: z.ZodObject<{
|
|
66
28
|
text: z.ZodOptional<z.ZodString>;
|
|
67
|
-
blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown
|
|
29
|
+
blocks: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
|
|
68
30
|
source: z.ZodOptional<z.ZodString>;
|
|
69
31
|
payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
|
|
70
|
-
},
|
|
71
|
-
text?: string | undefined;
|
|
72
|
-
source?: string | undefined;
|
|
73
|
-
blocks?: unknown[] | undefined;
|
|
74
|
-
payload?: Record<string, unknown> | undefined;
|
|
75
|
-
}, {
|
|
76
|
-
text?: string | undefined;
|
|
77
|
-
source?: string | undefined;
|
|
78
|
-
blocks?: unknown[] | undefined;
|
|
79
|
-
payload?: Record<string, unknown> | undefined;
|
|
80
|
-
}>;
|
|
32
|
+
}, z.core.$strip>;
|
|
81
33
|
export type WebhookTriggerRequest = z.infer<typeof WebhookTriggerRequestSchema>;
|
|
82
34
|
export declare const WebhookTriggerResponseSchema: z.ZodObject<{
|
|
83
35
|
message_id: z.ZodString;
|
|
84
36
|
channel: z.ZodString;
|
|
85
37
|
text: z.ZodString;
|
|
86
38
|
created_at: z.ZodString;
|
|
87
|
-
},
|
|
88
|
-
created_at: string;
|
|
89
|
-
channel: string;
|
|
90
|
-
text: string;
|
|
91
|
-
message_id: string;
|
|
92
|
-
}, {
|
|
93
|
-
created_at: string;
|
|
94
|
-
channel: string;
|
|
95
|
-
text: string;
|
|
96
|
-
message_id: string;
|
|
97
|
-
}>;
|
|
39
|
+
}, z.core.$strip>;
|
|
98
40
|
export type WebhookTriggerResponse = z.infer<typeof WebhookTriggerResponseSchema>;
|
|
99
41
|
//# sourceMappingURL=webhook.d.ts.map
|
package/dist/webhook.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../src/webhook.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,eAAO,MAAM,aAAa
|
|
1
|
+
{"version":3,"file":"webhook.d.ts","sourceRoot":"","sources":["../src/webhook.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,0BAA0B;;;iBAGrC,CAAC;AACH,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC;AAE9E,eAAO,MAAM,2BAA2B;;;;;;iBAMtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,2BAA2B;;;;;iBAKtC,CAAC;AACH,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,4BAA4B;;;;;iBAKvC,CAAC;AACH,MAAM,MAAM,sBAAsB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,4BAA4B,CAAC,CAAC"}
|
package/dist/webhook.js
CHANGED
|
@@ -25,7 +25,7 @@ export const WebhookTriggerRequestSchema = z.object({
|
|
|
25
25
|
text: z.string().optional(),
|
|
26
26
|
blocks: z.array(z.unknown()).optional(),
|
|
27
27
|
source: z.string().optional(),
|
|
28
|
-
payload: z.record(z.unknown()).optional(),
|
|
28
|
+
payload: z.record(z.string(), z.unknown()).optional(),
|
|
29
29
|
});
|
|
30
30
|
export const WebhookTriggerResponseSchema = z.object({
|
|
31
31
|
message_id: z.string(),
|
package/dist/webhook.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"webhook.js","sourceRoot":"","sources":["../src/webhook.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,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,GAAG,EAAE,CAAC,CAAC,MAAM,EAAE;IACf,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,SAAS,EAAE,CAAC,CAAC,OAAO,EAAE;CACvB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IACjD,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAC;AAGH,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,UAAU,EAAE,CAAC,CAAC,MAA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
7
|
-
plan: z.ZodEnum<
|
|
7
|
+
plan: z.ZodEnum<{
|
|
8
|
+
free: "free";
|
|
9
|
+
pro: "pro";
|
|
10
|
+
enterprise: "enterprise";
|
|
11
|
+
}>;
|
|
8
12
|
stripe_customer_id: z.ZodNullable<z.ZodString>;
|
|
9
13
|
stripe_subscription_id: z.ZodNullable<z.ZodString>;
|
|
10
14
|
created_at: z.ZodString;
|
|
11
15
|
metadata: z.ZodRecord<z.ZodString, z.ZodUnknown>;
|
|
12
|
-
},
|
|
13
|
-
id: string;
|
|
14
|
-
name: string;
|
|
15
|
-
metadata: Record<string, unknown>;
|
|
16
|
-
created_at: string;
|
|
17
|
-
plan: "free" | "pro" | "enterprise";
|
|
18
|
-
api_key_hash: string;
|
|
19
|
-
system_prompt: string | null;
|
|
20
|
-
stripe_customer_id: string | null;
|
|
21
|
-
stripe_subscription_id: string | null;
|
|
22
|
-
}, {
|
|
23
|
-
id: string;
|
|
24
|
-
name: string;
|
|
25
|
-
metadata: Record<string, unknown>;
|
|
26
|
-
created_at: string;
|
|
27
|
-
plan: "free" | "pro" | "enterprise";
|
|
28
|
-
api_key_hash: string;
|
|
29
|
-
system_prompt: string | null;
|
|
30
|
-
stripe_customer_id: string | null;
|
|
31
|
-
stripe_subscription_id: string | null;
|
|
32
|
-
}>;
|
|
16
|
+
}, z.core.$strip>;
|
|
33
17
|
export type Workspace = z.infer<typeof WorkspaceSchema>;
|
|
34
18
|
export declare const CreateWorkspaceRequestSchema: z.ZodObject<{
|
|
35
19
|
name: z.ZodString;
|
|
36
|
-
},
|
|
37
|
-
name: string;
|
|
38
|
-
}, {
|
|
39
|
-
name: string;
|
|
40
|
-
}>;
|
|
20
|
+
}, z.core.$strip>;
|
|
41
21
|
export type CreateWorkspaceRequest = z.infer<typeof CreateWorkspaceRequestSchema>;
|
|
42
22
|
export declare const CreateWorkspaceResponseSchema: z.ZodObject<{
|
|
43
23
|
workspace_id: z.ZodString;
|
|
44
24
|
api_key: z.ZodString;
|
|
45
25
|
created_at: z.ZodString;
|
|
46
|
-
},
|
|
47
|
-
workspace_id: string;
|
|
48
|
-
created_at: string;
|
|
49
|
-
api_key: string;
|
|
50
|
-
}, {
|
|
51
|
-
workspace_id: string;
|
|
52
|
-
created_at: string;
|
|
53
|
-
api_key: string;
|
|
54
|
-
}>;
|
|
26
|
+
}, z.core.$strip>;
|
|
55
27
|
export type CreateWorkspaceResponse = z.infer<typeof CreateWorkspaceResponseSchema>;
|
|
56
28
|
export declare const UpdateWorkspaceRequestSchema: z.ZodObject<{
|
|
57
29
|
name: z.ZodOptional<z.ZodString>;
|
|
58
30
|
system_prompt: z.ZodOptional<z.ZodString>;
|
|
59
|
-
},
|
|
60
|
-
name?: string | undefined;
|
|
61
|
-
system_prompt?: string | undefined;
|
|
62
|
-
}, {
|
|
63
|
-
name?: string | undefined;
|
|
64
|
-
system_prompt?: string | undefined;
|
|
65
|
-
}>;
|
|
31
|
+
}, z.core.$strip>;
|
|
66
32
|
export type UpdateWorkspaceRequest = z.infer<typeof UpdateWorkspaceRequestSchema>;
|
|
67
33
|
export declare const SystemPromptSchema: z.ZodObject<{
|
|
68
34
|
prompt: z.ZodString;
|
|
69
35
|
is_default: z.ZodBoolean;
|
|
70
|
-
},
|
|
71
|
-
prompt: string;
|
|
72
|
-
is_default: boolean;
|
|
73
|
-
}, {
|
|
74
|
-
prompt: string;
|
|
75
|
-
is_default: boolean;
|
|
76
|
-
}>;
|
|
36
|
+
}, z.core.$strip>;
|
|
77
37
|
export type SystemPrompt = z.infer<typeof SystemPromptSchema>;
|
|
78
38
|
export declare const SetSystemPromptRequestSchema: z.ZodObject<{
|
|
79
39
|
prompt: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
80
40
|
reset: z.ZodOptional<z.ZodBoolean>;
|
|
81
|
-
},
|
|
82
|
-
prompt?: string | null | undefined;
|
|
83
|
-
reset?: boolean | undefined;
|
|
84
|
-
}, {
|
|
85
|
-
prompt?: string | null | undefined;
|
|
86
|
-
reset?: boolean | undefined;
|
|
87
|
-
}>;
|
|
41
|
+
}, z.core.$strip>;
|
|
88
42
|
export type SetSystemPromptRequest = z.infer<typeof SetSystemPromptRequestSchema>;
|
|
43
|
+
export declare const ActivityItemSchema: z.ZodObject<{
|
|
44
|
+
type: z.ZodEnum<{
|
|
45
|
+
message: "message";
|
|
46
|
+
dm: "dm";
|
|
47
|
+
}>;
|
|
48
|
+
id: z.ZodString;
|
|
49
|
+
channel_name: z.ZodOptional<z.ZodString>;
|
|
50
|
+
conversation_id: z.ZodOptional<z.ZodString>;
|
|
51
|
+
agent_name: z.ZodString;
|
|
52
|
+
text: z.ZodString;
|
|
53
|
+
created_at: z.ZodString;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export type ActivityItem = z.infer<typeof ActivityItemSchema>;
|
|
56
|
+
export declare const WorkspaceDmConversationSchema: z.ZodObject<{
|
|
57
|
+
id: z.ZodString;
|
|
58
|
+
type: z.ZodString;
|
|
59
|
+
participants: z.ZodArray<z.ZodString>;
|
|
60
|
+
last_message: z.ZodNullable<z.ZodObject<{
|
|
61
|
+
text: z.ZodString;
|
|
62
|
+
agent_name: z.ZodString;
|
|
63
|
+
created_at: z.ZodString;
|
|
64
|
+
}, z.core.$strip>>;
|
|
65
|
+
message_count: z.ZodNumber;
|
|
66
|
+
}, z.core.$strip>;
|
|
67
|
+
export type WorkspaceDmConversation = z.infer<typeof WorkspaceDmConversationSchema>;
|
|
68
|
+
export declare const TokenRotateResponseSchema: z.ZodObject<{
|
|
69
|
+
name: z.ZodString;
|
|
70
|
+
token: z.ZodString;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export type TokenRotateResponse = z.infer<typeof TokenRotateResponseSchema>;
|
|
89
73
|
//# sourceMappingURL=workspace.d.ts.map
|
package/dist/workspace.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.d.ts","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AA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O,MAAM,yBAAyB;;;iBAGpC,CAAC;AACH,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC"}
|
package/dist/workspace.js
CHANGED
|
@@ -8,7 +8,7 @@ export const WorkspaceSchema = z.object({
|
|
|
8
8
|
stripe_customer_id: z.string().nullable(),
|
|
9
9
|
stripe_subscription_id: z.string().nullable(),
|
|
10
10
|
created_at: z.string(),
|
|
11
|
-
metadata: z.record(z.unknown()),
|
|
11
|
+
metadata: z.record(z.string(), z.unknown()),
|
|
12
12
|
});
|
|
13
13
|
export const CreateWorkspaceRequestSchema = z.object({
|
|
14
14
|
name: z.string(),
|
|
@@ -30,4 +30,29 @@ export const SetSystemPromptRequestSchema = z.object({
|
|
|
30
30
|
prompt: z.string().nullable().optional(),
|
|
31
31
|
reset: z.boolean().optional(),
|
|
32
32
|
});
|
|
33
|
+
// --- Activity, DM conversations, token rotation ---
|
|
34
|
+
export const ActivityItemSchema = z.object({
|
|
35
|
+
type: z.enum(['message', 'dm']),
|
|
36
|
+
id: z.string(),
|
|
37
|
+
channel_name: z.string().optional(),
|
|
38
|
+
conversation_id: z.string().optional(),
|
|
39
|
+
agent_name: z.string(),
|
|
40
|
+
text: z.string(),
|
|
41
|
+
created_at: z.string(),
|
|
42
|
+
});
|
|
43
|
+
export const WorkspaceDmConversationSchema = z.object({
|
|
44
|
+
id: z.string(),
|
|
45
|
+
type: z.string(),
|
|
46
|
+
participants: z.array(z.string()),
|
|
47
|
+
last_message: z.object({
|
|
48
|
+
text: z.string(),
|
|
49
|
+
agent_name: z.string(),
|
|
50
|
+
created_at: z.string(),
|
|
51
|
+
}).nullable(),
|
|
52
|
+
message_count: z.number(),
|
|
53
|
+
});
|
|
54
|
+
export const TokenRotateResponseSchema = z.object({
|
|
55
|
+
name: z.string(),
|
|
56
|
+
token: z.string(),
|
|
57
|
+
});
|
|
33
58
|
//# sourceMappingURL=workspace.js.map
|
package/dist/workspace.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC;IAC3C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC7C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE;IACtB,QAAQ,EAAE,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;
|
|
1
|
+
{"version":3,"file":"workspace.js","sourceRoot":"","sources":["../src/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAExB,MAAM,CAAC,MAAM,eAAe,GAAG,CAAC,CAAC,MAAM,CAAC;IACtC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACpC,IAAI,EAAE,CAAC,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,KAAK,EAAE,YAAY,CAAC,CAAC;IAC3C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAA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