@livechat/developer-studio-api 1.0.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.mts +2274 -0
- package/dist/index.d.ts +2274 -0
- package/dist/index.js +4758 -0
- package/dist/index.mjs +4673 -0
- package/package.json +29 -0
package/dist/index.d.ts
ADDED
|
@@ -0,0 +1,2274 @@
|
|
|
1
|
+
import * as axios from 'axios';
|
|
2
|
+
import { AxiosRequestConfig } from 'axios';
|
|
3
|
+
|
|
4
|
+
interface AppEventDto {
|
|
5
|
+
name: string;
|
|
6
|
+
aggregateName: string;
|
|
7
|
+
aggregateId: string;
|
|
8
|
+
sequence: number;
|
|
9
|
+
payload: {
|
|
10
|
+
product: string;
|
|
11
|
+
};
|
|
12
|
+
meta: {
|
|
13
|
+
account: string;
|
|
14
|
+
developer: string;
|
|
15
|
+
email: string;
|
|
16
|
+
license: string;
|
|
17
|
+
organization: string;
|
|
18
|
+
referer: string;
|
|
19
|
+
region: string;
|
|
20
|
+
scopes: string;
|
|
21
|
+
webBrowser: string;
|
|
22
|
+
};
|
|
23
|
+
createdAt: string;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
interface GitHubInstallation {
|
|
27
|
+
id: number;
|
|
28
|
+
app_id: number;
|
|
29
|
+
app_slug: string;
|
|
30
|
+
repository_selection: string;
|
|
31
|
+
target_type: "User" | "Organization";
|
|
32
|
+
account: {
|
|
33
|
+
login: string;
|
|
34
|
+
};
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
interface GitHubRepository {
|
|
38
|
+
id: string;
|
|
39
|
+
name: string;
|
|
40
|
+
full_name: string;
|
|
41
|
+
private: boolean;
|
|
42
|
+
created_at: string;
|
|
43
|
+
updated_at: string;
|
|
44
|
+
pushed_at: string;
|
|
45
|
+
language: string;
|
|
46
|
+
description?: string;
|
|
47
|
+
branch?: string;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
interface GitHubRepositoryBranch {
|
|
51
|
+
name: string;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
interface GitHubRepositoryHook {
|
|
55
|
+
type: string;
|
|
56
|
+
id: number;
|
|
57
|
+
name: string;
|
|
58
|
+
active: boolean;
|
|
59
|
+
events: string[];
|
|
60
|
+
config: {
|
|
61
|
+
content_type: string;
|
|
62
|
+
url: string;
|
|
63
|
+
insecure_ssl: string;
|
|
64
|
+
};
|
|
65
|
+
updated_at: string;
|
|
66
|
+
created_at: string;
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
interface GitHubRepositoryKey {
|
|
70
|
+
id: string;
|
|
71
|
+
key: string;
|
|
72
|
+
title: string;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface GitHubRepositorySeed {
|
|
76
|
+
sha: string;
|
|
77
|
+
size: number;
|
|
78
|
+
content: string;
|
|
79
|
+
encoding: string;
|
|
80
|
+
}
|
|
81
|
+
|
|
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
|
+
}
|
|
97
|
+
declare function getGithubClientRequestConfig(options?: GithubClientRequestOptions | undefined): AxiosRequestConfig;
|
|
98
|
+
declare function initGithubClientInstance(token?: string): void;
|
|
99
|
+
declare function updateGithubClientInstance(token?: string): void;
|
|
100
|
+
|
|
101
|
+
interface NetlifyAccount {
|
|
102
|
+
id: string;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
interface NetlifyEnv {
|
|
106
|
+
key: string;
|
|
107
|
+
scopes: string[];
|
|
108
|
+
values: {
|
|
109
|
+
id: string;
|
|
110
|
+
context: string;
|
|
111
|
+
value: string;
|
|
112
|
+
}[];
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
interface NetlifyDeployKey {
|
|
116
|
+
id: string;
|
|
117
|
+
public_key: string;
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
interface NetlifySite {
|
|
121
|
+
id: string;
|
|
122
|
+
name: string;
|
|
123
|
+
admin_url: string;
|
|
124
|
+
default_domain: string;
|
|
125
|
+
error_message?: string;
|
|
126
|
+
user_id: string;
|
|
127
|
+
deploy_id?: string;
|
|
128
|
+
build_settings: {
|
|
129
|
+
installation_id: string;
|
|
130
|
+
provider: string;
|
|
131
|
+
repo_path: string;
|
|
132
|
+
allowed_branches: string[];
|
|
133
|
+
public_repo: boolean;
|
|
134
|
+
env: string;
|
|
135
|
+
dir: string;
|
|
136
|
+
cmd: string;
|
|
137
|
+
};
|
|
138
|
+
state: string;
|
|
139
|
+
plugins: {
|
|
140
|
+
package: string;
|
|
141
|
+
}[];
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
interface NetlifyDeploy {
|
|
145
|
+
id: string;
|
|
146
|
+
name: string;
|
|
147
|
+
context: string;
|
|
148
|
+
state: string;
|
|
149
|
+
error_message: string;
|
|
150
|
+
plugin_state: string;
|
|
151
|
+
plugin_runs?: {
|
|
152
|
+
package: string;
|
|
153
|
+
reporting_event: string;
|
|
154
|
+
state: string;
|
|
155
|
+
title: string;
|
|
156
|
+
summary: string;
|
|
157
|
+
text: string;
|
|
158
|
+
}[];
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
interface NetlifyClientInstanceAuthorization {
|
|
162
|
+
token?: string;
|
|
163
|
+
}
|
|
164
|
+
interface NetlifyClientInstanceOptions {
|
|
165
|
+
token?: string;
|
|
166
|
+
}
|
|
167
|
+
declare const netlifyClientInstance: axios.AxiosInstance;
|
|
168
|
+
declare function getNetlifyClientAuthorization(req: {
|
|
169
|
+
headers: {
|
|
170
|
+
[key: string]: string | string[] | undefined;
|
|
171
|
+
};
|
|
172
|
+
}): NetlifyClientInstanceAuthorization;
|
|
173
|
+
declare function getNetlifyClientConfig(options?: NetlifyClientInstanceOptions): AxiosRequestConfig;
|
|
174
|
+
declare function initNetlifyClientInstance(token?: string): void;
|
|
175
|
+
declare function updateNetlifyClientInstance(token?: string): void;
|
|
176
|
+
|
|
177
|
+
interface PlanetScalePagination {
|
|
178
|
+
type: string;
|
|
179
|
+
current_page: number;
|
|
180
|
+
}
|
|
181
|
+
type PlanetScalePaginatedResult = PlanetScalePagination;
|
|
182
|
+
|
|
183
|
+
interface PlanetScaleDatabase {
|
|
184
|
+
id: string;
|
|
185
|
+
name: string;
|
|
186
|
+
html_url: string;
|
|
187
|
+
url: string;
|
|
188
|
+
default_branch: string;
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
type GetPlanetScaleDatabasesResult = PlanetScalePaginatedResult & {
|
|
192
|
+
data: PlanetScaleDatabase[];
|
|
193
|
+
};
|
|
194
|
+
|
|
195
|
+
interface PlanetScaleDatabasePassword {
|
|
196
|
+
id: string;
|
|
197
|
+
type: string;
|
|
198
|
+
name: string;
|
|
199
|
+
plain_text: string;
|
|
200
|
+
username: string;
|
|
201
|
+
renewable: boolean;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
type GetPlanetScaleDatabasePasswordsResult = PlanetScalePaginatedResult & {
|
|
205
|
+
data: PlanetScaleDatabasePassword[];
|
|
206
|
+
};
|
|
207
|
+
|
|
208
|
+
interface PlanetScaleOrganization {
|
|
209
|
+
id: string;
|
|
210
|
+
type: string;
|
|
211
|
+
name: string;
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
type GetPlanetScaleOrganizationsResult = PlanetScalePaginatedResult & {
|
|
215
|
+
data: PlanetScaleOrganization[];
|
|
216
|
+
};
|
|
217
|
+
|
|
218
|
+
interface PlanetScaleUser {
|
|
219
|
+
id: string;
|
|
220
|
+
type: string;
|
|
221
|
+
name: string;
|
|
222
|
+
email: string;
|
|
223
|
+
display_name: string;
|
|
224
|
+
default_organization_id: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
interface PlanetScaleClientInstanceAuthorization {
|
|
228
|
+
token?: string;
|
|
229
|
+
}
|
|
230
|
+
interface PlanetScaleClientInstanceOptions {
|
|
231
|
+
token?: string;
|
|
232
|
+
ensureAuthorizationToken?: boolean;
|
|
233
|
+
}
|
|
234
|
+
declare const planetScaleClientInstance: axios.AxiosInstance;
|
|
235
|
+
declare function getPlanetScaleClientAuthorization(req: {
|
|
236
|
+
headers: {
|
|
237
|
+
[key: string]: string | string[] | undefined;
|
|
238
|
+
};
|
|
239
|
+
}): PlanetScaleClientInstanceAuthorization;
|
|
240
|
+
declare function getPlanetScaleClientConfig(options?: PlanetScaleClientInstanceOptions): AxiosRequestConfig;
|
|
241
|
+
declare function initPlanetScaleClientInstance(token?: string): void;
|
|
242
|
+
declare function updatePlanetScaleClientInstance(token?: string): void;
|
|
243
|
+
|
|
244
|
+
interface SentryIntegration {
|
|
245
|
+
id: string;
|
|
246
|
+
status: 'active' | 'disabled';
|
|
247
|
+
provider: {
|
|
248
|
+
name: string;
|
|
249
|
+
};
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
interface SentryOrganization {
|
|
253
|
+
id: string;
|
|
254
|
+
name: string;
|
|
255
|
+
slug: string;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
interface SentryProject {
|
|
259
|
+
id: string;
|
|
260
|
+
slug: string;
|
|
261
|
+
name: string;
|
|
262
|
+
organization: {
|
|
263
|
+
id: string;
|
|
264
|
+
slug: string;
|
|
265
|
+
};
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
interface SentryProjectIssue {
|
|
269
|
+
id: string;
|
|
270
|
+
title: string;
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
interface SentryProjectIssueEvent {
|
|
274
|
+
id: 'ed5d462d3c324a3c8f57071aff4c817b';
|
|
275
|
+
groupID: '3948330870';
|
|
276
|
+
eventID: 'ed5d462d3c324a3c8f57071aff4c817b';
|
|
277
|
+
projectID: '4504713248571392';
|
|
278
|
+
size: 49159;
|
|
279
|
+
entries: {
|
|
280
|
+
type: 'exception';
|
|
281
|
+
data: {
|
|
282
|
+
values: {
|
|
283
|
+
type: string;
|
|
284
|
+
value: string;
|
|
285
|
+
stacktrace: {
|
|
286
|
+
frames: {
|
|
287
|
+
filename: './pages/index.tsx';
|
|
288
|
+
absPath: 'webpack://_N_E/./pages/index.tsx';
|
|
289
|
+
module: 'pages/index';
|
|
290
|
+
package: null;
|
|
291
|
+
platform: null;
|
|
292
|
+
instructionAddr: null;
|
|
293
|
+
symbolAddr: null;
|
|
294
|
+
function: '<object>.children.onClick';
|
|
295
|
+
rawFunction: null;
|
|
296
|
+
symbol: null;
|
|
297
|
+
context: [
|
|
298
|
+
[
|
|
299
|
+
5,
|
|
300
|
+
' <ViewContainer>'
|
|
301
|
+
],
|
|
302
|
+
[
|
|
303
|
+
6,
|
|
304
|
+
' <h1>Home page</h1>'
|
|
305
|
+
],
|
|
306
|
+
[
|
|
307
|
+
7,
|
|
308
|
+
' <input type="button" value="Button" onClick={() => {'
|
|
309
|
+
],
|
|
310
|
+
[
|
|
311
|
+
8,
|
|
312
|
+
' const test: any = {}'
|
|
313
|
+
],
|
|
314
|
+
[
|
|
315
|
+
9,
|
|
316
|
+
''
|
|
317
|
+
],
|
|
318
|
+
[
|
|
319
|
+
10,
|
|
320
|
+
' test.test.doSomething();'
|
|
321
|
+
],
|
|
322
|
+
[
|
|
323
|
+
11,
|
|
324
|
+
' }} />'
|
|
325
|
+
],
|
|
326
|
+
[
|
|
327
|
+
12,
|
|
328
|
+
' <input type="button" value="Button 2" onClick={() => {'
|
|
329
|
+
],
|
|
330
|
+
[
|
|
331
|
+
13,
|
|
332
|
+
' const test: any = {}'
|
|
333
|
+
],
|
|
334
|
+
[
|
|
335
|
+
14,
|
|
336
|
+
''
|
|
337
|
+
],
|
|
338
|
+
[
|
|
339
|
+
15,
|
|
340
|
+
' test.test.doSomething();'
|
|
341
|
+
]
|
|
342
|
+
];
|
|
343
|
+
lineNo: 10;
|
|
344
|
+
colNo: 19;
|
|
345
|
+
}[];
|
|
346
|
+
};
|
|
347
|
+
}[];
|
|
348
|
+
};
|
|
349
|
+
}[];
|
|
350
|
+
message: '';
|
|
351
|
+
title: "TypeError: Cannot read properties of undefined (reading 'doSomething')";
|
|
352
|
+
location: './pages/index.tsx';
|
|
353
|
+
}
|
|
354
|
+
|
|
355
|
+
interface SentryProjectKey {
|
|
356
|
+
id: string;
|
|
357
|
+
public: string;
|
|
358
|
+
secret: string;
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
interface SentryRepository {
|
|
362
|
+
id: string;
|
|
363
|
+
name: string;
|
|
364
|
+
}
|
|
365
|
+
|
|
366
|
+
interface SentryTeam {
|
|
367
|
+
id: string;
|
|
368
|
+
name: string;
|
|
369
|
+
slug: string;
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
interface SentryClientInstanceAuthorization {
|
|
373
|
+
token?: string;
|
|
374
|
+
}
|
|
375
|
+
interface SentryClientInstanceOptions {
|
|
376
|
+
token?: string;
|
|
377
|
+
}
|
|
378
|
+
declare const sentryClientInstance: axios.AxiosInstance;
|
|
379
|
+
declare function getSentryClientAuthorization(req: {
|
|
380
|
+
headers: {
|
|
381
|
+
[key: string]: string | string[] | undefined;
|
|
382
|
+
};
|
|
383
|
+
}): SentryClientInstanceAuthorization;
|
|
384
|
+
declare function getSentryClientConfig(options?: SentryClientInstanceOptions): AxiosRequestConfig;
|
|
385
|
+
declare function initSentryClientInstance(token?: string): void;
|
|
386
|
+
declare function updateSentryClientInstance(token: string | undefined): void;
|
|
387
|
+
|
|
388
|
+
interface VercelPagination {
|
|
389
|
+
count: number;
|
|
390
|
+
next: number;
|
|
391
|
+
prev: number;
|
|
392
|
+
}
|
|
393
|
+
interface VercelPaginatedResult {
|
|
394
|
+
pagination: VercelPagination;
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
interface VercelProjectEnv {
|
|
398
|
+
id: string;
|
|
399
|
+
key: string;
|
|
400
|
+
value: string;
|
|
401
|
+
decrypted: boolean;
|
|
402
|
+
type: "encrypted" | "plain";
|
|
403
|
+
target: ["production" | "preview" | "development"];
|
|
404
|
+
}
|
|
405
|
+
|
|
406
|
+
interface VercelProject {
|
|
407
|
+
id: string;
|
|
408
|
+
name: string;
|
|
409
|
+
accountId: string;
|
|
410
|
+
link: {
|
|
411
|
+
type: string;
|
|
412
|
+
repo: string;
|
|
413
|
+
repoId: number;
|
|
414
|
+
org: string;
|
|
415
|
+
productionBranch: string;
|
|
416
|
+
deployHooks: [];
|
|
417
|
+
};
|
|
418
|
+
targets: {
|
|
419
|
+
production: {
|
|
420
|
+
alias: string[];
|
|
421
|
+
url: string;
|
|
422
|
+
id?: string;
|
|
423
|
+
readyState?: "READY" | "BUILDING" | "ERROR";
|
|
424
|
+
};
|
|
425
|
+
};
|
|
426
|
+
env: VercelProjectEnv[];
|
|
427
|
+
}
|
|
428
|
+
|
|
429
|
+
type GetVercelProjectsResult = VercelPaginatedResult & {
|
|
430
|
+
projects: VercelProject[];
|
|
431
|
+
};
|
|
432
|
+
|
|
433
|
+
interface VercelRepository {
|
|
434
|
+
defaultBranch: string;
|
|
435
|
+
id: string;
|
|
436
|
+
name: string;
|
|
437
|
+
slug: string;
|
|
438
|
+
namespace: string;
|
|
439
|
+
private: boolean;
|
|
440
|
+
url: string;
|
|
441
|
+
}
|
|
442
|
+
|
|
443
|
+
interface VercelNamespace {
|
|
444
|
+
id: string;
|
|
445
|
+
name: string;
|
|
446
|
+
slug: string;
|
|
447
|
+
provider: string;
|
|
448
|
+
installationId: string;
|
|
449
|
+
isAccessRestricted: boolean;
|
|
450
|
+
ownerType: "user" | "team";
|
|
451
|
+
}
|
|
452
|
+
|
|
453
|
+
interface VercelSearchRepositoryResponse {
|
|
454
|
+
gitAccount: {
|
|
455
|
+
namespaceId: number | null;
|
|
456
|
+
provider: string;
|
|
457
|
+
};
|
|
458
|
+
repos: VercelRepository[];
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
interface VercelDeploy {
|
|
462
|
+
id: string;
|
|
463
|
+
alias: string[];
|
|
464
|
+
}
|
|
465
|
+
|
|
466
|
+
interface VercelClientInstanceAuthorization {
|
|
467
|
+
token?: string;
|
|
468
|
+
}
|
|
469
|
+
interface VercelClientInstanceOptions {
|
|
470
|
+
token?: string;
|
|
471
|
+
}
|
|
472
|
+
declare const vercelClientInstance: axios.AxiosInstance;
|
|
473
|
+
declare function getVercelClientAuthorization(req: {
|
|
474
|
+
headers: {
|
|
475
|
+
[key: string]: string | string[] | undefined;
|
|
476
|
+
};
|
|
477
|
+
}): VercelClientInstanceAuthorization;
|
|
478
|
+
declare function getVercelClientConfig(options?: VercelClientInstanceOptions): AxiosRequestConfig;
|
|
479
|
+
declare function initVercelClientInstance(token?: string): void;
|
|
480
|
+
declare function updateVercelClientInstance(token?: string): void;
|
|
481
|
+
|
|
482
|
+
interface AuthorizeData {
|
|
483
|
+
account_id: string;
|
|
484
|
+
access_token: string;
|
|
485
|
+
expires_in: number;
|
|
486
|
+
organization_id: string;
|
|
487
|
+
scope: string;
|
|
488
|
+
token_type: "Bearer";
|
|
489
|
+
}
|
|
490
|
+
|
|
491
|
+
interface ProductDto {
|
|
492
|
+
client_id: string;
|
|
493
|
+
created_at: string;
|
|
494
|
+
product: string;
|
|
495
|
+
}
|
|
496
|
+
|
|
497
|
+
interface ClientScopeDto {
|
|
498
|
+
scope: string;
|
|
499
|
+
required: boolean;
|
|
500
|
+
description: string;
|
|
501
|
+
}
|
|
502
|
+
interface ClientDto {
|
|
503
|
+
client_id: string;
|
|
504
|
+
configuration_uri: string;
|
|
505
|
+
name: string;
|
|
506
|
+
organization_id: string;
|
|
507
|
+
products: ProductDto[];
|
|
508
|
+
redirect_uri: string;
|
|
509
|
+
scopes: ClientScopeDto[];
|
|
510
|
+
type: string;
|
|
511
|
+
visibility: string;
|
|
512
|
+
}
|
|
513
|
+
interface ClientWithSecretDto extends ClientDto {
|
|
514
|
+
secret: string;
|
|
515
|
+
}
|
|
516
|
+
interface ClientInfoDto {
|
|
517
|
+
access_token: string;
|
|
518
|
+
account_id: string;
|
|
519
|
+
client_id: string;
|
|
520
|
+
expires_in: number;
|
|
521
|
+
organization_id: string;
|
|
522
|
+
scope: string;
|
|
523
|
+
token_type: string;
|
|
524
|
+
}
|
|
525
|
+
|
|
526
|
+
interface CreateClientPayload {
|
|
527
|
+
configuration_uri: string;
|
|
528
|
+
name: string;
|
|
529
|
+
visibility: string;
|
|
530
|
+
redirect_uri: string;
|
|
531
|
+
scopes: string[];
|
|
532
|
+
type: 'server_side_app' | 'javascript_app';
|
|
533
|
+
}
|
|
534
|
+
|
|
535
|
+
interface UpdateClientPayload {
|
|
536
|
+
redirect_uri: string;
|
|
537
|
+
secret?: string;
|
|
538
|
+
type: 'server_side_app' | 'javascript_app';
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
interface PatScopeDto {
|
|
542
|
+
name: string;
|
|
543
|
+
}
|
|
544
|
+
interface PatDto {
|
|
545
|
+
account_id: string;
|
|
546
|
+
created_at: string;
|
|
547
|
+
name: string;
|
|
548
|
+
organization_id: string;
|
|
549
|
+
personal_token_id: string;
|
|
550
|
+
scope: string;
|
|
551
|
+
}
|
|
552
|
+
interface CreatePatPayload extends PatDto {
|
|
553
|
+
personal_token: string;
|
|
554
|
+
}
|
|
555
|
+
|
|
556
|
+
interface ScopeDto {
|
|
557
|
+
description: string;
|
|
558
|
+
scope: string;
|
|
559
|
+
beta?: boolean;
|
|
560
|
+
}
|
|
561
|
+
|
|
562
|
+
interface PlatformAccountsClientInstanceAuthorization {
|
|
563
|
+
token?: string;
|
|
564
|
+
}
|
|
565
|
+
interface PlatformAccountsClientInstanceOptions {
|
|
566
|
+
token?: string;
|
|
567
|
+
}
|
|
568
|
+
declare const platformAccountsClientInstance: axios.AxiosInstance;
|
|
569
|
+
declare function getPlatformAccountsClientAuthorization(req: {
|
|
570
|
+
headers: {
|
|
571
|
+
[key: string]: string | string[] | undefined;
|
|
572
|
+
};
|
|
573
|
+
}): PlatformAccountsClientInstanceAuthorization;
|
|
574
|
+
declare function getPlatformAccountsClientConfig(options?: PlatformAccountsClientInstanceOptions): AxiosRequestConfig;
|
|
575
|
+
declare function initPlatformAccountsClientInstance(baseUrl?: string, token?: string): void;
|
|
576
|
+
|
|
577
|
+
type CreateAppPayload = {
|
|
578
|
+
output: CreateAppOutput;
|
|
579
|
+
commands: {
|
|
580
|
+
app: {
|
|
581
|
+
create: CreateApplicationPayload;
|
|
582
|
+
};
|
|
583
|
+
infrastructure: {
|
|
584
|
+
repository?: LinkAppRepositoryData;
|
|
585
|
+
deployment?: LinkAppDeploymentData;
|
|
586
|
+
storage?: LinkAppStorageData;
|
|
587
|
+
};
|
|
588
|
+
};
|
|
589
|
+
};
|
|
590
|
+
type CreateAppOutput = {
|
|
591
|
+
sagaId: string;
|
|
592
|
+
app?: {
|
|
593
|
+
id?: string;
|
|
594
|
+
isActivated?: boolean;
|
|
595
|
+
};
|
|
596
|
+
repository?: {
|
|
597
|
+
fullName?: string;
|
|
598
|
+
branch?: string;
|
|
599
|
+
};
|
|
600
|
+
deployment?: {
|
|
601
|
+
isDone?: boolean;
|
|
602
|
+
};
|
|
603
|
+
storage?: {
|
|
604
|
+
isDone?: boolean;
|
|
605
|
+
};
|
|
606
|
+
isDone?: boolean;
|
|
607
|
+
};
|
|
608
|
+
type CreateAppStepStatus<TData = {}> = {
|
|
609
|
+
isLoading: boolean;
|
|
610
|
+
isDone: boolean;
|
|
611
|
+
error?: {
|
|
612
|
+
message: string;
|
|
613
|
+
statusCode?: number;
|
|
614
|
+
};
|
|
615
|
+
} & TData;
|
|
616
|
+
type CreateAppStatus = {
|
|
617
|
+
app: CreateAppStepStatus<{
|
|
618
|
+
needToBeActivated?: boolean;
|
|
619
|
+
}> | undefined;
|
|
620
|
+
repository: CreateAppStepStatus<{
|
|
621
|
+
needToBeInstalled?: boolean;
|
|
622
|
+
}> | undefined;
|
|
623
|
+
deployment: CreateAppStepStatus<{
|
|
624
|
+
needToBeInstalled?: boolean;
|
|
625
|
+
}> | undefined;
|
|
626
|
+
storage: CreateAppStepStatus | undefined;
|
|
627
|
+
};
|
|
628
|
+
type CreateAppResult = {
|
|
629
|
+
output: CreateAppOutput;
|
|
630
|
+
status: CreateAppStatus;
|
|
631
|
+
};
|
|
632
|
+
|
|
633
|
+
type LinkAppDeploymentNetlifyData = {
|
|
634
|
+
installationId?: string;
|
|
635
|
+
sentryOrganizationSlug?: string;
|
|
636
|
+
sentryProjectSlug?: string;
|
|
637
|
+
} & ({
|
|
638
|
+
type: "new";
|
|
639
|
+
siteName: string;
|
|
640
|
+
} | {
|
|
641
|
+
type: "existing";
|
|
642
|
+
siteId: string;
|
|
643
|
+
});
|
|
644
|
+
type LinkAppDeploymentVercelData = {
|
|
645
|
+
sentryOrganizationSlug?: string;
|
|
646
|
+
sentryProjectSlug?: string;
|
|
647
|
+
} & ({
|
|
648
|
+
type: "new";
|
|
649
|
+
projectName?: string;
|
|
650
|
+
} | {
|
|
651
|
+
type: "existing";
|
|
652
|
+
projectId: string;
|
|
653
|
+
});
|
|
654
|
+
type LinkAppDeploymentData = ({
|
|
655
|
+
provider: "netlify";
|
|
656
|
+
} & LinkAppDeploymentNetlifyData) | ({
|
|
657
|
+
provider: "vercel";
|
|
658
|
+
} & LinkAppDeploymentVercelData);
|
|
659
|
+
type LinkAppDeploymentPayload = {
|
|
660
|
+
appId: string;
|
|
661
|
+
appName: string;
|
|
662
|
+
repositoryName: string;
|
|
663
|
+
repositoryBranch: string;
|
|
664
|
+
} & LinkAppDeploymentData;
|
|
665
|
+
type LinkAppDeploymentResult = {
|
|
666
|
+
needToBeInstalled: boolean;
|
|
667
|
+
};
|
|
668
|
+
|
|
669
|
+
type UnlinkAppDeploymentPayload = {
|
|
670
|
+
appId: string;
|
|
671
|
+
shouldDelete?: boolean;
|
|
672
|
+
};
|
|
673
|
+
|
|
674
|
+
interface AppVercelDeployment {
|
|
675
|
+
project: {
|
|
676
|
+
id: string;
|
|
677
|
+
name: string;
|
|
678
|
+
url: string;
|
|
679
|
+
adminUrl: string;
|
|
680
|
+
};
|
|
681
|
+
deploy: {
|
|
682
|
+
id?: string;
|
|
683
|
+
state?: "ERROR" | "READY" | "BUILDING";
|
|
684
|
+
};
|
|
685
|
+
repository: {
|
|
686
|
+
isAccessible: boolean;
|
|
687
|
+
installationId?: number | null;
|
|
688
|
+
};
|
|
689
|
+
}
|
|
690
|
+
interface AppNetlifyDeployment {
|
|
691
|
+
site: {
|
|
692
|
+
id: string;
|
|
693
|
+
name: string;
|
|
694
|
+
state: string;
|
|
695
|
+
url: string;
|
|
696
|
+
adminUrl: string;
|
|
697
|
+
plugins: {
|
|
698
|
+
package: string;
|
|
699
|
+
}[];
|
|
700
|
+
error?: string;
|
|
701
|
+
};
|
|
702
|
+
repository: {
|
|
703
|
+
installationId: string;
|
|
704
|
+
};
|
|
705
|
+
deploy: {
|
|
706
|
+
id: string;
|
|
707
|
+
state: string;
|
|
708
|
+
error?: string;
|
|
709
|
+
pluginRuns?: {
|
|
710
|
+
title: string;
|
|
711
|
+
summary: string;
|
|
712
|
+
state: string;
|
|
713
|
+
}[];
|
|
714
|
+
};
|
|
715
|
+
envs: {
|
|
716
|
+
key: string;
|
|
717
|
+
value: string;
|
|
718
|
+
}[];
|
|
719
|
+
}
|
|
720
|
+
type AppDeployment = ({
|
|
721
|
+
provider: "netlify";
|
|
722
|
+
} & AppNetlifyDeployment) | ({
|
|
723
|
+
provider: "vercel";
|
|
724
|
+
} & AppVercelDeployment);
|
|
725
|
+
|
|
726
|
+
interface AppSentryLogger {
|
|
727
|
+
project: {
|
|
728
|
+
id: string;
|
|
729
|
+
name: string;
|
|
730
|
+
slug: string;
|
|
731
|
+
organization: {
|
|
732
|
+
slug: string;
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
issues: {
|
|
736
|
+
id: string;
|
|
737
|
+
title: string;
|
|
738
|
+
}[];
|
|
739
|
+
}
|
|
740
|
+
|
|
741
|
+
type LinkAppSentryLoggerPayload = {
|
|
742
|
+
appId: string;
|
|
743
|
+
appName: string;
|
|
744
|
+
repositoryName: string;
|
|
745
|
+
repositoryBranch: string;
|
|
746
|
+
organizationSlug: string;
|
|
747
|
+
githubIntegrationId?: string;
|
|
748
|
+
netlifySiteId?: string;
|
|
749
|
+
} & ({
|
|
750
|
+
type: 'new';
|
|
751
|
+
} | {
|
|
752
|
+
type: 'existing';
|
|
753
|
+
projectSlug: string;
|
|
754
|
+
});
|
|
755
|
+
|
|
756
|
+
type UnlinkAppSentryLoggerPayload = {
|
|
757
|
+
appId: string;
|
|
758
|
+
projectSlug: string;
|
|
759
|
+
shouldDelete?: boolean;
|
|
760
|
+
};
|
|
761
|
+
|
|
762
|
+
interface AppGitHubRepository {
|
|
763
|
+
name: string;
|
|
764
|
+
branch: string;
|
|
765
|
+
isSeeded: boolean;
|
|
766
|
+
language: string;
|
|
767
|
+
description?: string;
|
|
768
|
+
}
|
|
769
|
+
interface AppGitLabRepository {
|
|
770
|
+
}
|
|
771
|
+
type AppRepository = ({
|
|
772
|
+
provider: "github";
|
|
773
|
+
} & AppGitHubRepository) | ({
|
|
774
|
+
provider: "gitlab";
|
|
775
|
+
} & AppGitLabRepository);
|
|
776
|
+
|
|
777
|
+
type LinkAppRepositoryGitHubData = {
|
|
778
|
+
type: "new";
|
|
779
|
+
name?: string;
|
|
780
|
+
template: AppRepositoryTemplate;
|
|
781
|
+
} | {
|
|
782
|
+
type: "existing";
|
|
783
|
+
fullName: string;
|
|
784
|
+
branch: string;
|
|
785
|
+
};
|
|
786
|
+
type LinkAppRepositoryGitLabData = {};
|
|
787
|
+
type LinkAppRepositoryData = ({
|
|
788
|
+
provider: "github";
|
|
789
|
+
} & LinkAppRepositoryGitHubData) | ({
|
|
790
|
+
provider: "gitlab";
|
|
791
|
+
} & LinkAppRepositoryGitLabData);
|
|
792
|
+
type LinkAppRepositoryPayload = {
|
|
793
|
+
appId: string;
|
|
794
|
+
appName: string;
|
|
795
|
+
} & LinkAppRepositoryData;
|
|
796
|
+
interface LinkAppRepositoryResult {
|
|
797
|
+
name: string;
|
|
798
|
+
branch: string;
|
|
799
|
+
needToBeInstalled: boolean;
|
|
800
|
+
needToBeSeeded: boolean;
|
|
801
|
+
}
|
|
802
|
+
|
|
803
|
+
type UnlinkAppRepositoryPayload = {
|
|
804
|
+
appId: string;
|
|
805
|
+
shouldDelete?: boolean;
|
|
806
|
+
};
|
|
807
|
+
|
|
808
|
+
type SeedAppRepositoryPayload = {
|
|
809
|
+
appId: string;
|
|
810
|
+
clientId?: string;
|
|
811
|
+
};
|
|
812
|
+
type SeedAppRepositoryResult = {
|
|
813
|
+
isSeeded: boolean;
|
|
814
|
+
};
|
|
815
|
+
|
|
816
|
+
interface AppPlanetScaleStorage {
|
|
817
|
+
database: {
|
|
818
|
+
id: string;
|
|
819
|
+
name: string;
|
|
820
|
+
url: string;
|
|
821
|
+
};
|
|
822
|
+
}
|
|
823
|
+
interface AppVercelStorage {
|
|
824
|
+
}
|
|
825
|
+
type AppStorage = ({
|
|
826
|
+
provider: "planetscale";
|
|
827
|
+
} & AppPlanetScaleStorage) | ({
|
|
828
|
+
provider: "vercel";
|
|
829
|
+
} & AppVercelStorage);
|
|
830
|
+
|
|
831
|
+
type LinkAppStoragePlanetScaleData = {
|
|
832
|
+
organization: string;
|
|
833
|
+
} & ({
|
|
834
|
+
type: "new";
|
|
835
|
+
databaseName?: string;
|
|
836
|
+
} | {
|
|
837
|
+
type: "existing";
|
|
838
|
+
databaseId: string;
|
|
839
|
+
});
|
|
840
|
+
type LinkAppStorageVercelData = {};
|
|
841
|
+
type LinkAppStorageData = ({
|
|
842
|
+
provider: "planetscale";
|
|
843
|
+
} & LinkAppStoragePlanetScaleData) | ({
|
|
844
|
+
provider: "vercel";
|
|
845
|
+
} & LinkAppStorageVercelData);
|
|
846
|
+
type LinkAppStoragePayload = {
|
|
847
|
+
appId: string;
|
|
848
|
+
appName: string;
|
|
849
|
+
} & LinkAppStorageData;
|
|
850
|
+
|
|
851
|
+
type UnlinkAppStoragePayload = {
|
|
852
|
+
appId: string;
|
|
853
|
+
shouldDelete?: boolean;
|
|
854
|
+
};
|
|
855
|
+
|
|
856
|
+
type AppVariableType = "custom" | "storage";
|
|
857
|
+
type AppVariableStatus = "valid" | "invalid" | "warning";
|
|
858
|
+
type AppVariableLocalProvider = "console";
|
|
859
|
+
type AppVariableExternalProvider = "vercel" | "netlify";
|
|
860
|
+
type AppVariableProvider = AppVariableLocalProvider | AppVariableExternalProvider;
|
|
861
|
+
interface AppVariable {
|
|
862
|
+
key: string;
|
|
863
|
+
value: {
|
|
864
|
+
local?: {
|
|
865
|
+
type: AppVariableLocalProvider;
|
|
866
|
+
id: string;
|
|
867
|
+
value: string;
|
|
868
|
+
isReadonly: boolean;
|
|
869
|
+
};
|
|
870
|
+
external?: {
|
|
871
|
+
type: AppVariableExternalProvider;
|
|
872
|
+
id: string;
|
|
873
|
+
value: string;
|
|
874
|
+
};
|
|
875
|
+
};
|
|
876
|
+
type?: AppVariableType;
|
|
877
|
+
status?: AppVariableStatus;
|
|
878
|
+
isLinked: boolean;
|
|
879
|
+
isDecrypted: boolean;
|
|
880
|
+
}
|
|
881
|
+
|
|
882
|
+
interface SyncAppVariablePayload {
|
|
883
|
+
source: {
|
|
884
|
+
type: AppVariableProvider;
|
|
885
|
+
id: string;
|
|
886
|
+
value: string;
|
|
887
|
+
};
|
|
888
|
+
target: {
|
|
889
|
+
id?: string;
|
|
890
|
+
};
|
|
891
|
+
}
|
|
892
|
+
|
|
893
|
+
interface PlatformAdapterClientInstanceAuthorization {
|
|
894
|
+
platform?: {
|
|
895
|
+
dps?: string;
|
|
896
|
+
};
|
|
897
|
+
github?: {
|
|
898
|
+
app?: string;
|
|
899
|
+
oauth?: string;
|
|
900
|
+
};
|
|
901
|
+
netlify?: string;
|
|
902
|
+
vercel?: string;
|
|
903
|
+
planetscale?: string;
|
|
904
|
+
sentry?: string;
|
|
905
|
+
}
|
|
906
|
+
type PlatformAdapterClientInstanceOptions = PlatformAdapterClientInstanceAuthorization & {
|
|
907
|
+
ensureAuthorizationToken?: {
|
|
908
|
+
platform?: {
|
|
909
|
+
dps?: boolean;
|
|
910
|
+
};
|
|
911
|
+
github?: boolean;
|
|
912
|
+
netlify?: boolean;
|
|
913
|
+
vercel?: boolean;
|
|
914
|
+
planetscale?: boolean;
|
|
915
|
+
sentry?: boolean;
|
|
916
|
+
};
|
|
917
|
+
};
|
|
918
|
+
declare function getPlatformAdapterClientAuthorization(req: {
|
|
919
|
+
headers: {
|
|
920
|
+
[key: string]: string | string[] | undefined;
|
|
921
|
+
};
|
|
922
|
+
}): PlatformAdapterClientInstanceAuthorization;
|
|
923
|
+
declare const platformAdapterClientInstance: axios.AxiosInstance;
|
|
924
|
+
declare function getPlatformAdapterClientConfig(options?: PlatformAdapterClientInstanceOptions): AxiosRequestConfig;
|
|
925
|
+
declare function initPlatformAdapterClientInstance(baseUrl?: string, tokens?: {
|
|
926
|
+
platform?: {
|
|
927
|
+
dps?: string;
|
|
928
|
+
};
|
|
929
|
+
github: {
|
|
930
|
+
app?: string;
|
|
931
|
+
oauth?: string;
|
|
932
|
+
};
|
|
933
|
+
netlify?: string;
|
|
934
|
+
vercel?: string;
|
|
935
|
+
planetscale?: string;
|
|
936
|
+
sentry?: string;
|
|
937
|
+
}): void;
|
|
938
|
+
declare function updatePlatformAdapterClientInstance(tokens?: {
|
|
939
|
+
platform?: {
|
|
940
|
+
dps?: string;
|
|
941
|
+
};
|
|
942
|
+
github: {
|
|
943
|
+
app?: string;
|
|
944
|
+
oauth?: string;
|
|
945
|
+
};
|
|
946
|
+
netlify?: string;
|
|
947
|
+
vercel?: string;
|
|
948
|
+
planetscale?: string;
|
|
949
|
+
sentry?: string;
|
|
950
|
+
}): void;
|
|
951
|
+
|
|
952
|
+
type ApplicationPaymentDto = any;
|
|
953
|
+
|
|
954
|
+
interface ApplicationDto {
|
|
955
|
+
id: string;
|
|
956
|
+
name: string;
|
|
957
|
+
parent: string;
|
|
958
|
+
slug: string;
|
|
959
|
+
category: {
|
|
960
|
+
id: string;
|
|
961
|
+
name: string;
|
|
962
|
+
slug: string;
|
|
963
|
+
} | null;
|
|
964
|
+
authorization: {
|
|
965
|
+
clientId: string;
|
|
966
|
+
clientType: string;
|
|
967
|
+
clientSecret: string;
|
|
968
|
+
redirectUri: string;
|
|
969
|
+
scopes: {
|
|
970
|
+
name: string;
|
|
971
|
+
required: boolean;
|
|
972
|
+
}[] | null;
|
|
973
|
+
} | null;
|
|
974
|
+
theme: null;
|
|
975
|
+
icons: {
|
|
976
|
+
id: string;
|
|
977
|
+
large: string;
|
|
978
|
+
original: string;
|
|
979
|
+
small: string;
|
|
980
|
+
title: string;
|
|
981
|
+
} | null;
|
|
982
|
+
interfaceIconsDefault: null;
|
|
983
|
+
interfaceIconsDark: null;
|
|
984
|
+
screenshots: {
|
|
985
|
+
id: string;
|
|
986
|
+
large: string;
|
|
987
|
+
original: string;
|
|
988
|
+
small: string;
|
|
989
|
+
title: string;
|
|
990
|
+
}[] | null;
|
|
991
|
+
benefits: {
|
|
992
|
+
title: string;
|
|
993
|
+
description: string;
|
|
994
|
+
}[];
|
|
995
|
+
features: {
|
|
996
|
+
title: string;
|
|
997
|
+
description: string;
|
|
998
|
+
}[];
|
|
999
|
+
widgets: {
|
|
1000
|
+
id: string;
|
|
1001
|
+
placement: string;
|
|
1002
|
+
shortcut: {
|
|
1003
|
+
initialState: string;
|
|
1004
|
+
};
|
|
1005
|
+
url: string;
|
|
1006
|
+
}[] | null;
|
|
1007
|
+
payment: ApplicationPaymentDto;
|
|
1008
|
+
elements: {
|
|
1009
|
+
buttons: {
|
|
1010
|
+
action: string;
|
|
1011
|
+
id: string;
|
|
1012
|
+
label: string;
|
|
1013
|
+
placement: string;
|
|
1014
|
+
sourceUrl: string;
|
|
1015
|
+
url: string;
|
|
1016
|
+
widget: string;
|
|
1017
|
+
}[] | null;
|
|
1018
|
+
widgets: null;
|
|
1019
|
+
chatBoosters: null;
|
|
1020
|
+
cover: null;
|
|
1021
|
+
onboarding: null;
|
|
1022
|
+
};
|
|
1023
|
+
ownerId: string;
|
|
1024
|
+
license: number;
|
|
1025
|
+
longDescription: string;
|
|
1026
|
+
shortDescription: string;
|
|
1027
|
+
tutorialUrl: string;
|
|
1028
|
+
privacyPolicyUrl: string;
|
|
1029
|
+
changelog: string;
|
|
1030
|
+
product: string;
|
|
1031
|
+
directInstallUrl: string;
|
|
1032
|
+
origin: string;
|
|
1033
|
+
installations: number;
|
|
1034
|
+
installable: boolean;
|
|
1035
|
+
inspectorLicense: number;
|
|
1036
|
+
webhookUrl: string;
|
|
1037
|
+
meta: string;
|
|
1038
|
+
integration: boolean;
|
|
1039
|
+
version: number;
|
|
1040
|
+
migratedAccess: boolean;
|
|
1041
|
+
hidden: boolean;
|
|
1042
|
+
customProps: {
|
|
1043
|
+
[key: string]: string;
|
|
1044
|
+
};
|
|
1045
|
+
createdAt: string;
|
|
1046
|
+
submittedAt: null | string;
|
|
1047
|
+
publishedAt: null | string;
|
|
1048
|
+
updatedAt: string;
|
|
1049
|
+
reviewStartedAt: null;
|
|
1050
|
+
acceptedAt: null | string;
|
|
1051
|
+
archivedAt: null | string;
|
|
1052
|
+
qualifiedLead: true;
|
|
1053
|
+
}
|
|
1054
|
+
|
|
1055
|
+
interface CreateApplicationPayload {
|
|
1056
|
+
name: string;
|
|
1057
|
+
origin: string;
|
|
1058
|
+
product: string;
|
|
1059
|
+
}
|
|
1060
|
+
interface CreateApplicationResponse {
|
|
1061
|
+
id: string;
|
|
1062
|
+
}
|
|
1063
|
+
|
|
1064
|
+
interface CreateApplicationAuthorizationPayload {
|
|
1065
|
+
ssoClient: string;
|
|
1066
|
+
}
|
|
1067
|
+
|
|
1068
|
+
interface ApplicationAutoReviewDto {
|
|
1069
|
+
isReviewed: boolean;
|
|
1070
|
+
recommendations: {
|
|
1071
|
+
listingDetails: {
|
|
1072
|
+
appName: string;
|
|
1073
|
+
shortDescription: string;
|
|
1074
|
+
longDescription: string;
|
|
1075
|
+
features: string;
|
|
1076
|
+
benefits: string;
|
|
1077
|
+
};
|
|
1078
|
+
auth: {
|
|
1079
|
+
hasZeroScopes: boolean;
|
|
1080
|
+
};
|
|
1081
|
+
};
|
|
1082
|
+
errors: {
|
|
1083
|
+
listingDetails: {
|
|
1084
|
+
appName: string;
|
|
1085
|
+
shortDescription: string;
|
|
1086
|
+
longDescription: string;
|
|
1087
|
+
features: string;
|
|
1088
|
+
benefits: string;
|
|
1089
|
+
};
|
|
1090
|
+
auth: {
|
|
1091
|
+
hasAllScopes: boolean;
|
|
1092
|
+
isRedirectUriSafe: boolean;
|
|
1093
|
+
};
|
|
1094
|
+
links: {
|
|
1095
|
+
tutorial: {
|
|
1096
|
+
returns200: boolean;
|
|
1097
|
+
isValid: boolean;
|
|
1098
|
+
};
|
|
1099
|
+
privacyPolicy: {
|
|
1100
|
+
returns200: boolean;
|
|
1101
|
+
isValid: boolean;
|
|
1102
|
+
};
|
|
1103
|
+
};
|
|
1104
|
+
images: {
|
|
1105
|
+
icon: {
|
|
1106
|
+
isNsfw: boolean;
|
|
1107
|
+
isRatioValid: boolean;
|
|
1108
|
+
};
|
|
1109
|
+
screenshots: {
|
|
1110
|
+
areNsfw: boolean;
|
|
1111
|
+
areRatiosValid: boolean;
|
|
1112
|
+
};
|
|
1113
|
+
};
|
|
1114
|
+
};
|
|
1115
|
+
}
|
|
1116
|
+
declare const getEmptyAppAutoReview: () => {
|
|
1117
|
+
isReviewed: boolean;
|
|
1118
|
+
recommendations: {
|
|
1119
|
+
listingDetails: {
|
|
1120
|
+
appName: string;
|
|
1121
|
+
shortDescription: string;
|
|
1122
|
+
longDescription: string;
|
|
1123
|
+
features: string;
|
|
1124
|
+
benefits: string;
|
|
1125
|
+
};
|
|
1126
|
+
auth: {
|
|
1127
|
+
hasZeroScopes: boolean;
|
|
1128
|
+
};
|
|
1129
|
+
};
|
|
1130
|
+
errors: {
|
|
1131
|
+
listingDetails: {
|
|
1132
|
+
appName: string;
|
|
1133
|
+
shortDescription: string;
|
|
1134
|
+
longDescription: string;
|
|
1135
|
+
features: string;
|
|
1136
|
+
benefits: string;
|
|
1137
|
+
};
|
|
1138
|
+
auth: {
|
|
1139
|
+
hasAllScopes: boolean;
|
|
1140
|
+
isRedirectUriSafe: boolean;
|
|
1141
|
+
};
|
|
1142
|
+
links: {
|
|
1143
|
+
tutorial: {
|
|
1144
|
+
returns200: boolean;
|
|
1145
|
+
isValid: boolean;
|
|
1146
|
+
};
|
|
1147
|
+
privacyPolicy: {
|
|
1148
|
+
returns200: boolean;
|
|
1149
|
+
isValid: boolean;
|
|
1150
|
+
};
|
|
1151
|
+
};
|
|
1152
|
+
images: {
|
|
1153
|
+
icon: {
|
|
1154
|
+
isNsfw: boolean;
|
|
1155
|
+
isRatioValid: boolean;
|
|
1156
|
+
};
|
|
1157
|
+
screenshots: {
|
|
1158
|
+
areNsfw: boolean;
|
|
1159
|
+
areRatiosValid: boolean;
|
|
1160
|
+
};
|
|
1161
|
+
};
|
|
1162
|
+
};
|
|
1163
|
+
};
|
|
1164
|
+
|
|
1165
|
+
interface ApplicationAutoReviewPayload {
|
|
1166
|
+
appName: boolean;
|
|
1167
|
+
shortDescription: boolean;
|
|
1168
|
+
longDescription: boolean;
|
|
1169
|
+
features: boolean;
|
|
1170
|
+
benefits: boolean;
|
|
1171
|
+
scopes: boolean;
|
|
1172
|
+
redirect: boolean;
|
|
1173
|
+
tutorial: boolean;
|
|
1174
|
+
privacyPolicy: boolean;
|
|
1175
|
+
icons: boolean;
|
|
1176
|
+
screenshots: boolean;
|
|
1177
|
+
}
|
|
1178
|
+
declare const getAppAutoReviewPayload: (value: boolean) => {
|
|
1179
|
+
appName: boolean;
|
|
1180
|
+
shortDescription: boolean;
|
|
1181
|
+
longDescription: boolean;
|
|
1182
|
+
features: boolean;
|
|
1183
|
+
benefits: boolean;
|
|
1184
|
+
scopes: boolean;
|
|
1185
|
+
redirect: boolean;
|
|
1186
|
+
tutorial: boolean;
|
|
1187
|
+
privacyPolicy: boolean;
|
|
1188
|
+
icons: boolean;
|
|
1189
|
+
screenshots: boolean;
|
|
1190
|
+
};
|
|
1191
|
+
|
|
1192
|
+
interface CreateApplicationChatActionPayload {
|
|
1193
|
+
action: string;
|
|
1194
|
+
id: string;
|
|
1195
|
+
label: string;
|
|
1196
|
+
sourceUrl: string;
|
|
1197
|
+
url: string;
|
|
1198
|
+
widget?: string;
|
|
1199
|
+
}
|
|
1200
|
+
|
|
1201
|
+
interface UpdateApplicationChatActionPayload {
|
|
1202
|
+
action: string;
|
|
1203
|
+
id: string;
|
|
1204
|
+
label: string;
|
|
1205
|
+
sourceUrl: string;
|
|
1206
|
+
url: string;
|
|
1207
|
+
placement: string;
|
|
1208
|
+
widget?: string;
|
|
1209
|
+
}
|
|
1210
|
+
|
|
1211
|
+
interface UpsertApplicationChatBoosterPayload {
|
|
1212
|
+
title: string;
|
|
1213
|
+
description: string;
|
|
1214
|
+
url: string;
|
|
1215
|
+
ctaLabel: string;
|
|
1216
|
+
}
|
|
1217
|
+
|
|
1218
|
+
interface ApplicationBasicDetailsDto {
|
|
1219
|
+
name: string;
|
|
1220
|
+
shortDescription: string;
|
|
1221
|
+
}
|
|
1222
|
+
|
|
1223
|
+
interface ApplicationBenefitDto {
|
|
1224
|
+
description: string;
|
|
1225
|
+
title: string;
|
|
1226
|
+
}
|
|
1227
|
+
|
|
1228
|
+
interface ApplicationFeatureDto {
|
|
1229
|
+
description: string;
|
|
1230
|
+
title: string;
|
|
1231
|
+
}
|
|
1232
|
+
|
|
1233
|
+
interface ApplicationIconDto {
|
|
1234
|
+
id: string;
|
|
1235
|
+
large: string;
|
|
1236
|
+
original: string;
|
|
1237
|
+
small: string;
|
|
1238
|
+
title: string;
|
|
1239
|
+
}
|
|
1240
|
+
|
|
1241
|
+
interface ApplicationOverviewDto {
|
|
1242
|
+
longDescription: string;
|
|
1243
|
+
categoryId: string;
|
|
1244
|
+
}
|
|
1245
|
+
|
|
1246
|
+
interface ApplicationScreenshotDto {
|
|
1247
|
+
id: string;
|
|
1248
|
+
large: string;
|
|
1249
|
+
original: string;
|
|
1250
|
+
small: string;
|
|
1251
|
+
title: string;
|
|
1252
|
+
}
|
|
1253
|
+
|
|
1254
|
+
interface ApplicationTutorialAndSupportDto {
|
|
1255
|
+
tutorialUrl: string;
|
|
1256
|
+
privacyPolicyUrl: string;
|
|
1257
|
+
}
|
|
1258
|
+
|
|
1259
|
+
interface UpdateApplicationChangelogPayload {
|
|
1260
|
+
changelog: string;
|
|
1261
|
+
}
|
|
1262
|
+
|
|
1263
|
+
interface UpdateApplicationIconPayload {
|
|
1264
|
+
default?: string;
|
|
1265
|
+
small?: string;
|
|
1266
|
+
dark?: string;
|
|
1267
|
+
}
|
|
1268
|
+
|
|
1269
|
+
type AppRepositoryProvider = "github" | "gitlab";
|
|
1270
|
+
type AppRepositoryTemplate = "empty" | "nextjs";
|
|
1271
|
+
type AppDeploymentProvider = "internal" | "netlify" | "vercel" | "heroku" | "custom";
|
|
1272
|
+
type AppDeploymentMode = "local" | "provider";
|
|
1273
|
+
type AppLoggerProvider = "sentry" | "amplitude";
|
|
1274
|
+
type AppStorageProvider = "vercel" | "planetscale";
|
|
1275
|
+
interface AppGitHubRepositoryConfig {
|
|
1276
|
+
name: string;
|
|
1277
|
+
branch: string;
|
|
1278
|
+
}
|
|
1279
|
+
interface AppNetlifyDeploymentConfig {
|
|
1280
|
+
url: string;
|
|
1281
|
+
siteId: string;
|
|
1282
|
+
}
|
|
1283
|
+
interface AppVercelDeploymentConfig {
|
|
1284
|
+
url: string;
|
|
1285
|
+
projectId: string;
|
|
1286
|
+
}
|
|
1287
|
+
interface AppVercelStorageConfig {
|
|
1288
|
+
databaseId: string;
|
|
1289
|
+
}
|
|
1290
|
+
interface AppPlanetScaleStorageConfig {
|
|
1291
|
+
organization: string;
|
|
1292
|
+
databaseName: string;
|
|
1293
|
+
}
|
|
1294
|
+
interface AppSentryLoggerConfig {
|
|
1295
|
+
name: string;
|
|
1296
|
+
org: string;
|
|
1297
|
+
}
|
|
1298
|
+
interface AppRepositoryBlock {
|
|
1299
|
+
provider?: AppRepositoryProvider;
|
|
1300
|
+
config: {
|
|
1301
|
+
github?: AppGitHubRepositoryConfig;
|
|
1302
|
+
};
|
|
1303
|
+
}
|
|
1304
|
+
interface AppStorageBlock {
|
|
1305
|
+
provider?: AppStorageProvider;
|
|
1306
|
+
config: {
|
|
1307
|
+
vercel?: AppVercelStorageConfig;
|
|
1308
|
+
planetscale?: AppPlanetScaleStorageConfig;
|
|
1309
|
+
};
|
|
1310
|
+
}
|
|
1311
|
+
interface AppLoggerBlock {
|
|
1312
|
+
provider?: AppLoggerProvider;
|
|
1313
|
+
config: {
|
|
1314
|
+
sentry?: AppSentryLoggerConfig;
|
|
1315
|
+
};
|
|
1316
|
+
}
|
|
1317
|
+
interface AppDeploymentBlock {
|
|
1318
|
+
mode: AppDeploymentMode;
|
|
1319
|
+
provider?: AppDeploymentProvider;
|
|
1320
|
+
config: {
|
|
1321
|
+
netlify?: AppNetlifyDeploymentConfig;
|
|
1322
|
+
vercel?: AppVercelDeploymentConfig;
|
|
1323
|
+
local?: {
|
|
1324
|
+
url: string;
|
|
1325
|
+
};
|
|
1326
|
+
custom?: {
|
|
1327
|
+
url: string;
|
|
1328
|
+
};
|
|
1329
|
+
};
|
|
1330
|
+
}
|
|
1331
|
+
interface AppInfrastructureBlocks {
|
|
1332
|
+
repository?: AppRepositoryBlock;
|
|
1333
|
+
deployment?: AppDeploymentBlock;
|
|
1334
|
+
storage?: AppStorageBlock;
|
|
1335
|
+
logger?: AppLoggerBlock;
|
|
1336
|
+
}
|
|
1337
|
+
|
|
1338
|
+
interface UpdateAppInfrastructureBlocksPayload {
|
|
1339
|
+
repository?: {
|
|
1340
|
+
provider?: AppRepositoryProvider | null;
|
|
1341
|
+
config?: {
|
|
1342
|
+
github?: Partial<AppGitHubRepositoryConfig> | null;
|
|
1343
|
+
};
|
|
1344
|
+
};
|
|
1345
|
+
deployment?: {
|
|
1346
|
+
mode?: AppDeploymentMode | null;
|
|
1347
|
+
provider?: AppDeploymentProvider | null;
|
|
1348
|
+
config?: {
|
|
1349
|
+
netlify?: Partial<AppNetlifyDeploymentConfig> | null;
|
|
1350
|
+
vercel?: Partial<AppVercelDeploymentConfig> | null;
|
|
1351
|
+
local?: Partial<{
|
|
1352
|
+
url: string;
|
|
1353
|
+
}> | null;
|
|
1354
|
+
custom?: Partial<{
|
|
1355
|
+
url: string;
|
|
1356
|
+
}> | null;
|
|
1357
|
+
};
|
|
1358
|
+
};
|
|
1359
|
+
storage?: {
|
|
1360
|
+
provider?: AppStorageProvider | null;
|
|
1361
|
+
config?: {
|
|
1362
|
+
vercel?: Partial<AppVercelStorageConfig> | null;
|
|
1363
|
+
planetscale?: Partial<AppPlanetScaleStorageConfig> | null;
|
|
1364
|
+
};
|
|
1365
|
+
};
|
|
1366
|
+
logger?: {
|
|
1367
|
+
provider?: AppLoggerProvider | null;
|
|
1368
|
+
config?: {
|
|
1369
|
+
sentry?: Partial<AppSentryLoggerConfig> | null;
|
|
1370
|
+
};
|
|
1371
|
+
};
|
|
1372
|
+
}
|
|
1373
|
+
|
|
1374
|
+
interface UpdateApplicationDirectInstallUrlPayload {
|
|
1375
|
+
url: string;
|
|
1376
|
+
}
|
|
1377
|
+
|
|
1378
|
+
interface UpdateApplicationOnboardingPayload {
|
|
1379
|
+
introduction: string;
|
|
1380
|
+
setupAware: boolean;
|
|
1381
|
+
settings: string;
|
|
1382
|
+
}
|
|
1383
|
+
|
|
1384
|
+
interface UpdateApplicationProductPayload {
|
|
1385
|
+
product: string;
|
|
1386
|
+
}
|
|
1387
|
+
|
|
1388
|
+
interface ApplicationPropertyDto {
|
|
1389
|
+
key: string;
|
|
1390
|
+
value: string;
|
|
1391
|
+
}
|
|
1392
|
+
|
|
1393
|
+
interface ReportingEventBase {
|
|
1394
|
+
name: string;
|
|
1395
|
+
}
|
|
1396
|
+
|
|
1397
|
+
interface ActiveUserReportingEvent extends ReportingEventBase {
|
|
1398
|
+
name: 'activeUser';
|
|
1399
|
+
}
|
|
1400
|
+
|
|
1401
|
+
interface CustomReportingEvent<TPayload> extends ReportingEventBase {
|
|
1402
|
+
name: 'custom';
|
|
1403
|
+
payload: TPayload;
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
declare enum ErrorType {
|
|
1407
|
+
'4xx' = "4xx",
|
|
1408
|
+
'5xx' = "5xx"
|
|
1409
|
+
}
|
|
1410
|
+
interface ErrorReportingEvent extends ReportingEventBase {
|
|
1411
|
+
name: 'error';
|
|
1412
|
+
payload: {
|
|
1413
|
+
type: ErrorType;
|
|
1414
|
+
};
|
|
1415
|
+
}
|
|
1416
|
+
|
|
1417
|
+
type ReportingEvent<TPayload = unknown> = ActiveUserReportingEvent | ErrorReportingEvent | CustomReportingEvent<TPayload>;
|
|
1418
|
+
|
|
1419
|
+
interface AppResourceDto {
|
|
1420
|
+
}
|
|
1421
|
+
|
|
1422
|
+
interface UpsertAppResourcePayload {
|
|
1423
|
+
id: string;
|
|
1424
|
+
description: string;
|
|
1425
|
+
url: string;
|
|
1426
|
+
multiplied: boolean;
|
|
1427
|
+
product: {
|
|
1428
|
+
id?: string;
|
|
1429
|
+
sid?: string;
|
|
1430
|
+
name: string;
|
|
1431
|
+
price: {
|
|
1432
|
+
cents: number;
|
|
1433
|
+
perAgent: boolean;
|
|
1434
|
+
months: number;
|
|
1435
|
+
} | undefined;
|
|
1436
|
+
};
|
|
1437
|
+
}
|
|
1438
|
+
|
|
1439
|
+
interface CreateApplicationSubmissionPayload {
|
|
1440
|
+
note: string;
|
|
1441
|
+
}
|
|
1442
|
+
|
|
1443
|
+
interface UpdateApplicationWebhookPayload {
|
|
1444
|
+
url: string;
|
|
1445
|
+
}
|
|
1446
|
+
|
|
1447
|
+
interface UpdateChatWebhookPayload {
|
|
1448
|
+
url: string;
|
|
1449
|
+
}
|
|
1450
|
+
|
|
1451
|
+
interface UpdateApplicationWidgetDto {
|
|
1452
|
+
initialState?: string;
|
|
1453
|
+
placement: string;
|
|
1454
|
+
url: string;
|
|
1455
|
+
}
|
|
1456
|
+
|
|
1457
|
+
interface ApplicationUsageOptionsDto {
|
|
1458
|
+
events: string[];
|
|
1459
|
+
from: string;
|
|
1460
|
+
apps: {
|
|
1461
|
+
id: string;
|
|
1462
|
+
}[];
|
|
1463
|
+
to: string;
|
|
1464
|
+
duration: string;
|
|
1465
|
+
}
|
|
1466
|
+
|
|
1467
|
+
interface Category {
|
|
1468
|
+
name: string;
|
|
1469
|
+
id: string;
|
|
1470
|
+
}
|
|
1471
|
+
|
|
1472
|
+
interface DeveloperLedgerParams {
|
|
1473
|
+
startAt?: string;
|
|
1474
|
+
endAt?: string;
|
|
1475
|
+
size?: number;
|
|
1476
|
+
page?: number;
|
|
1477
|
+
}
|
|
1478
|
+
|
|
1479
|
+
interface ShortcutDto {
|
|
1480
|
+
type: 'link' | 'app';
|
|
1481
|
+
url: string;
|
|
1482
|
+
}
|
|
1483
|
+
|
|
1484
|
+
interface DeveloperMessageBaseDto {
|
|
1485
|
+
id: number;
|
|
1486
|
+
title: string;
|
|
1487
|
+
apps: {
|
|
1488
|
+
icon: string;
|
|
1489
|
+
name: string;
|
|
1490
|
+
}[];
|
|
1491
|
+
audience: string[];
|
|
1492
|
+
content: string;
|
|
1493
|
+
}
|
|
1494
|
+
interface DeveloperMessageDto extends DeveloperMessageBaseDto {
|
|
1495
|
+
date: string;
|
|
1496
|
+
}
|
|
1497
|
+
interface DeveloperMessage extends DeveloperMessageBaseDto {
|
|
1498
|
+
date: Date;
|
|
1499
|
+
}
|
|
1500
|
+
|
|
1501
|
+
interface CreateDeveloperMessagePayload {
|
|
1502
|
+
apps: string;
|
|
1503
|
+
messageTitle: string;
|
|
1504
|
+
messageContent: string;
|
|
1505
|
+
audience: string[];
|
|
1506
|
+
}
|
|
1507
|
+
|
|
1508
|
+
interface ResearchCustomerItemDto {
|
|
1509
|
+
amount: number;
|
|
1510
|
+
param: string;
|
|
1511
|
+
}
|
|
1512
|
+
interface ResearchCustomerLocationItemDto {
|
|
1513
|
+
percent: number;
|
|
1514
|
+
}
|
|
1515
|
+
|
|
1516
|
+
interface ResearchDictionaryParams {
|
|
1517
|
+
type?: string;
|
|
1518
|
+
}
|
|
1519
|
+
|
|
1520
|
+
interface ResearchMarketplaceItemDto {
|
|
1521
|
+
amount: number;
|
|
1522
|
+
date: string;
|
|
1523
|
+
}
|
|
1524
|
+
|
|
1525
|
+
interface ResearchMarketplaceParams {
|
|
1526
|
+
from?: string;
|
|
1527
|
+
duration?: string;
|
|
1528
|
+
}
|
|
1529
|
+
|
|
1530
|
+
interface ResearchTrafficItemDto {
|
|
1531
|
+
amount: number;
|
|
1532
|
+
date: string;
|
|
1533
|
+
}
|
|
1534
|
+
|
|
1535
|
+
interface ResearchTrafficParams {
|
|
1536
|
+
business?: string;
|
|
1537
|
+
location?: string;
|
|
1538
|
+
}
|
|
1539
|
+
|
|
1540
|
+
interface UserDto {
|
|
1541
|
+
id: string;
|
|
1542
|
+
email: string;
|
|
1543
|
+
account: string;
|
|
1544
|
+
organization: string;
|
|
1545
|
+
license: number;
|
|
1546
|
+
profile: {
|
|
1547
|
+
name: string;
|
|
1548
|
+
jobTitle: string;
|
|
1549
|
+
bio: string;
|
|
1550
|
+
skills: string;
|
|
1551
|
+
company: string;
|
|
1552
|
+
website: string;
|
|
1553
|
+
github: string;
|
|
1554
|
+
twitter: string;
|
|
1555
|
+
contactEmail: string;
|
|
1556
|
+
discordUserId: string;
|
|
1557
|
+
};
|
|
1558
|
+
surveys: {
|
|
1559
|
+
question: string;
|
|
1560
|
+
answer: string;
|
|
1561
|
+
comment: string;
|
|
1562
|
+
}[];
|
|
1563
|
+
links: null;
|
|
1564
|
+
registeredAt: string;
|
|
1565
|
+
lastLoginAt: string;
|
|
1566
|
+
version: number;
|
|
1567
|
+
active: boolean;
|
|
1568
|
+
features: {
|
|
1569
|
+
experimental?: boolean;
|
|
1570
|
+
};
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1573
|
+
interface UserGitHubIntegrationDto {
|
|
1574
|
+
installationId: string;
|
|
1575
|
+
}
|
|
1576
|
+
interface UserNetlifyIntegrationDto {
|
|
1577
|
+
githubInstallationId: string;
|
|
1578
|
+
}
|
|
1579
|
+
interface UserVercelIntegrationDto {
|
|
1580
|
+
installationId: string;
|
|
1581
|
+
installationToken: string;
|
|
1582
|
+
githubInstallationId: string;
|
|
1583
|
+
configurationId?: string;
|
|
1584
|
+
teamId: string;
|
|
1585
|
+
userId: string;
|
|
1586
|
+
}
|
|
1587
|
+
interface UserPlanetScaleIntegrationDto {
|
|
1588
|
+
refreshToken: string;
|
|
1589
|
+
}
|
|
1590
|
+
interface UserSentryIntegrationDto {
|
|
1591
|
+
githubIntegrationId: string;
|
|
1592
|
+
githubInstallationId: string;
|
|
1593
|
+
installationId: string;
|
|
1594
|
+
refreshToken: string;
|
|
1595
|
+
organizationSlug: string;
|
|
1596
|
+
}
|
|
1597
|
+
interface UserIntegrationsDto {
|
|
1598
|
+
github?: UserGitHubIntegrationDto;
|
|
1599
|
+
netlify?: UserNetlifyIntegrationDto;
|
|
1600
|
+
vercel?: UserVercelIntegrationDto;
|
|
1601
|
+
planetscale?: UserPlanetScaleIntegrationDto;
|
|
1602
|
+
sentry?: UserSentryIntegrationDto;
|
|
1603
|
+
}
|
|
1604
|
+
|
|
1605
|
+
interface UpdateUserFeatures {
|
|
1606
|
+
experimental?: boolean;
|
|
1607
|
+
}
|
|
1608
|
+
|
|
1609
|
+
interface UpdateUserIntegrations {
|
|
1610
|
+
github?: Partial<UserGitHubIntegrationDto> | null;
|
|
1611
|
+
netlify?: Partial<UserNetlifyIntegrationDto> | null;
|
|
1612
|
+
vercel?: Partial<UserVercelIntegrationDto> | null;
|
|
1613
|
+
planetscale?: Partial<UserPlanetScaleIntegrationDto> | null;
|
|
1614
|
+
sentry?: Partial<UserSentryIntegrationDto> | null;
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
interface PlatformDpsClientInstanceAuthorization {
|
|
1618
|
+
token?: string;
|
|
1619
|
+
tokenType?: "Basic" | "Bearer";
|
|
1620
|
+
}
|
|
1621
|
+
interface PlatformDpsClientInstanceOptions {
|
|
1622
|
+
token?: string;
|
|
1623
|
+
tokenType?: "Basic" | "Bearer";
|
|
1624
|
+
}
|
|
1625
|
+
declare const platformDpsClientInstance: axios.AxiosInstance;
|
|
1626
|
+
declare function getPlatformDpsClientAuthorization(req: {
|
|
1627
|
+
headers: {
|
|
1628
|
+
[key: string]: string | string[] | undefined;
|
|
1629
|
+
};
|
|
1630
|
+
}): PlatformDpsClientInstanceAuthorization;
|
|
1631
|
+
declare function getPlatformDpsAdminClientAuthorization(): PlatformDpsClientInstanceAuthorization;
|
|
1632
|
+
declare function getPlatformDpsClientConfig(options?: PlatformDpsClientInstanceOptions): AxiosRequestConfig;
|
|
1633
|
+
declare function initPlatformDpsClientInstance(baseUrl?: string, token?: string): void;
|
|
1634
|
+
|
|
1635
|
+
interface AgentDto {
|
|
1636
|
+
login: string;
|
|
1637
|
+
groups: {
|
|
1638
|
+
name: string;
|
|
1639
|
+
id: number;
|
|
1640
|
+
priority: number;
|
|
1641
|
+
}[];
|
|
1642
|
+
group_ids: string[];
|
|
1643
|
+
notifications: {
|
|
1644
|
+
ticket: number;
|
|
1645
|
+
incoming_chat: number;
|
|
1646
|
+
new_visitor: number;
|
|
1647
|
+
unassigned_chat_messages: number;
|
|
1648
|
+
unassigned_chats: number;
|
|
1649
|
+
queued_visitor: number;
|
|
1650
|
+
new_goal: number;
|
|
1651
|
+
returning_visitor: number;
|
|
1652
|
+
incoming_message_for_focused_chat: number;
|
|
1653
|
+
visitor_is_typing: number;
|
|
1654
|
+
};
|
|
1655
|
+
nick: string;
|
|
1656
|
+
chats_enabled: number;
|
|
1657
|
+
last_logout: number;
|
|
1658
|
+
send_tutorials: number;
|
|
1659
|
+
visited_welcome_tutorial: number;
|
|
1660
|
+
login_status: string;
|
|
1661
|
+
visited_tickets_tutorial: number;
|
|
1662
|
+
active: number;
|
|
1663
|
+
default_group_priority: string;
|
|
1664
|
+
app_installed: number;
|
|
1665
|
+
max_chats_count: number;
|
|
1666
|
+
inactive_status: number;
|
|
1667
|
+
mute_all_sounds: number;
|
|
1668
|
+
onboarding_completed: number;
|
|
1669
|
+
timezone: string;
|
|
1670
|
+
last_chat_start_timestamp: string;
|
|
1671
|
+
'integration.botengine.inapp_status': string;
|
|
1672
|
+
suspended: number;
|
|
1673
|
+
avatar: string | null;
|
|
1674
|
+
'email.bounce': number;
|
|
1675
|
+
awaiting_approval: number;
|
|
1676
|
+
ticket_notifications: number;
|
|
1677
|
+
daily_summary: number;
|
|
1678
|
+
email: string;
|
|
1679
|
+
last_status: string;
|
|
1680
|
+
customers_visited: number;
|
|
1681
|
+
name: string;
|
|
1682
|
+
job_title: string;
|
|
1683
|
+
inactive_notifications: number;
|
|
1684
|
+
unassigned_chat_notifications: number;
|
|
1685
|
+
weekly_summary: number;
|
|
1686
|
+
state: string;
|
|
1687
|
+
mobile: string;
|
|
1688
|
+
'email.bounce.type': number;
|
|
1689
|
+
customers_enabled: number;
|
|
1690
|
+
permission: string;
|
|
1691
|
+
'email.bounce.date': number;
|
|
1692
|
+
repeat_sound_notifications: number;
|
|
1693
|
+
design_version: number;
|
|
1694
|
+
status: string;
|
|
1695
|
+
instances: [];
|
|
1696
|
+
api_key: string;
|
|
1697
|
+
license_id: number;
|
|
1698
|
+
bot: number;
|
|
1699
|
+
account_id: string;
|
|
1700
|
+
}
|
|
1701
|
+
|
|
1702
|
+
interface PropertyAccessItemDto {
|
|
1703
|
+
agent: ['read', 'write'];
|
|
1704
|
+
customer: ['read', 'write'];
|
|
1705
|
+
}
|
|
1706
|
+
interface PropertyAccessDto {
|
|
1707
|
+
chat?: PropertyAccessItemDto;
|
|
1708
|
+
event?: PropertyAccessItemDto;
|
|
1709
|
+
thread?: PropertyAccessItemDto;
|
|
1710
|
+
license?: PropertyAccessItemDto;
|
|
1711
|
+
group?: PropertyAccessItemDto;
|
|
1712
|
+
}
|
|
1713
|
+
interface PropertyDto {
|
|
1714
|
+
type: 'int' | 'bool' | 'string' | 'tokenized_string';
|
|
1715
|
+
description: string;
|
|
1716
|
+
domain?: string[];
|
|
1717
|
+
range?: {
|
|
1718
|
+
to: number;
|
|
1719
|
+
from: number;
|
|
1720
|
+
};
|
|
1721
|
+
access: PropertyAccessDto;
|
|
1722
|
+
public_access?: PropertyAccessItemDto;
|
|
1723
|
+
default_value: unknown;
|
|
1724
|
+
}
|
|
1725
|
+
interface PropertiesDto {
|
|
1726
|
+
[name: string]: PropertyDto;
|
|
1727
|
+
}
|
|
1728
|
+
interface Property extends PropertyDto {
|
|
1729
|
+
name: string;
|
|
1730
|
+
owner_client_id: string;
|
|
1731
|
+
}
|
|
1732
|
+
|
|
1733
|
+
interface WebhookDto {
|
|
1734
|
+
id: string;
|
|
1735
|
+
api_version: string;
|
|
1736
|
+
action: string;
|
|
1737
|
+
description: string;
|
|
1738
|
+
owner_client_id: string;
|
|
1739
|
+
type: 'bot' | 'license';
|
|
1740
|
+
filters?: {
|
|
1741
|
+
author_type?: 'agent' | 'customer';
|
|
1742
|
+
only_my_chats?: boolean;
|
|
1743
|
+
};
|
|
1744
|
+
url: string;
|
|
1745
|
+
}
|
|
1746
|
+
interface Webhook {
|
|
1747
|
+
url: string;
|
|
1748
|
+
api_version?: string;
|
|
1749
|
+
action: string;
|
|
1750
|
+
description: string;
|
|
1751
|
+
secret_key: string;
|
|
1752
|
+
owner_client_id: string;
|
|
1753
|
+
type: 'bot' | 'license';
|
|
1754
|
+
filters?: {
|
|
1755
|
+
author_type?: 'agent' | 'customer';
|
|
1756
|
+
only_my_chats?: boolean;
|
|
1757
|
+
};
|
|
1758
|
+
}
|
|
1759
|
+
|
|
1760
|
+
declare const getRegion: (token: string) => string | undefined;
|
|
1761
|
+
interface LiveChatClientInstanceAuthorization {
|
|
1762
|
+
token?: string;
|
|
1763
|
+
}
|
|
1764
|
+
interface LiveChatClientInstanceOptions {
|
|
1765
|
+
token?: string;
|
|
1766
|
+
}
|
|
1767
|
+
declare const livechatClientInstance: axios.AxiosInstance;
|
|
1768
|
+
declare function getLiveChatClientAuthorization(req: {
|
|
1769
|
+
headers: {
|
|
1770
|
+
[key: string]: string | string[] | undefined;
|
|
1771
|
+
};
|
|
1772
|
+
}): LiveChatClientInstanceAuthorization;
|
|
1773
|
+
declare function getLiveChatClientConfig(options?: LiveChatClientInstanceOptions): AxiosRequestConfig;
|
|
1774
|
+
declare function initLiveChatClientInstance(baseUrl?: string, token?: string): void;
|
|
1775
|
+
|
|
1776
|
+
declare const api: {
|
|
1777
|
+
platform: {
|
|
1778
|
+
accounts: {
|
|
1779
|
+
client: {
|
|
1780
|
+
readonly getClients: (authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<ClientDto[]>>;
|
|
1781
|
+
readonly getClient: (clientId: string, authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<ClientDto>>;
|
|
1782
|
+
readonly createClient: (payload: CreateClientPayload, authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<ClientWithSecretDto>>;
|
|
1783
|
+
readonly updateClient: (clientId: string, payload: UpdateClientPayload, authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<void>>;
|
|
1784
|
+
readonly deleteClient: (clientId: string, authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<void>>;
|
|
1785
|
+
readonly updateClientScopes: (clientId: string, scopes: ClientScopeDto[], authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<void>>;
|
|
1786
|
+
readonly deleteClientScopes: (clientId: string, scopes: ClientScopeDto[], authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<void>>;
|
|
1787
|
+
readonly getInfo: (authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<ClientInfoDto>>;
|
|
1788
|
+
};
|
|
1789
|
+
pat: {
|
|
1790
|
+
readonly getPersonalAccessTokens: (authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<PatDto[]>;
|
|
1791
|
+
readonly createPersonalAccessToken: (name: string, scopes: PatScopeDto[], authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<CreatePatPayload>;
|
|
1792
|
+
readonly deletePersonalAccessToken: (id: string, authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<void>;
|
|
1793
|
+
};
|
|
1794
|
+
products: {
|
|
1795
|
+
readonly getOrganizationProducts: (authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<ProductDto[]>;
|
|
1796
|
+
readonly updateOrganizationProducts: (payload: {
|
|
1797
|
+
product: string;
|
|
1798
|
+
}, authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<void>;
|
|
1799
|
+
};
|
|
1800
|
+
scopes: {
|
|
1801
|
+
readonly getScopes: (authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<ScopeDto[]>;
|
|
1802
|
+
};
|
|
1803
|
+
sessions: {
|
|
1804
|
+
readonly deleteSessions: (authorization?: PlatformAccountsClientInstanceAuthorization | undefined) => Promise<axios.AxiosResponse<void>>;
|
|
1805
|
+
};
|
|
1806
|
+
};
|
|
1807
|
+
adapter: {
|
|
1808
|
+
app: {
|
|
1809
|
+
blocks: {
|
|
1810
|
+
repository: {
|
|
1811
|
+
get(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppRepository>;
|
|
1812
|
+
link(payload: LinkAppRepositoryPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<LinkAppRepositoryResult>;
|
|
1813
|
+
unlink(payload: UnlinkAppRepositoryPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1814
|
+
seed(payload: SeedAppRepositoryPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1815
|
+
};
|
|
1816
|
+
deployment: {
|
|
1817
|
+
get(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppDeployment>;
|
|
1818
|
+
link(payload: LinkAppDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1819
|
+
unlink(payload: UnlinkAppDeploymentPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1820
|
+
installSentry(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1821
|
+
};
|
|
1822
|
+
storage: {
|
|
1823
|
+
get(appId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppStorage>;
|
|
1824
|
+
link(payload: LinkAppStoragePayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1825
|
+
unlink(payload: UnlinkAppStoragePayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<void>;
|
|
1826
|
+
};
|
|
1827
|
+
logger: {
|
|
1828
|
+
providers: {
|
|
1829
|
+
sentry: {
|
|
1830
|
+
get(projectSlug: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppSentryLogger>;
|
|
1831
|
+
link(payload: LinkAppSentryLoggerPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
|
|
1832
|
+
unlink(payload: UnlinkAppSentryLoggerPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
|
|
1833
|
+
reauthorizeSentryApp(userId: string, sentryInstallationId: string, sentryRefreshToken: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<{
|
|
1834
|
+
token?: string | undefined;
|
|
1835
|
+
error?: string | undefined;
|
|
1836
|
+
}>;
|
|
1837
|
+
requestSentryIssueSolution(stacktrace: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
|
|
1838
|
+
};
|
|
1839
|
+
};
|
|
1840
|
+
};
|
|
1841
|
+
};
|
|
1842
|
+
variables: {
|
|
1843
|
+
getVariables(appId: string, decrypted?: boolean | undefined, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppVariable[]>;
|
|
1844
|
+
getVariable(appId: string, key: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<AppVariable>;
|
|
1845
|
+
syncVariable(appId: string, key: string, payload: SyncAppVariablePayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<any>;
|
|
1846
|
+
};
|
|
1847
|
+
create(payload: CreateAppPayload, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
|
|
1848
|
+
createStatus(sagaId: string, authorization?: PlatformAdapterClientInstanceAuthorization | undefined): Promise<CreateAppResult>;
|
|
1849
|
+
};
|
|
1850
|
+
};
|
|
1851
|
+
dps: {
|
|
1852
|
+
applications: {
|
|
1853
|
+
application: {
|
|
1854
|
+
authorization: {
|
|
1855
|
+
readonly createAuth: (appId: string, payload: CreateApplicationAuthorizationPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined) => Promise<void>;
|
|
1856
|
+
};
|
|
1857
|
+
autoReview: {
|
|
1858
|
+
getAutoReview(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<ApplicationAutoReviewDto | null>;
|
|
1859
|
+
submitAutoReview(appId: string, payload: ApplicationAutoReviewPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1860
|
+
};
|
|
1861
|
+
chatActions: {
|
|
1862
|
+
createChatAction(appId: string, payload: CreateApplicationChatActionPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1863
|
+
updateChatAction(appId: string, payload: UpdateApplicationChatActionPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1864
|
+
deleteChatAction(appId: string, chatActionId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1865
|
+
};
|
|
1866
|
+
chatBoosters: {
|
|
1867
|
+
createChatBooster(appId: string, chatBoosterId: string, payload: UpsertApplicationChatBoosterPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void>>;
|
|
1868
|
+
updateChatBooster(appId: string, chatBoosterId: string, payload: UpsertApplicationChatBoosterPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void>>;
|
|
1869
|
+
};
|
|
1870
|
+
customProps: {
|
|
1871
|
+
createCustomProps(appId: string, property: ApplicationPropertyDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1872
|
+
updateCustomProps(appId: string, property: ApplicationPropertyDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1873
|
+
deleteCustomProps(appId: string, property: ApplicationPropertyDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1874
|
+
};
|
|
1875
|
+
display: {
|
|
1876
|
+
updateVersionHistory(appId: string, payload: UpdateApplicationChangelogPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1877
|
+
updateBasicDetails(appId: string, basicDetails: ApplicationBasicDetailsDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1878
|
+
updateOverview(appId: string, data: ApplicationOverviewDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1879
|
+
updateTutorialAndSupport(appId: string, data: ApplicationTutorialAndSupportDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1880
|
+
updateAppIcon(appId: string, payload: UpdateApplicationIconPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1881
|
+
updateDisplayImages(appId: string, screenshots: ApplicationScreenshotDto[], authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1882
|
+
updateDisplayFeatures(appId: string, features: ApplicationFeatureDto[], authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1883
|
+
updateDisplayBenefits(appId: string, benefits: ApplicationBenefitDto[], authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1884
|
+
};
|
|
1885
|
+
events: {
|
|
1886
|
+
getEvents(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<AppEventDto[]>;
|
|
1887
|
+
};
|
|
1888
|
+
install: {
|
|
1889
|
+
updateDirectInstallationUrl(appId: string, payload: UpdateApplicationDirectInstallUrlPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1890
|
+
};
|
|
1891
|
+
infrastructure: {
|
|
1892
|
+
blocks: {
|
|
1893
|
+
getBlocks(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<AppInfrastructureBlocks>;
|
|
1894
|
+
updateBlocks(appId: string, payload: UpdateAppInfrastructureBlocksPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
|
|
1895
|
+
updateRepository(appId: string, payload: {
|
|
1896
|
+
provider: AppRepositoryProvider;
|
|
1897
|
+
}, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
|
|
1898
|
+
updateDeployment(appId: string, payload: {
|
|
1899
|
+
mode: AppDeploymentMode;
|
|
1900
|
+
provider: AppDeploymentProvider;
|
|
1901
|
+
customUrl: string;
|
|
1902
|
+
}, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
|
|
1903
|
+
updateStorage(appId: string, payload: {
|
|
1904
|
+
provider: AppStorageProvider;
|
|
1905
|
+
}, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
|
|
1906
|
+
updateLogger(appId: string, payload: {
|
|
1907
|
+
provider: AppLoggerProvider;
|
|
1908
|
+
}, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
|
|
1909
|
+
};
|
|
1910
|
+
};
|
|
1911
|
+
onboarding: {
|
|
1912
|
+
updateOnboarding(appId: string, payload: UpdateApplicationOnboardingPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1913
|
+
deleteOnboarding(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1914
|
+
};
|
|
1915
|
+
payment: {
|
|
1916
|
+
updatePaymentBlock(appId: string, payment: any, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1917
|
+
deletePaymentBlock(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1918
|
+
};
|
|
1919
|
+
product: {
|
|
1920
|
+
updateProduct(appId: string, payload: UpdateApplicationProductPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1921
|
+
};
|
|
1922
|
+
reporting: {
|
|
1923
|
+
sendEvent<TPayload = unknown>(appId: string, event: ReportingEvent<TPayload>, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1924
|
+
};
|
|
1925
|
+
resource: {
|
|
1926
|
+
getAppUpgrades(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<AppResourceDto>>;
|
|
1927
|
+
createAppUpgrade(appId: string, body: UpsertAppResourcePayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void>>;
|
|
1928
|
+
updateAppUpgrade(appId: string, body: UpsertAppResourcePayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void>>;
|
|
1929
|
+
deleteAppUpgrade(appId: string, resourceId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
|
|
1930
|
+
copyUpgrade(sourceAppId: string, destinationAppId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void>>;
|
|
1931
|
+
};
|
|
1932
|
+
review: {
|
|
1933
|
+
createSubmission(appId: string, payload: CreateApplicationSubmissionPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1934
|
+
cancelSubmission(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1935
|
+
};
|
|
1936
|
+
webhooks: {
|
|
1937
|
+
updateAppWebhooks(appId: string, payload: UpdateApplicationWebhookPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1938
|
+
getChatWebhook(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1939
|
+
updateChatWebhook(appId: string, payload: UpdateChatWebhookPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1940
|
+
deleteChatWebhook(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1941
|
+
};
|
|
1942
|
+
widgets: {
|
|
1943
|
+
createWidget(appId: string, widgetId: string, widget: UpdateApplicationWidgetDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1944
|
+
updateWidget(appId: string, widgetId: string, widget: UpdateApplicationWidgetDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1945
|
+
deleteWidget(appId: string, widgetId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1946
|
+
};
|
|
1947
|
+
getApp(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<ApplicationDto>;
|
|
1948
|
+
createApp(payload: CreateApplicationPayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<CreateApplicationResponse>;
|
|
1949
|
+
fork(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
|
|
1950
|
+
updateQL(appId: string): Promise<void>;
|
|
1951
|
+
deleteApp(appId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
1952
|
+
createAiContent(appId: string, appName: string, appSummary: string): Promise<axios.AxiosResponse<any>>;
|
|
1953
|
+
};
|
|
1954
|
+
usage: {
|
|
1955
|
+
getUsage(appId: string, options: ApplicationUsageOptionsDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any[]>;
|
|
1956
|
+
};
|
|
1957
|
+
purchases: {
|
|
1958
|
+
getPurchases(apps: {
|
|
1959
|
+
appId: string;
|
|
1960
|
+
clientId: string;
|
|
1961
|
+
}[], options: {
|
|
1962
|
+
from: string;
|
|
1963
|
+
to: string;
|
|
1964
|
+
duration: string;
|
|
1965
|
+
}, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<{
|
|
1966
|
+
appId: string;
|
|
1967
|
+
data: unknown;
|
|
1968
|
+
}[]>;
|
|
1969
|
+
getSummaryPurchases(apps: {
|
|
1970
|
+
clientId: string;
|
|
1971
|
+
}[], options: {
|
|
1972
|
+
from: string;
|
|
1973
|
+
to: string;
|
|
1974
|
+
duration: string;
|
|
1975
|
+
}, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<{
|
|
1976
|
+
data: any;
|
|
1977
|
+
appId: string;
|
|
1978
|
+
}[]>;
|
|
1979
|
+
getSummaryPurchasesHistory(apps: {
|
|
1980
|
+
clientId: string;
|
|
1981
|
+
}[], options: {
|
|
1982
|
+
from: string;
|
|
1983
|
+
to: string;
|
|
1984
|
+
duration: string;
|
|
1985
|
+
}, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<{
|
|
1986
|
+
data: any;
|
|
1987
|
+
appId: string;
|
|
1988
|
+
}[]>;
|
|
1989
|
+
};
|
|
1990
|
+
getApps({ filter }?: {
|
|
1991
|
+
filter?: string | undefined;
|
|
1992
|
+
}): Promise<ApplicationDto[] | null>;
|
|
1993
|
+
};
|
|
1994
|
+
user: {
|
|
1995
|
+
getUser(authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<UserDto>;
|
|
1996
|
+
getUserIntegrations(authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<UserIntegrationsDto>;
|
|
1997
|
+
updateUser(user: UserDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<number>;
|
|
1998
|
+
updateUserIntegrations(payload: UpdateUserIntegrations, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
|
|
1999
|
+
updateUserFeatures(payload: UpdateUserFeatures, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2000
|
+
removeUserGitHubIntegrationByInstallationId(installationId: string, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
|
|
2001
|
+
updateUserNetlifyIntegration(userNetlifyIntegration: UserNetlifyIntegrationDto, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<number>;
|
|
2002
|
+
};
|
|
2003
|
+
categories: {
|
|
2004
|
+
getCategories(authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<Category[]>;
|
|
2005
|
+
};
|
|
2006
|
+
developers: {
|
|
2007
|
+
developer: {
|
|
2008
|
+
getLedger(userId: string, options: DeveloperLedgerParams, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<unknown>;
|
|
2009
|
+
requestWithdrawal({ amount, note, userId, }: {
|
|
2010
|
+
amount: string;
|
|
2011
|
+
note: string;
|
|
2012
|
+
userId: string;
|
|
2013
|
+
}, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<any>;
|
|
2014
|
+
};
|
|
2015
|
+
};
|
|
2016
|
+
links: {
|
|
2017
|
+
updateShortcuts(links: ShortcutDto[], authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<void>;
|
|
2018
|
+
};
|
|
2019
|
+
messaging: {
|
|
2020
|
+
developer: {
|
|
2021
|
+
getMessages(authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<DeveloperMessageDto[]>;
|
|
2022
|
+
createMessage(message: CreateDeveloperMessagePayload, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<void>>;
|
|
2023
|
+
};
|
|
2024
|
+
};
|
|
2025
|
+
research: {
|
|
2026
|
+
customer: {
|
|
2027
|
+
getResearchCustomersLicenses(authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<ResearchCustomerItemDto>;
|
|
2028
|
+
getResearchCustomersBusiness(authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<ResearchCustomerItemDto>;
|
|
2029
|
+
getResearchCustomersLocation(authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<ResearchCustomerLocationItemDto>;
|
|
2030
|
+
};
|
|
2031
|
+
traffic: {
|
|
2032
|
+
getResearchTrafficAgents(options?: ResearchTrafficParams, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<ResearchTrafficItemDto[]>;
|
|
2033
|
+
getResearchTrafficChats(options?: ResearchTrafficParams, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<ResearchTrafficItemDto[]>;
|
|
2034
|
+
};
|
|
2035
|
+
marketplace: {
|
|
2036
|
+
getResearchMarketplaceApps(options?: ResearchMarketplaceParams, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<ResearchMarketplaceItemDto>;
|
|
2037
|
+
getResearchMarketplaceViews(options?: ResearchMarketplaceParams, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<ResearchMarketplaceItemDto>;
|
|
2038
|
+
};
|
|
2039
|
+
dictionary: {
|
|
2040
|
+
getResearchDictionary(options?: ResearchDictionaryParams, authorization?: PlatformDpsClientInstanceAuthorization | undefined): Promise<string[]>;
|
|
2041
|
+
};
|
|
2042
|
+
};
|
|
2043
|
+
};
|
|
2044
|
+
};
|
|
2045
|
+
products: {
|
|
2046
|
+
livechat: {
|
|
2047
|
+
agent: {
|
|
2048
|
+
getUser(): Promise<AgentDto>;
|
|
2049
|
+
};
|
|
2050
|
+
configuration: {
|
|
2051
|
+
property: {
|
|
2052
|
+
getProperties(clientId: string, isAgent?: boolean | undefined): Promise<axios.AxiosResponse<PropertiesDto>>;
|
|
2053
|
+
registerProperty(property: Property): Promise<axios.AxiosResponse<void>>;
|
|
2054
|
+
unregisterProperty(propertyId: string, clientId: string, properties?: PropertyDto[] | undefined): Promise<axios.AxiosResponse<void>>;
|
|
2055
|
+
publishProperty(propertyId: string, clientId: string, accessType: PropertyAccessItemDto): Promise<axios.AxiosResponse<void>>;
|
|
2056
|
+
publishProperties(properties: Property[]): Promise<axios.AxiosResponse<void>[]>;
|
|
2057
|
+
registerProperties(properties: Property[]): Promise<axios.AxiosResponse<void>[]>;
|
|
2058
|
+
unregisterProperties(clientId: string): Promise<void>;
|
|
2059
|
+
};
|
|
2060
|
+
webhook: {
|
|
2061
|
+
getWebhooks(clientId: string, isAgent?: boolean | undefined): Promise<axios.AxiosResponse<WebhookDto[]>>;
|
|
2062
|
+
unregisterWebhook(clientId: string, webhookId: string): Promise<axios.AxiosResponse<void>>;
|
|
2063
|
+
unregisterWebhooks(clientId: string): Promise<void>;
|
|
2064
|
+
registerWebhooks(webhooks: Webhook[]): Promise<void>;
|
|
2065
|
+
migrateWebhooks(webhooks: Webhook[], clientId: string): Promise<void>;
|
|
2066
|
+
getLicenseWebhooksList(isAgent: boolean): Promise<axios.AxiosResponse<any> | {
|
|
2067
|
+
data: never[];
|
|
2068
|
+
}>;
|
|
2069
|
+
deleteLicenseWebhook(id: string): Promise<axios.AxiosResponse<void>>;
|
|
2070
|
+
};
|
|
2071
|
+
};
|
|
2072
|
+
};
|
|
2073
|
+
};
|
|
2074
|
+
integrations: {
|
|
2075
|
+
github: {
|
|
2076
|
+
installation: {
|
|
2077
|
+
getInstallation(account?: string | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubInstallation | undefined>;
|
|
2078
|
+
getInstallations(authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubInstallation[]>;
|
|
2079
|
+
getInstallationRepositories(installationId: string): Promise<GitHubRepository[]>;
|
|
2080
|
+
};
|
|
2081
|
+
repository: {
|
|
2082
|
+
getRepository(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepository>;
|
|
2083
|
+
getRepositoryBranches(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositoryBranch[]>;
|
|
2084
|
+
getRepositoryBranch(repositoryName: string, repositoryBranch: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositoryBranch>;
|
|
2085
|
+
getRepositorySeed(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositorySeed | undefined>;
|
|
2086
|
+
createRepository(name: string, hasInstallation: boolean, templateName?: "empty" | "nextjs" | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepository>;
|
|
2087
|
+
seedRepository(repositoryName: string, appId: string, clientId: string | undefined, authorization?: GithubClientInstanceAuthorization | undefined): Promise<GitHubRepositorySeed>;
|
|
2088
|
+
deleteRepository(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<axios.AxiosResponse<any>>;
|
|
2089
|
+
createRepositoryDeployKey(repositoryName: string, deployKey: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<{
|
|
2090
|
+
keys: GitHubRepositoryKey[];
|
|
2091
|
+
}>;
|
|
2092
|
+
createRepositoryBuildHook(repositoryName: string, authorization?: GithubClientInstanceAuthorization | undefined): Promise<{
|
|
2093
|
+
keys: GitHubRepositoryHook[];
|
|
2094
|
+
} | undefined>;
|
|
2095
|
+
};
|
|
2096
|
+
getToken(code: string, clientId: string, clientSecret: string, redirectUrl: string): Promise<string>;
|
|
2097
|
+
};
|
|
2098
|
+
netlify: {
|
|
2099
|
+
account: {
|
|
2100
|
+
getAccount(authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<string>;
|
|
2101
|
+
getAccountEnvs(accountId: string | undefined, siteId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifyEnv[]>;
|
|
2102
|
+
getAccountEnv(accountId: string | undefined, siteId: string, envKey: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifyEnv | undefined>;
|
|
2103
|
+
createAccountEnv(accountId: string | undefined, siteId: string, envName: string, envValue: string, envs?: {
|
|
2104
|
+
key: string;
|
|
2105
|
+
}[] | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2106
|
+
addAccountSentryTokenEnv(siteId: string, token: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2107
|
+
};
|
|
2108
|
+
site: {
|
|
2109
|
+
getSites(authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite[]>;
|
|
2110
|
+
getSite(siteId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite>;
|
|
2111
|
+
getSiteDeploy(siteId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifyDeploy>;
|
|
2112
|
+
getSiteDeploys(siteId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifyDeploy[]>;
|
|
2113
|
+
getSiteSnippets(siteId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<{
|
|
2114
|
+
id: string;
|
|
2115
|
+
title: string;
|
|
2116
|
+
}[]>;
|
|
2117
|
+
createSiteByInstallationId(name: string, repositoryFullName: string, installationId: string, branch?: string | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite>;
|
|
2118
|
+
createSiteByDeployKey(name: string, repositoryFullName: string, deployKeyId: string, branch?: string | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifySite>;
|
|
2119
|
+
removeSite(siteId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2120
|
+
triggerSiteBuild(siteId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2121
|
+
addGitHubInstallationToSite(siteId: string, installationId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2122
|
+
addSentryPluginToSite(siteId: string, projectOrg: string, projectName: string, projectKey: string, token?: string | undefined, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2123
|
+
};
|
|
2124
|
+
key: {
|
|
2125
|
+
createDeployKey(authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<NetlifyDeployKey>;
|
|
2126
|
+
};
|
|
2127
|
+
hook: {
|
|
2128
|
+
addBuildHooks(siteId: string, authorization?: NetlifyClientInstanceAuthorization | undefined): Promise<void>;
|
|
2129
|
+
};
|
|
2130
|
+
};
|
|
2131
|
+
vercel: {
|
|
2132
|
+
project: {
|
|
2133
|
+
getProjects(authorization?: VercelClientInstanceAuthorization | undefined): Promise<GetVercelProjectsResult>;
|
|
2134
|
+
getProject(projectId: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelProject>;
|
|
2135
|
+
createProject(name: string, repositoryFullName: string, branch?: string | undefined, authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelProject>;
|
|
2136
|
+
removeProject(projectId: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<void>;
|
|
2137
|
+
getProjectEnvs(projectId: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelProjectEnv[]>;
|
|
2138
|
+
getProjectEnv(projectId: string, envId: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelProjectEnv | undefined>;
|
|
2139
|
+
getProjectEnvByKey(projectId: string, envKey: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelProjectEnv | undefined>;
|
|
2140
|
+
createProjectEnv(projectId: string, key: string, value: string, envs?: {
|
|
2141
|
+
id: string;
|
|
2142
|
+
key: string;
|
|
2143
|
+
}[] | undefined, authorization?: VercelClientInstanceAuthorization | undefined): Promise<any>;
|
|
2144
|
+
};
|
|
2145
|
+
deploy: {
|
|
2146
|
+
createDeploy(project: string, repoId: number, branch: string, authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelDeploy>;
|
|
2147
|
+
};
|
|
2148
|
+
integrations: {
|
|
2149
|
+
getGitNamespaces(authorization?: VercelClientInstanceAuthorization | undefined): Promise<VercelNamespace[]>;
|
|
2150
|
+
getGitRepos(repositoryName: string | undefined, namespaceId: string | undefined, authorization?: VercelClientInstanceAuthorization | undefined): Promise<{
|
|
2151
|
+
repos: VercelRepository[];
|
|
2152
|
+
namespaceId?: number | null | undefined;
|
|
2153
|
+
provider?: string | undefined;
|
|
2154
|
+
}>;
|
|
2155
|
+
isRepositoryAccessible(repositoryName: string | undefined, authorization?: VercelClientInstanceAuthorization | undefined): Promise<{
|
|
2156
|
+
isAccessible: boolean;
|
|
2157
|
+
installationId?: number | null | undefined;
|
|
2158
|
+
}>;
|
|
2159
|
+
isUserConnectedToGitHub(authorization?: VercelClientInstanceAuthorization | undefined): Promise<boolean>;
|
|
2160
|
+
};
|
|
2161
|
+
getToken(code: string, clientId: string, clientSecret: string, redirectUrl: string): Promise<{
|
|
2162
|
+
token: string;
|
|
2163
|
+
installationId: string;
|
|
2164
|
+
userId: string;
|
|
2165
|
+
teamId: string;
|
|
2166
|
+
}>;
|
|
2167
|
+
};
|
|
2168
|
+
planetscale: {
|
|
2169
|
+
database: {
|
|
2170
|
+
password: {
|
|
2171
|
+
getDatabasePasswords(organization: string, databaseName: string, branchName: string, authorization?: PlanetScaleClientInstanceAuthorization | undefined): Promise<GetPlanetScaleDatabasePasswordsResult>;
|
|
2172
|
+
getDatabasePassword(organization: string, databaseName: string, branchName: string, passwordId: string, authorization?: PlanetScaleClientInstanceAuthorization | undefined): Promise<PlanetScaleDatabasePassword>;
|
|
2173
|
+
createDatabasePassword(organization: string, databaseName: string, branchName: string, passwordName: string, authorization?: PlanetScaleClientInstanceAuthorization | undefined): Promise<PlanetScaleDatabasePassword>;
|
|
2174
|
+
deleteDatabasePassword(organization: string, databaseName: string, branchName: string, passwordId: string, authorization?: PlanetScaleClientInstanceAuthorization | undefined): Promise<void>;
|
|
2175
|
+
};
|
|
2176
|
+
getDatabases(organization: string, authorization?: PlanetScaleClientInstanceAuthorization | undefined): Promise<GetPlanetScaleDatabasesResult>;
|
|
2177
|
+
getDatabase(organization: string, databaseName: string, authorization?: PlanetScaleClientInstanceAuthorization | undefined): Promise<PlanetScaleDatabase>;
|
|
2178
|
+
createDatabase(organization: string, name: string, authorization?: PlanetScaleClientInstanceAuthorization | undefined): Promise<PlanetScaleDatabase>;
|
|
2179
|
+
removeDatabase(organization: string, databaseName: string, authorization?: PlanetScaleClientInstanceAuthorization | undefined): Promise<void>;
|
|
2180
|
+
};
|
|
2181
|
+
organization: {
|
|
2182
|
+
getOrganizations(authorization?: PlanetScaleClientInstanceAuthorization | undefined): Promise<GetPlanetScaleOrganizationsResult>;
|
|
2183
|
+
getOrganization(organization: string, authorization?: PlanetScaleClientInstanceAuthorization | undefined): Promise<PlanetScaleOrganization>;
|
|
2184
|
+
};
|
|
2185
|
+
user: {
|
|
2186
|
+
getUser(authorization?: PlanetScaleClientInstanceAuthorization | undefined): Promise<PlanetScaleUser>;
|
|
2187
|
+
};
|
|
2188
|
+
getToken(applicationId: string, organization: string, code: string, clientId: string, clientSecret: string, serviceTokenId: string, serviceToken: string, redirectUrl: string): Promise<{
|
|
2189
|
+
tokenId: string;
|
|
2190
|
+
token: string;
|
|
2191
|
+
refreshToken: string;
|
|
2192
|
+
}>;
|
|
2193
|
+
};
|
|
2194
|
+
sentry: {
|
|
2195
|
+
getTeam(teamSlug: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryTeam>;
|
|
2196
|
+
getOrganizations(authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryOrganization[]>;
|
|
2197
|
+
getOrganization(organizationSlug: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryOrganization[]>;
|
|
2198
|
+
getOrganizationRepos(organizationSlug: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryRepository[]>;
|
|
2199
|
+
getOrganizationIntegrations(organizationSlug: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryIntegration[]>;
|
|
2200
|
+
getProjects(authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryProject[]>;
|
|
2201
|
+
getProject(projectFullName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryProject>;
|
|
2202
|
+
getProjectIssues(projectFullName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryProjectIssue[]>;
|
|
2203
|
+
getProjectIssueLatestEvent(issueId: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryProjectIssueEvent>;
|
|
2204
|
+
getProjectKeys(projectFullName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryProjectKey[]>;
|
|
2205
|
+
createTeam(organizationSlug: string, teamName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<any>;
|
|
2206
|
+
createRepo(organizationSlug: string, projectId: string, repositoryFullName: string, repositoryBranch: string, githubIntegrationId: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<void>;
|
|
2207
|
+
createProject(organizationSlug: string, appName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<SentryProject>;
|
|
2208
|
+
deleteProject(projectFullName: string, authorization?: SentryClientInstanceAuthorization | undefined): Promise<any>;
|
|
2209
|
+
};
|
|
2210
|
+
};
|
|
2211
|
+
isInitialized: boolean;
|
|
2212
|
+
};
|
|
2213
|
+
declare function initApi(config: {
|
|
2214
|
+
urls: {
|
|
2215
|
+
platform?: {
|
|
2216
|
+
accounts?: string;
|
|
2217
|
+
adapter?: string;
|
|
2218
|
+
dps?: string;
|
|
2219
|
+
};
|
|
2220
|
+
products?: {
|
|
2221
|
+
livechat?: string;
|
|
2222
|
+
};
|
|
2223
|
+
};
|
|
2224
|
+
}, tokens?: {
|
|
2225
|
+
platform?: {
|
|
2226
|
+
dps: string;
|
|
2227
|
+
};
|
|
2228
|
+
github?: {
|
|
2229
|
+
apps: string;
|
|
2230
|
+
oauth: string;
|
|
2231
|
+
};
|
|
2232
|
+
netlify?: {
|
|
2233
|
+
token: string;
|
|
2234
|
+
};
|
|
2235
|
+
vercel?: {
|
|
2236
|
+
token: string;
|
|
2237
|
+
};
|
|
2238
|
+
sentry?: {
|
|
2239
|
+
token: string;
|
|
2240
|
+
};
|
|
2241
|
+
planetscale?: {
|
|
2242
|
+
token: string;
|
|
2243
|
+
};
|
|
2244
|
+
}): void;
|
|
2245
|
+
|
|
2246
|
+
declare const API_NOTIFICATIONS: {
|
|
2247
|
+
BUILDING_BLOCKS: {
|
|
2248
|
+
SUCCESS: {
|
|
2249
|
+
CREATED: string;
|
|
2250
|
+
UPDATED: string;
|
|
2251
|
+
DELETED: string;
|
|
2252
|
+
};
|
|
2253
|
+
FAILURE: {
|
|
2254
|
+
CREATED: string;
|
|
2255
|
+
UPDATED: string;
|
|
2256
|
+
DELETED: string;
|
|
2257
|
+
};
|
|
2258
|
+
};
|
|
2259
|
+
};
|
|
2260
|
+
|
|
2261
|
+
type ApiError = {
|
|
2262
|
+
message: string;
|
|
2263
|
+
};
|
|
2264
|
+
declare class UnauthorizeApiError extends Error {
|
|
2265
|
+
source: "dps" | "github" | "vercel" | "netlify" | "sentry" | "planetscale";
|
|
2266
|
+
constructor(source: "dps" | "github" | "vercel" | "netlify" | "sentry" | "planetscale");
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
declare const serializerBase64: {
|
|
2270
|
+
serialize<T>(state: T): string;
|
|
2271
|
+
deserialize<T_1>(message?: string): T_1 | undefined;
|
|
2272
|
+
};
|
|
2273
|
+
|
|
2274
|
+
export { API_NOTIFICATIONS, ActiveUserReportingEvent, AgentDto, ApiError, AppDeployment, AppDeploymentBlock, AppDeploymentMode, AppDeploymentProvider, AppGitHubRepository, AppGitHubRepositoryConfig, AppGitLabRepository, AppInfrastructureBlocks, AppLoggerBlock, AppLoggerProvider, AppNetlifyDeployment, AppNetlifyDeploymentConfig, AppPlanetScaleStorage, AppPlanetScaleStorageConfig, AppRepository, AppRepositoryBlock, AppRepositoryProvider, AppRepositoryTemplate, 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, GetPlanetScaleDatabasePasswordsResult, GetPlanetScaleDatabasesResult, GetPlanetScaleOrganizationsResult, GetVercelProjectsResult, GitHubInstallation, GitHubRepository, GitHubRepositoryBranch, GitHubRepositoryHook, GitHubRepositoryKey, GitHubRepositorySeed, GithubClientInstanceAuthorization, GithubClientRequestOptions, LinkAppDeploymentData, LinkAppDeploymentNetlifyData, LinkAppDeploymentPayload, LinkAppDeploymentResult, LinkAppDeploymentVercelData, LinkAppRepositoryData, LinkAppRepositoryGitHubData, LinkAppRepositoryGitLabData, LinkAppRepositoryPayload, LinkAppRepositoryResult, LinkAppSentryLoggerPayload, LinkAppStorageData, LinkAppStoragePayload, LinkAppStoragePlanetScaleData, 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, UnauthorizeApiError, 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, getVercelClientAuthorization, getVercelClientConfig, githubClientInstance, initApi, initGithubClientInstance, initLiveChatClientInstance, initNetlifyClientInstance, initPlanetScaleClientInstance, initPlatformAccountsClientInstance, initPlatformAdapterClientInstance, initPlatformDpsClientInstance, initSentryClientInstance, initVercelClientInstance, livechatClientInstance, netlifyClientInstance, planetScaleClientInstance, platformAccountsClientInstance, platformAdapterClientInstance, platformDpsClientInstance, sentryClientInstance, serializerBase64, updateGithubClientInstance, updateNetlifyClientInstance, updatePlanetScaleClientInstance, updatePlatformAdapterClientInstance, updateSentryClientInstance, updateVercelClientInstance, vercelClientInstance };
|