@livechat/developer-studio-api 1.0.2 → 1.0.4
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.
- package/dist/index.d.mts +5 -3
- package/dist/index.d.ts +5 -3
- package/dist/index.js +215 -68
- package/dist/index.mjs +215 -68
- package/package.json +4 -4
package/dist/index.d.mts
CHANGED
|
@@ -93,6 +93,7 @@ declare function getGitHubClientAuthorization(req: {
|
|
|
93
93
|
}): GithubClientInstanceAuthorization;
|
|
94
94
|
interface GithubClientRequestOptions {
|
|
95
95
|
token?: string;
|
|
96
|
+
ensureAuthorizationToken?: boolean;
|
|
96
97
|
}
|
|
97
98
|
declare function getGithubClientRequestConfig(options?: GithubClientRequestOptions | undefined): AxiosRequestConfig;
|
|
98
99
|
declare function initGithubClientInstance(token?: string): void;
|
|
@@ -163,6 +164,7 @@ interface NetlifyClientInstanceAuthorization {
|
|
|
163
164
|
}
|
|
164
165
|
interface NetlifyClientInstanceOptions {
|
|
165
166
|
token?: string;
|
|
167
|
+
ensureAuthorizationToken?: boolean;
|
|
166
168
|
}
|
|
167
169
|
declare const netlifyClientInstance: axios.AxiosInstance;
|
|
168
170
|
declare function getNetlifyClientAuthorization(req: {
|
|
@@ -374,6 +376,7 @@ interface SentryClientInstanceAuthorization {
|
|
|
374
376
|
}
|
|
375
377
|
interface SentryClientInstanceOptions {
|
|
376
378
|
token?: string;
|
|
379
|
+
ensureAuthorizationToken?: boolean;
|
|
377
380
|
}
|
|
378
381
|
declare const sentryClientInstance: axios.AxiosInstance;
|
|
379
382
|
declare function getSentryClientAuthorization(req: {
|
|
@@ -468,6 +471,7 @@ interface VercelClientInstanceAuthorization {
|
|
|
468
471
|
}
|
|
469
472
|
interface VercelClientInstanceOptions {
|
|
470
473
|
token?: string;
|
|
474
|
+
ensureAuthorizationToken?: boolean;
|
|
471
475
|
}
|
|
472
476
|
declare const vercelClientInstance: axios.AxiosInstance;
|
|
473
477
|
declare function getVercelClientAuthorization(req: {
|
|
@@ -661,8 +665,6 @@ type LinkAppDeploymentData = ({
|
|
|
661
665
|
type LinkAppDeploymentPayload = {
|
|
662
666
|
appId: string;
|
|
663
667
|
appName: string;
|
|
664
|
-
repositoryName: string;
|
|
665
|
-
repositoryBranch: string;
|
|
666
668
|
} & LinkAppDeploymentData;
|
|
667
669
|
type LinkAppDeploymentResult = {
|
|
668
670
|
needToBeInstalled: boolean;
|
|
@@ -2079,7 +2081,7 @@ declare const api: {
|
|
|
2079
2081
|
installation: {
|
|
2080
2082
|
getInstallation(account?: string | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubInstallation | undefined>;
|
|
2081
2083
|
getInstallations(authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubInstallation[]>;
|
|
2082
|
-
getInstallationRepositories(installationId: string): Promise<GitHubRepository[]>;
|
|
2084
|
+
getInstallationRepositories(installationId: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepository[]>;
|
|
2083
2085
|
};
|
|
2084
2086
|
repository: {
|
|
2085
2087
|
getRepository(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepository>;
|
package/dist/index.d.ts
CHANGED
|
@@ -93,6 +93,7 @@ declare function getGitHubClientAuthorization(req: {
|
|
|
93
93
|
}): GithubClientInstanceAuthorization;
|
|
94
94
|
interface GithubClientRequestOptions {
|
|
95
95
|
token?: string;
|
|
96
|
+
ensureAuthorizationToken?: boolean;
|
|
96
97
|
}
|
|
97
98
|
declare function getGithubClientRequestConfig(options?: GithubClientRequestOptions | undefined): AxiosRequestConfig;
|
|
98
99
|
declare function initGithubClientInstance(token?: string): void;
|
|
@@ -163,6 +164,7 @@ interface NetlifyClientInstanceAuthorization {
|
|
|
163
164
|
}
|
|
164
165
|
interface NetlifyClientInstanceOptions {
|
|
165
166
|
token?: string;
|
|
167
|
+
ensureAuthorizationToken?: boolean;
|
|
166
168
|
}
|
|
167
169
|
declare const netlifyClientInstance: axios.AxiosInstance;
|
|
168
170
|
declare function getNetlifyClientAuthorization(req: {
|
|
@@ -374,6 +376,7 @@ interface SentryClientInstanceAuthorization {
|
|
|
374
376
|
}
|
|
375
377
|
interface SentryClientInstanceOptions {
|
|
376
378
|
token?: string;
|
|
379
|
+
ensureAuthorizationToken?: boolean;
|
|
377
380
|
}
|
|
378
381
|
declare const sentryClientInstance: axios.AxiosInstance;
|
|
379
382
|
declare function getSentryClientAuthorization(req: {
|
|
@@ -468,6 +471,7 @@ interface VercelClientInstanceAuthorization {
|
|
|
468
471
|
}
|
|
469
472
|
interface VercelClientInstanceOptions {
|
|
470
473
|
token?: string;
|
|
474
|
+
ensureAuthorizationToken?: boolean;
|
|
471
475
|
}
|
|
472
476
|
declare const vercelClientInstance: axios.AxiosInstance;
|
|
473
477
|
declare function getVercelClientAuthorization(req: {
|
|
@@ -661,8 +665,6 @@ type LinkAppDeploymentData = ({
|
|
|
661
665
|
type LinkAppDeploymentPayload = {
|
|
662
666
|
appId: string;
|
|
663
667
|
appName: string;
|
|
664
|
-
repositoryName: string;
|
|
665
|
-
repositoryBranch: string;
|
|
666
668
|
} & LinkAppDeploymentData;
|
|
667
669
|
type LinkAppDeploymentResult = {
|
|
668
670
|
needToBeInstalled: boolean;
|
|
@@ -2079,7 +2081,7 @@ declare const api: {
|
|
|
2079
2081
|
installation: {
|
|
2080
2082
|
getInstallation(account?: string | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubInstallation | undefined>;
|
|
2081
2083
|
getInstallations(authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubInstallation[]>;
|
|
2082
|
-
getInstallationRepositories(installationId: string): Promise<GitHubRepository[]>;
|
|
2084
|
+
getInstallationRepositories(installationId: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepository[]>;
|
|
2083
2085
|
};
|
|
2084
2086
|
repository: {
|
|
2085
2087
|
getRepository(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepository>;
|