@channel.io/app-sdk-core 0.14.0 → 0.15.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/extensions/function-schemas.d.ts +17428 -0
- package/dist/extensions/function-schemas.d.ts.map +1 -0
- package/dist/extensions/function-schemas.js +459 -0
- package/dist/extensions/function-schemas.js.map +1 -0
- package/dist/extensions/index.d.ts +1 -0
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/extensions/index.js +2 -0
- package/dist/extensions/index.js.map +1 -1
- package/dist/extensions/proto-contracts.d.ts +183 -0
- package/dist/extensions/proto-contracts.d.ts.map +1 -0
- package/dist/extensions/proto-contracts.js +2 -0
- package/dist/extensions/proto-contracts.js.map +1 -0
- package/dist/gen/channel/app/sdk/v1/common.zod.d.ts +970 -0
- package/dist/gen/channel/app/sdk/v1/common.zod.d.ts.map +1 -0
- package/dist/gen/channel/app/sdk/v1/common.zod.js +230 -0
- package/dist/gen/channel/app/sdk/v1/common.zod.js.map +1 -0
- package/dist/gen/channel/app/sdk/v1/context.zod.d.ts +190 -0
- package/dist/gen/channel/app/sdk/v1/context.zod.d.ts.map +1 -0
- package/dist/gen/channel/app/sdk/v1/context.zod.js +41 -0
- package/dist/gen/channel/app/sdk/v1/context.zod.js.map +1 -0
- package/dist/gen/channel/app/sdk/v1/error.zod.d.ts +19 -0
- package/dist/gen/channel/app/sdk/v1/error.zod.d.ts.map +1 -0
- package/dist/gen/channel/app/sdk/v1/error.zod.js +9 -0
- package/dist/gen/channel/app/sdk/v1/error.zod.js.map +1 -0
- package/dist/gen/channel/app/sdk/v1/extension.d.ts +42 -9
- package/dist/gen/channel/app/sdk/v1/extension.d.ts.map +1 -1
- package/dist/gen/channel/app/sdk/v1/extension.zod.d.ts +14581 -0
- package/dist/gen/channel/app/sdk/v1/extension.zod.d.ts.map +1 -0
- package/dist/gen/channel/app/sdk/v1/extension.zod.js +1018 -0
- package/dist/gen/channel/app/sdk/v1/extension.zod.js.map +1 -0
- package/dist/gen/channel/app/sdk/v1/function.zod.d.ts +288 -0
- package/dist/gen/channel/app/sdk/v1/function.zod.d.ts.map +1 -0
- package/dist/gen/channel/app/sdk/v1/function.zod.js +26 -0
- package/dist/gen/channel/app/sdk/v1/function.zod.js.map +1 -0
- package/dist/gen/channel/app/sdk/v1/native.zod.d.ts +356 -0
- package/dist/gen/channel/app/sdk/v1/native.zod.d.ts.map +1 -0
- package/dist/gen/channel/app/sdk/v1/native.zod.js +52 -0
- package/dist/gen/channel/app/sdk/v1/native.zod.js.map +1 -0
- package/dist/gen/io/channel/datasource/v1/datasource.zod.d.ts +598 -0
- package/dist/gen/io/channel/datasource/v1/datasource.zod.d.ts.map +1 -0
- package/dist/gen/io/channel/datasource/v1/datasource.zod.js +88 -0
- package/dist/gen/io/channel/datasource/v1/datasource.zod.js.map +1 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +8 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.zod.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/channel/app/sdk/v1/common.zod.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,yBAAyB,8UAAmX,CAAC;AAC1Z,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,mBAAmB,4EAA2G,CAAC;AAC5I,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,2BAA2B,mNAA0P,CAAC;AACnS,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,uBAAuB,0IAA6K,CAAC;AAClN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,CAAC,CAAC;AAElF,eAAO,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGG,CAAC;AAC5C,MAAM,MAAM,qBAAqB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,2BAA2B,CAAC,CAAC;AAEhF,eAAO,MAAM,yBAAyB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAGG,CAAC;AAC1C,MAAM,MAAM,mBAAmB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,yBAAyB,CAAC,CAAC;AAE5E,eAAO,MAAM,wBAAwB;;;;;;;;;;;;EAIG,CAAC;AACzC,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
// Code generated by scripts/generate-proto-zod.mjs. DO NOT EDIT.
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const AlfMessageTypeProtoSchema = z.enum(["ALF_MESSAGE_TYPE_UNSPECIFIED", "ALF_MESSAGE_TYPE_COMPLETE", "ALF_MESSAGE_TYPE_RAG", "ALF_MESSAGE_TYPE_INCOMPLETE", "ALF_MESSAGE_TYPE_IMPOSSIBLE", "ALF_MESSAGE_TYPE_COMMAND", "ALF_MESSAGE_TYPE_FAQ", "ALF_MESSAGE_TYPE_FAILED", "ALF_MESSAGE_TYPE_RATE_LIMITED", "ALF_MESSAGE_TYPE_OPEN_USER_CHAT", "ALF_MESSAGE_TYPE_SYSTEM"]);
|
|
4
|
+
export const MeetModeProtoSchema = z.enum(["MEET_MODE_UNSPECIFIED", "MEET_MODE_AUDIO", "MEET_MODE_VIDEO"]);
|
|
5
|
+
export const MessageMeetStateProtoSchema = z.enum(["MESSAGE_MEET_STATE_UNSPECIFIED", "MESSAGE_MEET_STATE_LIVE", "MESSAGE_MEET_STATE_ENDED", "MESSAGE_MEET_STATE_TRANSCRIBING", "MESSAGE_MEET_STATE_TRANSCRIBED", "MESSAGE_MEET_STATE_TRANSCRIBE_FAILED"]);
|
|
6
|
+
export const MessageStateProtoSchema = z.enum(["MESSAGE_STATE_UNSPECIFIED", "MESSAGE_STATE_SENDING", "MESSAGE_STATE_SENT", "MESSAGE_STATE_FAILED", "MESSAGE_STATE_REMOVED"]);
|
|
7
|
+
export const MessageColorVariantProtoSchema = z.enum(["MESSAGE_COLOR_VARIANT_UNSPECIFIED", "MESSAGE_COLOR_VARIANT_COBALT", "MESSAGE_COLOR_VARIANT_GREEN", "MESSAGE_COLOR_VARIANT_ORANGE", "MESSAGE_COLOR_VARIANT_RED", "MESSAGE_COLOR_VARIANT_BLACK", "MESSAGE_COLOR_VARIANT_PINK", "MESSAGE_COLOR_VARIANT_PURPLE"]);
|
|
8
|
+
export const MessageOptionProtoSchema = z.enum(["MESSAGE_OPTION_UNSPECIFIED", "MESSAGE_OPTION_ACT_AS_MANAGER", "MESSAGE_OPTION_DISPLAY_AS_CHANNEL", "MESSAGE_OPTION_DO_NOT_POST", "MESSAGE_OPTION_DO_NOT_SEARCH", "MESSAGE_OPTION_DO_NOT_SEND_APP", "MESSAGE_OPTION_DO_NOT_UPDATE_DESK", "MESSAGE_OPTION_IMMUTABLE", "MESSAGE_OPTION_PRIVATE", "MESSAGE_OPTION_SILENT_TO_MANAGER", "MESSAGE_OPTION_SILENT_TO_USER"]);
|
|
9
|
+
export const MessageAlertLevelProtoSchema = z.enum(["MESSAGE_ALERT_LEVEL_UNSPECIFIED", "MESSAGE_ALERT_LEVEL_ALERT", "MESSAGE_ALERT_LEVEL_UNREAD", "MESSAGE_ALERT_LEVEL_NONE"]);
|
|
10
|
+
export const WritingTypeProtoSchema = z.enum(["WRITING_TYPE_UNSPECIFIED", "WRITING_TYPE_STANDARD", "WRITING_TYPE_CUSTOM", "WRITING_TYPE_EMAIL"]);
|
|
11
|
+
export const ChannelUserChatStateProtoSchema = z.enum(["USER_CHAT_STATE_UNSPECIFIED", "USER_CHAT_STATE_CLOSED", "USER_CHAT_STATE_OPENED", "USER_CHAT_STATE_SNOOZED", "USER_CHAT_STATE_INITIAL", "USER_CHAT_STATE_MISSED", "USER_CHAT_STATE_QUEUED"]);
|
|
12
|
+
export const ChannelUserChatGoalStateProtoSchema = z.enum(["USER_CHAT_GOAL_STATE_UNSPECIFIED", "USER_CHAT_GOAL_STATE_ACHIEVED", "USER_CHAT_GOAL_STATE_NOT_ACHIEVED", "USER_CHAT_GOAL_STATE_WAITING", "USER_CHAT_GOAL_STATE_NONE"]);
|
|
13
|
+
export const ChannelUserChatSubtextTypeProtoSchema = z.enum(["USER_CHAT_SUBTEXT_TYPE_UNSPECIFIED", "USER_CHAT_SUBTEXT_TYPE_DESCRIPTION", "USER_CHAT_SUBTEXT_TYPE_INCOMING"]);
|
|
14
|
+
export const MissedReasonProtoSchema = z.enum(["MISSED_REASON_UNSPECIFIED", "MISSED_REASON_NOT_IN_OPERATION", "MISSED_REASON_USER_LEFT", "MISSED_REASON_RING_TIME_OVER", "MISSED_REASON_RATE_LIMIT", "MISSED_REASON_NO_OPERATOR"]);
|
|
15
|
+
export const ChannelUserTypeProtoSchema = z.enum(["USER_TYPE_UNSPECIFIED", "USER_TYPE_MEMBER", "USER_TYPE_LEAD", "USER_TYPE_UNIFIED"]);
|
|
16
|
+
export const AlfProtoSchema = z.object({
|
|
17
|
+
type: AlfMessageTypeProtoSchema.optional(),
|
|
18
|
+
handlingId: z.string().optional(),
|
|
19
|
+
references: z.array(z.record(z.string(), z.any())).optional(),
|
|
20
|
+
mentionAlfAnswered: z.boolean().optional(),
|
|
21
|
+
});
|
|
22
|
+
export const MeetProtoSchema = z.object({
|
|
23
|
+
id: z.string().optional(),
|
|
24
|
+
call: z.record(z.string(), z.any()).optional(),
|
|
25
|
+
mode: MeetModeProtoSchema.optional(),
|
|
26
|
+
state: MessageMeetStateProtoSchema.optional(),
|
|
27
|
+
country: z.string().optional(),
|
|
28
|
+
recording: z.record(z.string(), z.any()).optional(),
|
|
29
|
+
managerIds: z.array(z.string()).optional(),
|
|
30
|
+
roomStartedAt: z.string().optional(),
|
|
31
|
+
amassedPersons: z.array(z.string()).optional(),
|
|
32
|
+
});
|
|
33
|
+
export const MessageFileProtoSchema = z.object({
|
|
34
|
+
url: z.string().optional(),
|
|
35
|
+
mime: z.string().optional(),
|
|
36
|
+
fileName: z.string().optional(),
|
|
37
|
+
});
|
|
38
|
+
export const MessageThreadProtoSchema = z.object({
|
|
39
|
+
id: z.string().optional(),
|
|
40
|
+
managerIds: z.array(z.string()).optional(),
|
|
41
|
+
replyCount: z.number().int().optional(),
|
|
42
|
+
repliedManagerIds: z.array(z.string()).optional(),
|
|
43
|
+
});
|
|
44
|
+
export const MessageButtonProtoSchema = z.object({
|
|
45
|
+
title: z.string().optional(),
|
|
46
|
+
action: z.record(z.string(), z.any()).optional(),
|
|
47
|
+
colorVariant: MessageColorVariantProtoSchema.optional(),
|
|
48
|
+
});
|
|
49
|
+
export const CustomPayloadProtoSchema = z.object({
|
|
50
|
+
data: z.record(z.string(), z.any()).optional(),
|
|
51
|
+
paramMapper: z.record(z.string(), z.any()).optional(),
|
|
52
|
+
});
|
|
53
|
+
export const ChannelMessageProtoSchema = z.object({
|
|
54
|
+
id: z.string().optional(),
|
|
55
|
+
alf: z.lazy(() => AlfProtoSchema).optional(),
|
|
56
|
+
log: z.record(z.string(), z.any()).optional(),
|
|
57
|
+
form: z.record(z.string(), z.any()).optional(),
|
|
58
|
+
meet: z.lazy(() => MeetProtoSchema).optional(),
|
|
59
|
+
files: z.array(z.lazy(() => MessageFileProtoSchema)).optional(),
|
|
60
|
+
state: MessageStateProtoSchema.optional(),
|
|
61
|
+
blocks: z.array(z.record(z.string(), z.any())).optional(),
|
|
62
|
+
chatId: z.string().optional(),
|
|
63
|
+
thread: z.lazy(() => MessageThreadProtoSchema).optional(),
|
|
64
|
+
buttons: z.array(z.lazy(() => MessageButtonProtoSchema)).optional(),
|
|
65
|
+
options: z.array(MessageOptionProtoSchema).optional(),
|
|
66
|
+
version: z.string().optional(),
|
|
67
|
+
webPage: z.record(z.string(), z.any()).optional(),
|
|
68
|
+
chatType: z.string().optional(),
|
|
69
|
+
language: z.string().optional(),
|
|
70
|
+
personId: z.string().optional(),
|
|
71
|
+
channelId: z.string().optional(),
|
|
72
|
+
createdAt: z.string().optional(),
|
|
73
|
+
marketing: z.record(z.string(), z.any()).optional(),
|
|
74
|
+
plainText: z.string().optional(),
|
|
75
|
+
reactions: z.array(z.record(z.string(), z.any())).optional(),
|
|
76
|
+
requestId: z.string().optional(),
|
|
77
|
+
updatedAt: z.string().optional(),
|
|
78
|
+
alertLevel: MessageAlertLevelProtoSchema.optional(),
|
|
79
|
+
personType: z.string().optional(),
|
|
80
|
+
supportBot: z.record(z.string(), z.any()).optional(),
|
|
81
|
+
writingType: WritingTypeProtoSchema.optional(),
|
|
82
|
+
customPayload: z.lazy(() => CustomPayloadProtoSchema).optional(),
|
|
83
|
+
inboundEmailId: z.string().optional(),
|
|
84
|
+
errorCode: z.string().optional(),
|
|
85
|
+
});
|
|
86
|
+
export const PrebuiltMessageProtoSchema = z.object({
|
|
87
|
+
id: z.string().optional(),
|
|
88
|
+
files: z.array(z.lazy(() => MessageFileProtoSchema)).optional(),
|
|
89
|
+
blocks: z.array(z.record(z.string(), z.any())).optional(),
|
|
90
|
+
chatId: z.string().optional(),
|
|
91
|
+
buttons: z.array(z.record(z.string(), z.any())).optional(),
|
|
92
|
+
version: z.string().optional(),
|
|
93
|
+
chatType: z.string().optional(),
|
|
94
|
+
language: z.string().optional(),
|
|
95
|
+
personId: z.string().optional(),
|
|
96
|
+
channelId: z.string().optional(),
|
|
97
|
+
createdAt: z.string().optional(),
|
|
98
|
+
plainText: z.string().optional(),
|
|
99
|
+
requestId: z.string().optional(),
|
|
100
|
+
updatedAt: z.string().optional(),
|
|
101
|
+
personType: z.string().optional(),
|
|
102
|
+
writingType: WritingTypeProtoSchema.optional(),
|
|
103
|
+
customPayload: z.lazy(() => CustomPayloadProtoSchema).optional(),
|
|
104
|
+
});
|
|
105
|
+
export const ChannelUserChatProtoSchema = z.object({
|
|
106
|
+
id: z.string().optional(),
|
|
107
|
+
name: z.string().optional(),
|
|
108
|
+
sync: z.boolean().optional(),
|
|
109
|
+
tags: z.array(z.string()).optional(),
|
|
110
|
+
state: ChannelUserChatStateProtoSchema.optional(),
|
|
111
|
+
title: z.string().optional(),
|
|
112
|
+
xerId: z.string().optional(),
|
|
113
|
+
source: z.record(z.string(), z.any()).optional(),
|
|
114
|
+
teamId: z.string().optional(),
|
|
115
|
+
userId: z.string().optional(),
|
|
116
|
+
askedAt: z.string().optional(),
|
|
117
|
+
managed: z.boolean().optional(),
|
|
118
|
+
oneStop: z.boolean().optional(),
|
|
119
|
+
profile: z.record(z.string(), z.any()).optional(),
|
|
120
|
+
version: z.string().optional(),
|
|
121
|
+
closedAt: z.string().optional(),
|
|
122
|
+
handling: z.record(z.string(), z.any()).optional(),
|
|
123
|
+
mediumId: z.string().optional(),
|
|
124
|
+
openedAt: z.string().optional(),
|
|
125
|
+
priority: z.string().optional(),
|
|
126
|
+
channelId: z.string().optional(),
|
|
127
|
+
createdAt: z.string().optional(),
|
|
128
|
+
expiresAt: z.string().optional(),
|
|
129
|
+
goalState: ChannelUserChatGoalStateProtoSchema.optional(),
|
|
130
|
+
mediumKey: z.string().optional(),
|
|
131
|
+
snoozedAt: z.string().optional(),
|
|
132
|
+
updatedAt: z.string().optional(),
|
|
133
|
+
assigneeId: z.string().optional(),
|
|
134
|
+
liveMeetId: z.string().optional(),
|
|
135
|
+
managerIds: z.array(z.string()).optional(),
|
|
136
|
+
mediumType: z.string().optional(),
|
|
137
|
+
replyCount: z.number().int().optional(),
|
|
138
|
+
description: z.string().optional(),
|
|
139
|
+
subtextType: ChannelUserChatSubtextTypeProtoSchema.optional(),
|
|
140
|
+
waitingTime: z.string().optional(),
|
|
141
|
+
avgReplyTime: z.string().optional(),
|
|
142
|
+
firstAskedAt: z.string().optional(),
|
|
143
|
+
missedReason: MissedReasonProtoSchema.optional(),
|
|
144
|
+
deskMessageId: z.string().optional(),
|
|
145
|
+
deskUpdatedAt: z.string().optional(),
|
|
146
|
+
firstOpenedAt: z.string().optional(),
|
|
147
|
+
goalCheckedAt: z.string().optional(),
|
|
148
|
+
goalEventName: z.string().optional(),
|
|
149
|
+
mediumProfile: z.record(z.string(), z.any()).optional(),
|
|
150
|
+
frontMessageId: z.string().optional(),
|
|
151
|
+
frontUpdatedAt: z.string().optional(),
|
|
152
|
+
goalEventQuery: z.record(z.string(), z.any()).optional(),
|
|
153
|
+
mediumTopicKey: z.string().optional(),
|
|
154
|
+
resolutionTime: z.string().optional(),
|
|
155
|
+
totalReplyTime: z.string().optional(),
|
|
156
|
+
contactMediumType: z.string().optional(),
|
|
157
|
+
mediumTopicLabels: z.array(z.string()).optional(),
|
|
158
|
+
userLastMessageId: z.string().optional(),
|
|
159
|
+
operationReplyCount: z.number().int().optional(),
|
|
160
|
+
operationWaitingTime: z.string().optional(),
|
|
161
|
+
operationAvgReplyTime: z.string().optional(),
|
|
162
|
+
firstRepliedAtAfterOpen: z.string().optional(),
|
|
163
|
+
operationResolutionTime: z.string().optional(),
|
|
164
|
+
operationTotalReplyTime: z.string().optional(),
|
|
165
|
+
firstAssigneeIdAfterOpen: z.string().optional(),
|
|
166
|
+
});
|
|
167
|
+
export const ChannelUserProtoSchema = z.object({
|
|
168
|
+
id: z.string().optional(),
|
|
169
|
+
web: z.record(z.string(), z.any()).optional(),
|
|
170
|
+
city: z.string().optional(),
|
|
171
|
+
name: z.string().optional(),
|
|
172
|
+
tags: z.array(z.string()).optional(),
|
|
173
|
+
type: ChannelUserTypeProtoSchema.optional(),
|
|
174
|
+
alert: z.number().int().optional(),
|
|
175
|
+
mobile: z.record(z.string(), z.any()).optional(),
|
|
176
|
+
unread: z.number().int().optional(),
|
|
177
|
+
veilId: z.string().optional(),
|
|
178
|
+
blocked: z.boolean().optional(),
|
|
179
|
+
country: z.string().optional(),
|
|
180
|
+
hasChat: z.boolean().optional(),
|
|
181
|
+
profile: z.record(z.string(), z.any()).optional(),
|
|
182
|
+
version: z.string().optional(),
|
|
183
|
+
language: z.string().optional(),
|
|
184
|
+
latitude: z.number().optional(),
|
|
185
|
+
memberId: z.string().optional(),
|
|
186
|
+
province: z.string().optional(),
|
|
187
|
+
timeZone: z.string().optional(),
|
|
188
|
+
channelId: z.string().optional(),
|
|
189
|
+
createdAt: z.string().optional(),
|
|
190
|
+
longitude: z.number().optional(),
|
|
191
|
+
unifiedId: z.string().optional(),
|
|
192
|
+
updatedAt: z.string().optional(),
|
|
193
|
+
lastSeenAt: z.string().optional(),
|
|
194
|
+
mainChatId: z.string().optional(),
|
|
195
|
+
popUpChatId: z.string().optional(),
|
|
196
|
+
hasPushToken: z.boolean().optional(),
|
|
197
|
+
sessionsCount: z.number().int().optional(),
|
|
198
|
+
emailQualified: z.boolean().optional(),
|
|
199
|
+
unsubscribeEmail: z.boolean().optional(),
|
|
200
|
+
unsubscribeTexting: z.boolean().optional(),
|
|
201
|
+
mobileNumberQualified: z.boolean().optional(),
|
|
202
|
+
});
|
|
203
|
+
export const WamAttributesProtoSchema = z.object({
|
|
204
|
+
appId: z.string().optional(),
|
|
205
|
+
name: z.string().optional(),
|
|
206
|
+
wamArgs: z.record(z.string(), z.any()).optional(),
|
|
207
|
+
});
|
|
208
|
+
export const WamResultProtoSchema = z.object({
|
|
209
|
+
type: z.string().optional(),
|
|
210
|
+
attributes: z.lazy(() => WamAttributesProtoSchema).optional(),
|
|
211
|
+
});
|
|
212
|
+
export const UnavailableReasonProtoSchema = z.object({
|
|
213
|
+
msg: z.string().optional(),
|
|
214
|
+
link: z.string().optional(),
|
|
215
|
+
linkText: z.string().optional(),
|
|
216
|
+
});
|
|
217
|
+
export const WritingTypeStateProtoSchema = z.object({
|
|
218
|
+
state: z.string().optional(),
|
|
219
|
+
unavailableReasons: z.array(z.lazy(() => UnavailableReasonProtoSchema)).optional(),
|
|
220
|
+
});
|
|
221
|
+
export const WritingTypeMapProtoSchema = z.object({
|
|
222
|
+
custom: z.lazy(() => WritingTypeStateProtoSchema).optional(),
|
|
223
|
+
standard: z.lazy(() => WritingTypeStateProtoSchema).optional(),
|
|
224
|
+
});
|
|
225
|
+
export const MediumProfileProtoSchema = z.object({
|
|
226
|
+
mediumName: z.string().optional(),
|
|
227
|
+
mediumSenderId: z.string().optional(),
|
|
228
|
+
mediumSenderName: z.string().optional(),
|
|
229
|
+
});
|
|
230
|
+
//# sourceMappingURL=common.zod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"common.zod.js","sourceRoot":"","sources":["../../../../../../src/gen/channel/app/sdk/v1/common.zod.ts"],"names":[],"mappings":"AAAA,iEAAiE;AAEjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,8BAA8B,EAAE,2BAA2B,EAAE,sBAAsB,EAAE,6BAA6B,EAAE,6BAA6B,EAAE,0BAA0B,EAAE,sBAAsB,EAAE,yBAAyB,EAAE,+BAA+B,EAAE,iCAAiC,EAAE,yBAAyB,CAAC,CAAwC,CAAC;AAG1Z,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,uBAAuB,EAAE,iBAAiB,EAAE,iBAAiB,CAAC,CAAkC,CAAC;AAG5I,MAAM,CAAC,MAAM,2BAA2B,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,gCAAgC,EAAE,yBAAyB,EAAE,0BAA0B,EAAE,iCAAiC,EAAE,gCAAgC,EAAE,sCAAsC,CAAC,CAA0C,CAAC;AAGnS,MAAM,CAAC,MAAM,uBAAuB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,2BAA2B,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,uBAAu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AC,2BAA2B,CAAC,CAAC,QAAQ,EAAE;IAC5D,QAAQ,EAAE,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,CAAC,2BAA2B,CAAC,CAAC,QAAQ,EAAE;CAC/D,CAAwC,CAAC;AAG1C,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACrC,gBAAgB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CACxC,CAAuC,CAAC"}
|
|
@@ -0,0 +1,190 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const CallerProtoSchema: z.ZodObject<{
|
|
3
|
+
type: z.ZodOptional<z.ZodString>;
|
|
4
|
+
id: z.ZodOptional<z.ZodString>;
|
|
5
|
+
}, "strip", z.ZodTypeAny, {
|
|
6
|
+
type?: string | undefined;
|
|
7
|
+
id?: string | undefined;
|
|
8
|
+
}, {
|
|
9
|
+
type?: string | undefined;
|
|
10
|
+
id?: string | undefined;
|
|
11
|
+
}>;
|
|
12
|
+
export type CallerProto = z.infer<typeof CallerProtoSchema>;
|
|
13
|
+
export declare const ChannelProtoSchema: z.ZodObject<{
|
|
14
|
+
id: z.ZodOptional<z.ZodString>;
|
|
15
|
+
}, "strip", z.ZodTypeAny, {
|
|
16
|
+
id?: string | undefined;
|
|
17
|
+
}, {
|
|
18
|
+
id?: string | undefined;
|
|
19
|
+
}>;
|
|
20
|
+
export type ChannelProto = z.infer<typeof ChannelProtoSchema>;
|
|
21
|
+
export declare const ChatProtoSchema: z.ZodObject<{
|
|
22
|
+
type: z.ZodOptional<z.ZodString>;
|
|
23
|
+
id: z.ZodOptional<z.ZodString>;
|
|
24
|
+
}, "strip", z.ZodTypeAny, {
|
|
25
|
+
type?: string | undefined;
|
|
26
|
+
id?: string | undefined;
|
|
27
|
+
}, {
|
|
28
|
+
type?: string | undefined;
|
|
29
|
+
id?: string | undefined;
|
|
30
|
+
}>;
|
|
31
|
+
export type ChatProto = z.infer<typeof ChatProtoSchema>;
|
|
32
|
+
export declare const UserProtoSchema: z.ZodObject<{
|
|
33
|
+
id: z.ZodOptional<z.ZodString>;
|
|
34
|
+
channelId: z.ZodOptional<z.ZodString>;
|
|
35
|
+
type: z.ZodOptional<z.ZodString>;
|
|
36
|
+
member: z.ZodOptional<z.ZodBoolean>;
|
|
37
|
+
memberId: z.ZodOptional<z.ZodString>;
|
|
38
|
+
profile: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
39
|
+
}, "strip", z.ZodTypeAny, {
|
|
40
|
+
type?: string | undefined;
|
|
41
|
+
id?: string | undefined;
|
|
42
|
+
channelId?: string | undefined;
|
|
43
|
+
profile?: Record<string, any> | undefined;
|
|
44
|
+
memberId?: string | undefined;
|
|
45
|
+
member?: boolean | undefined;
|
|
46
|
+
}, {
|
|
47
|
+
type?: string | undefined;
|
|
48
|
+
id?: string | undefined;
|
|
49
|
+
channelId?: string | undefined;
|
|
50
|
+
profile?: Record<string, any> | undefined;
|
|
51
|
+
memberId?: string | undefined;
|
|
52
|
+
member?: boolean | undefined;
|
|
53
|
+
}>;
|
|
54
|
+
export type UserProto = z.infer<typeof UserProtoSchema>;
|
|
55
|
+
export declare const UserChatProtoSchema: z.ZodObject<{
|
|
56
|
+
id: z.ZodOptional<z.ZodString>;
|
|
57
|
+
profile: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
58
|
+
state: z.ZodOptional<z.ZodString>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
id?: string | undefined;
|
|
61
|
+
state?: string | undefined;
|
|
62
|
+
profile?: Record<string, any> | undefined;
|
|
63
|
+
}, {
|
|
64
|
+
id?: string | undefined;
|
|
65
|
+
state?: string | undefined;
|
|
66
|
+
profile?: Record<string, any> | undefined;
|
|
67
|
+
}>;
|
|
68
|
+
export type UserChatProto = z.infer<typeof UserChatProtoSchema>;
|
|
69
|
+
export declare const FunctionContextProtoSchema: z.ZodObject<{
|
|
70
|
+
caller: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
71
|
+
type: z.ZodOptional<z.ZodString>;
|
|
72
|
+
id: z.ZodOptional<z.ZodString>;
|
|
73
|
+
}, "strip", z.ZodTypeAny, {
|
|
74
|
+
type?: string | undefined;
|
|
75
|
+
id?: string | undefined;
|
|
76
|
+
}, {
|
|
77
|
+
type?: string | undefined;
|
|
78
|
+
id?: string | undefined;
|
|
79
|
+
}>>>;
|
|
80
|
+
channel: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
81
|
+
id: z.ZodOptional<z.ZodString>;
|
|
82
|
+
}, "strip", z.ZodTypeAny, {
|
|
83
|
+
id?: string | undefined;
|
|
84
|
+
}, {
|
|
85
|
+
id?: string | undefined;
|
|
86
|
+
}>>>;
|
|
87
|
+
user: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
88
|
+
id: z.ZodOptional<z.ZodString>;
|
|
89
|
+
channelId: z.ZodOptional<z.ZodString>;
|
|
90
|
+
type: z.ZodOptional<z.ZodString>;
|
|
91
|
+
member: z.ZodOptional<z.ZodBoolean>;
|
|
92
|
+
memberId: z.ZodOptional<z.ZodString>;
|
|
93
|
+
profile: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
94
|
+
}, "strip", z.ZodTypeAny, {
|
|
95
|
+
type?: string | undefined;
|
|
96
|
+
id?: string | undefined;
|
|
97
|
+
channelId?: string | undefined;
|
|
98
|
+
profile?: Record<string, any> | undefined;
|
|
99
|
+
memberId?: string | undefined;
|
|
100
|
+
member?: boolean | undefined;
|
|
101
|
+
}, {
|
|
102
|
+
type?: string | undefined;
|
|
103
|
+
id?: string | undefined;
|
|
104
|
+
channelId?: string | undefined;
|
|
105
|
+
profile?: Record<string, any> | undefined;
|
|
106
|
+
memberId?: string | undefined;
|
|
107
|
+
member?: boolean | undefined;
|
|
108
|
+
}>>>;
|
|
109
|
+
userChat: z.ZodOptional<z.ZodLazy<z.ZodObject<{
|
|
110
|
+
id: z.ZodOptional<z.ZodString>;
|
|
111
|
+
profile: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
112
|
+
state: z.ZodOptional<z.ZodString>;
|
|
113
|
+
}, "strip", z.ZodTypeAny, {
|
|
114
|
+
id?: string | undefined;
|
|
115
|
+
state?: string | undefined;
|
|
116
|
+
profile?: Record<string, any> | undefined;
|
|
117
|
+
}, {
|
|
118
|
+
id?: string | undefined;
|
|
119
|
+
state?: string | undefined;
|
|
120
|
+
profile?: Record<string, any> | undefined;
|
|
121
|
+
}>>>;
|
|
122
|
+
authToken: z.ZodOptional<z.ZodString>;
|
|
123
|
+
legacyAuthToken: z.ZodOptional<z.ZodString>;
|
|
124
|
+
apiCredentials: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodString>>;
|
|
125
|
+
config: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
126
|
+
language: z.ZodOptional<z.ZodString>;
|
|
127
|
+
sandbox: z.ZodOptional<z.ZodBoolean>;
|
|
128
|
+
sessionId: z.ZodOptional<z.ZodString>;
|
|
129
|
+
seedState: z.ZodOptional<z.ZodAny>;
|
|
130
|
+
}, "strip", z.ZodTypeAny, {
|
|
131
|
+
user?: {
|
|
132
|
+
type?: string | undefined;
|
|
133
|
+
id?: string | undefined;
|
|
134
|
+
channelId?: string | undefined;
|
|
135
|
+
profile?: Record<string, any> | undefined;
|
|
136
|
+
memberId?: string | undefined;
|
|
137
|
+
member?: boolean | undefined;
|
|
138
|
+
} | undefined;
|
|
139
|
+
caller?: {
|
|
140
|
+
type?: string | undefined;
|
|
141
|
+
id?: string | undefined;
|
|
142
|
+
} | undefined;
|
|
143
|
+
channel?: {
|
|
144
|
+
id?: string | undefined;
|
|
145
|
+
} | undefined;
|
|
146
|
+
language?: string | undefined;
|
|
147
|
+
authToken?: string | undefined;
|
|
148
|
+
apiCredentials?: Record<string, string> | undefined;
|
|
149
|
+
config?: Record<string, any> | undefined;
|
|
150
|
+
sandbox?: boolean | undefined;
|
|
151
|
+
sessionId?: string | undefined;
|
|
152
|
+
seedState?: any;
|
|
153
|
+
userChat?: {
|
|
154
|
+
id?: string | undefined;
|
|
155
|
+
state?: string | undefined;
|
|
156
|
+
profile?: Record<string, any> | undefined;
|
|
157
|
+
} | undefined;
|
|
158
|
+
legacyAuthToken?: string | undefined;
|
|
159
|
+
}, {
|
|
160
|
+
user?: {
|
|
161
|
+
type?: string | undefined;
|
|
162
|
+
id?: string | undefined;
|
|
163
|
+
channelId?: string | undefined;
|
|
164
|
+
profile?: Record<string, any> | undefined;
|
|
165
|
+
memberId?: string | undefined;
|
|
166
|
+
member?: boolean | undefined;
|
|
167
|
+
} | undefined;
|
|
168
|
+
caller?: {
|
|
169
|
+
type?: string | undefined;
|
|
170
|
+
id?: string | undefined;
|
|
171
|
+
} | undefined;
|
|
172
|
+
channel?: {
|
|
173
|
+
id?: string | undefined;
|
|
174
|
+
} | undefined;
|
|
175
|
+
language?: string | undefined;
|
|
176
|
+
authToken?: string | undefined;
|
|
177
|
+
apiCredentials?: Record<string, string> | undefined;
|
|
178
|
+
config?: Record<string, any> | undefined;
|
|
179
|
+
sandbox?: boolean | undefined;
|
|
180
|
+
sessionId?: string | undefined;
|
|
181
|
+
seedState?: any;
|
|
182
|
+
userChat?: {
|
|
183
|
+
id?: string | undefined;
|
|
184
|
+
state?: string | undefined;
|
|
185
|
+
profile?: Record<string, any> | undefined;
|
|
186
|
+
} | undefined;
|
|
187
|
+
legacyAuthToken?: string | undefined;
|
|
188
|
+
}>;
|
|
189
|
+
export type FunctionContextProto = z.infer<typeof FunctionContextProtoSchema>;
|
|
190
|
+
//# sourceMappingURL=context.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.zod.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/channel/app/sdk/v1/context.zod.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,iBAAiB;;;;;;;;;EAGG,CAAC;AAClC,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D,eAAO,MAAM,kBAAkB;;;;;;EAEG,CAAC;AACnC,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D,eAAO,MAAM,eAAe;;;;;;;;;EAGG,CAAC;AAChC,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,eAAe;;;;;;;;;;;;;;;;;;;;;EAOG,CAAC;AAChC,MAAM,MAAM,SAAS,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,eAAe,CAAC,CAAC;AAExD,eAAO,MAAM,mBAAmB;;;;;;;;;;;;EAIG,CAAC;AACpC,MAAM,MAAM,aAAa,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,mBAAmB,CAAC,CAAC;AAEhE,eAAO,MAAM,0BAA0B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAaG,CAAC;AAC3C,MAAM,MAAM,oBAAoB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,0BAA0B,CAAC,CAAC"}
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
// Code generated by scripts/generate-proto-zod.mjs. DO NOT EDIT.
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const CallerProtoSchema = z.object({
|
|
4
|
+
type: z.string().optional(),
|
|
5
|
+
id: z.string().optional(),
|
|
6
|
+
});
|
|
7
|
+
export const ChannelProtoSchema = z.object({
|
|
8
|
+
id: z.string().optional(),
|
|
9
|
+
});
|
|
10
|
+
export const ChatProtoSchema = z.object({
|
|
11
|
+
type: z.string().optional(),
|
|
12
|
+
id: z.string().optional(),
|
|
13
|
+
});
|
|
14
|
+
export const UserProtoSchema = z.object({
|
|
15
|
+
id: z.string().optional(),
|
|
16
|
+
channelId: z.string().optional(),
|
|
17
|
+
type: z.string().optional(),
|
|
18
|
+
member: z.boolean().optional(),
|
|
19
|
+
memberId: z.string().optional(),
|
|
20
|
+
profile: z.record(z.string(), z.any()).optional(),
|
|
21
|
+
});
|
|
22
|
+
export const UserChatProtoSchema = z.object({
|
|
23
|
+
id: z.string().optional(),
|
|
24
|
+
profile: z.record(z.string(), z.any()).optional(),
|
|
25
|
+
state: z.string().optional(),
|
|
26
|
+
});
|
|
27
|
+
export const FunctionContextProtoSchema = z.object({
|
|
28
|
+
caller: z.lazy(() => CallerProtoSchema).optional(),
|
|
29
|
+
channel: z.lazy(() => ChannelProtoSchema).optional(),
|
|
30
|
+
user: z.lazy(() => UserProtoSchema).optional(),
|
|
31
|
+
userChat: z.lazy(() => UserChatProtoSchema).optional(),
|
|
32
|
+
authToken: z.string().optional(),
|
|
33
|
+
legacyAuthToken: z.string().optional(),
|
|
34
|
+
apiCredentials: z.record(z.string(), z.string()).optional(),
|
|
35
|
+
config: z.record(z.string(), z.any()).optional(),
|
|
36
|
+
language: z.string().optional(),
|
|
37
|
+
sandbox: z.boolean().optional(),
|
|
38
|
+
sessionId: z.string().optional(),
|
|
39
|
+
seedState: z.any().optional(),
|
|
40
|
+
});
|
|
41
|
+
//# sourceMappingURL=context.zod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"context.zod.js","sourceRoot":"","sources":["../../../../../../src/gen/channel/app/sdk/v1/context.zod.ts"],"names":[],"mappings":"AAAA,iEAAiE;AAEjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAA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E;CAC9B,CAAyC,CAAC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const FunctionErrorProtoSchema: z.ZodObject<{
|
|
3
|
+
code: z.ZodOptional<z.ZodNumber>;
|
|
4
|
+
type: z.ZodOptional<z.ZodString>;
|
|
5
|
+
message: z.ZodOptional<z.ZodString>;
|
|
6
|
+
data: z.ZodOptional<z.ZodAny>;
|
|
7
|
+
}, "strip", z.ZodTypeAny, {
|
|
8
|
+
code?: number | undefined;
|
|
9
|
+
message?: string | undefined;
|
|
10
|
+
type?: string | undefined;
|
|
11
|
+
data?: any;
|
|
12
|
+
}, {
|
|
13
|
+
code?: number | undefined;
|
|
14
|
+
message?: string | undefined;
|
|
15
|
+
type?: string | undefined;
|
|
16
|
+
data?: any;
|
|
17
|
+
}>;
|
|
18
|
+
export type FunctionErrorProto = z.infer<typeof FunctionErrorProtoSchema>;
|
|
19
|
+
//# sourceMappingURL=error.zod.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.zod.d.ts","sourceRoot":"","sources":["../../../../../../src/gen/channel/app/sdk/v1/error.zod.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;EAKG,CAAC;AACzC,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,wBAAwB,CAAC,CAAC"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
// Code generated by scripts/generate-proto-zod.mjs. DO NOT EDIT.
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const FunctionErrorProtoSchema = z.object({
|
|
4
|
+
code: z.number().int().optional(),
|
|
5
|
+
type: z.string().optional(),
|
|
6
|
+
message: z.string().optional(),
|
|
7
|
+
data: z.any().optional(),
|
|
8
|
+
});
|
|
9
|
+
//# sourceMappingURL=error.zod.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"error.zod.js","sourceRoot":"","sources":["../../../../../../src/gen/channel/app/sdk/v1/error.zod.ts"],"names":[],"mappings":"AAAA,iEAAiE;AAEjE,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB,MAAM,CAAC,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC/C,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;IACjC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9B,IAAI,EAAE,CAAC,CAAC,GAAG,EAAE,CAAC,QAAQ,EAAE;CACzB,CAAuC,CAAC"}
|
|
@@ -144,8 +144,6 @@ export interface ConfigField {
|
|
|
144
144
|
maxSelections?: number | undefined;
|
|
145
145
|
format?: string | undefined;
|
|
146
146
|
countryCodeChoices?: ConfigChoice[] | undefined;
|
|
147
|
-
phoneFieldLabels?: ConfigPhoneFieldLabels | undefined;
|
|
148
|
-
addressFieldLabels?: ConfigAddressFieldLabels | undefined;
|
|
149
147
|
countryCodePlaceholder?: string | undefined;
|
|
150
148
|
numberPlaceholder?: string | undefined;
|
|
151
149
|
searchEnabled?: boolean | undefined;
|
|
@@ -158,6 +156,9 @@ export interface ConfigField {
|
|
|
158
156
|
accept?: string[] | undefined;
|
|
159
157
|
maxFileSizeMb?: number | undefined;
|
|
160
158
|
multiple?: boolean | undefined;
|
|
159
|
+
fieldLabels?: {
|
|
160
|
+
[key: string]: any;
|
|
161
|
+
} | undefined;
|
|
161
162
|
}
|
|
162
163
|
export interface ConfigBlock {
|
|
163
164
|
type?: string | undefined;
|
|
@@ -174,7 +175,43 @@ export interface ConfigBlock {
|
|
|
174
175
|
props?: {
|
|
175
176
|
[key: string]: any;
|
|
176
177
|
} | undefined;
|
|
177
|
-
|
|
178
|
+
key?: string | undefined;
|
|
179
|
+
label?: string | undefined;
|
|
180
|
+
helperText?: string | undefined;
|
|
181
|
+
required?: boolean | undefined;
|
|
182
|
+
placeholder?: string | undefined;
|
|
183
|
+
validationRegex?: string | undefined;
|
|
184
|
+
storageClass?: string | undefined;
|
|
185
|
+
media?: ConfigMediaOptions | undefined;
|
|
186
|
+
resolvesTo?: ConfigResolvedValueTarget | undefined;
|
|
187
|
+
enabledWhen?: ConfigCondition[] | undefined;
|
|
188
|
+
defaultValue?: any | undefined;
|
|
189
|
+
choicesSource?: ConfigChoicesSource | undefined;
|
|
190
|
+
rows?: number | undefined;
|
|
191
|
+
maskType?: string | undefined;
|
|
192
|
+
min?: number | undefined;
|
|
193
|
+
max?: number | undefined;
|
|
194
|
+
step?: number | undefined;
|
|
195
|
+
choices?: ConfigChoice[] | undefined;
|
|
196
|
+
minSelections?: number | undefined;
|
|
197
|
+
maxSelections?: number | undefined;
|
|
198
|
+
format?: string | undefined;
|
|
199
|
+
countryCodeChoices?: ConfigChoice[] | undefined;
|
|
200
|
+
fieldLabels?: {
|
|
201
|
+
[key: string]: any;
|
|
202
|
+
} | undefined;
|
|
203
|
+
countryCodePlaceholder?: string | undefined;
|
|
204
|
+
numberPlaceholder?: string | undefined;
|
|
205
|
+
searchEnabled?: boolean | undefined;
|
|
206
|
+
postcodeLookupUrl?: string | undefined;
|
|
207
|
+
recipientPlaceholder?: string | undefined;
|
|
208
|
+
phonePlaceholder?: string | undefined;
|
|
209
|
+
postcodePlaceholder?: string | undefined;
|
|
210
|
+
address1Placeholder?: string | undefined;
|
|
211
|
+
address2Placeholder?: string | undefined;
|
|
212
|
+
accept?: string[] | undefined;
|
|
213
|
+
maxFileSizeMb?: number | undefined;
|
|
214
|
+
multiple?: boolean | undefined;
|
|
178
215
|
}
|
|
179
216
|
export interface ConfigGetConfigSchemaInput {
|
|
180
217
|
}
|
|
@@ -212,13 +249,9 @@ export interface ConfigDraftResolutionOutput {
|
|
|
212
249
|
[key: string]: any;
|
|
213
250
|
} | undefined;
|
|
214
251
|
choicesPatch?: {
|
|
215
|
-
[key: string]:
|
|
252
|
+
[key: string]: any;
|
|
216
253
|
} | undefined;
|
|
217
254
|
}
|
|
218
|
-
export interface ConfigDraftResolutionOutput_ChoicesPatchEntry {
|
|
219
|
-
key: string;
|
|
220
|
-
value?: ConfigChoiceList | undefined;
|
|
221
|
-
}
|
|
222
255
|
export interface OAuthProvider {
|
|
223
256
|
provider?: string | undefined;
|
|
224
257
|
authorizationUrl?: string | undefined;
|
|
@@ -937,8 +970,8 @@ export interface WmsGetShopIDRequest {
|
|
|
937
970
|
commerceKey?: string | undefined;
|
|
938
971
|
}
|
|
939
972
|
export interface WmsGetShopIDResult {
|
|
940
|
-
shopId?: string | undefined;
|
|
941
973
|
message?: string | undefined;
|
|
974
|
+
shopId?: any | undefined;
|
|
942
975
|
}
|
|
943
976
|
export interface WmsGetSupportedCommercesRequest {
|
|
944
977
|
}
|