Skip to content
Open
Show file tree
Hide file tree
Changes from 7 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions packages/api/src/activities/activity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ export interface IActivity<T extends string = string> {

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;

Expand Down Expand Up @@ -172,6 +173,7 @@ export class Activity<T extends string = string> implements IActivity<T> {

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;

Expand Down Expand Up @@ -277,6 +279,9 @@ export class Activity<T extends string = string> implements IActivity<T> {
return this;
}

/**
* @deprecated No longer returned by the service backend.
*/
withRelatesTo(value: ConversationReference) {
this.relatesTo = value;
return this;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface IConversationUpdateActivity extends IActivity<'conversationUpda

/**
* Indicates whether the prior history of the channel is disclosed.
* @deprecated Not recognized by the service backend.
Comment thread
lilyydu marked this conversation as resolved.
Outdated
Comment thread
lilyydu marked this conversation as resolved.
Outdated
*/
historyDisclosed?: boolean;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
import { IActivity } from '../activity';

/**
* @deprecated Not recognized as a valid activity by the service backend.
*/
export type EndOfConversationCode =
| 'unknown'
| 'completedSuccessfully'
Expand All @@ -8,6 +11,9 @@ export type EndOfConversationCode =
| 'botIssuedInvalidMessage'
| 'channelFailed';

/**
* @deprecated Not recognized as a valid activity by the service backend.
*/
export interface IEndOfConversationActivity extends IActivity<'endOfConversation'> {
/**
* The a code for endOfConversation activities that indicates why the conversation ended.
Expand Down
3 changes: 3 additions & 0 deletions packages/api/src/activities/handoff.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
import { IActivity } from './activity';

/**
* @deprecated Not recognized as a valid activity by the service backend.
*/
export interface IHandoffActivity extends IActivity<'handoff'> {}
1 change: 1 addition & 0 deletions packages/api/src/activities/invoke/config/config-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface IConfigFetchInvokeActivity extends IActivity<'invoke'> {

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
1 change: 1 addition & 0 deletions packages/api/src/activities/invoke/config/config-submit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface IConfigSubmitInvokeActivity extends IActivity<'invoke'> {

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
1 change: 1 addition & 0 deletions packages/api/src/activities/invoke/execute-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface IExecuteActionInvokeActivity extends IActivity<'invoke'> {

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
1 change: 1 addition & 0 deletions packages/api/src/activities/invoke/file-consent.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface IFileConsentInvokeActivity extends IActivity<'invoke'> {

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
1 change: 1 addition & 0 deletions packages/api/src/activities/invoke/handoff-action.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ export interface IHandoffActionInvokeActivity extends IActivity<'invoke'> {

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface IMessageExtensionAnonQueryLinkInvokeActivity extends IActivity<

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface IMessageExtensionCardButtonClickedInvokeActivity extends IActiv

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface IMessageExtensionFetchTaskInvokeActivity extends IActivity<'inv

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface IMessageExtensionQueryLinkInvokeActivity extends IActivity<'inv

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface IMessageExtensionQuerySettingUrlInvokeActivity extends IActivit

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface IMessageExtensionQueryInvokeActivity extends IActivity<'invoke'

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface IMessageExtensionSelectItemInvokeActivity extends IActivity<'in

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface IMessageExtensionSettingInvokeActivity extends IActivity<'invok

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface IMessageExtensionSubmitActionInvokeActivity extends IActivity<'

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ export interface IMessageSubmitActionInvokeActivity extends IActivity<'invoke'>

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
1 change: 1 addition & 0 deletions packages/api/src/activities/invoke/tab/tab-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface ITabFetchInvokeActivity extends IActivity<'invoke'> {

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
1 change: 1 addition & 0 deletions packages/api/src/activities/invoke/tab/tab-submit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface ITabSubmitInvokeActivity extends IActivity<'invoke'> {

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
1 change: 1 addition & 0 deletions packages/api/src/activities/invoke/task/task-fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface ITaskFetchInvokeActivity extends IActivity<'invoke'> {

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
1 change: 1 addition & 0 deletions packages/api/src/activities/invoke/task/task-submit.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export interface ITaskSubmitInvokeActivity extends IActivity<'invoke'> {

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
6 changes: 6 additions & 0 deletions packages/api/src/activities/message/message-update.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ export interface IMessageUpdateActivity extends IActivity<'messageUpdate'> {

/**
* The text to speak.
* @deprecated Not recognized by the service backend.
*/
speak?: string;

Expand All @@ -20,6 +21,7 @@ export interface IMessageUpdateActivity extends IActivity<'messageUpdate'> {
/**
* The time at which the activity should be considered to be "expired" and should not be
* presented to the recipient.
* @deprecated Not recognized by the service backend.
*/
expiration?: Date;

Expand All @@ -44,6 +46,7 @@ export class MessageUpdateActivity

/**
* The text to speak.
* @deprecated Not recognized by the service backend.
*/
speak?: string;

Expand All @@ -55,6 +58,7 @@ export class MessageUpdateActivity
/**
* The time at which the activity should be considered to be "expired" and should not be
* presented to the recipient.
* @deprecated Not recognized by the service backend.
*/
expiration?: Date;

Expand Down Expand Up @@ -123,6 +127,7 @@ export class MessageUpdateActivity

/**
* The text to speak.
* @deprecated Not recognized by the service backend.
*/
withSpeak(value: string) {
this.speak = value;
Expand All @@ -140,6 +145,7 @@ export class MessageUpdateActivity
/**
* The time at which the activity should be considered to be "expired" and should not be
* presented to the recipient.
* @deprecated Not recognized by the service backend.
*/
withExpiration(value: Date) {
this.expiration = value;
Expand Down
12 changes: 12 additions & 0 deletions packages/api/src/activities/message/message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,15 @@ export interface IMessageActivity extends IActivity<'message'> {

/**
* The text to speak.
* @deprecated Not recognized by the service backend.
*/
speak?: string;

/**
* Indicates whether your bot is accepting,
* expecting, or ignoring user input after the message is delivered to the client. Possible
* values include: 'acceptingInput', 'ignoringInput', 'expectingInput'
* @deprecated Not recognized by the service backend.
*/
inputHint?: InputHint;

Expand Down Expand Up @@ -61,6 +63,7 @@ export interface IMessageActivity extends IActivity<'message'> {

/**
* The importance of the activity. Possible values include: 'low', 'normal', 'high'
* @deprecated Not recognized by the service backend.
*/
importance?: Importance;

Expand All @@ -73,6 +76,7 @@ export interface IMessageActivity extends IActivity<'message'> {
/**
* The time at which the activity should be considered to be "expired" and should not be
* presented to the recipient.
* @deprecated Not recognized by the service backend.
*/
expiration?: Date;

Expand Down Expand Up @@ -105,13 +109,15 @@ export class MessageActivity extends Activity<'message'> implements IMessageActi

/**
* The text to speak.
* @deprecated Not recognized by the service backend.
*/
speak?: string;

/**
* Indicates whether your bot is accepting,
* expecting, or ignoring user input after the message is delivered to the client. Possible
* values include: 'acceptingInput', 'ignoringInput', 'expectingInput'
* @deprecated Not recognized by the service backend.
*/
inputHint?: InputHint;

Expand Down Expand Up @@ -143,6 +149,7 @@ export class MessageActivity extends Activity<'message'> implements IMessageActi

/**
* The importance of the activity. Possible values include: 'low', 'normal', 'high'
* @deprecated Not recognized by the service backend.
*/
importance?: Importance;

Expand All @@ -155,6 +162,7 @@ export class MessageActivity extends Activity<'message'> implements IMessageActi
/**
* The time at which the activity should be considered to be "expired" and should not be
* presented to the recipient.
* @deprecated Not recognized by the service backend.
*/
expiration?: Date;

Expand Down Expand Up @@ -213,6 +221,7 @@ export class MessageActivity extends Activity<'message'> implements IMessageActi

/**
* The text to speak.
* @deprecated Not recognized by the service backend.
*/
withSpeak(value: string) {
this.speak = value;
Expand All @@ -223,6 +232,7 @@ export class MessageActivity extends Activity<'message'> implements IMessageActi
* Indicates whether your bot is accepting,
* expecting, or ignoring user input after the message is delivered to the client. Possible
* values include: 'acceptingInput', 'ignoringInput', 'expectingInput'
* @deprecated Not recognized by the service backend.
*/
withInputHint(value: InputHint) {
this.inputHint = value;
Expand Down Expand Up @@ -264,6 +274,7 @@ export class MessageActivity extends Activity<'message'> implements IMessageActi

/**
* The importance of the activity. Possible values include: 'low', 'normal', 'high'
* @deprecated Not recognized by the service backend.
*/
withImportance(value: Importance) {
this.importance = value;
Expand All @@ -282,6 +293,7 @@ export class MessageActivity extends Activity<'message'> implements IMessageActi
/**
* The time at which the activity should be considered to be "expired" and should not be
* presented to the recipient.
* @deprecated Not recognized by the service backend.
*/
withExpiration(value: Date) {
this.expiration = value;
Expand Down
4 changes: 4 additions & 0 deletions packages/api/src/activities/trace.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,9 @@ import { ConversationReference } from '../models';

import { IActivity } from './activity';

/**
* @deprecated Only used by the Bot Framework Emulator which is now deprecated.
*/
export interface ITraceActivity extends IActivity<'trace'> {
/**
* The name of the operation associated with an invoke or event activity.
Expand All @@ -25,6 +28,7 @@ export interface ITraceActivity extends IActivity<'trace'> {

/**
* A reference to another conversation or activity.
* @deprecated No longer returned by the service backend.
*/
relatesTo?: ConversationReference;
}
8 changes: 8 additions & 0 deletions packages/api/src/models/account.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,15 @@ import { Role } from './role';
export type Account<P = any> = {
readonly id: string;
readonly aadObjectId?: string;
/**
* @deprecated No longer returned by the service backend.
*/
readonly role: Role;
/**
* The type of the account. Possible values: 'person', 'bot', 'channel', 'team', 'tag'.
* Primarily present on mention entities for non-person accounts. Absent for regular person accounts.
*/
readonly type?: string;
Comment thread
lilyydu marked this conversation as resolved.
readonly name: string;
readonly properties?: P;
readonly membershipSources?: MembershipSource[];
Expand Down
1 change: 1 addition & 0 deletions packages/api/src/models/attachment/attachment.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
export type Attachment = {
/**
* @member {string} [id] The id of the attachment.
* @deprecated No longer returned by the service backend.
*/
id?: string;

Expand Down
Loading