@atlaskit/teams-client 4.3.0 → 4.4.0

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.
@@ -3,6 +3,7 @@ import { type LinkIconData } from './types';
3
3
  export declare class ObjectResolverClient extends RestClient {
4
4
  constructor(config?: {});
5
5
  getTeamLinkIcons(teamLinkUrls: string[]): Promise<LinkIconData[]>;
6
+ getAriFromUrl(url: string): Promise<string | undefined>;
6
7
  }
7
8
  declare const _default: ObjectResolverClient;
8
9
  export default _default;
@@ -36,3 +36,18 @@ export interface IconItemFailure {
36
36
  };
37
37
  status: number;
38
38
  }
39
+ export type GetAriFromUrlErrorType = 'AuthError' | 'UnsupportedError' | 'TimeoutError' | 'InternalServerError';
40
+ export interface GetAriFromUrlResponse {
41
+ meta: Record<string, unknown>;
42
+ data: {
43
+ ari: string;
44
+ url: string;
45
+ };
46
+ }
47
+ export interface GetAriFromUrlError {
48
+ error: {
49
+ type: GetAriFromUrlErrorType;
50
+ message: string;
51
+ status: number;
52
+ };
53
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@atlaskit/teams-client",
3
- "version": "4.3.0",
3
+ "version": "4.4.0",
4
4
  "description": "A client to retrieve team related data",
5
5
  "author": "Atlassian Pty Ltd",
6
6
  "license": "Apache-2.0",