@lessly/sdk-app 36.3.0 → 38.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 (63) hide show
  1. package/dist/analytics/index.d.cts +1 -1
  2. package/dist/analytics/index.d.ts +1 -1
  3. package/dist/brain/index.cjs +0 -5
  4. package/dist/brain/index.cjs.map +1 -1
  5. package/dist/brain/index.d.cts +2 -6
  6. package/dist/brain/index.d.ts +2 -6
  7. package/dist/brain/index.js +1 -5
  8. package/dist/brain/index.js.map +1 -1
  9. package/dist/{client.gen-C6K8y7em.d.cts → client.gen-Bv2flLeO.d.cts} +2163 -248
  10. package/dist/{client.gen-C6K8y7em.d.ts → client.gen-Bv2flLeO.d.ts} +2163 -248
  11. package/dist/consent/index.d.cts +1 -1
  12. package/dist/consent/index.d.ts +1 -1
  13. package/dist/deployment/index.d.cts +1 -1
  14. package/dist/deployment/index.d.ts +1 -1
  15. package/dist/index.cjs +875 -217
  16. package/dist/index.cjs.map +1 -1
  17. package/dist/index.d.cts +1 -1
  18. package/dist/index.d.ts +1 -1
  19. package/dist/index.js +875 -217
  20. package/dist/index.js.map +1 -1
  21. package/dist/mail/index.d.cts +2 -2
  22. package/dist/mail/index.d.ts +2 -2
  23. package/dist/observe/index.cjs +156 -0
  24. package/dist/observe/index.cjs.map +1 -0
  25. package/dist/observe/index.d.cts +124 -0
  26. package/dist/observe/index.d.ts +124 -0
  27. package/dist/observe/index.js +125 -0
  28. package/dist/observe/index.js.map +1 -0
  29. package/dist/organization/index.cjs +33 -18
  30. package/dist/organization/index.cjs.map +1 -1
  31. package/dist/organization/index.d.cts +27 -15
  32. package/dist/organization/index.d.ts +27 -15
  33. package/dist/organization/index.js +27 -15
  34. package/dist/organization/index.js.map +1 -1
  35. package/dist/playground/index.cjs +66 -0
  36. package/dist/playground/index.cjs.map +1 -0
  37. package/dist/playground/index.d.cts +52 -0
  38. package/dist/playground/index.d.ts +52 -0
  39. package/dist/playground/index.js +53 -0
  40. package/dist/playground/index.js.map +1 -0
  41. package/dist/realtime/index.d.cts +1 -1
  42. package/dist/realtime/index.d.ts +1 -1
  43. package/dist/support/index.d.cts +1 -1
  44. package/dist/support/index.d.ts +1 -1
  45. package/dist/tracking/index.d.cts +1 -1
  46. package/dist/tracking/index.d.ts +1 -1
  47. package/dist/users/index.d.cts +1 -1
  48. package/dist/users/index.d.ts +1 -1
  49. package/dist/waitlist/index.d.cts +1 -1
  50. package/dist/waitlist/index.d.ts +1 -1
  51. package/package.json +12 -2
  52. package/src/gen/bindings.gen.ts +875 -217
  53. package/src/gen/brain/index.ts +1 -1
  54. package/src/gen/brain/queryOptions.gen.ts +0 -7
  55. package/src/gen/client.gen.ts +189 -17
  56. package/src/gen/manifest.gen.ts +1 -1
  57. package/src/gen/observe/index.ts +3 -0
  58. package/src/gen/observe/queryOptions.gen.ts +200 -0
  59. package/src/gen/organization/index.ts +1 -1
  60. package/src/gen/organization/queryOptions.gen.ts +41 -21
  61. package/src/gen/playground/index.ts +3 -0
  62. package/src/gen/playground/queryOptions.gen.ts +86 -0
  63. package/src/gen/types.gen.ts +2178 -248
@@ -1028,98 +1028,6 @@ snapshotId: string
1028
1028
  preRestoreSnapshotId: (string | null)
1029
1029
  } | null)
1030
1030
 
1031
- export interface BrainUsageReportInput {
1032
- /**
1033
- * How many UTC days of this product's ledger to return, ending today (default 30, max 90)
1034
- */
1035
- days?: number
1036
- }
1037
-
1038
- export interface BrainUsageReportOutput {
1039
- note: string
1040
- /**
1041
- * Brain's own ledger, for THIS product only
1042
- */
1043
- product: {
1044
- /**
1045
- * Inclusive UTC end of the window (today), YYYY-MM-DD
1046
- */
1047
- to: string
1048
- /**
1049
- * The window actually used, after clamping
1050
- */
1051
- days: number
1052
- /**
1053
- * Inclusive UTC start of the window, YYYY-MM-DD
1054
- */
1055
- from: string
1056
- rows: {
1057
- /**
1058
- * 'sync' | 'batch'; '' when the push carried none
1059
- */
1060
- mode: string
1061
- /**
1062
- * Manifest meter slug, e.g. llm-tokens
1063
- */
1064
- meter: string
1065
- /**
1066
- * Model dimension; '' when the push carried none
1067
- */
1068
- model: string
1069
- /**
1070
- * How many record() calls landed in this slice
1071
- */
1072
- events: number
1073
- /**
1074
- * Tokens we metered for this slice, delivered or not
1075
- */
1076
- tokens: number
1077
- /**
1078
- * Purpose dimension; '' when the push carried none
1079
- */
1080
- purpose: string
1081
- /**
1082
- * UTC calendar day, YYYY-MM-DD
1083
- */
1084
- usage_date: string
1085
- /**
1086
- * Of those events, how many billing did not accept
1087
- */
1088
- delivery_failed: number
1089
- }[]
1090
- /**
1091
- * The rows rolled up per meter across the whole window
1092
- */
1093
- totals: {
1094
- meter: string
1095
- events: number
1096
- tokens: number
1097
- delivery_failed: number
1098
- }[]
1099
- product_id: string
1100
- }
1101
- /**
1102
- * The platform billing aggregate for the whole ORG; null if it could not be read
1103
- */
1104
- platform: ({
1105
- plan: string
1106
- scope: "org"
1107
- meters: {
1108
- unit?: string
1109
- used?: number
1110
- limit?: (number | null)
1111
- remaining?: (number | null)
1112
- unlimited?: boolean
1113
- meter_slug: string
1114
- }[]
1115
- org_id: string
1116
- } | null)
1117
- /**
1118
- * Why the platform aggregate is null; null when it was read successfully
1119
- */
1120
- platform_error: (string | null)
1121
- }
1122
-
1123
1031
  export interface ConsentConfigCookieDomainUpsertInput {
1124
1032
  cookieDomain: ("" | null | string)
1125
1033
  }
@@ -12605,134 +12513,1848 @@ description: (string | null)
12605
12513
  enabled_events: string[]
12606
12514
  }
12607
12515
 
12608
- export interface OrganizationAuthMeInput {
12609
-
12610
- }
12611
-
12612
- export interface OrganizationAuthMeOutput {
12613
- email: string
12614
- identityId: string
12615
- displayName: string
12616
- identityType: string
12516
+ export interface ObserveAlertsCreateInput {
12517
+ /**
12518
+ * error_rate counts error events in the window; log_match counts log lines matching q
12519
+ */
12520
+ kind: ("error_rate" | "log_match")
12521
+ /**
12522
+ * What to call the rule, up to 200 characters
12523
+ */
12524
+ name: string
12525
+ /**
12526
+ * false registers the rule without evaluating it
12527
+ */
12528
+ enabled?: boolean
12529
+ /**
12530
+ * The kind’s parameters
12531
+ */
12532
+ condition: {
12533
+ /**
12534
+ * log_match only: the same Lucene expression observe_logs_search takes, e.g. level:error AND service:api
12535
+ */
12536
+ q?: string
12537
+ /**
12538
+ * How far back each evaluation looks
12539
+ */
12540
+ window: ("5m" | "15m" | "1h")
12541
+ /**
12542
+ * How many matches in the window count as a problem. At least 1
12543
+ */
12544
+ threshold: number
12617
12545
  }
12618
-
12619
- export interface OrganizationBillingBudgetsGetInput {
12620
-
12546
+ /**
12547
+ * How long after firing the rule stays quiet. Default 60, up to a week
12548
+ */
12549
+ throttleMinutes?: number
12621
12550
  }
12622
12551
 
12623
- export interface OrganizationBillingBudgetsGetOutput {
12552
+ export interface ObserveAlertsCreateOutput {
12553
+ /**
12554
+ * Identifier of the rule
12555
+ */
12556
+ id: string
12557
+ /**
12558
+ * What the rule measures
12559
+ */
12560
+ kind: ("error_rate" | "log_match")
12561
+ /**
12562
+ * Human name the rule was registered under
12563
+ */
12564
+ name: string
12565
+ /**
12566
+ * firing means the condition is met right now
12567
+ */
12568
+ state: ("ok" | "firing")
12569
+ /**
12570
+ * Whether the evaluator measures it every minute
12571
+ */
12572
+ enabled: boolean
12573
+ /**
12574
+ * The kind’s parameters: threshold and window, plus q for log_match
12575
+ */
12576
+ condition: {
12624
12577
  [k: string]: unknown
12625
12578
  }
12626
-
12627
- export interface OrganizationBillingBudgetsSetInput {
12628
- ceiling_minor: number
12629
- }
12630
-
12631
- export interface OrganizationBillingBudgetsSetOutput {
12632
- [k: string]: unknown
12579
+ /**
12580
+ * ISO 8601 creation timestamp
12581
+ */
12582
+ createdAt: string
12583
+ /**
12584
+ * ISO 8601 timestamp of the last change
12585
+ */
12586
+ updatedAt: string
12587
+ /**
12588
+ * ISO 8601 time it last fired, or null
12589
+ */
12590
+ lastFiredAt: (string | null)
12591
+ /**
12592
+ * How long after firing the rule stays quiet
12593
+ */
12594
+ throttleMinutes: number
12633
12595
  }
12634
12596
 
12635
- export interface OrganizationBillingCapsClearInput {
12636
- productId: string
12597
+ export interface ObserveAlertsDeleteInput {
12598
+ /**
12599
+ * Identifier of the rule
12600
+ */
12601
+ id: string
12637
12602
  }
12638
12603
 
12639
- export interface OrganizationBillingCapsClearOutput {
12640
- [k: string]: unknown
12604
+ export interface ObserveAlertsDeleteOutput {
12605
+ /**
12606
+ * Identifier of the removed rule
12607
+ */
12608
+ id: string
12609
+ /**
12610
+ * Always true; the call fails otherwise
12611
+ */
12612
+ deleted: true
12641
12613
  }
12642
12614
 
12643
- export interface OrganizationBillingCapsSetInput {
12644
- cap_minor: number
12645
- productId: string
12615
+ export interface ObserveAlertsEventsListInput {
12616
+ /**
12617
+ * Page size, 1..200
12618
+ */
12619
+ limit?: number
12620
+ /**
12621
+ * Number of firings to skip
12622
+ */
12623
+ offset?: number
12624
+ /**
12625
+ * Only firings of this rule
12626
+ */
12627
+ ruleId?: string
12646
12628
  }
12647
12629
 
12648
- export interface OrganizationBillingCapsSetOutput {
12630
+ export type ObserveAlertsEventsListOutput = {
12631
+ /**
12632
+ * Identifier of the firing
12633
+ */
12634
+ id: string
12635
+ /**
12636
+ * Rule that fired
12637
+ */
12638
+ ruleId: string
12639
+ /**
12640
+ * ISO 8601 time the condition was first met
12641
+ */
12642
+ firedAt: string
12643
+ /**
12644
+ * What the measure was when it fired
12645
+ */
12646
+ measured: number
12647
+ /**
12648
+ * The condition as it stood then, not as the rule reads today
12649
+ */
12650
+ condition: {
12649
12651
  [k: string]: unknown
12650
12652
  }
12651
-
12652
- export interface OrganizationBindingsListInput {
12653
- domainId: string
12654
- productId: string
12655
- }
12656
-
12657
- export type OrganizationBindingsListOutput = {
12658
- host: string
12659
- status: ("pending" | "active" | "failed")
12660
- records: {
12661
- ttl?: number
12662
- name?: string
12663
- target: string
12664
- proxied?: boolean
12665
- priority?: number
12666
- recordType: string
12667
- }[]
12668
- domainId: string
12669
- bindingId: string
12670
- instruction: (string | null)
12671
- statusDetail: (string | null)
12672
- ownerExtension: string
12673
- }[]
12674
-
12675
- export interface OrganizationClickupInstallInput {
12676
-
12677
- }
12678
-
12679
- export interface OrganizationClickupInstallOutput {
12680
- url: string
12681
- }
12682
-
12683
- export interface OrganizationClickupListInstallationsInput {
12684
-
12685
- }
12686
-
12687
- export type OrganizationClickupListInstallationsOutput = {
12688
- status: string
12689
- teamId: string
12690
- teamName: string
12653
+ /**
12654
+ * ISO 8601 time it cleared, or null while it is still firing
12655
+ */
12656
+ resolvedAt: (string | null)
12691
12657
  }[]
12692
12658
 
12693
- export interface OrganizationCloudflareInstallInput {
12694
-
12695
- }
12696
-
12697
- export interface OrganizationCloudflareInstallOutput {
12698
- url: string
12699
- }
12700
-
12701
- export interface OrganizationConnectorsApproveRequestInput {
12659
+ export interface ObserveAlertsGetInput {
12660
+ /**
12661
+ * Identifier of the rule
12662
+ */
12702
12663
  id: string
12703
- requestId: string
12704
- }
12705
-
12706
- export interface OrganizationConnectorsApproveRequestOutput {
12707
- success: boolean
12708
12664
  }
12709
12665
 
12710
- export interface OrganizationConnectorsAttachInput {
12666
+ export interface ObserveAlertsGetOutput {
12667
+ /**
12668
+ * Identifier of the rule
12669
+ */
12711
12670
  id: string
12712
- productIds: string[]
12671
+ /**
12672
+ * What the rule measures
12673
+ */
12674
+ kind: ("error_rate" | "log_match")
12675
+ /**
12676
+ * Human name the rule was registered under
12677
+ */
12678
+ name: string
12679
+ /**
12680
+ * firing means the condition is met right now
12681
+ */
12682
+ state: ("ok" | "firing")
12683
+ /**
12684
+ * Whether the evaluator measures it every minute
12685
+ */
12686
+ enabled: boolean
12687
+ /**
12688
+ * The kind’s parameters: threshold and window, plus q for log_match
12689
+ */
12690
+ condition: {
12691
+ [k: string]: unknown
12713
12692
  }
12714
-
12715
- export interface OrganizationConnectorsAttachOutput {
12716
- attachments: {
12693
+ /**
12694
+ * ISO 8601 creation timestamp
12695
+ */
12717
12696
  createdAt: string
12718
- createdBy: (string | null)
12719
- productId: string
12720
- customerId: (string | null)
12721
- descriptiveName: (string | null)
12722
- }[]
12723
- connectorId: string
12697
+ /**
12698
+ * ISO 8601 timestamp of the last change
12699
+ */
12700
+ updatedAt: string
12701
+ /**
12702
+ * ISO 8601 time it last fired, or null
12703
+ */
12704
+ lastFiredAt: (string | null)
12705
+ /**
12706
+ * How long after firing the rule stays quiet
12707
+ */
12708
+ throttleMinutes: number
12724
12709
  }
12725
12710
 
12726
- export interface OrganizationConnectorsDeleteInput {
12727
- id: string
12728
- }
12711
+ export interface ObserveAlertsListInput {
12729
12712
 
12730
- export interface OrganizationConnectorsDeleteOutput {
12731
- success: boolean
12732
12713
  }
12733
12714
 
12734
- export interface OrganizationConnectorsDenyRequestInput {
12735
- id: string
12715
+ export type ObserveAlertsListOutput = {
12716
+ /**
12717
+ * Identifier of the rule
12718
+ */
12719
+ id: string
12720
+ /**
12721
+ * What the rule measures
12722
+ */
12723
+ kind: ("error_rate" | "log_match")
12724
+ /**
12725
+ * Human name the rule was registered under
12726
+ */
12727
+ name: string
12728
+ /**
12729
+ * firing means the condition is met right now
12730
+ */
12731
+ state: ("ok" | "firing")
12732
+ /**
12733
+ * Whether the evaluator measures it every minute
12734
+ */
12735
+ enabled: boolean
12736
+ /**
12737
+ * The kind’s parameters: threshold and window, plus q for log_match
12738
+ */
12739
+ condition: {
12740
+ [k: string]: unknown
12741
+ }
12742
+ /**
12743
+ * ISO 8601 creation timestamp
12744
+ */
12745
+ createdAt: string
12746
+ /**
12747
+ * ISO 8601 timestamp of the last change
12748
+ */
12749
+ updatedAt: string
12750
+ /**
12751
+ * ISO 8601 time it last fired, or null
12752
+ */
12753
+ lastFiredAt: (string | null)
12754
+ /**
12755
+ * How long after firing the rule stays quiet
12756
+ */
12757
+ throttleMinutes: number
12758
+ }[]
12759
+
12760
+ export interface ObserveAlertsUpdateInput {
12761
+ /**
12762
+ * Identifier of the rule to change
12763
+ */
12764
+ id: string
12765
+ /**
12766
+ * New name for the rule
12767
+ */
12768
+ name?: string
12769
+ /**
12770
+ * false stops evaluation and keeps the rule
12771
+ */
12772
+ enabled?: boolean
12773
+ /**
12774
+ * The kind’s parameters
12775
+ */
12776
+ condition?: {
12777
+ /**
12778
+ * log_match only: the same Lucene expression observe_logs_search takes, e.g. level:error AND service:api
12779
+ */
12780
+ q?: string
12781
+ /**
12782
+ * How far back each evaluation looks
12783
+ */
12784
+ window: ("5m" | "15m" | "1h")
12785
+ /**
12786
+ * How many matches in the window count as a problem. At least 1
12787
+ */
12788
+ threshold: number
12789
+ }
12790
+ /**
12791
+ * New quiet period after a firing, in minutes
12792
+ */
12793
+ throttleMinutes?: number
12794
+ }
12795
+
12796
+ export interface ObserveAlertsUpdateOutput {
12797
+ /**
12798
+ * Identifier of the rule
12799
+ */
12800
+ id: string
12801
+ /**
12802
+ * What the rule measures
12803
+ */
12804
+ kind: ("error_rate" | "log_match")
12805
+ /**
12806
+ * Human name the rule was registered under
12807
+ */
12808
+ name: string
12809
+ /**
12810
+ * firing means the condition is met right now
12811
+ */
12812
+ state: ("ok" | "firing")
12813
+ /**
12814
+ * Whether the evaluator measures it every minute
12815
+ */
12816
+ enabled: boolean
12817
+ /**
12818
+ * The kind’s parameters: threshold and window, plus q for log_match
12819
+ */
12820
+ condition: {
12821
+ [k: string]: unknown
12822
+ }
12823
+ /**
12824
+ * ISO 8601 creation timestamp
12825
+ */
12826
+ createdAt: string
12827
+ /**
12828
+ * ISO 8601 timestamp of the last change
12829
+ */
12830
+ updatedAt: string
12831
+ /**
12832
+ * ISO 8601 time it last fired, or null
12833
+ */
12834
+ lastFiredAt: (string | null)
12835
+ /**
12836
+ * How long after firing the rule stays quiet
12837
+ */
12838
+ throttleMinutes: number
12839
+ }
12840
+
12841
+ export interface ObserveArtifactsDeleteInput {
12842
+ /**
12843
+ * Identifier of the artifact to delete. An artifact of another product is reported as not found
12844
+ */
12845
+ id: string
12846
+ }
12847
+
12848
+ export interface ObserveArtifactsDeleteOutput {
12849
+ /**
12850
+ * Identifier of the stored artifact
12851
+ */
12852
+ id: string
12853
+ /**
12854
+ * Whether this is the minified source or its map
12855
+ */
12856
+ kind: ("source" | "sourcemap")
12857
+ /**
12858
+ * Debug ID the build stamped into the file and its source map
12859
+ */
12860
+ debugId: string
12861
+ /**
12862
+ * Size of the stored artifact in bytes
12863
+ */
12864
+ byteSize: number
12865
+ /**
12866
+ * Name the file was uploaded under, e.g. "app.min.js.map"
12867
+ */
12868
+ fileName: string
12869
+ /**
12870
+ * ISO 8601 timestamp of the upload
12871
+ */
12872
+ uploadedAt: string
12873
+ }
12874
+
12875
+ export interface ObserveArtifactsListInput {
12876
+ /**
12877
+ * Maximum number of artifacts to return, 1..200 (default 50)
12878
+ */
12879
+ limit?: number
12880
+ /**
12881
+ * Only return artifacts carrying this debug ID; omit to list all of them
12882
+ */
12883
+ debugId?: string
12884
+ }
12885
+
12886
+ export type ObserveArtifactsListOutput = {
12887
+ /**
12888
+ * Identifier of the stored artifact
12889
+ */
12890
+ id: string
12891
+ /**
12892
+ * Whether this is the minified source or its map
12893
+ */
12894
+ kind: ("source" | "sourcemap")
12895
+ /**
12896
+ * Debug ID the build stamped into the file and its source map
12897
+ */
12898
+ debugId: string
12899
+ /**
12900
+ * Size of the stored artifact in bytes
12901
+ */
12902
+ byteSize: number
12903
+ /**
12904
+ * Name the file was uploaded under, e.g. "app.min.js.map"
12905
+ */
12906
+ fileName: string
12907
+ /**
12908
+ * ISO 8601 timestamp of the upload
12909
+ */
12910
+ uploadedAt: string
12911
+ }[]
12912
+
12913
+ export interface ObserveArtifactsResolveInput {
12914
+ /**
12915
+ * Issue whose latest event should have its stack resolved. An issue of another product is reported as not found
12916
+ */
12917
+ issueId: string
12918
+ }
12919
+
12920
+ export interface ObserveArtifactsResolveOutput {
12921
+ /**
12922
+ * The stack, resolved where a source map matched
12923
+ */
12924
+ frames: {
12925
+ /**
12926
+ * Column number, original when the frame resolved
12927
+ */
12928
+ colno?: number
12929
+ /**
12930
+ * Whether the frame belongs to the application rather than a dependency
12931
+ */
12932
+ inApp?: boolean
12933
+ /**
12934
+ * Line number, original when the frame resolved
12935
+ */
12936
+ lineno?: number
12937
+ /**
12938
+ * Original file when the frame resolved, else the minified one
12939
+ */
12940
+ filename?: string
12941
+ /**
12942
+ * Function name, original where the source map names one
12943
+ */
12944
+ function?: string
12945
+ /**
12946
+ * False means no source map matched and the frame is exactly as it was recorded
12947
+ */
12948
+ resolved: boolean
12949
+ }[]
12950
+ /**
12951
+ * Identifier of the event the stack was taken from
12952
+ */
12953
+ eventId: string
12954
+ /**
12955
+ * The issue whose stack this is
12956
+ */
12957
+ issueId: string
12958
+ }
12959
+
12960
+ export interface ObserveIssuesArchiveInput {
12961
+ /**
12962
+ * Identifier of the issue
12963
+ */
12964
+ id: string
12965
+ }
12966
+
12967
+ export interface ObserveIssuesArchiveOutput {
12968
+ /**
12969
+ * Identifier of the issue
12970
+ */
12971
+ id: string
12972
+ /**
12973
+ * Display title, set when the issue opened and never rewritten
12974
+ */
12975
+ title: string
12976
+ /**
12977
+ * unresolved, resolved or archived
12978
+ */
12979
+ status: string
12980
+ /**
12981
+ * Where the error appears to come from, or null
12982
+ */
12983
+ culprit: (string | null)
12984
+ /**
12985
+ * Who owns the issue, or null if unassigned
12986
+ */
12987
+ assignee: (string | null)
12988
+ /**
12989
+ * ISO 8601 timestamp of the most recent event
12990
+ */
12991
+ lastSeen: string
12992
+ /**
12993
+ * ISO 8601 timestamp of the first event
12994
+ */
12995
+ firstSeen: string
12996
+ /**
12997
+ * ISO 8601 archive timestamp, or null
12998
+ */
12999
+ archivedAt: (string | null)
13000
+ /**
13001
+ * How many events have landed on this issue
13002
+ */
13003
+ eventCount: number
13004
+ /**
13005
+ * ISO 8601 resolution timestamp, or null
13006
+ */
13007
+ resolvedAt: (string | null)
13008
+ /**
13009
+ * Environment the issue was first seen in, or null
13010
+ */
13011
+ environment: (string | null)
13012
+ /**
13013
+ * Stable grouping hash the issue is keyed on
13014
+ */
13015
+ fingerprint: string
13016
+ /**
13017
+ * ISO 8601 timestamp of the last regression, or null if it never regressed
13018
+ */
13019
+ regressedAt: (string | null)
13020
+ /**
13021
+ * Which rule of the ladder matched: explicit, stack, exception or message
13022
+ */
13023
+ groupingRule: string
13024
+ /**
13025
+ * Exception class of the first event, or null
13026
+ */
13027
+ exceptionType: (string | null)
13028
+ /**
13029
+ * Grouping config version that produced the fingerprint; part of the issue identity
13030
+ */
13031
+ groupingVersion: string
13032
+ }
13033
+
13034
+ export interface ObserveIssuesAssignInput {
13035
+ /**
13036
+ * Identifier of the issue
13037
+ */
13038
+ id: string
13039
+ /**
13040
+ * Who should own the issue; null clears the assignment
13041
+ */
13042
+ assignee: (string | null)
13043
+ }
13044
+
13045
+ export interface ObserveIssuesAssignOutput {
13046
+ /**
13047
+ * Identifier of the issue
13048
+ */
13049
+ id: string
13050
+ /**
13051
+ * Display title, set when the issue opened and never rewritten
13052
+ */
13053
+ title: string
13054
+ /**
13055
+ * unresolved, resolved or archived
13056
+ */
13057
+ status: string
13058
+ /**
13059
+ * Where the error appears to come from, or null
13060
+ */
13061
+ culprit: (string | null)
13062
+ /**
13063
+ * Who owns the issue, or null if unassigned
13064
+ */
13065
+ assignee: (string | null)
13066
+ /**
13067
+ * ISO 8601 timestamp of the most recent event
13068
+ */
13069
+ lastSeen: string
13070
+ /**
13071
+ * ISO 8601 timestamp of the first event
13072
+ */
13073
+ firstSeen: string
13074
+ /**
13075
+ * ISO 8601 archive timestamp, or null
13076
+ */
13077
+ archivedAt: (string | null)
13078
+ /**
13079
+ * How many events have landed on this issue
13080
+ */
13081
+ eventCount: number
13082
+ /**
13083
+ * ISO 8601 resolution timestamp, or null
13084
+ */
13085
+ resolvedAt: (string | null)
13086
+ /**
13087
+ * Environment the issue was first seen in, or null
13088
+ */
13089
+ environment: (string | null)
13090
+ /**
13091
+ * Stable grouping hash the issue is keyed on
13092
+ */
13093
+ fingerprint: string
13094
+ /**
13095
+ * ISO 8601 timestamp of the last regression, or null if it never regressed
13096
+ */
13097
+ regressedAt: (string | null)
13098
+ /**
13099
+ * Which rule of the ladder matched: explicit, stack, exception or message
13100
+ */
13101
+ groupingRule: string
13102
+ /**
13103
+ * Exception class of the first event, or null
13104
+ */
13105
+ exceptionType: (string | null)
13106
+ /**
13107
+ * Grouping config version that produced the fingerprint; part of the issue identity
13108
+ */
13109
+ groupingVersion: string
13110
+ }
13111
+
13112
+ export interface ObserveIssuesGetInput {
13113
+ /**
13114
+ * Identifier of the issue
13115
+ */
13116
+ id: string
13117
+ }
13118
+
13119
+ export interface ObserveIssuesGetOutput {
13120
+ /**
13121
+ * Identifier of the issue
13122
+ */
13123
+ id: string
13124
+ /**
13125
+ * Stack of the most recent event, or null when the issue has no events yet or the stack could not be read
13126
+ */
13127
+ stack: ({
13128
+ /**
13129
+ * The stack, resolved where a stored source map matched the frame
13130
+ */
13131
+ frames: {
13132
+ /**
13133
+ * Column number, original when the frame resolved
13134
+ */
13135
+ colno?: number
13136
+ /**
13137
+ * Whether the frame belongs to the application rather than a dependency
13138
+ */
13139
+ inApp?: boolean
13140
+ /**
13141
+ * Line number, original when the frame resolved
13142
+ */
13143
+ lineno?: number
13144
+ /**
13145
+ * Original file when the frame resolved, else the minified one
13146
+ */
13147
+ filename?: string
13148
+ /**
13149
+ * Function name, original where the source map names one
13150
+ */
13151
+ function?: string
13152
+ /**
13153
+ * False means no source map matched and the frame is exactly as it was recorded
13154
+ */
13155
+ resolved: boolean
13156
+ }[]
13157
+ /**
13158
+ * Identifier of the event the stack was taken from
13159
+ */
13160
+ eventId: string
13161
+ /**
13162
+ * The stacktrace exactly as the emitter reported it, for events that carry one opaque string instead of frames (OTel span exceptions). Null for Sentry-source events, whose stack is in `frames`.
13163
+ */
13164
+ rawStacktrace: (string | null)
13165
+ } | null)
13166
+ /**
13167
+ * Display title, set when the issue opened and never rewritten
13168
+ */
13169
+ title: string
13170
+ /**
13171
+ * unresolved, resolved or archived
13172
+ */
13173
+ status: string
13174
+ /**
13175
+ * Where the error appears to come from, or null
13176
+ */
13177
+ culprit: (string | null)
13178
+ /**
13179
+ * Who owns the issue, or null if unassigned
13180
+ */
13181
+ assignee: (string | null)
13182
+ /**
13183
+ * ISO 8601 timestamp of the most recent event
13184
+ */
13185
+ lastSeen: string
13186
+ /**
13187
+ * ISO 8601 timestamp of the first event
13188
+ */
13189
+ firstSeen: string
13190
+ /**
13191
+ * ISO 8601 archive timestamp, or null
13192
+ */
13193
+ archivedAt: (string | null)
13194
+ /**
13195
+ * How many events have landed on this issue
13196
+ */
13197
+ eventCount: number
13198
+ /**
13199
+ * ISO 8601 resolution timestamp, or null
13200
+ */
13201
+ resolvedAt: (string | null)
13202
+ /**
13203
+ * Environment the issue was first seen in, or null
13204
+ */
13205
+ environment: (string | null)
13206
+ /**
13207
+ * Stable grouping hash the issue is keyed on
13208
+ */
13209
+ fingerprint: string
13210
+ /**
13211
+ * ISO 8601 timestamp of the last regression, or null if it never regressed
13212
+ */
13213
+ regressedAt: (string | null)
13214
+ /**
13215
+ * Which rule of the ladder matched: explicit, stack, exception or message
13216
+ */
13217
+ groupingRule: string
13218
+ /**
13219
+ * Exception class of the first event, or null
13220
+ */
13221
+ exceptionType: (string | null)
13222
+ /**
13223
+ * Grouping config version that produced the fingerprint; part of the issue identity
13224
+ */
13225
+ groupingVersion: string
13226
+ }
13227
+
13228
+ export interface ObserveIssuesListInput {
13229
+ /**
13230
+ * How many issues to return, most recently seen first. 1-200, default 50
13231
+ */
13232
+ limit?: number
13233
+ /**
13234
+ * Only return issues in this state; omit to list every state
13235
+ */
13236
+ status?: ("unresolved" | "resolved" | "archived")
13237
+ /**
13238
+ * Only return issues owned by this assignee
13239
+ */
13240
+ assignee?: string
13241
+ }
13242
+
13243
+ export type ObserveIssuesListOutput = {
13244
+ /**
13245
+ * Identifier of the issue
13246
+ */
13247
+ id: string
13248
+ /**
13249
+ * Display title, set when the issue opened and never rewritten
13250
+ */
13251
+ title: string
13252
+ /**
13253
+ * unresolved, resolved or archived
13254
+ */
13255
+ status: string
13256
+ /**
13257
+ * Where the error appears to come from, or null
13258
+ */
13259
+ culprit: (string | null)
13260
+ /**
13261
+ * Who owns the issue, or null if unassigned
13262
+ */
13263
+ assignee: (string | null)
13264
+ /**
13265
+ * ISO 8601 timestamp of the most recent event
13266
+ */
13267
+ lastSeen: string
13268
+ /**
13269
+ * ISO 8601 timestamp of the first event
13270
+ */
13271
+ firstSeen: string
13272
+ /**
13273
+ * ISO 8601 archive timestamp, or null
13274
+ */
13275
+ archivedAt: (string | null)
13276
+ /**
13277
+ * How many events have landed on this issue
13278
+ */
13279
+ eventCount: number
13280
+ /**
13281
+ * ISO 8601 resolution timestamp, or null
13282
+ */
13283
+ resolvedAt: (string | null)
13284
+ /**
13285
+ * Environment the issue was first seen in, or null
13286
+ */
13287
+ environment: (string | null)
13288
+ /**
13289
+ * Stable grouping hash the issue is keyed on
13290
+ */
13291
+ fingerprint: string
13292
+ /**
13293
+ * ISO 8601 timestamp of the last regression, or null if it never regressed
13294
+ */
13295
+ regressedAt: (string | null)
13296
+ /**
13297
+ * Which rule of the ladder matched: explicit, stack, exception or message
13298
+ */
13299
+ groupingRule: string
13300
+ /**
13301
+ * Exception class of the first event, or null
13302
+ */
13303
+ exceptionType: (string | null)
13304
+ /**
13305
+ * Grouping config version that produced the fingerprint; part of the issue identity
13306
+ */
13307
+ groupingVersion: string
13308
+ }[]
13309
+
13310
+ export interface ObserveIssuesResolveInput {
13311
+ /**
13312
+ * Identifier of the issue
13313
+ */
13314
+ id: string
13315
+ }
13316
+
13317
+ export interface ObserveIssuesResolveOutput {
13318
+ /**
13319
+ * Identifier of the issue
13320
+ */
13321
+ id: string
13322
+ /**
13323
+ * Display title, set when the issue opened and never rewritten
13324
+ */
13325
+ title: string
13326
+ /**
13327
+ * unresolved, resolved or archived
13328
+ */
13329
+ status: string
13330
+ /**
13331
+ * Where the error appears to come from, or null
13332
+ */
13333
+ culprit: (string | null)
13334
+ /**
13335
+ * Who owns the issue, or null if unassigned
13336
+ */
13337
+ assignee: (string | null)
13338
+ /**
13339
+ * ISO 8601 timestamp of the most recent event
13340
+ */
13341
+ lastSeen: string
13342
+ /**
13343
+ * ISO 8601 timestamp of the first event
13344
+ */
13345
+ firstSeen: string
13346
+ /**
13347
+ * ISO 8601 archive timestamp, or null
13348
+ */
13349
+ archivedAt: (string | null)
13350
+ /**
13351
+ * How many events have landed on this issue
13352
+ */
13353
+ eventCount: number
13354
+ /**
13355
+ * ISO 8601 resolution timestamp, or null
13356
+ */
13357
+ resolvedAt: (string | null)
13358
+ /**
13359
+ * Environment the issue was first seen in, or null
13360
+ */
13361
+ environment: (string | null)
13362
+ /**
13363
+ * Stable grouping hash the issue is keyed on
13364
+ */
13365
+ fingerprint: string
13366
+ /**
13367
+ * ISO 8601 timestamp of the last regression, or null if it never regressed
13368
+ */
13369
+ regressedAt: (string | null)
13370
+ /**
13371
+ * Which rule of the ladder matched: explicit, stack, exception or message
13372
+ */
13373
+ groupingRule: string
13374
+ /**
13375
+ * Exception class of the first event, or null
13376
+ */
13377
+ exceptionType: (string | null)
13378
+ /**
13379
+ * Grouping config version that produced the fingerprint; part of the issue identity
13380
+ */
13381
+ groupingVersion: string
13382
+ }
13383
+
13384
+ export interface ObserveKeysCreateInput {
13385
+ /**
13386
+ * ingest (default) issues a Bearer OTLP token; dsn issues a public Sentry key returned as a full DSN
13387
+ */
13388
+ kind?: ("ingest" | "dsn")
13389
+ /**
13390
+ * Optional human label for the key, e.g. "ci" or "backend pods"
13391
+ */
13392
+ name?: string
13393
+ /**
13394
+ * Environment this key sends telemetry for, e.g. "staging" or "production"
13395
+ */
13396
+ environment: string
13397
+ }
13398
+
13399
+ export interface ObserveKeysCreateOutput {
13400
+ /**
13401
+ * Identifier of the ingest key
13402
+ */
13403
+ id: string
13404
+ /**
13405
+ * The full DSN, for kind "dsn" — shown only here, store it now
13406
+ */
13407
+ dsn?: string
13408
+ /**
13409
+ * ingest = Bearer OTLP key; dsn = public Sentry key that ships in client code
13410
+ */
13411
+ kind: ("ingest" | "dsn")
13412
+ /**
13413
+ * Human label given at creation, or null
13414
+ */
13415
+ name: (string | null)
13416
+ /**
13417
+ * The full ingest token, for kind "ingest" — shown only here, store it now
13418
+ */
13419
+ token?: string
13420
+ /**
13421
+ * First characters of the token, shown for recognition
13422
+ */
13423
+ prefix: string
13424
+ /**
13425
+ * ISO 8601 creation timestamp
13426
+ */
13427
+ createdAt: string
13428
+ /**
13429
+ * ISO 8601 revocation timestamp, or null if active
13430
+ */
13431
+ revokedAt: (string | null)
13432
+ /**
13433
+ * Environment the key writes telemetry for
13434
+ */
13435
+ environment: string
13436
+ }
13437
+
13438
+ export interface ObserveKeysListInput {
13439
+ /**
13440
+ * Only return keys of this environment; omit to list all of them
13441
+ */
13442
+ environment?: string
13443
+ }
13444
+
13445
+ export type ObserveKeysListOutput = {
13446
+ /**
13447
+ * Identifier of the ingest key
13448
+ */
13449
+ id: string
13450
+ /**
13451
+ * ingest = Bearer OTLP key; dsn = public Sentry key that ships in client code
13452
+ */
13453
+ kind: ("ingest" | "dsn")
13454
+ /**
13455
+ * Human label given at creation, or null
13456
+ */
13457
+ name: (string | null)
13458
+ /**
13459
+ * First characters of the token, shown for recognition
13460
+ */
13461
+ prefix: string
13462
+ /**
13463
+ * ISO 8601 creation timestamp
13464
+ */
13465
+ createdAt: string
13466
+ /**
13467
+ * ISO 8601 revocation timestamp, or null if active
13468
+ */
13469
+ revokedAt: (string | null)
13470
+ /**
13471
+ * Environment the key writes telemetry for
13472
+ */
13473
+ environment: string
13474
+ }[]
13475
+
13476
+ export interface ObserveKeysRevokeInput {
13477
+ /**
13478
+ * Identifier of the ingest key to revoke
13479
+ */
13480
+ id: string
13481
+ }
13482
+
13483
+ export interface ObserveKeysRevokeOutput {
13484
+ /**
13485
+ * Identifier of the revoked key
13486
+ */
13487
+ id: string
13488
+ /**
13489
+ * ISO 8601 timestamp of the revocation
13490
+ */
13491
+ revokedAt: string
13492
+ }
13493
+
13494
+ export interface ObserveLogsFacetsInput {
13495
+ /**
13496
+ * How far back to count, e.g. "1h", "24h", "7d". Up to 30d, default "24h"
13497
+ */
13498
+ window?: string
13499
+ }
13500
+
13501
+ export interface ObserveLogsFacetsOutput {
13502
+ /**
13503
+ * Newest timestamp counted, ISO 8601
13504
+ */
13505
+ to: string
13506
+ /**
13507
+ * Oldest timestamp counted, ISO 8601
13508
+ */
13509
+ from: string
13510
+ /**
13511
+ * The window that was counted, e.g. "24h"
13512
+ */
13513
+ window: string
13514
+ /**
13515
+ * Services, most frequent first
13516
+ */
13517
+ services: ObserveLogsFacetsOutputItems[]
13518
+ /**
13519
+ * Severities, most frequent first
13520
+ */
13521
+ severities: ObserveLogsFacetsOutputItems[]
13522
+ /**
13523
+ * Environments, most frequent first
13524
+ */
13525
+ environments: ObserveLogsFacetsOutputItems[]
13526
+ }
13527
+ export interface ObserveLogsFacetsOutputItems {
13528
+ /**
13529
+ * How many lines carried it inside the window
13530
+ */
13531
+ count: number
13532
+ /**
13533
+ * The value as the emitter wrote it
13534
+ */
13535
+ value: string
13536
+ }
13537
+
13538
+ export interface ObserveLogsSearchInput {
13539
+ /**
13540
+ * Lucene-style expression, ANDed with the structured filters. `key:value` (service, environment, severity, trace_id, span_id, body; any other key matches an attribute), "quoted phrases", AND / OR / NOT in uppercase, parentheses. A bare word matches a whole word in the message body. Example: service:api AND NOT severity:INFO AND "connection refused"
13541
+ */
13542
+ q?: string
13543
+ /**
13544
+ * Newest timestamp to include, ISO 8601
13545
+ */
13546
+ to?: string
13547
+ /**
13548
+ * Oldest timestamp to include, ISO 8601
13549
+ */
13550
+ from?: string
13551
+ /**
13552
+ * How many lines to return, 1-1000, default 100
13553
+ */
13554
+ limit?: number
13555
+ /**
13556
+ * The nextCursor of the previous page; omit for the first page
13557
+ */
13558
+ cursor?: string
13559
+ /**
13560
+ * Match the message body. A single word matches whole words and is indexed; anything longer is a case-insensitive substring match
13561
+ */
13562
+ search?: string
13563
+ /**
13564
+ * Only lines of this service, e.g. "api"
13565
+ */
13566
+ service?: string
13567
+ /**
13568
+ * Only lines of this trace
13569
+ */
13570
+ traceId?: string
13571
+ /**
13572
+ * Only lines whose severity is one of these, e.g. ["ERROR", "FATAL"]
13573
+ *
13574
+ * @minItems 1
13575
+ */
13576
+ severityIn?: [string, ...(string)[]]
13577
+ /**
13578
+ * Only lines of this environment, e.g. "production"
13579
+ */
13580
+ environment?: string
13581
+ }
13582
+
13583
+ export interface ObserveLogsSearchOutput {
13584
+ /**
13585
+ * The matching log lines, newest first
13586
+ */
13587
+ rows: {
13588
+ /**
13589
+ * The log message itself
13590
+ */
13591
+ body: string
13592
+ /**
13593
+ * Span this line belongs to, empty when untraced
13594
+ */
13595
+ spanId: string
13596
+ /**
13597
+ * Service that wrote the line
13598
+ */
13599
+ service: string
13600
+ /**
13601
+ * Trace this line belongs to, empty when untraced
13602
+ */
13603
+ traceId: string
13604
+ /**
13605
+ * ISO 8601 timestamp of the log line, millisecond precision
13606
+ */
13607
+ timestamp: string
13608
+ /**
13609
+ * Attributes the emitter attached
13610
+ */
13611
+ attributes: {
13612
+ [k: string]: string
13613
+ }
13614
+ /**
13615
+ * Environment the line was written in
13616
+ */
13617
+ environment: string
13618
+ /**
13619
+ * Severity as the emitter named it, e.g. "ERROR"
13620
+ */
13621
+ severityText: string
13622
+ /**
13623
+ * OpenTelemetry severity number, 1-24
13624
+ */
13625
+ severityNumber: number
13626
+ }[]
13627
+ /**
13628
+ * Pass back as cursor for the next page; null when the last page was reached
13629
+ */
13630
+ nextCursor: (string | null)
13631
+ }
13632
+
13633
+ export interface ObserveLogsTailInput {
13634
+ /**
13635
+ * The nextCursor of the previous poll; omit to start at the newest lines
13636
+ */
13637
+ cursor?: string
13638
+ /**
13639
+ * Only lines of this service
13640
+ */
13641
+ service?: string
13642
+ /**
13643
+ * Only lines whose severity is one of these
13644
+ *
13645
+ * @minItems 1
13646
+ */
13647
+ severityIn?: [string, ...(string)[]]
13648
+ /**
13649
+ * Only lines of this environment
13650
+ */
13651
+ environment?: string
13652
+ }
13653
+
13654
+ export interface ObserveLogsTailOutput {
13655
+ /**
13656
+ * The new log lines, oldest first
13657
+ */
13658
+ rows: {
13659
+ /**
13660
+ * The log message itself
13661
+ */
13662
+ body: string
13663
+ /**
13664
+ * Span this line belongs to, empty when untraced
13665
+ */
13666
+ spanId: string
13667
+ /**
13668
+ * Service that wrote the line
13669
+ */
13670
+ service: string
13671
+ /**
13672
+ * Trace this line belongs to, empty when untraced
13673
+ */
13674
+ traceId: string
13675
+ /**
13676
+ * ISO 8601 timestamp of the log line, millisecond precision
13677
+ */
13678
+ timestamp: string
13679
+ /**
13680
+ * Attributes the emitter attached
13681
+ */
13682
+ attributes: {
13683
+ [k: string]: string
13684
+ }
13685
+ /**
13686
+ * Environment the line was written in
13687
+ */
13688
+ environment: string
13689
+ /**
13690
+ * Severity as the emitter named it, e.g. "ERROR"
13691
+ */
13692
+ severityText: string
13693
+ /**
13694
+ * OpenTelemetry severity number, 1-24
13695
+ */
13696
+ severityNumber: number
13697
+ }[]
13698
+ /**
13699
+ * Pass back as cursor on the next poll; null only while the product has no logs
13700
+ */
13701
+ nextCursor: (string | null)
13702
+ }
13703
+
13704
+ export interface ObserveTracesGetInput {
13705
+ /**
13706
+ * The trace to render, by its 32-character hex id
13707
+ */
13708
+ traceId: string
13709
+ }
13710
+
13711
+ export interface ObserveTracesGetOutput {
13712
+ /**
13713
+ * Every span of the trace, oldest first; empty when the product has no such trace
13714
+ */
13715
+ spans: {
13716
+ /**
13717
+ * OTLP span kind: UNSPECIFIED, INTERNAL, SERVER, CLIENT, PRODUCER or CONSUMER
13718
+ */
13719
+ kind: string
13720
+ /**
13721
+ * Span name, e.g. "GET /users"
13722
+ */
13723
+ name: string
13724
+ /**
13725
+ * How many ancestors the span has inside this trace; the root is 0
13726
+ */
13727
+ depth: number
13728
+ /**
13729
+ * Events recorded on the span, in the order they were sent
13730
+ */
13731
+ events: {
13732
+ /**
13733
+ * Event name as the emitter wrote it, e.g. "exception"
13734
+ */
13735
+ name: string
13736
+ /**
13737
+ * When the event was recorded, ISO 8601
13738
+ */
13739
+ timestamp: string
13740
+ /**
13741
+ * The event's own attributes, raw
13742
+ */
13743
+ attributes: {
13744
+ [k: string]: unknown
13745
+ }
13746
+ }[]
13747
+ /**
13748
+ * The span id, 16 hex characters
13749
+ */
13750
+ spanId: string
13751
+ /**
13752
+ * OTLP span status: UNSET, OK or ERROR
13753
+ */
13754
+ status: string
13755
+ /**
13756
+ * When the span ended, ISO 8601, nanosecond precision
13757
+ */
13758
+ endTime: string
13759
+ /**
13760
+ * Service that recorded the span
13761
+ */
13762
+ service: string
13763
+ /**
13764
+ * When the span started, ISO 8601, nanosecond precision
13765
+ */
13766
+ startTime: string
13767
+ /**
13768
+ * Attributes the emitter attached
13769
+ */
13770
+ attributes: {
13771
+ [k: string]: string
13772
+ }
13773
+ /**
13774
+ * How long the span took, in milliseconds
13775
+ */
13776
+ durationMs: number
13777
+ /**
13778
+ * Environment the span was recorded in
13779
+ */
13780
+ environment: string
13781
+ /**
13782
+ * Parent span id; empty for the root or when the parent is not in this trace
13783
+ */
13784
+ parentSpanId: string
13785
+ /**
13786
+ * Status message the emitter attached, empty when none
13787
+ */
13788
+ statusMessage: string
13789
+ /**
13790
+ * Attributes of the emitting resource
13791
+ */
13792
+ resourceAttributes: {
13793
+ [k: string]: string
13794
+ }
13795
+ }[]
13796
+ /**
13797
+ * The trace that was read
13798
+ */
13799
+ traceId: string
13800
+ }
13801
+
13802
+ export interface ObserveTracesSearchInput {
13803
+ /**
13804
+ * Newest span start to include, ISO 8601
13805
+ */
13806
+ to?: string
13807
+ /**
13808
+ * Oldest span start to include, ISO 8601
13809
+ */
13810
+ from?: string
13811
+ /**
13812
+ * Only traces one of whose spans carries this exact span name, e.g. "GET /users"
13813
+ */
13814
+ name?: string
13815
+ /**
13816
+ * How many traces to return, 1-1000, default 100
13817
+ */
13818
+ limit?: number
13819
+ /**
13820
+ * The nextCursor of the previous page; omit for the first page
13821
+ */
13822
+ cursor?: string
13823
+ /**
13824
+ * Only traces in this state: "error" when any span failed, "ok" when none did and at least one reported OK, "unset" when no span reported a status
13825
+ */
13826
+ status?: ("ok" | "error" | "unset")
13827
+ /**
13828
+ * Only traces one of whose spans belongs to this service, e.g. "api"
13829
+ */
13830
+ service?: string
13831
+ /**
13832
+ * Only this trace, by its 32-character hex id
13833
+ */
13834
+ traceId?: string
13835
+ /**
13836
+ * Only traces of this environment, e.g. "production"
13837
+ */
13838
+ environment?: string
13839
+ /**
13840
+ * Only traces that took at most this many milliseconds end to end
13841
+ */
13842
+ maxDurationMs?: number
13843
+ /**
13844
+ * Only traces that took at least this many milliseconds end to end
13845
+ */
13846
+ minDurationMs?: number
13847
+ }
13848
+
13849
+ export interface ObserveTracesSearchOutput {
13850
+ /**
13851
+ * The matching traces, newest first
13852
+ */
13853
+ traces: {
13854
+ /**
13855
+ * The trace id, 32 hex characters
13856
+ */
13857
+ traceId: string
13858
+ /**
13859
+ * True when at least one span failed
13860
+ */
13861
+ hasError: boolean
13862
+ /**
13863
+ * Name of the root span — the one with no parent, or the earliest span
13864
+ */
13865
+ rootName: string
13866
+ /**
13867
+ * How many spans the trace has
13868
+ */
13869
+ spanCount: number
13870
+ /**
13871
+ * When the earliest span started, ISO 8601
13872
+ */
13873
+ startTime: string
13874
+ /**
13875
+ * Earliest start to latest end, in milliseconds
13876
+ */
13877
+ durationMs: number
13878
+ /**
13879
+ * How many of them reported an ERROR status
13880
+ */
13881
+ errorCount: number
13882
+ /**
13883
+ * Environment the root span was recorded in
13884
+ */
13885
+ environment: string
13886
+ /**
13887
+ * Service the root span belongs to
13888
+ */
13889
+ rootService: string
13890
+ }[]
13891
+ /**
13892
+ * Pass back as cursor for the next page; null when the last page was reached
13893
+ */
13894
+ nextCursor: (string | null)
13895
+ }
13896
+
13897
+ export interface ObserveWebhooksCreateInput {
13898
+ /**
13899
+ * HTTPS endpoint the event is POSTed to. Plain http:// is rejected
13900
+ */
13901
+ url: string
13902
+ /**
13903
+ * Free-form note about what this endpoint is for, up to 1000 characters
13904
+ */
13905
+ description?: string
13906
+ }
13907
+
13908
+ export interface ObserveWebhooksCreateOutput {
13909
+ /**
13910
+ * Identifier of the endpoint
13911
+ */
13912
+ id: string
13913
+ /**
13914
+ * HTTPS endpoint events are POSTed to
13915
+ */
13916
+ url: string
13917
+ /**
13918
+ * Whether deliveries are being attempted for it
13919
+ */
13920
+ active: boolean
13921
+ /**
13922
+ * The signing secret — shown only here, store it now; it cannot be read back
13923
+ */
13924
+ secret: string
13925
+ /**
13926
+ * ISO 8601 registration timestamp
13927
+ */
13928
+ createdAt: string
13929
+ /**
13930
+ * ISO 8601 timestamp of the last change
13931
+ */
13932
+ updatedAt: string
13933
+ /**
13934
+ * Free-form note given at registration, or null
13935
+ */
13936
+ description: (string | null)
13937
+ }
13938
+
13939
+ export interface ObserveWebhooksDeleteInput {
13940
+ /**
13941
+ * Identifier of the endpoint
13942
+ */
13943
+ id: string
13944
+ }
13945
+
13946
+ export interface ObserveWebhooksDeleteOutput {
13947
+ /**
13948
+ * Identifier of the removed endpoint
13949
+ */
13950
+ id: string
13951
+ /**
13952
+ * Always true; the call fails otherwise
13953
+ */
13954
+ deleted: true
13955
+ }
13956
+
13957
+ export interface ObserveWebhooksDeliveriesListInput {
13958
+ /**
13959
+ * Page size, 1..200
13960
+ */
13961
+ limit?: number
13962
+ /**
13963
+ * Number of deliveries to skip
13964
+ */
13965
+ offset?: number
13966
+ /**
13967
+ * Only deliveries in this state
13968
+ */
13969
+ status?: ("pending" | "success" | "failed")
13970
+ /**
13971
+ * Only deliveries for this endpoint
13972
+ */
13973
+ webhookId?: string
13974
+ }
13975
+
13976
+ export type ObserveWebhooksDeliveriesListOutput = {
13977
+ /**
13978
+ * Identifier of the delivery, also sent as the envelope id
13979
+ */
13980
+ id: string
13981
+ /**
13982
+ * pending means attempts remain; failed means the retry ladder is spent
13983
+ */
13984
+ status: ("pending" | "success" | "failed")
13985
+ /**
13986
+ * The event data that was sent, before snake_case conversion
13987
+ */
13988
+ payload?: {
13989
+ [k: string]: unknown
13990
+ }
13991
+ /**
13992
+ * ISO 8601 time the delivery was opened
13993
+ */
13994
+ createdAt: string
13995
+ /**
13996
+ * Event that was delivered, e.g. "observe/issue.created"
13997
+ */
13998
+ eventName: string
13999
+ /**
14000
+ * Why the last attempt failed, or null
14001
+ */
14002
+ lastError: (string | null)
14003
+ /**
14004
+ * Endpoint the delivery is for
14005
+ */
14006
+ webhookId: string
14007
+ /**
14008
+ * ISO 8601 time it succeeded, or null
14009
+ */
14010
+ deliveredAt: (string | null)
14011
+ /**
14012
+ * How many attempts have been made so far
14013
+ */
14014
+ attemptCount: number
14015
+ /**
14016
+ * Identity of the source event, repeated on every attempt and on a redelivery
14017
+ */
14018
+ idempotencyKey: string
14019
+ /**
14020
+ * HTTP status of the last attempt, or null
14021
+ */
14022
+ lastStatusCode: (number | null)
14023
+ }[]
14024
+
14025
+ export interface ObserveWebhooksGetInput {
14026
+ /**
14027
+ * Identifier of the endpoint
14028
+ */
14029
+ id: string
14030
+ }
14031
+
14032
+ export interface ObserveWebhooksGetOutput {
14033
+ /**
14034
+ * Identifier of the endpoint
14035
+ */
14036
+ id: string
14037
+ /**
14038
+ * HTTPS endpoint events are POSTed to
14039
+ */
14040
+ url: string
14041
+ /**
14042
+ * Whether deliveries are being attempted for it
14043
+ */
14044
+ active: boolean
14045
+ /**
14046
+ * ISO 8601 registration timestamp
14047
+ */
14048
+ createdAt: string
14049
+ /**
14050
+ * ISO 8601 timestamp of the last change
14051
+ */
14052
+ updatedAt: string
14053
+ /**
14054
+ * Free-form note given at registration, or null
14055
+ */
14056
+ description: (string | null)
14057
+ }
14058
+
14059
+ export interface ObserveWebhooksListInput {
14060
+
14061
+ }
14062
+
14063
+ export type ObserveWebhooksListOutput = {
14064
+ /**
14065
+ * Identifier of the endpoint
14066
+ */
14067
+ id: string
14068
+ /**
14069
+ * HTTPS endpoint events are POSTed to
14070
+ */
14071
+ url: string
14072
+ /**
14073
+ * Whether deliveries are being attempted for it
14074
+ */
14075
+ active: boolean
14076
+ /**
14077
+ * ISO 8601 registration timestamp
14078
+ */
14079
+ createdAt: string
14080
+ /**
14081
+ * ISO 8601 timestamp of the last change
14082
+ */
14083
+ updatedAt: string
14084
+ /**
14085
+ * Free-form note given at registration, or null
14086
+ */
14087
+ description: (string | null)
14088
+ }[]
14089
+
14090
+ export interface ObserveWebhooksRedeliverInput {
14091
+ /**
14092
+ * Identifier of the delivery to send again
14093
+ */
14094
+ id: string
14095
+ }
14096
+
14097
+ export interface ObserveWebhooksRedeliverOutput {
14098
+ /**
14099
+ * Identifier of the delivery, also sent as the envelope id
14100
+ */
14101
+ id: string
14102
+ /**
14103
+ * pending means attempts remain; failed means the retry ladder is spent
14104
+ */
14105
+ status: ("pending" | "success" | "failed")
14106
+ /**
14107
+ * The event data that was sent, before snake_case conversion
14108
+ */
14109
+ payload?: {
14110
+ [k: string]: unknown
14111
+ }
14112
+ /**
14113
+ * ISO 8601 time the delivery was opened
14114
+ */
14115
+ createdAt: string
14116
+ /**
14117
+ * Event that was delivered, e.g. "observe/issue.created"
14118
+ */
14119
+ eventName: string
14120
+ /**
14121
+ * Why the last attempt failed, or null
14122
+ */
14123
+ lastError: (string | null)
14124
+ /**
14125
+ * Endpoint the delivery is for
14126
+ */
14127
+ webhookId: string
14128
+ /**
14129
+ * ISO 8601 time it succeeded, or null
14130
+ */
14131
+ deliveredAt: (string | null)
14132
+ /**
14133
+ * How many attempts have been made so far
14134
+ */
14135
+ attemptCount: number
14136
+ /**
14137
+ * Identity of the source event, repeated on every attempt and on a redelivery
14138
+ */
14139
+ idempotencyKey: string
14140
+ /**
14141
+ * HTTP status of the last attempt, or null
14142
+ */
14143
+ lastStatusCode: (number | null)
14144
+ }
14145
+
14146
+ export interface ObserveWebhooksRotateSecretInput {
14147
+ /**
14148
+ * Identifier of the endpoint
14149
+ */
14150
+ id: string
14151
+ }
14152
+
14153
+ export interface ObserveWebhooksRotateSecretOutput {
14154
+ /**
14155
+ * Identifier of the endpoint
14156
+ */
14157
+ id: string
14158
+ /**
14159
+ * HTTPS endpoint events are POSTed to
14160
+ */
14161
+ url: string
14162
+ /**
14163
+ * Whether deliveries are being attempted for it
14164
+ */
14165
+ active: boolean
14166
+ /**
14167
+ * The signing secret — shown only here, store it now; it cannot be read back
14168
+ */
14169
+ secret: string
14170
+ /**
14171
+ * ISO 8601 registration timestamp
14172
+ */
14173
+ createdAt: string
14174
+ /**
14175
+ * ISO 8601 timestamp of the last change
14176
+ */
14177
+ updatedAt: string
14178
+ /**
14179
+ * Free-form note given at registration, or null
14180
+ */
14181
+ description: (string | null)
14182
+ }
14183
+
14184
+ export interface ObserveWebhooksUpdateInput {
14185
+ /**
14186
+ * Identifier of the endpoint to change
14187
+ */
14188
+ id: string
14189
+ /**
14190
+ * New HTTPS endpoint. Plain http:// is rejected
14191
+ */
14192
+ url?: string
14193
+ /**
14194
+ * false keeps the registration and stops delivery; true resumes it
14195
+ */
14196
+ active?: boolean
14197
+ /**
14198
+ * New note, or null to clear it
14199
+ */
14200
+ description?: (string | null)
14201
+ }
14202
+
14203
+ export interface ObserveWebhooksUpdateOutput {
14204
+ /**
14205
+ * Identifier of the endpoint
14206
+ */
14207
+ id: string
14208
+ /**
14209
+ * HTTPS endpoint events are POSTed to
14210
+ */
14211
+ url: string
14212
+ /**
14213
+ * Whether deliveries are being attempted for it
14214
+ */
14215
+ active: boolean
14216
+ /**
14217
+ * ISO 8601 registration timestamp
14218
+ */
14219
+ createdAt: string
14220
+ /**
14221
+ * ISO 8601 timestamp of the last change
14222
+ */
14223
+ updatedAt: string
14224
+ /**
14225
+ * Free-form note given at registration, or null
14226
+ */
14227
+ description: (string | null)
14228
+ }
14229
+
14230
+ export interface OrganizationAuthMeInput {
14231
+
14232
+ }
14233
+
14234
+ export interface OrganizationAuthMeOutput {
14235
+ email: string
14236
+ identityId: string
14237
+ displayName: string
14238
+ identityType: string
14239
+ }
14240
+
14241
+ export interface OrganizationBillingBudgetsGetInput {
14242
+
14243
+ }
14244
+
14245
+ export interface OrganizationBillingBudgetsGetOutput {
14246
+ [k: string]: unknown
14247
+ }
14248
+
14249
+ export interface OrganizationBillingBudgetsSetInput {
14250
+ ceiling_minor: number
14251
+ }
14252
+
14253
+ export interface OrganizationBillingBudgetsSetOutput {
14254
+ [k: string]: unknown
14255
+ }
14256
+
14257
+ export interface OrganizationBillingCapsClearInput {
14258
+ productId: string
14259
+ }
14260
+
14261
+ export interface OrganizationBillingCapsClearOutput {
14262
+ [k: string]: unknown
14263
+ }
14264
+
14265
+ export interface OrganizationBillingCapsSetInput {
14266
+ cap_minor: number
14267
+ productId: string
14268
+ }
14269
+
14270
+ export interface OrganizationBillingCapsSetOutput {
14271
+ [k: string]: unknown
14272
+ }
14273
+
14274
+ export interface OrganizationBindingsListInput {
14275
+ domainId: string
14276
+ productId: string
14277
+ }
14278
+
14279
+ export type OrganizationBindingsListOutput = {
14280
+ host: string
14281
+ status: ("pending" | "active" | "failed")
14282
+ records: {
14283
+ ttl?: number
14284
+ name?: string
14285
+ target: string
14286
+ proxied?: boolean
14287
+ priority?: number
14288
+ recordType: string
14289
+ }[]
14290
+ domainId: string
14291
+ bindingId: string
14292
+ instruction: (string | null)
14293
+ statusDetail: (string | null)
14294
+ ownerExtension: string
14295
+ }[]
14296
+
14297
+ export interface OrganizationClickupInstallInput {
14298
+
14299
+ }
14300
+
14301
+ export interface OrganizationClickupInstallOutput {
14302
+ url: string
14303
+ }
14304
+
14305
+ export interface OrganizationClickupListInstallationsInput {
14306
+
14307
+ }
14308
+
14309
+ export type OrganizationClickupListInstallationsOutput = {
14310
+ status: string
14311
+ teamId: string
14312
+ teamName: string
14313
+ }[]
14314
+
14315
+ export interface OrganizationCloudflareInstallInput {
14316
+
14317
+ }
14318
+
14319
+ export interface OrganizationCloudflareInstallOutput {
14320
+ url: string
14321
+ }
14322
+
14323
+ export interface OrganizationConnectorsApproveRequestInput {
14324
+ id: string
14325
+ requestId: string
14326
+ }
14327
+
14328
+ export interface OrganizationConnectorsApproveRequestOutput {
14329
+ success: boolean
14330
+ }
14331
+
14332
+ export interface OrganizationConnectorsAttachInput {
14333
+ id: string
14334
+ productIds: string[]
14335
+ }
14336
+
14337
+ export interface OrganizationConnectorsAttachOutput {
14338
+ attachments: {
14339
+ createdAt: string
14340
+ createdBy: (string | null)
14341
+ productId: string
14342
+ customerId: (string | null)
14343
+ descriptiveName: (string | null)
14344
+ }[]
14345
+ connectorId: string
14346
+ }
14347
+
14348
+ export interface OrganizationConnectorsDeleteInput {
14349
+ id: string
14350
+ }
14351
+
14352
+ export interface OrganizationConnectorsDeleteOutput {
14353
+ success: boolean
14354
+ }
14355
+
14356
+ export interface OrganizationConnectorsDenyRequestInput {
14357
+ id: string
12736
14358
  requestId: string
12737
14359
  }
12738
14360
 
@@ -12981,8 +14603,9 @@ details: string
12981
14603
  }
12982
14604
 
12983
14605
  export interface OrganizationFeedbackSubmitOutput {
12984
- url: string
12985
- number: number
14606
+ url: (string | null)
14607
+ number: (number | null)
14608
+ supportThreadId?: string
12986
14609
  }
12987
14610
 
12988
14611
  export interface OrganizationGdriveInstallInput {
@@ -13261,25 +14884,6 @@ display_name: string
13261
14884
  }[]
13262
14885
  }
13263
14886
 
13264
- export interface OrganizationProductAcceptInvitationInput {
13265
- token: string
13266
- }
13267
-
13268
- export interface OrganizationProductAcceptInvitationOutput {
13269
- product: {
13270
- id: string
13271
- name: string
13272
- role: string
13273
- slug: string
13274
- demoAt: (string | null)
13275
- status: string
13276
- blockedAt: (string | null)
13277
- createdAt: string
13278
- archivedAt: (string | null)
13279
- organizationId: string
13280
- }
13281
- }
13282
-
13283
14887
  export interface OrganizationProductCreateInput {
13284
14888
  name: string
13285
14889
  region?: "eu"
@@ -13293,34 +14897,14 @@ role: string
13293
14897
  slug: string
13294
14898
  demoAt: (string | null)
13295
14899
  status: string
14900
+ logoUrl: (string | null)
13296
14901
  blockedAt: (string | null)
13297
14902
  createdAt: string
13298
14903
  archivedAt: (string | null)
14904
+ description: (string | null)
13299
14905
  organizationId: string
13300
14906
  }
13301
14907
 
13302
- export interface OrganizationProductInviteInput {
13303
- role?: ("admin" | "member" | "viewer")
13304
- email: string
13305
- productId: string
13306
- }
13307
-
13308
- export type OrganizationProductInviteOutput = ({
13309
- id: string
13310
- role: string
13311
- email: (string | null)
13312
- status: string
13313
- outcome: "invited"
13314
- createdAt: string
13315
- expiresAt: string
13316
- } | {
13317
- role: string
13318
- userId: string
13319
- outcome: "added"
13320
- memberId: string
13321
- productId: string
13322
- })
13323
-
13324
14908
  export interface OrganizationProductListInput {
13325
14909
 
13326
14910
  }
@@ -13333,26 +14917,49 @@ role: string
13333
14917
  slug: string
13334
14918
  demoAt: (string | null)
13335
14919
  status: string
14920
+ logoUrl: (string | null)
13336
14921
  blockedAt: (string | null)
13337
14922
  createdAt: string
13338
14923
  archivedAt: (string | null)
14924
+ description: (string | null)
13339
14925
  organizationId: string
13340
14926
  }[]
13341
14927
  }
13342
14928
 
13343
- export interface OrganizationProductListInvitationsInput {
14929
+ export interface OrganizationProductListAccessInput {
13344
14930
  productId: string
13345
14931
  }
13346
14932
 
13347
- export interface OrganizationProductListInvitationsOutput {
13348
- invitations: {
13349
- id: string
14933
+ export interface OrganizationProductListAccessOutput {
14934
+ members: {
13350
14935
  role: string
13351
14936
  email: (string | null)
13352
- status: string
13353
- createdAt: string
13354
- expiresAt: string
13355
- invitedByDisplayName: string
14937
+ roleId: (string | null)
14938
+ userId: string
14939
+ isCustom: boolean
14940
+ roleName: (string | null)
14941
+ sourceRole: ({
14942
+ id: string
14943
+ name: string
14944
+ } | null)
14945
+ displayName: (string | null)
14946
+ }[]
14947
+ orgRoles: {
14948
+ id: string
14949
+ name: string
14950
+ description: (string | null)
14951
+ }[]
14952
+ canManage: boolean
14953
+ inherited: {
14954
+ email: (string | null)
14955
+ userId: string
14956
+ orgRole: ("owner" | "admin")
14957
+ displayName: (string | null)
14958
+ }[]
14959
+ candidates: {
14960
+ email: (string | null)
14961
+ userId: string
14962
+ displayName: (string | null)
13356
14963
  }[]
13357
14964
  }
13358
14965
 
@@ -13391,13 +14998,13 @@ productId: (string | null)
13391
14998
  }[]
13392
14999
  }
13393
15000
 
13394
- export interface OrganizationProductRevokeInvitationInput {
15001
+ export interface OrganizationProductRevokeAccessInput {
15002
+ userId: string
13395
15003
  productId: string
13396
- invitationId: string
13397
15004
  }
13398
15005
 
13399
- export interface OrganizationProductRevokeInvitationOutput {
13400
- message: string
15006
+ export interface OrganizationProductRevokeAccessOutput {
15007
+ [k: string]: unknown
13401
15008
  }
13402
15009
 
13403
15010
  export interface OrganizationProductSelectInput {
@@ -13410,9 +15017,23 @@ name: string
13410
15017
  slug: string
13411
15018
  }
13412
15019
 
15020
+ export interface OrganizationProductSetAccessInput {
15021
+ role?: ("admin" | "member" | "viewer")
15022
+ roleId?: string
15023
+ userId: string
15024
+ productId: string
15025
+ }
15026
+
15027
+ export interface OrganizationProductSetAccessOutput {
15028
+ role: string
15029
+ userId: string
15030
+ productId: string
15031
+ }
15032
+
13413
15033
  export interface OrganizationProductUpdateInput {
13414
- name: string
15034
+ name?: string
13415
15035
  productId: string
15036
+ description?: (string | null)
13416
15037
  }
13417
15038
 
13418
15039
  export interface OrganizationProductUpdateOutput {
@@ -13422,9 +15043,11 @@ role: string
13422
15043
  slug: string
13423
15044
  demoAt: (string | null)
13424
15045
  status: string
15046
+ logoUrl: (string | null)
13425
15047
  blockedAt: (string | null)
13426
15048
  createdAt: string
13427
15049
  archivedAt: (string | null)
15050
+ description: (string | null)
13428
15051
  organizationId: string
13429
15052
  }
13430
15053
 
@@ -13634,6 +15257,313 @@ name: string
13634
15257
  activeProductId: (string | null)
13635
15258
  }
13636
15259
 
15260
+ export interface OrganizationSupportThreadCreateInput {
15261
+ body: string
15262
+ title: string
15263
+ }
15264
+
15265
+ export interface OrganizationSupportThreadCreateOutput {
15266
+ id: string
15267
+ title: string
15268
+ status: string
15269
+ category: ("open" | "pending" | "resolved" | "closed")
15270
+ messages: {
15271
+ id: string
15272
+ body: string
15273
+ author: {
15274
+ kind: ("user" | "agent")
15275
+ name: string
15276
+ }
15277
+ createdAt: string
15278
+ }[]
15279
+ createdAt: string
15280
+ lastMessageAt: string
15281
+ lastMessagePreview: (string | null)
15282
+ }
15283
+
15284
+ export interface OrganizationSupportThreadGetInput {
15285
+ id: string
15286
+ }
15287
+
15288
+ export interface OrganizationSupportThreadGetOutput {
15289
+ id: string
15290
+ title: string
15291
+ status: string
15292
+ category: ("open" | "pending" | "resolved" | "closed")
15293
+ messages: {
15294
+ id: string
15295
+ body: string
15296
+ author: {
15297
+ kind: ("user" | "agent")
15298
+ name: string
15299
+ }
15300
+ createdAt: string
15301
+ }[]
15302
+ createdAt: string
15303
+ lastMessageAt: string
15304
+ lastMessagePreview: (string | null)
15305
+ }
15306
+
15307
+ export interface OrganizationSupportThreadReplyInput {
15308
+ id: string
15309
+ body: string
15310
+ }
15311
+
15312
+ export interface OrganizationSupportThreadReplyOutput {
15313
+ id: string
15314
+ title: string
15315
+ status: string
15316
+ category: ("open" | "pending" | "resolved" | "closed")
15317
+ messages: {
15318
+ id: string
15319
+ body: string
15320
+ author: {
15321
+ kind: ("user" | "agent")
15322
+ name: string
15323
+ }
15324
+ createdAt: string
15325
+ }[]
15326
+ createdAt: string
15327
+ lastMessageAt: string
15328
+ lastMessagePreview: (string | null)
15329
+ }
15330
+
15331
+ export interface OrganizationSupportThreadsListInput {
15332
+
15333
+ }
15334
+
15335
+ export interface OrganizationSupportThreadsListOutput {
15336
+ threads: {
15337
+ id: string
15338
+ title: string
15339
+ status: string
15340
+ category: ("open" | "pending" | "resolved" | "closed")
15341
+ createdAt: string
15342
+ lastMessageAt: string
15343
+ lastMessagePreview: (string | null)
15344
+ }[]
15345
+ }
15346
+
15347
+ export interface PlaygroundAnalyticsOverviewInput {
15348
+ /**
15349
+ * Max records per entity in recent[]; omit for the endpoint default
15350
+ */
15351
+ limit?: number
15352
+ }
15353
+
15354
+ export interface PlaygroundAnalyticsOverviewOutput {
15355
+ ok: boolean
15356
+ minted: boolean
15357
+ overview?: unknown
15358
+ http_status: number
15359
+ }
15360
+
15361
+ export interface PlaygroundBillingEntitlementsInput {
15362
+
15363
+ }
15364
+
15365
+ export interface PlaygroundBillingEntitlementsOutput {
15366
+ ok: boolean
15367
+ minted: boolean
15368
+ http_status: number
15369
+ entitlements?: unknown
15370
+ }
15371
+
15372
+ export interface PlaygroundBillingRecordUsageInput {
15373
+ /**
15374
+ * Quantity of events to record against playground-events (SUM); defaults to 1
15375
+ */
15376
+ value?: number
15377
+ }
15378
+
15379
+ export interface PlaygroundBillingRecordUsageOutput {
15380
+ minted: boolean
15381
+ accepted: (number | null)
15382
+ recorded: boolean
15383
+ duplicates: (number | null)
15384
+ http_status: number
15385
+ }
15386
+
15387
+ export interface PlaygroundClickupCreateTaskInput {
15388
+ /**
15389
+ * Task title; defaults to a fixture label
15390
+ */
15391
+ name?: string
15392
+ /**
15393
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
15394
+ */
15395
+ listId?: string
15396
+ }
15397
+
15398
+ export interface PlaygroundClickupCreateTaskOutput {
15399
+ minted: boolean
15400
+ task_id: (string | null)
15401
+ list_status: number
15402
+ vend_status: number
15403
+ clickup_status: number
15404
+ installation_count: number
15405
+ }
15406
+
15407
+ export interface PlaygroundClickupGetLastWebhookInput {
15408
+
15409
+ }
15410
+
15411
+ export type PlaygroundClickupGetLastWebhookOutput = ({
15412
+ payload: string
15413
+ event_id: string
15414
+ provider: string
15415
+ verified: boolean
15416
+ product_id: string
15417
+ occurred_at: string
15418
+ connector_id: string
15419
+ clickup_event: (string | null)
15420
+ receipt_count: number
15421
+ } | {
15422
+ found: false
15423
+ })
15424
+
15425
+ export interface PlaygroundClickupGetOverviewInput {
15426
+
15427
+ }
15428
+
15429
+ export interface PlaygroundClickupGetOverviewOutput {
15430
+ team: ({
15431
+ teamId: string
15432
+ teamName: string
15433
+ } | null)
15434
+ lists: PlaygroundClickupGetOverviewOutputItems[]
15435
+ tasks: {
15436
+ id: string
15437
+ name: string
15438
+ status: (string | null)
15439
+ }[]
15440
+ minted: boolean
15441
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
15442
+ list_status: number
15443
+ vend_status: number
15444
+ lists_status: number
15445
+ tasks_status: number
15446
+ spaces_status: number
15447
+ folders_status: number
15448
+ installation_count: number
15449
+ }
15450
+ export interface PlaygroundClickupGetOverviewOutputItems {
15451
+ id: string
15452
+ name: string
15453
+ }
15454
+
15455
+ export interface PlaygroundGdriveGetLastChangeInput {
15456
+
15457
+ }
15458
+
15459
+ export type PlaygroundGdriveGetLastChangeOutput = ({
15460
+ file_id: string
15461
+ removed: boolean
15462
+ file_name: (string | null)
15463
+ mime_type: (string | null)
15464
+ product_id: string
15465
+ occurred_at: string
15466
+ connector_id: string
15467
+ resource_state: string
15468
+ } | {
15469
+ found: false
15470
+ })
15471
+
15472
+ export interface PlaygroundGdriveReadFileInput {
15473
+ /**
15474
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
15475
+ */
15476
+ fileId?: string
15477
+ }
15478
+
15479
+ export interface PlaygroundGdriveReadFileOutput {
15480
+ minted: boolean
15481
+ file_id: (string | null)
15482
+ file_name: (string | null)
15483
+ mime_type: (string | null)
15484
+ file_count: number
15485
+ get_status: number
15486
+ list_status: number
15487
+ vend_status: number
15488
+ content_bytes: (number | null)
15489
+ }
15490
+
15491
+ export interface PlaygroundGoogleadsReadCustomerInput {
15492
+
15493
+ }
15494
+
15495
+ export interface PlaygroundGoogleadsReadCustomerOutput {
15496
+ minted: boolean
15497
+ vended: boolean
15498
+ customer_id: (string | null)
15499
+ vend_status: number
15500
+ result_count: number
15501
+ search_status: number
15502
+ login_customer_id: (string | null)
15503
+ }
15504
+
15505
+ export interface PlaygroundLifecycleGetStateInput {
15506
+
15507
+ }
15508
+
15509
+ export interface PlaygroundLifecycleGetStateOutput {
15510
+ blocked: boolean
15511
+ archived: boolean
15512
+ productId: string
15513
+ lastBlockTransition: ({
15514
+ eventId: string
15515
+ eventName: string
15516
+ productId: string
15517
+ occurredAt: string
15518
+ recordedAt: string
15519
+ receiptCount: number
15520
+ organizationId: string
15521
+ cascadedFromOrg: boolean
15522
+ } | null)
15523
+ lastArchiveTransition: ({
15524
+ eventId: string
15525
+ eventName: string
15526
+ productId: string
15527
+ occurredAt: string
15528
+ recordedAt: string
15529
+ receiptCount: number
15530
+ organizationId: string
15531
+ cascadedFromOrg: boolean
15532
+ } | null)
15533
+ }
15534
+
15535
+ export interface PlaygroundLifecycleListEventsInput {
15536
+
15537
+ }
15538
+
15539
+ export type PlaygroundLifecycleListEventsOutput = {
15540
+ eventId: string
15541
+ eventName: string
15542
+ productId: string
15543
+ occurredAt: string
15544
+ recordedAt: string
15545
+ receiptCount: number
15546
+ organizationId: string
15547
+ cascadedFromOrg: boolean
15548
+ }[]
15549
+
15550
+ export interface PlaygroundWebhookGetLastInput {
15551
+
15552
+ }
15553
+
15554
+ export type PlaygroundWebhookGetLastOutput = ({
15555
+ payload?: unknown
15556
+ event_id: string
15557
+ provider: string
15558
+ verified: boolean
15559
+ product_id: string
15560
+ occurred_at: string
15561
+ connector_id: string
15562
+ delivery_count: number
15563
+ } | {
15564
+ found: false
15565
+ })
15566
+
13637
15567
  export interface RealtimeArchiveExportInput {
13638
15568
  /**
13639
15569
  * Only entries with ts <= to_ts (epoch ms)