@useparagon/connect 2.4.2-experimental.1 → 2.4.3-experimental.1
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.
|
@@ -342,6 +342,10 @@ export type PreOptionsStage = {
|
|
|
342
342
|
export type PostOptionsStage = {
|
|
343
343
|
stage: 'postOptions';
|
|
344
344
|
options: IntegrationConnectInput[];
|
|
345
|
+
/**
|
|
346
|
+
* The ID of the credential created during auth stages.
|
|
347
|
+
*/
|
|
348
|
+
credentialId?: string;
|
|
345
349
|
done: false;
|
|
346
350
|
};
|
|
347
351
|
export type OAuthStage = {
|
|
@@ -20,6 +20,12 @@ export type ConnectSDKError = {
|
|
|
20
20
|
meta: {
|
|
21
21
|
integrationName: string;
|
|
22
22
|
};
|
|
23
|
+
} | {
|
|
24
|
+
name: 'CredentialIdNotSetError';
|
|
25
|
+
message: string;
|
|
26
|
+
} | {
|
|
27
|
+
name: 'CredentialNotReturnedFromInstallationError';
|
|
28
|
+
message: string;
|
|
23
29
|
} | {
|
|
24
30
|
name: 'HeadlessModeNotEnabledError';
|
|
25
31
|
message: string;
|
|
@@ -36,7 +42,7 @@ export type ConnectSDKError = {
|
|
|
36
42
|
type ErrorByName<T> = Extract<ConnectSDKError, {
|
|
37
43
|
name: T;
|
|
38
44
|
}>;
|
|
39
|
-
export type InstallFlowError = ErrorByName<'OAuthBlockedError' | 'OAuthTimeoutError' | 'UserNotAuthenticatedError' | 'NoActiveInstallFlowError' | 'HeadlessModeNotEnabledError' | 'IntegrationNotFoundError' | 'UnknownError'>;
|
|
45
|
+
export type InstallFlowError = ErrorByName<'OAuthBlockedError' | 'OAuthTimeoutError' | 'UserNotAuthenticatedError' | 'NoActiveInstallFlowError' | 'HeadlessModeNotEnabledError' | 'CredentialIdNotSetError' | 'CredentialNotReturnedFromInstallationError' | 'IntegrationNotFoundError' | 'UnknownError'>;
|
|
40
46
|
export declare class BaseSDKError extends Error {
|
|
41
47
|
readonly meta: Record<string, unknown> | null;
|
|
42
48
|
constructor(error: ConnectSDKError);
|
|
@@ -44,6 +50,12 @@ export declare class BaseSDKError extends Error {
|
|
|
44
50
|
export declare class UserNotAuthenticatedError extends BaseSDKError {
|
|
45
51
|
constructor();
|
|
46
52
|
}
|
|
53
|
+
export declare class CredentialIdNotSetError extends BaseSDKError {
|
|
54
|
+
constructor(integrationName: string);
|
|
55
|
+
}
|
|
56
|
+
export declare class CredentialNotReturnedFromInstallationError extends BaseSDKError {
|
|
57
|
+
constructor(integrationName: string);
|
|
58
|
+
}
|
|
47
59
|
export declare class NoActiveInstallFlowError extends BaseSDKError {
|
|
48
60
|
constructor();
|
|
49
61
|
}
|
package/package.json
CHANGED