@little-samo/samo-ai-sdk 0.1.3-rv1 → 0.1.3-rv3
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/dto/entities/agents/agent.d.ts +1 -0
- package/dist/dto/entities/agents/agent.requests.d.ts +22 -22
- package/dist/dto/items/item.requests.d.ts +12 -2
- package/dist/dto/items/item.requests.js +17 -32
- package/dist/dto/items/item.requests.js.map +1 -1
- package/dist/dto/locations/location.requests.d.ts +394 -202
- package/dist/dto/locations/location.requests.js +104 -54
- package/dist/dto/locations/location.requests.js.map +1 -1
- package/package.json +1 -1
|
@@ -6,11 +6,11 @@ export declare const AgentsPaginationQuerySchema: z.ZodObject<{
|
|
|
6
6
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
7
7
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
8
8
|
}, "strip", z.ZodTypeAny, {
|
|
9
|
-
page: number;
|
|
10
9
|
limit: number;
|
|
10
|
+
page: number;
|
|
11
11
|
}, {
|
|
12
|
-
page?: number | undefined;
|
|
13
12
|
limit?: number | undefined;
|
|
13
|
+
page?: number | undefined;
|
|
14
14
|
}>;
|
|
15
15
|
export type AgentsPaginationQueryDto = z.infer<typeof AgentsPaginationQuerySchema>;
|
|
16
16
|
export interface AgentsPaginatedResponseDto {
|
|
@@ -58,67 +58,67 @@ export declare const AgentUpdateConfigSchema: z.ZodObject<{
|
|
|
58
58
|
rules: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
|
|
59
59
|
}, "strict", z.ZodTypeAny, {
|
|
60
60
|
name?: string | undefined;
|
|
61
|
-
avatar?: string | undefined;
|
|
62
|
-
appearance?: string | undefined;
|
|
63
61
|
core?: {
|
|
64
62
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
65
63
|
} | undefined;
|
|
64
|
+
rules?: string[] | undefined;
|
|
65
|
+
appearance?: string | undefined;
|
|
66
|
+
avatar?: string | undefined;
|
|
66
67
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "anthropic-low" | "anthropic-medium" | "anthropic-high" | "deepseek-low" | "deepseek-medium" | undefined;
|
|
67
68
|
languages?: string[] | undefined;
|
|
68
69
|
timeZone?: string | undefined;
|
|
69
70
|
greeting?: string | undefined;
|
|
70
71
|
actions?: "todo"[] | undefined;
|
|
71
72
|
character?: Record<string, Record<string, string>> | undefined;
|
|
72
|
-
rules?: string[] | undefined;
|
|
73
73
|
}, {
|
|
74
74
|
name?: string | undefined;
|
|
75
|
-
avatar?: string | undefined;
|
|
76
|
-
appearance?: string | undefined;
|
|
77
75
|
core?: {
|
|
78
76
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
79
77
|
} | undefined;
|
|
78
|
+
rules?: string[] | undefined;
|
|
79
|
+
appearance?: string | undefined;
|
|
80
|
+
avatar?: string | undefined;
|
|
80
81
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "anthropic-low" | "anthropic-medium" | "anthropic-high" | "deepseek-low" | "deepseek-medium" | undefined;
|
|
81
82
|
languages?: string[] | undefined;
|
|
82
83
|
timeZone?: string | undefined;
|
|
83
84
|
greeting?: string | undefined;
|
|
84
85
|
actions?: "todo"[] | undefined;
|
|
85
86
|
character?: Record<string, Record<string, string>> | undefined;
|
|
86
|
-
rules?: string[] | undefined;
|
|
87
87
|
}>;
|
|
88
88
|
}, "strip", z.ZodTypeAny, {
|
|
89
|
-
agentId: bigint;
|
|
90
89
|
config: {
|
|
91
90
|
name?: string | undefined;
|
|
92
|
-
avatar?: string | undefined;
|
|
93
|
-
appearance?: string | undefined;
|
|
94
91
|
core?: {
|
|
95
92
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
96
93
|
} | undefined;
|
|
94
|
+
rules?: string[] | undefined;
|
|
95
|
+
appearance?: string | undefined;
|
|
96
|
+
avatar?: string | undefined;
|
|
97
97
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "anthropic-low" | "anthropic-medium" | "anthropic-high" | "deepseek-low" | "deepseek-medium" | undefined;
|
|
98
98
|
languages?: string[] | undefined;
|
|
99
99
|
timeZone?: string | undefined;
|
|
100
100
|
greeting?: string | undefined;
|
|
101
101
|
actions?: "todo"[] | undefined;
|
|
102
102
|
character?: Record<string, Record<string, string>> | undefined;
|
|
103
|
-
rules?: string[] | undefined;
|
|
104
103
|
};
|
|
105
|
-
}, {
|
|
106
104
|
agentId: bigint;
|
|
105
|
+
}, {
|
|
107
106
|
config: {
|
|
108
107
|
name?: string | undefined;
|
|
109
|
-
avatar?: string | undefined;
|
|
110
|
-
appearance?: string | undefined;
|
|
111
108
|
core?: {
|
|
112
109
|
name: "evaluate_and_actions" | "execute_actions" | "response_every_message";
|
|
113
110
|
} | undefined;
|
|
111
|
+
rules?: string[] | undefined;
|
|
112
|
+
appearance?: string | undefined;
|
|
113
|
+
avatar?: string | undefined;
|
|
114
114
|
llmPreset?: "gemini-low" | "gemini-medium" | "gemini-high" | "openai-low" | "openai-medium" | "anthropic-low" | "anthropic-medium" | "anthropic-high" | "deepseek-low" | "deepseek-medium" | undefined;
|
|
115
115
|
languages?: string[] | undefined;
|
|
116
116
|
timeZone?: string | undefined;
|
|
117
117
|
greeting?: string | undefined;
|
|
118
118
|
actions?: "todo"[] | undefined;
|
|
119
119
|
character?: Record<string, Record<string, string>> | undefined;
|
|
120
|
-
rules?: string[] | undefined;
|
|
121
120
|
};
|
|
121
|
+
agentId: bigint;
|
|
122
122
|
}>;
|
|
123
123
|
export type AgentUpdateConfigDto = z.infer<typeof AgentUpdateConfigSchema>;
|
|
124
124
|
export type AgentUpdateConfigResponseDto = Partial<AgentConfig>;
|
|
@@ -150,7 +150,6 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
150
150
|
token: string;
|
|
151
151
|
}>]>;
|
|
152
152
|
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
agentId: bigint;
|
|
154
153
|
credential: {
|
|
155
154
|
type: "x_twitter";
|
|
156
155
|
email: string;
|
|
@@ -160,8 +159,8 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
160
159
|
type: "notion";
|
|
161
160
|
token: string;
|
|
162
161
|
};
|
|
163
|
-
}, {
|
|
164
162
|
agentId: bigint;
|
|
163
|
+
}, {
|
|
165
164
|
credential: {
|
|
166
165
|
type: "x_twitter";
|
|
167
166
|
email: string;
|
|
@@ -171,6 +170,7 @@ export declare const AgentUpdateCredentialSchema: z.ZodObject<{
|
|
|
171
170
|
type: "notion";
|
|
172
171
|
token: string;
|
|
173
172
|
};
|
|
173
|
+
agentId: bigint;
|
|
174
174
|
}>;
|
|
175
175
|
export type AgentUpdateCredentialDto = z.infer<typeof AgentUpdateCredentialSchema>;
|
|
176
176
|
export interface AgentUpdateCredentialResponseDto {
|
|
@@ -181,11 +181,11 @@ export declare const AgentDeleteCredentialSchema: z.ZodObject<{
|
|
|
181
181
|
agentId: z.ZodBigInt;
|
|
182
182
|
credentialType: z.ZodString;
|
|
183
183
|
}, "strip", z.ZodTypeAny, {
|
|
184
|
-
agentId: bigint;
|
|
185
184
|
credentialType: string;
|
|
186
|
-
}, {
|
|
187
185
|
agentId: bigint;
|
|
186
|
+
}, {
|
|
188
187
|
credentialType: string;
|
|
188
|
+
agentId: bigint;
|
|
189
189
|
}>;
|
|
190
190
|
export type AgentDeleteCredentialDto = z.infer<typeof AgentDeleteCredentialSchema>;
|
|
191
191
|
export interface AgentDeleteCredentialResponseDto {
|
|
@@ -196,11 +196,11 @@ export declare const AgentPresetsPaginationQuerySchema: z.ZodObject<{
|
|
|
196
196
|
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
197
197
|
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
198
198
|
}, "strip", z.ZodTypeAny, {
|
|
199
|
-
page: number;
|
|
200
199
|
limit: number;
|
|
200
|
+
page: number;
|
|
201
201
|
}, {
|
|
202
|
-
page?: number | undefined;
|
|
203
202
|
limit?: number | undefined;
|
|
203
|
+
page?: number | undefined;
|
|
204
204
|
}>;
|
|
205
205
|
export type AgentPresetsPaginationQueryDto = z.infer<typeof AgentPresetsPaginationQuerySchema>;
|
|
206
206
|
export interface AgentPresetsPaginatedResponseDto {
|
|
@@ -1,3 +1,13 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ItemDto } from './item';
|
|
3
|
+
export declare const GetUserItemsQuerySchema: z.ZodObject<{
|
|
4
|
+
itemDataIds: z.ZodEffects<z.ZodEffects<z.ZodOptional<z.ZodString>, number[] | undefined, string | undefined>, number[] | undefined, string | undefined>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
itemDataIds?: number[] | undefined;
|
|
7
|
+
}, {
|
|
8
|
+
itemDataIds?: string | undefined;
|
|
9
|
+
}>;
|
|
10
|
+
export type GetUserItemsQueryDto = z.infer<typeof GetUserItemsQuerySchema>;
|
|
11
|
+
export interface GetUserItemsResponseDto {
|
|
12
|
+
items: ItemDto[];
|
|
3
13
|
}
|
|
@@ -1,36 +1,21 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
-
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
-
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
-
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
-
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
-
};
|
|
8
|
-
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
-
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
-
};
|
|
11
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
-
exports.
|
|
13
|
-
const
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
return value.map((id) => parseInt(id)).filter((id) => !isNaN(id));
|
|
29
|
-
}
|
|
30
|
-
return [];
|
|
3
|
+
exports.GetUserItemsQuerySchema = void 0;
|
|
4
|
+
const zod_1 = require("zod");
|
|
5
|
+
exports.GetUserItemsQuerySchema = zod_1.z.object({
|
|
6
|
+
itemDataIds: zod_1.z
|
|
7
|
+
.string()
|
|
8
|
+
.optional()
|
|
9
|
+
.transform((val) => {
|
|
10
|
+
if (!val)
|
|
11
|
+
return undefined;
|
|
12
|
+
return val
|
|
13
|
+
.split(',')
|
|
14
|
+
.map((id) => zod_1.z.coerce.number().parse(id.trim()))
|
|
15
|
+
.filter((id) => !isNaN(id));
|
|
16
|
+
})
|
|
17
|
+
.refine((arr) => !arr || arr.length <= 50, {
|
|
18
|
+
message: 'itemDataIds must contain at most 50 item data IDs',
|
|
31
19
|
}),
|
|
32
|
-
|
|
33
|
-
(0, class_validator_1.IsNumber)({}, { each: true }),
|
|
34
|
-
__metadata("design:type", Array)
|
|
35
|
-
], ItemQueryDto.prototype, "itemDataIds", void 0);
|
|
20
|
+
});
|
|
36
21
|
//# sourceMappingURL=item.requests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"item.requests.js","sourceRoot":"","sources":["../../../src/dto/items/item.requests.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"item.requests.js","sourceRoot":"","sources":["../../../src/dto/items/item.requests.ts"],"names":[],"mappings":";;;AAAA,6BAAwB;AASX,QAAA,uBAAuB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC9C,WAAW,EAAE,OAAC;SACX,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE;QACjB,IAAI,CAAC,GAAG;YAAE,OAAO,SAAS,CAAC;QAC3B,OAAO,GAAG;aACP,KAAK,CAAC,GAAG,CAAC;aACV,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,IAAI,EAAE,CAAC,CAAC;aAC/C,MAAM,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC;IAChC,CAAC,CAAC;SACD,MAAM,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC,GAAG,IAAI,GAAG,CAAC,MAAM,IAAI,EAAE,EAAE;QACzC,OAAO,EAAE,mDAAmD;KAC7D,CAAC;CACL,CAAC,CAAC"}
|
|
@@ -12,8 +12,8 @@ export declare const UserLocationsQuerySchema: z.ZodObject<{
|
|
|
12
12
|
limit: number;
|
|
13
13
|
cursor?: string | undefined;
|
|
14
14
|
}, {
|
|
15
|
-
limit?: number | undefined;
|
|
16
15
|
cursor?: string | undefined;
|
|
16
|
+
limit?: number | undefined;
|
|
17
17
|
}>;
|
|
18
18
|
export type UserLocationsQueryDto = z.infer<typeof UserLocationsQuerySchema>;
|
|
19
19
|
export interface UserLocationsResponseDto {
|
|
@@ -23,47 +23,6 @@ export interface UserLocationsResponseDto {
|
|
|
23
23
|
nextCursor?: string;
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
|
-
export declare const GetLocationParamsSchema: z.ZodObject<{
|
|
27
|
-
locationId: z.ZodBigInt;
|
|
28
|
-
}, "strip", z.ZodTypeAny, {
|
|
29
|
-
locationId: bigint;
|
|
30
|
-
}, {
|
|
31
|
-
locationId: bigint;
|
|
32
|
-
}>;
|
|
33
|
-
export type GetLocationParamsDto = z.infer<typeof GetLocationParamsSchema>;
|
|
34
|
-
export interface GetLocationResponseDto {
|
|
35
|
-
location: LocationListItemDto;
|
|
36
|
-
}
|
|
37
|
-
export declare const GetLocationPrivateParamsSchema: z.ZodObject<{
|
|
38
|
-
locationId: z.ZodBigInt;
|
|
39
|
-
}, "strip", z.ZodTypeAny, {
|
|
40
|
-
locationId: bigint;
|
|
41
|
-
}, {
|
|
42
|
-
locationId: bigint;
|
|
43
|
-
}>;
|
|
44
|
-
export type GetLocationPrivateParamsDto = z.infer<typeof GetLocationPrivateParamsSchema>;
|
|
45
|
-
export interface GetLocationPrivateResponseDto {
|
|
46
|
-
location: LocationPrivateDto;
|
|
47
|
-
}
|
|
48
|
-
export declare const MarkLocationAsReadParamsSchema: z.ZodObject<{
|
|
49
|
-
locationId: z.ZodBigInt;
|
|
50
|
-
}, "strip", z.ZodTypeAny, {
|
|
51
|
-
locationId: bigint;
|
|
52
|
-
}, {
|
|
53
|
-
locationId: bigint;
|
|
54
|
-
}>;
|
|
55
|
-
export type MarkLocationAsReadParamsDto = z.infer<typeof MarkLocationAsReadParamsSchema>;
|
|
56
|
-
export declare const LocationUnreadCountParamsSchema: z.ZodObject<{
|
|
57
|
-
locationId: z.ZodBigInt;
|
|
58
|
-
}, "strip", z.ZodTypeAny, {
|
|
59
|
-
locationId: bigint;
|
|
60
|
-
}, {
|
|
61
|
-
locationId: bigint;
|
|
62
|
-
}>;
|
|
63
|
-
export type LocationUnreadCountParamsDto = z.infer<typeof LocationUnreadCountParamsSchema>;
|
|
64
|
-
export interface LocationUnreadCountResponseDto {
|
|
65
|
-
unreadCount: number;
|
|
66
|
-
}
|
|
67
26
|
export declare const LocationsUnreadCountQuerySchema: z.ZodObject<{
|
|
68
27
|
locationIds: z.ZodEffects<z.ZodEffects<z.ZodString, bigint[], string>, bigint[], string>;
|
|
69
28
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -80,109 +39,6 @@ export interface LocationUnreadCountItemDto {
|
|
|
80
39
|
export interface LocationsUnreadCountResponseDto {
|
|
81
40
|
data: LocationUnreadCountItemDto[];
|
|
82
41
|
}
|
|
83
|
-
export declare const JoinAgentToLocationParamsSchema: z.ZodObject<{
|
|
84
|
-
locationId: z.ZodBigInt;
|
|
85
|
-
}, "strip", z.ZodTypeAny, {
|
|
86
|
-
locationId: bigint;
|
|
87
|
-
}, {
|
|
88
|
-
locationId: bigint;
|
|
89
|
-
}>;
|
|
90
|
-
export type JoinAgentToLocationParamsDto = z.infer<typeof JoinAgentToLocationParamsSchema>;
|
|
91
|
-
export declare const JoinAgentToLocationBodySchema: z.ZodObject<{
|
|
92
|
-
agentId: z.ZodBigInt;
|
|
93
|
-
}, "strip", z.ZodTypeAny, {
|
|
94
|
-
agentId: bigint;
|
|
95
|
-
}, {
|
|
96
|
-
agentId: bigint;
|
|
97
|
-
}>;
|
|
98
|
-
export type JoinAgentToLocationBodyDto = z.infer<typeof JoinAgentToLocationBodySchema>;
|
|
99
|
-
export interface JoinAgentToLocationResponseDto {
|
|
100
|
-
agentAdded: boolean;
|
|
101
|
-
message?: string;
|
|
102
|
-
}
|
|
103
|
-
export declare const JoinAgentToLocationToolSchema: z.ZodObject<{
|
|
104
|
-
locationId: z.ZodBigInt;
|
|
105
|
-
agentId: z.ZodBigInt;
|
|
106
|
-
}, "strip", z.ZodTypeAny, {
|
|
107
|
-
agentId: bigint;
|
|
108
|
-
locationId: bigint;
|
|
109
|
-
}, {
|
|
110
|
-
agentId: bigint;
|
|
111
|
-
locationId: bigint;
|
|
112
|
-
}>;
|
|
113
|
-
export type JoinAgentToLocationToolDto = z.infer<typeof JoinAgentToLocationToolSchema>;
|
|
114
|
-
export declare const RemoveAgentFromLocationParamsSchema: z.ZodObject<{
|
|
115
|
-
locationId: z.ZodBigInt;
|
|
116
|
-
}, "strip", z.ZodTypeAny, {
|
|
117
|
-
locationId: bigint;
|
|
118
|
-
}, {
|
|
119
|
-
locationId: bigint;
|
|
120
|
-
}>;
|
|
121
|
-
export type RemoveAgentFromLocationParamsDto = z.infer<typeof RemoveAgentFromLocationParamsSchema>;
|
|
122
|
-
export declare const RemoveAgentFromLocationBodySchema: z.ZodObject<{
|
|
123
|
-
agentId: z.ZodBigInt;
|
|
124
|
-
}, "strip", z.ZodTypeAny, {
|
|
125
|
-
agentId: bigint;
|
|
126
|
-
}, {
|
|
127
|
-
agentId: bigint;
|
|
128
|
-
}>;
|
|
129
|
-
export type RemoveAgentFromLocationBodyDto = z.infer<typeof RemoveAgentFromLocationBodySchema>;
|
|
130
|
-
export interface RemoveAgentFromLocationResponseDto {
|
|
131
|
-
agentRemoved: boolean;
|
|
132
|
-
message?: string;
|
|
133
|
-
}
|
|
134
|
-
export declare const RemoveAgentFromLocationToolSchema: z.ZodObject<{
|
|
135
|
-
locationId: z.ZodBigInt;
|
|
136
|
-
agentId: z.ZodBigInt;
|
|
137
|
-
}, "strip", z.ZodTypeAny, {
|
|
138
|
-
agentId: bigint;
|
|
139
|
-
locationId: bigint;
|
|
140
|
-
}, {
|
|
141
|
-
agentId: bigint;
|
|
142
|
-
locationId: bigint;
|
|
143
|
-
}>;
|
|
144
|
-
export type RemoveAgentFromLocationToolDto = z.infer<typeof RemoveAgentFromLocationToolSchema>;
|
|
145
|
-
export interface LocationMessagesResponseDto {
|
|
146
|
-
messages: LocationMessageDto[];
|
|
147
|
-
cursor?: string;
|
|
148
|
-
}
|
|
149
|
-
export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
|
|
150
|
-
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
151
|
-
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
152
|
-
}, "strip", z.ZodTypeAny, {
|
|
153
|
-
page: number;
|
|
154
|
-
limit: number;
|
|
155
|
-
}, {
|
|
156
|
-
page?: number | undefined;
|
|
157
|
-
limit?: number | undefined;
|
|
158
|
-
}>;
|
|
159
|
-
export type LocationPresetsPaginationQueryDto = z.infer<typeof LocationPresetsPaginationQuerySchema>;
|
|
160
|
-
export interface LocationPresetsPaginatedResponseDto {
|
|
161
|
-
data: LocationPresetDto[];
|
|
162
|
-
meta: {
|
|
163
|
-
total: number;
|
|
164
|
-
page: number;
|
|
165
|
-
limit: number;
|
|
166
|
-
totalPages: number;
|
|
167
|
-
};
|
|
168
|
-
}
|
|
169
|
-
export declare const CreateLocationFromPresetSchema: z.ZodObject<{
|
|
170
|
-
presetId: z.ZodBigInt;
|
|
171
|
-
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
172
|
-
readonly API: "API";
|
|
173
|
-
readonly MINIMO: "MINIMO";
|
|
174
|
-
}>>>;
|
|
175
|
-
}, "strip", z.ZodTypeAny, {
|
|
176
|
-
presetId: bigint;
|
|
177
|
-
platform: "API" | "MINIMO";
|
|
178
|
-
}, {
|
|
179
|
-
presetId: bigint;
|
|
180
|
-
platform?: "API" | "MINIMO" | undefined;
|
|
181
|
-
}>;
|
|
182
|
-
export type CreateLocationFromPresetDto = z.infer<typeof CreateLocationFromPresetSchema>;
|
|
183
|
-
export interface CreateLocationFromPresetResponseDto {
|
|
184
|
-
location: LocationPrivateDto;
|
|
185
|
-
}
|
|
186
42
|
export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
187
43
|
locationId: z.ZodBigInt;
|
|
188
44
|
config: z.ZodObject<{
|
|
@@ -233,23 +89,23 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
233
89
|
appearance: z.ZodString;
|
|
234
90
|
}, "strip", z.ZodTypeAny, {
|
|
235
91
|
name: string;
|
|
92
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
236
93
|
appearance: string;
|
|
237
|
-
core: "x_twitter" | "notion" | "web_search";
|
|
238
94
|
}, {
|
|
239
95
|
name: string;
|
|
96
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
240
97
|
appearance: string;
|
|
241
|
-
core: "x_twitter" | "notion" | "web_search";
|
|
242
98
|
}>, "many">>;
|
|
243
99
|
}, "strict", z.ZodTypeAny, {
|
|
244
100
|
name?: string | undefined;
|
|
245
|
-
|
|
101
|
+
thumbnail?: string | undefined;
|
|
102
|
+
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
246
103
|
core?: {
|
|
247
104
|
name: "round_robin" | "update_forever" | "update_once";
|
|
248
105
|
sequential?: boolean | undefined;
|
|
249
106
|
} | undefined;
|
|
107
|
+
description?: string | undefined;
|
|
250
108
|
rules?: string[] | undefined;
|
|
251
|
-
thumbnail?: string | undefined;
|
|
252
|
-
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
253
109
|
canvases?: {
|
|
254
110
|
name: string;
|
|
255
111
|
description: string;
|
|
@@ -262,19 +118,19 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
262
118
|
}[] | undefined;
|
|
263
119
|
gimmicks?: {
|
|
264
120
|
name: string;
|
|
121
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
265
122
|
appearance: string;
|
|
266
|
-
core: "x_twitter" | "notion" | "web_search";
|
|
267
123
|
}[] | undefined;
|
|
268
124
|
}, {
|
|
269
125
|
name?: string | undefined;
|
|
270
|
-
|
|
126
|
+
thumbnail?: string | undefined;
|
|
127
|
+
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
271
128
|
core?: {
|
|
272
129
|
name: "round_robin" | "update_forever" | "update_once";
|
|
273
130
|
sequential?: boolean | undefined;
|
|
274
131
|
} | undefined;
|
|
132
|
+
description?: string | undefined;
|
|
275
133
|
rules?: string[] | undefined;
|
|
276
|
-
thumbnail?: string | undefined;
|
|
277
|
-
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
278
134
|
canvases?: {
|
|
279
135
|
name: string;
|
|
280
136
|
description: string;
|
|
@@ -287,21 +143,22 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
287
143
|
}[] | undefined;
|
|
288
144
|
gimmicks?: {
|
|
289
145
|
name: string;
|
|
146
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
290
147
|
appearance: string;
|
|
291
|
-
core: "x_twitter" | "notion" | "web_search";
|
|
292
148
|
}[] | undefined;
|
|
293
149
|
}>;
|
|
294
150
|
}, "strip", z.ZodTypeAny, {
|
|
151
|
+
locationId: bigint;
|
|
295
152
|
config: {
|
|
296
153
|
name?: string | undefined;
|
|
297
|
-
|
|
154
|
+
thumbnail?: string | undefined;
|
|
155
|
+
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
298
156
|
core?: {
|
|
299
157
|
name: "round_robin" | "update_forever" | "update_once";
|
|
300
158
|
sequential?: boolean | undefined;
|
|
301
159
|
} | undefined;
|
|
160
|
+
description?: string | undefined;
|
|
302
161
|
rules?: string[] | undefined;
|
|
303
|
-
thumbnail?: string | undefined;
|
|
304
|
-
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
305
162
|
canvases?: {
|
|
306
163
|
name: string;
|
|
307
164
|
description: string;
|
|
@@ -314,22 +171,22 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
314
171
|
}[] | undefined;
|
|
315
172
|
gimmicks?: {
|
|
316
173
|
name: string;
|
|
174
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
317
175
|
appearance: string;
|
|
318
|
-
core: "x_twitter" | "notion" | "web_search";
|
|
319
176
|
}[] | undefined;
|
|
320
177
|
};
|
|
321
|
-
locationId: bigint;
|
|
322
178
|
}, {
|
|
179
|
+
locationId: bigint;
|
|
323
180
|
config: {
|
|
324
181
|
name?: string | undefined;
|
|
325
|
-
|
|
182
|
+
thumbnail?: string | undefined;
|
|
183
|
+
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
326
184
|
core?: {
|
|
327
185
|
name: "round_robin" | "update_forever" | "update_once";
|
|
328
186
|
sequential?: boolean | undefined;
|
|
329
187
|
} | undefined;
|
|
188
|
+
description?: string | undefined;
|
|
330
189
|
rules?: string[] | undefined;
|
|
331
|
-
thumbnail?: string | undefined;
|
|
332
|
-
environment?: "CHAT" | "WEB_BROWSER" | undefined;
|
|
333
190
|
canvases?: {
|
|
334
191
|
name: string;
|
|
335
192
|
description: string;
|
|
@@ -342,11 +199,10 @@ export declare const LocationUpdateConfigSchema: z.ZodObject<{
|
|
|
342
199
|
}[] | undefined;
|
|
343
200
|
gimmicks?: {
|
|
344
201
|
name: string;
|
|
202
|
+
core: "web_search" | "x_twitter" | "notion";
|
|
345
203
|
appearance: string;
|
|
346
|
-
core: "x_twitter" | "notion" | "web_search";
|
|
347
204
|
}[] | undefined;
|
|
348
205
|
};
|
|
349
|
-
locationId: bigint;
|
|
350
206
|
}>;
|
|
351
207
|
export type LocationUpdateConfigDto = z.infer<typeof LocationUpdateConfigSchema>;
|
|
352
208
|
export type LocationUpdateConfigResponseDto = Partial<LocationConfig>;
|
|
@@ -378,6 +234,7 @@ export declare const LocationUpdateCredentialSchema: z.ZodObject<{
|
|
|
378
234
|
token: string;
|
|
379
235
|
}>]>;
|
|
380
236
|
}, "strip", z.ZodTypeAny, {
|
|
237
|
+
locationId: bigint;
|
|
381
238
|
credential: {
|
|
382
239
|
type: "x_twitter";
|
|
383
240
|
email: string;
|
|
@@ -387,8 +244,8 @@ export declare const LocationUpdateCredentialSchema: z.ZodObject<{
|
|
|
387
244
|
type: "notion";
|
|
388
245
|
token: string;
|
|
389
246
|
};
|
|
390
|
-
locationId: bigint;
|
|
391
247
|
}, {
|
|
248
|
+
locationId: bigint;
|
|
392
249
|
credential: {
|
|
393
250
|
type: "x_twitter";
|
|
394
251
|
email: string;
|
|
@@ -398,7 +255,6 @@ export declare const LocationUpdateCredentialSchema: z.ZodObject<{
|
|
|
398
255
|
type: "notion";
|
|
399
256
|
token: string;
|
|
400
257
|
};
|
|
401
|
-
locationId: bigint;
|
|
402
258
|
}>;
|
|
403
259
|
export type LocationUpdateCredentialDto = z.infer<typeof LocationUpdateCredentialSchema>;
|
|
404
260
|
export interface LocationUpdateCredentialResponseDto {
|
|
@@ -409,17 +265,54 @@ export declare const LocationDeleteCredentialSchema: z.ZodObject<{
|
|
|
409
265
|
locationId: z.ZodBigInt;
|
|
410
266
|
credentialType: z.ZodString;
|
|
411
267
|
}, "strip", z.ZodTypeAny, {
|
|
412
|
-
credentialType: string;
|
|
413
268
|
locationId: bigint;
|
|
414
|
-
}, {
|
|
415
269
|
credentialType: string;
|
|
270
|
+
}, {
|
|
416
271
|
locationId: bigint;
|
|
272
|
+
credentialType: string;
|
|
417
273
|
}>;
|
|
418
274
|
export type LocationDeleteCredentialDto = z.infer<typeof LocationDeleteCredentialSchema>;
|
|
419
275
|
export interface LocationDeleteCredentialResponseDto {
|
|
420
276
|
success: boolean;
|
|
421
277
|
error?: string;
|
|
422
278
|
}
|
|
279
|
+
export declare const LocationPresetsPaginationQuerySchema: z.ZodObject<{
|
|
280
|
+
page: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
281
|
+
limit: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
282
|
+
}, "strip", z.ZodTypeAny, {
|
|
283
|
+
limit: number;
|
|
284
|
+
page: number;
|
|
285
|
+
}, {
|
|
286
|
+
limit?: number | undefined;
|
|
287
|
+
page?: number | undefined;
|
|
288
|
+
}>;
|
|
289
|
+
export type LocationPresetsPaginationQueryDto = z.infer<typeof LocationPresetsPaginationQuerySchema>;
|
|
290
|
+
export interface LocationPresetsPaginatedResponseDto {
|
|
291
|
+
data: LocationPresetDto[];
|
|
292
|
+
meta: {
|
|
293
|
+
total: number;
|
|
294
|
+
page: number;
|
|
295
|
+
limit: number;
|
|
296
|
+
totalPages: number;
|
|
297
|
+
};
|
|
298
|
+
}
|
|
299
|
+
export declare const CreateLocationFromPresetSchema: z.ZodObject<{
|
|
300
|
+
presetId: z.ZodBigInt;
|
|
301
|
+
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
302
|
+
readonly API: "API";
|
|
303
|
+
readonly MINIMO: "MINIMO";
|
|
304
|
+
}>>>;
|
|
305
|
+
}, "strip", z.ZodTypeAny, {
|
|
306
|
+
presetId: bigint;
|
|
307
|
+
platform: "API" | "MINIMO";
|
|
308
|
+
}, {
|
|
309
|
+
presetId: bigint;
|
|
310
|
+
platform?: "API" | "MINIMO" | undefined;
|
|
311
|
+
}>;
|
|
312
|
+
export type CreateLocationFromPresetDto = z.infer<typeof CreateLocationFromPresetSchema>;
|
|
313
|
+
export interface CreateLocationFromPresetResponseDto {
|
|
314
|
+
location: LocationPrivateDto;
|
|
315
|
+
}
|
|
423
316
|
export declare const GetAgentHelperLocationQuerySchema: z.ZodObject<{
|
|
424
317
|
agentId: z.ZodBigInt;
|
|
425
318
|
platform: z.ZodDefault<z.ZodOptional<z.ZodNativeEnum<{
|
|
@@ -427,8 +320,8 @@ export declare const GetAgentHelperLocationQuerySchema: z.ZodObject<{
|
|
|
427
320
|
readonly MINIMO: "MINIMO";
|
|
428
321
|
}>>>;
|
|
429
322
|
}, "strip", z.ZodTypeAny, {
|
|
430
|
-
agentId: bigint;
|
|
431
323
|
platform: "API" | "MINIMO";
|
|
324
|
+
agentId: bigint;
|
|
432
325
|
}, {
|
|
433
326
|
agentId: bigint;
|
|
434
327
|
platform?: "API" | "MINIMO" | undefined;
|
|
@@ -461,8 +354,8 @@ export declare const GetAgentDmLocationQuerySchema: z.ZodObject<{
|
|
|
461
354
|
readonly MINIMO: "MINIMO";
|
|
462
355
|
}>>>;
|
|
463
356
|
}, "strip", z.ZodTypeAny, {
|
|
464
|
-
agentId: bigint;
|
|
465
357
|
platform: "API" | "MINIMO";
|
|
358
|
+
agentId: bigint;
|
|
466
359
|
}, {
|
|
467
360
|
agentId: bigint;
|
|
468
361
|
platform?: "API" | "MINIMO" | undefined;
|
|
@@ -471,6 +364,109 @@ export type GetAgentDmLocationDto = z.infer<typeof GetAgentDmLocationQuerySchema
|
|
|
471
364
|
export interface GetAgentDmLocationResponseDto {
|
|
472
365
|
location: LocationPrivateDto;
|
|
473
366
|
}
|
|
367
|
+
export declare const GetLocationParamsSchema: z.ZodObject<{
|
|
368
|
+
locationId: z.ZodBigInt;
|
|
369
|
+
}, "strip", z.ZodTypeAny, {
|
|
370
|
+
locationId: bigint;
|
|
371
|
+
}, {
|
|
372
|
+
locationId: bigint;
|
|
373
|
+
}>;
|
|
374
|
+
export type GetLocationParamsDto = z.infer<typeof GetLocationParamsSchema>;
|
|
375
|
+
export interface GetLocationResponseDto {
|
|
376
|
+
location: LocationListItemDto;
|
|
377
|
+
}
|
|
378
|
+
export declare const GetLocationPrivateParamsSchema: z.ZodObject<{
|
|
379
|
+
locationId: z.ZodBigInt;
|
|
380
|
+
}, "strip", z.ZodTypeAny, {
|
|
381
|
+
locationId: bigint;
|
|
382
|
+
}, {
|
|
383
|
+
locationId: bigint;
|
|
384
|
+
}>;
|
|
385
|
+
export type GetLocationPrivateParamsDto = z.infer<typeof GetLocationPrivateParamsSchema>;
|
|
386
|
+
export interface GetLocationPrivateResponseDto {
|
|
387
|
+
location: LocationPrivateDto;
|
|
388
|
+
}
|
|
389
|
+
export declare const MarkLocationAsReadParamsSchema: z.ZodObject<{
|
|
390
|
+
locationId: z.ZodBigInt;
|
|
391
|
+
}, "strip", z.ZodTypeAny, {
|
|
392
|
+
locationId: bigint;
|
|
393
|
+
}, {
|
|
394
|
+
locationId: bigint;
|
|
395
|
+
}>;
|
|
396
|
+
export type MarkLocationAsReadParamsDto = z.infer<typeof MarkLocationAsReadParamsSchema>;
|
|
397
|
+
export declare const LocationUnreadCountParamsSchema: z.ZodObject<{
|
|
398
|
+
locationId: z.ZodBigInt;
|
|
399
|
+
}, "strip", z.ZodTypeAny, {
|
|
400
|
+
locationId: bigint;
|
|
401
|
+
}, {
|
|
402
|
+
locationId: bigint;
|
|
403
|
+
}>;
|
|
404
|
+
export type LocationUnreadCountParamsDto = z.infer<typeof LocationUnreadCountParamsSchema>;
|
|
405
|
+
export interface LocationUnreadCountResponseDto {
|
|
406
|
+
unreadCount: number;
|
|
407
|
+
}
|
|
408
|
+
export declare const JoinAgentToLocationParamsSchema: z.ZodObject<{
|
|
409
|
+
locationId: z.ZodBigInt;
|
|
410
|
+
}, "strip", z.ZodTypeAny, {
|
|
411
|
+
locationId: bigint;
|
|
412
|
+
}, {
|
|
413
|
+
locationId: bigint;
|
|
414
|
+
}>;
|
|
415
|
+
export type JoinAgentToLocationParamsDto = z.infer<typeof JoinAgentToLocationParamsSchema>;
|
|
416
|
+
export declare const JoinAgentToLocationBodySchema: z.ZodObject<{
|
|
417
|
+
agentId: z.ZodBigInt;
|
|
418
|
+
}, "strip", z.ZodTypeAny, {
|
|
419
|
+
agentId: bigint;
|
|
420
|
+
}, {
|
|
421
|
+
agentId: bigint;
|
|
422
|
+
}>;
|
|
423
|
+
export type JoinAgentToLocationBodyDto = z.infer<typeof JoinAgentToLocationBodySchema>;
|
|
424
|
+
export interface JoinAgentToLocationResponseDto {
|
|
425
|
+
agentAdded: boolean;
|
|
426
|
+
message?: string;
|
|
427
|
+
}
|
|
428
|
+
export declare const JoinAgentToLocationToolSchema: z.ZodObject<{
|
|
429
|
+
locationId: z.ZodBigInt;
|
|
430
|
+
agentId: z.ZodBigInt;
|
|
431
|
+
}, "strip", z.ZodTypeAny, {
|
|
432
|
+
locationId: bigint;
|
|
433
|
+
agentId: bigint;
|
|
434
|
+
}, {
|
|
435
|
+
locationId: bigint;
|
|
436
|
+
agentId: bigint;
|
|
437
|
+
}>;
|
|
438
|
+
export type JoinAgentToLocationToolDto = z.infer<typeof JoinAgentToLocationToolSchema>;
|
|
439
|
+
export declare const RemoveAgentFromLocationParamsSchema: z.ZodObject<{
|
|
440
|
+
locationId: z.ZodBigInt;
|
|
441
|
+
}, "strip", z.ZodTypeAny, {
|
|
442
|
+
locationId: bigint;
|
|
443
|
+
}, {
|
|
444
|
+
locationId: bigint;
|
|
445
|
+
}>;
|
|
446
|
+
export type RemoveAgentFromLocationParamsDto = z.infer<typeof RemoveAgentFromLocationParamsSchema>;
|
|
447
|
+
export declare const RemoveAgentFromLocationBodySchema: z.ZodObject<{
|
|
448
|
+
agentId: z.ZodBigInt;
|
|
449
|
+
}, "strip", z.ZodTypeAny, {
|
|
450
|
+
agentId: bigint;
|
|
451
|
+
}, {
|
|
452
|
+
agentId: bigint;
|
|
453
|
+
}>;
|
|
454
|
+
export type RemoveAgentFromLocationBodyDto = z.infer<typeof RemoveAgentFromLocationBodySchema>;
|
|
455
|
+
export interface RemoveAgentFromLocationResponseDto {
|
|
456
|
+
agentRemoved: boolean;
|
|
457
|
+
message?: string;
|
|
458
|
+
}
|
|
459
|
+
export declare const RemoveAgentFromLocationToolSchema: z.ZodObject<{
|
|
460
|
+
locationId: z.ZodBigInt;
|
|
461
|
+
agentId: z.ZodBigInt;
|
|
462
|
+
}, "strip", z.ZodTypeAny, {
|
|
463
|
+
locationId: bigint;
|
|
464
|
+
agentId: bigint;
|
|
465
|
+
}, {
|
|
466
|
+
locationId: bigint;
|
|
467
|
+
agentId: bigint;
|
|
468
|
+
}>;
|
|
469
|
+
export type RemoveAgentFromLocationToolDto = z.infer<typeof RemoveAgentFromLocationToolSchema>;
|
|
474
470
|
export declare const GetLocationScheduledMessagesParamsSchema: z.ZodObject<{
|
|
475
471
|
locationId: z.ZodBigInt;
|
|
476
472
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -508,6 +504,24 @@ export type CreateLocationScheduledMessageBodyDto = z.infer<typeof CreateLocatio
|
|
|
508
504
|
export interface CreateLocationScheduledMessageResponseDto {
|
|
509
505
|
scheduledMessage: LocationScheduledMessageDto;
|
|
510
506
|
}
|
|
507
|
+
export declare const CreateLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
508
|
+
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
509
|
+
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
510
|
+
} & {
|
|
511
|
+
locationId: z.ZodBigInt;
|
|
512
|
+
message: z.ZodString;
|
|
513
|
+
}, "strip", z.ZodTypeAny, {
|
|
514
|
+
message: string;
|
|
515
|
+
locationId: bigint;
|
|
516
|
+
repeatTimesOfDay: string[];
|
|
517
|
+
repeatDaysOfWeek: DayOfWeek[];
|
|
518
|
+
}, {
|
|
519
|
+
message: string;
|
|
520
|
+
locationId: bigint;
|
|
521
|
+
repeatTimesOfDay: string[];
|
|
522
|
+
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
523
|
+
}>;
|
|
524
|
+
export type CreateLocationScheduledMessageToolDto = z.infer<typeof CreateLocationScheduledMessageToolSchema>;
|
|
511
525
|
export declare const UpdateLocationScheduledMessageParamsSchema: z.ZodObject<{
|
|
512
526
|
locationId: z.ZodBigInt;
|
|
513
527
|
messageId: z.ZodString;
|
|
@@ -537,6 +551,27 @@ export type UpdateLocationScheduledMessageBodyDto = z.infer<typeof UpdateLocatio
|
|
|
537
551
|
export interface UpdateLocationScheduledMessageResponseDto {
|
|
538
552
|
scheduledMessage: LocationScheduledMessageDto;
|
|
539
553
|
}
|
|
554
|
+
export declare const UpdateLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
555
|
+
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
556
|
+
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
557
|
+
} & {
|
|
558
|
+
locationId: z.ZodBigInt;
|
|
559
|
+
messageId: z.ZodString;
|
|
560
|
+
message: z.ZodOptional<z.ZodString>;
|
|
561
|
+
}, "strip", z.ZodTypeAny, {
|
|
562
|
+
locationId: bigint;
|
|
563
|
+
repeatTimesOfDay: string[];
|
|
564
|
+
repeatDaysOfWeek: DayOfWeek[];
|
|
565
|
+
messageId: string;
|
|
566
|
+
message?: string | undefined;
|
|
567
|
+
}, {
|
|
568
|
+
locationId: bigint;
|
|
569
|
+
repeatTimesOfDay: string[];
|
|
570
|
+
messageId: string;
|
|
571
|
+
message?: string | undefined;
|
|
572
|
+
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
573
|
+
}>;
|
|
574
|
+
export type UpdateLocationScheduledMessageToolDto = z.infer<typeof UpdateLocationScheduledMessageToolSchema>;
|
|
540
575
|
export declare const DeleteLocationScheduledMessageParamsSchema: z.ZodObject<{
|
|
541
576
|
locationId: z.ZodBigInt;
|
|
542
577
|
messageId: z.ZodString;
|
|
@@ -551,55 +586,212 @@ export type DeleteLocationScheduledMessageParamsDto = z.infer<typeof DeleteLocat
|
|
|
551
586
|
export interface DeleteLocationScheduledMessageResponseDto {
|
|
552
587
|
deleted: boolean;
|
|
553
588
|
}
|
|
554
|
-
export declare const
|
|
589
|
+
export declare const DeleteLocationScheduledMessageToolSchema: z.ZodObject<{
|
|
590
|
+
locationId: z.ZodBigInt;
|
|
591
|
+
messageId: z.ZodString;
|
|
592
|
+
}, "strip", z.ZodTypeAny, {
|
|
593
|
+
locationId: bigint;
|
|
594
|
+
messageId: string;
|
|
595
|
+
}, {
|
|
596
|
+
locationId: bigint;
|
|
597
|
+
messageId: string;
|
|
598
|
+
}>;
|
|
599
|
+
export type DeleteLocationScheduledMessageToolDto = z.infer<typeof DeleteLocationScheduledMessageToolSchema>;
|
|
600
|
+
export declare const JoinLocationSchema: z.ZodObject<{
|
|
601
|
+
locationId: z.ZodBigInt;
|
|
602
|
+
}, "strip", z.ZodTypeAny, {
|
|
603
|
+
locationId: bigint;
|
|
604
|
+
}, {
|
|
605
|
+
locationId: bigint;
|
|
606
|
+
}>;
|
|
607
|
+
export type JoinLocationDto = z.infer<typeof JoinLocationSchema>;
|
|
608
|
+
export interface JoinLocationResponseDto {
|
|
609
|
+
success: boolean;
|
|
610
|
+
locationId: bigint;
|
|
611
|
+
joined: boolean;
|
|
612
|
+
}
|
|
613
|
+
export declare const LeaveLocationSchema: z.ZodObject<{
|
|
614
|
+
locationId: z.ZodBigInt;
|
|
615
|
+
}, "strip", z.ZodTypeAny, {
|
|
616
|
+
locationId: bigint;
|
|
617
|
+
}, {
|
|
618
|
+
locationId: bigint;
|
|
619
|
+
}>;
|
|
620
|
+
export type LeaveLocationDto = z.infer<typeof LeaveLocationSchema>;
|
|
621
|
+
export interface LeaveLocationResponseDto {
|
|
622
|
+
success: boolean;
|
|
623
|
+
locationId: bigint;
|
|
624
|
+
left: boolean;
|
|
625
|
+
}
|
|
626
|
+
export declare const SubscribeLocationSchema: z.ZodObject<{
|
|
627
|
+
locationId: z.ZodBigInt;
|
|
628
|
+
}, "strip", z.ZodTypeAny, {
|
|
629
|
+
locationId: bigint;
|
|
630
|
+
}, {
|
|
631
|
+
locationId: bigint;
|
|
632
|
+
}>;
|
|
633
|
+
export type SubscribeLocationDto = z.infer<typeof SubscribeLocationSchema>;
|
|
634
|
+
export interface SubscribeLocationResponseDto {
|
|
635
|
+
success: boolean;
|
|
636
|
+
locationId: bigint;
|
|
637
|
+
subscribed: boolean;
|
|
638
|
+
}
|
|
639
|
+
export declare const UnsubscribeLocationSchema: z.ZodObject<{
|
|
640
|
+
locationId: z.ZodBigInt;
|
|
641
|
+
}, "strip", z.ZodTypeAny, {
|
|
642
|
+
locationId: bigint;
|
|
643
|
+
}, {
|
|
644
|
+
locationId: bigint;
|
|
645
|
+
}>;
|
|
646
|
+
export type UnsubscribeLocationDto = z.infer<typeof UnsubscribeLocationSchema>;
|
|
647
|
+
export interface UnsubscribeLocationResponseDto {
|
|
648
|
+
success: boolean;
|
|
649
|
+
locationId: bigint;
|
|
650
|
+
unsubscribed: boolean;
|
|
651
|
+
}
|
|
652
|
+
export declare const GetLocationMessagesSchema: z.ZodObject<{
|
|
653
|
+
locationId: z.ZodBigInt;
|
|
654
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
655
|
+
}, "strip", z.ZodTypeAny, {
|
|
656
|
+
locationId: bigint;
|
|
657
|
+
cursor?: string | undefined;
|
|
658
|
+
}, {
|
|
659
|
+
locationId: bigint;
|
|
660
|
+
cursor?: string | undefined;
|
|
661
|
+
}>;
|
|
662
|
+
export type GetLocationMessagesDto = z.infer<typeof GetLocationMessagesSchema>;
|
|
663
|
+
export interface LocationMessagesResponseDto {
|
|
664
|
+
messages: LocationMessageDto[];
|
|
665
|
+
nextCursor?: string;
|
|
666
|
+
}
|
|
667
|
+
export declare const SendLocationMessageSchema: z.ZodObject<{
|
|
555
668
|
locationId: z.ZodBigInt;
|
|
556
|
-
} & {
|
|
557
|
-
repeatTimesOfDay: z.ZodArray<z.ZodString, "many">;
|
|
558
|
-
repeatDaysOfWeek: z.ZodDefault<z.ZodOptional<z.ZodArray<z.ZodNativeEnum<typeof DayOfWeek>, "many">>>;
|
|
559
|
-
} & {
|
|
560
669
|
message: z.ZodString;
|
|
561
670
|
}, "strip", z.ZodTypeAny, {
|
|
562
671
|
message: string;
|
|
563
672
|
locationId: bigint;
|
|
564
|
-
repeatTimesOfDay: string[];
|
|
565
|
-
repeatDaysOfWeek: DayOfWeek[];
|
|
566
673
|
}, {
|
|
567
674
|
message: string;
|
|
568
675
|
locationId: bigint;
|
|
569
|
-
repeatTimesOfDay: string[];
|
|
570
|
-
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
571
676
|
}>;
|
|
572
|
-
export type
|
|
573
|
-
export
|
|
677
|
+
export type SendLocationMessageDto = z.infer<typeof SendLocationMessageSchema>;
|
|
678
|
+
export interface SendMessageResponseDto {
|
|
679
|
+
success: boolean;
|
|
680
|
+
messageId?: string;
|
|
681
|
+
}
|
|
682
|
+
export declare const SendUserMessageSchema: z.ZodObject<{
|
|
574
683
|
locationId: z.ZodBigInt;
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
messageId: z.ZodString;
|
|
580
|
-
message: z.ZodOptional<z.ZodString>;
|
|
684
|
+
twitchUserId: z.ZodString;
|
|
685
|
+
username: z.ZodString;
|
|
686
|
+
nickname: z.ZodString;
|
|
687
|
+
message: z.ZodString;
|
|
581
688
|
}, "strip", z.ZodTypeAny, {
|
|
689
|
+
message: string;
|
|
582
690
|
locationId: bigint;
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
message?: string | undefined;
|
|
691
|
+
username: string;
|
|
692
|
+
twitchUserId: string;
|
|
693
|
+
nickname: string;
|
|
587
694
|
}, {
|
|
695
|
+
message: string;
|
|
588
696
|
locationId: bigint;
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
repeatDaysOfWeek?: DayOfWeek[] | undefined;
|
|
697
|
+
username: string;
|
|
698
|
+
twitchUserId: string;
|
|
699
|
+
nickname: string;
|
|
593
700
|
}>;
|
|
594
|
-
export type
|
|
595
|
-
export declare const
|
|
701
|
+
export type SendUserMessageDto = z.infer<typeof SendUserMessageSchema>;
|
|
702
|
+
export declare const SendSystemMessageSchema: z.ZodObject<{
|
|
596
703
|
locationId: z.ZodBigInt;
|
|
597
|
-
|
|
704
|
+
message: z.ZodString;
|
|
705
|
+
resumeUpdate: z.ZodOptional<z.ZodBoolean>;
|
|
598
706
|
}, "strip", z.ZodTypeAny, {
|
|
707
|
+
message: string;
|
|
599
708
|
locationId: bigint;
|
|
600
|
-
|
|
709
|
+
resumeUpdate?: boolean | undefined;
|
|
601
710
|
}, {
|
|
711
|
+
message: string;
|
|
602
712
|
locationId: bigint;
|
|
603
|
-
|
|
713
|
+
resumeUpdate?: boolean | undefined;
|
|
604
714
|
}>;
|
|
605
|
-
export type
|
|
715
|
+
export type SendSystemMessageDto = z.infer<typeof SendSystemMessageSchema>;
|
|
716
|
+
export declare const UpdateLocationImageSchema: z.ZodObject<{
|
|
717
|
+
locationId: z.ZodBigInt;
|
|
718
|
+
image: z.ZodString;
|
|
719
|
+
index: z.ZodOptional<z.ZodNumber>;
|
|
720
|
+
}, "strip", z.ZodTypeAny, {
|
|
721
|
+
locationId: bigint;
|
|
722
|
+
image: string;
|
|
723
|
+
index?: number | undefined;
|
|
724
|
+
}, {
|
|
725
|
+
locationId: bigint;
|
|
726
|
+
image: string;
|
|
727
|
+
index?: number | undefined;
|
|
728
|
+
}>;
|
|
729
|
+
export type UpdateLocationImageDto = z.infer<typeof UpdateLocationImageSchema>;
|
|
730
|
+
export interface UpdateLocationImageResponseDto {
|
|
731
|
+
success: boolean;
|
|
732
|
+
imageUrl?: string;
|
|
733
|
+
}
|
|
734
|
+
export declare const UpdateLocationRenderingSchema: z.ZodObject<{
|
|
735
|
+
locationId: z.ZodBigInt;
|
|
736
|
+
rendering: z.ZodNullable<z.ZodString>;
|
|
737
|
+
}, "strip", z.ZodTypeAny, {
|
|
738
|
+
locationId: bigint;
|
|
739
|
+
rendering: string | null;
|
|
740
|
+
}, {
|
|
741
|
+
locationId: bigint;
|
|
742
|
+
rendering: string | null;
|
|
743
|
+
}>;
|
|
744
|
+
export type UpdateLocationRenderingDto = z.infer<typeof UpdateLocationRenderingSchema>;
|
|
745
|
+
export interface UpdateLocationRenderingResponseDto {
|
|
746
|
+
success: boolean;
|
|
747
|
+
rendering?: string | null;
|
|
748
|
+
}
|
|
749
|
+
export declare const UpdateLocationAgentIsActiveSchema: z.ZodObject<{
|
|
750
|
+
locationId: z.ZodBigInt;
|
|
751
|
+
agentId: z.ZodBigInt;
|
|
752
|
+
isActive: z.ZodBoolean;
|
|
753
|
+
}, "strip", z.ZodTypeAny, {
|
|
754
|
+
locationId: bigint;
|
|
755
|
+
agentId: bigint;
|
|
756
|
+
isActive: boolean;
|
|
757
|
+
}, {
|
|
758
|
+
locationId: bigint;
|
|
759
|
+
agentId: bigint;
|
|
760
|
+
isActive: boolean;
|
|
761
|
+
}>;
|
|
762
|
+
export type UpdateLocationAgentIsActiveDto = z.infer<typeof UpdateLocationAgentIsActiveSchema>;
|
|
763
|
+
export interface UpdateLocationAgentIsActiveResponseDto {
|
|
764
|
+
success: boolean;
|
|
765
|
+
agentId: bigint;
|
|
766
|
+
isActive: boolean;
|
|
767
|
+
}
|
|
768
|
+
export declare const PauseLocationUpdateSchema: z.ZodObject<{
|
|
769
|
+
locationId: z.ZodBigInt;
|
|
770
|
+
}, "strip", z.ZodTypeAny, {
|
|
771
|
+
locationId: bigint;
|
|
772
|
+
}, {
|
|
773
|
+
locationId: bigint;
|
|
774
|
+
}>;
|
|
775
|
+
export type PauseLocationUpdateDto = z.infer<typeof PauseLocationUpdateSchema>;
|
|
776
|
+
export interface PauseLocationUpdateResponseDto {
|
|
777
|
+
success: boolean;
|
|
778
|
+
locationId: bigint;
|
|
779
|
+
paused: boolean;
|
|
780
|
+
}
|
|
781
|
+
export declare const ResumeLocationUpdateSchema: z.ZodObject<{
|
|
782
|
+
locationId: z.ZodBigInt;
|
|
783
|
+
delayMs: z.ZodDefault<z.ZodOptional<z.ZodNumber>>;
|
|
784
|
+
}, "strip", z.ZodTypeAny, {
|
|
785
|
+
locationId: bigint;
|
|
786
|
+
delayMs: number;
|
|
787
|
+
}, {
|
|
788
|
+
locationId: bigint;
|
|
789
|
+
delayMs?: number | undefined;
|
|
790
|
+
}>;
|
|
791
|
+
export type ResumeLocationUpdateDto = z.infer<typeof ResumeLocationUpdateSchema>;
|
|
792
|
+
export interface ResumeLocationUpdateResponseDto {
|
|
793
|
+
success: boolean;
|
|
794
|
+
locationId: bigint;
|
|
795
|
+
delayMs: number;
|
|
796
|
+
resumeAt: string;
|
|
797
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.
|
|
3
|
+
exports.ResumeLocationUpdateSchema = exports.PauseLocationUpdateSchema = exports.UpdateLocationAgentIsActiveSchema = exports.UpdateLocationRenderingSchema = exports.UpdateLocationImageSchema = exports.SendSystemMessageSchema = exports.SendUserMessageSchema = exports.SendLocationMessageSchema = exports.GetLocationMessagesSchema = exports.UnsubscribeLocationSchema = exports.SubscribeLocationSchema = exports.LeaveLocationSchema = exports.JoinLocationSchema = exports.DeleteLocationScheduledMessageToolSchema = exports.DeleteLocationScheduledMessageParamsSchema = exports.UpdateLocationScheduledMessageToolSchema = exports.UpdateLocationScheduledMessageBodySchema = exports.UpdateLocationScheduledMessageParamsSchema = exports.CreateLocationScheduledMessageToolSchema = exports.CreateLocationScheduledMessageBodySchema = exports.CreateLocationScheduledMessageParamsSchema = exports.GetLocationScheduledMessagesParamsSchema = exports.RemoveAgentFromLocationToolSchema = exports.RemoveAgentFromLocationBodySchema = exports.RemoveAgentFromLocationParamsSchema = exports.JoinAgentToLocationToolSchema = exports.JoinAgentToLocationBodySchema = exports.JoinAgentToLocationParamsSchema = exports.LocationUnreadCountParamsSchema = exports.MarkLocationAsReadParamsSchema = exports.GetLocationPrivateParamsSchema = exports.GetLocationParamsSchema = exports.GetAgentDmLocationQuerySchema = exports.GetLocationHelperLocationQuerySchema = exports.GetAgentHelperLocationQuerySchema = exports.CreateLocationFromPresetSchema = exports.LocationPresetsPaginationQuerySchema = exports.LocationDeleteCredentialSchema = exports.LocationUpdateCredentialSchema = exports.LocationUpdateConfigSchema = exports.LocationsUnreadCountQuerySchema = exports.UserLocationsQuerySchema = void 0;
|
|
4
4
|
const common_1 = require("@little-samo/samo-ai/common");
|
|
5
5
|
const models_1 = require("@little-samo/samo-ai-sdk/models");
|
|
6
6
|
const zod_1 = require("zod");
|
|
@@ -14,18 +14,6 @@ exports.UserLocationsQuerySchema = zod_1.z.object({
|
|
|
14
14
|
.default(10)
|
|
15
15
|
.describe('Number of locations to return'),
|
|
16
16
|
});
|
|
17
|
-
exports.GetLocationParamsSchema = zod_1.z.object({
|
|
18
|
-
locationId: zod_1.z.coerce.bigint(),
|
|
19
|
-
});
|
|
20
|
-
exports.GetLocationPrivateParamsSchema = zod_1.z.object({
|
|
21
|
-
locationId: zod_1.z.coerce.bigint(),
|
|
22
|
-
});
|
|
23
|
-
exports.MarkLocationAsReadParamsSchema = zod_1.z.object({
|
|
24
|
-
locationId: zod_1.z.coerce.bigint(),
|
|
25
|
-
});
|
|
26
|
-
exports.LocationUnreadCountParamsSchema = zod_1.z.object({
|
|
27
|
-
locationId: zod_1.z.coerce.bigint(),
|
|
28
|
-
});
|
|
29
17
|
exports.LocationsUnreadCountQuerySchema = zod_1.z.object({
|
|
30
18
|
locationIds: zod_1.z
|
|
31
19
|
.string()
|
|
@@ -34,37 +22,6 @@ exports.LocationsUnreadCountQuerySchema = zod_1.z.object({
|
|
|
34
22
|
message: 'locationIds must contain 1-10 location IDs',
|
|
35
23
|
}),
|
|
36
24
|
});
|
|
37
|
-
exports.JoinAgentToLocationParamsSchema = zod_1.z.object({
|
|
38
|
-
locationId: zod_1.z.coerce.bigint(),
|
|
39
|
-
});
|
|
40
|
-
exports.JoinAgentToLocationBodySchema = zod_1.z.object({
|
|
41
|
-
agentId: zod_1.z.coerce.bigint(),
|
|
42
|
-
});
|
|
43
|
-
exports.JoinAgentToLocationToolSchema = zod_1.z.object({
|
|
44
|
-
locationId: zod_1.z.coerce.bigint(),
|
|
45
|
-
agentId: zod_1.z.coerce.bigint(),
|
|
46
|
-
});
|
|
47
|
-
exports.RemoveAgentFromLocationParamsSchema = zod_1.z.object({
|
|
48
|
-
locationId: zod_1.z.coerce.bigint(),
|
|
49
|
-
});
|
|
50
|
-
exports.RemoveAgentFromLocationBodySchema = zod_1.z.object({
|
|
51
|
-
agentId: zod_1.z.coerce.bigint(),
|
|
52
|
-
});
|
|
53
|
-
exports.RemoveAgentFromLocationToolSchema = zod_1.z.object({
|
|
54
|
-
locationId: zod_1.z.coerce.bigint(),
|
|
55
|
-
agentId: zod_1.z.coerce.bigint(),
|
|
56
|
-
});
|
|
57
|
-
exports.LocationPresetsPaginationQuerySchema = zod_1.z.object({
|
|
58
|
-
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
59
|
-
limit: zod_1.z.coerce.number().int().min(1).max(100).optional().default(20),
|
|
60
|
-
});
|
|
61
|
-
exports.CreateLocationFromPresetSchema = zod_1.z.object({
|
|
62
|
-
presetId: zod_1.z.coerce.bigint(),
|
|
63
|
-
platform: zod_1.z
|
|
64
|
-
.nativeEnum(models_1.LocationPlatform)
|
|
65
|
-
.optional()
|
|
66
|
-
.default(models_1.LocationPlatform.API),
|
|
67
|
-
});
|
|
68
25
|
exports.LocationUpdateConfigSchema = zod_1.z.object({
|
|
69
26
|
locationId: zod_1.z.coerce.bigint().describe('ID of the location to update'),
|
|
70
27
|
config: location_config_1.LocationConfigSchema.partial()
|
|
@@ -90,6 +47,17 @@ exports.LocationDeleteCredentialSchema = zod_1.z.object({
|
|
|
90
47
|
locationId: zod_1.z.coerce.bigint(),
|
|
91
48
|
credentialType: zod_1.z.string(),
|
|
92
49
|
});
|
|
50
|
+
exports.LocationPresetsPaginationQuerySchema = zod_1.z.object({
|
|
51
|
+
page: zod_1.z.coerce.number().int().min(1).optional().default(1),
|
|
52
|
+
limit: zod_1.z.coerce.number().int().min(1).max(100).optional().default(20),
|
|
53
|
+
});
|
|
54
|
+
exports.CreateLocationFromPresetSchema = zod_1.z.object({
|
|
55
|
+
presetId: zod_1.z.coerce.bigint(),
|
|
56
|
+
platform: zod_1.z
|
|
57
|
+
.nativeEnum(models_1.LocationPlatform)
|
|
58
|
+
.optional()
|
|
59
|
+
.default(models_1.LocationPlatform.API),
|
|
60
|
+
});
|
|
93
61
|
exports.GetAgentHelperLocationQuerySchema = zod_1.z.object({
|
|
94
62
|
agentId: zod_1.z.coerce.bigint(),
|
|
95
63
|
platform: zod_1.z
|
|
@@ -111,6 +79,38 @@ exports.GetAgentDmLocationQuerySchema = zod_1.z.object({
|
|
|
111
79
|
.optional()
|
|
112
80
|
.default(models_1.LocationPlatform.API),
|
|
113
81
|
});
|
|
82
|
+
exports.GetLocationParamsSchema = zod_1.z.object({
|
|
83
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
84
|
+
});
|
|
85
|
+
exports.GetLocationPrivateParamsSchema = zod_1.z.object({
|
|
86
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
87
|
+
});
|
|
88
|
+
exports.MarkLocationAsReadParamsSchema = zod_1.z.object({
|
|
89
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
90
|
+
});
|
|
91
|
+
exports.LocationUnreadCountParamsSchema = zod_1.z.object({
|
|
92
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
93
|
+
});
|
|
94
|
+
exports.JoinAgentToLocationParamsSchema = zod_1.z.object({
|
|
95
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
96
|
+
});
|
|
97
|
+
exports.JoinAgentToLocationBodySchema = zod_1.z.object({
|
|
98
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
99
|
+
});
|
|
100
|
+
exports.JoinAgentToLocationToolSchema = zod_1.z.object({
|
|
101
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
102
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
103
|
+
});
|
|
104
|
+
exports.RemoveAgentFromLocationParamsSchema = zod_1.z.object({
|
|
105
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
106
|
+
});
|
|
107
|
+
exports.RemoveAgentFromLocationBodySchema = zod_1.z.object({
|
|
108
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
109
|
+
});
|
|
110
|
+
exports.RemoveAgentFromLocationToolSchema = zod_1.z.object({
|
|
111
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
112
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
113
|
+
});
|
|
114
114
|
exports.GetLocationScheduledMessagesParamsSchema = zod_1.z.object({
|
|
115
115
|
locationId: zod_1.z.coerce.bigint(),
|
|
116
116
|
});
|
|
@@ -133,6 +133,10 @@ const LocationScheduledMessageBaseSchema = zod_1.z.object({
|
|
|
133
133
|
exports.CreateLocationScheduledMessageBodySchema = LocationScheduledMessageBaseSchema.extend({
|
|
134
134
|
message: zod_1.z.string().max(500),
|
|
135
135
|
});
|
|
136
|
+
exports.CreateLocationScheduledMessageToolSchema = LocationScheduledMessageBaseSchema.extend({
|
|
137
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
138
|
+
message: zod_1.z.string().max(500),
|
|
139
|
+
});
|
|
136
140
|
exports.UpdateLocationScheduledMessageParamsSchema = zod_1.z.object({
|
|
137
141
|
locationId: zod_1.z.coerce.bigint(),
|
|
138
142
|
messageId: zod_1.z.string(),
|
|
@@ -140,24 +144,70 @@ exports.UpdateLocationScheduledMessageParamsSchema = zod_1.z.object({
|
|
|
140
144
|
exports.UpdateLocationScheduledMessageBodySchema = LocationScheduledMessageBaseSchema.extend({
|
|
141
145
|
message: zod_1.z.string().max(500).optional(),
|
|
142
146
|
});
|
|
143
|
-
exports.
|
|
147
|
+
exports.UpdateLocationScheduledMessageToolSchema = LocationScheduledMessageBaseSchema.extend({
|
|
144
148
|
locationId: zod_1.z.coerce.bigint(),
|
|
145
149
|
messageId: zod_1.z.string(),
|
|
150
|
+
message: zod_1.z.string().max(500).optional(),
|
|
146
151
|
});
|
|
147
|
-
|
|
148
|
-
.object({
|
|
152
|
+
exports.DeleteLocationScheduledMessageParamsSchema = zod_1.z.object({
|
|
149
153
|
locationId: zod_1.z.coerce.bigint(),
|
|
150
|
-
})
|
|
151
|
-
.merge(LocationScheduledMessageBaseSchema);
|
|
152
|
-
exports.CreateLocationScheduledMessageToolSchema = LocationScheduledMessageToolBaseSchema.extend({
|
|
153
|
-
message: zod_1.z.string().max(500),
|
|
154
|
-
});
|
|
155
|
-
exports.UpdateLocationScheduledMessageToolSchema = LocationScheduledMessageToolBaseSchema.extend({
|
|
156
154
|
messageId: zod_1.z.string(),
|
|
157
|
-
message: zod_1.z.string().max(500).optional(),
|
|
158
155
|
});
|
|
159
156
|
exports.DeleteLocationScheduledMessageToolSchema = zod_1.z.object({
|
|
160
157
|
locationId: zod_1.z.coerce.bigint(),
|
|
161
158
|
messageId: zod_1.z.string(),
|
|
162
159
|
});
|
|
160
|
+
exports.JoinLocationSchema = zod_1.z.object({
|
|
161
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
162
|
+
});
|
|
163
|
+
exports.LeaveLocationSchema = zod_1.z.object({
|
|
164
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
165
|
+
});
|
|
166
|
+
exports.SubscribeLocationSchema = zod_1.z.object({
|
|
167
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
168
|
+
});
|
|
169
|
+
exports.UnsubscribeLocationSchema = zod_1.z.object({
|
|
170
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
171
|
+
});
|
|
172
|
+
exports.GetLocationMessagesSchema = zod_1.z.object({
|
|
173
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
174
|
+
cursor: zod_1.z.string().optional(),
|
|
175
|
+
});
|
|
176
|
+
exports.SendLocationMessageSchema = zod_1.z.object({
|
|
177
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
178
|
+
message: zod_1.z.string().max(2000),
|
|
179
|
+
});
|
|
180
|
+
exports.SendUserMessageSchema = zod_1.z.object({
|
|
181
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
182
|
+
twitchUserId: zod_1.z.string(),
|
|
183
|
+
username: zod_1.z.string(),
|
|
184
|
+
nickname: zod_1.z.string(),
|
|
185
|
+
message: zod_1.z.string().max(2000),
|
|
186
|
+
});
|
|
187
|
+
exports.SendSystemMessageSchema = zod_1.z.object({
|
|
188
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
189
|
+
message: zod_1.z.string().max(2000),
|
|
190
|
+
resumeUpdate: zod_1.z.boolean().optional(),
|
|
191
|
+
});
|
|
192
|
+
exports.UpdateLocationImageSchema = zod_1.z.object({
|
|
193
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
194
|
+
image: zod_1.z.string(),
|
|
195
|
+
index: zod_1.z.number().int().min(0).optional(),
|
|
196
|
+
});
|
|
197
|
+
exports.UpdateLocationRenderingSchema = zod_1.z.object({
|
|
198
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
199
|
+
rendering: zod_1.z.string().nullable(),
|
|
200
|
+
});
|
|
201
|
+
exports.UpdateLocationAgentIsActiveSchema = zod_1.z.object({
|
|
202
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
203
|
+
agentId: zod_1.z.coerce.bigint(),
|
|
204
|
+
isActive: zod_1.z.boolean(),
|
|
205
|
+
});
|
|
206
|
+
exports.PauseLocationUpdateSchema = zod_1.z.object({
|
|
207
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
208
|
+
});
|
|
209
|
+
exports.ResumeLocationUpdateSchema = zod_1.z.object({
|
|
210
|
+
locationId: zod_1.z.coerce.bigint(),
|
|
211
|
+
delayMs: zod_1.z.number().int().min(0).max(60000).optional().default(0),
|
|
212
|
+
});
|
|
163
213
|
//# sourceMappingURL=location.requests.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"location.requests.js","sourceRoot":"","sources":["../../../src/dto/locations/location.requests.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,4DAAmE;AACnE,6BAAwB;AAExB,4EAGgD;
|
|
1
|
+
{"version":3,"file":"location.requests.js","sourceRoot":"","sources":["../../../src/dto/locations/location.requests.ts"],"names":[],"mappings":";;;AAAA,wDAAwD;AACxD,4DAAmE;AACnE,6BAAwB;AAExB,4EAGgD;AAYnC,QAAA,wBAAwB,GAAG,OAAC,CAAC,MAAM,CAAC;IAC/C,MAAM,EAAE,OAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,iCAAiC,CAAC;IACzE,KAAK,EAAE,OAAC,CAAC,MAAM;SACZ,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,GAAG,CAAC,EAAE,CAAC;SACP,OAAO,CAAC,EAAE,CAAC;SACX,QAAQ,CAAC,+BAA+B,CAAC;CAC7C,CAAC,CAAC;AAaU,QAAA,+BAA+B,GAAG,OAAC,CAAC,MAAM,CAAC;IACtD,WAAW,EAAE,OAAC;SACX,MAAM,EAAE;SACR,SAAS,CAAC,CAAC,GAAG,EAAE,EAAE,CACjB,GAAG,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,OAAC,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC,KAAK,CA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