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