langwatch 1.20.0 → 2.0.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 (44) hide show
  1. package/README.md +2 -2
  2. package/dist/agent/index.js +19 -2
  3. package/dist/agent/index.js.map +1 -1
  4. package/dist/agent/index.mjs +19 -2
  5. package/dist/agent/index.mjs.map +1 -1
  6. package/dist/{chunk-ET5KYCG2.mjs → chunk-2GKEMCKT.mjs} +1 -1
  7. package/dist/chunk-2GKEMCKT.mjs.map +1 -0
  8. package/dist/{chunk-BDQ2RG7R.mjs → chunk-AYPQNLCC.mjs} +2 -2
  9. package/dist/{chunk-EQ5CFQGJ.js → chunk-DLZCOUXC.js} +12 -12
  10. package/dist/{chunk-EQ5CFQGJ.js.map → chunk-DLZCOUXC.js.map} +1 -1
  11. package/dist/{chunk-5ZNEXSAB.js → chunk-F7BVJW3S.js} +1 -1
  12. package/dist/chunk-F7BVJW3S.js.map +1 -0
  13. package/dist/{chunk-FKYYEGJ7.mjs → chunk-M3DSPR5S.mjs} +6 -2
  14. package/dist/chunk-M3DSPR5S.mjs.map +1 -0
  15. package/dist/{chunk-HCK7TCSK.js → chunk-MAO3SIBB.js} +7 -3
  16. package/dist/chunk-MAO3SIBB.js.map +1 -0
  17. package/dist/cli/bundle.js +523 -505
  18. package/dist/{implementation-B4Z2ksnA.d.mts → implementation-BXVPzwOt.d.mts} +1 -1
  19. package/dist/{implementation-BFUgzz5C.d.ts → implementation-DJ-JveZl.d.ts} +1 -1
  20. package/dist/index.d.mts +84 -10
  21. package/dist/index.d.ts +84 -10
  22. package/dist/index.js +979 -632
  23. package/dist/index.js.map +1 -1
  24. package/dist/index.mjs +907 -560
  25. package/dist/index.mjs.map +1 -1
  26. package/dist/observability-sdk/index.d.mts +3 -3
  27. package/dist/observability-sdk/index.d.ts +3 -3
  28. package/dist/observability-sdk/index.js +4 -4
  29. package/dist/observability-sdk/index.js.map +1 -1
  30. package/dist/observability-sdk/index.mjs +8 -8
  31. package/dist/observability-sdk/instrumentation/langchain/index.d.mts +1 -1
  32. package/dist/observability-sdk/instrumentation/langchain/index.d.ts +1 -1
  33. package/dist/observability-sdk/instrumentation/langchain/index.js +4 -4
  34. package/dist/observability-sdk/instrumentation/langchain/index.mjs +1 -1
  35. package/dist/observability-sdk/setup/node/index.js +3 -3
  36. package/dist/observability-sdk/setup/node/index.mjs +2 -2
  37. package/dist/{types-B696jWYQ.d.mts → types--ExXvd26.d.mts} +911 -338
  38. package/dist/{types-Bo6OvFct.d.ts → types-CpT3iEIj.d.ts} +911 -338
  39. package/package.json +3 -4
  40. package/dist/chunk-5ZNEXSAB.js.map +0 -1
  41. package/dist/chunk-ET5KYCG2.mjs.map +0 -1
  42. package/dist/chunk-FKYYEGJ7.mjs.map +0 -1
  43. package/dist/chunk-HCK7TCSK.js.map +0 -1
  44. /package/dist/{chunk-BDQ2RG7R.mjs.map → chunk-AYPQNLCC.mjs.map} +0 -0
@@ -260,44 +260,59 @@ interface paths {
260
260
  patch: operations["patchApiTriggersById"];
261
261
  trace?: never;
262
262
  };
263
- "/api/v1/dashboards": {
263
+ "/api/v1/analytics/reports": {
264
264
  parameters: {
265
265
  query?: never;
266
266
  header?: never;
267
267
  path?: never;
268
268
  cookie?: never;
269
269
  };
270
- /** @description List all dashboards for the project with graph counts */
271
- get: operations["getApiDashboards"];
270
+ /**
271
+ * @deprecated
272
+ * @description List all dashboards for the project with graph counts. The Analytics Reports dashboards API is deprecated; use the Dashboards API at /api/v1/dashboards.
273
+ */
274
+ get: operations["getApiV1AnalyticsReports"];
272
275
  put?: never;
273
- /** @description Create a new dashboard */
274
- post: operations["postApiDashboards"];
276
+ /**
277
+ * @deprecated
278
+ * @description Create a new dashboard. The Analytics Reports dashboards API is deprecated; use the Dashboards API at /api/v1/dashboards.
279
+ */
280
+ post: operations["postApiV1AnalyticsReports"];
275
281
  delete?: never;
276
282
  options?: never;
277
283
  head?: never;
278
284
  patch?: never;
279
285
  trace?: never;
280
286
  };
281
- "/api/v1/dashboards/{id}": {
287
+ "/api/v1/analytics/reports/{reportId}": {
282
288
  parameters: {
283
289
  query?: never;
284
290
  header?: never;
285
291
  path?: never;
286
292
  cookie?: never;
287
293
  };
288
- /** @description Get a dashboard by its id, including its graphs */
289
- get: operations["getApiDashboardsById"];
294
+ /**
295
+ * @deprecated
296
+ * @description Get a dashboard by its id, including its graphs. The Analytics Reports dashboards API is deprecated; use the Dashboards API at /api/v1/dashboards.
297
+ */
298
+ get: operations["getApiV1AnalyticsReportsByReportId"];
290
299
  put?: never;
291
300
  post?: never;
292
- /** @description Delete a dashboard and its graphs (hard delete, cascade) */
293
- delete: operations["deleteApiDashboardsById"];
301
+ /**
302
+ * @deprecated
303
+ * @description Delete a dashboard and its graphs (hard delete, cascade). The Analytics Reports dashboards API is deprecated; use the Dashboards API at /api/v1/dashboards.
304
+ */
305
+ delete: operations["deleteApiV1AnalyticsReportsByReportId"];
294
306
  options?: never;
295
307
  head?: never;
296
- /** @description Rename a dashboard */
297
- patch: operations["patchApiDashboardsById"];
308
+ /**
309
+ * @deprecated
310
+ * @description Rename a dashboard. The Analytics Reports dashboards API is deprecated; use the Dashboards API at /api/v1/dashboards.
311
+ */
312
+ patch: operations["patchApiV1AnalyticsReportsByReportId"];
298
313
  trace?: never;
299
314
  };
300
- "/api/v1/projects/{projectId}/analytics/dashboard-widgets": {
315
+ "/api/v1/dashboards": {
301
316
  parameters: {
302
317
  query?: never;
303
318
  header?: never;
@@ -305,23 +320,23 @@ interface paths {
305
320
  cookie?: never;
306
321
  };
307
322
  /**
308
- * List dashboard widgets
309
- * @description Lists every dashboard widget in this project, each with the React source file it renders and the named LangWatchQL queries it may run. Saved workbench charts and builder charts are different kinds and are not listed here.
323
+ * List dashboards
324
+ * @description Lists the dashboards of the key's project, each with how many widgets it holds.
310
325
  */
311
- get: operations["getApiV1ProjectsByProjectIdAnalyticsDashboardWidgets"];
326
+ get: operations["getApiDashboards"];
312
327
  put?: never;
313
328
  /**
314
- * Create a dashboard widget
315
- * @description Saves a React source file and the named LangWatchQL queries it runs as one dashboard widget, with an optional description the card shows behind its info icon and an optional prompt Langy is drafted with when asked about it. `source` records where the widget came from; without it, the widget is recorded as made through the API. The queries' shape is validated against the widget schema; their SQL is governed at run time by LW.query inside the sandbox, not at save.
329
+ * Create a dashboard
330
+ * @description Creates an empty dashboard in the key's project. Add widgets to it with POST /api/v1/dashboards/{dashboardId}/widgets.
316
331
  */
317
- post: operations["postApiV1ProjectsByProjectIdAnalyticsDashboardWidgets"];
332
+ post: operations["postApiDashboards"];
318
333
  delete?: never;
319
334
  options?: never;
320
335
  head?: never;
321
336
  patch?: never;
322
337
  trace?: never;
323
338
  };
324
- "/api/v1/projects/{projectId}/analytics/dashboard-widgets/{widgetId}": {
339
+ "/api/v1/dashboards/{dashboardId}": {
325
340
  parameters: {
326
341
  query?: never;
327
342
  header?: never;
@@ -329,47 +344,51 @@ interface paths {
329
344
  cookie?: never;
330
345
  };
331
346
  /**
332
- * Get a dashboard widget
333
- * @description Returns one dashboard widget with its React source and named queries. A widget saved in another project is reported as not found.
347
+ * Get a dashboard
348
+ * @description Returns one dashboard.
334
349
  */
335
- get: operations["getApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetId"];
350
+ get: operations["getApiDashboardsByDashboardId"];
336
351
  put?: never;
337
352
  post?: never;
338
353
  /**
339
- * Delete a dashboard widget
340
- * @description Deletes one dashboard widget. Answers 204 with no body; deleting a widget that is not in this project is reported as not found.
354
+ * Delete a dashboard
355
+ * @description Deletes a dashboard together with the widgets on it and every member's star of it; this cannot be undone. Answers with the deleted dashboard's id and name.
341
356
  */
342
- delete: operations["deleteApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetId"];
357
+ delete: operations["deleteApiDashboardsByDashboardId"];
343
358
  options?: never;
344
359
  head?: never;
345
360
  /**
346
- * Update a dashboard widget
347
- * @description Changes a dashboard widget's name, code, queries, description or source. A field the body leaves out keeps its stored value, so code alone keeps the queries and the source is kept unless the body names one. A body with none of these fields is refused.
361
+ * Update a dashboard
362
+ * @description Changes a dashboard's name, description or the trace origins its widgets leave out; a field the body leaves out keeps its value. A null description clears it; excludedOrigins [] includes Langy's traces, and null restores the default (Langy's left out, none in a personal project).
348
363
  */
349
- patch: operations["patchApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetId"];
364
+ patch: operations["patchApiDashboardsByDashboardId"];
350
365
  trace?: never;
351
366
  };
352
- "/api/v1/projects/{projectId}/analytics/dashboard-widgets/{widgetId}/dashboard": {
367
+ "/api/v1/dashboards/{dashboardId}/widgets": {
353
368
  parameters: {
354
369
  query?: never;
355
370
  header?: never;
356
371
  path?: never;
357
372
  cookie?: never;
358
373
  };
359
- get?: never;
374
+ /**
375
+ * List a dashboard's widgets
376
+ * @description Lists the widgets on one dashboard, each with its React source and named queries.
377
+ */
378
+ get: operations["getApiDashboardsByDashboardIdWidgets"];
360
379
  put?: never;
361
380
  /**
362
- * Add a dashboard widget to a dashboard
363
- * @description Assigns a dashboard widget to a dashboard. The widget is repositioned to the next free row on that dashboard; its size (colSpan/rowSpan) is preserved.
381
+ * Create a widget on a dashboard
382
+ * @description Saves a React source file and the named LangWatchQL queries it runs as one widget, placed on this dashboard at the next free row. `source` records where the widget came from; without it, the widget is recorded as made through the API.
364
383
  */
365
- post: operations["postApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetIdDashboard"];
384
+ post: operations["postApiDashboardsByDashboardIdWidgets"];
366
385
  delete?: never;
367
386
  options?: never;
368
387
  head?: never;
369
388
  patch?: never;
370
389
  trace?: never;
371
390
  };
372
- "/api/v1/projects/{projectId}/analytics/boards": {
391
+ "/api/v1/dashboards/{dashboardId}/widgets/{widgetId}": {
373
392
  parameters: {
374
393
  query?: never;
375
394
  header?: never;
@@ -377,16 +396,24 @@ interface paths {
377
396
  cookie?: never;
378
397
  };
379
398
  /**
380
- * List Dashboards boards
381
- * @description Lists this project's boards in the Dashboards area, each with how many widgets it holds. Pass a board's id to the dashboard widget's add-to-dashboard endpoint to place a widget on it. Analytics Reports boards are listed by /api/v1/dashboards instead.
399
+ * Get a widget on a dashboard
400
+ * @description Returns one widget on this dashboard with its React source and named queries.
382
401
  */
383
- get: operations["getApiV1ProjectsByProjectIdAnalyticsBoards"];
402
+ get: operations["getApiDashboardsByDashboardIdWidgetsByWidgetId"];
384
403
  put?: never;
385
404
  post?: never;
386
- delete?: never;
405
+ /**
406
+ * Delete a widget on a dashboard
407
+ * @description Deletes one widget on this dashboard. Answers 204 with no body.
408
+ */
409
+ delete: operations["deleteApiDashboardsByDashboardIdWidgetsByWidgetId"];
387
410
  options?: never;
388
411
  head?: never;
389
- patch?: never;
412
+ /**
413
+ * Update a widget on a dashboard
414
+ * @description Changes a widget's name, code, queries, description or source. A field the body leaves out keeps its stored value. A body with none of these fields is refused.
415
+ */
416
+ patch: operations["patchApiDashboardsByDashboardIdWidgetsByWidgetId"];
390
417
  trace?: never;
391
418
  };
392
419
  "/api/v1/graphs": {
@@ -4873,7 +4900,7 @@ interface operations {
4873
4900
  };
4874
4901
  };
4875
4902
  };
4876
- getApiDashboards: {
4903
+ getApiV1AnalyticsReports: {
4877
4904
  parameters: {
4878
4905
  query?: never;
4879
4906
  header?: never;
@@ -4905,7 +4932,7 @@ interface operations {
4905
4932
  };
4906
4933
  };
4907
4934
  };
4908
- postApiDashboards: {
4935
+ postApiV1AnalyticsReports: {
4909
4936
  parameters: {
4910
4937
  query?: never;
4911
4938
  header?: never;
@@ -4940,12 +4967,12 @@ interface operations {
4940
4967
  };
4941
4968
  };
4942
4969
  };
4943
- getApiDashboardsById: {
4970
+ getApiV1AnalyticsReportsByReportId: {
4944
4971
  parameters: {
4945
4972
  query?: never;
4946
4973
  header?: never;
4947
4974
  path: {
4948
- id: string;
4975
+ reportId: string;
4949
4976
  };
4950
4977
  cookie?: never;
4951
4978
  };
@@ -4991,12 +5018,12 @@ interface operations {
4991
5018
  };
4992
5019
  };
4993
5020
  };
4994
- deleteApiDashboardsById: {
5021
+ deleteApiV1AnalyticsReportsByReportId: {
4995
5022
  parameters: {
4996
5023
  query?: never;
4997
5024
  header?: never;
4998
5025
  path: {
4999
- id: string;
5026
+ reportId: string;
5000
5027
  };
5001
5028
  cookie?: never;
5002
5029
  };
@@ -5016,12 +5043,12 @@ interface operations {
5016
5043
  };
5017
5044
  };
5018
5045
  };
5019
- patchApiDashboardsById: {
5046
+ patchApiV1AnalyticsReportsByReportId: {
5020
5047
  parameters: {
5021
5048
  query?: never;
5022
5049
  header?: never;
5023
5050
  path: {
5024
- id: string;
5051
+ reportId: string;
5025
5052
  };
5026
5053
  cookie?: never;
5027
5054
  };
@@ -5053,18 +5080,16 @@ interface operations {
5053
5080
  };
5054
5081
  };
5055
5082
  };
5056
- getApiV1ProjectsByProjectIdAnalyticsDashboardWidgets: {
5083
+ getApiDashboards: {
5057
5084
  parameters: {
5058
5085
  query?: never;
5059
5086
  header?: never;
5060
- path: {
5061
- projectId: string;
5062
- };
5087
+ path?: never;
5063
5088
  cookie?: never;
5064
5089
  };
5065
5090
  requestBody?: never;
5066
5091
  responses: {
5067
- /** @description The project's dashboard widgets */
5092
+ /** @description The project's dashboards */
5068
5093
  200: {
5069
5094
  headers: {
5070
5095
  [name: string]: unknown;
@@ -5074,44 +5099,15 @@ interface operations {
5074
5099
  data: {
5075
5100
  id: string;
5076
5101
  name: string;
5077
- definition: {
5078
- version: number;
5079
- code: string;
5080
- queries: {
5081
- name: string;
5082
- sql: string;
5083
- parameters?: {
5084
- name: string;
5085
- /** @enum {string} */
5086
- type: "string" | "number" | "boolean";
5087
- default?: string | number | boolean;
5088
- }[];
5089
- }[];
5090
- description?: string;
5091
- prompt?: string;
5092
- source?: {
5093
- /** @constant */
5094
- kind: "catalogue";
5095
- catalogueId: string;
5096
- } | {
5097
- /** @constant */
5098
- kind: "langy";
5099
- } | {
5100
- /** @constant */
5101
- kind: "code";
5102
- } | {
5103
- /** @constant */
5104
- kind: "api";
5105
- };
5106
- };
5102
+ description: string | null;
5103
+ /** @enum {string} */
5104
+ scope: "PRIVATE" | "PROJECT" | "ORGANIZATION";
5105
+ excludedOrigins: string[] | null;
5106
+ createdById: string | null;
5107
5107
  createdAt: string;
5108
5108
  updatedAt: string;
5109
5109
  platformUrl: string;
5110
- dashboardId: string | null;
5111
- gridColumn: number;
5112
- gridRow: number;
5113
- colSpan: number;
5114
- rowSpan: number;
5110
+ widgetCount: number;
5115
5111
  }[];
5116
5112
  };
5117
5113
  };
@@ -5238,51 +5234,22 @@ interface operations {
5238
5234
  };
5239
5235
  };
5240
5236
  };
5241
- postApiV1ProjectsByProjectIdAnalyticsDashboardWidgets: {
5237
+ postApiDashboards: {
5242
5238
  parameters: {
5243
5239
  query?: never;
5244
5240
  header?: never;
5245
- path: {
5246
- projectId: string;
5247
- };
5241
+ path?: never;
5248
5242
  cookie?: never;
5249
5243
  };
5250
5244
  requestBody: {
5251
5245
  content: {
5252
5246
  "application/json": {
5253
5247
  name: string;
5254
- code: string;
5255
- queries: {
5256
- name: string;
5257
- sql: string;
5258
- parameters?: {
5259
- name: string;
5260
- /** @enum {string} */
5261
- type: "string" | "number" | "boolean";
5262
- default?: string | number | boolean;
5263
- }[];
5264
- }[];
5265
- description?: string;
5266
- prompt?: string;
5267
- source?: {
5268
- /** @constant */
5269
- kind: "catalogue";
5270
- catalogueId: string;
5271
- } | {
5272
- /** @constant */
5273
- kind: "langy";
5274
- } | {
5275
- /** @constant */
5276
- kind: "code";
5277
- } | {
5278
- /** @constant */
5279
- kind: "api";
5280
- };
5281
5248
  };
5282
5249
  };
5283
5250
  };
5284
5251
  responses: {
5285
- /** @description The widget was saved */
5252
+ /** @description The dashboard was created */
5286
5253
  201: {
5287
5254
  headers: {
5288
5255
  [name: string]: unknown;
@@ -5291,44 +5258,14 @@ interface operations {
5291
5258
  "application/json": {
5292
5259
  id: string;
5293
5260
  name: string;
5294
- definition: {
5295
- version: number;
5296
- code: string;
5297
- queries: {
5298
- name: string;
5299
- sql: string;
5300
- parameters?: {
5301
- name: string;
5302
- /** @enum {string} */
5303
- type: "string" | "number" | "boolean";
5304
- default?: string | number | boolean;
5305
- }[];
5306
- }[];
5307
- description?: string;
5308
- prompt?: string;
5309
- source?: {
5310
- /** @constant */
5311
- kind: "catalogue";
5312
- catalogueId: string;
5313
- } | {
5314
- /** @constant */
5315
- kind: "langy";
5316
- } | {
5317
- /** @constant */
5318
- kind: "code";
5319
- } | {
5320
- /** @constant */
5321
- kind: "api";
5322
- };
5323
- };
5261
+ description: string | null;
5262
+ /** @enum {string} */
5263
+ scope: "PRIVATE" | "PROJECT" | "ORGANIZATION";
5264
+ excludedOrigins: string[] | null;
5265
+ createdById: string | null;
5324
5266
  createdAt: string;
5325
5267
  updatedAt: string;
5326
5268
  platformUrl: string;
5327
- dashboardId: string | null;
5328
- gridColumn: number;
5329
- gridRow: number;
5330
- colSpan: number;
5331
- rowSpan: number;
5332
5269
  };
5333
5270
  };
5334
5271
  };
@@ -5454,19 +5391,18 @@ interface operations {
5454
5391
  };
5455
5392
  };
5456
5393
  };
5457
- getApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetId: {
5394
+ getApiDashboardsByDashboardId: {
5458
5395
  parameters: {
5459
5396
  query?: never;
5460
5397
  header?: never;
5461
5398
  path: {
5462
- projectId: string;
5463
- widgetId: string;
5399
+ dashboardId: string;
5464
5400
  };
5465
5401
  cookie?: never;
5466
5402
  };
5467
5403
  requestBody?: never;
5468
5404
  responses: {
5469
- /** @description The dashboard widget */
5405
+ /** @description The dashboard */
5470
5406
  200: {
5471
5407
  headers: {
5472
5408
  [name: string]: unknown;
@@ -5475,44 +5411,14 @@ interface operations {
5475
5411
  "application/json": {
5476
5412
  id: string;
5477
5413
  name: string;
5478
- definition: {
5479
- version: number;
5480
- code: string;
5481
- queries: {
5482
- name: string;
5483
- sql: string;
5484
- parameters?: {
5485
- name: string;
5486
- /** @enum {string} */
5487
- type: "string" | "number" | "boolean";
5488
- default?: string | number | boolean;
5489
- }[];
5490
- }[];
5491
- description?: string;
5492
- prompt?: string;
5493
- source?: {
5494
- /** @constant */
5495
- kind: "catalogue";
5496
- catalogueId: string;
5497
- } | {
5498
- /** @constant */
5499
- kind: "langy";
5500
- } | {
5501
- /** @constant */
5502
- kind: "code";
5503
- } | {
5504
- /** @constant */
5505
- kind: "api";
5506
- };
5507
- };
5414
+ description: string | null;
5415
+ /** @enum {string} */
5416
+ scope: "PRIVATE" | "PROJECT" | "ORGANIZATION";
5417
+ excludedOrigins: string[] | null;
5418
+ createdById: string | null;
5508
5419
  createdAt: string;
5509
5420
  updatedAt: string;
5510
5421
  platformUrl: string;
5511
- dashboardId: string | null;
5512
- gridColumn: number;
5513
- gridRow: number;
5514
- colSpan: number;
5515
- rowSpan: number;
5516
5422
  };
5517
5423
  };
5518
5424
  };
@@ -5606,7 +5512,7 @@ interface operations {
5606
5512
  };
5607
5513
  };
5608
5514
  };
5609
- /** @description No dashboard widget with this id in this project */
5515
+ /** @description No dashboard with this id for this key. A dashboard made by POST /api/v1/analytics/reports is an Analytics Report and is not found here. */
5610
5516
  404: {
5611
5517
  headers: {
5612
5518
  [name: string]: unknown;
@@ -5668,33 +5574,28 @@ interface operations {
5668
5574
  };
5669
5575
  };
5670
5576
  };
5671
- deleteApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetId: {
5577
+ deleteApiDashboardsByDashboardId: {
5672
5578
  parameters: {
5673
5579
  query?: never;
5674
5580
  header?: never;
5675
5581
  path: {
5676
- projectId: string;
5677
- widgetId: string;
5582
+ dashboardId: string;
5678
5583
  };
5679
5584
  cookie?: never;
5680
5585
  };
5681
5586
  requestBody?: never;
5682
5587
  responses: {
5683
- /** @description Success */
5588
+ /** @description The dashboard was deleted */
5684
5589
  200: {
5685
5590
  headers: {
5686
5591
  [name: string]: unknown;
5687
5592
  };
5688
5593
  content: {
5689
- "application/json": unknown;
5690
- };
5691
- };
5692
- /** @description The widget was deleted */
5693
- 204: {
5694
- headers: {
5695
- [name: string]: unknown;
5594
+ "application/json": {
5595
+ id: string;
5596
+ name: string;
5597
+ };
5696
5598
  };
5697
- content?: never;
5698
5599
  };
5699
5600
  /** @description Bad Request */
5700
5601
  400: {
@@ -5786,7 +5687,7 @@ interface operations {
5786
5687
  };
5787
5688
  };
5788
5689
  };
5789
- /** @description No dashboard widget with this id in this project */
5690
+ /** @description No dashboard with this id for this key. A dashboard made by POST /api/v1/analytics/reports is an Analytics Report and is not found here. */
5790
5691
  404: {
5791
5692
  headers: {
5792
5693
  [name: string]: unknown;
@@ -5848,13 +5749,12 @@ interface operations {
5848
5749
  };
5849
5750
  };
5850
5751
  };
5851
- patchApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetId: {
5752
+ patchApiDashboardsByDashboardId: {
5852
5753
  parameters: {
5853
5754
  query?: never;
5854
5755
  header?: never;
5855
5756
  path: {
5856
- projectId: string;
5857
- widgetId: string;
5757
+ dashboardId: string;
5858
5758
  };
5859
5759
  cookie?: never;
5860
5760
  };
@@ -5862,37 +5762,13 @@ interface operations {
5862
5762
  content: {
5863
5763
  "application/json": {
5864
5764
  name?: string;
5865
- code?: string;
5866
- queries?: {
5867
- name: string;
5868
- sql: string;
5869
- parameters?: {
5870
- name: string;
5871
- /** @enum {string} */
5872
- type: "string" | "number" | "boolean";
5873
- default?: string | number | boolean;
5874
- }[];
5875
- }[];
5876
- description?: string;
5877
- source?: {
5878
- /** @constant */
5879
- kind: "catalogue";
5880
- catalogueId: string;
5881
- } | {
5882
- /** @constant */
5883
- kind: "langy";
5884
- } | {
5885
- /** @constant */
5886
- kind: "code";
5887
- } | {
5888
- /** @constant */
5889
- kind: "api";
5890
- };
5765
+ description?: string | null;
5766
+ excludedOrigins?: string[] | null;
5891
5767
  };
5892
5768
  };
5893
5769
  };
5894
5770
  responses: {
5895
- /** @description The updated widget */
5771
+ /** @description The updated dashboard */
5896
5772
  200: {
5897
5773
  headers: {
5898
5774
  [name: string]: unknown;
@@ -5901,30 +5777,675 @@ interface operations {
5901
5777
  "application/json": {
5902
5778
  id: string;
5903
5779
  name: string;
5904
- definition: {
5905
- version: number;
5906
- code: string;
5907
- queries: {
5908
- name: string;
5909
- sql: string;
5910
- parameters?: {
5911
- name: string;
5912
- /** @enum {string} */
5913
- type: "string" | "number" | "boolean";
5914
- default?: string | number | boolean;
5915
- }[];
5916
- }[];
5917
- description?: string;
5918
- prompt?: string;
5919
- source?: {
5920
- /** @constant */
5921
- kind: "catalogue";
5922
- catalogueId: string;
5923
- } | {
5924
- /** @constant */
5925
- kind: "langy";
5926
- } | {
5927
- /** @constant */
5780
+ description: string | null;
5781
+ /** @enum {string} */
5782
+ scope: "PRIVATE" | "PROJECT" | "ORGANIZATION";
5783
+ excludedOrigins: string[] | null;
5784
+ createdById: string | null;
5785
+ createdAt: string;
5786
+ updatedAt: string;
5787
+ platformUrl: string;
5788
+ };
5789
+ };
5790
+ };
5791
+ /** @description Bad Request */
5792
+ 400: {
5793
+ headers: {
5794
+ [name: string]: unknown;
5795
+ };
5796
+ content: {
5797
+ "application/json": {
5798
+ type: string;
5799
+ code: string;
5800
+ message: string;
5801
+ retryable: boolean;
5802
+ meta?: {
5803
+ [key: string]: unknown;
5804
+ };
5805
+ trace_id?: string;
5806
+ span_id?: string;
5807
+ trace?: {
5808
+ traceId?: string;
5809
+ spanId?: string;
5810
+ traceUrl?: string;
5811
+ logsUrl?: string;
5812
+ };
5813
+ tips?: string[];
5814
+ docs_url?: string;
5815
+ /** @enum {string} */
5816
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
5817
+ reasons?: unknown[];
5818
+ };
5819
+ };
5820
+ };
5821
+ /** @description Unauthorized */
5822
+ 401: {
5823
+ headers: {
5824
+ [name: string]: unknown;
5825
+ };
5826
+ content: {
5827
+ "application/json": {
5828
+ type: string;
5829
+ code: string;
5830
+ message: string;
5831
+ retryable: boolean;
5832
+ meta?: {
5833
+ [key: string]: unknown;
5834
+ };
5835
+ trace_id?: string;
5836
+ span_id?: string;
5837
+ trace?: {
5838
+ traceId?: string;
5839
+ spanId?: string;
5840
+ traceUrl?: string;
5841
+ logsUrl?: string;
5842
+ };
5843
+ tips?: string[];
5844
+ docs_url?: string;
5845
+ /** @enum {string} */
5846
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
5847
+ reasons?: unknown[];
5848
+ };
5849
+ };
5850
+ };
5851
+ /** @description Forbidden */
5852
+ 403: {
5853
+ headers: {
5854
+ [name: string]: unknown;
5855
+ };
5856
+ content: {
5857
+ "application/json": {
5858
+ type: string;
5859
+ code: string;
5860
+ message: string;
5861
+ retryable: boolean;
5862
+ meta?: {
5863
+ [key: string]: unknown;
5864
+ };
5865
+ trace_id?: string;
5866
+ span_id?: string;
5867
+ trace?: {
5868
+ traceId?: string;
5869
+ spanId?: string;
5870
+ traceUrl?: string;
5871
+ logsUrl?: string;
5872
+ };
5873
+ tips?: string[];
5874
+ docs_url?: string;
5875
+ /** @enum {string} */
5876
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
5877
+ reasons?: unknown[];
5878
+ };
5879
+ };
5880
+ };
5881
+ /** @description No dashboard with this id for this key. A dashboard made by POST /api/v1/analytics/reports is an Analytics Report and is not found here. */
5882
+ 404: {
5883
+ headers: {
5884
+ [name: string]: unknown;
5885
+ };
5886
+ content: {
5887
+ "application/json": {
5888
+ type: string;
5889
+ code: string;
5890
+ message: string;
5891
+ retryable: boolean;
5892
+ meta?: {
5893
+ [key: string]: unknown;
5894
+ };
5895
+ trace_id?: string;
5896
+ span_id?: string;
5897
+ trace?: {
5898
+ traceId?: string;
5899
+ spanId?: string;
5900
+ traceUrl?: string;
5901
+ logsUrl?: string;
5902
+ };
5903
+ tips?: string[];
5904
+ docs_url?: string;
5905
+ /** @enum {string} */
5906
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
5907
+ reasons?: unknown[];
5908
+ };
5909
+ };
5910
+ };
5911
+ /** @description Internal Server Error */
5912
+ 500: {
5913
+ headers: {
5914
+ [name: string]: unknown;
5915
+ };
5916
+ content: {
5917
+ "application/json": {
5918
+ type: string;
5919
+ code: string;
5920
+ message: string;
5921
+ retryable: boolean;
5922
+ meta?: {
5923
+ [key: string]: unknown;
5924
+ };
5925
+ trace_id?: string;
5926
+ span_id?: string;
5927
+ trace?: {
5928
+ traceId?: string;
5929
+ spanId?: string;
5930
+ traceUrl?: string;
5931
+ logsUrl?: string;
5932
+ };
5933
+ tips?: string[];
5934
+ docs_url?: string;
5935
+ /** @enum {string} */
5936
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
5937
+ reasons?: unknown[];
5938
+ };
5939
+ };
5940
+ };
5941
+ };
5942
+ };
5943
+ getApiDashboardsByDashboardIdWidgets: {
5944
+ parameters: {
5945
+ query?: never;
5946
+ header?: never;
5947
+ path: {
5948
+ dashboardId: string;
5949
+ };
5950
+ cookie?: never;
5951
+ };
5952
+ requestBody?: never;
5953
+ responses: {
5954
+ /** @description The dashboard's widgets */
5955
+ 200: {
5956
+ headers: {
5957
+ [name: string]: unknown;
5958
+ };
5959
+ content: {
5960
+ "application/json": {
5961
+ data: {
5962
+ id: string;
5963
+ name: string;
5964
+ definition: {
5965
+ version: number;
5966
+ code: string;
5967
+ queries: {
5968
+ name: string;
5969
+ sql: string;
5970
+ parameters?: {
5971
+ name: string;
5972
+ /** @enum {string} */
5973
+ type: "string" | "number" | "boolean";
5974
+ default?: string | number | boolean;
5975
+ }[];
5976
+ }[];
5977
+ description?: string;
5978
+ prompt?: string;
5979
+ source?: {
5980
+ /** @constant */
5981
+ kind: "catalogue";
5982
+ catalogueId: string;
5983
+ } | {
5984
+ /** @constant */
5985
+ kind: "langy";
5986
+ } | {
5987
+ /** @constant */
5988
+ kind: "code";
5989
+ } | {
5990
+ /** @constant */
5991
+ kind: "api";
5992
+ };
5993
+ };
5994
+ createdAt: string;
5995
+ updatedAt: string;
5996
+ platformUrl: string;
5997
+ dashboardId: string | null;
5998
+ gridColumn: number;
5999
+ gridRow: number;
6000
+ colSpan: number;
6001
+ rowSpan: number;
6002
+ }[];
6003
+ };
6004
+ };
6005
+ };
6006
+ /** @description Bad Request */
6007
+ 400: {
6008
+ headers: {
6009
+ [name: string]: unknown;
6010
+ };
6011
+ content: {
6012
+ "application/json": {
6013
+ type: string;
6014
+ code: string;
6015
+ message: string;
6016
+ retryable: boolean;
6017
+ meta?: {
6018
+ [key: string]: unknown;
6019
+ };
6020
+ trace_id?: string;
6021
+ span_id?: string;
6022
+ trace?: {
6023
+ traceId?: string;
6024
+ spanId?: string;
6025
+ traceUrl?: string;
6026
+ logsUrl?: string;
6027
+ };
6028
+ tips?: string[];
6029
+ docs_url?: string;
6030
+ /** @enum {string} */
6031
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
6032
+ reasons?: unknown[];
6033
+ };
6034
+ };
6035
+ };
6036
+ /** @description Unauthorized */
6037
+ 401: {
6038
+ headers: {
6039
+ [name: string]: unknown;
6040
+ };
6041
+ content: {
6042
+ "application/json": {
6043
+ type: string;
6044
+ code: string;
6045
+ message: string;
6046
+ retryable: boolean;
6047
+ meta?: {
6048
+ [key: string]: unknown;
6049
+ };
6050
+ trace_id?: string;
6051
+ span_id?: string;
6052
+ trace?: {
6053
+ traceId?: string;
6054
+ spanId?: string;
6055
+ traceUrl?: string;
6056
+ logsUrl?: string;
6057
+ };
6058
+ tips?: string[];
6059
+ docs_url?: string;
6060
+ /** @enum {string} */
6061
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
6062
+ reasons?: unknown[];
6063
+ };
6064
+ };
6065
+ };
6066
+ /** @description Forbidden */
6067
+ 403: {
6068
+ headers: {
6069
+ [name: string]: unknown;
6070
+ };
6071
+ content: {
6072
+ "application/json": {
6073
+ type: string;
6074
+ code: string;
6075
+ message: string;
6076
+ retryable: boolean;
6077
+ meta?: {
6078
+ [key: string]: unknown;
6079
+ };
6080
+ trace_id?: string;
6081
+ span_id?: string;
6082
+ trace?: {
6083
+ traceId?: string;
6084
+ spanId?: string;
6085
+ traceUrl?: string;
6086
+ logsUrl?: string;
6087
+ };
6088
+ tips?: string[];
6089
+ docs_url?: string;
6090
+ /** @enum {string} */
6091
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
6092
+ reasons?: unknown[];
6093
+ };
6094
+ };
6095
+ };
6096
+ /** @description No dashboard with this id for this key. A dashboard made by POST /api/v1/analytics/reports is an Analytics Report and is not found here. */
6097
+ 404: {
6098
+ headers: {
6099
+ [name: string]: unknown;
6100
+ };
6101
+ content: {
6102
+ "application/json": {
6103
+ type: string;
6104
+ code: string;
6105
+ message: string;
6106
+ retryable: boolean;
6107
+ meta?: {
6108
+ [key: string]: unknown;
6109
+ };
6110
+ trace_id?: string;
6111
+ span_id?: string;
6112
+ trace?: {
6113
+ traceId?: string;
6114
+ spanId?: string;
6115
+ traceUrl?: string;
6116
+ logsUrl?: string;
6117
+ };
6118
+ tips?: string[];
6119
+ docs_url?: string;
6120
+ /** @enum {string} */
6121
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
6122
+ reasons?: unknown[];
6123
+ };
6124
+ };
6125
+ };
6126
+ /** @description Internal Server Error */
6127
+ 500: {
6128
+ headers: {
6129
+ [name: string]: unknown;
6130
+ };
6131
+ content: {
6132
+ "application/json": {
6133
+ type: string;
6134
+ code: string;
6135
+ message: string;
6136
+ retryable: boolean;
6137
+ meta?: {
6138
+ [key: string]: unknown;
6139
+ };
6140
+ trace_id?: string;
6141
+ span_id?: string;
6142
+ trace?: {
6143
+ traceId?: string;
6144
+ spanId?: string;
6145
+ traceUrl?: string;
6146
+ logsUrl?: string;
6147
+ };
6148
+ tips?: string[];
6149
+ docs_url?: string;
6150
+ /** @enum {string} */
6151
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
6152
+ reasons?: unknown[];
6153
+ };
6154
+ };
6155
+ };
6156
+ };
6157
+ };
6158
+ postApiDashboardsByDashboardIdWidgets: {
6159
+ parameters: {
6160
+ query?: never;
6161
+ header?: never;
6162
+ path: {
6163
+ dashboardId: string;
6164
+ };
6165
+ cookie?: never;
6166
+ };
6167
+ requestBody: {
6168
+ content: {
6169
+ "application/json": {
6170
+ name: string;
6171
+ code: string;
6172
+ queries: {
6173
+ name: string;
6174
+ sql: string;
6175
+ parameters?: {
6176
+ name: string;
6177
+ /** @enum {string} */
6178
+ type: "string" | "number" | "boolean";
6179
+ default?: string | number | boolean;
6180
+ }[];
6181
+ }[];
6182
+ description?: string;
6183
+ prompt?: string;
6184
+ source?: {
6185
+ /** @constant */
6186
+ kind: "catalogue";
6187
+ catalogueId: string;
6188
+ } | {
6189
+ /** @constant */
6190
+ kind: "langy";
6191
+ } | {
6192
+ /** @constant */
6193
+ kind: "code";
6194
+ } | {
6195
+ /** @constant */
6196
+ kind: "api";
6197
+ };
6198
+ };
6199
+ };
6200
+ };
6201
+ responses: {
6202
+ /** @description The widget was saved on the dashboard */
6203
+ 201: {
6204
+ headers: {
6205
+ [name: string]: unknown;
6206
+ };
6207
+ content: {
6208
+ "application/json": {
6209
+ id: string;
6210
+ name: string;
6211
+ definition: {
6212
+ version: number;
6213
+ code: string;
6214
+ queries: {
6215
+ name: string;
6216
+ sql: string;
6217
+ parameters?: {
6218
+ name: string;
6219
+ /** @enum {string} */
6220
+ type: "string" | "number" | "boolean";
6221
+ default?: string | number | boolean;
6222
+ }[];
6223
+ }[];
6224
+ description?: string;
6225
+ prompt?: string;
6226
+ source?: {
6227
+ /** @constant */
6228
+ kind: "catalogue";
6229
+ catalogueId: string;
6230
+ } | {
6231
+ /** @constant */
6232
+ kind: "langy";
6233
+ } | {
6234
+ /** @constant */
6235
+ kind: "code";
6236
+ } | {
6237
+ /** @constant */
6238
+ kind: "api";
6239
+ };
6240
+ };
6241
+ createdAt: string;
6242
+ updatedAt: string;
6243
+ platformUrl: string;
6244
+ dashboardId: string | null;
6245
+ gridColumn: number;
6246
+ gridRow: number;
6247
+ colSpan: number;
6248
+ rowSpan: number;
6249
+ };
6250
+ };
6251
+ };
6252
+ /** @description Bad Request */
6253
+ 400: {
6254
+ headers: {
6255
+ [name: string]: unknown;
6256
+ };
6257
+ content: {
6258
+ "application/json": {
6259
+ type: string;
6260
+ code: string;
6261
+ message: string;
6262
+ retryable: boolean;
6263
+ meta?: {
6264
+ [key: string]: unknown;
6265
+ };
6266
+ trace_id?: string;
6267
+ span_id?: string;
6268
+ trace?: {
6269
+ traceId?: string;
6270
+ spanId?: string;
6271
+ traceUrl?: string;
6272
+ logsUrl?: string;
6273
+ };
6274
+ tips?: string[];
6275
+ docs_url?: string;
6276
+ /** @enum {string} */
6277
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
6278
+ reasons?: unknown[];
6279
+ };
6280
+ };
6281
+ };
6282
+ /** @description Unauthorized */
6283
+ 401: {
6284
+ headers: {
6285
+ [name: string]: unknown;
6286
+ };
6287
+ content: {
6288
+ "application/json": {
6289
+ type: string;
6290
+ code: string;
6291
+ message: string;
6292
+ retryable: boolean;
6293
+ meta?: {
6294
+ [key: string]: unknown;
6295
+ };
6296
+ trace_id?: string;
6297
+ span_id?: string;
6298
+ trace?: {
6299
+ traceId?: string;
6300
+ spanId?: string;
6301
+ traceUrl?: string;
6302
+ logsUrl?: string;
6303
+ };
6304
+ tips?: string[];
6305
+ docs_url?: string;
6306
+ /** @enum {string} */
6307
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
6308
+ reasons?: unknown[];
6309
+ };
6310
+ };
6311
+ };
6312
+ /** @description Forbidden */
6313
+ 403: {
6314
+ headers: {
6315
+ [name: string]: unknown;
6316
+ };
6317
+ content: {
6318
+ "application/json": {
6319
+ type: string;
6320
+ code: string;
6321
+ message: string;
6322
+ retryable: boolean;
6323
+ meta?: {
6324
+ [key: string]: unknown;
6325
+ };
6326
+ trace_id?: string;
6327
+ span_id?: string;
6328
+ trace?: {
6329
+ traceId?: string;
6330
+ spanId?: string;
6331
+ traceUrl?: string;
6332
+ logsUrl?: string;
6333
+ };
6334
+ tips?: string[];
6335
+ docs_url?: string;
6336
+ /** @enum {string} */
6337
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
6338
+ reasons?: unknown[];
6339
+ };
6340
+ };
6341
+ };
6342
+ /** @description No dashboard with this id for this key. A dashboard made by POST /api/v1/analytics/reports is an Analytics Report and is not found here. */
6343
+ 404: {
6344
+ headers: {
6345
+ [name: string]: unknown;
6346
+ };
6347
+ content: {
6348
+ "application/json": {
6349
+ type: string;
6350
+ code: string;
6351
+ message: string;
6352
+ retryable: boolean;
6353
+ meta?: {
6354
+ [key: string]: unknown;
6355
+ };
6356
+ trace_id?: string;
6357
+ span_id?: string;
6358
+ trace?: {
6359
+ traceId?: string;
6360
+ spanId?: string;
6361
+ traceUrl?: string;
6362
+ logsUrl?: string;
6363
+ };
6364
+ tips?: string[];
6365
+ docs_url?: string;
6366
+ /** @enum {string} */
6367
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
6368
+ reasons?: unknown[];
6369
+ };
6370
+ };
6371
+ };
6372
+ /** @description Internal Server Error */
6373
+ 500: {
6374
+ headers: {
6375
+ [name: string]: unknown;
6376
+ };
6377
+ content: {
6378
+ "application/json": {
6379
+ type: string;
6380
+ code: string;
6381
+ message: string;
6382
+ retryable: boolean;
6383
+ meta?: {
6384
+ [key: string]: unknown;
6385
+ };
6386
+ trace_id?: string;
6387
+ span_id?: string;
6388
+ trace?: {
6389
+ traceId?: string;
6390
+ spanId?: string;
6391
+ traceUrl?: string;
6392
+ logsUrl?: string;
6393
+ };
6394
+ tips?: string[];
6395
+ docs_url?: string;
6396
+ /** @enum {string} */
6397
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
6398
+ reasons?: unknown[];
6399
+ };
6400
+ };
6401
+ };
6402
+ };
6403
+ };
6404
+ getApiDashboardsByDashboardIdWidgetsByWidgetId: {
6405
+ parameters: {
6406
+ query?: never;
6407
+ header?: never;
6408
+ path: {
6409
+ dashboardId: string;
6410
+ widgetId: string;
6411
+ };
6412
+ cookie?: never;
6413
+ };
6414
+ requestBody?: never;
6415
+ responses: {
6416
+ /** @description The widget */
6417
+ 200: {
6418
+ headers: {
6419
+ [name: string]: unknown;
6420
+ };
6421
+ content: {
6422
+ "application/json": {
6423
+ id: string;
6424
+ name: string;
6425
+ definition: {
6426
+ version: number;
6427
+ code: string;
6428
+ queries: {
6429
+ name: string;
6430
+ sql: string;
6431
+ parameters?: {
6432
+ name: string;
6433
+ /** @enum {string} */
6434
+ type: "string" | "number" | "boolean";
6435
+ default?: string | number | boolean;
6436
+ }[];
6437
+ }[];
6438
+ description?: string;
6439
+ prompt?: string;
6440
+ source?: {
6441
+ /** @constant */
6442
+ kind: "catalogue";
6443
+ catalogueId: string;
6444
+ } | {
6445
+ /** @constant */
6446
+ kind: "langy";
6447
+ } | {
6448
+ /** @constant */
5928
6449
  kind: "code";
5929
6450
  } | {
5930
6451
  /** @constant */
@@ -6032,7 +6553,7 @@ interface operations {
6032
6553
  };
6033
6554
  };
6034
6555
  };
6035
- /** @description No dashboard widget with this id in this project */
6556
+ /** @description No dashboard with this id, or no widget with this id on that dashboard */
6036
6557
  404: {
6037
6558
  headers: {
6038
6559
  [name: string]: unknown;
@@ -6094,73 +6615,33 @@ interface operations {
6094
6615
  };
6095
6616
  };
6096
6617
  };
6097
- postApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetIdDashboard: {
6618
+ deleteApiDashboardsByDashboardIdWidgetsByWidgetId: {
6098
6619
  parameters: {
6099
6620
  query?: never;
6100
6621
  header?: never;
6101
6622
  path: {
6102
- projectId: string;
6623
+ dashboardId: string;
6103
6624
  widgetId: string;
6104
6625
  };
6105
6626
  cookie?: never;
6106
6627
  };
6107
- requestBody: {
6108
- content: {
6109
- "application/json": {
6110
- dashboardId: string;
6111
- };
6112
- };
6113
- };
6628
+ requestBody?: never;
6114
6629
  responses: {
6115
- /** @description The widget was added to the dashboard */
6630
+ /** @description Success */
6116
6631
  200: {
6117
6632
  headers: {
6118
6633
  [name: string]: unknown;
6119
6634
  };
6120
6635
  content: {
6121
- "application/json": {
6122
- id: string;
6123
- name: string;
6124
- definition: {
6125
- version: number;
6126
- code: string;
6127
- queries: {
6128
- name: string;
6129
- sql: string;
6130
- parameters?: {
6131
- name: string;
6132
- /** @enum {string} */
6133
- type: "string" | "number" | "boolean";
6134
- default?: string | number | boolean;
6135
- }[];
6136
- }[];
6137
- description?: string;
6138
- prompt?: string;
6139
- source?: {
6140
- /** @constant */
6141
- kind: "catalogue";
6142
- catalogueId: string;
6143
- } | {
6144
- /** @constant */
6145
- kind: "langy";
6146
- } | {
6147
- /** @constant */
6148
- kind: "code";
6149
- } | {
6150
- /** @constant */
6151
- kind: "api";
6152
- };
6153
- };
6154
- createdAt: string;
6155
- updatedAt: string;
6156
- platformUrl: string;
6157
- dashboardId: string | null;
6158
- gridColumn: number;
6159
- gridRow: number;
6160
- colSpan: number;
6161
- rowSpan: number;
6162
- };
6636
+ "application/json": unknown;
6637
+ };
6638
+ };
6639
+ /** @description The widget was deleted */
6640
+ 204: {
6641
+ headers: {
6642
+ [name: string]: unknown;
6163
6643
  };
6644
+ content?: never;
6164
6645
  };
6165
6646
  /** @description Bad Request */
6166
6647
  400: {
@@ -6252,7 +6733,7 @@ interface operations {
6252
6733
  };
6253
6734
  };
6254
6735
  };
6255
- /** @description No dashboard widget with this id in this project */
6736
+ /** @description No dashboard with this id, or no widget with this id on that dashboard */
6256
6737
  404: {
6257
6738
  headers: {
6258
6739
  [name: string]: unknown;
@@ -6314,35 +6795,97 @@ interface operations {
6314
6795
  };
6315
6796
  };
6316
6797
  };
6317
- getApiV1ProjectsByProjectIdAnalyticsBoards: {
6798
+ patchApiDashboardsByDashboardIdWidgetsByWidgetId: {
6318
6799
  parameters: {
6319
6800
  query?: never;
6320
6801
  header?: never;
6321
6802
  path: {
6322
- projectId: string;
6803
+ dashboardId: string;
6804
+ widgetId: string;
6323
6805
  };
6324
6806
  cookie?: never;
6325
6807
  };
6326
- requestBody?: never;
6808
+ requestBody: {
6809
+ content: {
6810
+ "application/json": {
6811
+ name?: string;
6812
+ code?: string;
6813
+ queries?: {
6814
+ name: string;
6815
+ sql: string;
6816
+ parameters?: {
6817
+ name: string;
6818
+ /** @enum {string} */
6819
+ type: "string" | "number" | "boolean";
6820
+ default?: string | number | boolean;
6821
+ }[];
6822
+ }[];
6823
+ description?: string;
6824
+ source?: {
6825
+ /** @constant */
6826
+ kind: "catalogue";
6827
+ catalogueId: string;
6828
+ } | {
6829
+ /** @constant */
6830
+ kind: "langy";
6831
+ } | {
6832
+ /** @constant */
6833
+ kind: "code";
6834
+ } | {
6835
+ /** @constant */
6836
+ kind: "api";
6837
+ };
6838
+ };
6839
+ };
6840
+ };
6327
6841
  responses: {
6328
- /** @description The project's Dashboards boards */
6842
+ /** @description The updated widget */
6329
6843
  200: {
6330
6844
  headers: {
6331
6845
  [name: string]: unknown;
6332
6846
  };
6333
6847
  content: {
6334
6848
  "application/json": {
6335
- data: {
6336
- id: string;
6337
- name: string;
6338
- description: string | null;
6339
- /** @enum {string} */
6340
- scope: "PRIVATE" | "PROJECT" | "ORGANIZATION";
6341
- createdAt: string;
6342
- updatedAt: string;
6343
- platformUrl: string;
6344
- widgetCount: number;
6345
- }[];
6849
+ id: string;
6850
+ name: string;
6851
+ definition: {
6852
+ version: number;
6853
+ code: string;
6854
+ queries: {
6855
+ name: string;
6856
+ sql: string;
6857
+ parameters?: {
6858
+ name: string;
6859
+ /** @enum {string} */
6860
+ type: "string" | "number" | "boolean";
6861
+ default?: string | number | boolean;
6862
+ }[];
6863
+ }[];
6864
+ description?: string;
6865
+ prompt?: string;
6866
+ source?: {
6867
+ /** @constant */
6868
+ kind: "catalogue";
6869
+ catalogueId: string;
6870
+ } | {
6871
+ /** @constant */
6872
+ kind: "langy";
6873
+ } | {
6874
+ /** @constant */
6875
+ kind: "code";
6876
+ } | {
6877
+ /** @constant */
6878
+ kind: "api";
6879
+ };
6880
+ };
6881
+ createdAt: string;
6882
+ updatedAt: string;
6883
+ platformUrl: string;
6884
+ dashboardId: string | null;
6885
+ gridColumn: number;
6886
+ gridRow: number;
6887
+ colSpan: number;
6888
+ rowSpan: number;
6346
6889
  };
6347
6890
  };
6348
6891
  };
@@ -6436,6 +6979,36 @@ interface operations {
6436
6979
  };
6437
6980
  };
6438
6981
  };
6982
+ /** @description No dashboard with this id, or no widget with this id on that dashboard */
6983
+ 404: {
6984
+ headers: {
6985
+ [name: string]: unknown;
6986
+ };
6987
+ content: {
6988
+ "application/json": {
6989
+ type: string;
6990
+ code: string;
6991
+ message: string;
6992
+ retryable: boolean;
6993
+ meta?: {
6994
+ [key: string]: unknown;
6995
+ };
6996
+ trace_id?: string;
6997
+ span_id?: string;
6998
+ trace?: {
6999
+ traceId?: string;
7000
+ spanId?: string;
7001
+ traceUrl?: string;
7002
+ logsUrl?: string;
7003
+ };
7004
+ tips?: string[];
7005
+ docs_url?: string;
7006
+ /** @enum {string} */
7007
+ fault?: "customer" | "platform" | "provider" | "presumed_platform";
7008
+ reasons?: unknown[];
7009
+ };
7010
+ };
7011
+ };
6439
7012
  /** @description Internal Server Error */
6440
7013
  500: {
6441
7014
  headers: {
@@ -12027,9 +12600,9 @@ interface operations {
12027
12600
  options?: (string | number | boolean)[];
12028
12601
  required?: boolean;
12029
12602
  }[];
12030
- /** @description Model for the simulated user, e.g. openai/gpt-5-mini. Null uses the project default. */
12603
+ /** @description Model for the simulated user, e.g. openai/gpt-6-luna. Null uses the project default. */
12031
12604
  simulatorModel?: string | null;
12032
- /** @description Model for the judge, e.g. openai/gpt-5-mini. Null uses the project default. */
12605
+ /** @description Model for the judge, e.g. openai/gpt-6-luna. Null uses the project default. */
12033
12606
  judgeModel?: string | null;
12034
12607
  /** @description Maximum conversation turns for a run of this scenario. Null uses the default. */
12035
12608
  maxTurns?: number | null;
@@ -12180,9 +12753,9 @@ interface operations {
12180
12753
  options?: (string | number | boolean)[];
12181
12754
  required?: boolean;
12182
12755
  }[];
12183
- /** @description Model for the simulated user, e.g. openai/gpt-5-mini. Null uses the project default. */
12756
+ /** @description Model for the simulated user, e.g. openai/gpt-6-luna. Null uses the project default. */
12184
12757
  simulatorModel?: string | null;
12185
- /** @description Model for the judge, e.g. openai/gpt-5-mini. Null uses the project default. */
12758
+ /** @description Model for the judge, e.g. openai/gpt-6-luna. Null uses the project default. */
12186
12759
  judgeModel?: string | null;
12187
12760
  /** @description Maximum conversation turns for a run of this scenario. Null uses the default. */
12188
12761
  maxTurns?: number | null;
@@ -12315,9 +12888,9 @@ interface operations {
12315
12888
  options?: (string | number | boolean)[];
12316
12889
  required?: boolean;
12317
12890
  }[];
12318
- /** @description Model for the simulated user, e.g. openai/gpt-5-mini. Null uses the project default. */
12891
+ /** @description Model for the simulated user, e.g. openai/gpt-6-luna. Null uses the project default. */
12319
12892
  simulatorModel?: string | null;
12320
- /** @description Model for the judge, e.g. openai/gpt-5-mini. Null uses the project default. */
12893
+ /** @description Model for the judge, e.g. openai/gpt-6-luna. Null uses the project default. */
12321
12894
  judgeModel?: string | null;
12322
12895
  /** @description Maximum conversation turns for a run of this scenario. Null uses the default. */
12323
12896
  maxTurns?: number | null;
@@ -15806,7 +16379,7 @@ interface LangWatchSpan extends Span {
15806
16379
  */
15807
16380
  setType(type: SpanType): this;
15808
16381
  /**
15809
- * The model sent in the API request (e.g. 'gpt-4'), as opposed to the response model.
16382
+ * The model sent in the API request (e.g. 'gpt-6-luna'), as opposed to the response model.
15810
16383
  * @param model - The request model name
15811
16384
  * @returns this
15812
16385
  */