@livechat/developer-studio-api 2.3.46 → 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 +6 -1
- package/dist/index.d.ts +6 -1
- package/dist/index.js +35 -12
- package/dist/index.mjs +35 -12
- package/package.json +2 -2
package/dist/index.d.mts
CHANGED
|
@@ -1316,6 +1316,7 @@ interface PlatformAdapterClientInstanceAuthorization {
|
|
|
1316
1316
|
planetscale?: string;
|
|
1317
1317
|
sentry?: string;
|
|
1318
1318
|
neon?: string;
|
|
1319
|
+
openai?: string;
|
|
1319
1320
|
}
|
|
1320
1321
|
type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthorization & {
|
|
1321
1322
|
ensureAuthorizationToken?: {
|
|
@@ -1328,6 +1329,7 @@ type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthori
|
|
|
1328
1329
|
planetscale?: boolean;
|
|
1329
1330
|
sentry?: boolean;
|
|
1330
1331
|
neon?: boolean;
|
|
1332
|
+
openai?: boolean;
|
|
1331
1333
|
};
|
|
1332
1334
|
};
|
|
1333
1335
|
declare function getPlatformAdapterClientAuthorization(req: {
|
|
@@ -1348,6 +1350,7 @@ declare function initPlatformAdapterClientInstance(baseUrl?: string, tokens?: {
|
|
|
1348
1350
|
planetscale?: string;
|
|
1349
1351
|
neon?: string;
|
|
1350
1352
|
sentry?: string;
|
|
1353
|
+
openai?: string;
|
|
1351
1354
|
}): void;
|
|
1352
1355
|
declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
1353
1356
|
platform?: {
|
|
@@ -1362,6 +1365,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
|
1362
1365
|
planetscale?: string;
|
|
1363
1366
|
neon?: string;
|
|
1364
1367
|
sentry?: string;
|
|
1368
|
+
openai?: string;
|
|
1365
1369
|
}): void;
|
|
1366
1370
|
|
|
1367
1371
|
interface ApplicationPaymentDto {
|
|
@@ -2303,6 +2307,7 @@ declare const api: {
|
|
|
2303
2307
|
chatBoosters: {
|
|
2304
2308
|
createChatBooster(appId: string, chatBoosterId: string, payload: UpsertApplicationChatBoosterPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined>>;
|
|
2305
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>>;
|
|
2306
2311
|
};
|
|
2307
2312
|
customProps: {
|
|
2308
2313
|
createCustomProps(appId: string, property: ApplicationPropertyDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<undefined>;
|
|
@@ -2754,7 +2759,7 @@ declare const API_NOTIFICATIONS: {
|
|
|
2754
2759
|
};
|
|
2755
2760
|
};
|
|
2756
2761
|
|
|
2757
|
-
type UnauthorizeApiErrorSource = "dps" | "github" | "vercel" | "netlify" | "sentry" | "neon" | "
|
|
2762
|
+
type UnauthorizeApiErrorSource = "dps" | "github" | "vercel" | "netlify" | "sentry" | "planetscale" | "neon" | "openai";
|
|
2758
2763
|
interface ApiError {
|
|
2759
2764
|
message: string;
|
|
2760
2765
|
}
|
package/dist/index.d.ts
CHANGED
|
@@ -1316,6 +1316,7 @@ interface PlatformAdapterClientInstanceAuthorization {
|
|
|
1316
1316
|
planetscale?: string;
|
|
1317
1317
|
sentry?: string;
|
|
1318
1318
|
neon?: string;
|
|
1319
|
+
openai?: string;
|
|
1319
1320
|
}
|
|
1320
1321
|
type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthorization & {
|
|
1321
1322
|
ensureAuthorizationToken?: {
|
|
@@ -1328,6 +1329,7 @@ type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthori
|
|
|
1328
1329
|
planetscale?: boolean;
|
|
1329
1330
|
sentry?: boolean;
|
|
1330
1331
|
neon?: boolean;
|
|
1332
|
+
openai?: boolean;
|
|
1331
1333
|
};
|
|
1332
1334
|
};
|
|
1333
1335
|
declare function getPlatformAdapterClientAuthorization(req: {
|
|
@@ -1348,6 +1350,7 @@ declare function initPlatformAdapterClientInstance(baseUrl?: string, tokens?: {
|
|
|
1348
1350
|
planetscale?: string;
|
|
1349
1351
|
neon?: string;
|
|
1350
1352
|
sentry?: string;
|
|
1353
|
+
openai?: string;
|
|
1351
1354
|
}): void;
|
|
1352
1355
|
declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
1353
1356
|
platform?: {
|
|
@@ -1362,6 +1365,7 @@ declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
|
1362
1365
|
planetscale?: string;
|
|
1363
1366
|
neon?: string;
|
|
1364
1367
|
sentry?: string;
|
|
1368
|
+
openai?: string;
|
|
1365
1369
|
}): void;
|
|
1366
1370
|
|
|
1367
1371
|
interface ApplicationPaymentDto {
|
|
@@ -2303,6 +2307,7 @@ declare const api: {
|
|
|
2303
2307
|
chatBoosters: {
|
|
2304
2308
|
createChatBooster(appId: string, chatBoosterId: string, payload: UpsertApplicationChatBoosterPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined>>;
|
|
2305
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>>;
|
|
2306
2311
|
};
|
|
2307
2312
|
customProps: {
|
|
2308
2313
|
createCustomProps(appId: string, property: ApplicationPropertyDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<undefined>;
|
|
@@ -2754,7 +2759,7 @@ declare const API_NOTIFICATIONS: {
|
|
|
2754
2759
|
};
|
|
2755
2760
|
};
|
|
2756
2761
|
|
|
2757
|
-
type UnauthorizeApiErrorSource = "dps" | "github" | "vercel" | "netlify" | "sentry" | "neon" | "
|
|
2762
|
+
type UnauthorizeApiErrorSource = "dps" | "github" | "vercel" | "netlify" | "sentry" | "planetscale" | "neon" | "openai";
|
|
2758
2763
|
interface ApiError {
|
|
2759
2764
|
message: string;
|
|
2760
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
|
|
|
@@ -5172,7 +5187,8 @@ function getPlatformAdapterClientAuthorization(req) {
|
|
|
5172
5187
|
vercel: req.headers["vercel-token"],
|
|
5173
5188
|
planetscale: req.headers["planetscale-token"],
|
|
5174
5189
|
neon: req.headers["neon-token"],
|
|
5175
|
-
sentry: req.headers["sentry-token"]
|
|
5190
|
+
sentry: req.headers["sentry-token"],
|
|
5191
|
+
openai: req.headers["openai-token"]
|
|
5176
5192
|
};
|
|
5177
5193
|
}
|
|
5178
5194
|
var platformAdapterClientInstance = import_axios15.default.create({
|
|
@@ -5197,7 +5213,7 @@ platformAdapterClientInstance.interceptors.response.use(
|
|
|
5197
5213
|
}
|
|
5198
5214
|
);
|
|
5199
5215
|
function getPlatformAdapterClientConfig(options = {}) {
|
|
5200
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
5216
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
5201
5217
|
const currentHeaders = platformAdapterClientInstance.defaults.headers;
|
|
5202
5218
|
const headers = {
|
|
5203
5219
|
platform: {
|
|
@@ -5212,35 +5228,39 @@ function getPlatformAdapterClientConfig(options = {}) {
|
|
|
5212
5228
|
vercel: (_h = currentHeaders["vercel-token"]) != null ? _h : options.vercel,
|
|
5213
5229
|
planetscale: (_i = currentHeaders["planetscale-token"]) != null ? _i : options.planetscale,
|
|
5214
5230
|
neon: (_j = currentHeaders["neon-token"]) != null ? _j : options.neon,
|
|
5215
|
-
sentry: (_k = currentHeaders["sentry-token"]) != null ? _k : options.sentry
|
|
5231
|
+
sentry: (_k = currentHeaders["sentry-token"]) != null ? _k : options.sentry,
|
|
5232
|
+
openai: (_l = currentHeaders["openai-token"]) != null ? _l : options.openai
|
|
5216
5233
|
}
|
|
5217
5234
|
};
|
|
5218
5235
|
if (currentHeaders["platform-dps-token"]) {
|
|
5219
|
-
currentHeaders["X-Region"] = (
|
|
5236
|
+
currentHeaders["X-Region"] = (_m = getRegion2(currentHeaders["platform-dps-token"])) != null ? _m : void 0;
|
|
5220
5237
|
}
|
|
5221
|
-
if (((
|
|
5238
|
+
if (((_o = (_n = options.ensureAuthorizationToken) == null ? void 0 : _n.platform) == null ? void 0 : _o.dps) && !headers.platform.dps) {
|
|
5222
5239
|
throw new UnauthorizeApiError("dps");
|
|
5223
5240
|
}
|
|
5224
|
-
if (((
|
|
5241
|
+
if (((_p = options.ensureAuthorizationToken) == null ? void 0 : _p.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
|
|
5225
5242
|
throw new UnauthorizeApiError("github");
|
|
5226
5243
|
}
|
|
5227
|
-
if (((
|
|
5244
|
+
if (((_q = options.ensureAuthorizationToken) == null ? void 0 : _q.vercel) && !headers.integrations.vercel) {
|
|
5228
5245
|
throw new UnauthorizeApiError("vercel");
|
|
5229
5246
|
}
|
|
5230
|
-
if (((
|
|
5247
|
+
if (((_r = options.ensureAuthorizationToken) == null ? void 0 : _r.netlify) && !headers.integrations.netlify) {
|
|
5231
5248
|
throw new UnauthorizeApiError("netlify");
|
|
5232
5249
|
}
|
|
5233
|
-
if (((
|
|
5250
|
+
if (((_s = options.ensureAuthorizationToken) == null ? void 0 : _s.planetscale) && !headers.integrations.planetscale) {
|
|
5234
5251
|
throw new UnauthorizeApiError("planetscale");
|
|
5235
5252
|
}
|
|
5236
|
-
if (((
|
|
5253
|
+
if (((_t = options.ensureAuthorizationToken) == null ? void 0 : _t.neon) && !headers.integrations.neon) {
|
|
5237
5254
|
throw new UnauthorizeApiError("neon");
|
|
5238
5255
|
}
|
|
5239
|
-
if (((
|
|
5256
|
+
if (((_u = options.ensureAuthorizationToken) == null ? void 0 : _u.sentry) && !headers.integrations.sentry) {
|
|
5240
5257
|
throw new UnauthorizeApiError("sentry");
|
|
5241
5258
|
}
|
|
5259
|
+
if (((_v = options.ensureAuthorizationToken) == null ? void 0 : _v.openai) && !headers.integrations.openai) {
|
|
5260
|
+
throw new UnauthorizeApiError("openai");
|
|
5261
|
+
}
|
|
5242
5262
|
return {
|
|
5243
|
-
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 } : {})
|
|
5244
5264
|
};
|
|
5245
5265
|
}
|
|
5246
5266
|
function initPlatformAdapterClientInstance(baseUrl, tokens) {
|
|
@@ -5284,6 +5304,9 @@ function updatePlatformAdapterClientInstance(tokens) {
|
|
|
5284
5304
|
if (tokens == null ? void 0 : tokens.sentry) {
|
|
5285
5305
|
headers["sentry-token"] = tokens.sentry;
|
|
5286
5306
|
}
|
|
5307
|
+
if (tokens == null ? void 0 : tokens.openai) {
|
|
5308
|
+
headers["openai-token"] = tokens.openai;
|
|
5309
|
+
}
|
|
5287
5310
|
}
|
|
5288
5311
|
|
|
5289
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
|
|
|
@@ -5076,7 +5091,8 @@ function getPlatformAdapterClientAuthorization(req) {
|
|
|
5076
5091
|
vercel: req.headers["vercel-token"],
|
|
5077
5092
|
planetscale: req.headers["planetscale-token"],
|
|
5078
5093
|
neon: req.headers["neon-token"],
|
|
5079
|
-
sentry: req.headers["sentry-token"]
|
|
5094
|
+
sentry: req.headers["sentry-token"],
|
|
5095
|
+
openai: req.headers["openai-token"]
|
|
5080
5096
|
};
|
|
5081
5097
|
}
|
|
5082
5098
|
var platformAdapterClientInstance = axios15.create({
|
|
@@ -5101,7 +5117,7 @@ platformAdapterClientInstance.interceptors.response.use(
|
|
|
5101
5117
|
}
|
|
5102
5118
|
);
|
|
5103
5119
|
function getPlatformAdapterClientConfig(options = {}) {
|
|
5104
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t;
|
|
5120
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _i, _j, _k, _l, _m, _n, _o, _p, _q, _r, _s, _t, _u, _v;
|
|
5105
5121
|
const currentHeaders = platformAdapterClientInstance.defaults.headers;
|
|
5106
5122
|
const headers = {
|
|
5107
5123
|
platform: {
|
|
@@ -5116,35 +5132,39 @@ function getPlatformAdapterClientConfig(options = {}) {
|
|
|
5116
5132
|
vercel: (_h = currentHeaders["vercel-token"]) != null ? _h : options.vercel,
|
|
5117
5133
|
planetscale: (_i = currentHeaders["planetscale-token"]) != null ? _i : options.planetscale,
|
|
5118
5134
|
neon: (_j = currentHeaders["neon-token"]) != null ? _j : options.neon,
|
|
5119
|
-
sentry: (_k = currentHeaders["sentry-token"]) != null ? _k : options.sentry
|
|
5135
|
+
sentry: (_k = currentHeaders["sentry-token"]) != null ? _k : options.sentry,
|
|
5136
|
+
openai: (_l = currentHeaders["openai-token"]) != null ? _l : options.openai
|
|
5120
5137
|
}
|
|
5121
5138
|
};
|
|
5122
5139
|
if (currentHeaders["platform-dps-token"]) {
|
|
5123
|
-
currentHeaders["X-Region"] = (
|
|
5140
|
+
currentHeaders["X-Region"] = (_m = getRegion2(currentHeaders["platform-dps-token"])) != null ? _m : void 0;
|
|
5124
5141
|
}
|
|
5125
|
-
if (((
|
|
5142
|
+
if (((_o = (_n = options.ensureAuthorizationToken) == null ? void 0 : _n.platform) == null ? void 0 : _o.dps) && !headers.platform.dps) {
|
|
5126
5143
|
throw new UnauthorizeApiError("dps");
|
|
5127
5144
|
}
|
|
5128
|
-
if (((
|
|
5145
|
+
if (((_p = options.ensureAuthorizationToken) == null ? void 0 : _p.github) && (!headers.integrations.github.app || !headers.integrations.github.oauth)) {
|
|
5129
5146
|
throw new UnauthorizeApiError("github");
|
|
5130
5147
|
}
|
|
5131
|
-
if (((
|
|
5148
|
+
if (((_q = options.ensureAuthorizationToken) == null ? void 0 : _q.vercel) && !headers.integrations.vercel) {
|
|
5132
5149
|
throw new UnauthorizeApiError("vercel");
|
|
5133
5150
|
}
|
|
5134
|
-
if (((
|
|
5151
|
+
if (((_r = options.ensureAuthorizationToken) == null ? void 0 : _r.netlify) && !headers.integrations.netlify) {
|
|
5135
5152
|
throw new UnauthorizeApiError("netlify");
|
|
5136
5153
|
}
|
|
5137
|
-
if (((
|
|
5154
|
+
if (((_s = options.ensureAuthorizationToken) == null ? void 0 : _s.planetscale) && !headers.integrations.planetscale) {
|
|
5138
5155
|
throw new UnauthorizeApiError("planetscale");
|
|
5139
5156
|
}
|
|
5140
|
-
if (((
|
|
5157
|
+
if (((_t = options.ensureAuthorizationToken) == null ? void 0 : _t.neon) && !headers.integrations.neon) {
|
|
5141
5158
|
throw new UnauthorizeApiError("neon");
|
|
5142
5159
|
}
|
|
5143
|
-
if (((
|
|
5160
|
+
if (((_u = options.ensureAuthorizationToken) == null ? void 0 : _u.sentry) && !headers.integrations.sentry) {
|
|
5144
5161
|
throw new UnauthorizeApiError("sentry");
|
|
5145
5162
|
}
|
|
5163
|
+
if (((_v = options.ensureAuthorizationToken) == null ? void 0 : _v.openai) && !headers.integrations.openai) {
|
|
5164
|
+
throw new UnauthorizeApiError("openai");
|
|
5165
|
+
}
|
|
5146
5166
|
return {
|
|
5147
|
-
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 } : {})
|
|
5148
5168
|
};
|
|
5149
5169
|
}
|
|
5150
5170
|
function initPlatformAdapterClientInstance(baseUrl, tokens) {
|
|
@@ -5188,6 +5208,9 @@ function updatePlatformAdapterClientInstance(tokens) {
|
|
|
5188
5208
|
if (tokens == null ? void 0 : tokens.sentry) {
|
|
5189
5209
|
headers["sentry-token"] = tokens.sentry;
|
|
5190
5210
|
}
|
|
5211
|
+
if (tokens == null ? void 0 : tokens.openai) {
|
|
5212
|
+
headers["openai-token"] = tokens.openai;
|
|
5213
|
+
}
|
|
5191
5214
|
}
|
|
5192
5215
|
|
|
5193
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,8 +17,8 @@
|
|
|
17
17
|
"@types/node": "^17.0.12",
|
|
18
18
|
"tsup": "^7.1.0",
|
|
19
19
|
"typescript": "^5.1.6",
|
|
20
|
-
"config": "0.0.1",
|
|
21
20
|
"eslint-config-custom": "0.0.2",
|
|
21
|
+
"config": "0.0.1",
|
|
22
22
|
"tsconfig": "0.0.1"
|
|
23
23
|
},
|
|
24
24
|
"scripts": {
|