@livechat/developer-studio-api 3.1.17 → 3.1.18

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.mjs CHANGED
@@ -239,7 +239,9 @@ var gitHubInstallationApi = {
239
239
  getInstallationRepositories(installationId, authorization) {
240
240
  return __async(this, null, function* () {
241
241
  const response = yield githubClientInstance.get(
242
- `/user/installations/${installationId}/repositories?timestamp=${(/* @__PURE__ */ new Date()).getTime()}&per_page=100`,
242
+ `/user/installations/${encodeURIComponent(
243
+ installationId
244
+ )}/repositories?timestamp=${(/* @__PURE__ */ new Date()).getTime()}&per_page=100`,
243
245
  getGithubClientConfig({
244
246
  token: authorization == null ? void 0 : authorization.appToken,
245
247
  ensureAuthorizationToken: true
@@ -256,7 +258,7 @@ var gitHubRepositoryApi = {
256
258
  getRepository(repositoryName, authorization) {
257
259
  return __async(this, null, function* () {
258
260
  const response = yield githubClientInstance.get(
259
- `/repos/${repositoryName}`,
261
+ `/repos/${encodeURIComponent(repositoryName)}`,
260
262
  getGithubClientConfig({
261
263
  token: authorization == null ? void 0 : authorization.appToken,
262
264
  ensureAuthorizationToken: true
@@ -268,7 +270,7 @@ var gitHubRepositoryApi = {
268
270
  getRepositoryBranches(repositoryName, authorization) {
269
271
  return __async(this, null, function* () {
270
272
  const response = yield githubClientInstance.get(
271
- `/repos/${repositoryName}/branches`,
273
+ `/repos/${encodeURIComponent(repositoryName)}/branches`,
272
274
  getGithubClientConfig({
273
275
  token: authorization == null ? void 0 : authorization.appToken,
274
276
  ensureAuthorizationToken: true
@@ -280,7 +282,7 @@ var gitHubRepositoryApi = {
280
282
  getRepositoryBranch(repositoryName, repositoryBranch, authorization) {
281
283
  return __async(this, null, function* () {
282
284
  const response = yield githubClientInstance.get(
283
- `/repos/${repositoryName}/branches`,
285
+ `/repos/${encodeURIComponent(repositoryName)}/branches`,
284
286
  getGithubClientConfig({
285
287
  token: authorization == null ? void 0 : authorization.appToken,
286
288
  ensureAuthorizationToken: true
@@ -298,7 +300,9 @@ var gitHubRepositoryApi = {
298
300
  getRepositorySeed(repositoryName, authorization) {
299
301
  return __async(this, null, function* () {
300
302
  const { data } = yield githubClientInstance.get(
301
- `/repos/${repositoryName}/contents/livechat.config.json`,
303
+ `/repos/${encodeURIComponent(
304
+ repositoryName
305
+ )}/contents/livechat.config.json`,
302
306
  getGithubClientConfig({
303
307
  token: authorization == null ? void 0 : authorization.appToken,
304
308
  ensureAuthorizationToken: true
@@ -313,7 +317,7 @@ var gitHubRepositoryApi = {
313
317
  let repository;
314
318
  if (template) {
315
319
  const response2 = yield githubClientInstance.post(
316
- `/repos/${template}/generate`,
320
+ `/repos/${encodeURIComponent(template)}/generate`,
317
321
  {
318
322
  name,
319
323
  description: name,
@@ -344,7 +348,7 @@ var gitHubRepositoryApi = {
344
348
  repository = response2.data;
345
349
  }
346
350
  yield githubClientInstance.patch(
347
- `/repos/${repository.full_name}`,
351
+ `/repos/${encodeURIComponent(repository.full_name)}`,
348
352
  {
349
353
  private: true
350
354
  },
@@ -376,7 +380,9 @@ var gitHubRepositoryApi = {
376
380
  return __async(this, null, function* () {
377
381
  const upsert = (sha) => __async(this, null, function* () {
378
382
  const response = yield githubClientInstance.put(
379
- `/repos/${repositoryName}/contents/livechat.config.json`,
383
+ `/repos/${encodeURIComponent(
384
+ repositoryName
385
+ )}/contents/livechat.config.json`,
380
386
  {
381
387
  message: "Added LiveChat Developer App configuration",
382
388
  sha,
@@ -408,7 +414,7 @@ var gitHubRepositoryApi = {
408
414
  deleteRepository(repositoryName, authorization) {
409
415
  return __async(this, null, function* () {
410
416
  return githubClientInstance.delete(
411
- `/repos/${repositoryName}`,
417
+ `/repos/${encodeURIComponent(repositoryName)}`,
412
418
  getGithubClientConfig({
413
419
  token: authorization == null ? void 0 : authorization.appToken,
414
420
  ensureAuthorizationToken: true
@@ -419,7 +425,7 @@ var gitHubRepositoryApi = {
419
425
  createRepositoryDeployKey(repositoryName, deployKey, authorization) {
420
426
  return __async(this, null, function* () {
421
427
  const response = yield githubClientInstance.post(
422
- `/repos/${repositoryName}/keys`,
428
+ `/repos/${encodeURIComponent(repositoryName)}/keys`,
423
429
  {
424
430
  title: "developer-console-to-netlify",
425
431
  key: deployKey
@@ -436,7 +442,7 @@ var gitHubRepositoryApi = {
436
442
  return __async(this, null, function* () {
437
443
  try {
438
444
  const response = yield githubClientInstance.post(
439
- `/repos/${repositoryName}/hooks`,
445
+ `/repos/${encodeURIComponent(repositoryName)}/hooks`,
440
446
  {
441
447
  name: "web",
442
448
  active: true,
@@ -467,7 +473,7 @@ var gitHubRepositoryApi = {
467
473
  getFile(path, repositoryName, authorization) {
468
474
  return __async(this, null, function* () {
469
475
  const { data } = yield githubClientInstance.get(
470
- `/repos/${repositoryName}/contents/${path}`,
476
+ `/repos/${encodeURIComponent(repositoryName)}/contents/${path}`,
471
477
  getGithubClientConfig({
472
478
  token: authorization == null ? void 0 : authorization.appToken,
473
479
  ensureAuthorizationToken: true
@@ -479,7 +485,7 @@ var gitHubRepositoryApi = {
479
485
  getCommits(repositoryName, authorization) {
480
486
  return __async(this, null, function* () {
481
487
  const { data: commits } = yield githubClientInstance.get(
482
- `/repos/${repositoryName}/commits`,
488
+ `/repos/${encodeURIComponent(repositoryName)}/commits`,
483
489
  getGithubClientConfig({
484
490
  token: authorization == null ? void 0 : authorization.appToken,
485
491
  ensureAuthorizationToken: true
@@ -497,7 +503,9 @@ var gitHubRepositoryApi = {
497
503
  object: { sha: currentCommitSha }
498
504
  }
499
505
  } = yield githubClientInstance.get(
500
- `/repos/${data.repositoryName}/git/refs/heads/${data.repositoryBranch}`,
506
+ `/repos/${encodeURIComponent(
507
+ data.repositoryName
508
+ )}/git/refs/heads/${encodeURIComponent(data.repositoryBranch)}`,
501
509
  getGithubClientConfig({
502
510
  token: authorization == null ? void 0 : authorization.appToken,
503
511
  ensureAuthorizationToken: true
@@ -508,7 +516,9 @@ var gitHubRepositoryApi = {
508
516
  tree: { sha: treeSha }
509
517
  }
510
518
  } = yield githubClientInstance.get(
511
- `/repos/${data.repositoryName}/git/commits/${currentCommitSha}`,
519
+ `/repos/${encodeURIComponent(
520
+ data.repositoryName
521
+ )}/git/commits/${currentCommitSha}`,
512
522
  getGithubClientConfig({
513
523
  token: authorization == null ? void 0 : authorization.appToken,
514
524
  ensureAuthorizationToken: true
@@ -517,7 +527,7 @@ var gitHubRepositoryApi = {
517
527
  const {
518
528
  data: { sha: newTreeSha }
519
529
  } = yield githubClientInstance.post(
520
- `/repos/${data.repositoryName}/git/trees`,
530
+ `/repos/${encodeURIComponent(data.repositoryName)}/git/trees`,
521
531
  {
522
532
  base_tree: treeSha,
523
533
  tree: data.files.map(
@@ -533,7 +543,7 @@ var gitHubRepositoryApi = {
533
543
  const {
534
544
  data: { sha: newCommitSha }
535
545
  } = yield githubClientInstance.post(
536
- `/repos/${data.repositoryName}/git/commits`,
546
+ `/repos/${encodeURIComponent(data.repositoryName)}/git/commits`,
537
547
  {
538
548
  message: data.message,
539
549
  tree: newTreeSha,
@@ -545,7 +555,7 @@ var gitHubRepositoryApi = {
545
555
  })
546
556
  );
547
557
  yield githubClientInstance.post(
548
- `/repos/${data.repositoryName}/git/refs/heads/${data.repositoryBranch}`,
558
+ `/repos/${encodeURIComponent(data.repositoryName)}/git/refs/heads/${data.repositoryBranch}`,
549
559
  { sha: newCommitSha },
550
560
  getGithubClientConfig({
551
561
  token: authorization == null ? void 0 : authorization.appToken,
@@ -556,16 +566,19 @@ var gitHubRepositoryApi = {
556
566
  },
557
567
  getRepositoryIssues(repositoryName, state) {
558
568
  return __async(this, null, function* () {
559
- const { data: issues } = yield githubClientInstance.get(`/repos/${repositoryName}/issues?state=${state}`);
569
+ const { data: issues } = yield githubClientInstance.get(`/repos/${encodeURIComponent(repositoryName)}/issues?state=${state}`);
560
570
  return issues;
561
571
  });
562
572
  },
563
573
  createRepositoryIssue(repositoryName, title, body) {
564
574
  return __async(this, null, function* () {
565
- yield githubClientInstance.post(`/repos/${repositoryName}/issues`, {
566
- title,
567
- body
568
- });
575
+ yield githubClientInstance.post(
576
+ `/repos/${encodeURIComponent(repositoryName)}/issues`,
577
+ {
578
+ title,
579
+ body
580
+ }
581
+ );
569
582
  });
570
583
  }
571
584
  };
@@ -701,7 +714,9 @@ var netlifyAccountApi = {
701
714
  throw new AxiosError2("No account", "404");
702
715
  }
703
716
  const { data: envs } = yield netlifyClientInstance.get(
704
- `/accounts/${targetAccountId}/env?site_id=${siteId}&scope=all&context=all&level=all`,
717
+ `/accounts/${encodeURIComponent(
718
+ targetAccountId
719
+ )}/env?site_id=${siteId}&scope=all&context=all&level=all`,
705
720
  getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
706
721
  ensureAuthorizationToken: true
707
722
  }))
@@ -719,7 +734,9 @@ var netlifyAccountApi = {
719
734
  throw new AxiosError2("No account", "404");
720
735
  }
721
736
  const { data: envs } = yield netlifyClientInstance.get(
722
- `/accounts/${targetAccountId}/env/${envKey}?site_id=${siteId}`,
737
+ `/accounts/${encodeURIComponent(
738
+ targetAccountId
739
+ )}/env/${envKey}?site_id=${siteId}`,
723
740
  getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
724
741
  ensureAuthorizationToken: true
725
742
  }))
@@ -739,7 +756,9 @@ var netlifyAccountApi = {
739
756
  }
740
757
  if (!targetEnvs) {
741
758
  const response = yield netlifyClientInstance.get(
742
- `/accounts/${targetAccountId}/env?site_id=${siteId}&scope=all&context=all&level=all`,
759
+ `/accounts/${encodeURIComponent(
760
+ targetAccountId
761
+ )}/env?site_id=${siteId}&scope=all&context=all&level=all`,
743
762
  getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
744
763
  ensureAuthorizationToken: true
745
764
  }))
@@ -749,7 +768,7 @@ var netlifyAccountApi = {
749
768
  const existingEnv = targetEnvs.find((env) => env.key === envName);
750
769
  if (existingEnv) {
751
770
  yield netlifyClientInstance.put(
752
- `/accounts/${targetAccountId}/env/${existingEnv.key}?site_id=${siteId}`,
771
+ `/accounts/${encodeURIComponent(targetAccountId)}/env/${existingEnv.key}?site_id=${siteId}`,
753
772
  {
754
773
  key: existingEnv.key,
755
774
  scopes: ["builds", "functions", "runtime", "post_processing"],
@@ -761,7 +780,9 @@ var netlifyAccountApi = {
761
780
  );
762
781
  } else {
763
782
  yield netlifyClientInstance.post(
764
- `/accounts/${targetAccountId}/env?site_id=${siteId}`,
783
+ `/accounts/${encodeURIComponent(
784
+ targetAccountId
785
+ )}/env?site_id=${siteId}`,
765
786
  [
766
787
  {
767
788
  key: envName,
@@ -786,7 +807,9 @@ var netlifyAccountApi = {
786
807
  throw new AxiosError2("No account", "404");
787
808
  }
788
809
  yield netlifyClientInstance.delete(
789
- `/accounts/${targetAccountId}/env/${envKey}?site_id=${siteId}`,
810
+ `/accounts/${encodeURIComponent(
811
+ targetAccountId
812
+ )}/env/${envKey}?site_id=${siteId}`,
790
813
  getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
791
814
  ensureAuthorizationToken: true
792
815
  }))
@@ -886,7 +909,7 @@ var netlifySiteApi = {
886
909
  getSite(siteId, authorization) {
887
910
  return __async(this, null, function* () {
888
911
  const response = yield netlifyClientInstance.get(
889
- `/sites/${siteId}`,
912
+ `/sites/${encodeURIComponent(siteId)}`,
890
913
  getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
891
914
  ensureAuthorizationToken: true
892
915
  }))
@@ -897,7 +920,7 @@ var netlifySiteApi = {
897
920
  getSiteDeploy(siteId, authorization) {
898
921
  return __async(this, null, function* () {
899
922
  const { data: deploys } = yield netlifyClientInstance.get(
900
- `/sites/${siteId}/deploys/`,
923
+ `/sites/${encodeURIComponent(siteId)}/deploys/`,
901
924
  getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
902
925
  ensureAuthorizationToken: true
903
926
  }))
@@ -906,7 +929,7 @@ var netlifySiteApi = {
906
929
  (innerDeploy) => innerDeploy.context === "production"
907
930
  )[0];
908
931
  const { data: pluginRuns } = yield netlifyClientInstance.get(
909
- `/deploys/${deploy.id}/plugin_runs`,
932
+ `/deploys/${encodeURIComponent(deploy.id)}/plugin_runs`,
910
933
  getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
911
934
  ensureAuthorizationToken: true
912
935
  }))
@@ -918,7 +941,7 @@ var netlifySiteApi = {
918
941
  getSiteDeploys(siteId, authorization) {
919
942
  return __async(this, null, function* () {
920
943
  const { data: deploys } = yield netlifyClientInstance.get(
921
- `/sites/${siteId}/deploys`,
944
+ `/sites/${encodeURIComponent(siteId)}/deploys`,
922
945
  getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
923
946
  ensureAuthorizationToken: true
924
947
  }))
@@ -929,7 +952,7 @@ var netlifySiteApi = {
929
952
  getSiteSnippets(siteId, authorization) {
930
953
  return __async(this, null, function* () {
931
954
  const { data: snippets } = yield netlifyClientInstance.get(
932
- `sites/${siteId}/snippets`,
955
+ `sites/${encodeURIComponent(siteId)}/snippets`,
933
956
  getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
934
957
  ensureAuthorizationToken: true
935
958
  }))
@@ -944,7 +967,7 @@ var netlifySiteApi = {
944
967
  packages: [{ package: "@netlify/plugin-nextjs" }],
945
968
  dir: ".next",
946
969
  cmd: "npm run build"
947
- } : target === "node" ? {
970
+ } : target === "browser" ? {
948
971
  plugins: [],
949
972
  dir: "dist",
950
973
  cmd: "npm run build"
@@ -987,7 +1010,7 @@ var netlifySiteApi = {
987
1010
  packages: [{ package: "@netlify/plugin-nextjs" }],
988
1011
  dir: ".next",
989
1012
  cmd: "npm run build"
990
- } : target === "node" ? {
1013
+ } : target === "browser" ? {
991
1014
  packages: [],
992
1015
  dir: "dist",
993
1016
  cmd: "npm run build"
@@ -1025,7 +1048,7 @@ var netlifySiteApi = {
1025
1048
  removeSite(siteId, authorization) {
1026
1049
  return __async(this, null, function* () {
1027
1050
  yield netlifyClientInstance.delete(
1028
- `/sites/${siteId}`,
1051
+ `/sites/${encodeURIComponent(siteId)}`,
1029
1052
  getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
1030
1053
  ensureAuthorizationToken: true
1031
1054
  }))
@@ -1035,7 +1058,7 @@ var netlifySiteApi = {
1035
1058
  triggerSiteBuild(siteId, authorization) {
1036
1059
  return __async(this, null, function* () {
1037
1060
  yield netlifyClientInstance.post(
1038
- `/sites/${siteId}/builds`,
1061
+ `/sites/${encodeURIComponent(siteId)}/builds`,
1039
1062
  {},
1040
1063
  getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
1041
1064
  ensureAuthorizationToken: true
@@ -1046,13 +1069,13 @@ var netlifySiteApi = {
1046
1069
  addGitHubInstallationToSite(siteId, installationId, authorization) {
1047
1070
  return __async(this, null, function* () {
1048
1071
  const site = yield netlifyClientInstance.get(
1049
- `/sites/${siteId}`,
1072
+ `/sites/${encodeURIComponent(siteId)}`,
1050
1073
  getNetlifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
1051
1074
  ensureAuthorizationToken: true
1052
1075
  }))
1053
1076
  );
1054
1077
  yield netlifyClientInstance.put(
1055
- `/sites/${siteId}`,
1078
+ `/sites/${encodeURIComponent(siteId)}`,
1056
1079
  {
1057
1080
  repo: {
1058
1081
  provider: site.data.build_settings.provider,
@@ -1172,7 +1195,11 @@ var planescaleDatabasePasswordApi = {
1172
1195
  getDatabasePasswords(organization, databaseName, branchName, authorization) {
1173
1196
  return __async(this, null, function* () {
1174
1197
  const response = yield planetScaleClientInstance.get(
1175
- `/v1/organizations/${organization}/databases/${databaseName}/branches/${branchName}/passwords`,
1198
+ `/v1/organizations/${encodeURIComponent(
1199
+ organization
1200
+ )}/databases/${encodeURIComponent(
1201
+ databaseName
1202
+ )}/branches/${encodeURIComponent(branchName)}/passwords`,
1176
1203
  getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
1177
1204
  ensureAuthorizationToken: true
1178
1205
  }))
@@ -1183,7 +1210,13 @@ var planescaleDatabasePasswordApi = {
1183
1210
  getDatabasePassword(organization, databaseName, branchName, passwordId, authorization) {
1184
1211
  return __async(this, null, function* () {
1185
1212
  const response = yield planetScaleClientInstance.get(
1186
- `/v1/organizations/${organization}/databases/${databaseName}/branches/${branchName}/passwords/${passwordId}`,
1213
+ `/v1/organizations/${encodeURIComponent(
1214
+ organization
1215
+ )}/databases/${encodeURIComponent(
1216
+ databaseName
1217
+ )}/branches/${encodeURIComponent(
1218
+ branchName
1219
+ )}/passwords/${encodeURIComponent(passwordId)}`,
1187
1220
  getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
1188
1221
  ensureAuthorizationToken: true
1189
1222
  }))
@@ -1194,7 +1227,11 @@ var planescaleDatabasePasswordApi = {
1194
1227
  createDatabasePassword(organization, databaseName, branchName, passwordName, authorization) {
1195
1228
  return __async(this, null, function* () {
1196
1229
  const response = yield planetScaleClientInstance.post(
1197
- `/v1/organizations/${organization}/databases/${databaseName}/branches/${branchName}/passwords`,
1230
+ `/v1/organizations/${encodeURIComponent(
1231
+ organization
1232
+ )}/databases/${encodeURIComponent(
1233
+ databaseName
1234
+ )}/branches/${encodeURIComponent(branchName)}/passwords`,
1198
1235
  {
1199
1236
  name: passwordName
1200
1237
  },
@@ -1208,7 +1245,13 @@ var planescaleDatabasePasswordApi = {
1208
1245
  deleteDatabasePassword(organization, databaseName, branchName, passwordId, authorization) {
1209
1246
  return __async(this, null, function* () {
1210
1247
  yield planetScaleClientInstance.delete(
1211
- `/v1/organizations/${organization}/databases/${databaseName}/branches/${branchName}/passwords/${passwordId}`,
1248
+ `/v1/organizations/${encodeURIComponent(
1249
+ organization
1250
+ )}/databases/${encodeURIComponent(
1251
+ databaseName
1252
+ )}/branches/${encodeURIComponent(
1253
+ branchName
1254
+ )}/passwords/${encodeURIComponent(passwordId)}`,
1212
1255
  getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
1213
1256
  ensureAuthorizationToken: true
1214
1257
  }))
@@ -1223,7 +1266,7 @@ var planescaleDatabaseApi = {
1223
1266
  getDatabases(organization, authorization) {
1224
1267
  return __async(this, null, function* () {
1225
1268
  const response = yield planetScaleClientInstance.get(
1226
- `/v1/organizations/${organization}/databases`,
1269
+ `/v1/organizations/${encodeURIComponent(organization)}/databases`,
1227
1270
  getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
1228
1271
  ensureAuthorizationToken: true
1229
1272
  }))
@@ -1234,7 +1277,9 @@ var planescaleDatabaseApi = {
1234
1277
  getDatabase(organization, databaseName, authorization) {
1235
1278
  return __async(this, null, function* () {
1236
1279
  const response = yield planetScaleClientInstance.get(
1237
- `/v1/organizations/${organization}/databases/${databaseName}`,
1280
+ `/v1/organizations/${encodeURIComponent(
1281
+ organization
1282
+ )}/databases/${encodeURIComponent(databaseName)}`,
1238
1283
  getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
1239
1284
  ensureAuthorizationToken: true
1240
1285
  }))
@@ -1245,7 +1290,7 @@ var planescaleDatabaseApi = {
1245
1290
  createDatabase(organization, name, authorization) {
1246
1291
  return __async(this, null, function* () {
1247
1292
  const response = yield planetScaleClientInstance.post(
1248
- `/v1/organizations/${organization}/databases`,
1293
+ `/v1/organizations/${encodeURIComponent(organization)}/databases`,
1249
1294
  {
1250
1295
  name
1251
1296
  },
@@ -1259,7 +1304,9 @@ var planescaleDatabaseApi = {
1259
1304
  removeDatabase(organization, databaseName, authorization) {
1260
1305
  return __async(this, null, function* () {
1261
1306
  yield planetScaleClientInstance.delete(
1262
- `/v1/organizations/${organization}/databases/${databaseName}`,
1307
+ `/v1/organizations/${encodeURIComponent(
1308
+ organization
1309
+ )}/databases/${encodeURIComponent(databaseName)}`,
1263
1310
  getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
1264
1311
  ensureAuthorizationToken: true
1265
1312
  }))
@@ -1284,7 +1331,7 @@ var planescaleOrganizationApi = {
1284
1331
  getOrganization(organization, authorization) {
1285
1332
  return __async(this, null, function* () {
1286
1333
  const response = yield planetScaleClientInstance.get(
1287
- `/v1/organizations/${organization}`,
1334
+ `/v1/organizations/${encodeURIComponent(organization)}`,
1288
1335
  getPlanetScaleClientConfig(__spreadProps(__spreadValues({}, authorization), {
1289
1336
  ensureAuthorizationToken: true
1290
1337
  }))
@@ -1324,7 +1371,9 @@ var planetscaleApi = {
1324
1371
  grant_type: "authorization_code"
1325
1372
  });
1326
1373
  const response = yield axios6.post(
1327
- `https://api.planetscale.com/v1/organizations/${organization}/oauth-applications/${applicationId}/token`,
1374
+ `https://api.planetscale.com/v1/organizations/${encodeURIComponent(
1375
+ organization
1376
+ )}/oauth-applications/${encodeURIComponent(applicationId)}/token`,
1328
1377
  data,
1329
1378
  {
1330
1379
  headers: {
@@ -1424,7 +1473,9 @@ var textAppMonitoringEventsApi = {
1424
1473
  return __async(this, null, function* () {
1425
1474
  try {
1426
1475
  const response = yield textClientInstance.get(
1427
- `/app_monitoring/${appId}/events/${eventKey}`,
1476
+ `/app_monitoring/${encodeURIComponent(
1477
+ appId
1478
+ )}/events/${encodeURIComponent(eventKey)}`,
1428
1479
  getTextClientConfig(authorization)
1429
1480
  );
1430
1481
  return response.data;
@@ -1440,7 +1491,7 @@ var textAppMonitoringEventsApi = {
1440
1491
  return __async(this, null, function* () {
1441
1492
  try {
1442
1493
  const response = yield textClientInstance.get(
1443
- `/app_monitoring/${appId}/events`,
1494
+ `/app_monitoring/${encodeURIComponent(appId)}/events`,
1444
1495
  getTextClientConfig(authorization)
1445
1496
  );
1446
1497
  return response.data;
@@ -1456,7 +1507,9 @@ var textAppMonitoringEventsApi = {
1456
1507
  return __async(this, null, function* () {
1457
1508
  try {
1458
1509
  yield textClientInstance.post(
1459
- `/app_monitoring/${appId}/events/${event.key}`,
1510
+ `/app_monitoring/${encodeURIComponent(
1511
+ appId
1512
+ )}/events/${encodeURIComponent(event.key)}`,
1460
1513
  event,
1461
1514
  getTextClientConfig(authorization)
1462
1515
  );
@@ -1472,7 +1525,9 @@ var textAppMonitoringEventsApi = {
1472
1525
  return __async(this, null, function* () {
1473
1526
  try {
1474
1527
  yield textClientInstance.delete(
1475
- `/app_monitoring/${appId}/events/${eventKey}`,
1528
+ `/app_monitoring/${encodeURIComponent(
1529
+ appId
1530
+ )}/events/${encodeURIComponent(eventKey)}`,
1476
1531
  getTextClientConfig(authorization)
1477
1532
  );
1478
1533
  } catch (error) {
@@ -1487,7 +1542,7 @@ var textAppMonitoringEventsApi = {
1487
1542
  return __async(this, null, function* () {
1488
1543
  try {
1489
1544
  yield textClientInstance.post(
1490
- `/app_monitoring/${appId}/events`,
1545
+ `/app_monitoring/${encodeURIComponent(appId)}/events`,
1491
1546
  data,
1492
1547
  getTextClientConfig(authorization)
1493
1548
  );
@@ -1513,7 +1568,9 @@ var textAppMonitoringEventsApi = {
1513
1568
  });
1514
1569
  }
1515
1570
  const response = yield textClientInstance.get(
1516
- `/app_monitoring/${appId}/events?${searchParams.toString()}`,
1571
+ `/app_monitoring/${encodeURIComponent(
1572
+ appId
1573
+ )}/events?${searchParams.toString()}`,
1517
1574
  // v1
1518
1575
  // `/app_monitoring/${appId}/events/logs?${searchParams.toString()}`, // v2
1519
1576
  getTextClientConfig(authorization)
@@ -1535,7 +1592,9 @@ var textAppMonitoringReportsApi = {
1535
1592
  return __async(this, null, function* () {
1536
1593
  try {
1537
1594
  const response = yield textClientInstance.get(
1538
- `/app_monitoring/${appId}/reports/uptime?${new URLSearchParams({
1595
+ `/app_monitoring/${encodeURIComponent(
1596
+ appId
1597
+ )}/reports/uptime?${new URLSearchParams({
1539
1598
  from: payload.from,
1540
1599
  to: payload.to,
1541
1600
  resolution: payload.resolution
@@ -1555,7 +1614,9 @@ var textAppMonitoringReportsApi = {
1555
1614
  return __async(this, null, function* () {
1556
1615
  try {
1557
1616
  const response = yield textClientInstance.get(
1558
- `/app_monitoring/${appId}/reports/events?${new URLSearchParams({
1617
+ `/app_monitoring/${encodeURIComponent(
1618
+ appId
1619
+ )}/reports/events?${new URLSearchParams({
1559
1620
  from: payload.from,
1560
1621
  to: payload.to,
1561
1622
  resolution: payload.resolution
@@ -1575,7 +1636,9 @@ var textAppMonitoringReportsApi = {
1575
1636
  return __async(this, null, function* () {
1576
1637
  try {
1577
1638
  const response = yield textClientInstance.get(
1578
- `/app_monitoring/${appId}/reports/custom/${customReportId}`,
1639
+ `/app_monitoring/${encodeURIComponent(
1640
+ appId
1641
+ )}/reports/custom/${encodeURIComponent(customReportId)}`,
1579
1642
  getTextClientConfig(authorization)
1580
1643
  );
1581
1644
  return response.data;
@@ -1591,7 +1654,9 @@ var textAppMonitoringReportsApi = {
1591
1654
  return __async(this, null, function* () {
1592
1655
  try {
1593
1656
  const response = yield textClientInstance.get(
1594
- `/app_monitoring/${appId}/reports/custom/${customReportId}/data`,
1657
+ `/app_monitoring/${encodeURIComponent(
1658
+ appId
1659
+ )}/reports/custom/${encodeURIComponent(customReportId)}/data`,
1595
1660
  getTextClientConfig(authorization)
1596
1661
  );
1597
1662
  return response.data;
@@ -1607,7 +1672,7 @@ var textAppMonitoringReportsApi = {
1607
1672
  return __async(this, null, function* () {
1608
1673
  try {
1609
1674
  const response = yield textClientInstance.get(
1610
- `/app_monitoring/${appId}/reports/custom`,
1675
+ `/app_monitoring/${encodeURIComponent(appId)}/reports/custom`,
1611
1676
  getTextClientConfig(authorization)
1612
1677
  );
1613
1678
  return response.data;
@@ -1623,7 +1688,7 @@ var textAppMonitoringReportsApi = {
1623
1688
  return __async(this, null, function* () {
1624
1689
  try {
1625
1690
  yield textClientInstance.post(
1626
- `/app_monitoring/${appId}/reports/custom`,
1691
+ `/app_monitoring/${encodeURIComponent(appId)}/reports/custom`,
1627
1692
  customReport,
1628
1693
  getTextClientConfig(authorization)
1629
1694
  );
@@ -1639,7 +1704,9 @@ var textAppMonitoringReportsApi = {
1639
1704
  return __async(this, null, function* () {
1640
1705
  try {
1641
1706
  yield textClientInstance.post(
1642
- `/app_monitoring/${appId}/reports/custom/${customReport.id}`,
1707
+ `/app_monitoring/${encodeURIComponent(
1708
+ appId
1709
+ )}/reports/custom/${encodeURIComponent(customReport.id)}`,
1643
1710
  customReport,
1644
1711
  getTextClientConfig(authorization)
1645
1712
  );
@@ -1655,7 +1722,9 @@ var textAppMonitoringReportsApi = {
1655
1722
  return __async(this, null, function* () {
1656
1723
  try {
1657
1724
  yield textClientInstance.delete(
1658
- `/app_monitoring/${appId}/reports/custom/${customReportId}`,
1725
+ `/app_monitoring/${encodeURIComponent(
1726
+ appId
1727
+ )}/reports/custom/${encodeURIComponent(customReportId)}`,
1659
1728
  getTextClientConfig(authorization)
1660
1729
  );
1661
1730
  } catch (error) {
@@ -1777,7 +1846,7 @@ var textPlatformWorkflowsCredentialsApi = {
1777
1846
  get(id, authorization) {
1778
1847
  return __async(this, null, function* () {
1779
1848
  return textClientInstance.get(
1780
- `/workflow_platform/credentials/${id}`,
1849
+ `/workflow_platform/credentials/${encodeURIComponent(id)}`,
1781
1850
  getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
1782
1851
  ensureAuthorizationToken: true
1783
1852
  }))
@@ -1829,7 +1898,7 @@ var textPlatformWorkflowsCredentialsApi = {
1829
1898
  update(id, payload, authorization) {
1830
1899
  return __async(this, null, function* () {
1831
1900
  return textClientInstance.post(
1832
- `/workflow_platform/credentials/${id}`,
1901
+ `/workflow_platform/credentials/${encodeURIComponent(id)}`,
1833
1902
  payload,
1834
1903
  getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
1835
1904
  ensureAuthorizationToken: true
@@ -1847,7 +1916,7 @@ var textPlatformWorkflowsCredentialsApi = {
1847
1916
  delete(id, authorization) {
1848
1917
  return __async(this, null, function* () {
1849
1918
  return textClientInstance.delete(
1850
- `/workflow_platform/credentials/${id}`,
1919
+ `/workflow_platform/credentials/${encodeURIComponent(id)}`,
1851
1920
  getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
1852
1921
  ensureAuthorizationToken: true
1853
1922
  }))
@@ -1864,7 +1933,7 @@ var textPlatformWorkflowsCredentialsApi = {
1864
1933
  connect(id, code, authorization) {
1865
1934
  return __async(this, null, function* () {
1866
1935
  return textClientInstance.put(
1867
- `/workflow_platform/credentials/${id}/connection`,
1936
+ `/workflow_platform/credentials/${encodeURIComponent(id)}/connection`,
1868
1937
  {
1869
1938
  code
1870
1939
  },
@@ -1910,7 +1979,9 @@ var textPlatformWorkflowsApi = {
1910
1979
  getWorkflow(payload, authorization) {
1911
1980
  return __async(this, null, function* () {
1912
1981
  const { data: workflow } = yield textClientInstance.get(
1913
- `/workflow_platform/workflows/${payload.name}?version=${payload.version}`,
1982
+ `/workflow_platform/workflows/${encodeURIComponent(
1983
+ payload.name
1984
+ )}?version=${payload.version}`,
1914
1985
  getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
1915
1986
  ensureAuthorizationToken: true
1916
1987
  }))
@@ -1921,7 +1992,7 @@ var textPlatformWorkflowsApi = {
1921
1992
  updateWorkflow(payload, authorization) {
1922
1993
  return __async(this, null, function* () {
1923
1994
  const { data: workflow } = yield textClientInstance.put(
1924
- `/workflow_platform/workflows/${payload.name}`,
1995
+ `/workflow_platform/workflows/${encodeURIComponent(payload.name)}`,
1925
1996
  payload,
1926
1997
  getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
1927
1998
  ensureAuthorizationToken: true
@@ -1933,7 +2004,7 @@ var textPlatformWorkflowsApi = {
1933
2004
  deleteWorkflow(payload, authorization) {
1934
2005
  return __async(this, null, function* () {
1935
2006
  yield textClientInstance.delete(
1936
- `/workflow_platform/workflows/${payload.name}`,
2007
+ `/workflow_platform/workflows/${encodeURIComponent(payload.name)}`,
1937
2008
  getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
1938
2009
  ensureAuthorizationToken: true
1939
2010
  }))
@@ -1943,7 +2014,9 @@ var textPlatformWorkflowsApi = {
1943
2014
  executeWorkflow(payload, authorization) {
1944
2015
  return __async(this, null, function* () {
1945
2016
  const { data: execution } = yield textClientInstance.post(
1946
- `/workflow_platform/workflows/${payload.name}/executions`,
2017
+ `/workflow_platform/workflows/${encodeURIComponent(
2018
+ payload.name
2019
+ )}/executions`,
1947
2020
  payload,
1948
2021
  getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
1949
2022
  ensureAuthorizationToken: true
@@ -1955,7 +2028,9 @@ var textPlatformWorkflowsApi = {
1955
2028
  getWorkflowExecutionsList(payload, authorization) {
1956
2029
  return __async(this, null, function* () {
1957
2030
  const { data: executions } = yield textClientInstance.get(
1958
- `/workflow_platform/workflows/${payload.name}/executions`,
2031
+ `/workflow_platform/workflows/${encodeURIComponent(
2032
+ payload.name
2033
+ )}/executions`,
1959
2034
  getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
1960
2035
  ensureAuthorizationToken: true
1961
2036
  }))
@@ -1966,7 +2041,9 @@ var textPlatformWorkflowsApi = {
1966
2041
  getWorkflowExecutionDetails(payload, authorization) {
1967
2042
  return __async(this, null, function* () {
1968
2043
  const { data: execution } = yield textClientInstance.get(
1969
- `/workflow_platform/workflows/${payload.name}/executions/${payload.execution_id}`,
2044
+ `/workflow_platform/workflows/${encodeURIComponent(
2045
+ payload.name
2046
+ )}/executions/${encodeURIComponent(payload.execution_id)}`,
1970
2047
  getTextClientConfig(__spreadProps(__spreadValues({}, authorization), {
1971
2048
  ensureAuthorizationToken: true
1972
2049
  }))
@@ -2165,7 +2242,7 @@ var vercelProjectApi = {
2165
2242
  getProject(projectId, authorization) {
2166
2243
  return __async(this, null, function* () {
2167
2244
  const response = yield vercelClientInstance.get(
2168
- `/v9/projects/${projectId}`,
2245
+ `/v9/projects/${encodeURIComponent(projectId)}`,
2169
2246
  getVercelClientConfig(__spreadProps(__spreadValues({}, authorization), {
2170
2247
  ensureAuthorizationToken: true
2171
2248
  }))
@@ -2196,7 +2273,7 @@ var vercelProjectApi = {
2196
2273
  removeProject(projectId, authorization) {
2197
2274
  return __async(this, null, function* () {
2198
2275
  yield vercelClientInstance.delete(
2199
- `/projects/${projectId}`,
2276
+ `/projects/${encodeURIComponent(projectId)}`,
2200
2277
  getVercelClientConfig(__spreadProps(__spreadValues({}, authorization), {
2201
2278
  ensureAuthorizationToken: true
2202
2279
  }))
@@ -2208,7 +2285,7 @@ var vercelProjectApi = {
2208
2285
  const {
2209
2286
  data: { envs }
2210
2287
  } = yield vercelClientInstance.get(
2211
- `/v9/projects/${projectId}/env`,
2288
+ `/v9/projects/${encodeURIComponent(projectId)}/env`,
2212
2289
  getVercelClientConfig(__spreadProps(__spreadValues({}, authorization), {
2213
2290
  ensureAuthorizationToken: true
2214
2291
  }))
@@ -2219,7 +2296,9 @@ var vercelProjectApi = {
2219
2296
  getProjectEnv(projectId, envId, authorization) {
2220
2297
  return __async(this, null, function* () {
2221
2298
  const { data } = yield vercelClientInstance.get(
2222
- `/v9/projects/${projectId}/env/${envId}`,
2299
+ `/v9/projects/${encodeURIComponent(projectId)}/env/${encodeURIComponent(
2300
+ envId
2301
+ )}`,
2223
2302
  getVercelClientConfig(__spreadProps(__spreadValues({}, authorization), {
2224
2303
  ensureAuthorizationToken: true
2225
2304
  }))
@@ -2241,13 +2320,18 @@ var vercelProjectApi = {
2241
2320
  return __async(this, null, function* () {
2242
2321
  let envs = projectEnvs;
2243
2322
  if (!envs) {
2244
- const response = yield vercelClientInstance.get(`/v9/projects/${projectId}/env`, getVercelClientConfig(authorization));
2323
+ const response = yield vercelClientInstance.get(
2324
+ `/v9/projects/${encodeURIComponent(projectId)}/env`,
2325
+ getVercelClientConfig(authorization)
2326
+ );
2245
2327
  envs = response.data.envs;
2246
2328
  }
2247
2329
  const existingEnv = envs.find((env) => env.key === key);
2248
2330
  if (existingEnv) {
2249
2331
  const { data: editedEnv } = yield vercelClientInstance.patch(
2250
- `/v9/projects/${projectId}/env/${existingEnv.id}`,
2332
+ `/v9/projects/${encodeURIComponent(
2333
+ projectId
2334
+ )}/env/${encodeURIComponent(existingEnv.id)}`,
2251
2335
  {
2252
2336
  key,
2253
2337
  value,
@@ -2261,7 +2345,7 @@ var vercelProjectApi = {
2261
2345
  return editedEnv;
2262
2346
  }
2263
2347
  const { data: createdEnv } = yield vercelClientInstance.post(
2264
- `/v9/projects/${projectId}/env`,
2348
+ `/v9/projects/${encodeURIComponent(projectId)}/env`,
2265
2349
  {
2266
2350
  key,
2267
2351
  value,
@@ -2278,7 +2362,9 @@ var vercelProjectApi = {
2278
2362
  removeProjectEnv(projectId, envId, authorization) {
2279
2363
  return __async(this, null, function* () {
2280
2364
  yield vercelClientInstance.delete(
2281
- `/v9/projects/${projectId}/env/${envId}`,
2365
+ `/v9/projects/${encodeURIComponent(projectId)}/env/${encodeURIComponent(
2366
+ envId
2367
+ )}`,
2282
2368
  getVercelClientConfig(__spreadProps(__spreadValues({}, authorization), {
2283
2369
  ensureAuthorizationToken: true
2284
2370
  }))
@@ -2380,7 +2466,9 @@ var neonProjectBranchApi = {
2380
2466
  getBranch(projectId, branchId, authorization) {
2381
2467
  return __async(this, null, function* () {
2382
2468
  const response = yield neonClientInstance.get(
2383
- `projects/${projectId}/branches/${branchId}`,
2469
+ `projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
2470
+ branchId
2471
+ )}`,
2384
2472
  getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
2385
2473
  ensureAuthorizationToken: true
2386
2474
  }))
@@ -2391,7 +2479,7 @@ var neonProjectBranchApi = {
2391
2479
  getBranches(projectId, authorization) {
2392
2480
  return __async(this, null, function* () {
2393
2481
  const response = yield neonClientInstance.get(
2394
- `projects/${projectId}/branches`,
2482
+ `projects/${encodeURIComponent(projectId)}/branches`,
2395
2483
  getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
2396
2484
  ensureAuthorizationToken: true
2397
2485
  }))
@@ -2402,7 +2490,9 @@ var neonProjectBranchApi = {
2402
2490
  createRole(projectId, branchId, roleName, authorization) {
2403
2491
  return __async(this, null, function* () {
2404
2492
  const response = yield neonClientInstance.post(
2405
- `projects/${projectId}/branches/${branchId}/roles`,
2493
+ `projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
2494
+ branchId
2495
+ )}/roles`,
2406
2496
  {
2407
2497
  role: {
2408
2498
  name: roleName
@@ -2418,7 +2508,9 @@ var neonProjectBranchApi = {
2418
2508
  getRole(projectId, branchId, roleName, authorization) {
2419
2509
  return __async(this, null, function* () {
2420
2510
  const response = yield neonClientInstance.get(
2421
- `projects/${projectId}/branches/${branchId}/roles/${roleName}`,
2511
+ `projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
2512
+ branchId
2513
+ )}/roles/${encodeURIComponent(roleName)}`,
2422
2514
  getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
2423
2515
  ensureAuthorizationToken: true
2424
2516
  }))
@@ -2429,7 +2521,9 @@ var neonProjectBranchApi = {
2429
2521
  getRoles(projectId, branchId, authorization) {
2430
2522
  return __async(this, null, function* () {
2431
2523
  const response = yield neonClientInstance.get(
2432
- `projects/${projectId}/branches/${branchId}/roles`,
2524
+ `projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
2525
+ branchId
2526
+ )}/roles`,
2433
2527
  getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
2434
2528
  ensureAuthorizationToken: true
2435
2529
  }))
@@ -2440,7 +2534,9 @@ var neonProjectBranchApi = {
2440
2534
  createDatabase(projectId, branchId, databaseName, ownerName, authorization) {
2441
2535
  return __async(this, null, function* () {
2442
2536
  const response = yield neonClientInstance.post(
2443
- `projects/${projectId}/branches/${branchId}/databases`,
2537
+ `projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
2538
+ branchId
2539
+ )}/databases`,
2444
2540
  {
2445
2541
  database: {
2446
2542
  name: databaseName,
@@ -2457,7 +2553,9 @@ var neonProjectBranchApi = {
2457
2553
  deleteDatabase(projectId, branchId, databaseName, authorization) {
2458
2554
  return __async(this, null, function* () {
2459
2555
  const response = yield neonClientInstance.delete(
2460
- `projects/${projectId}/branches/${branchId}/databases/${databaseName}`,
2556
+ `projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
2557
+ branchId
2558
+ )}/databases/${encodeURIComponent(databaseName)}`,
2461
2559
  getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
2462
2560
  ensureAuthorizationToken: true
2463
2561
  }))
@@ -2468,7 +2566,9 @@ var neonProjectBranchApi = {
2468
2566
  getDatabase(projectId, branchId, databaseName, authorization) {
2469
2567
  return __async(this, null, function* () {
2470
2568
  const response = yield neonClientInstance.get(
2471
- `projects/${projectId}/branches/${branchId}/databases/${databaseName}`,
2569
+ `projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
2570
+ branchId
2571
+ )}/databases/${encodeURIComponent(databaseName)}`,
2472
2572
  getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
2473
2573
  ensureAuthorizationToken: true
2474
2574
  }))
@@ -2479,7 +2579,9 @@ var neonProjectBranchApi = {
2479
2579
  getDatabases(projectId, branchId, authorization) {
2480
2580
  return __async(this, null, function* () {
2481
2581
  const response = yield neonClientInstance.get(
2482
- `projects/${projectId}/branches/${branchId}/databases`,
2582
+ `projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
2583
+ branchId
2584
+ )}/databases`,
2483
2585
  getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
2484
2586
  ensureAuthorizationToken: true
2485
2587
  }))
@@ -2490,7 +2592,9 @@ var neonProjectBranchApi = {
2490
2592
  getRolePassword(projectId, branchId, roleName, authorization) {
2491
2593
  return __async(this, null, function* () {
2492
2594
  const response = yield neonClientInstance.get(
2493
- `projects/${projectId}/branches/${branchId}/roles/${roleName}/reveal_password`,
2595
+ `projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
2596
+ branchId
2597
+ )}/roles/${encodeURIComponent(roleName)}/reveal_password`,
2494
2598
  getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
2495
2599
  ensureAuthorizationToken: true
2496
2600
  }))
@@ -2501,7 +2605,9 @@ var neonProjectBranchApi = {
2501
2605
  getBranchEndpoints(projectId, branchId, authorization) {
2502
2606
  return __async(this, null, function* () {
2503
2607
  const response = yield neonClientInstance.get(
2504
- `projects/${projectId}/branches/${branchId}/endpoints`,
2608
+ `projects/${encodeURIComponent(projectId)}/branches/${encodeURIComponent(
2609
+ branchId
2610
+ )}/endpoints`,
2505
2611
  getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
2506
2612
  ensureAuthorizationToken: true
2507
2613
  }))
@@ -2536,7 +2642,7 @@ var neonProjectApi = {
2536
2642
  getProject(projectId, authorization) {
2537
2643
  return __async(this, null, function* () {
2538
2644
  const response = yield neonClientInstance.get(
2539
- `/projects/${projectId}`,
2645
+ `/projects/${encodeURIComponent(projectId)}`,
2540
2646
  getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
2541
2647
  ensureAuthorizationToken: true
2542
2648
  }))
@@ -2558,7 +2664,7 @@ var neonProjectApi = {
2558
2664
  deleteProject(projectId, authorization) {
2559
2665
  return __async(this, null, function* () {
2560
2666
  const response = yield neonClientInstance.delete(
2561
- `/projects/${projectId}`,
2667
+ `/projects/${encodeURIComponent(projectId)}`,
2562
2668
  getNeonClientConfig(__spreadProps(__spreadValues({}, authorization), {
2563
2669
  ensureAuthorizationToken: true
2564
2670
  }))
@@ -2724,7 +2830,7 @@ var mailchimpListsWebhooksApi = {
2724
2830
  list(listId, authorization) {
2725
2831
  return __async(this, null, function* () {
2726
2832
  const response = yield mailchimpClientInstance.get(
2727
- `/lists/${listId}/webhooks`,
2833
+ `/lists/${encodeURIComponent(listId)}/webhooks`,
2728
2834
  getMailchimpClientConfig(__spreadProps(__spreadValues({}, authorization), {
2729
2835
  ensureAuthorizationToken: true
2730
2836
  }))
@@ -2735,7 +2841,7 @@ var mailchimpListsWebhooksApi = {
2735
2841
  add(listId, webhook, authorization) {
2736
2842
  return __async(this, null, function* () {
2737
2843
  const response = yield mailchimpClientInstance.post(
2738
- `/lists/${listId}/webhooks`,
2844
+ `/lists/${encodeURIComponent(listId)}/webhooks`,
2739
2845
  webhook,
2740
2846
  getMailchimpClientConfig(__spreadProps(__spreadValues({}, authorization), {
2741
2847
  ensureAuthorizationToken: true
@@ -2747,7 +2853,7 @@ var mailchimpListsWebhooksApi = {
2747
2853
  delete(listId, webhookId, authorization) {
2748
2854
  return __async(this, null, function* () {
2749
2855
  yield mailchimpClientInstance.delete(
2750
- `/lists/${listId}/webhooks/${webhookId}`,
2856
+ `/lists/${encodeURIComponent(listId)}/webhooks/${webhookId}`,
2751
2857
  getMailchimpClientConfig(__spreadProps(__spreadValues({}, authorization), {
2752
2858
  ensureAuthorizationToken: true
2753
2859
  }))
@@ -2921,7 +3027,7 @@ var shopifyWebhooksApi = {
2921
3027
  unregister(webhookId, authorization) {
2922
3028
  return __async(this, null, function* () {
2923
3029
  yield shopifyClientInstance.delete(
2924
- `/webhooks/${webhookId}.json`,
3030
+ `/webhooks/${encodeURIComponent(webhookId)}.json`,
2925
3031
  getShopifyClientConfig(__spreadProps(__spreadValues({}, authorization), {
2926
3032
  ensureAuthorizationToken: true
2927
3033
  }))
@@ -2944,7 +3050,9 @@ var shopifyApi = {
2944
3050
  grant_type: "authorization_code"
2945
3051
  });
2946
3052
  const response = yield axios15.post(
2947
- `https://${shop}.myshopify.com/admin/oauth/access_token`,
3053
+ `https://${encodeURIComponent(
3054
+ shop
3055
+ )}.myshopify.com/admin/oauth/access_token`,
2948
3056
  data,
2949
3057
  {
2950
3058
  headers: {
@@ -3618,7 +3726,7 @@ var platformAccountsAccountApi = {
3618
3726
  getAccount(accountId, authorization) {
3619
3727
  return __async(this, null, function* () {
3620
3728
  return platformAccountsClientInstance.get(
3621
- `/v2/accounts/${accountId}`,
3729
+ `/v2/accounts/${encodeURIComponent(accountId)}`,
3622
3730
  {
3623
3731
  authorization,
3624
3732
  customErrorMessage: "Account couldn't be fetched."
@@ -3643,19 +3751,16 @@ var platformAccountsAccountApi = {
3643
3751
  var platformAccountsClientApi = {
3644
3752
  getClients(authorization) {
3645
3753
  return __async(this, null, function* () {
3646
- return platformAccountsClientInstance.get(
3647
- `/v2/clients`,
3648
- {
3649
- authorization,
3650
- customErrorMessage: "Clients couldn't be fetched."
3651
- }
3652
- );
3754
+ return platformAccountsClientInstance.get(`/v2/clients`, {
3755
+ authorization,
3756
+ customErrorMessage: "Clients couldn't be fetched."
3757
+ });
3653
3758
  });
3654
3759
  },
3655
3760
  getClient(clientId, authorization) {
3656
3761
  return __async(this, null, function* () {
3657
3762
  return platformAccountsClientInstance.get(
3658
- `/v2/clients/${clientId}`,
3763
+ `/v2/clients/${encodeURIComponent(clientId)}`,
3659
3764
  {
3660
3765
  authorization,
3661
3766
  customErrorMessage: "Client couldn't be fetched."
@@ -3674,7 +3779,7 @@ var platformAccountsClientApi = {
3674
3779
  updateClient(clientId, payload, authorization) {
3675
3780
  return __async(this, null, function* () {
3676
3781
  return platformAccountsClientInstance.patch(
3677
- `/v2/clients/${clientId}`,
3782
+ `/v2/clients/${encodeURIComponent(clientId)}`,
3678
3783
  payload,
3679
3784
  {
3680
3785
  authorization,
@@ -3686,7 +3791,7 @@ var platformAccountsClientApi = {
3686
3791
  deleteClient(clientId, authorization) {
3687
3792
  return __async(this, null, function* () {
3688
3793
  return platformAccountsClientInstance.delete(
3689
- `/v2/clients/${clientId}`,
3794
+ `/v2/clients/${encodeURIComponent(clientId)}`,
3690
3795
  void 0,
3691
3796
  {
3692
3797
  authorization,
@@ -3698,7 +3803,7 @@ var platformAccountsClientApi = {
3698
3803
  updateClientScopes(clientId, scopes, authorization) {
3699
3804
  return __async(this, null, function* () {
3700
3805
  return platformAccountsClientInstance.put(
3701
- `/v2/clients/${clientId}/scopes`,
3806
+ `/v2/clients/${encodeURIComponent(clientId)}/scopes`,
3702
3807
  scopes.map((scope) => ({
3703
3808
  scope: scope.scope,
3704
3809
  required: scope.required
@@ -3713,7 +3818,7 @@ var platformAccountsClientApi = {
3713
3818
  deleteClientScopes(clientId, scopes, authorization) {
3714
3819
  return __async(this, null, function* () {
3715
3820
  return platformAccountsClientInstance.delete(
3716
- `/v2/clients/${clientId}/scopes`,
3821
+ `/v2/clients/${encodeURIComponent(clientId)}/scopes`,
3717
3822
  {
3718
3823
  data: scopes.map((scope) => ({
3719
3824
  scope: scope.scope,
@@ -3791,7 +3896,7 @@ var platformAccountsPersonalAccessTokenApi = {
3791
3896
  deletePersonalAccessToken(id, authorization) {
3792
3897
  return __async(this, null, function* () {
3793
3898
  return platformAccountsClientInstance.delete(
3794
- `/v2/personal_token/${id}`,
3899
+ `/v2/personal_token/${encodeURIComponent(id)}`,
3795
3900
  void 0,
3796
3901
  {
3797
3902
  authorization,
@@ -4133,7 +4238,7 @@ var platformDpsApplicationAuthorizationApi = {
4133
4238
  createAuth(appId, payload, authorization) {
4134
4239
  return __async(this, null, function* () {
4135
4240
  yield platformDpsClientInstance.post(
4136
- `/v2/applications/${appId}/authorization`,
4241
+ `/v2/applications/${encodeURIComponent(appId)}/authorization`,
4137
4242
  payload,
4138
4243
  getPlatformDpsClientConfig(authorization)
4139
4244
  ).catch((error) => {
@@ -4146,7 +4251,7 @@ var platformDpsApplicationAuthorizationApi = {
4146
4251
  deleteAuth(appId, authorization) {
4147
4252
  return __async(this, null, function* () {
4148
4253
  yield platformDpsClientInstance.delete(
4149
- `/v2/applications/${appId}/authorization`,
4254
+ `/v2/applications/${encodeURIComponent(appId)}/authorization`,
4150
4255
  getPlatformDpsClientConfig(authorization)
4151
4256
  ).catch((error) => {
4152
4257
  throw error.withCustomMessage(
@@ -4229,7 +4334,7 @@ var platformDpsApplicationAutoReviewApi = {
4229
4334
  getAutoReview(appId, authorization) {
4230
4335
  return __async(this, null, function* () {
4231
4336
  return platformDpsClientInstance.get(
4232
- `/v2/applications/${appId}/auto-review`,
4337
+ `/v2/applications/${encodeURIComponent(appId)}/auto-review`,
4233
4338
  getPlatformDpsClientConfig(authorization)
4234
4339
  ).then(({ status, data }) => {
4235
4340
  if (status === 204) {
@@ -4246,7 +4351,7 @@ var platformDpsApplicationAutoReviewApi = {
4246
4351
  submitAutoReview(appId, payload, authorization) {
4247
4352
  return __async(this, null, function* () {
4248
4353
  yield platformDpsClientInstance.post(
4249
- `/v2/applications/${appId}/auto-review`,
4354
+ `/v2/applications/${encodeURIComponent(appId)}/auto-review`,
4250
4355
  payload,
4251
4356
  getPlatformDpsClientConfig(authorization)
4252
4357
  ).catch((error) => {
@@ -4263,7 +4368,9 @@ var platformDpsApplicationChatActionsApi = {
4263
4368
  createChatAction(appId, payload, authorization) {
4264
4369
  return __async(this, null, function* () {
4265
4370
  yield platformDpsClientInstance.put(
4266
- `/v2/applications/${appId}/chat-actions/${payload.id}`,
4371
+ `/v2/applications/${encodeURIComponent(
4372
+ appId
4373
+ )}/chat-actions/${encodeURIComponent(payload.id)}`,
4267
4374
  payload,
4268
4375
  getPlatformDpsClientConfig(authorization)
4269
4376
  ).catch((error) => {
@@ -4276,7 +4383,9 @@ var platformDpsApplicationChatActionsApi = {
4276
4383
  updateChatAction(appId, payload, authorization) {
4277
4384
  return __async(this, null, function* () {
4278
4385
  yield platformDpsClientInstance.patch(
4279
- `/v2/applications/${appId}/chat-actions/${payload.id}`,
4386
+ `/v2/applications/${encodeURIComponent(
4387
+ appId
4388
+ )}/chat-actions/${encodeURIComponent(payload.id)}`,
4280
4389
  payload,
4281
4390
  getPlatformDpsClientConfig(authorization)
4282
4391
  ).catch((error) => {
@@ -4289,7 +4398,9 @@ var platformDpsApplicationChatActionsApi = {
4289
4398
  deleteChatAction(appId, chatActionId, authorization) {
4290
4399
  return __async(this, null, function* () {
4291
4400
  yield platformDpsClientInstance.delete(
4292
- `/v2/applications/${appId}/chat-actions/${chatActionId}`,
4401
+ `/v2/applications/${encodeURIComponent(
4402
+ appId
4403
+ )}/chat-actions/${encodeURIComponent(chatActionId)}`,
4293
4404
  __spreadValues({}, getPlatformDpsClientConfig(authorization))
4294
4405
  ).catch((error) => {
4295
4406
  throw error.withCustomMessage(
@@ -4304,7 +4415,9 @@ var platformDpsApplicationChatActionsApi = {
4304
4415
  var platformDpsApplicationChatBoostersApi = {
4305
4416
  createChatBooster(appId, chatBoosterId, payload, authorization) {
4306
4417
  return platformDpsClientInstance.put(
4307
- `/v2/applications/${appId}/chat-boosters/${chatBoosterId}`,
4418
+ `/v2/applications/${encodeURIComponent(
4419
+ appId
4420
+ )}/chat-boosters/${encodeURIComponent(chatBoosterId)}`,
4308
4421
  payload,
4309
4422
  getPlatformDpsClientConfig(authorization)
4310
4423
  ).catch((error) => {
@@ -4316,7 +4429,9 @@ var platformDpsApplicationChatBoostersApi = {
4316
4429
  updateChatBooster(appId, chatBoosterId, payload, authorization) {
4317
4430
  return __async(this, null, function* () {
4318
4431
  return platformDpsClientInstance.put(
4319
- `/v2/applications/${appId}/chat-boosters/${chatBoosterId}`,
4432
+ `/v2/applications/${encodeURIComponent(
4433
+ appId
4434
+ )}/chat-boosters/${encodeURIComponent(chatBoosterId)}`,
4320
4435
  payload,
4321
4436
  getPlatformDpsClientConfig(authorization)
4322
4437
  ).catch((error) => {
@@ -4329,7 +4444,9 @@ var platformDpsApplicationChatBoostersApi = {
4329
4444
  deleteChatBooster(appId, chatBoosterId, authorization) {
4330
4445
  return __async(this, null, function* () {
4331
4446
  return platformDpsClientInstance.delete(
4332
- `/v2/applications/${appId}/chat-boosters/${chatBoosterId}`,
4447
+ `/v2/applications/${encodeURIComponent(
4448
+ appId
4449
+ )}/chat-boosters/${encodeURIComponent(chatBoosterId)}`,
4333
4450
  getPlatformDpsClientConfig(authorization)
4334
4451
  ).catch((error) => {
4335
4452
  throw error.withCustomMessage(
@@ -4345,7 +4462,7 @@ var platformDpsApplicationDisplayApi = {
4345
4462
  updateVersionHistory(appId, payload, authorization) {
4346
4463
  return __async(this, null, function* () {
4347
4464
  yield platformDpsClientInstance.put(
4348
- `/v2/applications/${appId}/display/changelog`,
4465
+ `/v2/applications/${encodeURIComponent(appId)}/display/changelog`,
4349
4466
  payload,
4350
4467
  getPlatformDpsClientConfig(authorization)
4351
4468
  ).catch((error) => {
@@ -4358,7 +4475,7 @@ var platformDpsApplicationDisplayApi = {
4358
4475
  updateBasicDetails(appId, basicDetails, authorization) {
4359
4476
  return __async(this, null, function* () {
4360
4477
  yield platformDpsClientInstance.put(
4361
- `/v2/applications/${appId}/display`,
4478
+ `/v2/applications/${encodeURIComponent(appId)}/display`,
4362
4479
  basicDetails,
4363
4480
  getPlatformDpsClientConfig(authorization)
4364
4481
  ).catch((error) => {
@@ -4371,7 +4488,7 @@ var platformDpsApplicationDisplayApi = {
4371
4488
  patchBasicDetails(appId, basicDetails, authorization) {
4372
4489
  return __async(this, null, function* () {
4373
4490
  yield platformDpsClientInstance.patch(
4374
- `/v2/applications/${appId}/display`,
4491
+ `/v2/applications/${encodeURIComponent(appId)}/display`,
4375
4492
  basicDetails,
4376
4493
  getPlatformDpsClientConfig(authorization)
4377
4494
  ).catch((error) => {
@@ -4384,7 +4501,7 @@ var platformDpsApplicationDisplayApi = {
4384
4501
  updateOverview(appId, data, authorization) {
4385
4502
  return __async(this, null, function* () {
4386
4503
  yield platformDpsClientInstance.put(
4387
- `/v2/applications/${appId}/listing/overview`,
4504
+ `/v2/applications/${encodeURIComponent(appId)}/listing/overview`,
4388
4505
  data,
4389
4506
  getPlatformDpsClientConfig(authorization)
4390
4507
  ).catch((error) => {
@@ -4397,7 +4514,7 @@ var platformDpsApplicationDisplayApi = {
4397
4514
  updateTutorialAndSupport(appId, data, authorization) {
4398
4515
  return __async(this, null, function* () {
4399
4516
  yield platformDpsClientInstance.put(
4400
- `/v2/applications/${appId}/listing/support`,
4517
+ `/v2/applications/${encodeURIComponent(appId)}/listing/support`,
4401
4518
  data,
4402
4519
  getPlatformDpsClientConfig(authorization)
4403
4520
  ).catch((error) => {
@@ -4410,7 +4527,7 @@ var platformDpsApplicationDisplayApi = {
4410
4527
  updateAppIcon(appId, payload, authorization) {
4411
4528
  return __async(this, null, function* () {
4412
4529
  yield platformDpsClientInstance.put(
4413
- `/v2/applications/${appId}/display/icons`,
4530
+ `/v2/applications/${encodeURIComponent(appId)}/display/icons`,
4414
4531
  payload,
4415
4532
  getPlatformDpsClientConfig(authorization)
4416
4533
  ).catch((error) => {
@@ -4423,7 +4540,7 @@ var platformDpsApplicationDisplayApi = {
4423
4540
  updateDisplayImages(appId, screenshots, authorization) {
4424
4541
  return __async(this, null, function* () {
4425
4542
  yield platformDpsClientInstance.put(
4426
- `/v2/applications/${appId}/screenshots/commit`,
4543
+ `/v2/applications/${encodeURIComponent(appId)}/screenshots/commit`,
4427
4544
  screenshots,
4428
4545
  getPlatformDpsClientConfig(authorization)
4429
4546
  ).catch((error) => {
@@ -4436,7 +4553,7 @@ var platformDpsApplicationDisplayApi = {
4436
4553
  updateDisplayFeatures(appId, features, authorization) {
4437
4554
  return __async(this, null, function* () {
4438
4555
  yield platformDpsClientInstance.put(
4439
- `/v2/applications/${appId}/features`,
4556
+ `/v2/applications/${encodeURIComponent(appId)}/features`,
4440
4557
  features,
4441
4558
  getPlatformDpsClientConfig(authorization)
4442
4559
  ).catch((error) => {
@@ -4449,7 +4566,7 @@ var platformDpsApplicationDisplayApi = {
4449
4566
  updateDisplayBenefits(appId, benefits, authorization) {
4450
4567
  return __async(this, null, function* () {
4451
4568
  yield platformDpsClientInstance.put(
4452
- `/v2/applications/${appId}/benefits`,
4569
+ `/v2/applications/${encodeURIComponent(appId)}/benefits`,
4453
4570
  benefits,
4454
4571
  getPlatformDpsClientConfig(authorization)
4455
4572
  ).catch((error) => {
@@ -4466,7 +4583,7 @@ var platformDpsApplicationEventApi = {
4466
4583
  getEvents(appId, authorization) {
4467
4584
  return __async(this, null, function* () {
4468
4585
  return platformDpsClientInstance.get(
4469
- `/v2/applications/${appId}/events?limit=300`,
4586
+ `/v2/applications/${encodeURIComponent(appId)}/events?limit=300`,
4470
4587
  getPlatformDpsClientConfig(authorization)
4471
4588
  ).then(({ data }) => data).catch((error) => {
4472
4589
  throw error.withCustomMessage(
@@ -4482,7 +4599,7 @@ var platformDpsApplicationInfrastructureBlocksApi = {
4482
4599
  getBlocks(appId, authorization) {
4483
4600
  return __async(this, null, function* () {
4484
4601
  const response = yield platformDpsClientInstance.get(
4485
- `/v2/applications/${appId}/infrastructure/blocks`,
4602
+ `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
4486
4603
  getPlatformDpsClientConfig(authorization)
4487
4604
  );
4488
4605
  delete response.data.appId;
@@ -4492,7 +4609,7 @@ var platformDpsApplicationInfrastructureBlocksApi = {
4492
4609
  updateBlocks(appId, payload, authorization) {
4493
4610
  return __async(this, null, function* () {
4494
4611
  yield platformDpsClientInstance.patch(
4495
- `/v2/applications/${appId}/infrastructure/blocks`,
4612
+ `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
4496
4613
  payload,
4497
4614
  getPlatformDpsClientConfig(authorization)
4498
4615
  );
@@ -4501,7 +4618,9 @@ var platformDpsApplicationInfrastructureBlocksApi = {
4501
4618
  deleteBlock(appId, block, authorization) {
4502
4619
  return __async(this, null, function* () {
4503
4620
  yield platformDpsClientInstance.delete(
4504
- `/v2/applications/${appId}/infrastructure/blocks/${block}`,
4621
+ `/v2/applications/${encodeURIComponent(
4622
+ appId
4623
+ )}/infrastructure/blocks/${encodeURIComponent(block)}`,
4505
4624
  getPlatformDpsClientConfig(authorization)
4506
4625
  );
4507
4626
  });
@@ -4509,7 +4628,7 @@ var platformDpsApplicationInfrastructureBlocksApi = {
4509
4628
  updateRepository(appId, payload, authorization) {
4510
4629
  return __async(this, null, function* () {
4511
4630
  yield platformDpsClientInstance.patch(
4512
- `/v2/applications/${appId}/infrastructure/blocks`,
4631
+ `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
4513
4632
  {
4514
4633
  appId,
4515
4634
  repository: {
@@ -4524,7 +4643,7 @@ var platformDpsApplicationInfrastructureBlocksApi = {
4524
4643
  return __async(this, null, function* () {
4525
4644
  const config = payload.customUrl ? { custom: { url: payload.customUrl } } : { custom: null };
4526
4645
  yield platformDpsClientInstance.patch(
4527
- `/v2/applications/${appId}/infrastructure/blocks`,
4646
+ `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
4528
4647
  {
4529
4648
  appId,
4530
4649
  deployment: {
@@ -4539,7 +4658,7 @@ var platformDpsApplicationInfrastructureBlocksApi = {
4539
4658
  updateStorage(appId, payload, authorization) {
4540
4659
  return __async(this, null, function* () {
4541
4660
  yield platformDpsClientInstance.patch(
4542
- `/v2/applications/${appId}/infrastructure/blocks`,
4661
+ `/v2/applications/${encodeURIComponent(appId)}/infrastructure/blocks`,
4543
4662
  {
4544
4663
  appId,
4545
4664
  storage: {
@@ -4562,7 +4681,7 @@ var platformDpsApplicationInstallApi = {
4562
4681
  getInstallationsCount(appId, authorization) {
4563
4682
  return __async(this, null, function* () {
4564
4683
  return platformDpsClientInstance.get(
4565
- `/v2/applications/${appId}/installations/count`,
4684
+ `/v2/applications/${encodeURIComponent(appId)}/installations/count`,
4566
4685
  getPlatformDpsClientConfig(authorization)
4567
4686
  ).catch((error) => {
4568
4687
  throw error.withCustomMessage(
@@ -4574,7 +4693,7 @@ var platformDpsApplicationInstallApi = {
4574
4693
  install(appId, authorization) {
4575
4694
  return __async(this, null, function* () {
4576
4695
  yield platformDpsClientInstance.put(
4577
- `/v2/applications/${appId}/install`,
4696
+ `/v2/applications/${encodeURIComponent(appId)}/install`,
4578
4697
  {},
4579
4698
  getPlatformDpsClientConfig(authorization)
4580
4699
  ).catch((error) => {
@@ -4587,7 +4706,7 @@ var platformDpsApplicationInstallApi = {
4587
4706
  uninstall(appId, authorization) {
4588
4707
  return __async(this, null, function* () {
4589
4708
  yield platformDpsClientInstance.delete(
4590
- `/v2/applications/${appId}/install`,
4709
+ `/v2/applications/${encodeURIComponent(appId)}/install`,
4591
4710
  getPlatformDpsClientConfig(authorization)
4592
4711
  ).catch((error) => {
4593
4712
  throw error.withCustomMessage(
@@ -4599,7 +4718,7 @@ var platformDpsApplicationInstallApi = {
4599
4718
  updateDirectInstallationUrl(appId, payload, authorization) {
4600
4719
  return __async(this, null, function* () {
4601
4720
  yield platformDpsClientInstance.put(
4602
- `/v2/applications/${appId}/install/direct`,
4721
+ `/v2/applications/${encodeURIComponent(appId)}/install/direct`,
4603
4722
  payload,
4604
4723
  getPlatformDpsClientConfig(authorization)
4605
4724
  ).catch((error) => {
@@ -4616,7 +4735,7 @@ var platformDpsApplicationOnboardingApi = {
4616
4735
  updateOnboarding(appId, payload, authorization) {
4617
4736
  return __async(this, null, function* () {
4618
4737
  yield platformDpsClientInstance.put(
4619
- `/v2/applications/${appId}/onboarding`,
4738
+ `/v2/applications/${encodeURIComponent(appId)}/onboarding`,
4620
4739
  payload,
4621
4740
  getPlatformDpsClientConfig(authorization)
4622
4741
  ).catch((error) => {
@@ -4628,7 +4747,10 @@ var platformDpsApplicationOnboardingApi = {
4628
4747
  },
4629
4748
  deleteOnboarding(appId, authorization) {
4630
4749
  return __async(this, null, function* () {
4631
- yield platformDpsClientInstance.delete(`/v2/applications/${appId}/onboarding`, __spreadValues({}, getPlatformDpsClientConfig(authorization))).catch((error) => {
4750
+ yield platformDpsClientInstance.delete(
4751
+ `/v2/applications/${encodeURIComponent(appId)}/onboarding`,
4752
+ __spreadValues({}, getPlatformDpsClientConfig(authorization))
4753
+ ).catch((error) => {
4632
4754
  throw error.withCustomMessage(
4633
4755
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
4634
4756
  );
@@ -4643,7 +4765,7 @@ var platformDpsApplicationPaymentApi = {
4643
4765
  return __async(this, null, function* () {
4644
4766
  var _a;
4645
4767
  yield platformDpsClientInstance.put(
4646
- `/v2/applications/${appId}/payment`,
4768
+ `/v2/applications/${encodeURIComponent(appId)}/payment`,
4647
4769
  __spreadProps(__spreadValues({}, payment), {
4648
4770
  creditCardRequired: (_a = payment.creditCardRequired) != null ? _a : true
4649
4771
  }),
@@ -4658,7 +4780,7 @@ var platformDpsApplicationPaymentApi = {
4658
4780
  deletePaymentBlock(appId, authorization) {
4659
4781
  return __async(this, null, function* () {
4660
4782
  yield platformDpsClientInstance.delete(
4661
- `/v2/applications/${appId}/payment`,
4783
+ `/v2/applications/${encodeURIComponent(appId)}/payment`,
4662
4784
  getPlatformDpsClientConfig(authorization)
4663
4785
  ).catch((error) => {
4664
4786
  throw error.withCustomMessage(
@@ -4674,7 +4796,7 @@ var platformDpsApplicationProductApi = {
4674
4796
  updateProduct(appId, payload, authorization) {
4675
4797
  return __async(this, null, function* () {
4676
4798
  yield platformDpsClientInstance.put(
4677
- `/v2/applications/${appId}/product`,
4799
+ `/v2/applications/${encodeURIComponent(appId)}/product`,
4678
4800
  payload,
4679
4801
  getPlatformDpsClientConfig(authorization)
4680
4802
  ).catch((error) => {
@@ -4691,7 +4813,7 @@ var platformDpsApplicationCustomPropsApi = {
4691
4813
  createCustomProps(appId, property, authorization) {
4692
4814
  return __async(this, null, function* () {
4693
4815
  return platformDpsClientInstance.post(
4694
- `/v2/applications/${appId}/property`,
4816
+ `/v2/applications/${encodeURIComponent(appId)}/property`,
4695
4817
  property,
4696
4818
  getPlatformDpsClientConfig(authorization)
4697
4819
  ).then(({ data }) => data).catch((error) => {
@@ -4704,7 +4826,7 @@ var platformDpsApplicationCustomPropsApi = {
4704
4826
  updateCustomProps(appId, property, authorization) {
4705
4827
  return __async(this, null, function* () {
4706
4828
  return platformDpsClientInstance.put(
4707
- `/v2/applications/${appId}/property`,
4829
+ `/v2/applications/${encodeURIComponent(appId)}/property`,
4708
4830
  property,
4709
4831
  getPlatformDpsClientConfig(authorization)
4710
4832
  ).then(({ data }) => data).catch((error) => {
@@ -4716,9 +4838,12 @@ var platformDpsApplicationCustomPropsApi = {
4716
4838
  },
4717
4839
  deleteCustomProps(appId, property, authorization) {
4718
4840
  return __async(this, null, function* () {
4719
- return platformDpsClientInstance.delete(`/v2/applications/${appId}/property`, __spreadValues({
4720
- data: property
4721
- }, getPlatformDpsClientConfig(authorization))).then(({ data }) => data).catch((error) => {
4841
+ return platformDpsClientInstance.delete(
4842
+ `/v2/applications/${encodeURIComponent(appId)}/property`,
4843
+ __spreadValues({
4844
+ data: property
4845
+ }, getPlatformDpsClientConfig(authorization))
4846
+ ).then(({ data }) => data).catch((error) => {
4722
4847
  throw error.withCustomMessage(
4723
4848
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
4724
4849
  );
@@ -4732,7 +4857,7 @@ var platformDpsApplicationResourcesApi = {
4732
4857
  getAppUpgrades(appId, authorization) {
4733
4858
  return __async(this, null, function* () {
4734
4859
  return platformDpsClientInstance.get(
4735
- `/v2/applications/${appId}/resources`,
4860
+ `/v2/applications/${encodeURIComponent(appId)}/resources`,
4736
4861
  getPlatformDpsClientConfig(authorization)
4737
4862
  ).catch((error) => {
4738
4863
  throw error.withCustomMessage(
@@ -4744,7 +4869,7 @@ var platformDpsApplicationResourcesApi = {
4744
4869
  createAppUpgrade(appId, body, authorization) {
4745
4870
  return __async(this, null, function* () {
4746
4871
  return platformDpsClientInstance.put(
4747
- `/v2/applications/${appId}/resources`,
4872
+ `/v2/applications/${encodeURIComponent(appId)}/resources`,
4748
4873
  body,
4749
4874
  getPlatformDpsClientConfig(authorization)
4750
4875
  ).catch((error) => {
@@ -4757,7 +4882,7 @@ var platformDpsApplicationResourcesApi = {
4757
4882
  updateAppUpgrade(appId, body, authorization) {
4758
4883
  return __async(this, null, function* () {
4759
4884
  return platformDpsClientInstance.put(
4760
- `/v2/applications/${appId}/resources`,
4885
+ `/v2/applications/${encodeURIComponent(appId)}/resources`,
4761
4886
  body,
4762
4887
  getPlatformDpsClientConfig(authorization)
4763
4888
  ).catch((error) => {
@@ -4770,7 +4895,9 @@ var platformDpsApplicationResourcesApi = {
4770
4895
  deleteAppUpgrade(appId, resourceId, authorization) {
4771
4896
  return __async(this, null, function* () {
4772
4897
  return platformDpsClientInstance.delete(
4773
- `/v2/applications/${appId}/resources/${resourceId}`,
4898
+ `/v2/applications/${encodeURIComponent(
4899
+ appId
4900
+ )}/resources/${encodeURIComponent(resourceId)}`,
4774
4901
  getPlatformDpsClientConfig(authorization)
4775
4902
  ).catch((error) => {
4776
4903
  throw error.withCustomMessage(
@@ -4782,7 +4909,9 @@ var platformDpsApplicationResourcesApi = {
4782
4909
  copyUpgrade(sourceAppId, destinationAppId, authorization) {
4783
4910
  return __async(this, null, function* () {
4784
4911
  return platformDpsClientInstance.put(
4785
- `/v2/applications/${sourceAppId}/resources/copy?application=${destinationAppId}`,
4912
+ `/v2/applications/${encodeURIComponent(
4913
+ sourceAppId
4914
+ )}/resources/copy?application=${encodeURIComponent(destinationAppId)}`,
4786
4915
  {},
4787
4916
  getPlatformDpsClientConfig(authorization)
4788
4917
  ).catch((error) => {
@@ -4799,7 +4928,7 @@ var platformDpsApplicationReviewApi = {
4799
4928
  createSubmission(appId, payload, authorization) {
4800
4929
  return __async(this, null, function* () {
4801
4930
  return platformDpsClientInstance.put(
4802
- `/v2/applications/${appId}/review/submit`,
4931
+ `/v2/applications/${encodeURIComponent(appId)}/review/submit`,
4803
4932
  payload,
4804
4933
  getPlatformDpsClientConfig(authorization)
4805
4934
  ).then(({ data }) => data).catch((error) => {
@@ -4812,7 +4941,7 @@ var platformDpsApplicationReviewApi = {
4812
4941
  cancelSubmission(appId, authorization) {
4813
4942
  return __async(this, null, function* () {
4814
4943
  return platformDpsClientInstance.put(
4815
- `/v2/applications/${appId}/review/cancel`,
4944
+ `/v2/applications/${encodeURIComponent(appId)}/review/cancel`,
4816
4945
  getPlatformDpsClientConfig(authorization)
4817
4946
  ).then(({ data }) => data).catch((error) => {
4818
4947
  throw error.withCustomMessage(
@@ -4828,7 +4957,7 @@ var platformDpsApplicationStatsApi = {
4828
4957
  getStats(appId, authorization) {
4829
4958
  return __async(this, null, function* () {
4830
4959
  return platformDpsClientInstance.get(
4831
- `/v2/applications/${appId}/stats`,
4960
+ `/v2/applications/${encodeURIComponent(appId)}/stats`,
4832
4961
  getPlatformDpsClientConfig(authorization)
4833
4962
  ).catch((error) => {
4834
4963
  throw error.withCustomMessage(
@@ -4844,7 +4973,7 @@ var platformDpsApplicationWebhooksApi = {
4844
4973
  updateAppWebhooks(appId, payload, authorization) {
4845
4974
  return __async(this, null, function* () {
4846
4975
  yield platformDpsClientInstance.put(
4847
- `/v2/applications/${appId}/webhook`,
4976
+ `/v2/applications/${encodeURIComponent(appId)}/webhook`,
4848
4977
  payload,
4849
4978
  getPlatformDpsClientConfig(authorization)
4850
4979
  ).catch((error) => {
@@ -4857,7 +4986,7 @@ var platformDpsApplicationWebhooksApi = {
4857
4986
  deleteAppWebhooks(appId, authorization) {
4858
4987
  return __async(this, null, function* () {
4859
4988
  yield platformDpsClientInstance.delete(
4860
- `/v2/applications/${appId}/webhook`,
4989
+ `/v2/applications/${encodeURIComponent(appId)}/webhook`,
4861
4990
  getPlatformDpsClientConfig(authorization)
4862
4991
  ).catch((error) => {
4863
4992
  throw error.withCustomMessage(
@@ -4869,7 +4998,7 @@ var platformDpsApplicationWebhooksApi = {
4869
4998
  getChatWebhook(appId, authorization) {
4870
4999
  return __async(this, null, function* () {
4871
5000
  return platformDpsClientInstance.get(
4872
- `/v2/applications/${appId}/chat-webhooks`,
5001
+ `/v2/applications/${encodeURIComponent(appId)}/chat-webhooks`,
4873
5002
  getPlatformDpsClientConfig(authorization)
4874
5003
  ).catch((error) => {
4875
5004
  throw error.withCustomMessage(
@@ -4881,7 +5010,7 @@ var platformDpsApplicationWebhooksApi = {
4881
5010
  updateChatWebhook(appId, payload, authorization) {
4882
5011
  return __async(this, null, function* () {
4883
5012
  yield platformDpsClientInstance.post(
4884
- `/v2/applications/${appId}/chat-webhooks`,
5013
+ `/v2/applications/${encodeURIComponent(appId)}/chat-webhooks`,
4885
5014
  payload,
4886
5015
  getPlatformDpsClientConfig(authorization)
4887
5016
  ).catch((error) => {
@@ -4893,7 +5022,10 @@ var platformDpsApplicationWebhooksApi = {
4893
5022
  },
4894
5023
  deleteChatWebhook(appId, authorization) {
4895
5024
  return __async(this, null, function* () {
4896
- yield platformDpsClientInstance.delete(`/v2/applications/${appId}/chat-webhooks`, __spreadValues({}, getPlatformDpsClientConfig(authorization))).catch((error) => {
5025
+ yield platformDpsClientInstance.delete(
5026
+ `/v2/applications/${encodeURIComponent(appId)}/chat-webhooks`,
5027
+ __spreadValues({}, getPlatformDpsClientConfig(authorization))
5028
+ ).catch((error) => {
4897
5029
  throw error.withCustomMessage(
4898
5030
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
4899
5031
  );
@@ -4907,7 +5039,9 @@ var platformDpsApplicationWidgetsApi = {
4907
5039
  createWidget(appId, widgetId, widget, authorization) {
4908
5040
  return __async(this, null, function* () {
4909
5041
  yield platformDpsClientInstance.put(
4910
- `/v2/applications/${appId}/widgets/${widgetId}`,
5042
+ `/v2/applications/${encodeURIComponent(
5043
+ appId
5044
+ )}/widgets/${encodeURIComponent(widgetId)}`,
4911
5045
  widget,
4912
5046
  getPlatformDpsClientConfig(authorization)
4913
5047
  ).catch((error) => {
@@ -4920,7 +5054,9 @@ var platformDpsApplicationWidgetsApi = {
4920
5054
  updateWidget(appId, widgetId, widget, authorization) {
4921
5055
  return __async(this, null, function* () {
4922
5056
  yield platformDpsClientInstance.patch(
4923
- `/v2/applications/${appId}/widgets/${widgetId}`,
5057
+ `/v2/applications/${encodeURIComponent(
5058
+ appId
5059
+ )}/widgets/${encodeURIComponent(widgetId)}`,
4924
5060
  widget,
4925
5061
  getPlatformDpsClientConfig(authorization)
4926
5062
  ).catch((error) => {
@@ -4932,7 +5068,12 @@ var platformDpsApplicationWidgetsApi = {
4932
5068
  },
4933
5069
  deleteWidget(appId, widgetId, authorization) {
4934
5070
  return __async(this, null, function* () {
4935
- yield platformDpsClientInstance.delete(`/v2/applications/${appId}/widgets/${widgetId}`, __spreadValues({}, getPlatformDpsClientConfig(authorization))).catch((error) => {
5071
+ yield platformDpsClientInstance.delete(
5072
+ `/v2/applications/${encodeURIComponent(
5073
+ appId
5074
+ )}/widgets/${encodeURIComponent(widgetId)}`,
5075
+ __spreadValues({}, getPlatformDpsClientConfig(authorization))
5076
+ ).catch((error) => {
4936
5077
  throw error.withCustomMessage(
4937
5078
  `${API_NOTIFICATIONS.BUILDING_BLOCKS.FAILURE.DELETED} [${error.message}]`
4938
5079
  );
@@ -4964,7 +5105,7 @@ var platformDpsApplicationApi = {
4964
5105
  return __async(this, null, function* () {
4965
5106
  try {
4966
5107
  const response = yield platformDpsClientInstance.get(
4967
- `/v2/applications/${appId}`,
5108
+ `/v2/applications/${encodeURIComponent(appId)}`,
4968
5109
  getPlatformDpsClientConfig(authorization)
4969
5110
  );
4970
5111
  return response.data;
@@ -4994,7 +5135,7 @@ var platformDpsApplicationApi = {
4994
5135
  fork(appId, authorization) {
4995
5136
  return __async(this, null, function* () {
4996
5137
  return platformDpsClientInstance.post(
4997
- `/v2/applications/${appId}/fork`,
5138
+ `/v2/applications/${encodeURIComponent(appId)}/fork`,
4998
5139
  {},
4999
5140
  getPlatformDpsClientConfig(authorization)
5000
5141
  ).catch((error) => {
@@ -5007,7 +5148,7 @@ var platformDpsApplicationApi = {
5007
5148
  publish(appId, authorization) {
5008
5149
  return __async(this, null, function* () {
5009
5150
  return platformDpsClientInstance.put(
5010
- `/v2/applications/${appId}/publish`,
5151
+ `/v2/applications/${encodeURIComponent(appId)}/publish`,
5011
5152
  {},
5012
5153
  getPlatformDpsClientConfig(authorization)
5013
5154
  ).catch((error) => {
@@ -5019,7 +5160,7 @@ var platformDpsApplicationApi = {
5019
5160
  },
5020
5161
  updateQL(appId) {
5021
5162
  return __async(this, null, function* () {
5022
- yield platformDpsClientInstance.patch(`/v2/applications/${appId}/qualified-lead`).catch((error) => {
5163
+ yield platformDpsClientInstance.patch(`/v2/applications/${encodeURIComponent(appId)}/qualified-lead`).catch((error) => {
5023
5164
  throw error.withCustomMessage(
5024
5165
  `QL couldn't be updated. [${error.message}]`
5025
5166
  );
@@ -5029,7 +5170,7 @@ var platformDpsApplicationApi = {
5029
5170
  deleteApp(appId, authorization) {
5030
5171
  return __async(this, null, function* () {
5031
5172
  yield platformDpsClientInstance.delete(
5032
- `/v2/applications/${appId}`,
5173
+ `/v2/applications/${encodeURIComponent(appId)}`,
5033
5174
  getPlatformDpsClientConfig(authorization)
5034
5175
  ).catch((error) => {
5035
5176
  throw error.withCustomMessage(
@@ -5040,7 +5181,7 @@ var platformDpsApplicationApi = {
5040
5181
  },
5041
5182
  createAiContent(appId, appName, appSummary) {
5042
5183
  return __async(this, null, function* () {
5043
- return platformDpsClientInstance.post(`/v2/ai/application/${appId}/content`, {
5184
+ return platformDpsClientInstance.post(`/v2/ai/application/${encodeURIComponent(appId)}/content`, {
5044
5185
  name: appName,
5045
5186
  summary: appSummary
5046
5187
  }).catch((error) => {
@@ -5208,7 +5349,7 @@ var platformDpsDeveloperApi = {
5208
5349
  }
5209
5350
  }
5210
5351
  return platformDpsClientInstance.get(
5211
- `/v2/developers/${userId}/account/ledger${params}`,
5352
+ `/v2/developers/${encodeURIComponent(userId)}/account/ledger${params}`,
5212
5353
  getPlatformDpsClientConfig(authorization)
5213
5354
  ).then(({ data }) => data).catch((error) => {
5214
5355
  throw error.withCustomMessage(
@@ -5224,7 +5365,9 @@ var platformDpsDeveloperApi = {
5224
5365
  userId
5225
5366
  }, authorization) {
5226
5367
  return platformDpsClientInstance.patch(
5227
- `/v2/developers/${userId}/account/withdrawal/request`,
5368
+ `/v2/developers/${encodeURIComponent(
5369
+ userId
5370
+ )}/account/withdrawal/request`,
5228
5371
  { amount, note },
5229
5372
  getPlatformDpsClientConfig(authorization)
5230
5373
  ).then(({ data }) => data).catch((error) => {
@@ -5477,11 +5620,21 @@ var getRegion2 = (token) => {
5477
5620
  return region;
5478
5621
  }
5479
5622
  };
5480
- var AdapterApiError = class extends ApiErrorBase {
5623
+ var AdapterApiError = class _AdapterApiError extends ApiErrorBase {
5481
5624
  constructor() {
5482
5625
  super(...arguments);
5483
5626
  this.name = "adapter";
5484
5627
  }
5628
+ static notFound(message) {
5629
+ return new _AdapterApiError(
5630
+ message != null ? message : "Not found",
5631
+ {
5632
+ errorCode: "not_found",
5633
+ errorMessage: "Not found"
5634
+ },
5635
+ 404
5636
+ );
5637
+ }
5485
5638
  };
5486
5639
  var platformAdapterClientInstance = axios18.create({
5487
5640
  baseURL: "https://platform.labs.text.com/console-adapter/api",
@@ -5695,7 +5848,7 @@ var platformAdapterAppAuthorizationApi = {
5695
5848
  get(appId, authorization) {
5696
5849
  return __async(this, null, function* () {
5697
5850
  return platformAdapterClientInstance.get(
5698
- `/console/app/${appId}/blocks/authorization`,
5851
+ `/console/app/${encodeURIComponent(appId)}/blocks/authorization`,
5699
5852
  getPlatformAdapterClientDefaultConfig(authorization)
5700
5853
  );
5701
5854
  });
@@ -5703,7 +5856,7 @@ var platformAdapterAppAuthorizationApi = {
5703
5856
  add(payload, authorization) {
5704
5857
  return __async(this, null, function* () {
5705
5858
  return platformAdapterClientInstance.post(
5706
- `/console/app/${payload.appId}/blocks/authorization`,
5859
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/authorization`,
5707
5860
  payload,
5708
5861
  getPlatformAdapterClientDefaultConfig(authorization)
5709
5862
  );
@@ -5712,7 +5865,7 @@ var platformAdapterAppAuthorizationApi = {
5712
5865
  update(payload, authorization) {
5713
5866
  return __async(this, null, function* () {
5714
5867
  return platformAdapterClientInstance.put(
5715
- `/console/app/${payload.appId}/blocks/authorization`,
5868
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/authorization`,
5716
5869
  payload,
5717
5870
  getPlatformAdapterClientDefaultConfig(authorization)
5718
5871
  );
@@ -5721,7 +5874,7 @@ var platformAdapterAppAuthorizationApi = {
5721
5874
  remove(payload, authorization) {
5722
5875
  return __async(this, null, function* () {
5723
5876
  return platformAdapterClientInstance.delete(
5724
- `/console/app/${payload.appId}/blocks/authorization`,
5877
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/authorization`,
5725
5878
  getPlatformAdapterClientDefaultConfig(authorization)
5726
5879
  );
5727
5880
  });
@@ -5733,7 +5886,7 @@ var platformAdapterAppDeploymentApi = {
5733
5886
  getAggregate(appId, authorization) {
5734
5887
  return __async(this, null, function* () {
5735
5888
  return platformAdapterClientInstance.get(
5736
- `/console/app/${appId}/blocks/deployment/aggregate`,
5889
+ `/console/app/${encodeURIComponent(appId)}/blocks/deployment/aggregate`,
5737
5890
  getPlatformAdapterClientDefaultConfig(authorization)
5738
5891
  );
5739
5892
  });
@@ -5741,7 +5894,7 @@ var platformAdapterAppDeploymentApi = {
5741
5894
  get(appId, authorization) {
5742
5895
  return __async(this, null, function* () {
5743
5896
  return platformAdapterClientInstance.get(
5744
- `/console/app/${appId}/blocks/deployment`,
5897
+ `/console/app/${encodeURIComponent(appId)}/blocks/deployment`,
5745
5898
  getPlatformAdapterClientDefaultConfig(authorization)
5746
5899
  );
5747
5900
  });
@@ -5749,7 +5902,7 @@ var platformAdapterAppDeploymentApi = {
5749
5902
  link(payload, authorization) {
5750
5903
  return __async(this, null, function* () {
5751
5904
  return platformAdapterClientInstance.put(
5752
- `/console/app/${payload.appId}/blocks/deployment`,
5905
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/deployment`,
5753
5906
  payload,
5754
5907
  getPlatformAdapterClientDefaultConfig(authorization)
5755
5908
  );
@@ -5758,7 +5911,9 @@ var platformAdapterAppDeploymentApi = {
5758
5911
  unlink(payload, authorization) {
5759
5912
  return __async(this, null, function* () {
5760
5913
  return platformAdapterClientInstance.delete(
5761
- `/console/app/${payload.appId}/blocks/deployment?${new URLSearchParams(
5914
+ `/console/app/${encodeURIComponent(
5915
+ payload.appId
5916
+ )}/blocks/deployment?${new URLSearchParams(
5762
5917
  payload
5763
5918
  ).toString()}`,
5764
5919
  getPlatformAdapterClientDefaultConfig(authorization)
@@ -5768,7 +5923,7 @@ var platformAdapterAppDeploymentApi = {
5768
5923
  upsert(payload, authorization) {
5769
5924
  return __async(this, null, function* () {
5770
5925
  return platformAdapterClientInstance.patch(
5771
- `/console/app/${payload.appId}/blocks/deployment`,
5926
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/deployment`,
5772
5927
  payload,
5773
5928
  getPlatformAdapterClientDefaultConfig(authorization)
5774
5929
  );
@@ -5781,7 +5936,7 @@ var platformAdapterAppMonetizationApi = {
5781
5936
  get(appId, authorization) {
5782
5937
  return __async(this, null, function* () {
5783
5938
  return platformAdapterClientInstance.get(
5784
- `/console/app/${appId}/blocks/monetization`,
5939
+ `/console/app/${encodeURIComponent(appId)}/blocks/monetization`,
5785
5940
  getPlatformAdapterClientDefaultConfig(authorization)
5786
5941
  );
5787
5942
  });
@@ -5789,7 +5944,7 @@ var platformAdapterAppMonetizationApi = {
5789
5944
  upsert(payload, authorization) {
5790
5945
  return __async(this, null, function* () {
5791
5946
  return platformAdapterClientInstance.post(
5792
- `/console/app/${payload.appId}/blocks/monetization`,
5947
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/monetization`,
5793
5948
  payload,
5794
5949
  getPlatformAdapterClientDefaultConfig(authorization)
5795
5950
  );
@@ -5798,7 +5953,7 @@ var platformAdapterAppMonetizationApi = {
5798
5953
  remove(payload, authorization) {
5799
5954
  return __async(this, null, function* () {
5800
5955
  return platformAdapterClientInstance.delete(
5801
- `/console/app/${payload.appId}/blocks/monetization`,
5956
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/monetization`,
5802
5957
  getPlatformAdapterClientDefaultConfig(authorization)
5803
5958
  );
5804
5959
  });
@@ -5810,7 +5965,9 @@ var platformAdapterAppPropertyApi = {
5810
5965
  get(appId, propertyId, authorization) {
5811
5966
  return __async(this, null, function* () {
5812
5967
  return platformAdapterClientInstance.get(
5813
- `/console/app/${appId}/blocks/properties/${propertyId}`,
5968
+ `/console/app/${encodeURIComponent(
5969
+ appId
5970
+ )}/blocks/properties/${encodeURIComponent(propertyId)}`,
5814
5971
  getPlatformAdapterClientDefaultConfig(authorization)
5815
5972
  );
5816
5973
  });
@@ -5818,7 +5975,9 @@ var platformAdapterAppPropertyApi = {
5818
5975
  upsert(payload, authorization) {
5819
5976
  return __async(this, null, function* () {
5820
5977
  return platformAdapterClientInstance.post(
5821
- `/console/app/${payload.appId}/blocks/properties/${payload.propertyId}`,
5978
+ `/console/app/${encodeURIComponent(
5979
+ payload.appId
5980
+ )}/blocks/properties/${encodeURIComponent(payload.propertyId)}`,
5822
5981
  payload,
5823
5982
  getPlatformAdapterClientDefaultConfig(authorization)
5824
5983
  );
@@ -5827,7 +5986,7 @@ var platformAdapterAppPropertyApi = {
5827
5986
  remove(payload, authorization) {
5828
5987
  return __async(this, null, function* () {
5829
5988
  return platformAdapterClientInstance.delete(
5830
- `/console/app/${payload.appId}/blocks/properties/${payload.propertyId}`,
5989
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/properties/${payload.propertyId}`,
5831
5990
  getPlatformAdapterClientDefaultConfig(authorization)
5832
5991
  );
5833
5992
  });
@@ -5840,7 +5999,7 @@ var platformAdapterAppPropertiesApi = {
5840
5999
  get(appId, authorization) {
5841
6000
  return __async(this, null, function* () {
5842
6001
  return platformAdapterClientInstance.get(
5843
- `/console/app/${appId}/blocks/properties`,
6002
+ `/console/app/${encodeURIComponent(appId)}/blocks/properties`,
5844
6003
  getPlatformAdapterClientDefaultConfig(authorization)
5845
6004
  );
5846
6005
  });
@@ -5848,7 +6007,7 @@ var platformAdapterAppPropertiesApi = {
5848
6007
  upsert(payload, authorization) {
5849
6008
  return __async(this, null, function* () {
5850
6009
  return platformAdapterClientInstance.post(
5851
- `/console/app/${payload.appId}/blocks/properties`,
6010
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/properties`,
5852
6011
  payload,
5853
6012
  getPlatformAdapterClientDefaultConfig(authorization)
5854
6013
  );
@@ -5857,7 +6016,7 @@ var platformAdapterAppPropertiesApi = {
5857
6016
  remove(payload, authorization) {
5858
6017
  return __async(this, null, function* () {
5859
6018
  return platformAdapterClientInstance.delete(
5860
- `/console/app/${payload.appId}/blocks/properties`,
6019
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/properties`,
5861
6020
  getPlatformAdapterClientDefaultConfig(authorization)
5862
6021
  );
5863
6022
  });
@@ -5869,7 +6028,7 @@ var platformAdapterAppRepositoryApi = {
5869
6028
  getAggregate(appId, authorization) {
5870
6029
  return __async(this, null, function* () {
5871
6030
  return platformAdapterClientInstance.get(
5872
- `/console/app/${appId}/blocks/repository/aggregate`,
6031
+ `/console/app/${encodeURIComponent(appId)}/blocks/repository/aggregate`,
5873
6032
  getPlatformAdapterClientDefaultConfig(authorization)
5874
6033
  );
5875
6034
  });
@@ -5877,7 +6036,7 @@ var platformAdapterAppRepositoryApi = {
5877
6036
  get(appId, authorization) {
5878
6037
  return __async(this, null, function* () {
5879
6038
  return platformAdapterClientInstance.get(
5880
- `/console/app/${appId}/blocks/repository`,
6039
+ `/console/app/${encodeURIComponent(appId)}/blocks/repository`,
5881
6040
  getPlatformAdapterClientDefaultConfig(authorization)
5882
6041
  );
5883
6042
  });
@@ -5885,7 +6044,7 @@ var platformAdapterAppRepositoryApi = {
5885
6044
  link(payload, authorization) {
5886
6045
  return __async(this, null, function* () {
5887
6046
  return platformAdapterClientInstance.put(
5888
- `/console/app/${payload.appId}/blocks/repository`,
6047
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/repository`,
5889
6048
  payload,
5890
6049
  getPlatformAdapterClientDefaultConfig(authorization)
5891
6050
  );
@@ -5894,7 +6053,9 @@ var platformAdapterAppRepositoryApi = {
5894
6053
  unlink(payload, authorization) {
5895
6054
  return __async(this, null, function* () {
5896
6055
  return platformAdapterClientInstance.delete(
5897
- `/console/app/${payload.appId}/blocks/repository?${new URLSearchParams(
6056
+ `/console/app/${encodeURIComponent(
6057
+ payload.appId
6058
+ )}/blocks/repository?${new URLSearchParams(
5898
6059
  payload
5899
6060
  ).toString()}`,
5900
6061
  getPlatformAdapterClientDefaultConfig(authorization)
@@ -5904,7 +6065,7 @@ var platformAdapterAppRepositoryApi = {
5904
6065
  upsert(payload, authorization) {
5905
6066
  return __async(this, null, function* () {
5906
6067
  return platformAdapterClientInstance.patch(
5907
- `/console/app/${payload.appId}/blocks/repository`,
6068
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/repository`,
5908
6069
  payload,
5909
6070
  getPlatformAdapterClientDefaultConfig(authorization)
5910
6071
  );
@@ -5913,7 +6074,9 @@ var platformAdapterAppRepositoryApi = {
5913
6074
  seed(payload, authorization) {
5914
6075
  return __async(this, null, function* () {
5915
6076
  return platformAdapterClientInstance.post(
5916
- `/console/app/${payload.appId}/blocks/repository/seed`,
6077
+ `/console/app/${encodeURIComponent(
6078
+ payload.appId
6079
+ )}/blocks/repository/seed`,
5917
6080
  payload,
5918
6081
  getPlatformAdapterClientDefaultConfig(authorization)
5919
6082
  );
@@ -5926,7 +6089,7 @@ var platformAdapterAppStorageApi = {
5926
6089
  getAggregate(appId, authorization) {
5927
6090
  return __async(this, null, function* () {
5928
6091
  return platformAdapterClientInstance.get(
5929
- `/console/app/${appId}/blocks/storage/aggregate`,
6092
+ `/console/app/${encodeURIComponent(appId)}/blocks/storage/aggregate`,
5930
6093
  getPlatformAdapterClientDefaultConfig(authorization)
5931
6094
  );
5932
6095
  });
@@ -5934,7 +6097,7 @@ var platformAdapterAppStorageApi = {
5934
6097
  get(appId, authorization) {
5935
6098
  return __async(this, null, function* () {
5936
6099
  return platformAdapterClientInstance.get(
5937
- `/console/app/${appId}/blocks/storage`,
6100
+ `/console/app/${encodeURIComponent(appId)}/blocks/storage`,
5938
6101
  getPlatformAdapterClientDefaultConfig(authorization)
5939
6102
  );
5940
6103
  });
@@ -5942,7 +6105,7 @@ var platformAdapterAppStorageApi = {
5942
6105
  link(payload, authorization) {
5943
6106
  return __async(this, null, function* () {
5944
6107
  return platformAdapterClientInstance.put(
5945
- `/console/app/${payload.appId}/blocks/storage`,
6108
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/storage`,
5946
6109
  payload,
5947
6110
  getPlatformAdapterClientDefaultConfig(authorization)
5948
6111
  );
@@ -5951,7 +6114,9 @@ var platformAdapterAppStorageApi = {
5951
6114
  unlink(payload, authorization) {
5952
6115
  return __async(this, null, function* () {
5953
6116
  return platformAdapterClientInstance.delete(
5954
- `/console/app/${payload.appId}/blocks/storage?${new URLSearchParams(
6117
+ `/console/app/${encodeURIComponent(
6118
+ payload.appId
6119
+ )}/blocks/storage?${new URLSearchParams(
5955
6120
  payload
5956
6121
  ).toString()}`,
5957
6122
  getPlatformAdapterClientDefaultConfig(authorization)
@@ -5961,7 +6126,7 @@ var platformAdapterAppStorageApi = {
5961
6126
  upsert(payload, authorization) {
5962
6127
  return __async(this, null, function* () {
5963
6128
  return platformAdapterClientInstance.patch(
5964
- `/console/app/${payload.appId}/blocks/storage`,
6129
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/storage`,
5965
6130
  payload,
5966
6131
  getPlatformAdapterClientDefaultConfig(authorization)
5967
6132
  );
@@ -5974,7 +6139,9 @@ var platformAdapterAppWidgetApi = {
5974
6139
  get(appId, widgetId, authorization) {
5975
6140
  return __async(this, null, function* () {
5976
6141
  return platformAdapterClientInstance.get(
5977
- `/console/app/${appId}/blocks/widgets/${widgetId}`,
6142
+ `/console/app/${encodeURIComponent(
6143
+ appId
6144
+ )}/blocks/widgets/${encodeURIComponent(widgetId)}`,
5978
6145
  getPlatformAdapterClientDefaultConfig(authorization)
5979
6146
  );
5980
6147
  });
@@ -5982,7 +6149,9 @@ var platformAdapterAppWidgetApi = {
5982
6149
  upsert(payload, authorization) {
5983
6150
  return __async(this, null, function* () {
5984
6151
  return platformAdapterClientInstance.post(
5985
- `/console/app/${payload.appId}/blocks/widgets/${payload.widgetId}`,
6152
+ `/console/app/${encodeURIComponent(
6153
+ payload.appId
6154
+ )}/blocks/widgets/${encodeURIComponent(payload.widgetId)}`,
5986
6155
  payload,
5987
6156
  getPlatformAdapterClientDefaultConfig(authorization)
5988
6157
  );
@@ -5991,7 +6160,9 @@ var platformAdapterAppWidgetApi = {
5991
6160
  remove(payload, authorization) {
5992
6161
  return __async(this, null, function* () {
5993
6162
  return platformAdapterClientInstance.delete(
5994
- `/console/app/${payload.appId}/blocks/widgets/${payload.widgetId}`,
6163
+ `/console/app/${encodeURIComponent(
6164
+ payload.appId
6165
+ )}/blocks/widgets/${encodeURIComponent(payload.widgetId)}`,
5995
6166
  getPlatformAdapterClientDefaultConfig(authorization)
5996
6167
  );
5997
6168
  });
@@ -6004,7 +6175,7 @@ var platformAdapterAppWidgetsApi = {
6004
6175
  get(appId, authorization) {
6005
6176
  return __async(this, null, function* () {
6006
6177
  return platformAdapterClientInstance.get(
6007
- `/console/app/${appId}/blocks/widgets`,
6178
+ `/console/app/${encodeURIComponent(appId)}/blocks/widgets`,
6008
6179
  getPlatformAdapterClientDefaultConfig(authorization)
6009
6180
  );
6010
6181
  });
@@ -6012,7 +6183,7 @@ var platformAdapterAppWidgetsApi = {
6012
6183
  upsert(payload, authorization) {
6013
6184
  return __async(this, null, function* () {
6014
6185
  return platformAdapterClientInstance.post(
6015
- `/console/app/${payload.appId}/blocks/widgets`,
6186
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/widgets`,
6016
6187
  payload,
6017
6188
  getPlatformAdapterClientDefaultConfig(authorization)
6018
6189
  );
@@ -6021,7 +6192,7 @@ var platformAdapterAppWidgetsApi = {
6021
6192
  remove(payload, authorization) {
6022
6193
  return __async(this, null, function* () {
6023
6194
  return platformAdapterClientInstance.delete(
6024
- `/console/app/${payload.appId}/blocks/widgets`,
6195
+ `/console/app/${encodeURIComponent(payload.appId)}/blocks/widgets`,
6025
6196
  getPlatformAdapterClientDefaultConfig(authorization)
6026
6197
  );
6027
6198
  });
@@ -6044,7 +6215,7 @@ var platformAdapterAppVariablesApi = {
6044
6215
  getVariables(appId, decrypted, authorization) {
6045
6216
  return __async(this, null, function* () {
6046
6217
  const response = yield platformAdapterClientInstance.get(
6047
- `/console/app/${appId}/variables`,
6218
+ `/console/app/${encodeURIComponent(appId)}/variables`,
6048
6219
  __spreadValues({
6049
6220
  params: {
6050
6221
  decrypted
@@ -6057,7 +6228,9 @@ var platformAdapterAppVariablesApi = {
6057
6228
  getVariable(appId, key, authorization) {
6058
6229
  return __async(this, null, function* () {
6059
6230
  const response = yield platformAdapterClientInstance.get(
6060
- `/console/app/${appId}/variables/${key}`,
6231
+ `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
6232
+ key
6233
+ )}`,
6061
6234
  getPlatformAdapterClientDefaultConfig(authorization)
6062
6235
  );
6063
6236
  return response.data;
@@ -6066,7 +6239,9 @@ var platformAdapterAppVariablesApi = {
6066
6239
  syncVariable(appId, key, payload, authorization) {
6067
6240
  return __async(this, null, function* () {
6068
6241
  yield platformAdapterClientInstance.post(
6069
- `/console/app/${appId}/variables/${key}/sync`,
6242
+ `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
6243
+ key
6244
+ )}/sync`,
6070
6245
  payload,
6071
6246
  getPlatformAdapterClientDefaultConfig(authorization)
6072
6247
  );
@@ -6075,7 +6250,9 @@ var platformAdapterAppVariablesApi = {
6075
6250
  createVariable(appId, data, authorization) {
6076
6251
  return __async(this, null, function* () {
6077
6252
  yield platformAdapterClientInstance.post(
6078
- `/console/app/${appId}/variables/${data.key}`,
6253
+ `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
6254
+ data.key
6255
+ )}`,
6079
6256
  data,
6080
6257
  getPlatformAdapterClientDefaultConfig(authorization)
6081
6258
  );
@@ -6084,7 +6261,9 @@ var platformAdapterAppVariablesApi = {
6084
6261
  editVariable(appId, data, authorization) {
6085
6262
  return __async(this, null, function* () {
6086
6263
  yield platformAdapterClientInstance.post(
6087
- `/console/app/${appId}/variables/${data.key}/edit`,
6264
+ `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
6265
+ data.key
6266
+ )}/edit`,
6088
6267
  data,
6089
6268
  getPlatformAdapterClientDefaultConfig(authorization)
6090
6269
  );
@@ -6093,7 +6272,9 @@ var platformAdapterAppVariablesApi = {
6093
6272
  deleteVariable(appId, key) {
6094
6273
  return __async(this, null, function* () {
6095
6274
  yield platformAdapterClientInstance.delete(
6096
- `/console/app/${appId}/variables/${key}`
6275
+ `/console/app/${encodeURIComponent(appId)}/variables/${encodeURIComponent(
6276
+ key
6277
+ )}`
6097
6278
  );
6098
6279
  });
6099
6280
  }
@@ -6127,7 +6308,7 @@ var platformAdapterAppApi = {
6127
6308
  push(payload, authorization) {
6128
6309
  return __async(this, null, function* () {
6129
6310
  return platformAdapterClientInstance.post(
6130
- `/console/app${payload.manifest.id ? `/${payload.manifest.id}` : ""}`,
6311
+ `/console/app${payload.manifest.id ? `/${encodeURIComponent(payload.manifest.id)}` : ""}`,
6131
6312
  payload,
6132
6313
  getPlatformAdapterClientDefaultConfig(authorization)
6133
6314
  );
@@ -6136,7 +6317,7 @@ var platformAdapterAppApi = {
6136
6317
  pull(appId, authorization) {
6137
6318
  return __async(this, null, function* () {
6138
6319
  return platformAdapterClientInstance.get(
6139
- `/console/app/${appId}`,
6320
+ `/console/app/${encodeURIComponent(appId)}`,
6140
6321
  getPlatformAdapterClientDefaultConfig(authorization)
6141
6322
  );
6142
6323
  });
@@ -6144,7 +6325,7 @@ var platformAdapterAppApi = {
6144
6325
  verify(payload, authorization) {
6145
6326
  return __async(this, null, function* () {
6146
6327
  return platformAdapterClientInstance.post(
6147
- `/console/app/${payload.appId}/verify`,
6328
+ `/console/app/${encodeURIComponent(payload.appId)}/verify`,
6148
6329
  payload,
6149
6330
  getPlatformAdapterClientDefaultConfig(authorization)
6150
6331
  );
@@ -6541,7 +6722,7 @@ var platformAdapterNeonProxyApi = {
6541
6722
  databases(projectId, authorization) {
6542
6723
  return __async(this, null, function* () {
6543
6724
  const response = yield platformAdapterClientInstance.get(
6544
- `/integrations/neon/projects/${projectId}/databases`,
6725
+ `/integrations/neon/projects/${encodeURIComponent(projectId)}/databases`,
6545
6726
  getNeonClientConfig(authorization)
6546
6727
  );
6547
6728
  return response.data;
@@ -6642,7 +6823,7 @@ var platformBillingAccountApi = {
6642
6823
  return __async(this, null, function* () {
6643
6824
  try {
6644
6825
  return yield platformBillingClientInstance.get(
6645
- `/v3/account/${product}/billing_info`,
6826
+ `/v3/account/${encodeURIComponent(product)}/billing_info`,
6646
6827
  getPlatformBillingClientConfig(authorization)
6647
6828
  );
6648
6829
  } catch (error) {
@@ -6664,7 +6845,7 @@ var platformBillingInvoicesApi = {
6664
6845
  return __async(this, null, function* () {
6665
6846
  try {
6666
6847
  return yield platformBillingClientInstance.get(
6667
- `/v2/invoices/${product}`,
6848
+ `/v2/invoices/${encodeURIComponent(product)}`,
6668
6849
  getPlatformBillingClientConfig(authorization)
6669
6850
  );
6670
6851
  } catch (error) {
@@ -6680,7 +6861,9 @@ var platformBillingInvoicesApi = {
6680
6861
  return __async(this, null, function* () {
6681
6862
  try {
6682
6863
  const response = yield platformBillingClientInstance.request(__spreadValues({
6683
- url: `https://api.labs.livechatinc.com/v2/invoices/${number}`,
6864
+ url: `https://api.labs.livechatinc.com/v2/invoices/${encodeURIComponent(
6865
+ number
6866
+ )}`,
6684
6867
  data: new URLSearchParams({
6685
6868
  _method: "GET"
6686
6869
  //gave the values directly for testing