@microsoft/agents-hosting 1.1.4-geb1c05c291 → 1.2.0-alpha.19.g21cf68366a
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/package.json +4 -4
- package/dist/src/activityHandler.js +7 -4
- package/dist/src/activityHandler.js.map +1 -1
- package/dist/src/app/index.d.ts +1 -0
- package/dist/src/app/index.js +1 -0
- package/dist/src/app/index.js.map +1 -1
- package/dist/src/app/streaming/streamingResponse.d.ts +138 -88
- package/dist/src/app/streaming/streamingResponse.js +241 -107
- package/dist/src/app/streaming/streamingResponse.js.map +1 -1
- package/dist/src/app/teamsAttachmentDownloader.d.ts +36 -0
- package/dist/src/app/teamsAttachmentDownloader.js +103 -0
- package/dist/src/app/teamsAttachmentDownloader.js.map +1 -0
- package/dist/src/auth/authConfiguration.d.ts +6 -0
- package/dist/src/auth/authConfiguration.js +15 -9
- package/dist/src/auth/authConfiguration.js.map +1 -1
- package/dist/src/auth/authProvider.d.ts +7 -1
- package/dist/src/auth/msalTokenProvider.d.ts +7 -1
- package/dist/src/auth/msalTokenProvider.js +48 -3
- package/dist/src/auth/msalTokenProvider.js.map +1 -1
- package/dist/src/cloudAdapter.d.ts +39 -14
- package/dist/src/cloudAdapter.js +52 -26
- package/dist/src/cloudAdapter.js.map +1 -1
- package/dist/src/connector-client/connectorClient.js +10 -9
- package/dist/src/connector-client/connectorClient.js.map +1 -1
- package/dist/src/errorHelper.d.ts +4 -0
- package/dist/src/errorHelper.js +588 -0
- package/dist/src/errorHelper.js.map +1 -0
- package/dist/src/index.d.ts +1 -0
- package/dist/src/index.js +3 -1
- package/dist/src/index.js.map +1 -1
- package/dist/src/oauth/userTokenClient.js.map +1 -1
- package/package.json +4 -4
- package/src/activityHandler.ts +8 -5
- package/src/app/index.ts +1 -0
- package/src/app/streaming/streamingResponse.ts +252 -107
- package/src/app/teamsAttachmentDownloader.ts +110 -0
- package/src/auth/authConfiguration.ts +13 -2
- package/src/auth/authProvider.ts +8 -1
- package/src/auth/msalTokenProvider.ts +62 -3
- package/src/cloudAdapter.ts +56 -29
- package/src/connector-client/connectorClient.ts +11 -10
- package/src/errorHelper.ts +674 -0
- package/src/index.ts +1 -0
- package/src/oauth/userTokenClient.ts +2 -2
|
@@ -0,0 +1,588 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
// Copyright (c) Microsoft Corporation. All rights reserved.
|
|
3
|
+
// Licensed under the MIT License.
|
|
4
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
5
|
+
exports.Errors = void 0;
|
|
6
|
+
exports.Errors = {
|
|
7
|
+
// ============================================================================
|
|
8
|
+
// TurnContext and Activity Errors (-120000 to -120090)
|
|
9
|
+
// ============================================================================
|
|
10
|
+
/**
|
|
11
|
+
* Error thrown when TurnContext parameter is missing.
|
|
12
|
+
*/
|
|
13
|
+
MissingTurnContext: {
|
|
14
|
+
code: -120000,
|
|
15
|
+
description: 'Missing TurnContext parameter'
|
|
16
|
+
},
|
|
17
|
+
/**
|
|
18
|
+
* Error thrown when TurnContext does not include an activity.
|
|
19
|
+
*/
|
|
20
|
+
TurnContextMissingActivity: {
|
|
21
|
+
code: -120010,
|
|
22
|
+
description: 'TurnContext does not include an activity'
|
|
23
|
+
},
|
|
24
|
+
/**
|
|
25
|
+
* Error thrown when activity is missing its type property.
|
|
26
|
+
*/
|
|
27
|
+
ActivityMissingType: {
|
|
28
|
+
code: -120020,
|
|
29
|
+
description: 'Activity is missing its type'
|
|
30
|
+
},
|
|
31
|
+
/**
|
|
32
|
+
* Error thrown when activity parameter is invalid.
|
|
33
|
+
*/
|
|
34
|
+
InvalidActivityObject: {
|
|
35
|
+
code: -120030,
|
|
36
|
+
description: 'Invalid activity object'
|
|
37
|
+
},
|
|
38
|
+
/**
|
|
39
|
+
* Error thrown when activity is required but not provided.
|
|
40
|
+
*/
|
|
41
|
+
ActivityRequired: {
|
|
42
|
+
code: -120040,
|
|
43
|
+
description: 'Activity is required.'
|
|
44
|
+
},
|
|
45
|
+
/**
|
|
46
|
+
* Error thrown when activity parameter is required but missing.
|
|
47
|
+
*/
|
|
48
|
+
ActivityParameterRequired: {
|
|
49
|
+
code: -120050,
|
|
50
|
+
description: 'activity parameter required'
|
|
51
|
+
},
|
|
52
|
+
/**
|
|
53
|
+
* Error thrown when activity array is empty.
|
|
54
|
+
*/
|
|
55
|
+
EmptyActivitiesArray: {
|
|
56
|
+
code: -120060,
|
|
57
|
+
description: 'Expecting one or more activities, but the array was empty.'
|
|
58
|
+
},
|
|
59
|
+
/**
|
|
60
|
+
* Error thrown when activities parameter is required but missing.
|
|
61
|
+
*/
|
|
62
|
+
ActivitiesParameterRequired: {
|
|
63
|
+
code: -120070,
|
|
64
|
+
description: 'activities parameter required'
|
|
65
|
+
},
|
|
66
|
+
/**
|
|
67
|
+
* Error thrown when attempting to set TurnContext.responded to false.
|
|
68
|
+
*/
|
|
69
|
+
CannotSetRespondedToFalse: {
|
|
70
|
+
code: -120080,
|
|
71
|
+
description: "TurnContext: cannot set 'responded' to a value of 'false'.",
|
|
72
|
+
},
|
|
73
|
+
/**
|
|
74
|
+
* Error thrown when context parameter is required but missing.
|
|
75
|
+
*/
|
|
76
|
+
ContextParameterRequired: {
|
|
77
|
+
code: -120090,
|
|
78
|
+
description: 'context parameter required'
|
|
79
|
+
},
|
|
80
|
+
// ============================================================================
|
|
81
|
+
// Channel and Conversation Errors (-120100 to -120240)
|
|
82
|
+
// ============================================================================
|
|
83
|
+
/**
|
|
84
|
+
* Error thrown when channelId is required but missing.
|
|
85
|
+
*/
|
|
86
|
+
ChannelIdRequired: {
|
|
87
|
+
code: -120100,
|
|
88
|
+
description: 'channelId is required.'
|
|
89
|
+
},
|
|
90
|
+
/**
|
|
91
|
+
* Error thrown when conversationId is required but missing.
|
|
92
|
+
*/
|
|
93
|
+
ConversationIdRequired: {
|
|
94
|
+
code: -120110,
|
|
95
|
+
description: 'conversationId is required.'
|
|
96
|
+
},
|
|
97
|
+
/**
|
|
98
|
+
* Error thrown when conversation reference object is invalid.
|
|
99
|
+
*/
|
|
100
|
+
InvalidConversationReference: {
|
|
101
|
+
code: -120120,
|
|
102
|
+
description: 'Invalid conversation reference object'
|
|
103
|
+
},
|
|
104
|
+
/**
|
|
105
|
+
* Error thrown when continueConversation receives invalid conversation reference.
|
|
106
|
+
*/
|
|
107
|
+
ContinueConversationInvalidReference: {
|
|
108
|
+
code: -120130,
|
|
109
|
+
description: 'continueConversation: Invalid conversation reference object'
|
|
110
|
+
},
|
|
111
|
+
/**
|
|
112
|
+
* Error thrown when context is required but missing.
|
|
113
|
+
*/
|
|
114
|
+
ContextRequired: {
|
|
115
|
+
code: -120140,
|
|
116
|
+
description: 'context is required'
|
|
117
|
+
},
|
|
118
|
+
/**
|
|
119
|
+
* Error thrown when both userId and conversationId are required.
|
|
120
|
+
*/
|
|
121
|
+
UserIdAndConversationIdRequired: {
|
|
122
|
+
code: -120150,
|
|
123
|
+
description: 'userId and conversationId are required'
|
|
124
|
+
},
|
|
125
|
+
/**
|
|
126
|
+
* Error thrown when both conversationId and activityId are required.
|
|
127
|
+
*/
|
|
128
|
+
ConversationIdAndActivityIdRequired: {
|
|
129
|
+
code: -120160,
|
|
130
|
+
description: 'conversationId and activityId are required'
|
|
131
|
+
},
|
|
132
|
+
/**
|
|
133
|
+
* Error thrown when serviceUrl must be a non-empty string.
|
|
134
|
+
*/
|
|
135
|
+
ServiceUrlRequired: {
|
|
136
|
+
code: -120170,
|
|
137
|
+
description: 'serviceUrl must be a non-empty string'
|
|
138
|
+
},
|
|
139
|
+
/**
|
|
140
|
+
* Error thrown when conversationParameters must be defined.
|
|
141
|
+
*/
|
|
142
|
+
ConversationParametersRequired: {
|
|
143
|
+
code: -120180,
|
|
144
|
+
description: 'conversationParameters must be defined'
|
|
145
|
+
},
|
|
146
|
+
/**
|
|
147
|
+
* Error thrown when activity.channelId is missing.
|
|
148
|
+
*/
|
|
149
|
+
MissingActivityChannelId: {
|
|
150
|
+
code: -120190,
|
|
151
|
+
description: 'missing activity.channelId'
|
|
152
|
+
},
|
|
153
|
+
/**
|
|
154
|
+
* Error thrown when activity.from.id is missing.
|
|
155
|
+
*/
|
|
156
|
+
MissingActivityFromId: {
|
|
157
|
+
code: -120200,
|
|
158
|
+
description: 'missing activity.from.id'
|
|
159
|
+
},
|
|
160
|
+
/**
|
|
161
|
+
* Error thrown when activity.conversation.id is missing.
|
|
162
|
+
*/
|
|
163
|
+
MissingActivityConversationId: {
|
|
164
|
+
code: -120210,
|
|
165
|
+
description: 'missing activity.conversation.id'
|
|
166
|
+
},
|
|
167
|
+
/**
|
|
168
|
+
* Error thrown when context.activity.channelId is missing.
|
|
169
|
+
*/
|
|
170
|
+
MissingContextActivityChannelId: {
|
|
171
|
+
code: -120220,
|
|
172
|
+
description: 'missing context.activity.channelId'
|
|
173
|
+
},
|
|
174
|
+
/**
|
|
175
|
+
* Error thrown when both channelId and from.id are required for operation.
|
|
176
|
+
*/
|
|
177
|
+
ChannelIdAndFromIdRequired: {
|
|
178
|
+
code: -120230,
|
|
179
|
+
description: "Both 'activity.channelId' and 'activity.from.id' are required for this operation.",
|
|
180
|
+
},
|
|
181
|
+
/**
|
|
182
|
+
* Error thrown when both channelId and from.id are required for signout.
|
|
183
|
+
*/
|
|
184
|
+
ChannelIdAndFromIdRequiredForSignout: {
|
|
185
|
+
code: -120240,
|
|
186
|
+
description: "Both 'activity.channelId' and 'activity.from.id' are required to perform signout.",
|
|
187
|
+
},
|
|
188
|
+
// ============================================================================
|
|
189
|
+
// Attachment Errors (-120250 to -120290)
|
|
190
|
+
// ============================================================================
|
|
191
|
+
/**
|
|
192
|
+
* Error thrown when attachmentData is required but missing.
|
|
193
|
+
*/
|
|
194
|
+
AttachmentDataRequired: {
|
|
195
|
+
code: -120250,
|
|
196
|
+
description: 'attachmentData is required'
|
|
197
|
+
},
|
|
198
|
+
/**
|
|
199
|
+
* Error thrown when attachmentId is required but missing.
|
|
200
|
+
*/
|
|
201
|
+
AttachmentIdRequired: {
|
|
202
|
+
code: -120260,
|
|
203
|
+
description: 'attachmentId is required'
|
|
204
|
+
},
|
|
205
|
+
/**
|
|
206
|
+
* Error thrown when viewId is required but missing.
|
|
207
|
+
*/
|
|
208
|
+
ViewIdRequired: {
|
|
209
|
+
code: -120270,
|
|
210
|
+
description: 'viewId is required'
|
|
211
|
+
},
|
|
212
|
+
/**
|
|
213
|
+
* Error thrown when headers must be provided.
|
|
214
|
+
*/
|
|
215
|
+
HeadersRequired: {
|
|
216
|
+
code: -120280,
|
|
217
|
+
description: 'Headers must be provided.'
|
|
218
|
+
},
|
|
219
|
+
/**
|
|
220
|
+
* Error thrown when request.body parameter is required.
|
|
221
|
+
*/
|
|
222
|
+
RequestBodyParameterRequired: {
|
|
223
|
+
code: -120290,
|
|
224
|
+
description: 'request.body parameter required'
|
|
225
|
+
},
|
|
226
|
+
// ============================================================================
|
|
227
|
+
// Connection and Authentication Errors (-120300 to -120590)
|
|
228
|
+
// ============================================================================
|
|
229
|
+
/**
|
|
230
|
+
* Error thrown when a connection is not found in environment.
|
|
231
|
+
*/
|
|
232
|
+
ConnectionNotFoundInEnvironment: {
|
|
233
|
+
code: -120300,
|
|
234
|
+
description: 'Connection "{connectionName}" not found in environment.'
|
|
235
|
+
},
|
|
236
|
+
/**
|
|
237
|
+
* Error thrown when no default connection is found in environment.
|
|
238
|
+
*/
|
|
239
|
+
NoDefaultConnectionFound: {
|
|
240
|
+
code: -120310,
|
|
241
|
+
description: 'No default connection found in environment connections.'
|
|
242
|
+
},
|
|
243
|
+
/**
|
|
244
|
+
* Error thrown when ClientId is required in production.
|
|
245
|
+
*/
|
|
246
|
+
ClientIdRequiredInProduction: {
|
|
247
|
+
code: -120320,
|
|
248
|
+
description: 'ClientId required in production'
|
|
249
|
+
},
|
|
250
|
+
/**
|
|
251
|
+
* Error thrown when ClientId is not found for connection.
|
|
252
|
+
*/
|
|
253
|
+
ClientIdNotFoundForConnection: {
|
|
254
|
+
code: -120330,
|
|
255
|
+
description: 'ClientId not found for connection: {connectionName}'
|
|
256
|
+
},
|
|
257
|
+
/**
|
|
258
|
+
* Error thrown when connector client cannot be created for agentic user.
|
|
259
|
+
*/
|
|
260
|
+
CannotCreateConnectorClientForAgenticUser: {
|
|
261
|
+
code: -120340,
|
|
262
|
+
description: 'Could not create connector client for agentic user'
|
|
263
|
+
},
|
|
264
|
+
/**
|
|
265
|
+
* Error thrown when connection is not found by name.
|
|
266
|
+
*/
|
|
267
|
+
ConnectionNotFound: {
|
|
268
|
+
code: -120350,
|
|
269
|
+
description: 'Connection not found: {connectionName}'
|
|
270
|
+
},
|
|
271
|
+
/**
|
|
272
|
+
* Error thrown when no connections are found in configuration.
|
|
273
|
+
*/
|
|
274
|
+
NoConnectionsFoundInConfiguration: {
|
|
275
|
+
code: -120360,
|
|
276
|
+
description: 'No connections found for this Agent in the Connections Configuration.'
|
|
277
|
+
},
|
|
278
|
+
/**
|
|
279
|
+
* Error thrown when connections option is not available in app options.
|
|
280
|
+
*/
|
|
281
|
+
ConnectionsOptionNotAvailable: {
|
|
282
|
+
code: -120370,
|
|
283
|
+
description: "The 'connections' option is not available in the app options. Ensure that the app is properly configured.",
|
|
284
|
+
},
|
|
285
|
+
/**
|
|
286
|
+
* Error thrown when connection settings must be provided.
|
|
287
|
+
*/
|
|
288
|
+
ConnectionSettingsRequired: {
|
|
289
|
+
code: -120380,
|
|
290
|
+
description: 'Connection settings must be provided for this operation.'
|
|
291
|
+
},
|
|
292
|
+
/**
|
|
293
|
+
* Error thrown when identity is required to get token provider.
|
|
294
|
+
*/
|
|
295
|
+
IdentityRequiredForTokenProvider: {
|
|
296
|
+
code: -120390,
|
|
297
|
+
description: 'Identity is required to get the token provider.'
|
|
298
|
+
},
|
|
299
|
+
/**
|
|
300
|
+
* Error thrown when audience and service URL are required for token provider.
|
|
301
|
+
*/
|
|
302
|
+
AudienceAndServiceUrlRequiredForTokenProvider: {
|
|
303
|
+
code: -120400,
|
|
304
|
+
description: 'Audience and Service URL are required to get the token provider.'
|
|
305
|
+
},
|
|
306
|
+
/**
|
|
307
|
+
* Error thrown when no connection found for audience and service URL.
|
|
308
|
+
*/
|
|
309
|
+
NoConnectionForAudienceAndServiceUrl: {
|
|
310
|
+
code: -120410,
|
|
311
|
+
description: 'No connection found for audience: {audience} and serviceUrl: {serviceUrl}'
|
|
312
|
+
},
|
|
313
|
+
/**
|
|
314
|
+
* Error thrown when invalid token is provided.
|
|
315
|
+
*/
|
|
316
|
+
InvalidToken: {
|
|
317
|
+
code: -120420,
|
|
318
|
+
description: 'invalid token'
|
|
319
|
+
},
|
|
320
|
+
/**
|
|
321
|
+
* Error thrown when invalid parameters for exchangeToken method.
|
|
322
|
+
*/
|
|
323
|
+
InvalidExchangeTokenParameters: {
|
|
324
|
+
code: -120430,
|
|
325
|
+
description: 'Invalid parameters for exchangeToken method.'
|
|
326
|
+
},
|
|
327
|
+
/**
|
|
328
|
+
* Error thrown when invalid authConfig is provided.
|
|
329
|
+
*/
|
|
330
|
+
InvalidAuthConfig: {
|
|
331
|
+
code: -120440,
|
|
332
|
+
description: 'Invalid authConfig.'
|
|
333
|
+
},
|
|
334
|
+
/**
|
|
335
|
+
* Error thrown when failed to acquire token.
|
|
336
|
+
*/
|
|
337
|
+
FailedToAcquireToken: {
|
|
338
|
+
code: -120450,
|
|
339
|
+
description: 'Failed to acquire token'
|
|
340
|
+
},
|
|
341
|
+
/**
|
|
342
|
+
* Error thrown when failed to acquire instance token.
|
|
343
|
+
*/
|
|
344
|
+
FailedToAcquireInstanceToken: {
|
|
345
|
+
code: -120460,
|
|
346
|
+
description: 'Failed to acquire instance token'
|
|
347
|
+
},
|
|
348
|
+
/**
|
|
349
|
+
* Error thrown when userTokenClient is not available in adapter.
|
|
350
|
+
*/
|
|
351
|
+
UserTokenClientNotAvailable: {
|
|
352
|
+
code: -120470,
|
|
353
|
+
description: "The 'userTokenClient' is not available in the adapter. Ensure that the adapter supports user token operations.",
|
|
354
|
+
},
|
|
355
|
+
/**
|
|
356
|
+
* Error thrown when current token is not exchangeable for OBO flow.
|
|
357
|
+
*/
|
|
358
|
+
TokenNotExchangeableForOBO: {
|
|
359
|
+
code: -120480,
|
|
360
|
+
description: "The current token is not exchangeable for an on-behalf-of flow. Ensure the token audience starts with 'api://'.",
|
|
361
|
+
},
|
|
362
|
+
/**
|
|
363
|
+
* Error thrown when name property or connection name env variable is required.
|
|
364
|
+
*/
|
|
365
|
+
ConnectionNameOrEnvVariableRequired: {
|
|
366
|
+
code: -120490,
|
|
367
|
+
description: "The 'name' property or '{handlerId}_connectionName' env variable is required to initialize the handler.",
|
|
368
|
+
},
|
|
369
|
+
/**
|
|
370
|
+
* Error thrown when failed to sign out.
|
|
371
|
+
*/
|
|
372
|
+
FailedToSignOut: {
|
|
373
|
+
code: -120500,
|
|
374
|
+
description: 'Failed to sign out'
|
|
375
|
+
},
|
|
376
|
+
/**
|
|
377
|
+
* Error thrown when failed to sign in.
|
|
378
|
+
*/
|
|
379
|
+
FailedToSignIn: {
|
|
380
|
+
code: -120510,
|
|
381
|
+
description: 'Failed to sign in'
|
|
382
|
+
},
|
|
383
|
+
/**
|
|
384
|
+
* Error thrown when at least one scope must be specified for agentic auth handler.
|
|
385
|
+
*/
|
|
386
|
+
AtLeastOneScopeRequired: {
|
|
387
|
+
code: -120520,
|
|
388
|
+
description: 'At least one scope must be specified for the Agentic authorization handler.'
|
|
389
|
+
},
|
|
390
|
+
/**
|
|
391
|
+
* Error thrown when authorization option is not available in app options.
|
|
392
|
+
*/
|
|
393
|
+
AuthorizationOptionNotAvailable: {
|
|
394
|
+
code: -120530,
|
|
395
|
+
description: 'The Application.authorization property is unavailable because no authorization options were configured.'
|
|
396
|
+
},
|
|
397
|
+
/**
|
|
398
|
+
* Error thrown when auth handler with specified ID cannot be found.
|
|
399
|
+
*/
|
|
400
|
+
AuthHandlerNotFound: {
|
|
401
|
+
code: -120540,
|
|
402
|
+
description: "Cannot find auth handler with ID '{handlerId}'. Ensure it is configured in the agent application options.",
|
|
403
|
+
},
|
|
404
|
+
/**
|
|
405
|
+
* Error thrown when auth handlers with specified IDs cannot be found.
|
|
406
|
+
*/
|
|
407
|
+
AuthHandlersNotFound: {
|
|
408
|
+
code: -120550,
|
|
409
|
+
description: 'Cannot find auth handlers with ID(s): {handlerIds}'
|
|
410
|
+
},
|
|
411
|
+
/**
|
|
412
|
+
* Error thrown when AgentApplication.authorization does not have any auth handlers.
|
|
413
|
+
*/
|
|
414
|
+
NoAuthHandlersConfigured: {
|
|
415
|
+
code: -120560,
|
|
416
|
+
description: 'The AgentApplication.authorization does not have any auth handlers'
|
|
417
|
+
},
|
|
418
|
+
/**
|
|
419
|
+
* Error thrown when unsupported authorization handler type is encountered.
|
|
420
|
+
*/
|
|
421
|
+
UnsupportedAuthHandlerType: {
|
|
422
|
+
code: -120570,
|
|
423
|
+
description: 'Unsupported authorization handler type: {handlerType}'
|
|
424
|
+
},
|
|
425
|
+
/**
|
|
426
|
+
* Error thrown when unexpected registration status is encountered.
|
|
427
|
+
*/
|
|
428
|
+
UnexpectedRegistrationStatus: {
|
|
429
|
+
code: -120580,
|
|
430
|
+
description: 'Unexpected registration status: {status}'
|
|
431
|
+
},
|
|
432
|
+
/**
|
|
433
|
+
* Error thrown when storage is required for authorization.
|
|
434
|
+
*/
|
|
435
|
+
StorageRequiredForAuthorization: {
|
|
436
|
+
code: -120590,
|
|
437
|
+
description: 'Storage is required for Authorization. Ensure that a storage provider is configured in the app options.'
|
|
438
|
+
},
|
|
439
|
+
// ============================================================================
|
|
440
|
+
// Agent and Client Errors (-120600 to -120630)
|
|
441
|
+
// ============================================================================
|
|
442
|
+
/**
|
|
443
|
+
* Error thrown when missing agent client config for specified agent.
|
|
444
|
+
*/
|
|
445
|
+
MissingAgentClientConfig: {
|
|
446
|
+
code: -120600,
|
|
447
|
+
description: 'Missing agent client config for agent {agentName}'
|
|
448
|
+
},
|
|
449
|
+
/**
|
|
450
|
+
* Error thrown when agent name is required.
|
|
451
|
+
*/
|
|
452
|
+
AgentNameRequired: {
|
|
453
|
+
code: -120610,
|
|
454
|
+
description: 'Agent name is required'
|
|
455
|
+
},
|
|
456
|
+
/**
|
|
457
|
+
* Error thrown when failed to post activity to agent.
|
|
458
|
+
*/
|
|
459
|
+
FailedToPostActivityToAgent: {
|
|
460
|
+
code: -120620,
|
|
461
|
+
description: 'Failed to post activity to agent: {statusText}'
|
|
462
|
+
},
|
|
463
|
+
/**
|
|
464
|
+
* Error thrown when logic parameter must be defined.
|
|
465
|
+
*/
|
|
466
|
+
LogicParameterRequired: {
|
|
467
|
+
code: -120630,
|
|
468
|
+
description: 'logic must be defined'
|
|
469
|
+
},
|
|
470
|
+
// ============================================================================
|
|
471
|
+
// Storage and State Errors (-120700 to -120730)
|
|
472
|
+
// ============================================================================
|
|
473
|
+
/**
|
|
474
|
+
* Error thrown when storage write operation fails due to eTag conflict.
|
|
475
|
+
*/
|
|
476
|
+
StorageETagConflict: {
|
|
477
|
+
code: -120700,
|
|
478
|
+
description: 'Storage: error writing "{key}" due to eTag conflict.'
|
|
479
|
+
},
|
|
480
|
+
/**
|
|
481
|
+
* Error thrown when storage option is not available in app options.
|
|
482
|
+
*/
|
|
483
|
+
StorageOptionNotAvailable: {
|
|
484
|
+
code: -120710,
|
|
485
|
+
description: "The 'storage' option is not available in the app options. Ensure that the app is properly configured.",
|
|
486
|
+
},
|
|
487
|
+
/**
|
|
488
|
+
* Error thrown when state is not loaded.
|
|
489
|
+
*/
|
|
490
|
+
StateNotLoaded: {
|
|
491
|
+
code: -120720,
|
|
492
|
+
description: 'State not loaded. Call load() before accessing state properties.'
|
|
493
|
+
},
|
|
494
|
+
/**
|
|
495
|
+
* Error thrown when invalid state scope is provided.
|
|
496
|
+
*/
|
|
497
|
+
InvalidStateScope: {
|
|
498
|
+
code: -120730,
|
|
499
|
+
description: 'Invalid state scope: {scope}'
|
|
500
|
+
},
|
|
501
|
+
// ============================================================================
|
|
502
|
+
// Application Configuration Errors (-120850 to -120900)
|
|
503
|
+
// ============================================================================
|
|
504
|
+
/**
|
|
505
|
+
* Error thrown when longRunningMessages property is unavailable.
|
|
506
|
+
*/
|
|
507
|
+
LongRunningMessagesPropertyUnavailable: {
|
|
508
|
+
code: -120850,
|
|
509
|
+
description: 'The Application.longRunningMessages property is unavailable because no adapter was configured in the app.'
|
|
510
|
+
},
|
|
511
|
+
/**
|
|
512
|
+
* Error thrown when transcriptLogger property is unavailable.
|
|
513
|
+
*/
|
|
514
|
+
TranscriptLoggerPropertyUnavailable: {
|
|
515
|
+
code: -120860,
|
|
516
|
+
description: 'The Application.transcriptLogger property is unavailable because no adapter was configured in the app.'
|
|
517
|
+
},
|
|
518
|
+
/**
|
|
519
|
+
* Error thrown when TranscriptLoggerMiddleware requires a TranscriptLogger instance.
|
|
520
|
+
*/
|
|
521
|
+
TranscriptLoggerInstanceRequired: {
|
|
522
|
+
code: -120870,
|
|
523
|
+
description: 'TranscriptLoggerMiddleware requires a TranscriptLogger instance.'
|
|
524
|
+
},
|
|
525
|
+
/**
|
|
526
|
+
* Error thrown when extension is already registered.
|
|
527
|
+
*/
|
|
528
|
+
ExtensionAlreadyRegistered: {
|
|
529
|
+
code: -120880,
|
|
530
|
+
description: 'Extension already registered'
|
|
531
|
+
},
|
|
532
|
+
/**
|
|
533
|
+
* Error thrown when invalid plugin type is added to MiddlewareSet.
|
|
534
|
+
*/
|
|
535
|
+
InvalidMiddlewarePluginType: {
|
|
536
|
+
code: -120890,
|
|
537
|
+
description: 'MiddlewareSet.use(): invalid plugin type being added.'
|
|
538
|
+
},
|
|
539
|
+
/**
|
|
540
|
+
* Error thrown when the stream has already ended.
|
|
541
|
+
*/
|
|
542
|
+
StreamAlreadyEnded: {
|
|
543
|
+
code: -120900,
|
|
544
|
+
description: 'The stream has already ended.'
|
|
545
|
+
},
|
|
546
|
+
// ============================================================================
|
|
547
|
+
// Adaptive Cards Errors (-120950 to -120980)
|
|
548
|
+
// ============================================================================
|
|
549
|
+
/**
|
|
550
|
+
* Error thrown when unexpected AdaptiveCards.actionExecute() is triggered.
|
|
551
|
+
*/
|
|
552
|
+
UnexpectedActionExecute: {
|
|
553
|
+
code: -120950,
|
|
554
|
+
description: 'Unexpected AdaptiveCards.actionExecute() triggered for activity type: {activityType}'
|
|
555
|
+
},
|
|
556
|
+
/**
|
|
557
|
+
* Error thrown when unexpected AdaptiveCards.actionSubmit() is triggered.
|
|
558
|
+
*/
|
|
559
|
+
UnexpectedActionSubmit: {
|
|
560
|
+
code: -120960,
|
|
561
|
+
description: 'Unexpected AdaptiveCards.actionSubmit() triggered for activity type: {activityType}'
|
|
562
|
+
},
|
|
563
|
+
/**
|
|
564
|
+
* Error thrown when unexpected AdaptiveCards.search() is triggered.
|
|
565
|
+
*/
|
|
566
|
+
UnexpectedSearchAction: {
|
|
567
|
+
code: -120970,
|
|
568
|
+
description: 'Unexpected AdaptiveCards.search() triggered for activity type: {activityType}'
|
|
569
|
+
},
|
|
570
|
+
/**
|
|
571
|
+
* Error thrown when invalid action value is provided.
|
|
572
|
+
*/
|
|
573
|
+
InvalidActionValue: {
|
|
574
|
+
code: -120980,
|
|
575
|
+
description: 'Invalid action value: {error}'
|
|
576
|
+
},
|
|
577
|
+
// ============================================================================
|
|
578
|
+
// General Errors (-120990)
|
|
579
|
+
// ============================================================================
|
|
580
|
+
/**
|
|
581
|
+
* Error thrown when unknown error type is encountered.
|
|
582
|
+
*/
|
|
583
|
+
UnknownErrorType: {
|
|
584
|
+
code: -120990,
|
|
585
|
+
description: 'Unknown error type: {errorMessage}'
|
|
586
|
+
},
|
|
587
|
+
};
|
|
588
|
+
//# sourceMappingURL=errorHelper.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"errorHelper.js","sourceRoot":"","sources":["../../src/errorHelper.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,kCAAkC;;;AAIrB,QAAA,MAAM,GAA4C;IAC7D,+EAA+E;IAC/E,uDAAuD;IACvD,+EAA+E;IAE/E;;SAEK;IAC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EK;IACL,sBAAsB,EAAE;QACtB,IAAI,EAAE,CAAC,MAAM;QACb,WAAW,EAAE,+EAA+E;KAC7F;IAED;;SAEK;IACL,kBAAkB,EAAE;QAClB,IAAI,EAAE,CAAC,MAAM;QACb,WAAW,EAAE,+BAA+B;KAC7C;IAED,+EAA+E;IAC/E,2BAA2B;IAC3B,+EAA+E;IAE/E;;SAEK;IACL,gBAAgB,EAAE;QAChB,IAAI,EAAE,CAAC,MAAM;QACb,WAAW,EAAE,oCAAoC;KAClD;CACF,CAAA"}
|
package/dist/src/index.d.ts
CHANGED
|
@@ -7,6 +7,7 @@ export { authorizeJWT } from './auth/jwt-middleware';
|
|
|
7
7
|
export * from './app';
|
|
8
8
|
export * from './cards';
|
|
9
9
|
export * from './connector-client';
|
|
10
|
+
export { Errors as HostingErrors } from './errorHelper';
|
|
10
11
|
export * from './invoke';
|
|
11
12
|
export * from './oauth';
|
|
12
13
|
export * from './state';
|
package/dist/src/index.js
CHANGED
|
@@ -18,13 +18,15 @@ var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
|
18
18
|
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
19
19
|
};
|
|
20
20
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
21
|
-
exports.authorizeJWT = void 0;
|
|
21
|
+
exports.HostingErrors = exports.authorizeJWT = void 0;
|
|
22
22
|
__exportStar(require("./auth/"), exports);
|
|
23
23
|
var jwt_middleware_1 = require("./auth/jwt-middleware");
|
|
24
24
|
Object.defineProperty(exports, "authorizeJWT", { enumerable: true, get: function () { return jwt_middleware_1.authorizeJWT; } });
|
|
25
25
|
__exportStar(require("./app"), exports);
|
|
26
26
|
__exportStar(require("./cards"), exports);
|
|
27
27
|
__exportStar(require("./connector-client"), exports);
|
|
28
|
+
var errorHelper_1 = require("./errorHelper");
|
|
29
|
+
Object.defineProperty(exports, "HostingErrors", { enumerable: true, get: function () { return errorHelper_1.Errors; } });
|
|
28
30
|
__exportStar(require("./invoke"), exports);
|
|
29
31
|
__exportStar(require("./oauth"), exports);
|
|
30
32
|
__exportStar(require("./state"), exports);
|
package/dist/src/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;AAEH,0CAAuB;AACvB,wDAAoD;AAA3C,8GAAA,YAAY,OAAA;AAErB,wCAAqB;AACrB,0CAAuB;AACvB,qDAAkC;AAClC,2CAAwB;AACxB,0CAAuB;AACvB,0CAAuB;AACvB,4CAAyB;AACzB,+CAA4B;AAE5B,oDAAiC;AACjC,gDAA6B;AAC7B,iDAA8B;AAC9B,kDAA+B;AAC/B,mDAAgC;AAChC,gDAA6B;AAC7B,gDAA6B;AAC7B,+DAA4C;AAC5C,oDAAiC;AACjC,sDAAmC;AAEnC,iDAA8B"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;AAEH,0CAAuB;AACvB,wDAAoD;AAA3C,8GAAA,YAAY,OAAA;AAErB,wCAAqB;AACrB,0CAAuB;AACvB,qDAAkC;AAClC,6CAAuD;AAA9C,4GAAA,MAAM,OAAiB;AAChC,2CAAwB;AACxB,0CAAuB;AACvB,0CAAuB;AACvB,4CAAyB;AACzB,+CAA4B;AAE5B,oDAAiC;AACjC,gDAA6B;AAC7B,iDAA8B;AAC9B,kDAA+B;AAC/B,mDAAgC;AAChC,gDAA6B;AAC7B,gDAA6B;AAC7B,+DAA4C;AAC5C,oDAAiC;AACjC,sDAAmC;AAEnC,iDAA8B"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userTokenClient.js","sourceRoot":"","sources":["../../../src/oauth/userTokenClient.ts"],"names":[],"mappings":";AAAA,4DAA4D;AAC5D,kCAAkC;;;;;;AAElC,kD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