langwatch 1.13.0 → 1.14.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 (30) hide show
  1. package/dist/agent/index.js +1 -1
  2. package/dist/agent/index.js.map +1 -1
  3. package/dist/agent/index.mjs +1 -1
  4. package/dist/agent/index.mjs.map +1 -1
  5. package/dist/{chunk-G64XZMIU.js → chunk-7FIG44IG.js} +12 -12
  6. package/dist/{chunk-G64XZMIU.js.map → chunk-7FIG44IG.js.map} +1 -1
  7. package/dist/{chunk-N3755EHD.mjs → chunk-MCM4C66E.mjs} +2 -2
  8. package/dist/{chunk-7R54TMZZ.js → chunk-MGASIVXD.js} +2 -2
  9. package/dist/{chunk-7R54TMZZ.js.map → chunk-MGASIVXD.js.map} +1 -1
  10. package/dist/{chunk-UHRSTPZ5.mjs → chunk-QKIDVFHZ.mjs} +2 -2
  11. package/dist/{chunk-UHRSTPZ5.mjs.map → chunk-QKIDVFHZ.mjs.map} +1 -1
  12. package/dist/cli/bundle.js +284 -735
  13. package/dist/{implementation-BOP-3GoX.d.mts → implementation-BXX0qdV7.d.mts} +1 -1
  14. package/dist/{implementation-BDK4X-CS.d.ts → implementation-Cv7sBdwj.d.ts} +1 -1
  15. package/dist/index.d.mts +2 -2
  16. package/dist/index.d.ts +2 -2
  17. package/dist/index.js +33 -33
  18. package/dist/index.mjs +2 -2
  19. package/dist/observability-sdk/index.d.mts +3 -3
  20. package/dist/observability-sdk/index.d.ts +3 -3
  21. package/dist/observability-sdk/index.js +2 -2
  22. package/dist/observability-sdk/index.mjs +1 -1
  23. package/dist/observability-sdk/instrumentation/langchain/index.d.mts +1 -1
  24. package/dist/observability-sdk/instrumentation/langchain/index.d.ts +1 -1
  25. package/dist/observability-sdk/setup/node/index.js +3 -3
  26. package/dist/observability-sdk/setup/node/index.mjs +2 -2
  27. package/dist/{types-C3SDhizh.d.ts → types-BejNp4Dw.d.ts} +933 -0
  28. package/dist/{types-C9abONOS.d.mts → types-DXNIJdZx.d.mts} +933 -0
  29. package/package.json +1 -1
  30. /package/dist/{chunk-N3755EHD.mjs.map → chunk-MCM4C66E.mjs.map} +0 -0
@@ -1307,6 +1307,78 @@ interface paths {
1307
1307
  patch?: never;
1308
1308
  trace?: never;
1309
1309
  };
1310
+ "/api/v1/projects/{projectId}/analytics/dashboard-widgets": {
1311
+ parameters: {
1312
+ query?: never;
1313
+ header?: never;
1314
+ path?: never;
1315
+ cookie?: never;
1316
+ };
1317
+ /**
1318
+ * List dashboard widgets
1319
+ * @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.
1320
+ */
1321
+ get: operations["getApiV1ProjectsByProjectIdAnalyticsDashboardWidgets"];
1322
+ put?: never;
1323
+ /**
1324
+ * Create a dashboard widget
1325
+ * @description Saves a React source file and the named LangWatchQL queries it runs as one dashboard widget. 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.
1326
+ */
1327
+ post: operations["postApiV1ProjectsByProjectIdAnalyticsDashboardWidgets"];
1328
+ delete?: never;
1329
+ options?: never;
1330
+ head?: never;
1331
+ patch?: never;
1332
+ trace?: never;
1333
+ };
1334
+ "/api/v1/projects/{projectId}/analytics/dashboard-widgets/{widgetId}": {
1335
+ parameters: {
1336
+ query?: never;
1337
+ header?: never;
1338
+ path?: never;
1339
+ cookie?: never;
1340
+ };
1341
+ /**
1342
+ * Get a dashboard widget
1343
+ * @description Returns one dashboard widget with its React source and named queries. A widget saved in another project is reported as not found.
1344
+ */
1345
+ get: operations["getApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetId"];
1346
+ put?: never;
1347
+ post?: never;
1348
+ /**
1349
+ * Delete a dashboard widget
1350
+ * @description Deletes one dashboard widget. Answers 204 with no body; deleting a widget that is not in this project is reported as not found.
1351
+ */
1352
+ delete: operations["deleteApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetId"];
1353
+ options?: never;
1354
+ head?: never;
1355
+ /**
1356
+ * Update a dashboard widget
1357
+ * @description Replaces a dashboard widget's name, its { code, queries } definition, or both. code and queries are rewritten together — the graph blob holds them as one — so a request that offers one without the other, or neither field at all, is refused.
1358
+ */
1359
+ patch: operations["patchApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetId"];
1360
+ trace?: never;
1361
+ };
1362
+ "/api/v1/projects/{projectId}/analytics/dashboard-widgets/{widgetId}/dashboard": {
1363
+ parameters: {
1364
+ query?: never;
1365
+ header?: never;
1366
+ path?: never;
1367
+ cookie?: never;
1368
+ };
1369
+ get?: never;
1370
+ put?: never;
1371
+ /**
1372
+ * Add a dashboard widget to a dashboard
1373
+ * @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.
1374
+ */
1375
+ post: operations["postApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetIdDashboard"];
1376
+ delete?: never;
1377
+ options?: never;
1378
+ head?: never;
1379
+ patch?: never;
1380
+ trace?: never;
1381
+ };
1310
1382
  "/api/v1/query": {
1311
1383
  parameters: {
1312
1384
  query?: never;
@@ -8270,6 +8342,867 @@ interface operations {
8270
8342
  };
8271
8343
  };
8272
8344
  };
8345
+ getApiV1ProjectsByProjectIdAnalyticsDashboardWidgets: {
8346
+ parameters: {
8347
+ query?: never;
8348
+ header?: never;
8349
+ path: {
8350
+ projectId: string;
8351
+ };
8352
+ cookie?: never;
8353
+ };
8354
+ requestBody?: never;
8355
+ responses: {
8356
+ /** @description The project's dashboard widgets */
8357
+ 200: {
8358
+ headers: {
8359
+ [name: string]: unknown;
8360
+ };
8361
+ content: {
8362
+ "application/json": {
8363
+ data: {
8364
+ id: string;
8365
+ name: string;
8366
+ definition: {
8367
+ version: number;
8368
+ code: string;
8369
+ queries: {
8370
+ name: string;
8371
+ sql: string;
8372
+ parameters?: {
8373
+ name: string;
8374
+ /** @enum {string} */
8375
+ type: "string" | "number" | "boolean";
8376
+ default?: string | number | boolean;
8377
+ }[];
8378
+ }[];
8379
+ };
8380
+ createdAt: string;
8381
+ updatedAt: string;
8382
+ platformUrl: string;
8383
+ dashboardId: string | null;
8384
+ gridColumn: number;
8385
+ gridRow: number;
8386
+ colSpan: number;
8387
+ rowSpan: number;
8388
+ }[];
8389
+ };
8390
+ };
8391
+ };
8392
+ /** @description Bad Request */
8393
+ 400: {
8394
+ headers: {
8395
+ [name: string]: unknown;
8396
+ };
8397
+ content: {
8398
+ "application/json": {
8399
+ error: {
8400
+ type: string;
8401
+ code: string;
8402
+ message: string;
8403
+ meta?: {
8404
+ [key: string]: unknown;
8405
+ };
8406
+ trace_id?: string;
8407
+ span_id?: string;
8408
+ };
8409
+ };
8410
+ };
8411
+ };
8412
+ /** @description Unauthorized */
8413
+ 401: {
8414
+ headers: {
8415
+ [name: string]: unknown;
8416
+ };
8417
+ content: {
8418
+ "application/json": {
8419
+ error: {
8420
+ type: string;
8421
+ code: string;
8422
+ message: string;
8423
+ meta?: {
8424
+ [key: string]: unknown;
8425
+ };
8426
+ trace_id?: string;
8427
+ span_id?: string;
8428
+ };
8429
+ };
8430
+ };
8431
+ };
8432
+ /** @description Forbidden */
8433
+ 403: {
8434
+ headers: {
8435
+ [name: string]: unknown;
8436
+ };
8437
+ content: {
8438
+ "application/json": {
8439
+ error: {
8440
+ type: string;
8441
+ code: string;
8442
+ message: string;
8443
+ meta?: {
8444
+ [key: string]: unknown;
8445
+ };
8446
+ trace_id?: string;
8447
+ span_id?: string;
8448
+ };
8449
+ };
8450
+ };
8451
+ };
8452
+ /** @description Internal Server Error */
8453
+ 500: {
8454
+ headers: {
8455
+ [name: string]: unknown;
8456
+ };
8457
+ content: {
8458
+ "application/json": {
8459
+ error: {
8460
+ type: string;
8461
+ code: string;
8462
+ message: string;
8463
+ meta?: {
8464
+ [key: string]: unknown;
8465
+ };
8466
+ trace_id?: string;
8467
+ span_id?: string;
8468
+ };
8469
+ };
8470
+ };
8471
+ };
8472
+ };
8473
+ };
8474
+ postApiV1ProjectsByProjectIdAnalyticsDashboardWidgets: {
8475
+ parameters: {
8476
+ query?: never;
8477
+ header?: never;
8478
+ path: {
8479
+ projectId: string;
8480
+ };
8481
+ cookie?: never;
8482
+ };
8483
+ requestBody: {
8484
+ content: {
8485
+ "application/json": {
8486
+ name: string;
8487
+ code: string;
8488
+ queries: {
8489
+ name: string;
8490
+ sql: string;
8491
+ parameters?: {
8492
+ name: string;
8493
+ /** @enum {string} */
8494
+ type: "string" | "number" | "boolean";
8495
+ default?: string | number | boolean;
8496
+ }[];
8497
+ }[];
8498
+ };
8499
+ };
8500
+ };
8501
+ responses: {
8502
+ /** @description The widget was saved */
8503
+ 201: {
8504
+ headers: {
8505
+ [name: string]: unknown;
8506
+ };
8507
+ content: {
8508
+ "application/json": {
8509
+ id: string;
8510
+ name: string;
8511
+ definition: {
8512
+ version: number;
8513
+ code: string;
8514
+ queries: {
8515
+ name: string;
8516
+ sql: string;
8517
+ parameters?: {
8518
+ name: string;
8519
+ /** @enum {string} */
8520
+ type: "string" | "number" | "boolean";
8521
+ default?: string | number | boolean;
8522
+ }[];
8523
+ }[];
8524
+ };
8525
+ createdAt: string;
8526
+ updatedAt: string;
8527
+ platformUrl: string;
8528
+ dashboardId: string | null;
8529
+ gridColumn: number;
8530
+ gridRow: number;
8531
+ colSpan: number;
8532
+ rowSpan: number;
8533
+ };
8534
+ };
8535
+ };
8536
+ /** @description Bad Request */
8537
+ 400: {
8538
+ headers: {
8539
+ [name: string]: unknown;
8540
+ };
8541
+ content: {
8542
+ "application/json": {
8543
+ error: {
8544
+ type: string;
8545
+ code: string;
8546
+ message: string;
8547
+ meta?: {
8548
+ [key: string]: unknown;
8549
+ };
8550
+ trace_id?: string;
8551
+ span_id?: string;
8552
+ };
8553
+ };
8554
+ };
8555
+ };
8556
+ /** @description Unauthorized */
8557
+ 401: {
8558
+ headers: {
8559
+ [name: string]: unknown;
8560
+ };
8561
+ content: {
8562
+ "application/json": {
8563
+ error: {
8564
+ type: string;
8565
+ code: string;
8566
+ message: string;
8567
+ meta?: {
8568
+ [key: string]: unknown;
8569
+ };
8570
+ trace_id?: string;
8571
+ span_id?: string;
8572
+ };
8573
+ };
8574
+ };
8575
+ };
8576
+ /** @description Forbidden */
8577
+ 403: {
8578
+ headers: {
8579
+ [name: string]: unknown;
8580
+ };
8581
+ content: {
8582
+ "application/json": {
8583
+ error: {
8584
+ type: string;
8585
+ code: string;
8586
+ message: string;
8587
+ meta?: {
8588
+ [key: string]: unknown;
8589
+ };
8590
+ trace_id?: string;
8591
+ span_id?: string;
8592
+ };
8593
+ };
8594
+ };
8595
+ };
8596
+ /** @description Internal Server Error */
8597
+ 500: {
8598
+ headers: {
8599
+ [name: string]: unknown;
8600
+ };
8601
+ content: {
8602
+ "application/json": {
8603
+ error: {
8604
+ type: string;
8605
+ code: string;
8606
+ message: string;
8607
+ meta?: {
8608
+ [key: string]: unknown;
8609
+ };
8610
+ trace_id?: string;
8611
+ span_id?: string;
8612
+ };
8613
+ };
8614
+ };
8615
+ };
8616
+ };
8617
+ };
8618
+ getApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetId: {
8619
+ parameters: {
8620
+ query?: never;
8621
+ header?: never;
8622
+ path: {
8623
+ projectId: string;
8624
+ widgetId: string;
8625
+ };
8626
+ cookie?: never;
8627
+ };
8628
+ requestBody?: never;
8629
+ responses: {
8630
+ /** @description The dashboard widget */
8631
+ 200: {
8632
+ headers: {
8633
+ [name: string]: unknown;
8634
+ };
8635
+ content: {
8636
+ "application/json": {
8637
+ id: string;
8638
+ name: string;
8639
+ definition: {
8640
+ version: number;
8641
+ code: string;
8642
+ queries: {
8643
+ name: string;
8644
+ sql: string;
8645
+ parameters?: {
8646
+ name: string;
8647
+ /** @enum {string} */
8648
+ type: "string" | "number" | "boolean";
8649
+ default?: string | number | boolean;
8650
+ }[];
8651
+ }[];
8652
+ };
8653
+ createdAt: string;
8654
+ updatedAt: string;
8655
+ platformUrl: string;
8656
+ dashboardId: string | null;
8657
+ gridColumn: number;
8658
+ gridRow: number;
8659
+ colSpan: number;
8660
+ rowSpan: number;
8661
+ };
8662
+ };
8663
+ };
8664
+ /** @description Bad Request */
8665
+ 400: {
8666
+ headers: {
8667
+ [name: string]: unknown;
8668
+ };
8669
+ content: {
8670
+ "application/json": {
8671
+ error: {
8672
+ type: string;
8673
+ code: string;
8674
+ message: string;
8675
+ meta?: {
8676
+ [key: string]: unknown;
8677
+ };
8678
+ trace_id?: string;
8679
+ span_id?: string;
8680
+ };
8681
+ };
8682
+ };
8683
+ };
8684
+ /** @description Unauthorized */
8685
+ 401: {
8686
+ headers: {
8687
+ [name: string]: unknown;
8688
+ };
8689
+ content: {
8690
+ "application/json": {
8691
+ error: {
8692
+ type: string;
8693
+ code: string;
8694
+ message: string;
8695
+ meta?: {
8696
+ [key: string]: unknown;
8697
+ };
8698
+ trace_id?: string;
8699
+ span_id?: string;
8700
+ };
8701
+ };
8702
+ };
8703
+ };
8704
+ /** @description Forbidden */
8705
+ 403: {
8706
+ headers: {
8707
+ [name: string]: unknown;
8708
+ };
8709
+ content: {
8710
+ "application/json": {
8711
+ error: {
8712
+ type: string;
8713
+ code: string;
8714
+ message: string;
8715
+ meta?: {
8716
+ [key: string]: unknown;
8717
+ };
8718
+ trace_id?: string;
8719
+ span_id?: string;
8720
+ };
8721
+ };
8722
+ };
8723
+ };
8724
+ /** @description No dashboard widget with this id in this project */
8725
+ 404: {
8726
+ headers: {
8727
+ [name: string]: unknown;
8728
+ };
8729
+ content: {
8730
+ "application/json": {
8731
+ error: {
8732
+ type: string;
8733
+ code: string;
8734
+ message: string;
8735
+ meta?: {
8736
+ [key: string]: unknown;
8737
+ };
8738
+ trace_id?: string;
8739
+ span_id?: string;
8740
+ };
8741
+ };
8742
+ };
8743
+ };
8744
+ /** @description Internal Server Error */
8745
+ 500: {
8746
+ headers: {
8747
+ [name: string]: unknown;
8748
+ };
8749
+ content: {
8750
+ "application/json": {
8751
+ error: {
8752
+ type: string;
8753
+ code: string;
8754
+ message: string;
8755
+ meta?: {
8756
+ [key: string]: unknown;
8757
+ };
8758
+ trace_id?: string;
8759
+ span_id?: string;
8760
+ };
8761
+ };
8762
+ };
8763
+ };
8764
+ };
8765
+ };
8766
+ deleteApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetId: {
8767
+ parameters: {
8768
+ query?: never;
8769
+ header?: never;
8770
+ path: {
8771
+ projectId: string;
8772
+ widgetId: string;
8773
+ };
8774
+ cookie?: never;
8775
+ };
8776
+ requestBody?: never;
8777
+ responses: {
8778
+ /** @description The widget was deleted */
8779
+ 204: {
8780
+ headers: {
8781
+ [name: string]: unknown;
8782
+ };
8783
+ content?: never;
8784
+ };
8785
+ /** @description Bad Request */
8786
+ 400: {
8787
+ headers: {
8788
+ [name: string]: unknown;
8789
+ };
8790
+ content: {
8791
+ "application/json": {
8792
+ error: {
8793
+ type: string;
8794
+ code: string;
8795
+ message: string;
8796
+ meta?: {
8797
+ [key: string]: unknown;
8798
+ };
8799
+ trace_id?: string;
8800
+ span_id?: string;
8801
+ };
8802
+ };
8803
+ };
8804
+ };
8805
+ /** @description Unauthorized */
8806
+ 401: {
8807
+ headers: {
8808
+ [name: string]: unknown;
8809
+ };
8810
+ content: {
8811
+ "application/json": {
8812
+ error: {
8813
+ type: string;
8814
+ code: string;
8815
+ message: string;
8816
+ meta?: {
8817
+ [key: string]: unknown;
8818
+ };
8819
+ trace_id?: string;
8820
+ span_id?: string;
8821
+ };
8822
+ };
8823
+ };
8824
+ };
8825
+ /** @description Forbidden */
8826
+ 403: {
8827
+ headers: {
8828
+ [name: string]: unknown;
8829
+ };
8830
+ content: {
8831
+ "application/json": {
8832
+ error: {
8833
+ type: string;
8834
+ code: string;
8835
+ message: string;
8836
+ meta?: {
8837
+ [key: string]: unknown;
8838
+ };
8839
+ trace_id?: string;
8840
+ span_id?: string;
8841
+ };
8842
+ };
8843
+ };
8844
+ };
8845
+ /** @description No dashboard widget with this id in this project */
8846
+ 404: {
8847
+ headers: {
8848
+ [name: string]: unknown;
8849
+ };
8850
+ content: {
8851
+ "application/json": {
8852
+ error: {
8853
+ type: string;
8854
+ code: string;
8855
+ message: string;
8856
+ meta?: {
8857
+ [key: string]: unknown;
8858
+ };
8859
+ trace_id?: string;
8860
+ span_id?: string;
8861
+ };
8862
+ };
8863
+ };
8864
+ };
8865
+ /** @description Internal Server Error */
8866
+ 500: {
8867
+ headers: {
8868
+ [name: string]: unknown;
8869
+ };
8870
+ content: {
8871
+ "application/json": {
8872
+ error: {
8873
+ type: string;
8874
+ code: string;
8875
+ message: string;
8876
+ meta?: {
8877
+ [key: string]: unknown;
8878
+ };
8879
+ trace_id?: string;
8880
+ span_id?: string;
8881
+ };
8882
+ };
8883
+ };
8884
+ };
8885
+ };
8886
+ };
8887
+ patchApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetId: {
8888
+ parameters: {
8889
+ query?: never;
8890
+ header?: never;
8891
+ path: {
8892
+ projectId: string;
8893
+ widgetId: string;
8894
+ };
8895
+ cookie?: never;
8896
+ };
8897
+ requestBody: {
8898
+ content: {
8899
+ "application/json": {
8900
+ name?: string;
8901
+ code?: string;
8902
+ queries?: {
8903
+ name: string;
8904
+ sql: string;
8905
+ parameters?: {
8906
+ name: string;
8907
+ /** @enum {string} */
8908
+ type: "string" | "number" | "boolean";
8909
+ default?: string | number | boolean;
8910
+ }[];
8911
+ }[];
8912
+ };
8913
+ };
8914
+ };
8915
+ responses: {
8916
+ /** @description The updated widget */
8917
+ 200: {
8918
+ headers: {
8919
+ [name: string]: unknown;
8920
+ };
8921
+ content: {
8922
+ "application/json": {
8923
+ id: string;
8924
+ name: string;
8925
+ definition: {
8926
+ version: number;
8927
+ code: string;
8928
+ queries: {
8929
+ name: string;
8930
+ sql: string;
8931
+ parameters?: {
8932
+ name: string;
8933
+ /** @enum {string} */
8934
+ type: "string" | "number" | "boolean";
8935
+ default?: string | number | boolean;
8936
+ }[];
8937
+ }[];
8938
+ };
8939
+ createdAt: string;
8940
+ updatedAt: string;
8941
+ platformUrl: string;
8942
+ dashboardId: string | null;
8943
+ gridColumn: number;
8944
+ gridRow: number;
8945
+ colSpan: number;
8946
+ rowSpan: number;
8947
+ };
8948
+ };
8949
+ };
8950
+ /** @description Bad Request */
8951
+ 400: {
8952
+ headers: {
8953
+ [name: string]: unknown;
8954
+ };
8955
+ content: {
8956
+ "application/json": {
8957
+ error: {
8958
+ type: string;
8959
+ code: string;
8960
+ message: string;
8961
+ meta?: {
8962
+ [key: string]: unknown;
8963
+ };
8964
+ trace_id?: string;
8965
+ span_id?: string;
8966
+ };
8967
+ };
8968
+ };
8969
+ };
8970
+ /** @description Unauthorized */
8971
+ 401: {
8972
+ headers: {
8973
+ [name: string]: unknown;
8974
+ };
8975
+ content: {
8976
+ "application/json": {
8977
+ error: {
8978
+ type: string;
8979
+ code: string;
8980
+ message: string;
8981
+ meta?: {
8982
+ [key: string]: unknown;
8983
+ };
8984
+ trace_id?: string;
8985
+ span_id?: string;
8986
+ };
8987
+ };
8988
+ };
8989
+ };
8990
+ /** @description Forbidden */
8991
+ 403: {
8992
+ headers: {
8993
+ [name: string]: unknown;
8994
+ };
8995
+ content: {
8996
+ "application/json": {
8997
+ error: {
8998
+ type: string;
8999
+ code: string;
9000
+ message: string;
9001
+ meta?: {
9002
+ [key: string]: unknown;
9003
+ };
9004
+ trace_id?: string;
9005
+ span_id?: string;
9006
+ };
9007
+ };
9008
+ };
9009
+ };
9010
+ /** @description No dashboard widget with this id in this project */
9011
+ 404: {
9012
+ headers: {
9013
+ [name: string]: unknown;
9014
+ };
9015
+ content: {
9016
+ "application/json": {
9017
+ error: {
9018
+ type: string;
9019
+ code: string;
9020
+ message: string;
9021
+ meta?: {
9022
+ [key: string]: unknown;
9023
+ };
9024
+ trace_id?: string;
9025
+ span_id?: string;
9026
+ };
9027
+ };
9028
+ };
9029
+ };
9030
+ /** @description Internal Server Error */
9031
+ 500: {
9032
+ headers: {
9033
+ [name: string]: unknown;
9034
+ };
9035
+ content: {
9036
+ "application/json": {
9037
+ error: {
9038
+ type: string;
9039
+ code: string;
9040
+ message: string;
9041
+ meta?: {
9042
+ [key: string]: unknown;
9043
+ };
9044
+ trace_id?: string;
9045
+ span_id?: string;
9046
+ };
9047
+ };
9048
+ };
9049
+ };
9050
+ };
9051
+ };
9052
+ postApiV1ProjectsByProjectIdAnalyticsDashboardWidgetsByWidgetIdDashboard: {
9053
+ parameters: {
9054
+ query?: never;
9055
+ header?: never;
9056
+ path: {
9057
+ projectId: string;
9058
+ widgetId: string;
9059
+ };
9060
+ cookie?: never;
9061
+ };
9062
+ requestBody: {
9063
+ content: {
9064
+ "application/json": {
9065
+ dashboardId: string;
9066
+ };
9067
+ };
9068
+ };
9069
+ responses: {
9070
+ /** @description The widget was added to the dashboard */
9071
+ 200: {
9072
+ headers: {
9073
+ [name: string]: unknown;
9074
+ };
9075
+ content: {
9076
+ "application/json": {
9077
+ id: string;
9078
+ name: string;
9079
+ definition: {
9080
+ version: number;
9081
+ code: string;
9082
+ queries: {
9083
+ name: string;
9084
+ sql: string;
9085
+ parameters?: {
9086
+ name: string;
9087
+ /** @enum {string} */
9088
+ type: "string" | "number" | "boolean";
9089
+ default?: string | number | boolean;
9090
+ }[];
9091
+ }[];
9092
+ };
9093
+ createdAt: string;
9094
+ updatedAt: string;
9095
+ platformUrl: string;
9096
+ dashboardId: string | null;
9097
+ gridColumn: number;
9098
+ gridRow: number;
9099
+ colSpan: number;
9100
+ rowSpan: number;
9101
+ };
9102
+ };
9103
+ };
9104
+ /** @description Bad Request */
9105
+ 400: {
9106
+ headers: {
9107
+ [name: string]: unknown;
9108
+ };
9109
+ content: {
9110
+ "application/json": {
9111
+ error: {
9112
+ type: string;
9113
+ code: string;
9114
+ message: string;
9115
+ meta?: {
9116
+ [key: string]: unknown;
9117
+ };
9118
+ trace_id?: string;
9119
+ span_id?: string;
9120
+ };
9121
+ };
9122
+ };
9123
+ };
9124
+ /** @description Unauthorized */
9125
+ 401: {
9126
+ headers: {
9127
+ [name: string]: unknown;
9128
+ };
9129
+ content: {
9130
+ "application/json": {
9131
+ error: {
9132
+ type: string;
9133
+ code: string;
9134
+ message: string;
9135
+ meta?: {
9136
+ [key: string]: unknown;
9137
+ };
9138
+ trace_id?: string;
9139
+ span_id?: string;
9140
+ };
9141
+ };
9142
+ };
9143
+ };
9144
+ /** @description Forbidden */
9145
+ 403: {
9146
+ headers: {
9147
+ [name: string]: unknown;
9148
+ };
9149
+ content: {
9150
+ "application/json": {
9151
+ error: {
9152
+ type: string;
9153
+ code: string;
9154
+ message: string;
9155
+ meta?: {
9156
+ [key: string]: unknown;
9157
+ };
9158
+ trace_id?: string;
9159
+ span_id?: string;
9160
+ };
9161
+ };
9162
+ };
9163
+ };
9164
+ /** @description No dashboard widget with this id in this project */
9165
+ 404: {
9166
+ headers: {
9167
+ [name: string]: unknown;
9168
+ };
9169
+ content: {
9170
+ "application/json": {
9171
+ error: {
9172
+ type: string;
9173
+ code: string;
9174
+ message: string;
9175
+ meta?: {
9176
+ [key: string]: unknown;
9177
+ };
9178
+ trace_id?: string;
9179
+ span_id?: string;
9180
+ };
9181
+ };
9182
+ };
9183
+ };
9184
+ /** @description Internal Server Error */
9185
+ 500: {
9186
+ headers: {
9187
+ [name: string]: unknown;
9188
+ };
9189
+ content: {
9190
+ "application/json": {
9191
+ error: {
9192
+ type: string;
9193
+ code: string;
9194
+ message: string;
9195
+ meta?: {
9196
+ [key: string]: unknown;
9197
+ };
9198
+ trace_id?: string;
9199
+ span_id?: string;
9200
+ };
9201
+ };
9202
+ };
9203
+ };
9204
+ };
9205
+ };
8273
9206
  postApiV1Query: {
8274
9207
  parameters: {
8275
9208
  query?: never;