@livechat/developer-studio-api 2.3.45 → 2.3.47
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 +10 -1
- package/dist/index.d.ts +10 -1
- package/dist/index.js +39 -11
- package/dist/index.mjs +39 -11
- package/package.json +3 -3
package/dist/index.d.mts
CHANGED
|
@@ -1090,6 +1090,8 @@ interface AppPlanetScaleStorage {
|
|
|
1090
1090
|
interface AppVercelStorage {
|
|
1091
1091
|
}
|
|
1092
1092
|
interface AppNeonStorage {
|
|
1093
|
+
projectName: string;
|
|
1094
|
+
projectId: string;
|
|
1093
1095
|
}
|
|
1094
1096
|
type AppStorage = ({
|
|
1095
1097
|
provider: "planetscale";
|
|
@@ -1313,6 +1315,8 @@ interface PlatformAdapterClientInstanceAuthorization {
|
|
|
1313
1315
|
vercel?: string;
|
|
1314
1316
|
planetscale?: string;
|
|
1315
1317
|
sentry?: string;
|
|
1318
|
+
neon?: string;
|
|
1319
|
+
openai?: string;
|
|
1316
1320
|
}
|
|
1317
1321
|
type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthorization & {
|
|
1318
1322
|
ensureAuthorizationToken?: {
|
|
@@ -1324,6 +1328,8 @@ type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthori
|
|
|
1324
1328
|
vercel?: boolean;
|
|
1325
1329
|
planetscale?: boolean;
|
|
1326
1330
|
sentry?: boolean;
|
|
1331
|
+
neon?: boolean;
|
|
1332
|
+
openai?: boolean;
|
|
1327
1333
|
};
|
|
1328
1334
|
};
|
|
1329
1335
|
declare function getPlatformAdapterClientAuthorization(req: {
|
|
@@ -1344,6 +1350,7 @@ declare function initPlatformAdapterClientInstance(baseUrl?: string, tokens?: {
|
|
|
1344
1350
|
planetscale?: string;
|
|
1345
1351
|
neon?: string;
|
|
1346
1352
|
sentry?: string;
|
|
1353
|
+
openai?: string;
|
|
1347
1354
|
}): void;
|
|
1348
1355
|
declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
1349
1356
|
platform?: {
|
|
@@ -1358,6 +1365,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
|
1358
1365
|
planetscale?: string;
|
|
1359
1366
|
neon?: string;
|
|
1360
1367
|
sentry?: string;
|
|
1368
|
+
openai?: string;
|
|
1361
1369
|
}): void;
|
|
1362
1370
|
|
|
1363
1371
|
interface ApplicationPaymentDto {
|
|
@@ -2299,6 +2307,7 @@ declare const api: {
|
|
|
2299
2307
|
chatBoosters: {
|
|
2300
2308
|
createChatBooster(appId: string, chatBoosterId: string, payload: UpsertApplicationChatBoosterPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined>>;
|
|
2301
2309
|
updateChatBooster(appId: string, chatBoosterId: string, payload: UpsertApplicationChatBoosterPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined>>;
|
|
2310
|
+
deleteChatBooster(appId: string, chatBoosterId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined>>;
|
|
2302
2311
|
};
|
|
2303
2312
|
customProps: {
|
|
2304
2313
|
createCustomProps(appId: string, property: ApplicationPropertyDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<undefined>;
|
|
@@ -2750,7 +2759,7 @@ declare const API_NOTIFICATIONS: {
|
|
|
2750
2759
|
};
|
|
2751
2760
|
};
|
|
2752
2761
|
|
|
2753
|
-
type UnauthorizeApiErrorSource = "dps" | "github" | "vercel" | "netlify" | "sentry" | "neon" | "
|
|
2762
|
+
type UnauthorizeApiErrorSource = "dps" | "github" | "vercel" | "netlify" | "sentry" | "planetscale" | "neon" | "openai";
|
|
2754
2763
|
interface ApiError {
|
|
2755
2764
|
message: string;
|
|
2756
2765
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1090,6 +1090,8 @@ interface AppPlanetScaleStorage {
|
|
|
1090
1090
|
interface AppVercelStorage {
|
|
1091
1091
|
}
|
|
1092
1092
|
interface AppNeonStorage {
|
|
1093
|
+
projectName: string;
|
|
1094
|
+
projectId: string;
|
|
1093
1095
|
}
|
|
1094
1096
|
type AppStorage = ({
|
|
1095
1097
|
provider: "planetscale";
|
|
@@ -1313,6 +1315,8 @@ interface PlatformAdapterClientInstanceAuthorization {
|
|
|
1313
1315
|
vercel?: string;
|
|
1314
1316
|
planetscale?: string;
|
|
1315
1317
|
sentry?: string;
|
|
1318
|
+
neon?: string;
|
|
1319
|
+
openai?: string;
|
|
1316
1320
|
}
|
|
1317
1321
|
type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthorization & {
|
|
1318
1322
|
ensureAuthorizationToken?: {
|
|
@@ -1324,6 +1328,8 @@ type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthori
|
|
|
1324
1328
|
vercel?: boolean;
|
|
1325
1329
|
planetscale?: boolean;
|
|
1326
1330
|
sentry?: boolean;
|
|
1331
|
+
neon?: boolean;
|
|
1332
|
+
openai?: boolean;
|
|
1327
1333
|
};
|
|
1328
1334
|
};
|
|
1329
1335
|
declare function getPlatformAdapterClientAuthorization(req: {
|
|
@@ -1344,6 +1350,7 @@ declare function initPlatformAdapterClientInstance(baseUrl?: string, tokens?: {
|
|
|
1344
1350
|
planetscale?: string;
|
|
1345
1351
|
neon?: string;
|
|
1346
1352
|
sentry?: string;
|
|
1353
|
+
openai?: string;
|
|
1347
1354
|
}): void;
|
|
1348
1355
|
declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
1349
1356
|
platform?: {
|
|
@@ -1358,6 +1365,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
|
1358
1365
|
planetscale?: string;
|
|
1359
1366
|
neon?: string;
|
|
1360
1367
|
sentry?: string;
|
|
1368
|
+
openai?: string;
|
|
1361
1369
|
}): void;
|
|
1362
1370
|
|
|
1363
1371
|
interface ApplicationPaymentDto {
|
|
@@ -2299,6 +2307,7 @@ declare const api: {
|
|
|
2299
2307
|
chatBoosters: {
|
|
2300
2308
|
createChatBooster(appId: string, chatBoosterId: string, payload: UpsertApplicationChatBoosterPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined>>;
|
|
2301
2309
|
updateChatBooster(appId: string, chatBoosterId: string, payload: UpsertApplicationChatBoosterPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined>>;
|
|
2310
|
+
deleteChatBooster(appId: string, chatBoosterId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined>>;
|
|
2302
2311
|
};
|
|
2303
2312
|
customProps: {
|
|
2304
2313
|
createCustomProps(appId: string, property: ApplicationPropertyDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<undefined>;
|
|
@@ -2750,7 +2759,7 @@ declare const API_NOTIFICATIONS: {
|
|
|
2750
2759
|
};
|
|
2751
2760
|
};
|
|
2752
2761
|
|
|
2753
|
-
type UnauthorizeApiErrorSource = "dps" | "github" | "vercel" | "netlify" | "sentry" | "neon" | "
|
|
2762
|
+
type UnauthorizeApiErrorSource = "dps" | "github" | "vercel" | "netlify" | "sentry" | "planetscale" | "neon" | "openai";
|
|
2754
2763
|
interface ApiError {
|
|
2755
2764
|
message: string;
|
|
2756
2765
|
}
|
package/dist/index.js
CHANGED
|
@@ -3862,6 +3862,21 @@ var platformDpsApplicationChatBoostersApi = {
|
|
|
3862
3862
|
throw error;
|
|
3863
3863
|
}
|
|
3864
3864
|
});
|
|
3865
|
+
},
|
|
3866
|
+
deleteChatBooster(appId, chatBoosterId, authorization) {
|
|
3867
|
+
return __async(this, null, function* () {
|
|
3868
|
+
try {
|
|
3869
|
+
return yield platformDpsClientInstance.delete(
|
|
3870
|
+
`/v2/applications/${appId}/chat-boosters/${chatBoosterId}`,
|
|
3871
|
+
getPlatformDpsClientConfig(authorization)
|
|
3872
|
+
);
|
|
3873
|
+
} catch (error) {
|
|
3874
|
+
if (error instanceof Error) {
|
|
3875
|
+
throw new Error(`Chat Booster couldn't be deleted. [${error.message}]`);
|
|
3876
|
+
}
|
|
3877
|
+
throw error;
|
|
3878
|
+
}
|
|
3879
|
+
});
|
|
3865
3880
|
}
|
|
3866
3881
|
};
|
|
3867
3882
|
|
|
@@ -5171,7 +5186,9 @@ function getPlatformAdapterClientAuthorization(req) {
|
|
|
5171
5186
|
netlify: req.headers["netlify-token"],
|
|
5172
5187
|
vercel: req.headers["vercel-token"],
|
|
5173
5188
|
planetscale: req.headers["planetscale-token"],
|
|
5174
|
-
|
|
5189
|
+
neon: req.headers["neon-token"],
|
|
5190
|
+
sentry: req.headers["sentry-token"],
|
|
5191
|
+
openai: req.headers["openai-token"]
|
|
5175
5192
|
};
|
|
5176
5193
|
}
|
|
5177
5194
|
var platformAdapterClientInstance = import_axios15.default.create({
|
|
@@ -5196,7 +5213,7 @@ platformAdapterClientInstance.interceptors.response.use(
|
|
|
5196
5213
|
}
|
|
5197
5214
|
);
|
|
5198
5215
|
function getPlatformAdapterClientConfig(options = {}) {
|
|
5199
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
5216
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
5200
5217
|
const currentHeaders = platformAdapterClientInstance.defaults.headers;
|
|
5201
5218
|
const headers = {
|
|
5202
5219
|
platform: {
|
|
@@ -5210,32 +5227,40 @@ function getPlatformAdapterClientConfig(options = {}) {
|
|
|
5210
5227
|
netlify: (_g = currentHeaders["netlify-token"]) != null ? _g : options.netlify,
|
|
5211
5228
|
vercel: (_h = currentHeaders["vercel-token"]) != null ? _h : options.vercel,
|
|
5212
5229
|
planetscale: (_i = currentHeaders["planetscale-token"]) != null ? _i : options.planetscale,
|
|
5213
|
-
|
|
5230
|
+
neon: (_j = currentHeaders["neon-token"]) != null ? _j : options.neon,
|
|
5231
|
+
sentry: (_k = currentHeaders["sentry-token"]) != null ? _k : options.sentry,
|
|
5232
|
+
openai: (_l = currentHeaders["openai-token"]) != null ? _l : options.openai
|
|
5214
5233
|
}
|
|
5215
5234
|
};
|
|
5216
5235
|
if (currentHeaders["platform-dps-token"]) {
|
|
5217
|
-
currentHeaders["X-Region"] = (
|
|
5236
|
+
currentHeaders["X-Region"] = (_m = getRegion2(currentHeaders["platform-dps-token"])) != null ? _m : void 0;
|
|
5218
5237
|
}
|
|
5219
|
-
if (((
|
|
5238
|
+
if (((_o = (_n = options.ensureAuthorizationToken) == null ? void 0 : _n.platform) == null ? void 0 : _o.dps) && !headers.platform.dps) {
|
|
5220
5239
|
throw new UnauthorizeApiError("dps");
|
|
5221
5240
|
}
|
|
5222
|
-
if (((
|
|
5241
|
+
if (((_p = options.ensureAuthorizationToken) == null ? void 0 : _p.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
|
|
5223
5242
|
throw new UnauthorizeApiError("github");
|
|
5224
5243
|
}
|
|
5225
|
-
if (((
|
|
5244
|
+
if (((_q = options.ensureAuthorizationToken) == null ? void 0 : _q.vercel) && !headers.integrations.vercel) {
|
|
5226
5245
|
throw new UnauthorizeApiError("vercel");
|
|
5227
5246
|
}
|
|
5228
|
-
if (((
|
|
5247
|
+
if (((_r = options.ensureAuthorizationToken) == null ? void 0 : _r.netlify) && !headers.integrations.netlify) {
|
|
5229
5248
|
throw new UnauthorizeApiError("netlify");
|
|
5230
5249
|
}
|
|
5231
|
-
if (((
|
|
5250
|
+
if (((_s = options.ensureAuthorizationToken) == null ? void 0 : _s.planetscale) && !headers.integrations.planetscale) {
|
|
5232
5251
|
throw new UnauthorizeApiError("planetscale");
|
|
5233
5252
|
}
|
|
5234
|
-
if (((
|
|
5253
|
+
if (((_t = options.ensureAuthorizationToken) == null ? void 0 : _t.neon) && !headers.integrations.neon) {
|
|
5254
|
+
throw new UnauthorizeApiError("neon");
|
|
5255
|
+
}
|
|
5256
|
+
if (((_u = options.ensureAuthorizationToken) == null ? void 0 : _u.sentry) && !headers.integrations.sentry) {
|
|
5235
5257
|
throw new UnauthorizeApiError("sentry");
|
|
5236
5258
|
}
|
|
5259
|
+
if (((_v = options.ensureAuthorizationToken) == null ? void 0 : _v.openai) && !headers.integrations.openai) {
|
|
5260
|
+
throw new UnauthorizeApiError("openai");
|
|
5261
|
+
}
|
|
5237
5262
|
return {
|
|
5238
|
-
headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.sentry ? { "sentry-token": headers.integrations.sentry } : {})
|
|
5263
|
+
headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.sentry ? { "sentry-token": headers.integrations.sentry } : {}), headers.integrations.openai ? { "openai-token": headers.integrations.openai } : {})
|
|
5239
5264
|
};
|
|
5240
5265
|
}
|
|
5241
5266
|
function initPlatformAdapterClientInstance(baseUrl, tokens) {
|
|
@@ -5279,6 +5304,9 @@ function updatePlatformAdapterClientInstance(tokens) {
|
|
|
5279
5304
|
if (tokens == null ? void 0 : tokens.sentry) {
|
|
5280
5305
|
headers["sentry-token"] = tokens.sentry;
|
|
5281
5306
|
}
|
|
5307
|
+
if (tokens == null ? void 0 : tokens.openai) {
|
|
5308
|
+
headers["openai-token"] = tokens.openai;
|
|
5309
|
+
}
|
|
5282
5310
|
}
|
|
5283
5311
|
|
|
5284
5312
|
// src/apis/platform/adapter/app/blocks/deployment/api.ts
|
package/dist/index.mjs
CHANGED
|
@@ -3766,6 +3766,21 @@ var platformDpsApplicationChatBoostersApi = {
|
|
|
3766
3766
|
throw error;
|
|
3767
3767
|
}
|
|
3768
3768
|
});
|
|
3769
|
+
},
|
|
3770
|
+
deleteChatBooster(appId, chatBoosterId, authorization) {
|
|
3771
|
+
return __async(this, null, function* () {
|
|
3772
|
+
try {
|
|
3773
|
+
return yield platformDpsClientInstance.delete(
|
|
3774
|
+
`/v2/applications/${appId}/chat-boosters/${chatBoosterId}`,
|
|
3775
|
+
getPlatformDpsClientConfig(authorization)
|
|
3776
|
+
);
|
|
3777
|
+
} catch (error) {
|
|
3778
|
+
if (error instanceof Error) {
|
|
3779
|
+
throw new Error(`Chat Booster couldn't be deleted. [${error.message}]`);
|
|
3780
|
+
}
|
|
3781
|
+
throw error;
|
|
3782
|
+
}
|
|
3783
|
+
});
|
|
3769
3784
|
}
|
|
3770
3785
|
};
|
|
3771
3786
|
|
|
@@ -5075,7 +5090,9 @@ function getPlatformAdapterClientAuthorization(req) {
|
|
|
5075
5090
|
netlify: req.headers["netlify-token"],
|
|
5076
5091
|
vercel: req.headers["vercel-token"],
|
|
5077
5092
|
planetscale: req.headers["planetscale-token"],
|
|
5078
|
-
|
|
5093
|
+
neon: req.headers["neon-token"],
|
|
5094
|
+
sentry: req.headers["sentry-token"],
|
|
5095
|
+
openai: req.headers["openai-token"]
|
|
5079
5096
|
};
|
|
5080
5097
|
}
|
|
5081
5098
|
var platformAdapterClientInstance = axios15.create({
|
|
@@ -5100,7 +5117,7 @@ platformAdapterClientInstance.interceptors.response.use(
|
|
|
5100
5117
|
}
|
|
5101
5118
|
);
|
|
5102
5119
|
function getPlatformAdapterClientConfig(options = {}) {
|
|
5103
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r;
|
|
5120
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
5104
5121
|
const currentHeaders = platformAdapterClientInstance.defaults.headers;
|
|
5105
5122
|
const headers = {
|
|
5106
5123
|
platform: {
|
|
@@ -5114,32 +5131,40 @@ function getPlatformAdapterClientConfig(options = {}) {
|
|
|
5114
5131
|
netlify: (_g = currentHeaders["netlify-token"]) != null ? _g : options.netlify,
|
|
5115
5132
|
vercel: (_h = currentHeaders["vercel-token"]) != null ? _h : options.vercel,
|
|
5116
5133
|
planetscale: (_i = currentHeaders["planetscale-token"]) != null ? _i : options.planetscale,
|
|
5117
|
-
|
|
5134
|
+
neon: (_j = currentHeaders["neon-token"]) != null ? _j : options.neon,
|
|
5135
|
+
sentry: (_k = currentHeaders["sentry-token"]) != null ? _k : options.sentry,
|
|
5136
|
+
openai: (_l = currentHeaders["openai-token"]) != null ? _l : options.openai
|
|
5118
5137
|
}
|
|
5119
5138
|
};
|
|
5120
5139
|
if (currentHeaders["platform-dps-token"]) {
|
|
5121
|
-
currentHeaders["X-Region"] = (
|
|
5140
|
+
currentHeaders["X-Region"] = (_m = getRegion2(currentHeaders["platform-dps-token"])) != null ? _m : void 0;
|
|
5122
5141
|
}
|
|
5123
|
-
if (((
|
|
5142
|
+
if (((_o = (_n = options.ensureAuthorizationToken) == null ? void 0 : _n.platform) == null ? void 0 : _o.dps) && !headers.platform.dps) {
|
|
5124
5143
|
throw new UnauthorizeApiError("dps");
|
|
5125
5144
|
}
|
|
5126
|
-
if (((
|
|
5145
|
+
if (((_p = options.ensureAuthorizationToken) == null ? void 0 : _p.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
|
|
5127
5146
|
throw new UnauthorizeApiError("github");
|
|
5128
5147
|
}
|
|
5129
|
-
if (((
|
|
5148
|
+
if (((_q = options.ensureAuthorizationToken) == null ? void 0 : _q.vercel) && !headers.integrations.vercel) {
|
|
5130
5149
|
throw new UnauthorizeApiError("vercel");
|
|
5131
5150
|
}
|
|
5132
|
-
if (((
|
|
5151
|
+
if (((_r = options.ensureAuthorizationToken) == null ? void 0 : _r.netlify) && !headers.integrations.netlify) {
|
|
5133
5152
|
throw new UnauthorizeApiError("netlify");
|
|
5134
5153
|
}
|
|
5135
|
-
if (((
|
|
5154
|
+
if (((_s = options.ensureAuthorizationToken) == null ? void 0 : _s.planetscale) && !headers.integrations.planetscale) {
|
|
5136
5155
|
throw new UnauthorizeApiError("planetscale");
|
|
5137
5156
|
}
|
|
5138
|
-
if (((
|
|
5157
|
+
if (((_t = options.ensureAuthorizationToken) == null ? void 0 : _t.neon) && !headers.integrations.neon) {
|
|
5158
|
+
throw new UnauthorizeApiError("neon");
|
|
5159
|
+
}
|
|
5160
|
+
if (((_u = options.ensureAuthorizationToken) == null ? void 0 : _u.sentry) && !headers.integrations.sentry) {
|
|
5139
5161
|
throw new UnauthorizeApiError("sentry");
|
|
5140
5162
|
}
|
|
5163
|
+
if (((_v = options.ensureAuthorizationToken) == null ? void 0 : _v.openai) && !headers.integrations.openai) {
|
|
5164
|
+
throw new UnauthorizeApiError("openai");
|
|
5165
|
+
}
|
|
5141
5166
|
return {
|
|
5142
|
-
headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.sentry ? { "sentry-token": headers.integrations.sentry } : {})
|
|
5167
|
+
headers: __spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({}, headers.platform.dps ? { "platform-dps-token": headers.platform.dps } : {}), headers.integrations.github.app ? { "github-app-token": headers.integrations.github.app } : {}), headers.integrations.github.oauth ? { "github-oauth-token": headers.integrations.github.oauth } : {}), headers.integrations.netlify ? { "netlify-token": headers.integrations.netlify } : {}), headers.integrations.vercel ? { "vercel-token": headers.integrations.vercel } : {}), headers.integrations.planetscale ? { "planetscale-token": headers.integrations.planetscale } : {}), headers.integrations.sentry ? { "sentry-token": headers.integrations.sentry } : {}), headers.integrations.openai ? { "openai-token": headers.integrations.openai } : {})
|
|
5143
5168
|
};
|
|
5144
5169
|
}
|
|
5145
5170
|
function initPlatformAdapterClientInstance(baseUrl, tokens) {
|
|
@@ -5183,6 +5208,9 @@ function updatePlatformAdapterClientInstance(tokens) {
|
|
|
5183
5208
|
if (tokens == null ? void 0 : tokens.sentry) {
|
|
5184
5209
|
headers["sentry-token"] = tokens.sentry;
|
|
5185
5210
|
}
|
|
5211
|
+
if (tokens == null ? void 0 : tokens.openai) {
|
|
5212
|
+
headers["openai-token"] = tokens.openai;
|
|
5213
|
+
}
|
|
5186
5214
|
}
|
|
5187
5215
|
|
|
5188
5216
|
// src/apis/platform/adapter/app/blocks/deployment/api.ts
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@livechat/developer-studio-api",
|
|
3
|
-
"version": "2.3.
|
|
3
|
+
"version": "2.3.47",
|
|
4
4
|
"description": "This project is API for LiveChat Developer Studio.",
|
|
5
5
|
"main": "./dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -17,9 +17,9 @@
|
|
|
17
17
|
"@types/node": "^17.0.12",
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
|
+
"eslint-config-custom": "0.0.2",
|
|
20
21
|
"config": "0.0.1",
|
|
21
|
-
"tsconfig": "0.0.1"
|
|
22
|
-
"eslint-config-custom": "0.0.2"
|
|
22
|
+
"tsconfig": "0.0.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|
|
25
25
|
"build": "tsup src/index.ts --format esm,cjs --dts",
|