@dazl/internal-api-client 1.5.5 → 1.5.7
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/client/client.gen.d.ts.map +1 -1
- package/dist/client/client.gen.js +7 -1
- package/dist/client/client.gen.js.map +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/sdk.gen.d.ts +7 -1
- package/dist/sdk.gen.d.ts.map +1 -1
- package/dist/sdk.gen.js +46 -0
- package/dist/sdk.gen.js.map +1 -1
- package/dist/types.gen.d.ts +320 -5
- package/dist/types.gen.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/client/client.gen.ts +7 -1
- package/src/index.ts +1 -1
- package/src/sdk.gen.ts +53 -1
- package/src/types.gen.ts +350 -5
package/src/sdk.gen.ts
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import { client } from './client.gen.ts';
|
|
4
4
|
import type { Client, Options as Options2, TDataShape } from './client/index.ts';
|
|
5
|
-
import type { CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponses, ConnectUserData, ConnectUserErrors, ConnectUserResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateUserData, CreateUserErrors, CreateUserResponses, DeleteProjectData, DeleteProjectErrors, DeleteProjectResponses, DuplicateProjectData, DuplicateProjectErrors, DuplicateProjectResponses, EnsureSiteIdData, EnsureSiteIdErrors, EnsureSiteIdResponses, GetAccountScreenshotsData, GetAccountScreenshotsErrors, GetAccountScreenshotsResponses, GetAllProductsData, GetAllProductsErrors, GetAllProductsResponses, GetByDazlIdData, GetByDazlIdErrors, GetByDazlIdResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsErrors, GetInstallationsResponses, GetInstallationTokenData, GetInstallationTokenErrors, GetInstallationTokenResponses, GetInstallationUrlData, GetInstallationUrlErrors, GetInstallationUrlResponses, GetLatestDeployData, GetLatestDeployErrors, GetLatestDeployResponses, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponses, GetPriceByIdData, GetPriceByIdErrors, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdErrors, GetProjectByIdResponses, GetProjectScreenshotsData, GetProjectScreenshotsErrors, GetProjectScreenshotsResponses, GetTemplateData, GetTemplateErrors, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationErrors, GetUploadConfigurationResponses, GetUserByDazlIdData, GetUserByDazlIdErrors, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoErrors, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsErrors, GetUserProjectsResponses, GetUserTemplatesData, GetUserTemplatesErrors, GetUserTemplatesResponses, ListFilesData, ListFilesErrors, ListFilesResponses, ScrapePageContentData, ScrapePageContentErrors, ScrapePageContentResponses, SearchWebData, SearchWebErrors, SearchWebResponses, TakeScreenshotData, TakeScreenshotErrors, TakeScreenshotResponses, UpdateByDazlIdData, UpdateByDazlIdErrors, UpdateByDazlIdResponses, UpdateEnvVarsData, UpdateEnvVarsErrors, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectResponses, UpdateUserData, UpdateUserErrors, UpdateUserResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponses, UpsertDeployInDbData, UpsertDeployInDbErrors, UpsertDeployInDbResponses } from './types.gen.ts';
|
|
5
|
+
import type { AddCustomDomainData, AddCustomDomainErrors, AddCustomDomainResponses, CancelScheduledUpdateByDazlIdData, CancelScheduledUpdateByDazlIdErrors, CancelScheduledUpdateByDazlIdResponses, ConnectUserData, ConnectUserErrors, ConnectUserResponses, CreateCustomerPortalSessionData, CreateCustomerPortalSessionErrors, CreateCustomerPortalSessionResponses, CreateCustomerWithDefaultSubscriptionData, CreateCustomerWithDefaultSubscriptionErrors, CreateCustomerWithDefaultSubscriptionResponses, CreateMediaData, CreateMediaErrors, CreateMediaResponses, CreateProjectData, CreateProjectErrors, CreateProjectResponses, CreateTemplateData, CreateTemplateErrors, CreateTemplateResponses, CreateUserData, CreateUserErrors, CreateUserResponses, DeleteCustomDomainData, DeleteCustomDomainErrors, DeleteCustomDomainResponses, DeleteProjectData, DeleteProjectErrors, DeleteProjectResponses, DeleteTemplateData, DeleteTemplateErrors, DeleteTemplateResponses, DuplicateProjectData, DuplicateProjectErrors, DuplicateProjectResponses, EnsureSiteIdData, EnsureSiteIdErrors, EnsureSiteIdResponses, GetAccountScreenshotsData, GetAccountScreenshotsErrors, GetAccountScreenshotsResponses, GetAllProductsData, GetAllProductsErrors, GetAllProductsResponses, GetByDazlIdData, GetByDazlIdErrors, GetByDazlIdResponses, GetCustomDomainData, GetCustomDomainErrors, GetCustomDomainResponses, GetCustomerInfoByDazlIdData, GetCustomerInfoByDazlIdErrors, GetCustomerInfoByDazlIdResponses, GetHasSufficientCreditsByDazlIdData, GetHasSufficientCreditsByDazlIdErrors, GetHasSufficientCreditsByDazlIdResponses, GetInstallationsData, GetInstallationsErrors, GetInstallationsResponses, GetInstallationTokenData, GetInstallationTokenErrors, GetInstallationTokenResponses, GetInstallationUrlData, GetInstallationUrlErrors, GetInstallationUrlResponses, GetLatestDeployData, GetLatestDeployErrors, GetLatestDeployResponses, GetMaxCreditsForDefaultFreeData, GetMaxCreditsForDefaultFreeErrors, GetMaxCreditsForDefaultFreeResponses, GetPriceByIdData, GetPriceByIdErrors, GetPriceByIdResponses, GetProjectByIdData, GetProjectByIdErrors, GetProjectByIdResponses, GetProjectScreenshotsData, GetProjectScreenshotsErrors, GetProjectScreenshotsResponses, GetTemplateData, GetTemplateErrors, GetTemplateResponses, GetUploadConfigurationData, GetUploadConfigurationErrors, GetUploadConfigurationResponses, GetUserByDazlIdData, GetUserByDazlIdErrors, GetUserByDazlIdResponses, GetUserInfoByDazlIdData, GetUserInfoByDazlIdErrors, GetUserInfoByDazlIdResponses, GetUserInfoData, GetUserInfoErrors, GetUserInfoResponses, GetUserProjectsData, GetUserProjectsErrors, GetUserProjectsResponses, GetUserTemplatesData, GetUserTemplatesErrors, GetUserTemplatesResponses, ListFilesData, ListFilesErrors, ListFilesResponses, ScrapePageContentData, ScrapePageContentErrors, ScrapePageContentResponses, SearchWebData, SearchWebErrors, SearchWebResponses, TakeScreenshotData, TakeScreenshotErrors, TakeScreenshotResponses, UpdateByDazlIdData, UpdateByDazlIdErrors, UpdateByDazlIdResponses, UpdateEnvVarsData, UpdateEnvVarsErrors, UpdateEnvVarsResponses, UpdateProjectData, UpdateProjectErrors, UpdateProjectResponses, UpdateTemplateData, UpdateTemplateErrors, UpdateTemplateResponses, UpdateUserData, UpdateUserErrors, UpdateUserResponses, UpdateUserSubscriptionData, UpdateUserSubscriptionErrors, UpdateUserSubscriptionResponses, UpsertDeployInDbData, UpsertDeployInDbErrors, UpsertDeployInDbResponses } from './types.gen.ts';
|
|
6
6
|
|
|
7
7
|
export type Options<TData extends TDataShape = TDataShape, ThrowOnError extends boolean = boolean> = Options2<TData, ThrowOnError> & {
|
|
8
8
|
/**
|
|
@@ -164,6 +164,25 @@ export class Publish {
|
|
|
164
164
|
}
|
|
165
165
|
});
|
|
166
166
|
}
|
|
167
|
+
|
|
168
|
+
public static deleteCustomDomain<ThrowOnError extends boolean = false>(options: Options<DeleteCustomDomainData, ThrowOnError>) {
|
|
169
|
+
return (options.client ?? client).delete<DeleteCustomDomainResponses, DeleteCustomDomainErrors, ThrowOnError>({ url: '/publish/custom-domain', ...options });
|
|
170
|
+
}
|
|
171
|
+
|
|
172
|
+
public static getCustomDomain<ThrowOnError extends boolean = false>(options: Options<GetCustomDomainData, ThrowOnError>) {
|
|
173
|
+
return (options.client ?? client).get<GetCustomDomainResponses, GetCustomDomainErrors, ThrowOnError>({ url: '/publish/custom-domain', ...options });
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
public static addCustomDomain<ThrowOnError extends boolean = false>(options: Options<AddCustomDomainData, ThrowOnError>) {
|
|
177
|
+
return (options.client ?? client).post<AddCustomDomainResponses, AddCustomDomainErrors, ThrowOnError>({
|
|
178
|
+
url: '/publish/custom-domain',
|
|
179
|
+
...options,
|
|
180
|
+
headers: {
|
|
181
|
+
'Content-Type': 'application/json',
|
|
182
|
+
...options.headers
|
|
183
|
+
}
|
|
184
|
+
});
|
|
185
|
+
}
|
|
167
186
|
}
|
|
168
187
|
|
|
169
188
|
export class Project {
|
|
@@ -225,9 +244,42 @@ export class Template {
|
|
|
225
244
|
return (options.client ?? client).get<GetUserTemplatesResponses, GetUserTemplatesErrors, ThrowOnError>({ url: '/template/user/{dazlId}', ...options });
|
|
226
245
|
}
|
|
227
246
|
|
|
247
|
+
public static deleteTemplate<ThrowOnError extends boolean = false>(options: Options<DeleteTemplateData, ThrowOnError>) {
|
|
248
|
+
return (options.client ?? client).delete<DeleteTemplateResponses, DeleteTemplateErrors, ThrowOnError>({
|
|
249
|
+
url: '/template/{templateId}',
|
|
250
|
+
...options,
|
|
251
|
+
headers: {
|
|
252
|
+
'Content-Type': 'application/json',
|
|
253
|
+
...options.headers
|
|
254
|
+
}
|
|
255
|
+
});
|
|
256
|
+
}
|
|
257
|
+
|
|
228
258
|
public static getTemplate<ThrowOnError extends boolean = false>(options: Options<GetTemplateData, ThrowOnError>) {
|
|
229
259
|
return (options.client ?? client).get<GetTemplateResponses, GetTemplateErrors, ThrowOnError>({ url: '/template/{templateId}', ...options });
|
|
230
260
|
}
|
|
261
|
+
|
|
262
|
+
public static updateTemplate<ThrowOnError extends boolean = false>(options: Options<UpdateTemplateData, ThrowOnError>) {
|
|
263
|
+
return (options.client ?? client).patch<UpdateTemplateResponses, UpdateTemplateErrors, ThrowOnError>({
|
|
264
|
+
url: '/template/{templateId}',
|
|
265
|
+
...options,
|
|
266
|
+
headers: {
|
|
267
|
+
'Content-Type': 'application/json',
|
|
268
|
+
...options.headers
|
|
269
|
+
}
|
|
270
|
+
});
|
|
271
|
+
}
|
|
272
|
+
|
|
273
|
+
public static createTemplate<ThrowOnError extends boolean = false>(options: Options<CreateTemplateData, ThrowOnError>) {
|
|
274
|
+
return (options.client ?? client).post<CreateTemplateResponses, CreateTemplateErrors, ThrowOnError>({
|
|
275
|
+
url: '/template/create',
|
|
276
|
+
...options,
|
|
277
|
+
headers: {
|
|
278
|
+
'Content-Type': 'application/json',
|
|
279
|
+
...options.headers
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
}
|
|
231
283
|
}
|
|
232
284
|
|
|
233
285
|
export class Media {
|
package/src/types.gen.ts
CHANGED
|
@@ -105,7 +105,6 @@ export type TemplateRaw = {
|
|
|
105
105
|
originProjectId: string;
|
|
106
106
|
screenshot: string | null;
|
|
107
107
|
createdAt: string;
|
|
108
|
-
updatedAt: string;
|
|
109
108
|
description: string | null;
|
|
110
109
|
lastUsedAt: string | null;
|
|
111
110
|
preserveChatHistory: boolean;
|
|
@@ -122,6 +121,10 @@ export type UploadConfiguration = {
|
|
|
122
121
|
* Optional token for authenticated uploads
|
|
123
122
|
*/
|
|
124
123
|
uploadToken?: string;
|
|
124
|
+
/**
|
|
125
|
+
* The computed storage path for the file (e.g., /projects/{projectId}/attachments/... or /uploads/...)
|
|
126
|
+
*/
|
|
127
|
+
path: string;
|
|
125
128
|
};
|
|
126
129
|
|
|
127
130
|
export type MediaFileList = {
|
|
@@ -1413,6 +1416,167 @@ export type UpdateEnvVarsResponses = {
|
|
|
1413
1416
|
|
|
1414
1417
|
export type UpdateEnvVarsResponse = UpdateEnvVarsResponses[keyof UpdateEnvVarsResponses];
|
|
1415
1418
|
|
|
1419
|
+
export type DeleteCustomDomainData = {
|
|
1420
|
+
body?: never;
|
|
1421
|
+
path?: never;
|
|
1422
|
+
query: {
|
|
1423
|
+
projectId: string;
|
|
1424
|
+
dazlId: string;
|
|
1425
|
+
domain: string;
|
|
1426
|
+
};
|
|
1427
|
+
url: '/publish/custom-domain';
|
|
1428
|
+
};
|
|
1429
|
+
|
|
1430
|
+
export type DeleteCustomDomainErrors = {
|
|
1431
|
+
/**
|
|
1432
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1433
|
+
*/
|
|
1434
|
+
400: {
|
|
1435
|
+
message: string;
|
|
1436
|
+
issues?: string;
|
|
1437
|
+
};
|
|
1438
|
+
/**
|
|
1439
|
+
* Unauthorized
|
|
1440
|
+
*/
|
|
1441
|
+
401: ErrorResponse;
|
|
1442
|
+
/**
|
|
1443
|
+
* Forbidden
|
|
1444
|
+
*/
|
|
1445
|
+
403: ErrorResponse;
|
|
1446
|
+
/**
|
|
1447
|
+
* Not Found
|
|
1448
|
+
*/
|
|
1449
|
+
404: ErrorResponse;
|
|
1450
|
+
/**
|
|
1451
|
+
* Internal server error
|
|
1452
|
+
*/
|
|
1453
|
+
500: ErrorResponse;
|
|
1454
|
+
/**
|
|
1455
|
+
* Service Unavailable
|
|
1456
|
+
*/
|
|
1457
|
+
503: ErrorResponse;
|
|
1458
|
+
};
|
|
1459
|
+
|
|
1460
|
+
export type DeleteCustomDomainError = DeleteCustomDomainErrors[keyof DeleteCustomDomainErrors];
|
|
1461
|
+
|
|
1462
|
+
export type DeleteCustomDomainResponses = {
|
|
1463
|
+
/**
|
|
1464
|
+
* Removes a custom domain from the project
|
|
1465
|
+
*/
|
|
1466
|
+
200: {
|
|
1467
|
+
success: boolean;
|
|
1468
|
+
};
|
|
1469
|
+
};
|
|
1470
|
+
|
|
1471
|
+
export type DeleteCustomDomainResponse = DeleteCustomDomainResponses[keyof DeleteCustomDomainResponses];
|
|
1472
|
+
|
|
1473
|
+
export type GetCustomDomainData = {
|
|
1474
|
+
body?: never;
|
|
1475
|
+
path?: never;
|
|
1476
|
+
query: {
|
|
1477
|
+
projectId: string;
|
|
1478
|
+
dazlId: string;
|
|
1479
|
+
};
|
|
1480
|
+
url: '/publish/custom-domain';
|
|
1481
|
+
};
|
|
1482
|
+
|
|
1483
|
+
export type GetCustomDomainErrors = {
|
|
1484
|
+
/**
|
|
1485
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1486
|
+
*/
|
|
1487
|
+
400: {
|
|
1488
|
+
message: string;
|
|
1489
|
+
issues?: string;
|
|
1490
|
+
};
|
|
1491
|
+
/**
|
|
1492
|
+
* Unauthorized
|
|
1493
|
+
*/
|
|
1494
|
+
401: ErrorResponse;
|
|
1495
|
+
/**
|
|
1496
|
+
* Forbidden
|
|
1497
|
+
*/
|
|
1498
|
+
403: ErrorResponse;
|
|
1499
|
+
/**
|
|
1500
|
+
* Not Found
|
|
1501
|
+
*/
|
|
1502
|
+
404: ErrorResponse;
|
|
1503
|
+
/**
|
|
1504
|
+
* Internal server error
|
|
1505
|
+
*/
|
|
1506
|
+
500: ErrorResponse;
|
|
1507
|
+
/**
|
|
1508
|
+
* Service Unavailable
|
|
1509
|
+
*/
|
|
1510
|
+
503: ErrorResponse;
|
|
1511
|
+
};
|
|
1512
|
+
|
|
1513
|
+
export type GetCustomDomainError = GetCustomDomainErrors[keyof GetCustomDomainErrors];
|
|
1514
|
+
|
|
1515
|
+
export type GetCustomDomainResponses = {
|
|
1516
|
+
/**
|
|
1517
|
+
* Returns the custom domain for the given project
|
|
1518
|
+
*/
|
|
1519
|
+
200: {
|
|
1520
|
+
domain: string | null;
|
|
1521
|
+
};
|
|
1522
|
+
};
|
|
1523
|
+
|
|
1524
|
+
export type GetCustomDomainResponse = GetCustomDomainResponses[keyof GetCustomDomainResponses];
|
|
1525
|
+
|
|
1526
|
+
export type AddCustomDomainData = {
|
|
1527
|
+
body: {
|
|
1528
|
+
projectId: string;
|
|
1529
|
+
dazlId: string;
|
|
1530
|
+
domain: string;
|
|
1531
|
+
};
|
|
1532
|
+
path?: never;
|
|
1533
|
+
query?: never;
|
|
1534
|
+
url: '/publish/custom-domain';
|
|
1535
|
+
};
|
|
1536
|
+
|
|
1537
|
+
export type AddCustomDomainErrors = {
|
|
1538
|
+
/**
|
|
1539
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
1540
|
+
*/
|
|
1541
|
+
400: {
|
|
1542
|
+
message: string;
|
|
1543
|
+
issues?: string;
|
|
1544
|
+
};
|
|
1545
|
+
/**
|
|
1546
|
+
* Unauthorized
|
|
1547
|
+
*/
|
|
1548
|
+
401: ErrorResponse;
|
|
1549
|
+
/**
|
|
1550
|
+
* Forbidden
|
|
1551
|
+
*/
|
|
1552
|
+
403: ErrorResponse;
|
|
1553
|
+
/**
|
|
1554
|
+
* Not Found
|
|
1555
|
+
*/
|
|
1556
|
+
404: ErrorResponse;
|
|
1557
|
+
/**
|
|
1558
|
+
* Internal server error
|
|
1559
|
+
*/
|
|
1560
|
+
500: ErrorResponse;
|
|
1561
|
+
/**
|
|
1562
|
+
* Service Unavailable
|
|
1563
|
+
*/
|
|
1564
|
+
503: ErrorResponse;
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1567
|
+
export type AddCustomDomainError = AddCustomDomainErrors[keyof AddCustomDomainErrors];
|
|
1568
|
+
|
|
1569
|
+
export type AddCustomDomainResponses = {
|
|
1570
|
+
/**
|
|
1571
|
+
* Adds a custom domain to the project
|
|
1572
|
+
*/
|
|
1573
|
+
200: {
|
|
1574
|
+
success: boolean;
|
|
1575
|
+
};
|
|
1576
|
+
};
|
|
1577
|
+
|
|
1578
|
+
export type AddCustomDomainResponse = AddCustomDomainResponses[keyof AddCustomDomainResponses];
|
|
1579
|
+
|
|
1416
1580
|
export type DuplicateProjectData = {
|
|
1417
1581
|
body: {
|
|
1418
1582
|
ownerDazlId: string;
|
|
@@ -1816,6 +1980,63 @@ export type GetUserTemplatesResponses = {
|
|
|
1816
1980
|
|
|
1817
1981
|
export type GetUserTemplatesResponse = GetUserTemplatesResponses[keyof GetUserTemplatesResponses];
|
|
1818
1982
|
|
|
1983
|
+
export type DeleteTemplateData = {
|
|
1984
|
+
/**
|
|
1985
|
+
* Owner dazlId of the user attempting to delete the template
|
|
1986
|
+
*/
|
|
1987
|
+
body?: {
|
|
1988
|
+
ownerDazlId: string;
|
|
1989
|
+
};
|
|
1990
|
+
path: {
|
|
1991
|
+
templateId: string;
|
|
1992
|
+
};
|
|
1993
|
+
query?: never;
|
|
1994
|
+
url: '/template/{templateId}';
|
|
1995
|
+
};
|
|
1996
|
+
|
|
1997
|
+
export type DeleteTemplateErrors = {
|
|
1998
|
+
/**
|
|
1999
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
2000
|
+
*/
|
|
2001
|
+
400: {
|
|
2002
|
+
message: string;
|
|
2003
|
+
issues?: string;
|
|
2004
|
+
};
|
|
2005
|
+
/**
|
|
2006
|
+
* Unauthorized
|
|
2007
|
+
*/
|
|
2008
|
+
401: ErrorResponse;
|
|
2009
|
+
/**
|
|
2010
|
+
* Forbidden
|
|
2011
|
+
*/
|
|
2012
|
+
403: ErrorResponse;
|
|
2013
|
+
/**
|
|
2014
|
+
* Not Found
|
|
2015
|
+
*/
|
|
2016
|
+
404: ErrorResponse;
|
|
2017
|
+
/**
|
|
2018
|
+
* Internal server error
|
|
2019
|
+
*/
|
|
2020
|
+
500: ErrorResponse;
|
|
2021
|
+
/**
|
|
2022
|
+
* Service Unavailable
|
|
2023
|
+
*/
|
|
2024
|
+
503: ErrorResponse;
|
|
2025
|
+
};
|
|
2026
|
+
|
|
2027
|
+
export type DeleteTemplateError = DeleteTemplateErrors[keyof DeleteTemplateErrors];
|
|
2028
|
+
|
|
2029
|
+
export type DeleteTemplateResponses = {
|
|
2030
|
+
/**
|
|
2031
|
+
* Deletes the template with the specified ID.
|
|
2032
|
+
*/
|
|
2033
|
+
200: {
|
|
2034
|
+
templateId: string;
|
|
2035
|
+
};
|
|
2036
|
+
};
|
|
2037
|
+
|
|
2038
|
+
export type DeleteTemplateResponse = DeleteTemplateResponses[keyof DeleteTemplateResponses];
|
|
2039
|
+
|
|
1819
2040
|
export type GetTemplateData = {
|
|
1820
2041
|
body?: never;
|
|
1821
2042
|
path: {
|
|
@@ -1868,6 +2089,122 @@ export type GetTemplateResponses = {
|
|
|
1868
2089
|
|
|
1869
2090
|
export type GetTemplateResponse = GetTemplateResponses[keyof GetTemplateResponses];
|
|
1870
2091
|
|
|
2092
|
+
export type UpdateTemplateData = {
|
|
2093
|
+
body: {
|
|
2094
|
+
description?: string | null;
|
|
2095
|
+
lastUsedAt?: string | null;
|
|
2096
|
+
name?: string;
|
|
2097
|
+
usageCount?: number;
|
|
2098
|
+
ownerDazlId?: string;
|
|
2099
|
+
};
|
|
2100
|
+
path: {
|
|
2101
|
+
templateId: string;
|
|
2102
|
+
};
|
|
2103
|
+
query?: never;
|
|
2104
|
+
url: '/template/{templateId}';
|
|
2105
|
+
};
|
|
2106
|
+
|
|
2107
|
+
export type UpdateTemplateErrors = {
|
|
2108
|
+
/**
|
|
2109
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
2110
|
+
*/
|
|
2111
|
+
400: {
|
|
2112
|
+
message: string;
|
|
2113
|
+
issues?: string;
|
|
2114
|
+
};
|
|
2115
|
+
/**
|
|
2116
|
+
* Unauthorized
|
|
2117
|
+
*/
|
|
2118
|
+
401: ErrorResponse;
|
|
2119
|
+
/**
|
|
2120
|
+
* Forbidden
|
|
2121
|
+
*/
|
|
2122
|
+
403: ErrorResponse;
|
|
2123
|
+
/**
|
|
2124
|
+
* Not Found
|
|
2125
|
+
*/
|
|
2126
|
+
404: ErrorResponse;
|
|
2127
|
+
/**
|
|
2128
|
+
* Internal server error
|
|
2129
|
+
*/
|
|
2130
|
+
500: ErrorResponse;
|
|
2131
|
+
/**
|
|
2132
|
+
* Service Unavailable
|
|
2133
|
+
*/
|
|
2134
|
+
503: ErrorResponse;
|
|
2135
|
+
};
|
|
2136
|
+
|
|
2137
|
+
export type UpdateTemplateError = UpdateTemplateErrors[keyof UpdateTemplateErrors];
|
|
2138
|
+
|
|
2139
|
+
export type UpdateTemplateResponses = {
|
|
2140
|
+
/**
|
|
2141
|
+
* Updates the template with the specified ID.
|
|
2142
|
+
*/
|
|
2143
|
+
200: {
|
|
2144
|
+
template: TemplateRaw;
|
|
2145
|
+
};
|
|
2146
|
+
};
|
|
2147
|
+
|
|
2148
|
+
export type UpdateTemplateResponse = UpdateTemplateResponses[keyof UpdateTemplateResponses];
|
|
2149
|
+
|
|
2150
|
+
export type CreateTemplateData = {
|
|
2151
|
+
body: {
|
|
2152
|
+
originProjectId: string;
|
|
2153
|
+
userDazlId: string;
|
|
2154
|
+
} & {
|
|
2155
|
+
preserveChatHistory: boolean;
|
|
2156
|
+
preserveEnvFile: boolean;
|
|
2157
|
+
name: string;
|
|
2158
|
+
description?: string;
|
|
2159
|
+
};
|
|
2160
|
+
path?: never;
|
|
2161
|
+
query?: never;
|
|
2162
|
+
url: '/template/create';
|
|
2163
|
+
};
|
|
2164
|
+
|
|
2165
|
+
export type CreateTemplateErrors = {
|
|
2166
|
+
/**
|
|
2167
|
+
* Bad request - Invalid parameters or malformed JSON
|
|
2168
|
+
*/
|
|
2169
|
+
400: {
|
|
2170
|
+
message: string;
|
|
2171
|
+
issues?: string;
|
|
2172
|
+
};
|
|
2173
|
+
/**
|
|
2174
|
+
* Unauthorized
|
|
2175
|
+
*/
|
|
2176
|
+
401: ErrorResponse;
|
|
2177
|
+
/**
|
|
2178
|
+
* Forbidden
|
|
2179
|
+
*/
|
|
2180
|
+
403: ErrorResponse;
|
|
2181
|
+
/**
|
|
2182
|
+
* Not Found
|
|
2183
|
+
*/
|
|
2184
|
+
404: ErrorResponse;
|
|
2185
|
+
/**
|
|
2186
|
+
* Internal server error
|
|
2187
|
+
*/
|
|
2188
|
+
500: ErrorResponse;
|
|
2189
|
+
/**
|
|
2190
|
+
* Service Unavailable
|
|
2191
|
+
*/
|
|
2192
|
+
503: ErrorResponse;
|
|
2193
|
+
};
|
|
2194
|
+
|
|
2195
|
+
export type CreateTemplateError = CreateTemplateErrors[keyof CreateTemplateErrors];
|
|
2196
|
+
|
|
2197
|
+
export type CreateTemplateResponses = {
|
|
2198
|
+
/**
|
|
2199
|
+
* Creates a new template from the specified project for the specified user.
|
|
2200
|
+
*/
|
|
2201
|
+
200: {
|
|
2202
|
+
template: TemplateRaw;
|
|
2203
|
+
};
|
|
2204
|
+
};
|
|
2205
|
+
|
|
2206
|
+
export type CreateTemplateResponse = CreateTemplateResponses[keyof CreateTemplateResponses];
|
|
2207
|
+
|
|
1871
2208
|
export type GetUploadConfigurationData = {
|
|
1872
2209
|
body: {
|
|
1873
2210
|
/**
|
|
@@ -1875,9 +2212,9 @@ export type GetUploadConfigurationData = {
|
|
|
1875
2212
|
*/
|
|
1876
2213
|
path: string;
|
|
1877
2214
|
/**
|
|
1878
|
-
* Project identifier
|
|
2215
|
+
* Project identifier (optional for account-level uploads)
|
|
1879
2216
|
*/
|
|
1880
|
-
projectId
|
|
2217
|
+
projectId?: string;
|
|
1881
2218
|
/**
|
|
1882
2219
|
* MIME type of the file to upload
|
|
1883
2220
|
*/
|
|
@@ -2239,6 +2576,10 @@ export type TakeScreenshotData = {
|
|
|
2239
2576
|
* Viewport height in pixels
|
|
2240
2577
|
*/
|
|
2241
2578
|
height?: number;
|
|
2579
|
+
/**
|
|
2580
|
+
* Capture the full scrollable page
|
|
2581
|
+
*/
|
|
2582
|
+
fullPage?: boolean;
|
|
2242
2583
|
/**
|
|
2243
2584
|
* Screenshot image format
|
|
2244
2585
|
*/
|
|
@@ -2329,11 +2670,15 @@ export type TakeScreenshotResponses = {
|
|
|
2329
2670
|
/**
|
|
2330
2671
|
* Viewport width used
|
|
2331
2672
|
*/
|
|
2332
|
-
width
|
|
2673
|
+
width?: number;
|
|
2333
2674
|
/**
|
|
2334
2675
|
* Viewport height used
|
|
2335
2676
|
*/
|
|
2336
|
-
height
|
|
2677
|
+
height?: number;
|
|
2678
|
+
/**
|
|
2679
|
+
* Whether full page was captured
|
|
2680
|
+
*/
|
|
2681
|
+
fullPage?: boolean;
|
|
2337
2682
|
/**
|
|
2338
2683
|
* Image format
|
|
2339
2684
|
*/
|