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