@livetiles/reach-plugin-types 0.5.0-preview.1280 → 0.5.0-preview.1283

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.
Files changed (2) hide show
  1. package/lib/index.d.ts +25 -5
  2. package/package.json +1 -1
package/lib/index.d.ts CHANGED
@@ -6023,15 +6023,27 @@ declare module "libs/shared/util/authentication-services/src/keycloak/OpenIdKeyc
6023
6023
  }
6024
6024
  declare module "libs/shared/util/authentication-services/src/teams/TeamsConsentHelper" {
6025
6025
  import { PublicClientApplication } from '@azure/msal-browser';
6026
- import { Context } from '@microsoft/teams-js';
6026
+ import { app } from '@microsoft/teams-js';
6027
6027
  class Service {
6028
+ /**
6029
+ * Check cached delegated consent
6030
+ */
6028
6031
  hasConsent(): Promise<boolean>;
6032
+ /**
6033
+ * Cache delegated consent
6034
+ */
6029
6035
  setHasConsent(): Promise<void>;
6036
+ /**
6037
+ * Call API to verify delegated consent
6038
+ */
6030
6039
  checkConsentInApi(token: string): Promise<{
6031
6040
  success: boolean;
6032
6041
  response: Response;
6033
6042
  }>;
6034
- getTeamsAuthorizationContext(context: Context): PublicClientApplication;
6043
+ /**
6044
+ * Create MSAL client using Teams context (SDK v2)
6045
+ */
6046
+ getTeamsAuthorizationContext(ctx: app.Context): Promise<PublicClientApplication>;
6035
6047
  private getTeamsConfig;
6036
6048
  }
6037
6049
  export const TeamsConsentHelper: Service;
@@ -6040,9 +6052,14 @@ declare module "libs/shared/util/authentication-services/src/teams/TeamsAuthenti
6040
6052
  import { AuthenticationType } from "libs/shared/util/authentication/src/index";
6041
6053
  import { BaseAuthService } from "libs/shared/util/authentication-services/src/BaseAuthService";
6042
6054
  export class TeamsAuthService extends BaseAuthService {
6043
- private readonly microsoftTeams;
6044
6055
  constructor();
6056
+ private initialized;
6057
+ private initializing?;
6058
+ private ensureInitialized;
6045
6059
  private getToken;
6060
+ /**
6061
+ * BaseAuthService overrides
6062
+ */
6046
6063
  acquireToken(): Promise<string>;
6047
6064
  clearCache(): Promise<void>;
6048
6065
  handleCallbackInternal(): Promise<boolean>;
@@ -6053,8 +6070,11 @@ declare module "libs/shared/util/authentication-services/src/teams/TeamsAuthenti
6053
6070
  isAuthenticated(): Promise<boolean>;
6054
6071
  getCurrentEmailInternal(): Promise<string | null>;
6055
6072
  getUserId(): Promise<string | null>;
6073
+ /**
6074
+ * Helpers
6075
+ */
6056
6076
  private decodedToken;
6057
- ensureDelegatedConsents(token: string): Promise<unknown>;
6077
+ private ensureDelegatedConsents;
6058
6078
  }
6059
6079
  }
6060
6080
  declare module "libs/shared/util/authentication-services/src/keycloak/OnPremKeycloakAuthService" {
@@ -12163,7 +12183,7 @@ declare module "apps/reach-app/src/app/teams/TeamsAuthorization" {
12163
12183
  declare module "apps/reach-app/src/app/teams/TeamsSdkContext" {
12164
12184
  import { FC } from 'react';
12165
12185
  export const TeamsSdkContext: import("react").Context<{
12166
- teamsSdk: typeof microsoftTeams;
12186
+ initialized: boolean;
12167
12187
  }>;
12168
12188
  const TeamsSdkContextProvider: FC;
12169
12189
  export default TeamsSdkContextProvider;
package/package.json CHANGED
@@ -4,6 +4,6 @@
4
4
  "main": "",
5
5
  "types": "./index.d.ts",
6
6
  "license": "ISC",
7
- "version": "0.5.0-preview.1280",
7
+ "version": "0.5.0-preview.1283",
8
8
  "dependencies": {}
9
9
  }