@channel.io/app-sdk-core 0.15.1 → 0.15.3
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/calendar.d.ts +4 -4
- package/dist/extensions/command.d.ts +6 -6
- package/dist/extensions/config.d.ts +26 -26
- package/dist/extensions/function-schemas.d.ts +43 -42
- package/dist/extensions/function-schemas.d.ts.map +1 -1
- package/dist/extensions/function-schemas.js +20 -0
- package/dist/extensions/function-schemas.js.map +1 -1
- package/dist/extensions/oauth.d.ts +2 -2
- package/dist/extensions/order.d.ts +6 -6
- package/dist/gen/channel/app/sdk/v1/common.zod.d.ts +6 -6
- package/dist/gen/channel/app/sdk/v1/context.zod.d.ts +14 -14
- package/dist/gen/channel/app/sdk/v1/extension.zod.d.ts +403 -403
- package/dist/gen/channel/app/sdk/v1/function.zod.d.ts +39 -39
- package/dist/gen/channel/app/sdk/v1/native.zod.d.ts +41 -41
- package/dist/types/context.d.ts +24 -7
- package/dist/types/context.d.ts.map +1 -1
- package/dist/types/function.d.ts +8 -6
- package/dist/types/function.d.ts.map +1 -1
- package/package.json +1 -1
|
@@ -145,8 +145,8 @@ export declare const OrderItemSchema: z.ZodObject<{
|
|
|
145
145
|
shippingAddressChangeable: boolean;
|
|
146
146
|
}>;
|
|
147
147
|
}, "strip", z.ZodTypeAny, {
|
|
148
|
-
id: string;
|
|
149
148
|
name: string;
|
|
149
|
+
id: string;
|
|
150
150
|
state: string;
|
|
151
151
|
amount: number;
|
|
152
152
|
quantity: number;
|
|
@@ -164,8 +164,8 @@ export declare const OrderItemSchema: z.ZodObject<{
|
|
|
164
164
|
deliveredAt?: number | undefined;
|
|
165
165
|
estimatedShipDate?: number | undefined;
|
|
166
166
|
}, {
|
|
167
|
-
id: string;
|
|
168
167
|
name: string;
|
|
168
|
+
id: string;
|
|
169
169
|
state: string;
|
|
170
170
|
amount: number;
|
|
171
171
|
quantity: number;
|
|
@@ -273,8 +273,8 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
273
273
|
shippingAddressChangeable: boolean;
|
|
274
274
|
}>;
|
|
275
275
|
}, "strip", z.ZodTypeAny, {
|
|
276
|
-
id: string;
|
|
277
276
|
name: string;
|
|
277
|
+
id: string;
|
|
278
278
|
state: string;
|
|
279
279
|
amount: number;
|
|
280
280
|
quantity: number;
|
|
@@ -292,8 +292,8 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
292
292
|
deliveredAt?: number | undefined;
|
|
293
293
|
estimatedShipDate?: number | undefined;
|
|
294
294
|
}, {
|
|
295
|
-
id: string;
|
|
296
295
|
name: string;
|
|
296
|
+
id: string;
|
|
297
297
|
state: string;
|
|
298
298
|
amount: number;
|
|
299
299
|
quantity: number;
|
|
@@ -428,8 +428,8 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
428
428
|
title: string;
|
|
429
429
|
createdAt: number;
|
|
430
430
|
items: {
|
|
431
|
-
id: string;
|
|
432
431
|
name: string;
|
|
432
|
+
id: string;
|
|
433
433
|
state: string;
|
|
434
434
|
amount: number;
|
|
435
435
|
quantity: number;
|
|
@@ -492,8 +492,8 @@ export declare const OrderSchema: z.ZodObject<{
|
|
|
492
492
|
title: string;
|
|
493
493
|
createdAt: number;
|
|
494
494
|
items: {
|
|
495
|
-
id: string;
|
|
496
495
|
name: string;
|
|
496
|
+
id: string;
|
|
497
497
|
state: string;
|
|
498
498
|
amount: number;
|
|
499
499
|
quantity: number;
|
|
@@ -536,14 +536,14 @@ export declare const ChannelUserChatProtoSchema: z.ZodObject<{
|
|
|
536
536
|
operationTotalReplyTime: z.ZodOptional<z.ZodString>;
|
|
537
537
|
firstAssigneeIdAfterOpen: z.ZodOptional<z.ZodString>;
|
|
538
538
|
}, "strip", z.ZodTypeAny, {
|
|
539
|
+
name?: string | undefined;
|
|
540
|
+
description?: string | undefined;
|
|
539
541
|
id?: string | undefined;
|
|
540
542
|
channelId?: string | undefined;
|
|
541
543
|
userId?: string | undefined;
|
|
542
544
|
mediumType?: string | undefined;
|
|
543
545
|
title?: string | undefined;
|
|
544
|
-
name?: string | undefined;
|
|
545
546
|
expiresAt?: string | undefined;
|
|
546
|
-
description?: string | undefined;
|
|
547
547
|
profile?: Record<string, any> | undefined;
|
|
548
548
|
updatedAt?: string | undefined;
|
|
549
549
|
tags?: string[] | undefined;
|
|
@@ -597,14 +597,14 @@ export declare const ChannelUserChatProtoSchema: z.ZodObject<{
|
|
|
597
597
|
operationTotalReplyTime?: string | undefined;
|
|
598
598
|
firstAssigneeIdAfterOpen?: string | undefined;
|
|
599
599
|
}, {
|
|
600
|
+
name?: string | undefined;
|
|
601
|
+
description?: string | undefined;
|
|
600
602
|
id?: string | undefined;
|
|
601
603
|
channelId?: string | undefined;
|
|
602
604
|
userId?: string | undefined;
|
|
603
605
|
mediumType?: string | undefined;
|
|
604
606
|
title?: string | undefined;
|
|
605
|
-
name?: string | undefined;
|
|
606
607
|
expiresAt?: string | undefined;
|
|
607
|
-
description?: string | undefined;
|
|
608
608
|
profile?: Record<string, any> | undefined;
|
|
609
609
|
updatedAt?: string | undefined;
|
|
610
610
|
tags?: string[] | undefined;
|
|
@@ -697,10 +697,10 @@ export declare const ChannelUserProtoSchema: z.ZodObject<{
|
|
|
697
697
|
}, "strip", z.ZodTypeAny, {
|
|
698
698
|
language?: string | undefined;
|
|
699
699
|
type?: "USER_TYPE_UNSPECIFIED" | "USER_TYPE_MEMBER" | "USER_TYPE_LEAD" | "USER_TYPE_UNIFIED" | undefined;
|
|
700
|
+
name?: string | undefined;
|
|
700
701
|
web?: Record<string, any> | undefined;
|
|
701
702
|
id?: string | undefined;
|
|
702
703
|
channelId?: string | undefined;
|
|
703
|
-
name?: string | undefined;
|
|
704
704
|
profile?: Record<string, any> | undefined;
|
|
705
705
|
updatedAt?: string | undefined;
|
|
706
706
|
tags?: string[] | undefined;
|
|
@@ -732,10 +732,10 @@ export declare const ChannelUserProtoSchema: z.ZodObject<{
|
|
|
732
732
|
}, {
|
|
733
733
|
language?: string | undefined;
|
|
734
734
|
type?: "USER_TYPE_UNSPECIFIED" | "USER_TYPE_MEMBER" | "USER_TYPE_LEAD" | "USER_TYPE_UNIFIED" | undefined;
|
|
735
|
+
name?: string | undefined;
|
|
735
736
|
web?: Record<string, any> | undefined;
|
|
736
737
|
id?: string | undefined;
|
|
737
738
|
channelId?: string | undefined;
|
|
738
|
-
name?: string | undefined;
|
|
739
739
|
profile?: Record<string, any> | undefined;
|
|
740
740
|
updatedAt?: string | undefined;
|
|
741
741
|
tags?: string[] | undefined;
|
|
@@ -143,19 +143,19 @@ export declare const FunctionContextProtoSchema: z.ZodObject<{
|
|
|
143
143
|
channel?: {
|
|
144
144
|
id?: string | undefined;
|
|
145
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
146
|
userChat?: {
|
|
154
147
|
id?: string | undefined;
|
|
155
148
|
profile?: Record<string, any> | undefined;
|
|
156
149
|
state?: string | undefined;
|
|
157
150
|
} | undefined;
|
|
151
|
+
authToken?: string | undefined;
|
|
158
152
|
legacyAuthToken?: string | undefined;
|
|
153
|
+
apiCredentials?: Record<string, string> | undefined;
|
|
154
|
+
config?: Record<string, any> | undefined;
|
|
155
|
+
language?: string | undefined;
|
|
156
|
+
sandbox?: boolean | undefined;
|
|
157
|
+
sessionId?: string | undefined;
|
|
158
|
+
seedState?: any;
|
|
159
159
|
}, {
|
|
160
160
|
user?: {
|
|
161
161
|
type?: string | undefined;
|
|
@@ -172,19 +172,19 @@ export declare const FunctionContextProtoSchema: z.ZodObject<{
|
|
|
172
172
|
channel?: {
|
|
173
173
|
id?: string | undefined;
|
|
174
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
175
|
userChat?: {
|
|
183
176
|
id?: string | undefined;
|
|
184
177
|
profile?: Record<string, any> | undefined;
|
|
185
178
|
state?: string | undefined;
|
|
186
179
|
} | undefined;
|
|
180
|
+
authToken?: string | undefined;
|
|
187
181
|
legacyAuthToken?: string | undefined;
|
|
182
|
+
apiCredentials?: Record<string, string> | undefined;
|
|
183
|
+
config?: Record<string, any> | undefined;
|
|
184
|
+
language?: string | undefined;
|
|
185
|
+
sandbox?: boolean | undefined;
|
|
186
|
+
sessionId?: string | undefined;
|
|
187
|
+
seedState?: any;
|
|
188
188
|
}>;
|
|
189
189
|
export type FunctionContextProto = z.infer<typeof FunctionContextProtoSchema>;
|
|
190
190
|
//# sourceMappingURL=context.zod.d.ts.map
|