@livechat/developer-studio-api 2.2.1 → 2.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.d.ts CHANGED
@@ -34,6 +34,24 @@ interface GitHubInstallation {
34
34
  };
35
35
  }
36
36
 
37
+ declare const githubClientInstance: axios.AxiosInstance;
38
+ interface GithubClientInstanceAuthorization {
39
+ tokens?: {
40
+ app?: string;
41
+ oauth?: string;
42
+ };
43
+ }
44
+ declare function getGitHubClientAuthorization(req: {
45
+ headers: Record<string, string | string[] | undefined>;
46
+ }): GithubClientInstanceAuthorization;
47
+ interface GithubClientRequestOptions {
48
+ token?: string;
49
+ ensureAuthorizationToken?: boolean;
50
+ }
51
+ declare function getGithubClientRequestConfig(options?: GithubClientRequestOptions | undefined): AxiosRequestConfig;
52
+ declare function initGithubClientInstance(token?: string): void;
53
+ declare function updateGithubClientInstance(token?: string): void;
54
+
37
55
  interface GitHubRepository {
38
56
  id: string;
39
57
  name: string;
@@ -79,26 +97,6 @@ interface GitHubRepositorySeed {
79
97
  encoding: string;
80
98
  }
81
99
 
82
- declare const githubClientInstance: axios.AxiosInstance;
83
- interface GithubClientInstanceAuthorization {
84
- tokens?: {
85
- app?: string;
86
- oauth?: string;
87
- };
88
- }
89
- declare function getGitHubClientAuthorization(req: {
90
- headers: {
91
- [key: string]: string | string[] | undefined;
92
- };
93
- }): GithubClientInstanceAuthorization;
94
- interface GithubClientRequestOptions {
95
- token?: string;
96
- ensureAuthorizationToken?: boolean;
97
- }
98
- declare function getGithubClientRequestConfig(options?: GithubClientRequestOptions | undefined): AxiosRequestConfig;
99
- declare function initGithubClientInstance(token?: string): void;
100
- declare function updateGithubClientInstance(token?: string): void;
101
-
102
100
  interface NetlifyAccount {
103
101
  id: string;
104
102
  }
@@ -113,6 +111,21 @@ interface NetlifyEnv {
113
111
  }[];
114
112
  }
115
113
 
114
+ interface NetlifyClientInstanceAuthorization {
115
+ token?: string;
116
+ }
117
+ interface NetlifyClientInstanceOptions {
118
+ token?: string;
119
+ ensureAuthorizationToken?: boolean;
120
+ }
121
+ declare const netlifyClientInstance: axios.AxiosInstance;
122
+ declare function getNetlifyClientAuthorization(req: {
123
+ headers: Record<string, string | string[] | undefined>;
124
+ }): NetlifyClientInstanceAuthorization;
125
+ declare function getNetlifyClientConfig(options?: NetlifyClientInstanceOptions): AxiosRequestConfig;
126
+ declare function initNetlifyClientInstance(token?: string): void;
127
+ declare function updateNetlifyClientInstance(token?: string): void;
128
+
116
129
  interface NetlifyDeployKey {
117
130
  id: string;
118
131
  public_key: string;
@@ -159,29 +172,6 @@ interface NetlifyDeploy {
159
172
  }[];
160
173
  }
161
174
 
162
- interface NetlifyClientInstanceAuthorization {
163
- token?: string;
164
- }
165
- interface NetlifyClientInstanceOptions {
166
- token?: string;
167
- ensureAuthorizationToken?: boolean;
168
- }
169
- declare const netlifyClientInstance: axios.AxiosInstance;
170
- declare function getNetlifyClientAuthorization(req: {
171
- headers: {
172
- [key: string]: string | string[] | undefined;
173
- };
174
- }): NetlifyClientInstanceAuthorization;
175
- declare function getNetlifyClientConfig(options?: NetlifyClientInstanceOptions): AxiosRequestConfig;
176
- declare function initNetlifyClientInstance(token?: string): void;
177
- declare function updateNetlifyClientInstance(token?: string): void;
178
-
179
- interface PlanetScalePagination {
180
- type: string;
181
- current_page: number;
182
- }
183
- type PlanetScalePaginatedResult = PlanetScalePagination;
184
-
185
175
  interface PlanetScaleDatabase {
186
176
  id: string;
187
177
  name: string;
@@ -207,6 +197,21 @@ type GetPlanetScaleDatabasePasswordsResult = PlanetScalePaginatedResult & {
207
197
  data: PlanetScaleDatabasePassword[];
208
198
  };
209
199
 
200
+ interface PlanetScaleClientInstanceAuthorization {
201
+ token?: string;
202
+ }
203
+ interface PlanetScaleClientInstanceOptions {
204
+ token?: string;
205
+ ensureAuthorizationToken?: boolean;
206
+ }
207
+ declare const planetScaleClientInstance: axios.AxiosInstance;
208
+ declare function getPlanetScaleClientAuthorization(req: {
209
+ headers: Record<string, string | string[] | undefined>;
210
+ }): PlanetScaleClientInstanceAuthorization;
211
+ declare function getPlanetScaleClientConfig(options?: PlanetScaleClientInstanceOptions): AxiosRequestConfig;
212
+ declare function initPlanetScaleClientInstance(token?: string): void;
213
+ declare function updatePlanetScaleClientInstance(token?: string): void;
214
+
210
215
  interface PlanetScaleOrganization {
211
216
  id: string;
212
217
  type: string;
@@ -230,22 +235,26 @@ interface PlanetScaleUser {
230
235
  default_organization_id: string;
231
236
  }
232
237
 
233
- interface PlanetScaleClientInstanceAuthorization {
238
+ interface PlanetScalePagination {
239
+ type: string;
240
+ current_page: number;
241
+ }
242
+ type PlanetScalePaginatedResult = PlanetScalePagination;
243
+
244
+ interface SentryClientInstanceAuthorization {
234
245
  token?: string;
235
246
  }
236
- interface PlanetScaleClientInstanceOptions {
247
+ interface SentryClientInstanceOptions {
237
248
  token?: string;
238
249
  ensureAuthorizationToken?: boolean;
239
250
  }
240
- declare const planetScaleClientInstance: axios.AxiosInstance;
241
- declare function getPlanetScaleClientAuthorization(req: {
242
- headers: {
243
- [key: string]: string | string[] | undefined;
244
- };
245
- }): PlanetScaleClientInstanceAuthorization;
246
- declare function getPlanetScaleClientConfig(options?: PlanetScaleClientInstanceOptions): AxiosRequestConfig;
247
- declare function initPlanetScaleClientInstance(token?: string): void;
248
- declare function updatePlanetScaleClientInstance(token?: string): void;
251
+ declare const sentryClientInstance: axios.AxiosInstance;
252
+ declare function getSentryClientAuthorization(req: {
253
+ headers: Record<string, string | string[] | undefined>;
254
+ }): SentryClientInstanceAuthorization;
255
+ declare function getSentryClientConfig(options?: SentryClientInstanceOptions): AxiosRequestConfig;
256
+ declare function initSentryClientInstance(token?: string): void;
257
+ declare function updateSentryClientInstance(token: string | undefined): void;
249
258
 
250
259
  interface SentryIntegration {
251
260
  id: string;
@@ -375,33 +384,54 @@ interface SentryTeam {
375
384
  slug: string;
376
385
  }
377
386
 
378
- interface SentryClientInstanceAuthorization {
379
- token?: string;
380
- }
381
- interface SentryClientInstanceOptions {
382
- token?: string;
383
- ensureAuthorizationToken?: boolean;
387
+ interface AppMonitoringCustomReport {
388
+ id: string;
389
+ title: string;
390
+ events: string[];
384
391
  }
385
- declare const sentryClientInstance: axios.AxiosInstance;
386
- declare function getSentryClientAuthorization(req: {
387
- headers: {
388
- [key: string]: string | string[] | undefined;
389
- };
390
- }): SentryClientInstanceAuthorization;
391
- declare function getSentryClientConfig(options?: SentryClientInstanceOptions): AxiosRequestConfig;
392
- declare function initSentryClientInstance(token?: string): void;
393
- declare function updateSentryClientInstance(token: string | undefined): void;
394
392
 
395
- interface UptimeDto {
396
- [k: string]: {
397
- [k: string]: number;
398
- };
399
- }
393
+ type AppMonitoringCustomReportDataDto = Record<string, Record<string, Record<string, number>>>;
394
+
395
+ type AppMonitoringUptimeReportDto = Record<string, Record<string, number>>;
396
+
397
+ type AppMonitoringEventsReportDto = Record<string, Record<string, Record<string, number>>>;
400
398
 
401
- interface GetAppUptimeReportsPayload {
399
+ interface AppMonitoringReportParams {
402
400
  from: string;
403
401
  to: string;
404
- resolution: 'hourly' | 'daily' | 'monthly';
402
+ resolution: "hourly" | "daily" | "monthly";
403
+ }
404
+
405
+ type GetAppMonitoringCustomReportDataPayload = AppMonitoringReportParams;
406
+
407
+ type GetAppMonitoringUptimeReportPayload = AppMonitoringReportParams;
408
+
409
+ type GetAppMonitoringEventsReportPayload = AppMonitoringReportParams;
410
+
411
+ interface AppMonitoringEvent {
412
+ key: string;
413
+ name: string;
414
+ }
415
+
416
+ interface AppMonitoringEventData {
417
+ organization_id: string;
418
+ type: string;
419
+ payload?: string;
420
+ }
421
+
422
+ type AppMonitoringEventsLogItem = {
423
+ sent_at: string;
424
+ } & AppMonitoringEventData;
425
+ type AppMonitoringEventsLog = Record<string, AppMonitoringEventsLogItem[]>;
426
+
427
+ interface GetAppMonitoringEventsLogPayload {
428
+ from?: string;
429
+ type?: string[];
430
+ search?: string;
431
+ }
432
+ interface GetAppMonitoringEventsLogResponse {
433
+ events: AppMonitoringEventsLog;
434
+ next_page_from?: string;
405
435
  }
406
436
 
407
437
  interface TextClientInstanceAuthorization {
@@ -414,13 +444,59 @@ interface TextClientInstanceOptions {
414
444
  }
415
445
  declare const textClientInstance: axios.AxiosInstance;
416
446
  declare function getTextClientAuthorization(req: {
417
- headers: {
418
- [key: string]: string | string[] | undefined;
419
- };
447
+ headers: Record<string, string | string[] | undefined>;
420
448
  }): TextClientInstanceAuthorization;
421
449
  declare function getTextClientConfig(option?: TextClientInstanceOptions): AxiosRequestConfig;
422
450
  declare function initTextClientInstance(baseUrl?: string, token?: string): void;
423
451
 
452
+ interface VercelDeploy {
453
+ id: string;
454
+ alias: string[];
455
+ }
456
+
457
+ interface VercelClientInstanceAuthorization {
458
+ token?: string;
459
+ }
460
+ interface VercelClientInstanceOptions {
461
+ token?: string;
462
+ ensureAuthorizationToken?: boolean;
463
+ }
464
+ declare const vercelClientInstance: axios.AxiosInstance;
465
+ declare function getVercelClientAuthorization(req: {
466
+ headers: Record<string, string | string[] | undefined>;
467
+ }): VercelClientInstanceAuthorization;
468
+ declare function getVercelClientConfig(options?: VercelClientInstanceOptions): AxiosRequestConfig;
469
+ declare function initVercelClientInstance(token?: string): void;
470
+ declare function updateVercelClientInstance(token?: string): void;
471
+
472
+ interface VercelRepository {
473
+ defaultBranch: string;
474
+ id: string;
475
+ name: string;
476
+ slug: string;
477
+ namespace: string;
478
+ private: boolean;
479
+ url: string;
480
+ }
481
+
482
+ interface VercelNamespace {
483
+ id: string;
484
+ name: string;
485
+ slug: string;
486
+ provider: string;
487
+ installationId: string;
488
+ isAccessRestricted: boolean;
489
+ ownerType: "user" | "team";
490
+ }
491
+
492
+ interface VercelSearchRepositoryResponse {
493
+ gitAccount: {
494
+ namespaceId: number | null;
495
+ provider: string;
496
+ };
497
+ repos: VercelRepository[];
498
+ }
499
+
424
500
  interface VercelPagination {
425
501
  count: number;
426
502
  next: number;
@@ -466,56 +542,6 @@ type GetVercelProjectsResult = VercelPaginatedResult & {
466
542
  projects: VercelProject[];
467
543
  };
468
544
 
469
- interface VercelRepository {
470
- defaultBranch: string;
471
- id: string;
472
- name: string;
473
- slug: string;
474
- namespace: string;
475
- private: boolean;
476
- url: string;
477
- }
478
-
479
- interface VercelNamespace {
480
- id: string;
481
- name: string;
482
- slug: string;
483
- provider: string;
484
- installationId: string;
485
- isAccessRestricted: boolean;
486
- ownerType: "user" | "team";
487
- }
488
-
489
- interface VercelSearchRepositoryResponse {
490
- gitAccount: {
491
- namespaceId: number | null;
492
- provider: string;
493
- };
494
- repos: VercelRepository[];
495
- }
496
-
497
- interface VercelDeploy {
498
- id: string;
499
- alias: string[];
500
- }
501
-
502
- interface VercelClientInstanceAuthorization {
503
- token?: string;
504
- }
505
- interface VercelClientInstanceOptions {
506
- token?: string;
507
- ensureAuthorizationToken?: boolean;
508
- }
509
- declare const vercelClientInstance: axios.AxiosInstance;
510
- declare function getVercelClientAuthorization(req: {
511
- headers: {
512
- [key: string]: string | string[] | undefined;
513
- };
514
- }): VercelClientInstanceAuthorization;
515
- declare function getVercelClientConfig(options?: VercelClientInstanceOptions): AxiosRequestConfig;
516
- declare function initVercelClientInstance(token?: string): void;
517
- declare function updateVercelClientInstance(token?: string): void;
518
-
519
545
  interface AuthorizeData {
520
546
  account_id: string;
521
547
  access_token: string;
@@ -611,7 +637,7 @@ declare function getPlatformAccountsClientAuthorization(req: {
611
637
  declare function getPlatformAccountsClientConfig(options?: PlatformAccountsClientInstanceOptions): AxiosRequestConfig;
612
638
  declare function initPlatformAccountsClientInstance(baseUrl?: string, token?: string): void;
613
639
 
614
- type CreateAppPayload = {
640
+ interface CreateAppPayload {
615
641
  data: {
616
642
  app: CreateApplicationPayload;
617
643
  authorization?: AddAppAuthorizationData;
@@ -620,8 +646,8 @@ type CreateAppPayload = {
620
646
  storage?: LinkAppStorageData;
621
647
  };
622
648
  output: CreateAppOutput;
623
- };
624
- type CreateAppOutput = {
649
+ }
650
+ interface CreateAppOutput {
625
651
  sagaId: string;
626
652
  steps: {
627
653
  app: {
@@ -636,7 +662,7 @@ type CreateAppOutput = {
636
662
  storage?: {};
637
663
  };
638
664
  isDone?: boolean;
639
- };
665
+ }
640
666
  type CreateAppStepStatus<TData = {}> = {
641
667
  isLoading: boolean;
642
668
  isDone: boolean;
@@ -645,11 +671,11 @@ type CreateAppStepStatus<TData = {}> = {
645
671
  statusCode?: number;
646
672
  };
647
673
  } & TData;
648
- type CreateAppStatus = {
674
+ interface CreateAppStatus {
649
675
  app: CreateAppStepStatus<{
650
676
  needToBeActivated?: boolean;
651
677
  }> | undefined;
652
- authorization?: CreateAppStepStatus<{}> | undefined;
678
+ authorization?: CreateAppStepStatus | undefined;
653
679
  repository?: CreateAppStepStatus<{
654
680
  needToBeInstalled?: boolean;
655
681
  }> | undefined;
@@ -657,11 +683,11 @@ type CreateAppStatus = {
657
683
  needToBeInstalled?: boolean;
658
684
  }> | undefined;
659
685
  storage?: CreateAppStepStatus | undefined;
660
- };
661
- type CreateAppResult = {
686
+ }
687
+ interface CreateAppResult {
662
688
  output: CreateAppOutput;
663
689
  status: CreateAppStatus;
664
- };
690
+ }
665
691
 
666
692
  type LinkAppDeploymentNetlifySiteData = {
667
693
  type: "new";
@@ -695,14 +721,14 @@ type LinkAppDeploymentPayload = {
695
721
  appId: string;
696
722
  appName: string;
697
723
  } & LinkAppDeploymentData;
698
- type LinkAppDeploymentResult = {
724
+ interface LinkAppDeploymentResult {
699
725
  needToBeInstalled: boolean;
700
- };
726
+ }
701
727
 
702
- type UnlinkAppDeploymentPayload = {
728
+ interface UnlinkAppDeploymentPayload {
703
729
  appId: string;
704
730
  shouldDelete?: boolean;
705
- };
731
+ }
706
732
 
707
733
  interface AppVercelDeployment {
708
734
  project: {
@@ -786,11 +812,11 @@ type LinkAppSentryLoggerPayload = {
786
812
  projectSlug: string;
787
813
  });
788
814
 
789
- type UnlinkAppSentryLoggerPayload = {
815
+ interface UnlinkAppSentryLoggerPayload {
790
816
  appId: string;
791
817
  projectSlug: string;
792
818
  shouldDelete?: boolean;
793
- };
819
+ }
794
820
 
795
821
  interface AppGitHubRepository {
796
822
  name: string;
@@ -816,7 +842,8 @@ type LinkAppRepositoryGitHubData = {
816
842
  fullName: string;
817
843
  branch: string;
818
844
  };
819
- type LinkAppRepositoryGitLabData = {};
845
+ interface LinkAppRepositoryGitLabData {
846
+ }
820
847
  type LinkAppRepositoryData = {
821
848
  target: AppRepositoryTarget | undefined;
822
849
  } & (({
@@ -835,18 +862,18 @@ interface LinkAppRepositoryResult {
835
862
  needToBeSeeded: boolean;
836
863
  }
837
864
 
838
- type UnlinkAppRepositoryPayload = {
865
+ interface UnlinkAppRepositoryPayload {
839
866
  appId: string;
840
867
  shouldDelete?: boolean;
841
- };
868
+ }
842
869
 
843
- type SeedAppRepositoryPayload = {
870
+ interface SeedAppRepositoryPayload {
844
871
  appId: string;
845
872
  clientId?: string;
846
- };
847
- type SeedAppRepositoryResult = {
873
+ }
874
+ interface SeedAppRepositoryResult {
848
875
  isSeeded: boolean;
849
- };
876
+ }
850
877
 
851
878
  interface AppPlanetScaleStorage {
852
879
  database: {
@@ -873,7 +900,8 @@ type LinkAppStoragePlanetScaleDatabaseData = {
873
900
  type LinkAppStoragePlanetScaleData = {
874
901
  organization: string;
875
902
  } & LinkAppStoragePlanetScaleDatabaseData;
876
- type LinkAppStorageVercelData = {};
903
+ interface LinkAppStorageVercelData {
904
+ }
877
905
  type LinkAppStorageData = ({
878
906
  provider: "planetscale";
879
907
  } & LinkAppStoragePlanetScaleData) | ({
@@ -884,18 +912,18 @@ type LinkAppStoragePayload = {
884
912
  appName: string;
885
913
  } & LinkAppStorageData;
886
914
 
887
- type UnlinkAppStoragePayload = {
915
+ interface UnlinkAppStoragePayload {
888
916
  appId: string;
889
917
  shouldDelete?: boolean;
890
- };
918
+ }
891
919
 
892
- type AddAppAuthorizationData = {
920
+ interface AddAppAuthorizationData {
893
921
  type: "server_side_app" | "javascript_app";
894
922
  configurationUri: string;
895
923
  redirectUri: string;
896
924
  scopes: string[];
897
925
  visibility: string;
898
- };
926
+ }
899
927
  type AddAppAuthorizationPayload = {
900
928
  appId: string;
901
929
  appName: string;
@@ -967,9 +995,7 @@ type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthori
967
995
  };
968
996
  };
969
997
  declare function getPlatformAdapterClientAuthorization(req: {
970
- headers: {
971
- [key: string]: string | string[] | undefined;
972
- };
998
+ headers: Record<string, string | string[] | undefined>;
973
999
  }): PlatformAdapterClientInstanceAuthorization;
974
1000
  declare const platformAdapterClientInstance: axios.AxiosInstance;
975
1001
  declare function getPlatformAdapterClientConfig(options?: PlatformAdapterClientInstanceOptions): AxiosRequestConfig;
@@ -1090,9 +1116,7 @@ interface ApplicationDto {
1090
1116
  version: number;
1091
1117
  migratedAccess: boolean;
1092
1118
  hidden: boolean;
1093
- customProps: {
1094
- [key: string]: string;
1095
- };
1119
+ customProps: Record<string, string>;
1096
1120
  createdAt: string;
1097
1121
  submittedAt: null | string;
1098
1122
  publishedAt: null | string;
@@ -1443,32 +1467,6 @@ interface ApplicationPropertyDto {
1443
1467
  value: string;
1444
1468
  }
1445
1469
 
1446
- interface ReportingEventBase {
1447
- name: string;
1448
- }
1449
-
1450
- interface ActiveUserReportingEvent extends ReportingEventBase {
1451
- name: 'activeUser';
1452
- }
1453
-
1454
- interface CustomReportingEvent<TPayload> extends ReportingEventBase {
1455
- name: 'custom';
1456
- payload: TPayload;
1457
- }
1458
-
1459
- declare enum ErrorType {
1460
- '4xx' = "4xx",
1461
- '5xx' = "5xx"
1462
- }
1463
- interface ErrorReportingEvent extends ReportingEventBase {
1464
- name: 'error';
1465
- payload: {
1466
- type: ErrorType;
1467
- };
1468
- }
1469
-
1470
- type ReportingEvent<TPayload = unknown> = ActiveUserReportingEvent | ErrorReportingEvent | CustomReportingEvent<TPayload>;
1471
-
1472
1470
  interface AppResourceDto {
1473
1471
  }
1474
1472
 
@@ -1529,6 +1527,22 @@ interface DeveloperLedgerParams {
1529
1527
  page?: number;
1530
1528
  }
1531
1529
 
1530
+ interface PlatformDpsClientInstanceAuthorization {
1531
+ token?: string;
1532
+ tokenType?: "Basic" | "Bearer";
1533
+ }
1534
+ interface PlatformDpsClientInstanceOptions {
1535
+ token?: string;
1536
+ tokenType?: "Basic" | "Bearer";
1537
+ }
1538
+ declare const platformDpsClientInstance: axios.AxiosInstance;
1539
+ declare function getPlatformDpsClientAuthorization(req: {
1540
+ headers: Record<string, string | string[] | undefined>;
1541
+ }): PlatformDpsClientInstanceAuthorization;
1542
+ declare function getPlatformDpsAdminClientAuthorization(): PlatformDpsClientInstanceAuthorization;
1543
+ declare function getPlatformDpsClientConfig(options?: PlatformDpsClientInstanceOptions): AxiosRequestConfig;
1544
+ declare function initPlatformDpsClientInstance(baseUrl?: string, token?: string): void;
1545
+
1532
1546
  interface ShortcutDto {
1533
1547
  type: 'link' | 'app';
1534
1548
  url: string;
@@ -1667,24 +1681,6 @@ interface UpdateUserIntegrations {
1667
1681
  sentry?: Partial<UserSentryIntegrationDto> | null;
1668
1682
  }
1669
1683
 
1670
- interface PlatformDpsClientInstanceAuthorization {
1671
- token?: string;
1672
- tokenType?: "Basic" | "Bearer";
1673
- }
1674
- interface PlatformDpsClientInstanceOptions {
1675
- token?: string;
1676
- tokenType?: "Basic" | "Bearer";
1677
- }
1678
- declare const platformDpsClientInstance: axios.AxiosInstance;
1679
- declare function getPlatformDpsClientAuthorization(req: {
1680
- headers: {
1681
- [key: string]: string | string[] | undefined;
1682
- };
1683
- }): PlatformDpsClientInstanceAuthorization;
1684
- declare function getPlatformDpsAdminClientAuthorization(): PlatformDpsClientInstanceAuthorization;
1685
- declare function getPlatformDpsClientConfig(options?: PlatformDpsClientInstanceOptions): AxiosRequestConfig;
1686
- declare function initPlatformDpsClientInstance(baseUrl?: string, token?: string): void;
1687
-
1688
1684
  interface AgentDto {
1689
1685
  login: string;
1690
1686
  groups: {
@@ -1753,8 +1749,8 @@ interface AgentDto {
1753
1749
  }
1754
1750
 
1755
1751
  interface PropertyAccessItemDto {
1756
- agent: ['read', 'write'];
1757
- customer: ['read', 'write'];
1752
+ agent: ["read", "write"];
1753
+ customer: ["read", "write"];
1758
1754
  }
1759
1755
  interface PropertyAccessDto {
1760
1756
  chat?: PropertyAccessItemDto;
@@ -1764,7 +1760,7 @@ interface PropertyAccessDto {
1764
1760
  group?: PropertyAccessItemDto;
1765
1761
  }
1766
1762
  interface PropertyDto {
1767
- type: 'int' | 'bool' | 'string' | 'tokenized_string';
1763
+ type: "int" | "bool" | "string" | "tokenized_string";
1768
1764
  description: string;
1769
1765
  domain?: string[];
1770
1766
  range?: {
@@ -1775,9 +1771,7 @@ interface PropertyDto {
1775
1771
  public_access?: PropertyAccessItemDto;
1776
1772
  default_value: unknown;
1777
1773
  }
1778
- interface PropertiesDto {
1779
- [name: string]: PropertyDto;
1780
- }
1774
+ type PropertiesDto = Record<string, PropertyDto>;
1781
1775
  interface Property extends PropertyDto {
1782
1776
  name: string;
1783
1777
  owner_client_id: string;
@@ -1819,9 +1813,7 @@ interface LiveChatClientInstanceOptions {
1819
1813
  }
1820
1814
  declare const livechatClientInstance: axios.AxiosInstance;
1821
1815
  declare function getLiveChatClientAuthorization(req: {
1822
- headers: {
1823
- [key: string]: string | string[] | undefined;
1824
- };
1816
+ headers: Record<string, string | string[] | undefined>;
1825
1817
  }): LiveChatClientInstanceAuthorization;
1826
1818
  declare function getLiveChatClientConfig(options?: LiveChatClientInstanceOptions): AxiosRequestConfig;
1827
1819
  declare function initLiveChatClientInstance(baseUrl?: string, token?: string): void;
@@ -1864,7 +1856,7 @@ declare const api: {
1864
1856
  get(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppRepository>;
1865
1857
  link(payload: LinkAppRepositoryPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<LinkAppRepositoryResult>;
1866
1858
  unlink(payload: UnlinkAppRepositoryPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
1867
- seed(payload: SeedAppRepositoryPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
1859
+ seed(payload: SeedAppRepositoryPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<SeedAppRepositoryResult>;
1868
1860
  };
1869
1861
  deployment: {
1870
1862
  get(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppDeployment>;
@@ -1881,13 +1873,13 @@ declare const api: {
1881
1873
  providers: {
1882
1874
  sentry: {
1883
1875
  get(projectSlug: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppSentryLogger>;
1884
- link(payload: LinkAppSentryLoggerPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
1885
- unlink(payload: UnlinkAppSentryLoggerPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
1876
+ link(payload: LinkAppSentryLoggerPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
1877
+ unlink(payload: UnlinkAppSentryLoggerPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
1886
1878
  reauthorizeSentryApp(userId: string, sentryInstallationId: string, sentryRefreshToken: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<{
1887
1879
  token?: string | undefined;
1888
1880
  error?: string | undefined;
1889
1881
  }>;
1890
- requestSentryIssueSolution(stacktrace: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
1882
+ requestSentryIssueSolution(stacktrace: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<object>;
1891
1883
  };
1892
1884
  };
1893
1885
  };
@@ -1895,22 +1887,22 @@ declare const api: {
1895
1887
  variables: {
1896
1888
  getVariables(appId: string, decrypted?: boolean | undefined, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppVariable[]>;
1897
1889
  getVariable(appId: string, key: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppVariable>;
1898
- syncVariable(appId: string, key: string, payload: SyncAppVariablePayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
1890
+ syncVariable(appId: string, key: string, payload: SyncAppVariablePayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
1899
1891
  createVariable(appId: string, data: {
1900
1892
  appId: string;
1901
1893
  key: string;
1902
1894
  value: string;
1903
- }, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
1895
+ }, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
1904
1896
  editVariable(appId: string, data: {
1905
1897
  appId: string;
1906
1898
  key: string;
1907
1899
  localValue: string;
1908
1900
  externalValue: string;
1909
- }, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
1901
+ }, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
1910
1902
  deleteVariable(data: {
1911
1903
  appId: string;
1912
1904
  key: string;
1913
- }): Promise<any>;
1905
+ }): Promise<void>;
1914
1906
  };
1915
1907
  create(payload: CreateAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
1916
1908
  createStatus(sagaId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
@@ -1932,16 +1924,16 @@ declare const api: {
1932
1924
  deleteChatAction(appId: string, chatActionId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1933
1925
  };
1934
1926
  chatBoosters: {
1935
- createChatBooster(appId: string, chatBoosterId: string, payload: UpsertApplicationChatBoosterPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void>>;
1936
- updateChatBooster(appId: string, chatBoosterId: string, payload: UpsertApplicationChatBoosterPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void>>;
1927
+ createChatBooster(appId: string, chatBoosterId: string, payload: UpsertApplicationChatBoosterPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined>>;
1928
+ updateChatBooster(appId: string, chatBoosterId: string, payload: UpsertApplicationChatBoosterPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined>>;
1937
1929
  };
1938
1930
  customProps: {
1939
- createCustomProps(appId: string, property: ApplicationPropertyDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1940
- updateCustomProps(appId: string, property: ApplicationPropertyDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1941
- deleteCustomProps(appId: string, property: ApplicationPropertyDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1931
+ createCustomProps(appId: string, property: ApplicationPropertyDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<undefined>;
1932
+ updateCustomProps(appId: string, property: ApplicationPropertyDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<undefined>;
1933
+ deleteCustomProps(appId: string, property: ApplicationPropertyDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<undefined>;
1942
1934
  };
1943
1935
  display: {
1944
- updateVersionHistory(appId: string, payload: UpdateApplicationChangelogPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1936
+ updateVersionHistory(appId: string, payload: UpdateApplicationChangelogPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<undefined>;
1945
1937
  updateBasicDetails(appId: string, basicDetails: ApplicationBasicDetailsDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1946
1938
  updateOverview(appId: string, data: ApplicationOverviewDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1947
1939
  updateTutorialAndSupport(appId: string, data: ApplicationTutorialAndSupportDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
@@ -1959,21 +1951,21 @@ declare const api: {
1959
1951
  infrastructure: {
1960
1952
  blocks: {
1961
1953
  getBlocks(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<AppInfrastructureBlocks>;
1962
- updateBlocks(appId: string, payload: UpdateAppInfrastructureBlocksPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
1954
+ updateBlocks(appId: string, payload: UpdateAppInfrastructureBlocksPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1963
1955
  updateRepository(appId: string, payload: {
1964
1956
  provider: AppRepositoryProvider;
1965
- }, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
1957
+ }, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1966
1958
  updateDeployment(appId: string, payload: {
1967
1959
  mode: AppDeploymentMode;
1968
1960
  provider: AppDeploymentProvider;
1969
1961
  customUrl: string;
1970
- }, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
1962
+ }, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1971
1963
  updateStorage(appId: string, payload: {
1972
1964
  provider: AppStorageProvider;
1973
- }, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
1965
+ }, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1974
1966
  updateLogger(appId: string, payload: {
1975
1967
  provider: AppLoggerProvider;
1976
- }, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
1968
+ }, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1977
1969
  };
1978
1970
  };
1979
1971
  onboarding: {
@@ -1987,19 +1979,16 @@ declare const api: {
1987
1979
  product: {
1988
1980
  updateProduct(appId: string, payload: UpdateApplicationProductPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1989
1981
  };
1990
- reporting: {
1991
- sendEvent<TPayload = unknown>(appId: string, event: ReportingEvent<TPayload>, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1992
- };
1993
1982
  resource: {
1994
1983
  getAppUpgrades(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppResourceDto>>;
1995
- createAppUpgrade(appId: string, body: UpsertAppResourcePayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void>>;
1996
- updateAppUpgrade(appId: string, body: UpsertAppResourcePayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void>>;
1984
+ createAppUpgrade(appId: string, body: UpsertAppResourcePayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined>>;
1985
+ updateAppUpgrade(appId: string, body: UpsertAppResourcePayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined>>;
1997
1986
  deleteAppUpgrade(appId: string, resourceId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
1998
- copyUpgrade(sourceAppId: string, destinationAppId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void>>;
1987
+ copyUpgrade(sourceAppId: string, destinationAppId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined>>;
1999
1988
  };
2000
1989
  review: {
2001
- createSubmission(appId: string, payload: CreateApplicationSubmissionPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2002
- cancelSubmission(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
1990
+ createSubmission(appId: string, payload: CreateApplicationSubmissionPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<undefined>;
1991
+ cancelSubmission(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<undefined>;
2003
1992
  };
2004
1993
  webhooks: {
2005
1994
  updateAppWebhooks(appId: string, payload: UpdateApplicationWebhookPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
@@ -2020,7 +2009,7 @@ declare const api: {
2020
2009
  createAiContent(appId: string, appName: string, appSummary: string): Promise<axios.AxiosResponse<any>>;
2021
2010
  };
2022
2011
  usage: {
2023
- getUsage(appId: string, options: ApplicationUsageOptionsDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any[]>;
2012
+ getUsage(appId: string, options: ApplicationUsageOptionsDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<unknown[]>;
2024
2013
  };
2025
2014
  purchases: {
2026
2015
  getPurchases(apps: {
@@ -2041,7 +2030,7 @@ declare const api: {
2041
2030
  to: string;
2042
2031
  duration: string;
2043
2032
  }, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<{
2044
- data: any;
2033
+ data: unknown;
2045
2034
  appId: string;
2046
2035
  }[]>;
2047
2036
  getSummaryPurchasesHistory(apps: {
@@ -2051,7 +2040,7 @@ declare const api: {
2051
2040
  to: string;
2052
2041
  duration: string;
2053
2042
  }, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<{
2054
- data: any;
2043
+ data: unknown;
2055
2044
  appId: string;
2056
2045
  }[]>;
2057
2046
  };
@@ -2063,9 +2052,9 @@ declare const api: {
2063
2052
  getUser(authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<UserDto>;
2064
2053
  getUserIntegrations(authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<UserIntegrationsDto>;
2065
2054
  updateUser(user: UserDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<number>;
2066
- updateUserIntegrations(payload: UpdateUserIntegrations, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
2055
+ updateUserIntegrations(payload: UpdateUserIntegrations, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2067
2056
  updateUserFeatures(payload: UpdateUserFeatures, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2068
- removeUserGitHubIntegrationByInstallationId(installationId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
2057
+ removeUserGitHubIntegrationByInstallationId(installationId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
2069
2058
  updateUserNetlifyIntegration(userNetlifyIntegration: UserNetlifyIntegrationDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<number>;
2070
2059
  };
2071
2060
  categories: {
@@ -2078,7 +2067,7 @@ declare const api: {
2078
2067
  amount: string;
2079
2068
  note: string;
2080
2069
  userId: string;
2081
- }, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
2070
+ }, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<unknown>;
2082
2071
  };
2083
2072
  };
2084
2073
  links: {
@@ -2087,7 +2076,7 @@ declare const api: {
2087
2076
  messaging: {
2088
2077
  developer: {
2089
2078
  getMessages(authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<DeveloperMessageDto[]>;
2090
- createMessage(message: CreateDeveloperMessagePayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void>>;
2079
+ createMessage(message: CreateDeveloperMessagePayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<undefined>>;
2091
2080
  };
2092
2081
  };
2093
2082
  research: {
@@ -2118,23 +2107,23 @@ declare const api: {
2118
2107
  configuration: {
2119
2108
  property: {
2120
2109
  getProperties(clientId: string, isAgent?: boolean | undefined): Promise<axios.AxiosResponse<PropertiesDto>>;
2121
- registerProperty(property: Property): Promise<axios.AxiosResponse<void>>;
2122
- unregisterProperty(propertyId: string, clientId: string, properties?: PropertyDto[] | undefined): Promise<axios.AxiosResponse<void>>;
2123
- publishProperty(propertyId: string, clientId: string, accessType: PropertyAccessItemDto): Promise<axios.AxiosResponse<void>>;
2124
- publishProperties(properties: Property[]): Promise<axios.AxiosResponse<void>[]>;
2125
- registerProperties(properties: Property[]): Promise<axios.AxiosResponse<void>[]>;
2110
+ registerProperty(property: Property): Promise<axios.AxiosResponse<undefined>>;
2111
+ unregisterProperty(propertyId: string, clientId: string, properties?: PropertyDto[] | undefined): Promise<axios.AxiosResponse<undefined>>;
2112
+ publishProperty(propertyId: string, clientId: string, accessType: PropertyAccessItemDto): Promise<axios.AxiosResponse<undefined>>;
2113
+ publishProperties(properties: Property[]): Promise<axios.AxiosResponse<undefined>[]>;
2114
+ registerProperties(properties: Property[]): Promise<axios.AxiosResponse<undefined>[]>;
2126
2115
  unregisterProperties(clientId: string): Promise<void>;
2127
2116
  };
2128
2117
  webhook: {
2129
2118
  getWebhooks(clientId: string, isAgent?: boolean | undefined): Promise<axios.AxiosResponse<WebhookDto[]>>;
2130
- unregisterWebhook(clientId: string, webhookId: string): Promise<axios.AxiosResponse<void>>;
2119
+ unregisterWebhook(clientId: string, webhookId: string): Promise<axios.AxiosResponse<undefined>>;
2131
2120
  unregisterWebhooks(clientId: string): Promise<void>;
2132
2121
  registerWebhooks(webhooks: Webhook[]): Promise<void>;
2133
2122
  migrateWebhooks(webhooks: Webhook[], clientId: string): Promise<void>;
2134
2123
  getLicenseWebhooksList(isAgent: boolean): Promise<axios.AxiosResponse<any> | {
2135
2124
  data: never[];
2136
2125
  }>;
2137
- deleteLicenseWebhook(id: string): Promise<axios.AxiosResponse<void>>;
2126
+ deleteLicenseWebhook(id: string): Promise<axios.AxiosResponse<undefined>>;
2138
2127
  };
2139
2128
  };
2140
2129
  };
@@ -2160,8 +2149,8 @@ declare const api: {
2160
2149
  createRepositoryBuildHook(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<{
2161
2150
  keys: GitHubRepositoryHook[];
2162
2151
  } | undefined>;
2163
- getFile(path: string, repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<any>;
2164
- getCommits(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<{}[]>;
2152
+ getFile(path: string, repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<object>;
2153
+ getCommits(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<object[]>;
2165
2154
  commitFiles(data: {
2166
2155
  repositoryName: string;
2167
2156
  repositoryBranch: string;
@@ -2217,11 +2206,11 @@ declare const api: {
2217
2206
  getProjectEnvs(projectId: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelProjectEnv[]>;
2218
2207
  getProjectEnv(projectId: string, envId: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelProjectEnv | undefined>;
2219
2208
  getProjectEnvByKey(projectId: string, envKey: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelProjectEnv | undefined>;
2220
- createProjectEnv(projectId: string, key: string, value: string, envs?: {
2209
+ createProjectEnv(projectId: string, key: string, value: string, projectEnvs?: {
2221
2210
  id: string;
2222
2211
  key: string;
2223
- }[] | undefined, authorization?: VercelClientInstanceAuthorization | undefined): Promise<any>;
2224
- removeProjectEnv(projectId: string, envId: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<any>;
2212
+ }[] | undefined, authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelProjectEnv>;
2213
+ removeProjectEnv(projectId: string, envId: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<void>;
2225
2214
  };
2226
2215
  deploy: {
2227
2216
  createDeploy(project: string, repoId: number, branch: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelDeploy>;
@@ -2283,14 +2272,33 @@ declare const api: {
2283
2272
  getProjectIssues(projectFullName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryProjectIssue[]>;
2284
2273
  getProjectIssueLatestEvent(issueId: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryProjectIssueEvent>;
2285
2274
  getProjectKeys(projectFullName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryProjectKey[]>;
2286
- createTeam(organizationSlug: string, teamName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<any>;
2275
+ createTeam(organizationSlug: string, teamName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryTeam>;
2287
2276
  createRepo(organizationSlug: string, projectId: string, repositoryFullName: string, repositoryBranch: string, githubIntegrationId: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<void>;
2288
2277
  createProject(organizationSlug: string, appName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryProject>;
2289
- deleteProject(projectFullName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<any>;
2278
+ deleteProject(projectFullName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<void>;
2290
2279
  };
2291
2280
  text: {
2292
- uptime: {
2293
- getAppUptimeReports(appId: string, payload: GetAppUptimeReportsPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<UptimeDto>;
2281
+ app: {
2282
+ monitoring: {
2283
+ events: {
2284
+ getEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent>;
2285
+ getEvents(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEvent[]>;
2286
+ upsertEvent(appId: string, event: AppMonitoringEvent, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2287
+ deleteEvent(appId: string, eventKey: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2288
+ sendEvent(appId: string, data: AppMonitoringEventData, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2289
+ getEventsLog(appId: string, payload: GetAppMonitoringEventsLogPayload, authorization?: TextClientInstanceAuthorization | undefined): Promise<GetAppMonitoringEventsLogResponse>;
2290
+ };
2291
+ reports: {
2292
+ getUptimeReports(appId: string, payload: AppMonitoringReportParams, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringUptimeReportDto>;
2293
+ getEventReports(appId: string, payload: AppMonitoringReportParams, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringEventsReportDto>;
2294
+ getCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport>;
2295
+ getCustomReportData(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReportDataDto>;
2296
+ getCustomReports(appId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<AppMonitoringCustomReport[]>;
2297
+ createCustomReport(appId: string, customReport: Omit<AppMonitoringCustomReport, "id">, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2298
+ updateCustomReport(appId: string, customReport: AppMonitoringCustomReport, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2299
+ deleteCustomReport(appId: string, customReportId: string, authorization?: TextClientInstanceAuthorization | undefined): Promise<void>;
2300
+ };
2301
+ };
2294
2302
  };
2295
2303
  };
2296
2304
  };
@@ -2302,11 +2310,13 @@ declare function initApi(config: {
2302
2310
  accounts?: string;
2303
2311
  adapter?: string;
2304
2312
  dps?: string;
2305
- text?: string;
2306
2313
  };
2307
2314
  products?: {
2308
2315
  livechat?: string;
2309
2316
  };
2317
+ integrations?: {
2318
+ text?: string;
2319
+ };
2310
2320
  };
2311
2321
  }, tokens?: {
2312
2322
  platform?: {
@@ -2345,12 +2355,13 @@ declare const API_NOTIFICATIONS: {
2345
2355
  };
2346
2356
  };
2347
2357
 
2348
- type ApiError = {
2358
+ type UnauthorizeApiErrorSource = "dps" | "github" | "vercel" | "netlify" | "sentry" | "planetscale";
2359
+ interface ApiError {
2349
2360
  message: string;
2350
- };
2361
+ }
2351
2362
  declare class UnauthorizeApiError extends Error {
2352
- source: "dps" | "github" | "vercel" | "netlify" | "sentry" | "planetscale";
2353
- constructor(source: "dps" | "github" | "vercel" | "netlify" | "sentry" | "planetscale");
2363
+ source: UnauthorizeApiErrorSource;
2364
+ constructor(source: UnauthorizeApiErrorSource);
2354
2365
  }
2355
2366
 
2356
2367
  declare const serializerBase64: {
@@ -2358,4 +2369,4 @@ declare const serializerBase64: {
2358
2369
  deserialize<T_1>(message?: string): T_1 | undefined;
2359
2370
  };
2360
2371
 
2361
- export { API_NOTIFICATIONS, ActiveUserReportingEvent, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, AuthorizeData, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateDeveloperMessagePayload, CreatePatPayload, CustomReportingEvent, DeveloperLedgerParams, DeveloperMessage, DeveloperMessageBaseDto, DeveloperMessageDto, ErrorReportingEvent, ErrorType, GetAppUptimeReportsPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LinkAppStorageVercelData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, PatDto, PatScopeDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ReportingEvent, ReportingEventBase, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, UnauthorizeApiError, UnlinkAppDeploymentPayload, UnlinkAppRepositoryPayload, UnlinkAppSentryLoggerPayload, UnlinkAppStoragePayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppResourcePayload, UpsertApplicationChatBoosterPayload, UptimeDto, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserSentryIntegrationDto, UserVercelIntegrationDto, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelDeploy, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, Webhook, WebhookDto, api, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getLiveChatClientAuthorization, getLiveChatClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
2372
+ export { API_NOTIFICATIONS, AddAppAuthorizationData, AddAppAuthorizationPayload, AddAppAuthorizationResult, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppMonitoringCustomReport, AppMonitoringCustomReportDataDto, AppMonitoringEvent, AppMonitoringEventData, AppMonitoringEventsLog, AppMonitoringEventsLogItem, AppMonitoringEventsReportDto, AppMonitoringReportParams, AppMonitoringUptimeReportDto, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTarget, AppResourceDto, AppSentryLogger, AppSentryLoggerConfig, AppStorage, AppStorageBlock, AppStorageProvider, AppVariable, AppVariableExternalProvider, AppVariableLocalProvider, AppVariableProvider, AppVariableStatus, AppVariableType, AppVercelDeployment, AppVercelDeploymentConfig, AppVercelStorage, AppVercelStorageConfig, ApplicationAutoReviewDto, ApplicationAutoReviewPayload, ApplicationBasicDetailsDto, ApplicationBenefitDto, ApplicationDto, ApplicationFeatureDto, ApplicationIconDto, ApplicationOverviewDto, ApplicationPaymentDto, ApplicationPropertyDto, ApplicationScreenshotDto, ApplicationTutorialAndSupportDto, ApplicationUsageOptionsDto, AuthorizeData, Category, ClientDto, ClientInfoDto, ClientScopeDto, ClientWithSecretDto, CreateAppOutput, CreateAppPayload, CreateAppResult, CreateAppStatus, CreateAppStepStatus, CreateApplicationAuthorizationPayload, CreateApplicationChatActionPayload, CreateApplicationPayload, CreateApplicationResponse, CreateApplicationSubmissionPayload, CreateClientPayload, CreateDeveloperMessagePayload, CreatePatPayload, DeveloperLedgerParams, DeveloperMessage, DeveloperMessageBaseDto, DeveloperMessageDto, GetAppMonitoringCustomReportDataPayload, GetAppMonitoringEventsLogPayload, GetAppMonitoringEventsLogResponse, GetAppMonitoringEventsReportPayload, GetAppMonitoringUptimeReportPayload, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentNetlifySiteData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppDeploymentVercelProjectData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, LinkAppStoragePlanetScaleDatabaseData, LinkAppStorageVercelData, LiveChatClientInstanceAuthorization, LiveChatClientInstanceOptions, NetlifyAccount, NetlifyClientInstanceAuthorization, NetlifyClientInstanceOptions, NetlifyDeploy, NetlifyDeployKey, NetlifyEnv, NetlifySite, PatDto, PatScopeDto, PlanetScaleClientInstanceAuthorization, PlanetScaleClientInstanceOptions, PlanetScaleDatabase, PlanetScaleDatabasePassword, PlanetScaleOrganization, PlanetScalePaginatedResult, PlanetScalePagination, PlanetScaleUser, PlatformAccountsClientInstanceAuthorization, PlatformAccountsClientInstanceOptions, PlatformAdapterClientInstanceAuthorization, PlatformAdapterClientInstanceOptions, PlatformDpsClientInstanceAuthorization, PlatformDpsClientInstanceOptions, ProductDto, PropertiesDto, Property, PropertyAccessDto, PropertyAccessItemDto, PropertyDto, ResearchCustomerItemDto, ResearchCustomerLocationItemDto, ResearchDictionaryParams, ResearchMarketplaceItemDto, ResearchMarketplaceParams, ResearchTrafficItemDto, ResearchTrafficParams, ScopeDto, SeedAppRepositoryPayload, SeedAppRepositoryResult, SentryClientInstanceAuthorization, SentryClientInstanceOptions, SentryIntegration, SentryOrganization, SentryProject, SentryProjectIssue, SentryProjectIssueEvent, SentryProjectKey, SentryRepository, SentryTeam, ShortcutDto, SyncAppVariablePayload, TextClientInstanceAuthorization, TextClientInstanceOptions, UnauthorizeApiError, UnauthorizeApiErrorSource, UnlinkAppDeploymentPayload, UnlinkAppRepositoryPayload, UnlinkAppSentryLoggerPayload, UnlinkAppStoragePayload, UpdateAppInfrastructureBlocksPayload, UpdateApplicationChangelogPayload, UpdateApplicationChatActionPayload, UpdateApplicationDirectInstallUrlPayload, UpdateApplicationIconPayload, UpdateApplicationOnboardingPayload, UpdateApplicationProductPayload, UpdateApplicationWebhookPayload, UpdateApplicationWidgetDto, UpdateChatWebhookPayload, UpdateClientPayload, UpdateUserFeatures, UpdateUserIntegrations, UpsertAppResourcePayload, UpsertApplicationChatBoosterPayload, UserDto, UserGitHubIntegrationDto, UserIntegrationsDto, UserNetlifyIntegrationDto, UserPlanetScaleIntegrationDto, UserSentryIntegrationDto, UserVercelIntegrationDto, VercelClientInstanceAuthorization, VercelClientInstanceOptions, VercelDeploy, VercelNamespace, VercelPaginatedResult, VercelPagination, VercelProject, VercelProjectEnv, VercelRepository, VercelSearchRepositoryResponse, Webhook, WebhookDto, api, getAppAutoReviewPayload, getEmptyAppAutoReview, getGitHubClientAuthorization, getGithubClientRequestConfig, getLiveChatClientAuthorization, getLiveChatClientConfig, getNetlifyClientAuthorization, getNetlifyClientConfig, getPlanetScaleClientAuthorization, getPlanetScaleClientConfig, getPlatformAccountsClientAuthorization, getPlatformAccountsClientConfig, getPlatformAdapterClientAuthorization, getPlatformAdapterClientConfig, getPlatformDpsAdminClientAuthorization, getPlatformDpsClientAuthorization, getPlatformDpsClientConfig, getRegion, getSentryClientAuthorization, getSentryClientConfig, getTextClientAuthorization, getTextClientConfig, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initTextClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, textClientInstance, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };