@lessly/sdk-app 37.0.0 → 39.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 (57) 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-C7SVQnZq.d.cts → client.gen-CDy1zew2.d.cts} +2048 -206
  10. package/dist/{client.gen-C7SVQnZq.d.ts → client.gen-CDy1zew2.d.ts} +2048 -206
  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 +793 -174
  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 +793 -174
  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.d.cts +1 -1
  30. package/dist/organization/index.d.ts +1 -1
  31. package/dist/playground/index.cjs +66 -0
  32. package/dist/playground/index.cjs.map +1 -0
  33. package/dist/playground/index.d.cts +52 -0
  34. package/dist/playground/index.d.ts +52 -0
  35. package/dist/playground/index.js +53 -0
  36. package/dist/playground/index.js.map +1 -0
  37. package/dist/realtime/index.d.cts +1 -1
  38. package/dist/realtime/index.d.ts +1 -1
  39. package/dist/support/index.d.cts +1 -1
  40. package/dist/support/index.d.ts +1 -1
  41. package/dist/tracking/index.d.cts +1 -1
  42. package/dist/tracking/index.d.ts +1 -1
  43. package/dist/users/index.d.cts +1 -1
  44. package/dist/users/index.d.ts +1 -1
  45. package/dist/waitlist/index.d.cts +1 -1
  46. package/dist/waitlist/index.d.ts +1 -1
  47. package/package.json +12 -2
  48. package/src/gen/bindings.gen.ts +793 -174
  49. package/src/gen/brain/index.ts +1 -1
  50. package/src/gen/brain/queryOptions.gen.ts +0 -7
  51. package/src/gen/client.gen.ts +164 -5
  52. package/src/gen/manifest.gen.ts +1 -1
  53. package/src/gen/observe/index.ts +3 -0
  54. package/src/gen/observe/queryOptions.gen.ts +200 -0
  55. package/src/gen/playground/index.ts +3 -0
  56. package/src/gen/playground/queryOptions.gen.ts +86 -0
  57. package/src/gen/types.gen.ts +2048 -191
@@ -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
  }
@@ -1749,6 +1657,7 @@ outputDir?: string
1749
1657
  }
1750
1658
  markdown?: boolean
1751
1659
  })
1660
+ tracing?: string
1752
1661
  replicas: number
1753
1662
  createdAt: string
1754
1663
  dependsOn: string[]
@@ -2721,7 +2630,7 @@ baseEnvironmentId: (string | null)
2721
2630
  }
2722
2631
 
2723
2632
  export interface DeploymentEventsListByEnvironmentInput {
2724
- type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored")
2633
+ type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.sourcemaps.uploaded" | "deployment.sourcemaps.upload-failed" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored" | "managed-service.restarted")
2725
2634
  limit?: number
2726
2635
  since?: string
2727
2636
  until?: string
@@ -2730,7 +2639,7 @@ environmentId: string
2730
2639
 
2731
2640
  export type DeploymentEventsListByEnvironmentOutput = {
2732
2641
  id: string
2733
- type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored")
2642
+ type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.sourcemaps.uploaded" | "deployment.sourcemaps.upload-failed" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored" | "managed-service.restarted")
2734
2643
  payload: {
2735
2644
  [k: string]: unknown
2736
2645
  }
@@ -2743,7 +2652,7 @@ environmentId: (string | null)
2743
2652
  }[]
2744
2653
 
2745
2654
  export interface DeploymentEventsListByServiceInput {
2746
- type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored")
2655
+ type?: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.sourcemaps.uploaded" | "deployment.sourcemaps.upload-failed" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored" | "managed-service.restarted")
2747
2656
  limit?: number
2748
2657
  since?: string
2749
2658
  until?: string
@@ -2753,7 +2662,7 @@ deploymentId?: string
2753
2662
 
2754
2663
  export type DeploymentEventsListByServiceOutput = {
2755
2664
  id: string
2756
- type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored")
2665
+ type: ("deployment.queued" | "deployment.build.started" | "deployment.build.succeeded" | "deployment.build.failed" | "deployment.deploying" | "deployment.variable.ignored" | "deployment.healthcheck.passed" | "deployment.healthcheck.failed" | "deployment.healthy" | "deployment.failed" | "deployment.replaced" | "deployment.sourcemaps.uploaded" | "deployment.sourcemaps.upload-failed" | "deployment.requeue-failed" | "deployment.release.started" | "deployment.release.log" | "deployment.release.succeeded" | "deployment.release.failed" | "replica.restarted" | "service.scaled" | "service.restarted" | "service.restart-failed" | "domain.verified" | "domain.tls.issued" | "domain.tls.failed" | "domain.www-tls.issued" | "domain.www-tls.failed" | "domain.routing.active" | "domain.routing.failed" | "domain.removed" | "domain.governance.mirror-failed" | "service.slept" | "service.woke" | "service.wake_failed" | "service.sleep-enabled" | "service.sleep-disabled" | "service.sleep-enable-failed" | "cloud-sql.instance.stopped" | "cloud-sql.instance.started" | "cloud-sql.instance.stop-failed" | "cloud-sql.instance.start-failed" | "suspension.workload-stopped" | "suspension.workload-restored" | "managed-service.restarted")
2757
2666
  payload: {
2758
2667
  [k: string]: unknown
2759
2668
  }
@@ -3247,6 +3156,10 @@ outputDir?: string
3247
3156
  }
3248
3157
  markdown?: boolean
3249
3158
  })
3159
+ /**
3160
+ * OTel SDK to inject into this service's pods: 'off' (none), 'node' or 'python'. Read when a deploy builds the workload — takes effect on the next deploy, running pods are untouched.
3161
+ */
3162
+ tracing?: ("off" | "node" | "python")
3250
3163
  replicas?: number
3251
3164
  resources?: {
3252
3165
  limits?: {
@@ -3302,6 +3215,7 @@ outputDir?: string
3302
3215
  }
3303
3216
  markdown?: boolean
3304
3217
  })
3218
+ tracing?: string
3305
3219
  replicas: number
3306
3220
  createdAt: string
3307
3221
  dependsOn: string[]
@@ -3407,6 +3321,7 @@ outputDir?: string
3407
3321
  }
3408
3322
  markdown?: boolean
3409
3323
  })
3324
+ tracing?: string
3410
3325
  replicas: number
3411
3326
  createdAt: string
3412
3327
  dependsOn: string[]
@@ -3479,6 +3394,7 @@ outputDir?: string
3479
3394
  }
3480
3395
  markdown?: boolean
3481
3396
  })
3397
+ tracing?: string
3482
3398
  replicas: number
3483
3399
  createdAt: string
3484
3400
  dependsOn: string[]
@@ -3628,6 +3544,7 @@ outputDir?: string
3628
3544
  }
3629
3545
  markdown?: boolean
3630
3546
  })
3547
+ tracing?: string
3631
3548
  replicas: number
3632
3549
  createdAt: string
3633
3550
  dependsOn: string[]
@@ -3695,6 +3612,10 @@ outputDir?: string
3695
3612
  }
3696
3613
  markdown?: boolean
3697
3614
  })
3615
+ /**
3616
+ * OTel SDK to inject into this service's pods: 'off' (none), 'node' or 'python'. Read when a deploy builds the workload — takes effect on the next deploy, running pods are untouched.
3617
+ */
3618
+ tracing?: ("off" | "node" | "python")
3698
3619
  replicas?: number
3699
3620
  resources?: {
3700
3621
  limits?: {
@@ -3752,6 +3673,7 @@ outputDir?: string
3752
3673
  }
3753
3674
  markdown?: boolean
3754
3675
  })
3676
+ tracing?: string
3755
3677
  replicas: number
3756
3678
  createdAt: string
3757
3679
  dependsOn: string[]
@@ -12605,126 +12527,1840 @@ description: (string | null)
12605
12527
  enabled_events: string[]
12606
12528
  }
12607
12529
 
12608
- export interface OrganizationAuthMeInput {
12609
-
12610
- }
12611
-
12612
- export interface OrganizationAuthMeOutput {
12613
- email: string
12614
- identityId: string
12615
- displayName: string
12616
- identityType: string
12530
+ export interface ObserveAlertsCreateInput {
12531
+ /**
12532
+ * error_rate counts error events in the window; log_match counts log lines matching q
12533
+ */
12534
+ kind: ("error_rate" | "log_match")
12535
+ /**
12536
+ * What to call the rule, up to 200 characters
12537
+ */
12538
+ name: string
12539
+ /**
12540
+ * false registers the rule without evaluating it
12541
+ */
12542
+ enabled?: boolean
12543
+ /**
12544
+ * The kind’s parameters
12545
+ */
12546
+ condition: {
12547
+ /**
12548
+ * log_match only: the same Lucene expression observe_logs_search takes, e.g. level:error AND service:api
12549
+ */
12550
+ q?: string
12551
+ /**
12552
+ * How far back each evaluation looks
12553
+ */
12554
+ window: ("5m" | "15m" | "1h")
12555
+ /**
12556
+ * How many matches in the window count as a problem. At least 1
12557
+ */
12558
+ threshold: number
12617
12559
  }
12618
-
12619
- export interface OrganizationBillingBudgetsGetInput {
12620
-
12560
+ /**
12561
+ * How long after firing the rule stays quiet. Default 60, up to a week
12562
+ */
12563
+ throttleMinutes?: number
12621
12564
  }
12622
12565
 
12623
- export interface OrganizationBillingBudgetsGetOutput {
12566
+ export interface ObserveAlertsCreateOutput {
12567
+ /**
12568
+ * Identifier of the rule
12569
+ */
12570
+ id: string
12571
+ /**
12572
+ * What the rule measures
12573
+ */
12574
+ kind: ("error_rate" | "log_match")
12575
+ /**
12576
+ * Human name the rule was registered under
12577
+ */
12578
+ name: string
12579
+ /**
12580
+ * firing means the condition is met right now
12581
+ */
12582
+ state: ("ok" | "firing")
12583
+ /**
12584
+ * Whether the evaluator measures it every minute
12585
+ */
12586
+ enabled: boolean
12587
+ /**
12588
+ * The kind’s parameters: threshold and window, plus q for log_match
12589
+ */
12590
+ condition: {
12624
12591
  [k: string]: unknown
12625
12592
  }
12626
-
12627
- export interface OrganizationBillingBudgetsSetInput {
12628
- ceiling_minor: number
12629
- }
12630
-
12631
- export interface OrganizationBillingBudgetsSetOutput {
12632
- [k: string]: unknown
12593
+ /**
12594
+ * ISO 8601 creation timestamp
12595
+ */
12596
+ createdAt: string
12597
+ /**
12598
+ * ISO 8601 timestamp of the last change
12599
+ */
12600
+ updatedAt: string
12601
+ /**
12602
+ * ISO 8601 time it last fired, or null
12603
+ */
12604
+ lastFiredAt: (string | null)
12605
+ /**
12606
+ * How long after firing the rule stays quiet
12607
+ */
12608
+ throttleMinutes: number
12633
12609
  }
12634
12610
 
12635
- export interface OrganizationBillingCapsClearInput {
12636
- productId: string
12611
+ export interface ObserveAlertsDeleteInput {
12612
+ /**
12613
+ * Identifier of the rule
12614
+ */
12615
+ id: string
12637
12616
  }
12638
12617
 
12639
- export interface OrganizationBillingCapsClearOutput {
12640
- [k: string]: unknown
12618
+ export interface ObserveAlertsDeleteOutput {
12619
+ /**
12620
+ * Identifier of the removed rule
12621
+ */
12622
+ id: string
12623
+ /**
12624
+ * Always true; the call fails otherwise
12625
+ */
12626
+ deleted: true
12641
12627
  }
12642
12628
 
12643
- export interface OrganizationBillingCapsSetInput {
12644
- cap_minor: number
12645
- productId: string
12629
+ export interface ObserveAlertsEventsListInput {
12630
+ /**
12631
+ * Page size, 1..200
12632
+ */
12633
+ limit?: number
12634
+ /**
12635
+ * Number of firings to skip
12636
+ */
12637
+ offset?: number
12638
+ /**
12639
+ * Only firings of this rule
12640
+ */
12641
+ ruleId?: string
12646
12642
  }
12647
12643
 
12648
- export interface OrganizationBillingCapsSetOutput {
12644
+ export type ObserveAlertsEventsListOutput = {
12645
+ /**
12646
+ * Identifier of the firing
12647
+ */
12648
+ id: string
12649
+ /**
12650
+ * Rule that fired
12651
+ */
12652
+ ruleId: string
12653
+ /**
12654
+ * ISO 8601 time the condition was first met
12655
+ */
12656
+ firedAt: string
12657
+ /**
12658
+ * What the measure was when it fired
12659
+ */
12660
+ measured: number
12661
+ /**
12662
+ * The condition as it stood then, not as the rule reads today
12663
+ */
12664
+ condition: {
12649
12665
  [k: string]: unknown
12650
12666
  }
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
12667
+ /**
12668
+ * ISO 8601 time it cleared, or null while it is still firing
12669
+ */
12670
+ resolvedAt: (string | null)
12691
12671
  }[]
12692
12672
 
12693
- export interface OrganizationCloudflareInstallInput {
12694
-
12695
- }
12696
-
12697
- export interface OrganizationCloudflareInstallOutput {
12698
- url: string
12699
- }
12700
-
12701
- export interface OrganizationConnectorsApproveRequestInput {
12673
+ export interface ObserveAlertsGetInput {
12674
+ /**
12675
+ * Identifier of the rule
12676
+ */
12702
12677
  id: string
12703
- requestId: string
12704
- }
12705
-
12706
- export interface OrganizationConnectorsApproveRequestOutput {
12707
- success: boolean
12708
12678
  }
12709
12679
 
12710
- export interface OrganizationConnectorsAttachInput {
12680
+ export interface ObserveAlertsGetOutput {
12681
+ /**
12682
+ * Identifier of the rule
12683
+ */
12711
12684
  id: string
12712
- productIds: string[]
12685
+ /**
12686
+ * What the rule measures
12687
+ */
12688
+ kind: ("error_rate" | "log_match")
12689
+ /**
12690
+ * Human name the rule was registered under
12691
+ */
12692
+ name: string
12693
+ /**
12694
+ * firing means the condition is met right now
12695
+ */
12696
+ state: ("ok" | "firing")
12697
+ /**
12698
+ * Whether the evaluator measures it every minute
12699
+ */
12700
+ enabled: boolean
12701
+ /**
12702
+ * The kind’s parameters: threshold and window, plus q for log_match
12703
+ */
12704
+ condition: {
12705
+ [k: string]: unknown
12713
12706
  }
12714
-
12715
- export interface OrganizationConnectorsAttachOutput {
12716
- attachments: {
12707
+ /**
12708
+ * ISO 8601 creation timestamp
12709
+ */
12717
12710
  createdAt: string
12718
- createdBy: (string | null)
12719
- productId: string
12720
- customerId: (string | null)
12721
- descriptiveName: (string | null)
12722
- }[]
12723
- connectorId: string
12711
+ /**
12712
+ * ISO 8601 timestamp of the last change
12713
+ */
12714
+ updatedAt: string
12715
+ /**
12716
+ * ISO 8601 time it last fired, or null
12717
+ */
12718
+ lastFiredAt: (string | null)
12719
+ /**
12720
+ * How long after firing the rule stays quiet
12721
+ */
12722
+ throttleMinutes: number
12724
12723
  }
12725
12724
 
12726
- export interface OrganizationConnectorsDeleteInput {
12727
- id: string
12725
+ export interface ObserveAlertsListInput {
12726
+
12727
+ }
12728
+
12729
+ export type ObserveAlertsListOutput = {
12730
+ /**
12731
+ * Identifier of the rule
12732
+ */
12733
+ id: string
12734
+ /**
12735
+ * What the rule measures
12736
+ */
12737
+ kind: ("error_rate" | "log_match")
12738
+ /**
12739
+ * Human name the rule was registered under
12740
+ */
12741
+ name: string
12742
+ /**
12743
+ * firing means the condition is met right now
12744
+ */
12745
+ state: ("ok" | "firing")
12746
+ /**
12747
+ * Whether the evaluator measures it every minute
12748
+ */
12749
+ enabled: boolean
12750
+ /**
12751
+ * The kind’s parameters: threshold and window, plus q for log_match
12752
+ */
12753
+ condition: {
12754
+ [k: string]: unknown
12755
+ }
12756
+ /**
12757
+ * ISO 8601 creation timestamp
12758
+ */
12759
+ createdAt: string
12760
+ /**
12761
+ * ISO 8601 timestamp of the last change
12762
+ */
12763
+ updatedAt: string
12764
+ /**
12765
+ * ISO 8601 time it last fired, or null
12766
+ */
12767
+ lastFiredAt: (string | null)
12768
+ /**
12769
+ * How long after firing the rule stays quiet
12770
+ */
12771
+ throttleMinutes: number
12772
+ }[]
12773
+
12774
+ export interface ObserveAlertsUpdateInput {
12775
+ /**
12776
+ * Identifier of the rule to change
12777
+ */
12778
+ id: string
12779
+ /**
12780
+ * New name for the rule
12781
+ */
12782
+ name?: string
12783
+ /**
12784
+ * false stops evaluation and keeps the rule
12785
+ */
12786
+ enabled?: boolean
12787
+ /**
12788
+ * The kind’s parameters
12789
+ */
12790
+ condition?: {
12791
+ /**
12792
+ * log_match only: the same Lucene expression observe_logs_search takes, e.g. level:error AND service:api
12793
+ */
12794
+ q?: string
12795
+ /**
12796
+ * How far back each evaluation looks
12797
+ */
12798
+ window: ("5m" | "15m" | "1h")
12799
+ /**
12800
+ * How many matches in the window count as a problem. At least 1
12801
+ */
12802
+ threshold: number
12803
+ }
12804
+ /**
12805
+ * New quiet period after a firing, in minutes
12806
+ */
12807
+ throttleMinutes?: number
12808
+ }
12809
+
12810
+ export interface ObserveAlertsUpdateOutput {
12811
+ /**
12812
+ * Identifier of the rule
12813
+ */
12814
+ id: string
12815
+ /**
12816
+ * What the rule measures
12817
+ */
12818
+ kind: ("error_rate" | "log_match")
12819
+ /**
12820
+ * Human name the rule was registered under
12821
+ */
12822
+ name: string
12823
+ /**
12824
+ * firing means the condition is met right now
12825
+ */
12826
+ state: ("ok" | "firing")
12827
+ /**
12828
+ * Whether the evaluator measures it every minute
12829
+ */
12830
+ enabled: boolean
12831
+ /**
12832
+ * The kind’s parameters: threshold and window, plus q for log_match
12833
+ */
12834
+ condition: {
12835
+ [k: string]: unknown
12836
+ }
12837
+ /**
12838
+ * ISO 8601 creation timestamp
12839
+ */
12840
+ createdAt: string
12841
+ /**
12842
+ * ISO 8601 timestamp of the last change
12843
+ */
12844
+ updatedAt: string
12845
+ /**
12846
+ * ISO 8601 time it last fired, or null
12847
+ */
12848
+ lastFiredAt: (string | null)
12849
+ /**
12850
+ * How long after firing the rule stays quiet
12851
+ */
12852
+ throttleMinutes: number
12853
+ }
12854
+
12855
+ export interface ObserveArtifactsDeleteInput {
12856
+ /**
12857
+ * Identifier of the artifact to delete. An artifact of another product is reported as not found
12858
+ */
12859
+ id: string
12860
+ }
12861
+
12862
+ export interface ObserveArtifactsDeleteOutput {
12863
+ /**
12864
+ * Identifier of the stored artifact
12865
+ */
12866
+ id: string
12867
+ /**
12868
+ * Whether this is the minified source or its map
12869
+ */
12870
+ kind: ("source" | "sourcemap")
12871
+ /**
12872
+ * Debug ID the build stamped into the file and its source map
12873
+ */
12874
+ debugId: string
12875
+ /**
12876
+ * Size of the stored artifact in bytes
12877
+ */
12878
+ byteSize: number
12879
+ /**
12880
+ * Name the file was uploaded under, e.g. "app.min.js.map"
12881
+ */
12882
+ fileName: string
12883
+ /**
12884
+ * ISO 8601 timestamp of the upload
12885
+ */
12886
+ uploadedAt: string
12887
+ }
12888
+
12889
+ export interface ObserveArtifactsListInput {
12890
+ /**
12891
+ * Maximum number of artifacts to return, 1..200 (default 50)
12892
+ */
12893
+ limit?: number
12894
+ /**
12895
+ * Only return artifacts carrying this debug ID; omit to list all of them
12896
+ */
12897
+ debugId?: string
12898
+ }
12899
+
12900
+ export type ObserveArtifactsListOutput = {
12901
+ /**
12902
+ * Identifier of the stored artifact
12903
+ */
12904
+ id: string
12905
+ /**
12906
+ * Whether this is the minified source or its map
12907
+ */
12908
+ kind: ("source" | "sourcemap")
12909
+ /**
12910
+ * Debug ID the build stamped into the file and its source map
12911
+ */
12912
+ debugId: string
12913
+ /**
12914
+ * Size of the stored artifact in bytes
12915
+ */
12916
+ byteSize: number
12917
+ /**
12918
+ * Name the file was uploaded under, e.g. "app.min.js.map"
12919
+ */
12920
+ fileName: string
12921
+ /**
12922
+ * ISO 8601 timestamp of the upload
12923
+ */
12924
+ uploadedAt: string
12925
+ }[]
12926
+
12927
+ export interface ObserveArtifactsResolveInput {
12928
+ /**
12929
+ * Issue whose latest event should have its stack resolved. An issue of another product is reported as not found
12930
+ */
12931
+ issueId: string
12932
+ }
12933
+
12934
+ export interface ObserveArtifactsResolveOutput {
12935
+ /**
12936
+ * The stack, resolved where a source map matched
12937
+ */
12938
+ frames: {
12939
+ /**
12940
+ * Column number, original when the frame resolved
12941
+ */
12942
+ colno?: number
12943
+ /**
12944
+ * Whether the frame belongs to the application rather than a dependency
12945
+ */
12946
+ inApp?: boolean
12947
+ /**
12948
+ * Line number, original when the frame resolved
12949
+ */
12950
+ lineno?: number
12951
+ /**
12952
+ * Original file when the frame resolved, else the minified one
12953
+ */
12954
+ filename?: string
12955
+ /**
12956
+ * Function name, original where the source map names one
12957
+ */
12958
+ function?: string
12959
+ /**
12960
+ * False means no source map matched and the frame is exactly as it was recorded
12961
+ */
12962
+ resolved: boolean
12963
+ }[]
12964
+ /**
12965
+ * Identifier of the event the stack was taken from
12966
+ */
12967
+ eventId: string
12968
+ /**
12969
+ * The issue whose stack this is
12970
+ */
12971
+ issueId: string
12972
+ }
12973
+
12974
+ export interface ObserveIssuesArchiveInput {
12975
+ /**
12976
+ * Identifier of the issue
12977
+ */
12978
+ id: string
12979
+ }
12980
+
12981
+ export interface ObserveIssuesArchiveOutput {
12982
+ /**
12983
+ * Identifier of the issue
12984
+ */
12985
+ id: string
12986
+ /**
12987
+ * Display title, set when the issue opened and never rewritten
12988
+ */
12989
+ title: string
12990
+ /**
12991
+ * unresolved, resolved or archived
12992
+ */
12993
+ status: string
12994
+ /**
12995
+ * Where the error appears to come from, or null
12996
+ */
12997
+ culprit: (string | null)
12998
+ /**
12999
+ * Who owns the issue, or null if unassigned
13000
+ */
13001
+ assignee: (string | null)
13002
+ /**
13003
+ * ISO 8601 timestamp of the most recent event
13004
+ */
13005
+ lastSeen: string
13006
+ /**
13007
+ * ISO 8601 timestamp of the first event
13008
+ */
13009
+ firstSeen: string
13010
+ /**
13011
+ * ISO 8601 archive timestamp, or null
13012
+ */
13013
+ archivedAt: (string | null)
13014
+ /**
13015
+ * How many events have landed on this issue
13016
+ */
13017
+ eventCount: number
13018
+ /**
13019
+ * ISO 8601 resolution timestamp, or null
13020
+ */
13021
+ resolvedAt: (string | null)
13022
+ /**
13023
+ * Environment the issue was first seen in, or null
13024
+ */
13025
+ environment: (string | null)
13026
+ /**
13027
+ * Stable grouping hash the issue is keyed on
13028
+ */
13029
+ fingerprint: string
13030
+ /**
13031
+ * ISO 8601 timestamp of the last regression, or null if it never regressed
13032
+ */
13033
+ regressedAt: (string | null)
13034
+ /**
13035
+ * Which rule of the ladder matched: explicit, stack, exception or message
13036
+ */
13037
+ groupingRule: string
13038
+ /**
13039
+ * Exception class of the first event, or null
13040
+ */
13041
+ exceptionType: (string | null)
13042
+ /**
13043
+ * Grouping config version that produced the fingerprint; part of the issue identity
13044
+ */
13045
+ groupingVersion: string
13046
+ }
13047
+
13048
+ export interface ObserveIssuesAssignInput {
13049
+ /**
13050
+ * Identifier of the issue
13051
+ */
13052
+ id: string
13053
+ /**
13054
+ * Who should own the issue; null clears the assignment
13055
+ */
13056
+ assignee: (string | null)
13057
+ }
13058
+
13059
+ export interface ObserveIssuesAssignOutput {
13060
+ /**
13061
+ * Identifier of the issue
13062
+ */
13063
+ id: string
13064
+ /**
13065
+ * Display title, set when the issue opened and never rewritten
13066
+ */
13067
+ title: string
13068
+ /**
13069
+ * unresolved, resolved or archived
13070
+ */
13071
+ status: string
13072
+ /**
13073
+ * Where the error appears to come from, or null
13074
+ */
13075
+ culprit: (string | null)
13076
+ /**
13077
+ * Who owns the issue, or null if unassigned
13078
+ */
13079
+ assignee: (string | null)
13080
+ /**
13081
+ * ISO 8601 timestamp of the most recent event
13082
+ */
13083
+ lastSeen: string
13084
+ /**
13085
+ * ISO 8601 timestamp of the first event
13086
+ */
13087
+ firstSeen: string
13088
+ /**
13089
+ * ISO 8601 archive timestamp, or null
13090
+ */
13091
+ archivedAt: (string | null)
13092
+ /**
13093
+ * How many events have landed on this issue
13094
+ */
13095
+ eventCount: number
13096
+ /**
13097
+ * ISO 8601 resolution timestamp, or null
13098
+ */
13099
+ resolvedAt: (string | null)
13100
+ /**
13101
+ * Environment the issue was first seen in, or null
13102
+ */
13103
+ environment: (string | null)
13104
+ /**
13105
+ * Stable grouping hash the issue is keyed on
13106
+ */
13107
+ fingerprint: string
13108
+ /**
13109
+ * ISO 8601 timestamp of the last regression, or null if it never regressed
13110
+ */
13111
+ regressedAt: (string | null)
13112
+ /**
13113
+ * Which rule of the ladder matched: explicit, stack, exception or message
13114
+ */
13115
+ groupingRule: string
13116
+ /**
13117
+ * Exception class of the first event, or null
13118
+ */
13119
+ exceptionType: (string | null)
13120
+ /**
13121
+ * Grouping config version that produced the fingerprint; part of the issue identity
13122
+ */
13123
+ groupingVersion: string
13124
+ }
13125
+
13126
+ export interface ObserveIssuesGetInput {
13127
+ /**
13128
+ * Identifier of the issue
13129
+ */
13130
+ id: string
13131
+ }
13132
+
13133
+ export interface ObserveIssuesGetOutput {
13134
+ /**
13135
+ * Identifier of the issue
13136
+ */
13137
+ id: string
13138
+ /**
13139
+ * Stack of the most recent event, or null when the issue has no events yet or the stack could not be read
13140
+ */
13141
+ stack: ({
13142
+ /**
13143
+ * The stack, resolved where a stored source map matched the frame
13144
+ */
13145
+ frames: {
13146
+ /**
13147
+ * Column number, original when the frame resolved
13148
+ */
13149
+ colno?: number
13150
+ /**
13151
+ * Whether the frame belongs to the application rather than a dependency
13152
+ */
13153
+ inApp?: boolean
13154
+ /**
13155
+ * Line number, original when the frame resolved
13156
+ */
13157
+ lineno?: number
13158
+ /**
13159
+ * Original file when the frame resolved, else the minified one
13160
+ */
13161
+ filename?: string
13162
+ /**
13163
+ * Function name, original where the source map names one
13164
+ */
13165
+ function?: string
13166
+ /**
13167
+ * False means no source map matched and the frame is exactly as it was recorded
13168
+ */
13169
+ resolved: boolean
13170
+ }[]
13171
+ /**
13172
+ * Identifier of the event the stack was taken from
13173
+ */
13174
+ eventId: string
13175
+ /**
13176
+ * 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`.
13177
+ */
13178
+ rawStacktrace: (string | null)
13179
+ } | null)
13180
+ /**
13181
+ * Display title, set when the issue opened and never rewritten
13182
+ */
13183
+ title: string
13184
+ /**
13185
+ * unresolved, resolved or archived
13186
+ */
13187
+ status: string
13188
+ /**
13189
+ * Where the error appears to come from, or null
13190
+ */
13191
+ culprit: (string | null)
13192
+ /**
13193
+ * Who owns the issue, or null if unassigned
13194
+ */
13195
+ assignee: (string | null)
13196
+ /**
13197
+ * ISO 8601 timestamp of the most recent event
13198
+ */
13199
+ lastSeen: string
13200
+ /**
13201
+ * ISO 8601 timestamp of the first event
13202
+ */
13203
+ firstSeen: string
13204
+ /**
13205
+ * ISO 8601 archive timestamp, or null
13206
+ */
13207
+ archivedAt: (string | null)
13208
+ /**
13209
+ * How many events have landed on this issue
13210
+ */
13211
+ eventCount: number
13212
+ /**
13213
+ * ISO 8601 resolution timestamp, or null
13214
+ */
13215
+ resolvedAt: (string | null)
13216
+ /**
13217
+ * Environment the issue was first seen in, or null
13218
+ */
13219
+ environment: (string | null)
13220
+ /**
13221
+ * Stable grouping hash the issue is keyed on
13222
+ */
13223
+ fingerprint: string
13224
+ /**
13225
+ * ISO 8601 timestamp of the last regression, or null if it never regressed
13226
+ */
13227
+ regressedAt: (string | null)
13228
+ /**
13229
+ * Which rule of the ladder matched: explicit, stack, exception or message
13230
+ */
13231
+ groupingRule: string
13232
+ /**
13233
+ * Exception class of the first event, or null
13234
+ */
13235
+ exceptionType: (string | null)
13236
+ /**
13237
+ * Grouping config version that produced the fingerprint; part of the issue identity
13238
+ */
13239
+ groupingVersion: string
13240
+ }
13241
+
13242
+ export interface ObserveIssuesListInput {
13243
+ /**
13244
+ * How many issues to return, most recently seen first. 1-200, default 50
13245
+ */
13246
+ limit?: number
13247
+ /**
13248
+ * Only return issues in this state; omit to list every state
13249
+ */
13250
+ status?: ("unresolved" | "resolved" | "archived")
13251
+ /**
13252
+ * Only return issues owned by this assignee
13253
+ */
13254
+ assignee?: string
13255
+ }
13256
+
13257
+ export type ObserveIssuesListOutput = {
13258
+ /**
13259
+ * Identifier of the issue
13260
+ */
13261
+ id: string
13262
+ /**
13263
+ * Display title, set when the issue opened and never rewritten
13264
+ */
13265
+ title: string
13266
+ /**
13267
+ * unresolved, resolved or archived
13268
+ */
13269
+ status: string
13270
+ /**
13271
+ * Where the error appears to come from, or null
13272
+ */
13273
+ culprit: (string | null)
13274
+ /**
13275
+ * Who owns the issue, or null if unassigned
13276
+ */
13277
+ assignee: (string | null)
13278
+ /**
13279
+ * ISO 8601 timestamp of the most recent event
13280
+ */
13281
+ lastSeen: string
13282
+ /**
13283
+ * ISO 8601 timestamp of the first event
13284
+ */
13285
+ firstSeen: string
13286
+ /**
13287
+ * ISO 8601 archive timestamp, or null
13288
+ */
13289
+ archivedAt: (string | null)
13290
+ /**
13291
+ * How many events have landed on this issue
13292
+ */
13293
+ eventCount: number
13294
+ /**
13295
+ * ISO 8601 resolution timestamp, or null
13296
+ */
13297
+ resolvedAt: (string | null)
13298
+ /**
13299
+ * Environment the issue was first seen in, or null
13300
+ */
13301
+ environment: (string | null)
13302
+ /**
13303
+ * Stable grouping hash the issue is keyed on
13304
+ */
13305
+ fingerprint: string
13306
+ /**
13307
+ * ISO 8601 timestamp of the last regression, or null if it never regressed
13308
+ */
13309
+ regressedAt: (string | null)
13310
+ /**
13311
+ * Which rule of the ladder matched: explicit, stack, exception or message
13312
+ */
13313
+ groupingRule: string
13314
+ /**
13315
+ * Exception class of the first event, or null
13316
+ */
13317
+ exceptionType: (string | null)
13318
+ /**
13319
+ * Grouping config version that produced the fingerprint; part of the issue identity
13320
+ */
13321
+ groupingVersion: string
13322
+ }[]
13323
+
13324
+ export interface ObserveIssuesResolveInput {
13325
+ /**
13326
+ * Identifier of the issue
13327
+ */
13328
+ id: string
13329
+ }
13330
+
13331
+ export interface ObserveIssuesResolveOutput {
13332
+ /**
13333
+ * Identifier of the issue
13334
+ */
13335
+ id: string
13336
+ /**
13337
+ * Display title, set when the issue opened and never rewritten
13338
+ */
13339
+ title: string
13340
+ /**
13341
+ * unresolved, resolved or archived
13342
+ */
13343
+ status: string
13344
+ /**
13345
+ * Where the error appears to come from, or null
13346
+ */
13347
+ culprit: (string | null)
13348
+ /**
13349
+ * Who owns the issue, or null if unassigned
13350
+ */
13351
+ assignee: (string | null)
13352
+ /**
13353
+ * ISO 8601 timestamp of the most recent event
13354
+ */
13355
+ lastSeen: string
13356
+ /**
13357
+ * ISO 8601 timestamp of the first event
13358
+ */
13359
+ firstSeen: string
13360
+ /**
13361
+ * ISO 8601 archive timestamp, or null
13362
+ */
13363
+ archivedAt: (string | null)
13364
+ /**
13365
+ * How many events have landed on this issue
13366
+ */
13367
+ eventCount: number
13368
+ /**
13369
+ * ISO 8601 resolution timestamp, or null
13370
+ */
13371
+ resolvedAt: (string | null)
13372
+ /**
13373
+ * Environment the issue was first seen in, or null
13374
+ */
13375
+ environment: (string | null)
13376
+ /**
13377
+ * Stable grouping hash the issue is keyed on
13378
+ */
13379
+ fingerprint: string
13380
+ /**
13381
+ * ISO 8601 timestamp of the last regression, or null if it never regressed
13382
+ */
13383
+ regressedAt: (string | null)
13384
+ /**
13385
+ * Which rule of the ladder matched: explicit, stack, exception or message
13386
+ */
13387
+ groupingRule: string
13388
+ /**
13389
+ * Exception class of the first event, or null
13390
+ */
13391
+ exceptionType: (string | null)
13392
+ /**
13393
+ * Grouping config version that produced the fingerprint; part of the issue identity
13394
+ */
13395
+ groupingVersion: string
13396
+ }
13397
+
13398
+ export interface ObserveKeysCreateInput {
13399
+ /**
13400
+ * ingest (default) issues a Bearer OTLP token; dsn issues a public Sentry key returned as a full DSN
13401
+ */
13402
+ kind?: ("ingest" | "dsn")
13403
+ /**
13404
+ * Optional human label for the key, e.g. "ci" or "backend pods"
13405
+ */
13406
+ name?: string
13407
+ /**
13408
+ * Environment this key sends telemetry for, e.g. "staging" or "production"
13409
+ */
13410
+ environment: string
13411
+ }
13412
+
13413
+ export interface ObserveKeysCreateOutput {
13414
+ /**
13415
+ * Identifier of the ingest key
13416
+ */
13417
+ id: string
13418
+ /**
13419
+ * The full DSN, for kind "dsn" — shown only here, store it now
13420
+ */
13421
+ dsn?: string
13422
+ /**
13423
+ * ingest = Bearer OTLP key; dsn = public Sentry key that ships in client code
13424
+ */
13425
+ kind: ("ingest" | "dsn")
13426
+ /**
13427
+ * Human label given at creation, or null
13428
+ */
13429
+ name: (string | null)
13430
+ /**
13431
+ * The full ingest token, for kind "ingest" — shown only here, store it now
13432
+ */
13433
+ token?: string
13434
+ /**
13435
+ * First characters of the token, shown for recognition
13436
+ */
13437
+ prefix: string
13438
+ /**
13439
+ * ISO 8601 creation timestamp
13440
+ */
13441
+ createdAt: string
13442
+ /**
13443
+ * ISO 8601 revocation timestamp, or null if active
13444
+ */
13445
+ revokedAt: (string | null)
13446
+ /**
13447
+ * Environment the key writes telemetry for
13448
+ */
13449
+ environment: string
13450
+ }
13451
+
13452
+ export interface ObserveKeysListInput {
13453
+ /**
13454
+ * Only return keys of this environment; omit to list all of them
13455
+ */
13456
+ environment?: string
13457
+ }
13458
+
13459
+ export type ObserveKeysListOutput = {
13460
+ /**
13461
+ * Identifier of the ingest key
13462
+ */
13463
+ id: string
13464
+ /**
13465
+ * ingest = Bearer OTLP key; dsn = public Sentry key that ships in client code
13466
+ */
13467
+ kind: ("ingest" | "dsn")
13468
+ /**
13469
+ * Human label given at creation, or null
13470
+ */
13471
+ name: (string | null)
13472
+ /**
13473
+ * First characters of the token, shown for recognition
13474
+ */
13475
+ prefix: string
13476
+ /**
13477
+ * ISO 8601 creation timestamp
13478
+ */
13479
+ createdAt: string
13480
+ /**
13481
+ * ISO 8601 revocation timestamp, or null if active
13482
+ */
13483
+ revokedAt: (string | null)
13484
+ /**
13485
+ * Environment the key writes telemetry for
13486
+ */
13487
+ environment: string
13488
+ }[]
13489
+
13490
+ export interface ObserveKeysRevokeInput {
13491
+ /**
13492
+ * Identifier of the ingest key to revoke
13493
+ */
13494
+ id: string
13495
+ }
13496
+
13497
+ export interface ObserveKeysRevokeOutput {
13498
+ /**
13499
+ * Identifier of the revoked key
13500
+ */
13501
+ id: string
13502
+ /**
13503
+ * ISO 8601 timestamp of the revocation
13504
+ */
13505
+ revokedAt: string
13506
+ }
13507
+
13508
+ export interface ObserveLogsFacetsInput {
13509
+ /**
13510
+ * How far back to count, e.g. "1h", "24h", "7d". Up to 30d, default "24h"
13511
+ */
13512
+ window?: string
13513
+ }
13514
+
13515
+ export interface ObserveLogsFacetsOutput {
13516
+ /**
13517
+ * Newest timestamp counted, ISO 8601
13518
+ */
13519
+ to: string
13520
+ /**
13521
+ * Oldest timestamp counted, ISO 8601
13522
+ */
13523
+ from: string
13524
+ /**
13525
+ * The window that was counted, e.g. "24h"
13526
+ */
13527
+ window: string
13528
+ /**
13529
+ * Services, most frequent first
13530
+ */
13531
+ services: ObserveLogsFacetsOutputItems[]
13532
+ /**
13533
+ * Severities, most frequent first
13534
+ */
13535
+ severities: ObserveLogsFacetsOutputItems[]
13536
+ /**
13537
+ * Environments, most frequent first
13538
+ */
13539
+ environments: ObserveLogsFacetsOutputItems[]
13540
+ }
13541
+ export interface ObserveLogsFacetsOutputItems {
13542
+ /**
13543
+ * How many lines carried it inside the window
13544
+ */
13545
+ count: number
13546
+ /**
13547
+ * The value as the emitter wrote it
13548
+ */
13549
+ value: string
13550
+ }
13551
+
13552
+ export interface ObserveLogsSearchInput {
13553
+ /**
13554
+ * 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"
13555
+ */
13556
+ q?: string
13557
+ /**
13558
+ * Newest timestamp to include, ISO 8601
13559
+ */
13560
+ to?: string
13561
+ /**
13562
+ * Oldest timestamp to include, ISO 8601
13563
+ */
13564
+ from?: string
13565
+ /**
13566
+ * How many lines to return, 1-1000, default 100
13567
+ */
13568
+ limit?: number
13569
+ /**
13570
+ * The nextCursor of the previous page; omit for the first page
13571
+ */
13572
+ cursor?: string
13573
+ /**
13574
+ * Match the message body. A single word matches whole words and is indexed; anything longer is a case-insensitive substring match
13575
+ */
13576
+ search?: string
13577
+ /**
13578
+ * Only lines of this service, e.g. "api"
13579
+ */
13580
+ service?: string
13581
+ /**
13582
+ * Only lines of this trace
13583
+ */
13584
+ traceId?: string
13585
+ /**
13586
+ * Only lines whose severity is one of these, e.g. ["ERROR", "FATAL"]
13587
+ *
13588
+ * @minItems 1
13589
+ */
13590
+ severityIn?: [string, ...(string)[]]
13591
+ /**
13592
+ * Only lines of this environment, e.g. "production"
13593
+ */
13594
+ environment?: string
13595
+ }
13596
+
13597
+ export interface ObserveLogsSearchOutput {
13598
+ /**
13599
+ * The matching log lines, newest first
13600
+ */
13601
+ rows: {
13602
+ /**
13603
+ * The log message itself
13604
+ */
13605
+ body: string
13606
+ /**
13607
+ * Span this line belongs to, empty when untraced
13608
+ */
13609
+ spanId: string
13610
+ /**
13611
+ * Service that wrote the line
13612
+ */
13613
+ service: string
13614
+ /**
13615
+ * Trace this line belongs to, empty when untraced
13616
+ */
13617
+ traceId: string
13618
+ /**
13619
+ * ISO 8601 timestamp of the log line, millisecond precision
13620
+ */
13621
+ timestamp: string
13622
+ /**
13623
+ * Attributes the emitter attached
13624
+ */
13625
+ attributes: {
13626
+ [k: string]: string
13627
+ }
13628
+ /**
13629
+ * Environment the line was written in
13630
+ */
13631
+ environment: string
13632
+ /**
13633
+ * Severity as the emitter named it, e.g. "ERROR"
13634
+ */
13635
+ severityText: string
13636
+ /**
13637
+ * OpenTelemetry severity number, 1-24
13638
+ */
13639
+ severityNumber: number
13640
+ }[]
13641
+ /**
13642
+ * Pass back as cursor for the next page; null when the last page was reached
13643
+ */
13644
+ nextCursor: (string | null)
13645
+ }
13646
+
13647
+ export interface ObserveLogsTailInput {
13648
+ /**
13649
+ * The nextCursor of the previous poll; omit to start at the newest lines
13650
+ */
13651
+ cursor?: string
13652
+ /**
13653
+ * Only lines of this service
13654
+ */
13655
+ service?: string
13656
+ /**
13657
+ * Only lines whose severity is one of these
13658
+ *
13659
+ * @minItems 1
13660
+ */
13661
+ severityIn?: [string, ...(string)[]]
13662
+ /**
13663
+ * Only lines of this environment
13664
+ */
13665
+ environment?: string
13666
+ }
13667
+
13668
+ export interface ObserveLogsTailOutput {
13669
+ /**
13670
+ * The new log lines, oldest first
13671
+ */
13672
+ rows: {
13673
+ /**
13674
+ * The log message itself
13675
+ */
13676
+ body: string
13677
+ /**
13678
+ * Span this line belongs to, empty when untraced
13679
+ */
13680
+ spanId: string
13681
+ /**
13682
+ * Service that wrote the line
13683
+ */
13684
+ service: string
13685
+ /**
13686
+ * Trace this line belongs to, empty when untraced
13687
+ */
13688
+ traceId: string
13689
+ /**
13690
+ * ISO 8601 timestamp of the log line, millisecond precision
13691
+ */
13692
+ timestamp: string
13693
+ /**
13694
+ * Attributes the emitter attached
13695
+ */
13696
+ attributes: {
13697
+ [k: string]: string
13698
+ }
13699
+ /**
13700
+ * Environment the line was written in
13701
+ */
13702
+ environment: string
13703
+ /**
13704
+ * Severity as the emitter named it, e.g. "ERROR"
13705
+ */
13706
+ severityText: string
13707
+ /**
13708
+ * OpenTelemetry severity number, 1-24
13709
+ */
13710
+ severityNumber: number
13711
+ }[]
13712
+ /**
13713
+ * Pass back as cursor on the next poll; null only while the product has no logs
13714
+ */
13715
+ nextCursor: (string | null)
13716
+ }
13717
+
13718
+ export interface ObserveTracesGetInput {
13719
+ /**
13720
+ * The trace to render, by its 32-character hex id
13721
+ */
13722
+ traceId: string
13723
+ }
13724
+
13725
+ export interface ObserveTracesGetOutput {
13726
+ /**
13727
+ * Every span of the trace, oldest first; empty when the product has no such trace
13728
+ */
13729
+ spans: {
13730
+ /**
13731
+ * OTLP span kind: UNSPECIFIED, INTERNAL, SERVER, CLIENT, PRODUCER or CONSUMER
13732
+ */
13733
+ kind: string
13734
+ /**
13735
+ * Span name, e.g. "GET /users"
13736
+ */
13737
+ name: string
13738
+ /**
13739
+ * How many ancestors the span has inside this trace; the root is 0
13740
+ */
13741
+ depth: number
13742
+ /**
13743
+ * Events recorded on the span, in the order they were sent
13744
+ */
13745
+ events: {
13746
+ /**
13747
+ * Event name as the emitter wrote it, e.g. "exception"
13748
+ */
13749
+ name: string
13750
+ /**
13751
+ * When the event was recorded, ISO 8601
13752
+ */
13753
+ timestamp: string
13754
+ /**
13755
+ * The event's own attributes, raw
13756
+ */
13757
+ attributes: {
13758
+ [k: string]: unknown
13759
+ }
13760
+ }[]
13761
+ /**
13762
+ * The span id, 16 hex characters
13763
+ */
13764
+ spanId: string
13765
+ /**
13766
+ * OTLP span status: UNSET, OK or ERROR
13767
+ */
13768
+ status: string
13769
+ /**
13770
+ * When the span ended, ISO 8601, nanosecond precision
13771
+ */
13772
+ endTime: string
13773
+ /**
13774
+ * Service that recorded the span
13775
+ */
13776
+ service: string
13777
+ /**
13778
+ * When the span started, ISO 8601, nanosecond precision
13779
+ */
13780
+ startTime: string
13781
+ /**
13782
+ * Attributes the emitter attached
13783
+ */
13784
+ attributes: {
13785
+ [k: string]: string
13786
+ }
13787
+ /**
13788
+ * How long the span took, in milliseconds
13789
+ */
13790
+ durationMs: number
13791
+ /**
13792
+ * Environment the span was recorded in
13793
+ */
13794
+ environment: string
13795
+ /**
13796
+ * Parent span id; empty for the root or when the parent is not in this trace
13797
+ */
13798
+ parentSpanId: string
13799
+ /**
13800
+ * Status message the emitter attached, empty when none
13801
+ */
13802
+ statusMessage: string
13803
+ /**
13804
+ * Attributes of the emitting resource
13805
+ */
13806
+ resourceAttributes: {
13807
+ [k: string]: string
13808
+ }
13809
+ }[]
13810
+ /**
13811
+ * The trace that was read
13812
+ */
13813
+ traceId: string
13814
+ }
13815
+
13816
+ export interface ObserveTracesSearchInput {
13817
+ /**
13818
+ * Newest span start to include, ISO 8601
13819
+ */
13820
+ to?: string
13821
+ /**
13822
+ * Oldest span start to include, ISO 8601
13823
+ */
13824
+ from?: string
13825
+ /**
13826
+ * Only traces one of whose spans carries this exact span name, e.g. "GET /users"
13827
+ */
13828
+ name?: string
13829
+ /**
13830
+ * How many traces to return, 1-1000, default 100
13831
+ */
13832
+ limit?: number
13833
+ /**
13834
+ * The nextCursor of the previous page; omit for the first page
13835
+ */
13836
+ cursor?: string
13837
+ /**
13838
+ * 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
13839
+ */
13840
+ status?: ("ok" | "error" | "unset")
13841
+ /**
13842
+ * Only traces one of whose spans belongs to this service, e.g. "api"
13843
+ */
13844
+ service?: string
13845
+ /**
13846
+ * Only this trace, by its 32-character hex id
13847
+ */
13848
+ traceId?: string
13849
+ /**
13850
+ * Only traces of this environment, e.g. "production"
13851
+ */
13852
+ environment?: string
13853
+ /**
13854
+ * Only traces that took at most this many milliseconds end to end
13855
+ */
13856
+ maxDurationMs?: number
13857
+ /**
13858
+ * Only traces that took at least this many milliseconds end to end
13859
+ */
13860
+ minDurationMs?: number
13861
+ }
13862
+
13863
+ export interface ObserveTracesSearchOutput {
13864
+ /**
13865
+ * The matching traces, newest first
13866
+ */
13867
+ traces: {
13868
+ /**
13869
+ * The trace id, 32 hex characters
13870
+ */
13871
+ traceId: string
13872
+ /**
13873
+ * True when at least one span failed
13874
+ */
13875
+ hasError: boolean
13876
+ /**
13877
+ * Name of the root span — the one with no parent, or the earliest span
13878
+ */
13879
+ rootName: string
13880
+ /**
13881
+ * How many spans the trace has
13882
+ */
13883
+ spanCount: number
13884
+ /**
13885
+ * When the earliest span started, ISO 8601
13886
+ */
13887
+ startTime: string
13888
+ /**
13889
+ * Earliest start to latest end, in milliseconds
13890
+ */
13891
+ durationMs: number
13892
+ /**
13893
+ * How many of them reported an ERROR status
13894
+ */
13895
+ errorCount: number
13896
+ /**
13897
+ * Environment the root span was recorded in
13898
+ */
13899
+ environment: string
13900
+ /**
13901
+ * Service the root span belongs to
13902
+ */
13903
+ rootService: string
13904
+ }[]
13905
+ /**
13906
+ * Pass back as cursor for the next page; null when the last page was reached
13907
+ */
13908
+ nextCursor: (string | null)
13909
+ }
13910
+
13911
+ export interface ObserveWebhooksCreateInput {
13912
+ /**
13913
+ * HTTPS endpoint the event is POSTed to. Plain http:// is rejected
13914
+ */
13915
+ url: string
13916
+ /**
13917
+ * Free-form note about what this endpoint is for, up to 1000 characters
13918
+ */
13919
+ description?: string
13920
+ }
13921
+
13922
+ export interface ObserveWebhooksCreateOutput {
13923
+ /**
13924
+ * Identifier of the endpoint
13925
+ */
13926
+ id: string
13927
+ /**
13928
+ * HTTPS endpoint events are POSTed to
13929
+ */
13930
+ url: string
13931
+ /**
13932
+ * Whether deliveries are being attempted for it
13933
+ */
13934
+ active: boolean
13935
+ /**
13936
+ * The signing secret — shown only here, store it now; it cannot be read back
13937
+ */
13938
+ secret: string
13939
+ /**
13940
+ * ISO 8601 registration timestamp
13941
+ */
13942
+ createdAt: string
13943
+ /**
13944
+ * ISO 8601 timestamp of the last change
13945
+ */
13946
+ updatedAt: string
13947
+ /**
13948
+ * Free-form note given at registration, or null
13949
+ */
13950
+ description: (string | null)
13951
+ }
13952
+
13953
+ export interface ObserveWebhooksDeleteInput {
13954
+ /**
13955
+ * Identifier of the endpoint
13956
+ */
13957
+ id: string
13958
+ }
13959
+
13960
+ export interface ObserveWebhooksDeleteOutput {
13961
+ /**
13962
+ * Identifier of the removed endpoint
13963
+ */
13964
+ id: string
13965
+ /**
13966
+ * Always true; the call fails otherwise
13967
+ */
13968
+ deleted: true
13969
+ }
13970
+
13971
+ export interface ObserveWebhooksDeliveriesListInput {
13972
+ /**
13973
+ * Page size, 1..200
13974
+ */
13975
+ limit?: number
13976
+ /**
13977
+ * Number of deliveries to skip
13978
+ */
13979
+ offset?: number
13980
+ /**
13981
+ * Only deliveries in this state
13982
+ */
13983
+ status?: ("pending" | "success" | "failed")
13984
+ /**
13985
+ * Only deliveries for this endpoint
13986
+ */
13987
+ webhookId?: string
13988
+ }
13989
+
13990
+ export type ObserveWebhooksDeliveriesListOutput = {
13991
+ /**
13992
+ * Identifier of the delivery, also sent as the envelope id
13993
+ */
13994
+ id: string
13995
+ /**
13996
+ * pending means attempts remain; failed means the retry ladder is spent
13997
+ */
13998
+ status: ("pending" | "success" | "failed")
13999
+ /**
14000
+ * The event data that was sent, before snake_case conversion
14001
+ */
14002
+ payload?: {
14003
+ [k: string]: unknown
14004
+ }
14005
+ /**
14006
+ * ISO 8601 time the delivery was opened
14007
+ */
14008
+ createdAt: string
14009
+ /**
14010
+ * Event that was delivered, e.g. "observe/issue.created"
14011
+ */
14012
+ eventName: string
14013
+ /**
14014
+ * Why the last attempt failed, or null
14015
+ */
14016
+ lastError: (string | null)
14017
+ /**
14018
+ * Endpoint the delivery is for
14019
+ */
14020
+ webhookId: string
14021
+ /**
14022
+ * ISO 8601 time it succeeded, or null
14023
+ */
14024
+ deliveredAt: (string | null)
14025
+ /**
14026
+ * How many attempts have been made so far
14027
+ */
14028
+ attemptCount: number
14029
+ /**
14030
+ * Identity of the source event, repeated on every attempt and on a redelivery
14031
+ */
14032
+ idempotencyKey: string
14033
+ /**
14034
+ * HTTP status of the last attempt, or null
14035
+ */
14036
+ lastStatusCode: (number | null)
14037
+ }[]
14038
+
14039
+ export interface ObserveWebhooksGetInput {
14040
+ /**
14041
+ * Identifier of the endpoint
14042
+ */
14043
+ id: string
14044
+ }
14045
+
14046
+ export interface ObserveWebhooksGetOutput {
14047
+ /**
14048
+ * Identifier of the endpoint
14049
+ */
14050
+ id: string
14051
+ /**
14052
+ * HTTPS endpoint events are POSTed to
14053
+ */
14054
+ url: string
14055
+ /**
14056
+ * Whether deliveries are being attempted for it
14057
+ */
14058
+ active: boolean
14059
+ /**
14060
+ * ISO 8601 registration timestamp
14061
+ */
14062
+ createdAt: string
14063
+ /**
14064
+ * ISO 8601 timestamp of the last change
14065
+ */
14066
+ updatedAt: string
14067
+ /**
14068
+ * Free-form note given at registration, or null
14069
+ */
14070
+ description: (string | null)
14071
+ }
14072
+
14073
+ export interface ObserveWebhooksListInput {
14074
+
14075
+ }
14076
+
14077
+ export type ObserveWebhooksListOutput = {
14078
+ /**
14079
+ * Identifier of the endpoint
14080
+ */
14081
+ id: string
14082
+ /**
14083
+ * HTTPS endpoint events are POSTed to
14084
+ */
14085
+ url: string
14086
+ /**
14087
+ * Whether deliveries are being attempted for it
14088
+ */
14089
+ active: boolean
14090
+ /**
14091
+ * ISO 8601 registration timestamp
14092
+ */
14093
+ createdAt: string
14094
+ /**
14095
+ * ISO 8601 timestamp of the last change
14096
+ */
14097
+ updatedAt: string
14098
+ /**
14099
+ * Free-form note given at registration, or null
14100
+ */
14101
+ description: (string | null)
14102
+ }[]
14103
+
14104
+ export interface ObserveWebhooksRedeliverInput {
14105
+ /**
14106
+ * Identifier of the delivery to send again
14107
+ */
14108
+ id: string
14109
+ }
14110
+
14111
+ export interface ObserveWebhooksRedeliverOutput {
14112
+ /**
14113
+ * Identifier of the delivery, also sent as the envelope id
14114
+ */
14115
+ id: string
14116
+ /**
14117
+ * pending means attempts remain; failed means the retry ladder is spent
14118
+ */
14119
+ status: ("pending" | "success" | "failed")
14120
+ /**
14121
+ * The event data that was sent, before snake_case conversion
14122
+ */
14123
+ payload?: {
14124
+ [k: string]: unknown
14125
+ }
14126
+ /**
14127
+ * ISO 8601 time the delivery was opened
14128
+ */
14129
+ createdAt: string
14130
+ /**
14131
+ * Event that was delivered, e.g. "observe/issue.created"
14132
+ */
14133
+ eventName: string
14134
+ /**
14135
+ * Why the last attempt failed, or null
14136
+ */
14137
+ lastError: (string | null)
14138
+ /**
14139
+ * Endpoint the delivery is for
14140
+ */
14141
+ webhookId: string
14142
+ /**
14143
+ * ISO 8601 time it succeeded, or null
14144
+ */
14145
+ deliveredAt: (string | null)
14146
+ /**
14147
+ * How many attempts have been made so far
14148
+ */
14149
+ attemptCount: number
14150
+ /**
14151
+ * Identity of the source event, repeated on every attempt and on a redelivery
14152
+ */
14153
+ idempotencyKey: string
14154
+ /**
14155
+ * HTTP status of the last attempt, or null
14156
+ */
14157
+ lastStatusCode: (number | null)
14158
+ }
14159
+
14160
+ export interface ObserveWebhooksRotateSecretInput {
14161
+ /**
14162
+ * Identifier of the endpoint
14163
+ */
14164
+ id: string
14165
+ }
14166
+
14167
+ export interface ObserveWebhooksRotateSecretOutput {
14168
+ /**
14169
+ * Identifier of the endpoint
14170
+ */
14171
+ id: string
14172
+ /**
14173
+ * HTTPS endpoint events are POSTed to
14174
+ */
14175
+ url: string
14176
+ /**
14177
+ * Whether deliveries are being attempted for it
14178
+ */
14179
+ active: boolean
14180
+ /**
14181
+ * The signing secret — shown only here, store it now; it cannot be read back
14182
+ */
14183
+ secret: string
14184
+ /**
14185
+ * ISO 8601 registration timestamp
14186
+ */
14187
+ createdAt: string
14188
+ /**
14189
+ * ISO 8601 timestamp of the last change
14190
+ */
14191
+ updatedAt: string
14192
+ /**
14193
+ * Free-form note given at registration, or null
14194
+ */
14195
+ description: (string | null)
14196
+ }
14197
+
14198
+ export interface ObserveWebhooksUpdateInput {
14199
+ /**
14200
+ * Identifier of the endpoint to change
14201
+ */
14202
+ id: string
14203
+ /**
14204
+ * New HTTPS endpoint. Plain http:// is rejected
14205
+ */
14206
+ url?: string
14207
+ /**
14208
+ * false keeps the registration and stops delivery; true resumes it
14209
+ */
14210
+ active?: boolean
14211
+ /**
14212
+ * New note, or null to clear it
14213
+ */
14214
+ description?: (string | null)
14215
+ }
14216
+
14217
+ export interface ObserveWebhooksUpdateOutput {
14218
+ /**
14219
+ * Identifier of the endpoint
14220
+ */
14221
+ id: string
14222
+ /**
14223
+ * HTTPS endpoint events are POSTed to
14224
+ */
14225
+ url: string
14226
+ /**
14227
+ * Whether deliveries are being attempted for it
14228
+ */
14229
+ active: boolean
14230
+ /**
14231
+ * ISO 8601 registration timestamp
14232
+ */
14233
+ createdAt: string
14234
+ /**
14235
+ * ISO 8601 timestamp of the last change
14236
+ */
14237
+ updatedAt: string
14238
+ /**
14239
+ * Free-form note given at registration, or null
14240
+ */
14241
+ description: (string | null)
14242
+ }
14243
+
14244
+ export interface OrganizationAuthMeInput {
14245
+
14246
+ }
14247
+
14248
+ export interface OrganizationAuthMeOutput {
14249
+ email: string
14250
+ identityId: string
14251
+ displayName: string
14252
+ identityType: string
14253
+ }
14254
+
14255
+ export interface OrganizationBillingBudgetsGetInput {
14256
+
14257
+ }
14258
+
14259
+ export interface OrganizationBillingBudgetsGetOutput {
14260
+ [k: string]: unknown
14261
+ }
14262
+
14263
+ export interface OrganizationBillingBudgetsSetInput {
14264
+ ceiling_minor: number
14265
+ }
14266
+
14267
+ export interface OrganizationBillingBudgetsSetOutput {
14268
+ [k: string]: unknown
14269
+ }
14270
+
14271
+ export interface OrganizationBillingCapsClearInput {
14272
+ productId: string
14273
+ }
14274
+
14275
+ export interface OrganizationBillingCapsClearOutput {
14276
+ [k: string]: unknown
14277
+ }
14278
+
14279
+ export interface OrganizationBillingCapsSetInput {
14280
+ cap_minor: number
14281
+ productId: string
14282
+ }
14283
+
14284
+ export interface OrganizationBillingCapsSetOutput {
14285
+ [k: string]: unknown
14286
+ }
14287
+
14288
+ export interface OrganizationBindingsListInput {
14289
+ domainId: string
14290
+ productId: string
14291
+ }
14292
+
14293
+ export type OrganizationBindingsListOutput = {
14294
+ host: string
14295
+ status: ("pending" | "active" | "failed")
14296
+ records: {
14297
+ ttl?: number
14298
+ name?: string
14299
+ target: string
14300
+ proxied?: boolean
14301
+ priority?: number
14302
+ recordType: string
14303
+ }[]
14304
+ domainId: string
14305
+ bindingId: string
14306
+ instruction: (string | null)
14307
+ statusDetail: (string | null)
14308
+ ownerExtension: string
14309
+ }[]
14310
+
14311
+ export interface OrganizationClickupInstallInput {
14312
+
14313
+ }
14314
+
14315
+ export interface OrganizationClickupInstallOutput {
14316
+ url: string
14317
+ }
14318
+
14319
+ export interface OrganizationClickupListInstallationsInput {
14320
+
14321
+ }
14322
+
14323
+ export type OrganizationClickupListInstallationsOutput = {
14324
+ status: string
14325
+ teamId: string
14326
+ teamName: string
14327
+ }[]
14328
+
14329
+ export interface OrganizationCloudflareInstallInput {
14330
+
14331
+ }
14332
+
14333
+ export interface OrganizationCloudflareInstallOutput {
14334
+ url: string
14335
+ }
14336
+
14337
+ export interface OrganizationConnectorsApproveRequestInput {
14338
+ id: string
14339
+ requestId: string
14340
+ }
14341
+
14342
+ export interface OrganizationConnectorsApproveRequestOutput {
14343
+ success: boolean
14344
+ }
14345
+
14346
+ export interface OrganizationConnectorsAttachInput {
14347
+ id: string
14348
+ productIds: string[]
14349
+ }
14350
+
14351
+ export interface OrganizationConnectorsAttachOutput {
14352
+ attachments: {
14353
+ createdAt: string
14354
+ createdBy: (string | null)
14355
+ productId: string
14356
+ customerId: (string | null)
14357
+ descriptiveName: (string | null)
14358
+ }[]
14359
+ connectorId: string
14360
+ }
14361
+
14362
+ export interface OrganizationConnectorsDeleteInput {
14363
+ id: string
12728
14364
  }
12729
14365
 
12730
14366
  export interface OrganizationConnectorsDeleteOutput {
@@ -13325,6 +14961,7 @@ displayName: (string | null)
13325
14961
  orgRoles: {
13326
14962
  id: string
13327
14963
  name: string
14964
+ description: (string | null)
13328
14965
  }[]
13329
14966
  canManage: boolean
13330
14967
  inherited: {
@@ -13721,6 +15358,226 @@ lastMessagePreview: (string | null)
13721
15358
  }[]
13722
15359
  }
13723
15360
 
15361
+ export interface PlaygroundAnalyticsOverviewInput {
15362
+ /**
15363
+ * Max records per entity in recent[]; omit for the endpoint default
15364
+ */
15365
+ limit?: number
15366
+ }
15367
+
15368
+ export interface PlaygroundAnalyticsOverviewOutput {
15369
+ ok: boolean
15370
+ minted: boolean
15371
+ overview?: unknown
15372
+ http_status: number
15373
+ }
15374
+
15375
+ export interface PlaygroundBillingEntitlementsInput {
15376
+
15377
+ }
15378
+
15379
+ export interface PlaygroundBillingEntitlementsOutput {
15380
+ ok: boolean
15381
+ minted: boolean
15382
+ http_status: number
15383
+ entitlements?: unknown
15384
+ }
15385
+
15386
+ export interface PlaygroundBillingRecordUsageInput {
15387
+ /**
15388
+ * Quantity of events to record against playground-events (SUM); defaults to 1
15389
+ */
15390
+ value?: number
15391
+ }
15392
+
15393
+ export interface PlaygroundBillingRecordUsageOutput {
15394
+ minted: boolean
15395
+ accepted: (number | null)
15396
+ recorded: boolean
15397
+ duplicates: (number | null)
15398
+ http_status: number
15399
+ }
15400
+
15401
+ export interface PlaygroundClickupCreateTaskInput {
15402
+ /**
15403
+ * Task title; defaults to a fixture label
15404
+ */
15405
+ name?: string
15406
+ /**
15407
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
15408
+ */
15409
+ listId?: string
15410
+ }
15411
+
15412
+ export interface PlaygroundClickupCreateTaskOutput {
15413
+ minted: boolean
15414
+ task_id: (string | null)
15415
+ list_status: number
15416
+ vend_status: number
15417
+ clickup_status: number
15418
+ installation_count: number
15419
+ }
15420
+
15421
+ export interface PlaygroundClickupGetLastWebhookInput {
15422
+
15423
+ }
15424
+
15425
+ export type PlaygroundClickupGetLastWebhookOutput = ({
15426
+ payload: string
15427
+ event_id: string
15428
+ provider: string
15429
+ verified: boolean
15430
+ product_id: string
15431
+ occurred_at: string
15432
+ connector_id: string
15433
+ clickup_event: (string | null)
15434
+ receipt_count: number
15435
+ } | {
15436
+ found: false
15437
+ })
15438
+
15439
+ export interface PlaygroundClickupGetOverviewInput {
15440
+
15441
+ }
15442
+
15443
+ export interface PlaygroundClickupGetOverviewOutput {
15444
+ team: ({
15445
+ teamId: string
15446
+ teamName: string
15447
+ } | null)
15448
+ lists: PlaygroundClickupGetOverviewOutputItems[]
15449
+ tasks: {
15450
+ id: string
15451
+ name: string
15452
+ status: (string | null)
15453
+ }[]
15454
+ minted: boolean
15455
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
15456
+ list_status: number
15457
+ vend_status: number
15458
+ lists_status: number
15459
+ tasks_status: number
15460
+ spaces_status: number
15461
+ folders_status: number
15462
+ installation_count: number
15463
+ }
15464
+ export interface PlaygroundClickupGetOverviewOutputItems {
15465
+ id: string
15466
+ name: string
15467
+ }
15468
+
15469
+ export interface PlaygroundGdriveGetLastChangeInput {
15470
+
15471
+ }
15472
+
15473
+ export type PlaygroundGdriveGetLastChangeOutput = ({
15474
+ file_id: string
15475
+ removed: boolean
15476
+ file_name: (string | null)
15477
+ mime_type: (string | null)
15478
+ product_id: string
15479
+ occurred_at: string
15480
+ connector_id: string
15481
+ resource_state: string
15482
+ } | {
15483
+ found: false
15484
+ })
15485
+
15486
+ export interface PlaygroundGdriveReadFileInput {
15487
+ /**
15488
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
15489
+ */
15490
+ fileId?: string
15491
+ }
15492
+
15493
+ export interface PlaygroundGdriveReadFileOutput {
15494
+ minted: boolean
15495
+ file_id: (string | null)
15496
+ file_name: (string | null)
15497
+ mime_type: (string | null)
15498
+ file_count: number
15499
+ get_status: number
15500
+ list_status: number
15501
+ vend_status: number
15502
+ content_bytes: (number | null)
15503
+ }
15504
+
15505
+ export interface PlaygroundGoogleadsReadCustomerInput {
15506
+
15507
+ }
15508
+
15509
+ export interface PlaygroundGoogleadsReadCustomerOutput {
15510
+ minted: boolean
15511
+ vended: boolean
15512
+ customer_id: (string | null)
15513
+ vend_status: number
15514
+ result_count: number
15515
+ search_status: number
15516
+ login_customer_id: (string | null)
15517
+ }
15518
+
15519
+ export interface PlaygroundLifecycleGetStateInput {
15520
+
15521
+ }
15522
+
15523
+ export interface PlaygroundLifecycleGetStateOutput {
15524
+ blocked: boolean
15525
+ archived: boolean
15526
+ productId: string
15527
+ lastBlockTransition: ({
15528
+ eventId: string
15529
+ eventName: string
15530
+ productId: string
15531
+ occurredAt: string
15532
+ recordedAt: string
15533
+ receiptCount: number
15534
+ organizationId: string
15535
+ cascadedFromOrg: boolean
15536
+ } | null)
15537
+ lastArchiveTransition: ({
15538
+ eventId: string
15539
+ eventName: string
15540
+ productId: string
15541
+ occurredAt: string
15542
+ recordedAt: string
15543
+ receiptCount: number
15544
+ organizationId: string
15545
+ cascadedFromOrg: boolean
15546
+ } | null)
15547
+ }
15548
+
15549
+ export interface PlaygroundLifecycleListEventsInput {
15550
+
15551
+ }
15552
+
15553
+ export type PlaygroundLifecycleListEventsOutput = {
15554
+ eventId: string
15555
+ eventName: string
15556
+ productId: string
15557
+ occurredAt: string
15558
+ recordedAt: string
15559
+ receiptCount: number
15560
+ organizationId: string
15561
+ cascadedFromOrg: boolean
15562
+ }[]
15563
+
15564
+ export interface PlaygroundWebhookGetLastInput {
15565
+
15566
+ }
15567
+
15568
+ export type PlaygroundWebhookGetLastOutput = ({
15569
+ payload?: unknown
15570
+ event_id: string
15571
+ provider: string
15572
+ verified: boolean
15573
+ product_id: string
15574
+ occurred_at: string
15575
+ connector_id: string
15576
+ delivery_count: number
15577
+ } | {
15578
+ found: false
15579
+ })
15580
+
13724
15581
  export interface RealtimeArchiveExportInput {
13725
15582
  /**
13726
15583
  * Only entries with ts <= to_ts (epoch ms)