@daytonaio/api-client 0.140.0 → 0.141.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.
Files changed (56) hide show
  1. package/package.json +1 -1
  2. package/src/api/admin-api.d.ts +6 -6
  3. package/src/api/api-keys-api.d.ts +6 -6
  4. package/src/api/audit-api.d.ts +2 -2
  5. package/src/api/config-api.d.ts +1 -1
  6. package/src/api/docker-registry-api.d.ts +7 -7
  7. package/src/api/health-api.d.ts +1 -1
  8. package/src/api/jobs-api.d.ts +4 -4
  9. package/src/api/object-storage-api.d.ts +1 -1
  10. package/src/api/organizations-api.d.ts +116 -37
  11. package/src/api/organizations-api.js +146 -0
  12. package/src/api/organizations-api.js.map +1 -1
  13. package/src/api/preview-api.d.ts +4 -4
  14. package/src/api/regions-api.d.ts +1 -1
  15. package/src/api/runners-api.d.ts +10 -10
  16. package/src/api/sandbox-api.d.ts +236 -28
  17. package/src/api/sandbox-api.js +419 -0
  18. package/src/api/sandbox-api.js.map +1 -1
  19. package/src/api/snapshots-api.d.ts +10 -10
  20. package/src/api/toolbox-api.d.ts +68 -68
  21. package/src/api/users-api.d.ts +9 -9
  22. package/src/api/volumes-api.d.ts +5 -5
  23. package/src/api/webhooks-api.d.ts +6 -6
  24. package/src/api/workspace-api.d.ts +14 -14
  25. package/src/models/index.d.ts +9 -0
  26. package/src/models/index.js +9 -0
  27. package/src/models/index.js.map +1 -1
  28. package/src/models/log-entry.d.ts +76 -0
  29. package/src/models/log-entry.js +4 -0
  30. package/src/models/log-entry.js.map +1 -0
  31. package/src/models/metric-data-point.d.ts +30 -0
  32. package/src/models/metric-data-point.js +4 -0
  33. package/src/models/metric-data-point.js.map +1 -0
  34. package/src/models/metric-series.d.ts +31 -0
  35. package/src/models/metric-series.js +16 -0
  36. package/src/models/metric-series.js.map +1 -0
  37. package/src/models/metrics-response.d.ts +25 -0
  38. package/src/models/metrics-response.js +16 -0
  39. package/src/models/metrics-response.js.map +1 -0
  40. package/src/models/organization.d.ts +24 -0
  41. package/src/models/otel-config.d.ts +32 -0
  42. package/src/models/otel-config.js +4 -0
  43. package/src/models/otel-config.js.map +1 -0
  44. package/src/models/paginated-logs.d.ts +43 -0
  45. package/src/models/paginated-logs.js +16 -0
  46. package/src/models/paginated-logs.js.map +1 -0
  47. package/src/models/paginated-traces.d.ts +43 -0
  48. package/src/models/paginated-traces.js +16 -0
  49. package/src/models/paginated-traces.js.map +1 -0
  50. package/src/models/trace-span.d.ts +74 -0
  51. package/src/models/trace-span.js +4 -0
  52. package/src/models/trace-span.js.map +1 -0
  53. package/src/models/trace-summary.d.ts +60 -0
  54. package/src/models/trace-summary.js +4 -0
  55. package/src/models/trace-summary.js.map +1 -0
  56. package/src/models/update-organization-quota.d.ts +18 -0
@@ -415,6 +415,219 @@ const SandboxApiAxiosParamCreator = function (configuration) {
415
415
  options: localVarRequestOptions,
416
416
  };
417
417
  },
418
+ /**
419
+ * Retrieve OTEL logs for a sandbox within a time range
420
+ * @summary Get sandbox logs
421
+ * @param {string} sandboxId ID of the sandbox
422
+ * @param {Date} from Start of time range (ISO 8601)
423
+ * @param {Date} to End of time range (ISO 8601)
424
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
425
+ * @param {number} [page] Page number (1-indexed)
426
+ * @param {number} [limit] Number of items per page
427
+ * @param {Array<string>} [severities] Filter by severity levels (DEBUG, INFO, WARN, ERROR)
428
+ * @param {string} [search] Search in log body
429
+ * @param {*} [options] Override http request option.
430
+ * @throws {RequiredError}
431
+ */
432
+ getSandboxLogs: async (sandboxId, from, to, xDaytonaOrganizationID, page, limit, severities, search, options = {}) => {
433
+ // verify required parameter 'sandboxId' is not null or undefined
434
+ (0, common_1.assertParamExists)('getSandboxLogs', 'sandboxId', sandboxId);
435
+ // verify required parameter 'from' is not null or undefined
436
+ (0, common_1.assertParamExists)('getSandboxLogs', 'from', from);
437
+ // verify required parameter 'to' is not null or undefined
438
+ (0, common_1.assertParamExists)('getSandboxLogs', 'to', to);
439
+ const localVarPath = `/sandbox/{sandboxId}/telemetry/logs`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
440
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
441
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
442
+ let baseOptions;
443
+ if (configuration) {
444
+ baseOptions = configuration.baseOptions;
445
+ }
446
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
447
+ const localVarHeaderParameter = {};
448
+ const localVarQueryParameter = {};
449
+ // authentication bearer required
450
+ // http bearer authentication required
451
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
452
+ // authentication oauth2 required
453
+ if (from !== undefined) {
454
+ localVarQueryParameter['from'] = from instanceof Date ? from.toISOString() : from;
455
+ }
456
+ if (to !== undefined) {
457
+ localVarQueryParameter['to'] = to instanceof Date ? to.toISOString() : to;
458
+ }
459
+ if (page !== undefined) {
460
+ localVarQueryParameter['page'] = page;
461
+ }
462
+ if (limit !== undefined) {
463
+ localVarQueryParameter['limit'] = limit;
464
+ }
465
+ if (severities) {
466
+ localVarQueryParameter['severities'] = severities;
467
+ }
468
+ if (search !== undefined) {
469
+ localVarQueryParameter['search'] = search;
470
+ }
471
+ if (xDaytonaOrganizationID != null) {
472
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
473
+ }
474
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
475
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
476
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
477
+ return {
478
+ url: (0, common_1.toPathString)(localVarUrlObj),
479
+ options: localVarRequestOptions,
480
+ };
481
+ },
482
+ /**
483
+ * Retrieve OTEL metrics for a sandbox within a time range
484
+ * @summary Get sandbox metrics
485
+ * @param {string} sandboxId ID of the sandbox
486
+ * @param {Date} from Start of time range (ISO 8601)
487
+ * @param {Date} to End of time range (ISO 8601)
488
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
489
+ * @param {Array<string>} [metricNames] Filter by metric names
490
+ * @param {*} [options] Override http request option.
491
+ * @throws {RequiredError}
492
+ */
493
+ getSandboxMetrics: async (sandboxId, from, to, xDaytonaOrganizationID, metricNames, options = {}) => {
494
+ // verify required parameter 'sandboxId' is not null or undefined
495
+ (0, common_1.assertParamExists)('getSandboxMetrics', 'sandboxId', sandboxId);
496
+ // verify required parameter 'from' is not null or undefined
497
+ (0, common_1.assertParamExists)('getSandboxMetrics', 'from', from);
498
+ // verify required parameter 'to' is not null or undefined
499
+ (0, common_1.assertParamExists)('getSandboxMetrics', 'to', to);
500
+ const localVarPath = `/sandbox/{sandboxId}/telemetry/metrics`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
501
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
502
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
503
+ let baseOptions;
504
+ if (configuration) {
505
+ baseOptions = configuration.baseOptions;
506
+ }
507
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
508
+ const localVarHeaderParameter = {};
509
+ const localVarQueryParameter = {};
510
+ // authentication bearer required
511
+ // http bearer authentication required
512
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
513
+ // authentication oauth2 required
514
+ if (from !== undefined) {
515
+ localVarQueryParameter['from'] = from instanceof Date ? from.toISOString() : from;
516
+ }
517
+ if (to !== undefined) {
518
+ localVarQueryParameter['to'] = to instanceof Date ? to.toISOString() : to;
519
+ }
520
+ if (metricNames) {
521
+ localVarQueryParameter['metricNames'] = metricNames;
522
+ }
523
+ if (xDaytonaOrganizationID != null) {
524
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
525
+ }
526
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
527
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
528
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
529
+ return {
530
+ url: (0, common_1.toPathString)(localVarUrlObj),
531
+ options: localVarRequestOptions,
532
+ };
533
+ },
534
+ /**
535
+ * Retrieve all spans for a specific trace
536
+ * @summary Get trace spans
537
+ * @param {string} sandboxId ID of the sandbox
538
+ * @param {string} traceId ID of the trace
539
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
540
+ * @param {*} [options] Override http request option.
541
+ * @throws {RequiredError}
542
+ */
543
+ getSandboxTraceSpans: async (sandboxId, traceId, xDaytonaOrganizationID, options = {}) => {
544
+ // verify required parameter 'sandboxId' is not null or undefined
545
+ (0, common_1.assertParamExists)('getSandboxTraceSpans', 'sandboxId', sandboxId);
546
+ // verify required parameter 'traceId' is not null or undefined
547
+ (0, common_1.assertParamExists)('getSandboxTraceSpans', 'traceId', traceId);
548
+ const localVarPath = `/sandbox/{sandboxId}/telemetry/traces/{traceId}`
549
+ .replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)))
550
+ .replace(`{${'traceId'}}`, encodeURIComponent(String(traceId)));
551
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
552
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
553
+ let baseOptions;
554
+ if (configuration) {
555
+ baseOptions = configuration.baseOptions;
556
+ }
557
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
558
+ const localVarHeaderParameter = {};
559
+ const localVarQueryParameter = {};
560
+ // authentication bearer required
561
+ // http bearer authentication required
562
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
563
+ // authentication oauth2 required
564
+ if (xDaytonaOrganizationID != null) {
565
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
566
+ }
567
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
568
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
569
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
570
+ return {
571
+ url: (0, common_1.toPathString)(localVarUrlObj),
572
+ options: localVarRequestOptions,
573
+ };
574
+ },
575
+ /**
576
+ * Retrieve OTEL traces for a sandbox within a time range
577
+ * @summary Get sandbox traces
578
+ * @param {string} sandboxId ID of the sandbox
579
+ * @param {Date} from Start of time range (ISO 8601)
580
+ * @param {Date} to End of time range (ISO 8601)
581
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
582
+ * @param {number} [page] Page number (1-indexed)
583
+ * @param {number} [limit] Number of items per page
584
+ * @param {*} [options] Override http request option.
585
+ * @throws {RequiredError}
586
+ */
587
+ getSandboxTraces: async (sandboxId, from, to, xDaytonaOrganizationID, page, limit, options = {}) => {
588
+ // verify required parameter 'sandboxId' is not null or undefined
589
+ (0, common_1.assertParamExists)('getSandboxTraces', 'sandboxId', sandboxId);
590
+ // verify required parameter 'from' is not null or undefined
591
+ (0, common_1.assertParamExists)('getSandboxTraces', 'from', from);
592
+ // verify required parameter 'to' is not null or undefined
593
+ (0, common_1.assertParamExists)('getSandboxTraces', 'to', to);
594
+ const localVarPath = `/sandbox/{sandboxId}/telemetry/traces`.replace(`{${'sandboxId'}}`, encodeURIComponent(String(sandboxId)));
595
+ // use dummy base URL string because the URL constructor only accepts absolute URLs.
596
+ const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
597
+ let baseOptions;
598
+ if (configuration) {
599
+ baseOptions = configuration.baseOptions;
600
+ }
601
+ const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options };
602
+ const localVarHeaderParameter = {};
603
+ const localVarQueryParameter = {};
604
+ // authentication bearer required
605
+ // http bearer authentication required
606
+ await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
607
+ // authentication oauth2 required
608
+ if (from !== undefined) {
609
+ localVarQueryParameter['from'] = from instanceof Date ? from.toISOString() : from;
610
+ }
611
+ if (to !== undefined) {
612
+ localVarQueryParameter['to'] = to instanceof Date ? to.toISOString() : to;
613
+ }
614
+ if (page !== undefined) {
615
+ localVarQueryParameter['page'] = page;
616
+ }
617
+ if (limit !== undefined) {
618
+ localVarQueryParameter['limit'] = limit;
619
+ }
620
+ if (xDaytonaOrganizationID != null) {
621
+ localVarHeaderParameter['X-Daytona-Organization-ID'] = String(xDaytonaOrganizationID);
622
+ }
623
+ (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
624
+ let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
625
+ localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
626
+ return {
627
+ url: (0, common_1.toPathString)(localVarUrlObj),
628
+ options: localVarRequestOptions,
629
+ };
630
+ },
418
631
  /**
419
632
  *
420
633
  * @summary Get sandboxes for the authenticated runner
@@ -1360,6 +1573,76 @@ const SandboxApiFp = function (configuration) {
1360
1573
  const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandbox']?.[localVarOperationServerIndex]?.url;
1361
1574
  return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1362
1575
  },
1576
+ /**
1577
+ * Retrieve OTEL logs for a sandbox within a time range
1578
+ * @summary Get sandbox logs
1579
+ * @param {string} sandboxId ID of the sandbox
1580
+ * @param {Date} from Start of time range (ISO 8601)
1581
+ * @param {Date} to End of time range (ISO 8601)
1582
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1583
+ * @param {number} [page] Page number (1-indexed)
1584
+ * @param {number} [limit] Number of items per page
1585
+ * @param {Array<string>} [severities] Filter by severity levels (DEBUG, INFO, WARN, ERROR)
1586
+ * @param {string} [search] Search in log body
1587
+ * @param {*} [options] Override http request option.
1588
+ * @throws {RequiredError}
1589
+ */
1590
+ async getSandboxLogs(sandboxId, from, to, xDaytonaOrganizationID, page, limit, severities, search, options) {
1591
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSandboxLogs(sandboxId, from, to, xDaytonaOrganizationID, page, limit, severities, search, options);
1592
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1593
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxLogs']?.[localVarOperationServerIndex]?.url;
1594
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1595
+ },
1596
+ /**
1597
+ * Retrieve OTEL metrics for a sandbox within a time range
1598
+ * @summary Get sandbox metrics
1599
+ * @param {string} sandboxId ID of the sandbox
1600
+ * @param {Date} from Start of time range (ISO 8601)
1601
+ * @param {Date} to End of time range (ISO 8601)
1602
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1603
+ * @param {Array<string>} [metricNames] Filter by metric names
1604
+ * @param {*} [options] Override http request option.
1605
+ * @throws {RequiredError}
1606
+ */
1607
+ async getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options) {
1608
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options);
1609
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1610
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxMetrics']?.[localVarOperationServerIndex]?.url;
1611
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1612
+ },
1613
+ /**
1614
+ * Retrieve all spans for a specific trace
1615
+ * @summary Get trace spans
1616
+ * @param {string} sandboxId ID of the sandbox
1617
+ * @param {string} traceId ID of the trace
1618
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1619
+ * @param {*} [options] Override http request option.
1620
+ * @throws {RequiredError}
1621
+ */
1622
+ async getSandboxTraceSpans(sandboxId, traceId, xDaytonaOrganizationID, options) {
1623
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSandboxTraceSpans(sandboxId, traceId, xDaytonaOrganizationID, options);
1624
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1625
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxTraceSpans']?.[localVarOperationServerIndex]?.url;
1626
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1627
+ },
1628
+ /**
1629
+ * Retrieve OTEL traces for a sandbox within a time range
1630
+ * @summary Get sandbox traces
1631
+ * @param {string} sandboxId ID of the sandbox
1632
+ * @param {Date} from Start of time range (ISO 8601)
1633
+ * @param {Date} to End of time range (ISO 8601)
1634
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
1635
+ * @param {number} [page] Page number (1-indexed)
1636
+ * @param {number} [limit] Number of items per page
1637
+ * @param {*} [options] Override http request option.
1638
+ * @throws {RequiredError}
1639
+ */
1640
+ async getSandboxTraces(sandboxId, from, to, xDaytonaOrganizationID, page, limit, options) {
1641
+ const localVarAxiosArgs = await localVarAxiosParamCreator.getSandboxTraces(sandboxId, from, to, xDaytonaOrganizationID, page, limit, options);
1642
+ const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
1643
+ const localVarOperationServerBasePath = base_1.operationServerMap['SandboxApi.getSandboxTraces']?.[localVarOperationServerIndex]?.url;
1644
+ return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
1645
+ },
1363
1646
  /**
1364
1647
  *
1365
1648
  * @summary Get sandboxes for the authenticated runner
@@ -1790,6 +2073,72 @@ const SandboxApiFactory = function (configuration, basePath, axios) {
1790
2073
  .getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options)
1791
2074
  .then((request) => request(axios, basePath));
1792
2075
  },
2076
+ /**
2077
+ * Retrieve OTEL logs for a sandbox within a time range
2078
+ * @summary Get sandbox logs
2079
+ * @param {string} sandboxId ID of the sandbox
2080
+ * @param {Date} from Start of time range (ISO 8601)
2081
+ * @param {Date} to End of time range (ISO 8601)
2082
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2083
+ * @param {number} [page] Page number (1-indexed)
2084
+ * @param {number} [limit] Number of items per page
2085
+ * @param {Array<string>} [severities] Filter by severity levels (DEBUG, INFO, WARN, ERROR)
2086
+ * @param {string} [search] Search in log body
2087
+ * @param {*} [options] Override http request option.
2088
+ * @throws {RequiredError}
2089
+ */
2090
+ getSandboxLogs(sandboxId, from, to, xDaytonaOrganizationID, page, limit, severities, search, options) {
2091
+ return localVarFp
2092
+ .getSandboxLogs(sandboxId, from, to, xDaytonaOrganizationID, page, limit, severities, search, options)
2093
+ .then((request) => request(axios, basePath));
2094
+ },
2095
+ /**
2096
+ * Retrieve OTEL metrics for a sandbox within a time range
2097
+ * @summary Get sandbox metrics
2098
+ * @param {string} sandboxId ID of the sandbox
2099
+ * @param {Date} from Start of time range (ISO 8601)
2100
+ * @param {Date} to End of time range (ISO 8601)
2101
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2102
+ * @param {Array<string>} [metricNames] Filter by metric names
2103
+ * @param {*} [options] Override http request option.
2104
+ * @throws {RequiredError}
2105
+ */
2106
+ getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options) {
2107
+ return localVarFp
2108
+ .getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options)
2109
+ .then((request) => request(axios, basePath));
2110
+ },
2111
+ /**
2112
+ * Retrieve all spans for a specific trace
2113
+ * @summary Get trace spans
2114
+ * @param {string} sandboxId ID of the sandbox
2115
+ * @param {string} traceId ID of the trace
2116
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2117
+ * @param {*} [options] Override http request option.
2118
+ * @throws {RequiredError}
2119
+ */
2120
+ getSandboxTraceSpans(sandboxId, traceId, xDaytonaOrganizationID, options) {
2121
+ return localVarFp
2122
+ .getSandboxTraceSpans(sandboxId, traceId, xDaytonaOrganizationID, options)
2123
+ .then((request) => request(axios, basePath));
2124
+ },
2125
+ /**
2126
+ * Retrieve OTEL traces for a sandbox within a time range
2127
+ * @summary Get sandbox traces
2128
+ * @param {string} sandboxId ID of the sandbox
2129
+ * @param {Date} from Start of time range (ISO 8601)
2130
+ * @param {Date} to End of time range (ISO 8601)
2131
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2132
+ * @param {number} [page] Page number (1-indexed)
2133
+ * @param {number} [limit] Number of items per page
2134
+ * @param {*} [options] Override http request option.
2135
+ * @throws {RequiredError}
2136
+ */
2137
+ getSandboxTraces(sandboxId, from, to, xDaytonaOrganizationID, page, limit, options) {
2138
+ return localVarFp
2139
+ .getSandboxTraces(sandboxId, from, to, xDaytonaOrganizationID, page, limit, options)
2140
+ .then((request) => request(axios, basePath));
2141
+ },
1793
2142
  /**
1794
2143
  *
1795
2144
  * @summary Get sandboxes for the authenticated runner
@@ -2212,6 +2561,76 @@ class SandboxApi extends base_1.BaseAPI {
2212
2561
  .getSandbox(sandboxIdOrName, xDaytonaOrganizationID, verbose, options)
2213
2562
  .then((request) => request(this.axios, this.basePath));
2214
2563
  }
2564
+ /**
2565
+ * Retrieve OTEL logs for a sandbox within a time range
2566
+ * @summary Get sandbox logs
2567
+ * @param {string} sandboxId ID of the sandbox
2568
+ * @param {Date} from Start of time range (ISO 8601)
2569
+ * @param {Date} to End of time range (ISO 8601)
2570
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2571
+ * @param {number} [page] Page number (1-indexed)
2572
+ * @param {number} [limit] Number of items per page
2573
+ * @param {Array<string>} [severities] Filter by severity levels (DEBUG, INFO, WARN, ERROR)
2574
+ * @param {string} [search] Search in log body
2575
+ * @param {*} [options] Override http request option.
2576
+ * @throws {RequiredError}
2577
+ * @memberof SandboxApi
2578
+ */
2579
+ getSandboxLogs(sandboxId, from, to, xDaytonaOrganizationID, page, limit, severities, search, options) {
2580
+ return (0, exports.SandboxApiFp)(this.configuration)
2581
+ .getSandboxLogs(sandboxId, from, to, xDaytonaOrganizationID, page, limit, severities, search, options)
2582
+ .then((request) => request(this.axios, this.basePath));
2583
+ }
2584
+ /**
2585
+ * Retrieve OTEL metrics for a sandbox within a time range
2586
+ * @summary Get sandbox metrics
2587
+ * @param {string} sandboxId ID of the sandbox
2588
+ * @param {Date} from Start of time range (ISO 8601)
2589
+ * @param {Date} to End of time range (ISO 8601)
2590
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2591
+ * @param {Array<string>} [metricNames] Filter by metric names
2592
+ * @param {*} [options] Override http request option.
2593
+ * @throws {RequiredError}
2594
+ * @memberof SandboxApi
2595
+ */
2596
+ getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options) {
2597
+ return (0, exports.SandboxApiFp)(this.configuration)
2598
+ .getSandboxMetrics(sandboxId, from, to, xDaytonaOrganizationID, metricNames, options)
2599
+ .then((request) => request(this.axios, this.basePath));
2600
+ }
2601
+ /**
2602
+ * Retrieve all spans for a specific trace
2603
+ * @summary Get trace spans
2604
+ * @param {string} sandboxId ID of the sandbox
2605
+ * @param {string} traceId ID of the trace
2606
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2607
+ * @param {*} [options] Override http request option.
2608
+ * @throws {RequiredError}
2609
+ * @memberof SandboxApi
2610
+ */
2611
+ getSandboxTraceSpans(sandboxId, traceId, xDaytonaOrganizationID, options) {
2612
+ return (0, exports.SandboxApiFp)(this.configuration)
2613
+ .getSandboxTraceSpans(sandboxId, traceId, xDaytonaOrganizationID, options)
2614
+ .then((request) => request(this.axios, this.basePath));
2615
+ }
2616
+ /**
2617
+ * Retrieve OTEL traces for a sandbox within a time range
2618
+ * @summary Get sandbox traces
2619
+ * @param {string} sandboxId ID of the sandbox
2620
+ * @param {Date} from Start of time range (ISO 8601)
2621
+ * @param {Date} to End of time range (ISO 8601)
2622
+ * @param {string} [xDaytonaOrganizationID] Use with JWT to specify the organization ID
2623
+ * @param {number} [page] Page number (1-indexed)
2624
+ * @param {number} [limit] Number of items per page
2625
+ * @param {*} [options] Override http request option.
2626
+ * @throws {RequiredError}
2627
+ * @memberof SandboxApi
2628
+ */
2629
+ getSandboxTraces(sandboxId, from, to, xDaytonaOrganizationID, page, limit, options) {
2630
+ return (0, exports.SandboxApiFp)(this.configuration)
2631
+ .getSandboxTraces(sandboxId, from, to, xDaytonaOrganizationID, page, limit, options)
2632
+ .then((request) => request(this.axios, this.basePath));
2633
+ }
2215
2634
  /**
2216
2635
  *
2217
2636
  * @summary Get sandboxes for the authenticated runner