@dazl/internal-api-client 1.1.2 → 1.2.0

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.
@@ -218,7 +218,7 @@ export type GetBalanceByDazlIdErrors = {
218
218
  */
219
219
  400: {
220
220
  message: string;
221
- issues: string;
221
+ issues?: string;
222
222
  };
223
223
  /**
224
224
  * Unauthorized
@@ -226,6 +226,18 @@ export type GetBalanceByDazlIdErrors = {
226
226
  401: {
227
227
  message: string;
228
228
  };
229
+ /**
230
+ * Forbidden
231
+ */
232
+ 403: {
233
+ message: string;
234
+ };
235
+ /**
236
+ * Not Found
237
+ */
238
+ 404: {
239
+ message: string;
240
+ };
229
241
  /**
230
242
  * Internal server error
231
243
  */
@@ -260,7 +272,7 @@ export type GetHasSufficientCreditsByDazlIdErrors = {
260
272
  */
261
273
  400: {
262
274
  message: string;
263
- issues: string;
275
+ issues?: string;
264
276
  };
265
277
  /**
266
278
  * Unauthorized
@@ -268,6 +280,18 @@ export type GetHasSufficientCreditsByDazlIdErrors = {
268
280
  401: {
269
281
  message: string;
270
282
  };
283
+ /**
284
+ * Forbidden
285
+ */
286
+ 403: {
287
+ message: string;
288
+ };
289
+ /**
290
+ * Not Found
291
+ */
292
+ 404: {
293
+ message: string;
294
+ };
271
295
  /**
272
296
  * Internal server error
273
297
  */
@@ -297,7 +321,7 @@ export type GetAllProductsErrors = {
297
321
  */
298
322
  400: {
299
323
  message: string;
300
- issues: string;
324
+ issues?: string;
301
325
  };
302
326
  /**
303
327
  * Unauthorized
@@ -305,6 +329,18 @@ export type GetAllProductsErrors = {
305
329
  401: {
306
330
  message: string;
307
331
  };
332
+ /**
333
+ * Forbidden
334
+ */
335
+ 403: {
336
+ message: string;
337
+ };
338
+ /**
339
+ * Not Found
340
+ */
341
+ 404: {
342
+ message: string;
343
+ };
308
344
  /**
309
345
  * Internal server error
310
346
  */
@@ -336,7 +372,7 @@ export type GetPriceByPriceIdErrors = {
336
372
  */
337
373
  400: {
338
374
  message: string;
339
- issues: string;
375
+ issues?: string;
340
376
  };
341
377
  /**
342
378
  * Unauthorized
@@ -344,6 +380,18 @@ export type GetPriceByPriceIdErrors = {
344
380
  401: {
345
381
  message: string;
346
382
  };
383
+ /**
384
+ * Forbidden
385
+ */
386
+ 403: {
387
+ message: string;
388
+ };
389
+ /**
390
+ * Not Found
391
+ */
392
+ 404: {
393
+ message: string;
394
+ };
347
395
  /**
348
396
  * Internal server error
349
397
  */
@@ -371,7 +419,7 @@ export type GetMaxCreditsForDefaultFreeErrors = {
371
419
  */
372
420
  400: {
373
421
  message: string;
374
- issues: string;
422
+ issues?: string;
375
423
  };
376
424
  /**
377
425
  * Unauthorized
@@ -379,6 +427,18 @@ export type GetMaxCreditsForDefaultFreeErrors = {
379
427
  401: {
380
428
  message: string;
381
429
  };
430
+ /**
431
+ * Forbidden
432
+ */
433
+ 403: {
434
+ message: string;
435
+ };
436
+ /**
437
+ * Not Found
438
+ */
439
+ 404: {
440
+ message: string;
441
+ };
382
442
  /**
383
443
  * Internal server error
384
444
  */
@@ -410,7 +470,7 @@ export type GetCustomerInfoByDazlIdErrors = {
410
470
  */
411
471
  400: {
412
472
  message: string;
413
- issues: string;
473
+ issues?: string;
414
474
  };
415
475
  /**
416
476
  * Unauthorized
@@ -418,6 +478,18 @@ export type GetCustomerInfoByDazlIdErrors = {
418
478
  401: {
419
479
  message: string;
420
480
  };
481
+ /**
482
+ * Forbidden
483
+ */
484
+ 403: {
485
+ message: string;
486
+ };
487
+ /**
488
+ * Not Found
489
+ */
490
+ 404: {
491
+ message: string;
492
+ };
421
493
  /**
422
494
  * Internal server error
423
495
  */
@@ -450,7 +522,7 @@ export type UpdateUserSubscriptionErrors = {
450
522
  */
451
523
  400: {
452
524
  message: string;
453
- issues: string;
525
+ issues?: string;
454
526
  };
455
527
  /**
456
528
  * Unauthorized
@@ -458,6 +530,18 @@ export type UpdateUserSubscriptionErrors = {
458
530
  401: {
459
531
  message: string;
460
532
  };
533
+ /**
534
+ * Forbidden
535
+ */
536
+ 403: {
537
+ message: string;
538
+ };
539
+ /**
540
+ * Not Found
541
+ */
542
+ 404: {
543
+ message: string;
544
+ };
461
545
  /**
462
546
  * Internal server error
463
547
  */
@@ -495,7 +579,7 @@ export type CancelScheduledUpdateByDazlIdErrors = {
495
579
  */
496
580
  400: {
497
581
  message: string;
498
- issues: string;
582
+ issues?: string;
499
583
  };
500
584
  /**
501
585
  * Unauthorized
@@ -503,6 +587,18 @@ export type CancelScheduledUpdateByDazlIdErrors = {
503
587
  401: {
504
588
  message: string;
505
589
  };
590
+ /**
591
+ * Forbidden
592
+ */
593
+ 403: {
594
+ message: string;
595
+ };
596
+ /**
597
+ * Not Found
598
+ */
599
+ 404: {
600
+ message: string;
601
+ };
506
602
  /**
507
603
  * Internal server error
508
604
  */
@@ -535,7 +631,7 @@ export type CreateCustomerPortalSessionErrors = {
535
631
  */
536
632
  400: {
537
633
  message: string;
538
- issues: string;
634
+ issues?: string;
539
635
  };
540
636
  /**
541
637
  * Unauthorized
@@ -543,6 +639,18 @@ export type CreateCustomerPortalSessionErrors = {
543
639
  401: {
544
640
  message: string;
545
641
  };
642
+ /**
643
+ * Forbidden
644
+ */
645
+ 403: {
646
+ message: string;
647
+ };
648
+ /**
649
+ * Not Found
650
+ */
651
+ 404: {
652
+ message: string;
653
+ };
546
654
  /**
547
655
  * Internal server error
548
656
  */
@@ -581,7 +689,7 @@ export type CreateCustomerWithDefaultSubscriptionErrors = {
581
689
  */
582
690
  400: {
583
691
  message: string;
584
- issues: string;
692
+ issues?: string;
585
693
  };
586
694
  /**
587
695
  * Unauthorized
@@ -589,6 +697,18 @@ export type CreateCustomerWithDefaultSubscriptionErrors = {
589
697
  401: {
590
698
  message: string;
591
699
  };
700
+ /**
701
+ * Forbidden
702
+ */
703
+ 403: {
704
+ message: string;
705
+ };
706
+ /**
707
+ * Not Found
708
+ */
709
+ 404: {
710
+ message: string;
711
+ };
592
712
  /**
593
713
  * Internal server error
594
714
  */
@@ -621,7 +741,7 @@ export type GetUserInfoByDazlIdErrors = {
621
741
  */
622
742
  400: {
623
743
  message: string;
624
- issues: string;
744
+ issues?: string;
625
745
  };
626
746
  /**
627
747
  * Unauthorized
@@ -629,6 +749,18 @@ export type GetUserInfoByDazlIdErrors = {
629
749
  401: {
630
750
  message: string;
631
751
  };
752
+ /**
753
+ * Forbidden
754
+ */
755
+ 403: {
756
+ message: string;
757
+ };
758
+ /**
759
+ * Not Found
760
+ */
761
+ 404: {
762
+ message: string;
763
+ };
632
764
  /**
633
765
  * Internal server error
634
766
  */
@@ -686,7 +818,7 @@ export type GetUploadConfigurationErrors = {
686
818
  */
687
819
  400: {
688
820
  message: string;
689
- issues: string;
821
+ issues?: string;
690
822
  };
691
823
  /**
692
824
  * Unauthorized
@@ -762,7 +894,7 @@ export type ListFilesErrors = {
762
894
  */
763
895
  400: {
764
896
  message: string;
765
- issues: string;
897
+ issues?: string;
766
898
  };
767
899
  /**
768
900
  * Unauthorized
@@ -840,7 +972,7 @@ export type CreateMediaErrors = {
840
972
  */
841
973
  400: {
842
974
  message: string;
843
- issues: string;
975
+ issues?: string;
844
976
  };
845
977
  /**
846
978
  * Unauthorized
@@ -886,7 +1018,7 @@ export type GetAccountScreenshotsErrors = {
886
1018
  */
887
1019
  400: {
888
1020
  message: string;
889
- issues: string;
1021
+ issues?: string;
890
1022
  };
891
1023
  /**
892
1024
  * Unauthorized
@@ -938,7 +1070,7 @@ export type GetProjectScreenshotsErrors = {
938
1070
  */
939
1071
  400: {
940
1072
  message: string;
941
- issues: string;
1073
+ issues?: string;
942
1074
  };
943
1075
  /**
944
1076
  * Unauthorized
@@ -973,4 +1105,363 @@ export type GetProjectScreenshotsResponses = {
973
1105
  200: Array<Screenshot>;
974
1106
  };
975
1107
  export type GetProjectScreenshotsResponse = GetProjectScreenshotsResponses[keyof GetProjectScreenshotsResponses];
1108
+ export type TakeScreenshotData = {
1109
+ body: {
1110
+ /**
1111
+ * URL of the page to capture
1112
+ */
1113
+ url: string;
1114
+ /**
1115
+ * Viewport width in pixels
1116
+ */
1117
+ width?: number;
1118
+ /**
1119
+ * Viewport height in pixels
1120
+ */
1121
+ height?: number;
1122
+ /**
1123
+ * Screenshot image format
1124
+ */
1125
+ imageType?: 'png' | 'jpeg';
1126
+ /**
1127
+ * Project identifier
1128
+ */
1129
+ projectId?: string;
1130
+ /**
1131
+ * Custom storage path for the screenshot
1132
+ */
1133
+ storagePath?: string;
1134
+ /**
1135
+ * Git commit hash to associate with the screenshot
1136
+ */
1137
+ commitHash?: string;
1138
+ /**
1139
+ * User's Dazl ID (required for internal API calls)
1140
+ */
1141
+ dazlId?: string;
1142
+ };
1143
+ path?: never;
1144
+ query?: never;
1145
+ url: '/capture/screenshot';
1146
+ };
1147
+ export type TakeScreenshotErrors = {
1148
+ /**
1149
+ * Bad request - Invalid parameters or malformed JSON
1150
+ */
1151
+ 400: {
1152
+ message: string;
1153
+ issues?: string;
1154
+ };
1155
+ /**
1156
+ * Unauthorized
1157
+ */
1158
+ 401: {
1159
+ message: string;
1160
+ };
1161
+ /**
1162
+ * Forbidden - Permission denied
1163
+ */
1164
+ 403: {
1165
+ message: string;
1166
+ };
1167
+ /**
1168
+ * Not found
1169
+ */
1170
+ 404: {
1171
+ message: string;
1172
+ };
1173
+ /**
1174
+ * Internal server error
1175
+ */
1176
+ 500: {
1177
+ message: string;
1178
+ };
1179
+ };
1180
+ export type TakeScreenshotError = TakeScreenshotErrors[keyof TakeScreenshotErrors];
1181
+ export type TakeScreenshotResponses = {
1182
+ /**
1183
+ * Screenshot captured successfully
1184
+ */
1185
+ 200: {
1186
+ /**
1187
+ * Whether the operation succeeded
1188
+ */
1189
+ success: boolean;
1190
+ /**
1191
+ * Unique identifier for the screenshot
1192
+ */
1193
+ screenshotId: string;
1194
+ /**
1195
+ * Public URL of the screenshot
1196
+ */
1197
+ imageUrl: string;
1198
+ /**
1199
+ * Storage provider used
1200
+ */
1201
+ storageProvider: string;
1202
+ /**
1203
+ * Screenshot metadata
1204
+ */
1205
+ metadata: {
1206
+ /**
1207
+ * Original URL that was captured
1208
+ */
1209
+ sourceUrl: string;
1210
+ /**
1211
+ * Viewport width used
1212
+ */
1213
+ width: number;
1214
+ /**
1215
+ * Viewport height used
1216
+ */
1217
+ height: number;
1218
+ /**
1219
+ * Image format
1220
+ */
1221
+ imageType: 'png' | 'jpeg';
1222
+ /**
1223
+ * ISO timestamp of capture
1224
+ */
1225
+ timestamp: string;
1226
+ /**
1227
+ * Associated project ID
1228
+ */
1229
+ projectId: string;
1230
+ /**
1231
+ * Storage key/path
1232
+ */
1233
+ storageKey: string;
1234
+ };
1235
+ };
1236
+ };
1237
+ export type TakeScreenshotResponse = TakeScreenshotResponses[keyof TakeScreenshotResponses];
1238
+ export type FetchPageContentData = {
1239
+ body: {
1240
+ /**
1241
+ * URL of the page to fetch
1242
+ */
1243
+ url: string;
1244
+ /**
1245
+ * Viewport width in pixels
1246
+ */
1247
+ width?: number;
1248
+ /**
1249
+ * Viewport height in pixels
1250
+ */
1251
+ height?: number;
1252
+ /**
1253
+ * Wait condition before capturing content
1254
+ */
1255
+ waitUntil?: 'load' | 'domcontentloaded' | 'networkidle' | 'commit';
1256
+ /**
1257
+ * User's Dazl ID (optional, for user identification)
1258
+ */
1259
+ dazlId?: string;
1260
+ };
1261
+ path?: never;
1262
+ query?: never;
1263
+ url: '/capture/page-content';
1264
+ };
1265
+ export type FetchPageContentErrors = {
1266
+ /**
1267
+ * Bad request - Invalid parameters or malformed JSON
1268
+ */
1269
+ 400: {
1270
+ message: string;
1271
+ issues?: string;
1272
+ };
1273
+ /**
1274
+ * Unauthorized
1275
+ */
1276
+ 401: {
1277
+ message: string;
1278
+ };
1279
+ /**
1280
+ * Forbidden - Permission denied
1281
+ */
1282
+ 403: {
1283
+ message: string;
1284
+ };
1285
+ /**
1286
+ * Not found
1287
+ */
1288
+ 404: {
1289
+ message: string;
1290
+ };
1291
+ /**
1292
+ * Internal server error
1293
+ */
1294
+ 500: {
1295
+ message: string;
1296
+ };
1297
+ };
1298
+ export type FetchPageContentError = FetchPageContentErrors[keyof FetchPageContentErrors];
1299
+ export type FetchPageContentResponses = {
1300
+ /**
1301
+ * Page content fetched successfully
1302
+ */
1303
+ 200: {
1304
+ /**
1305
+ * Whether the operation succeeded
1306
+ */
1307
+ success: boolean;
1308
+ /**
1309
+ * Page HTML content
1310
+ */
1311
+ html: string;
1312
+ /**
1313
+ * Captured CSS styles
1314
+ */
1315
+ styles: Array<{
1316
+ /**
1317
+ * URL of the CSS file
1318
+ */
1319
+ url: string;
1320
+ /**
1321
+ * CSS content
1322
+ */
1323
+ content: string;
1324
+ }>;
1325
+ /**
1326
+ * Page content metadata
1327
+ */
1328
+ metadata: {
1329
+ /**
1330
+ * Original URL that was fetched
1331
+ */
1332
+ sourceUrl: string;
1333
+ /**
1334
+ * Viewport width used
1335
+ */
1336
+ width: number;
1337
+ /**
1338
+ * Viewport height used
1339
+ */
1340
+ height: number;
1341
+ /**
1342
+ * Wait condition used
1343
+ */
1344
+ waitUntil: string;
1345
+ /**
1346
+ * ISO timestamp of capture
1347
+ */
1348
+ timestamp: string;
1349
+ /**
1350
+ * Whether CSS styles were captured
1351
+ */
1352
+ stylesCaptured: boolean;
1353
+ };
1354
+ };
1355
+ };
1356
+ export type FetchPageContentResponse = FetchPageContentResponses[keyof FetchPageContentResponses];
1357
+ export type ExtractDesignSystemData = {
1358
+ body: {
1359
+ /**
1360
+ * URL of the page to analyze
1361
+ */
1362
+ url: string;
1363
+ /**
1364
+ * Capture in dark mode
1365
+ */
1366
+ darkMode?: boolean;
1367
+ /**
1368
+ * Use mobile viewport
1369
+ */
1370
+ mobile?: boolean;
1371
+ /**
1372
+ * Wait longer for slow sites
1373
+ */
1374
+ slow?: boolean;
1375
+ /**
1376
+ * Enable debug output
1377
+ */
1378
+ debug?: boolean;
1379
+ /**
1380
+ * Include verbose color information
1381
+ */
1382
+ verboseColors?: boolean;
1383
+ /**
1384
+ * User's Dazl ID (optional, for user identification)
1385
+ */
1386
+ dazlId?: string;
1387
+ };
1388
+ path?: never;
1389
+ query?: never;
1390
+ url: '/capture/design-system';
1391
+ };
1392
+ export type ExtractDesignSystemErrors = {
1393
+ /**
1394
+ * Bad request - Invalid parameters or malformed JSON
1395
+ */
1396
+ 400: {
1397
+ message: string;
1398
+ issues?: string;
1399
+ };
1400
+ /**
1401
+ * Unauthorized
1402
+ */
1403
+ 401: {
1404
+ message: string;
1405
+ };
1406
+ /**
1407
+ * Forbidden - Permission denied
1408
+ */
1409
+ 403: {
1410
+ message: string;
1411
+ };
1412
+ /**
1413
+ * Not found
1414
+ */
1415
+ 404: {
1416
+ message: string;
1417
+ };
1418
+ /**
1419
+ * Internal server error
1420
+ */
1421
+ 500: {
1422
+ message: string;
1423
+ };
1424
+ };
1425
+ export type ExtractDesignSystemError = ExtractDesignSystemErrors[keyof ExtractDesignSystemErrors];
1426
+ export type ExtractDesignSystemResponses = {
1427
+ /**
1428
+ * Design system extracted successfully
1429
+ */
1430
+ 200: {
1431
+ /**
1432
+ * Whether the operation succeeded
1433
+ */
1434
+ success: boolean;
1435
+ /**
1436
+ * Design system data
1437
+ */
1438
+ data: {
1439
+ [key: string]: unknown;
1440
+ };
1441
+ /**
1442
+ * Design system metadata
1443
+ */
1444
+ metadata: {
1445
+ /**
1446
+ * Original URL that was analyzed
1447
+ */
1448
+ sourceUrl: string;
1449
+ /**
1450
+ * ISO timestamp of analysis
1451
+ */
1452
+ timestamp: string;
1453
+ /**
1454
+ * Options used for analysis
1455
+ */
1456
+ options: {
1457
+ darkMode: boolean;
1458
+ mobile: boolean;
1459
+ slow: boolean;
1460
+ debug: boolean;
1461
+ verboseColors: boolean;
1462
+ };
1463
+ };
1464
+ };
1465
+ };
1466
+ export type ExtractDesignSystemResponse = ExtractDesignSystemResponses[keyof ExtractDesignSystemResponses];
976
1467
  //# sourceMappingURL=types.gen.d.ts.map