@microsoft/agents-hosting 1.6.0-beta.30.g545c41a189 → 1.6.0-beta.38.gb5c07c86a0

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.
@@ -516,6 +516,54 @@ export const Errors: { [key: string]: AgentErrorDefinition } = {
516
516
  description: "The current token for the '{connectionName}' AzureBot connection is not exchangeable for an on-behalf-of flow. Ensure the base token audience is for the bot/resource app, such as an App ID URI like 'api://...' or otherwise includes the app's client id."
517
517
  },
518
518
 
519
+ /**
520
+ * Error thrown when an unsupported authentication type is specified in authConfig.
521
+ */
522
+ UnsupportedAuthType: {
523
+ code: -120593,
524
+ description: 'Unsupported authentication type: {authType}'
525
+ },
526
+
527
+ /**
528
+ * Error thrown when WorkloadIdentity authentication requires `federatedTokenFile` or the deprecated `WIDAssertionFile` to be configured.
529
+ */
530
+ WorkloadIdentityTokenFileRequired: {
531
+ code: -120594,
532
+ description: 'WorkloadIdentity authentication requires `federatedTokenFile` or the deprecated `WIDAssertionFile` to be configured'
533
+ },
534
+
535
+ /**
536
+ * Error thrown when ClientSecret authentication is specified but `clientSecret` is not configured.
537
+ */
538
+ ClientSecretRequired: {
539
+ code: -120595,
540
+ description: 'ClientSecret authentication requires `clientSecret` to be configured'
541
+ },
542
+
543
+ /**
544
+ * Error thrown when Certificate authentication is specified but `certPemFile` or `certKeyFile` is not configured.
545
+ */
546
+ CertificateFilesRequired: {
547
+ code: -120596,
548
+ description: 'Certificate authentication requires both `certPemFile` and `certKeyFile` to be configured'
549
+ },
550
+
551
+ /**
552
+ * Error thrown when FederatedCredentials authentication is specified but `FICClientId` is not configured.
553
+ */
554
+ FICClientIdRequired: {
555
+ code: -120597,
556
+ description: 'FederatedCredentials authentication requires `FICClientId` to be configured'
557
+ },
558
+
559
+ /**
560
+ * Error thrown when UserManagedIdentity authentication is specified but `clientId` is not configured.
561
+ */
562
+ ClientIdRequiredForUserManagedIdentity: {
563
+ code: -120598,
564
+ description: 'UserManagedIdentity authentication requires `clientId` to be configured'
565
+ },
566
+
519
567
  // ============================================================================
520
568
  // Agent and Client Errors (-120600 to -120630)
521
569
  // ============================================================================
@@ -243,7 +243,7 @@ export class UserTokenClient {
243
243
  const state = Buffer.from(JSON.stringify({ conversation, relatesTo, connectionName, msAppId: this.msAppId })).toString('base64')
244
244
  const params = { userId, connectionName, channelId, state, code, finalRedirect, fwdUrl }
245
245
  const response = await this.client.get('/api/usertoken/GetTokenOrSignInResource', { params })
246
- record({ userId, connectionName, channelId, httpStatusCode: response.status?.toString() })
246
+ record({ userId, connectionName, channelId, httpStatusCode: response?.status?.toString() })
247
247
  return response.data as TokenOrSinginResourceResponse
248
248
  })
249
249
  }