@useparagon/connect 2.0.2 → 2.0.3

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.
@@ -1,3 +1,4 @@
1
+ import { IConnectSDKProject } from 'src/entities/project.interface';
1
2
  import { ConnectCredentialProviderData, CredentialStatus, IConnectCredential } from '../entities/connectCredential.interface';
2
3
  import { ConnectCredentialConfigMeta, IConnectCredentialConfig } from '../entities/connectCredentialConfig.interface';
3
4
  import { PersonaMeta } from '../entities/persona.interface';
@@ -228,6 +229,9 @@ export type GetIntegrationAccountOptions = {
228
229
  selectedCredentialId?: string;
229
230
  };
230
231
  export type IConnectUser = Omit<AuthenticatedConnectUser, 'token'>;
232
+ export type IConnectUserWithProject = IConnectUser & {
233
+ project: IConnectSDKProject;
234
+ };
231
235
  export declare const INFER_CONTENT_TYPE_FROM_CONNECT_OPTIONS = "auto";
232
236
  export declare const SELECTED_CREDENTIAL_ID_HEADER = "X-Paragon-Credential";
233
237
  export declare const SELECTED_CREDENTIAL_CONFIG_ID_HEADER = "X-Paragon-Configuration-Id";
@@ -1,4 +1,5 @@
1
- import { NODE_ENV, PLATFORM_ENV } from '../types/environment';
1
+ import { PersonaMeta } from '../entities/persona.interface';
2
+ import { NODE_ENV, PLATFORM_ENV } from '../types';
2
3
  /**
3
4
  * get asset url i.e. cdn public url or dashboard public url
4
5
  * @param env
@@ -17,3 +18,6 @@ export declare const getAssetUrl: ({ CDN_PUBLIC_URL: cdnHost, DASHBOARD_PUBLIC_U
17
18
  * @returns
18
19
  */
19
20
  export declare function sanitizeExternalConfigId(externalId: string): string;
21
+ export declare const getHeadersForUserMeta: (userMeta?: PersonaMeta) => {
22
+ [x: string]: string;
23
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@useparagon/connect",
3
- "version": "2.0.2",
3
+ "version": "2.0.3",
4
4
  "description": "Embed integrations into your app with the Paragon SDK",
5
5
  "main": "dist/src/index.js",
6
6
  "types": "dist/src/index.d.ts",