Skip to content

Commit 5935599

Browse files
committed
use object type for properties
1 parent c70d169 commit 5935599

File tree

3 files changed

+5
-9
lines changed

3 files changed

+5
-9
lines changed

libraries/botframework-connector/src/connectorApi/models/mappers.ts

+1-6
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,7 @@ export const ChannelAccount: CompositeMapper = {
162162
properties: {
163163
serializedName: "properties",
164164
type: {
165-
name: "Dictionary",
166-
value: {
167-
type: {
168-
name: "any"
169-
}
170-
}
165+
name: "Object"
171166
}
172167
}
173168
}

libraries/botframework-schema/etc/botframework-schema.api.md

+1
Original file line numberDiff line numberDiff line change
@@ -579,6 +579,7 @@ export interface ChannelAccount {
579579
aadObjectId?: string;
580580
id: string;
581581
name: string;
582+
properties?: any;
582583
role?: RoleTypes | string;
583584
}
584585

libraries/botframework-schema/src/index.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,9 @@ export interface ChannelAccount {
157157
role?: RoleTypes | string;
158158

159159
/**
160-
* Properties not represented in a defined type
160+
* Custom properties object (optional)
161161
*/
162-
properties: { [key: string]: any };
162+
properties?: any; // eslint-disable-line @typescript-eslint/no-explicit-any
163163
}
164164

165165
const channelAccount = z.object({
@@ -2461,7 +2461,7 @@ export interface SearchInvokeOptions {
24612461
* Name of 'application/search'.
24622462
*/
24632463
// eslint-disable-next-line @typescript-eslint/no-empty-interface
2464-
export interface SearchInvokeResponse extends AdaptiveCardInvokeResponse { }
2464+
export interface SearchInvokeResponse extends AdaptiveCardInvokeResponse {}
24652465

24662466
/**
24672467
* Represents a response returned by a bot when it receives an `invoke` activity.

0 commit comments

Comments
 (0)