@lessly/sdk-app 14.2.0 → 14.3.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 (51) 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 +5 -0
  4. package/dist/brain/index.cjs.map +1 -1
  5. package/dist/brain/index.d.cts +6 -2
  6. package/dist/brain/index.d.ts +6 -2
  7. package/dist/brain/index.js +5 -1
  8. package/dist/brain/index.js.map +1 -1
  9. package/dist/{client.gen-ClvT4E7P.d.cts → client.gen-DJUaKWF_.d.cts} +103 -286
  10. package/dist/{client.gen-ClvT4E7P.d.ts → client.gen-DJUaKWF_.d.ts} +103 -286
  11. package/dist/consent/index.d.cts +1 -1
  12. package/dist/consent/index.d.ts +1 -1
  13. package/dist/deployment/index.cjs +0 -5
  14. package/dist/deployment/index.cjs.map +1 -1
  15. package/dist/deployment/index.d.cts +2 -6
  16. package/dist/deployment/index.d.ts +2 -6
  17. package/dist/deployment/index.js +1 -5
  18. package/dist/deployment/index.js.map +1 -1
  19. package/dist/index.cjs +13 -123
  20. package/dist/index.cjs.map +1 -1
  21. package/dist/index.d.cts +1 -1
  22. package/dist/index.d.ts +1 -1
  23. package/dist/index.js +13 -123
  24. package/dist/index.js.map +1 -1
  25. package/dist/mail/index.d.cts +2 -2
  26. package/dist/mail/index.d.ts +2 -2
  27. package/dist/organization/index.d.cts +1 -1
  28. package/dist/organization/index.d.ts +1 -1
  29. package/dist/realtime/index.d.cts +1 -1
  30. package/dist/realtime/index.d.ts +1 -1
  31. package/dist/tracking/index.d.cts +1 -1
  32. package/dist/tracking/index.d.ts +1 -1
  33. package/dist/waitlist/index.d.cts +1 -1
  34. package/dist/waitlist/index.d.ts +1 -1
  35. package/package.json +2 -7
  36. package/src/gen/bindings.gen.ts +13 -123
  37. package/src/gen/brain/index.ts +1 -1
  38. package/src/gen/brain/queryOptions.gen.ts +7 -0
  39. package/src/gen/client.gen.ts +5 -55
  40. package/src/gen/deployment/index.ts +1 -1
  41. package/src/gen/deployment/queryOptions.gen.ts +0 -6
  42. package/src/gen/manifest.gen.ts +1 -1
  43. package/src/gen/types.gen.ts +101 -290
  44. package/dist/playground/index.cjs +0 -66
  45. package/dist/playground/index.cjs.map +0 -1
  46. package/dist/playground/index.d.cts +0 -52
  47. package/dist/playground/index.d.ts +0 -52
  48. package/dist/playground/index.js +0 -53
  49. package/dist/playground/index.js.map +0 -1
  50. package/src/gen/playground/index.ts +0 -3
  51. package/src/gen/playground/queryOptions.gen.ts +0 -86
@@ -1028,6 +1028,98 @@ 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
+
1031
1123
  export interface ConsentConfigCookieDomainUpsertInput {
1032
1124
  cookieDomain: ("" | null | string)
1033
1125
  }
@@ -1655,7 +1747,6 @@ build?: {
1655
1747
  command?: string
1656
1748
  outputDir?: string
1657
1749
  }
1658
- markdown?: boolean
1659
1750
  })
1660
1751
  replicas: number
1661
1752
  createdAt: string
@@ -1667,16 +1758,9 @@ memory?: string
1667
1758
  }
1668
1759
  }
1669
1760
  updatedAt: string
1670
- sleepState: ("awake" | "sleeping" | "waking" | "stopped" | "wake_failed")
1671
- idleMinutes: number
1672
- scaleToZero: boolean
1673
1761
  containerPort: number
1674
1762
  environmentId: string
1675
1763
  lastReplicasRunning: number
1676
- scaleToZeroEligibility?: {
1677
- reasons: string[]
1678
- eligible: boolean
1679
- }
1680
1764
  }[]
1681
1765
  environmentId: string
1682
1766
  }
@@ -1992,7 +2076,7 @@ deploymentId: string
1992
2076
 
1993
2077
  export interface DeploymentDeploymentCancelOutput {
1994
2078
  id: string
1995
- status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed" | "Sleeping" | "Stopped" | "WakeFailed")
2079
+ status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
1996
2080
  builtAt: (string | null)
1997
2081
  imageRef: (string | null)
1998
2082
  commitSha: (string | null)
@@ -2020,7 +2104,7 @@ id: string
2020
2104
 
2021
2105
  export interface DeploymentDeploymentGetOutput {
2022
2106
  id: string
2023
- status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed" | "Sleeping" | "Stopped" | "WakeFailed")
2107
+ status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
2024
2108
  builtAt: (string | null)
2025
2109
  imageRef: (string | null)
2026
2110
  commitSha: (string | null)
@@ -2048,7 +2132,7 @@ serviceId: string
2048
2132
 
2049
2133
  export type DeploymentDeploymentListOutput = {
2050
2134
  id: string
2051
- status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed" | "Sleeping" | "Stopped" | "WakeFailed")
2135
+ status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
2052
2136
  builtAt: (string | null)
2053
2137
  imageRef: (string | null)
2054
2138
  commitSha: (string | null)
@@ -2627,7 +2711,7 @@ baseEnvironmentId: (string | null)
2627
2711
  }
2628
2712
 
2629
2713
  export interface DeploymentEventsListByEnvironmentInput {
2630
- 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.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")
2714
+ 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.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")
2631
2715
  limit?: number
2632
2716
  since?: string
2633
2717
  until?: string
@@ -2636,7 +2720,7 @@ environmentId: string
2636
2720
 
2637
2721
  export type DeploymentEventsListByEnvironmentOutput = {
2638
2722
  id: string
2639
- 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.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")
2723
+ 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.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")
2640
2724
  payload: {
2641
2725
  [k: string]: unknown
2642
2726
  }
@@ -2649,7 +2733,7 @@ environmentId: (string | null)
2649
2733
  }[]
2650
2734
 
2651
2735
  export interface DeploymentEventsListByServiceInput {
2652
- 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.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")
2736
+ 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.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")
2653
2737
  limit?: number
2654
2738
  since?: string
2655
2739
  until?: string
@@ -2659,7 +2743,7 @@ deploymentId?: string
2659
2743
 
2660
2744
  export type DeploymentEventsListByServiceOutput = {
2661
2745
  id: string
2662
- 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.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")
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.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")
2663
2747
  payload: {
2664
2748
  [k: string]: unknown
2665
2749
  }
@@ -3151,7 +3235,6 @@ build?: {
3151
3235
  command?: string
3152
3236
  outputDir?: string
3153
3237
  }
3154
- markdown?: boolean
3155
3238
  })
3156
3239
  replicas?: number
3157
3240
  resources?: {
@@ -3206,7 +3289,6 @@ build?: {
3206
3289
  command?: string
3207
3290
  outputDir?: string
3208
3291
  }
3209
- markdown?: boolean
3210
3292
  })
3211
3293
  replicas: number
3212
3294
  createdAt: string
@@ -3218,16 +3300,9 @@ memory?: string
3218
3300
  }
3219
3301
  }
3220
3302
  updatedAt: string
3221
- sleepState: ("awake" | "sleeping" | "waking" | "stopped" | "wake_failed")
3222
- idleMinutes: number
3223
- scaleToZero: boolean
3224
3303
  containerPort: number
3225
3304
  environmentId: string
3226
3305
  lastReplicasRunning: number
3227
- scaleToZeroEligibility?: {
3228
- reasons: string[]
3229
- eligible: boolean
3230
- }
3231
3306
  }
3232
3307
  export interface DeploymentServiceCreateOutputReadiness {
3233
3308
  path: string
@@ -3309,7 +3384,6 @@ build?: {
3309
3384
  command?: string
3310
3385
  outputDir?: string
3311
3386
  }
3312
- markdown?: boolean
3313
3387
  })
3314
3388
  replicas: number
3315
3389
  createdAt: string
@@ -3321,16 +3395,9 @@ memory?: string
3321
3395
  }
3322
3396
  }
3323
3397
  updatedAt: string
3324
- sleepState: ("awake" | "sleeping" | "waking" | "stopped" | "wake_failed")
3325
- idleMinutes: number
3326
- scaleToZero: boolean
3327
3398
  containerPort: number
3328
3399
  environmentId: string
3329
3400
  lastReplicasRunning: number
3330
- scaleToZeroEligibility?: {
3331
- reasons: string[]
3332
- eligible: boolean
3333
- }
3334
3401
  }
3335
3402
  export interface DeploymentServiceGetOutputReadiness {
3336
3403
  path: string
@@ -3379,7 +3446,6 @@ build?: {
3379
3446
  command?: string
3380
3447
  outputDir?: string
3381
3448
  }
3382
- markdown?: boolean
3383
3449
  })
3384
3450
  replicas: number
3385
3451
  createdAt: string
@@ -3391,16 +3457,9 @@ memory?: string
3391
3457
  }
3392
3458
  }
3393
3459
  updatedAt: string
3394
- sleepState: ("awake" | "sleeping" | "waking" | "stopped" | "wake_failed")
3395
- idleMinutes: number
3396
- scaleToZero: boolean
3397
3460
  containerPort: number
3398
3461
  environmentId: string
3399
3462
  lastReplicasRunning: number
3400
- scaleToZeroEligibility?: {
3401
- reasons: string[]
3402
- eligible: boolean
3403
- }
3404
3463
  }[]
3405
3464
 
3406
3465
  export interface DeploymentServiceListOutputReadiness {
@@ -3420,7 +3479,6 @@ serviceId: string
3420
3479
 
3421
3480
  export interface DeploymentServiceLogsOutput {
3422
3481
  lines: string[]
3423
- sleepState?: ("awake" | "sleeping" | "waking" | "stopped" | "wake_failed")
3424
3482
  }
3425
3483
 
3426
3484
  export interface DeploymentServiceRedeployInput {
@@ -3429,7 +3487,7 @@ serviceId: string
3429
3487
 
3430
3488
  export interface DeploymentServiceRedeployOutput {
3431
3489
  id: string
3432
- status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed" | "Sleeping" | "Stopped" | "WakeFailed")
3490
+ status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
3433
3491
  builtAt: (string | null)
3434
3492
  imageRef: (string | null)
3435
3493
  commitSha: (string | null)
@@ -3466,7 +3524,7 @@ deploymentId: string
3466
3524
 
3467
3525
  export interface DeploymentServiceRollbackOutput {
3468
3526
  id: string
3469
- status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed" | "Sleeping" | "Stopped" | "WakeFailed")
3527
+ status: ("Initializing" | "Building" | "Deploying" | "Active" | "Replaced" | "Crashed" | "Completed" | "Failed" | "Removed")
3470
3528
  builtAt: (string | null)
3471
3529
  imageRef: (string | null)
3472
3530
  commitSha: (string | null)
@@ -3526,7 +3584,6 @@ build?: {
3526
3584
  command?: string
3527
3585
  outputDir?: string
3528
3586
  }
3529
- markdown?: boolean
3530
3587
  })
3531
3588
  replicas: number
3532
3589
  createdAt: string
@@ -3538,16 +3595,9 @@ memory?: string
3538
3595
  }
3539
3596
  }
3540
3597
  updatedAt: string
3541
- sleepState: ("awake" | "sleeping" | "waking" | "stopped" | "wake_failed")
3542
- idleMinutes: number
3543
- scaleToZero: boolean
3544
3598
  containerPort: number
3545
3599
  environmentId: string
3546
3600
  lastReplicasRunning: number
3547
- scaleToZeroEligibility?: {
3548
- reasons: string[]
3549
- eligible: boolean
3550
- }
3551
3601
  }
3552
3602
  export interface DeploymentServiceScaleOutputReadiness {
3553
3603
  path: string
@@ -3591,7 +3641,6 @@ build?: {
3591
3641
  command?: string
3592
3642
  outputDir?: string
3593
3643
  }
3594
- markdown?: boolean
3595
3644
  })
3596
3645
  replicas?: number
3597
3646
  resources?: {
@@ -3600,8 +3649,6 @@ cpu?: string
3600
3649
  memory?: string
3601
3650
  }
3602
3651
  }
3603
- idleMinutes?: number
3604
- scaleToZero?: boolean
3605
3652
  containerPort?: number
3606
3653
  }
3607
3654
  export interface DeploymentServiceUpdateInputReadiness {
@@ -3647,7 +3694,6 @@ build?: {
3647
3694
  command?: string
3648
3695
  outputDir?: string
3649
3696
  }
3650
- markdown?: boolean
3651
3697
  })
3652
3698
  replicas: number
3653
3699
  createdAt: string
@@ -3659,16 +3705,9 @@ memory?: string
3659
3705
  }
3660
3706
  }
3661
3707
  updatedAt: string
3662
- sleepState: ("awake" | "sleeping" | "waking" | "stopped" | "wake_failed")
3663
- idleMinutes: number
3664
- scaleToZero: boolean
3665
3708
  containerPort: number
3666
3709
  environmentId: string
3667
3710
  lastReplicasRunning: number
3668
- scaleToZeroEligibility?: {
3669
- reasons: string[]
3670
- eligible: boolean
3671
- }
3672
3711
  }
3673
3712
  export interface DeploymentServiceUpdateOutputReadiness {
3674
3713
  path: string
@@ -3680,14 +3719,6 @@ successThreshold?: number
3680
3719
  initialDelaySeconds?: number
3681
3720
  }
3682
3721
 
3683
- export interface DeploymentServiceWakeInput {
3684
- id: string
3685
- }
3686
-
3687
- export interface DeploymentServiceWakeOutput {
3688
- [k: string]: unknown
3689
- }
3690
-
3691
3722
  export interface DeploymentSshCommandInput {
3692
3723
  serviceId: string
3693
3724
  }
@@ -13335,226 +13366,6 @@ name: string
13335
13366
  activeProductId: (string | null)
13336
13367
  }
13337
13368
 
13338
- export interface PlaygroundAnalyticsOverviewInput {
13339
- /**
13340
- * Max records per entity in recent[]; omit for the endpoint default
13341
- */
13342
- limit?: number
13343
- }
13344
-
13345
- export interface PlaygroundAnalyticsOverviewOutput {
13346
- ok: boolean
13347
- minted: boolean
13348
- overview?: unknown
13349
- http_status: number
13350
- }
13351
-
13352
- export interface PlaygroundBillingEntitlementsInput {
13353
-
13354
- }
13355
-
13356
- export interface PlaygroundBillingEntitlementsOutput {
13357
- ok: boolean
13358
- minted: boolean
13359
- http_status: number
13360
- entitlements?: unknown
13361
- }
13362
-
13363
- export interface PlaygroundBillingRecordUsageInput {
13364
- /**
13365
- * Quantity of events to record against playground-events (SUM); defaults to 1
13366
- */
13367
- value?: number
13368
- }
13369
-
13370
- export interface PlaygroundBillingRecordUsageOutput {
13371
- minted: boolean
13372
- accepted: (number | null)
13373
- recorded: boolean
13374
- duplicates: (number | null)
13375
- http_status: number
13376
- }
13377
-
13378
- export interface PlaygroundClickupCreateTaskInput {
13379
- /**
13380
- * Task title; defaults to a fixture label
13381
- */
13382
- name?: string
13383
- /**
13384
- * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
13385
- */
13386
- listId?: string
13387
- }
13388
-
13389
- export interface PlaygroundClickupCreateTaskOutput {
13390
- minted: boolean
13391
- task_id: (string | null)
13392
- list_status: number
13393
- vend_status: number
13394
- clickup_status: number
13395
- installation_count: number
13396
- }
13397
-
13398
- export interface PlaygroundClickupGetLastWebhookInput {
13399
-
13400
- }
13401
-
13402
- export type PlaygroundClickupGetLastWebhookOutput = ({
13403
- payload: string
13404
- event_id: string
13405
- provider: string
13406
- verified: boolean
13407
- product_id: string
13408
- occurred_at: string
13409
- connector_id: string
13410
- clickup_event: (string | null)
13411
- receipt_count: number
13412
- } | {
13413
- found: false
13414
- })
13415
-
13416
- export interface PlaygroundClickupGetOverviewInput {
13417
-
13418
- }
13419
-
13420
- export interface PlaygroundClickupGetOverviewOutput {
13421
- team: ({
13422
- teamId: string
13423
- teamName: string
13424
- } | null)
13425
- lists: PlaygroundClickupGetOverviewOutputItems[]
13426
- tasks: {
13427
- id: string
13428
- name: string
13429
- status: (string | null)
13430
- }[]
13431
- minted: boolean
13432
- spaces: PlaygroundClickupGetOverviewOutputItems[]
13433
- list_status: number
13434
- vend_status: number
13435
- lists_status: number
13436
- tasks_status: number
13437
- spaces_status: number
13438
- folders_status: number
13439
- installation_count: number
13440
- }
13441
- export interface PlaygroundClickupGetOverviewOutputItems {
13442
- id: string
13443
- name: string
13444
- }
13445
-
13446
- export interface PlaygroundGdriveGetLastChangeInput {
13447
-
13448
- }
13449
-
13450
- export type PlaygroundGdriveGetLastChangeOutput = ({
13451
- file_id: string
13452
- removed: boolean
13453
- file_name: (string | null)
13454
- mime_type: (string | null)
13455
- product_id: string
13456
- occurred_at: string
13457
- connector_id: string
13458
- resource_state: string
13459
- } | {
13460
- found: false
13461
- })
13462
-
13463
- export interface PlaygroundGdriveReadFileInput {
13464
- /**
13465
- * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
13466
- */
13467
- fileId?: string
13468
- }
13469
-
13470
- export interface PlaygroundGdriveReadFileOutput {
13471
- minted: boolean
13472
- file_id: (string | null)
13473
- file_name: (string | null)
13474
- mime_type: (string | null)
13475
- file_count: number
13476
- get_status: number
13477
- list_status: number
13478
- vend_status: number
13479
- content_bytes: (number | null)
13480
- }
13481
-
13482
- export interface PlaygroundGoogleadsReadCustomerInput {
13483
-
13484
- }
13485
-
13486
- export interface PlaygroundGoogleadsReadCustomerOutput {
13487
- minted: boolean
13488
- vended: boolean
13489
- customer_id: (string | null)
13490
- vend_status: number
13491
- result_count: number
13492
- search_status: number
13493
- login_customer_id: (string | null)
13494
- }
13495
-
13496
- export interface PlaygroundLifecycleGetStateInput {
13497
-
13498
- }
13499
-
13500
- export interface PlaygroundLifecycleGetStateOutput {
13501
- blocked: boolean
13502
- archived: boolean
13503
- productId: string
13504
- lastBlockTransition: ({
13505
- eventId: string
13506
- eventName: string
13507
- productId: string
13508
- occurredAt: string
13509
- recordedAt: string
13510
- receiptCount: number
13511
- organizationId: string
13512
- cascadedFromOrg: boolean
13513
- } | null)
13514
- lastArchiveTransition: ({
13515
- eventId: string
13516
- eventName: string
13517
- productId: string
13518
- occurredAt: string
13519
- recordedAt: string
13520
- receiptCount: number
13521
- organizationId: string
13522
- cascadedFromOrg: boolean
13523
- } | null)
13524
- }
13525
-
13526
- export interface PlaygroundLifecycleListEventsInput {
13527
-
13528
- }
13529
-
13530
- export type PlaygroundLifecycleListEventsOutput = {
13531
- eventId: string
13532
- eventName: string
13533
- productId: string
13534
- occurredAt: string
13535
- recordedAt: string
13536
- receiptCount: number
13537
- organizationId: string
13538
- cascadedFromOrg: boolean
13539
- }[]
13540
-
13541
- export interface PlaygroundWebhookGetLastInput {
13542
-
13543
- }
13544
-
13545
- export type PlaygroundWebhookGetLastOutput = ({
13546
- payload?: unknown
13547
- event_id: string
13548
- provider: string
13549
- verified: boolean
13550
- product_id: string
13551
- occurred_at: string
13552
- connector_id: string
13553
- delivery_count: number
13554
- } | {
13555
- found: false
13556
- })
13557
-
13558
13369
  export interface RealtimeApikeyCreateInput {
13559
13370
  /**
13560
13371
  * Human-readable label for the key, e.g. "production backend"
@@ -1,66 +0,0 @@
1
- 'use strict';
2
-
3
- // src/gen/playground/queryOptions.gen.ts
4
- var playgroundAnalyticsOverviewQueryOptions = (sdk, input) => ({
5
- queryKey: ["playground", "analytics", "overview", input],
6
- queryFn: () => sdk["playground"]["analytics"]["overview"](input)
7
- });
8
- var playgroundBillingEntitlementsQueryOptions = (sdk, input) => ({
9
- queryKey: ["playground", "billing", "entitlements", input],
10
- queryFn: () => sdk["playground"]["billing"]["entitlements"](input)
11
- });
12
- var playgroundBillingRecordUsageMutationOptions = (sdk) => ({
13
- mutationKey: ["playground", "billing", "record-usage"],
14
- mutationFn: (input) => sdk["playground"]["billing"]["record-usage"](input)
15
- });
16
- var playgroundClickupCreateTaskMutationOptions = (sdk) => ({
17
- mutationKey: ["playground", "clickup", "create-task"],
18
- mutationFn: (input) => sdk["playground"]["clickup"]["create-task"](input)
19
- });
20
- var playgroundClickupGetLastWebhookQueryOptions = (sdk, input) => ({
21
- queryKey: ["playground", "clickup", "get-last-webhook", input],
22
- queryFn: () => sdk["playground"]["clickup"]["get-last-webhook"](input)
23
- });
24
- var playgroundClickupGetOverviewQueryOptions = (sdk, input) => ({
25
- queryKey: ["playground", "clickup", "get-overview", input],
26
- queryFn: () => sdk["playground"]["clickup"]["get-overview"](input)
27
- });
28
- var playgroundGdriveGetLastChangeQueryOptions = (sdk, input) => ({
29
- queryKey: ["playground", "gdrive", "get-last-change", input],
30
- queryFn: () => sdk["playground"]["gdrive"]["get-last-change"](input)
31
- });
32
- var playgroundGdriveReadFileQueryOptions = (sdk, input) => ({
33
- queryKey: ["playground", "gdrive", "read-file", input],
34
- queryFn: () => sdk["playground"]["gdrive"]["read-file"](input)
35
- });
36
- var playgroundGoogleadsReadCustomerQueryOptions = (sdk, input) => ({
37
- queryKey: ["playground", "googleads", "read-customer", input],
38
- queryFn: () => sdk["playground"]["googleads"]["read-customer"](input)
39
- });
40
- var playgroundLifecycleGetStateQueryOptions = (sdk, input) => ({
41
- queryKey: ["playground", "lifecycle", "get-state", input],
42
- queryFn: () => sdk["playground"]["lifecycle"]["get-state"](input)
43
- });
44
- var playgroundLifecycleListEventsQueryOptions = (sdk, input) => ({
45
- queryKey: ["playground", "lifecycle", "list-events", input],
46
- queryFn: () => sdk["playground"]["lifecycle"]["list-events"](input)
47
- });
48
- var playgroundWebhookGetLastQueryOptions = (sdk, input) => ({
49
- queryKey: ["playground", "webhook", "get-last", input],
50
- queryFn: () => sdk["playground"]["webhook"]["get-last"](input)
51
- });
52
-
53
- exports.playgroundAnalyticsOverviewQueryOptions = playgroundAnalyticsOverviewQueryOptions;
54
- exports.playgroundBillingEntitlementsQueryOptions = playgroundBillingEntitlementsQueryOptions;
55
- exports.playgroundBillingRecordUsageMutationOptions = playgroundBillingRecordUsageMutationOptions;
56
- exports.playgroundClickupCreateTaskMutationOptions = playgroundClickupCreateTaskMutationOptions;
57
- exports.playgroundClickupGetLastWebhookQueryOptions = playgroundClickupGetLastWebhookQueryOptions;
58
- exports.playgroundClickupGetOverviewQueryOptions = playgroundClickupGetOverviewQueryOptions;
59
- exports.playgroundGdriveGetLastChangeQueryOptions = playgroundGdriveGetLastChangeQueryOptions;
60
- exports.playgroundGdriveReadFileQueryOptions = playgroundGdriveReadFileQueryOptions;
61
- exports.playgroundGoogleadsReadCustomerQueryOptions = playgroundGoogleadsReadCustomerQueryOptions;
62
- exports.playgroundLifecycleGetStateQueryOptions = playgroundLifecycleGetStateQueryOptions;
63
- exports.playgroundLifecycleListEventsQueryOptions = playgroundLifecycleListEventsQueryOptions;
64
- exports.playgroundWebhookGetLastQueryOptions = playgroundWebhookGetLastQueryOptions;
65
- //# sourceMappingURL=index.cjs.map
66
- //# sourceMappingURL=index.cjs.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../src/gen/playground/queryOptions.gen.ts"],"names":[],"mappings":"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","file":"index.cjs","sourcesContent":["// AUTOGENERATED by scripts/generate.ts — do not edit.\nimport type { GeneratedClient } from '../client.gen';\nimport type {\n PlaygroundAnalyticsOverviewInput,\n PlaygroundAnalyticsOverviewOutput,\n PlaygroundBillingEntitlementsInput,\n PlaygroundBillingEntitlementsOutput,\n PlaygroundBillingRecordUsageInput,\n PlaygroundClickupCreateTaskInput,\n PlaygroundClickupGetLastWebhookInput,\n PlaygroundClickupGetLastWebhookOutput,\n PlaygroundClickupGetOverviewInput,\n PlaygroundClickupGetOverviewOutput,\n PlaygroundGdriveGetLastChangeInput,\n PlaygroundGdriveGetLastChangeOutput,\n PlaygroundGdriveReadFileInput,\n PlaygroundGdriveReadFileOutput,\n PlaygroundGoogleadsReadCustomerInput,\n PlaygroundGoogleadsReadCustomerOutput,\n PlaygroundLifecycleGetStateInput,\n PlaygroundLifecycleGetStateOutput,\n PlaygroundLifecycleListEventsInput,\n PlaygroundLifecycleListEventsOutput,\n PlaygroundWebhookGetLastInput,\n PlaygroundWebhookGetLastOutput,\n} from '../types.gen';\n\nexport const playgroundAnalyticsOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundAnalyticsOverviewInput) => ({\n queryKey: ['playground', 'analytics', 'overview', input] as const,\n queryFn: () => sdk['playground']['analytics']['overview'](input),\n});\n\nexport const playgroundBillingEntitlementsQueryOptions = (sdk: GeneratedClient, input: PlaygroundBillingEntitlementsInput) => ({\n queryKey: ['playground', 'billing', 'entitlements', input] as const,\n queryFn: () => sdk['playground']['billing']['entitlements'](input),\n});\n\nexport const playgroundBillingRecordUsageMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['playground', 'billing', 'record-usage'],\n mutationFn: (input: PlaygroundBillingRecordUsageInput) => sdk['playground']['billing']['record-usage'](input),\n});\n\nexport const playgroundClickupCreateTaskMutationOptions = (sdk: GeneratedClient) => ({\n mutationKey: ['playground', 'clickup', 'create-task'],\n mutationFn: (input: PlaygroundClickupCreateTaskInput) => sdk['playground']['clickup']['create-task'](input),\n});\n\nexport const playgroundClickupGetLastWebhookQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetLastWebhookInput) => ({\n queryKey: ['playground', 'clickup', 'get-last-webhook', input] as const,\n queryFn: () => sdk['playground']['clickup']['get-last-webhook'](input),\n});\n\nexport const playgroundClickupGetOverviewQueryOptions = (sdk: GeneratedClient, input: PlaygroundClickupGetOverviewInput) => ({\n queryKey: ['playground', 'clickup', 'get-overview', input] as const,\n queryFn: () => sdk['playground']['clickup']['get-overview'](input),\n});\n\nexport const playgroundGdriveGetLastChangeQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveGetLastChangeInput) => ({\n queryKey: ['playground', 'gdrive', 'get-last-change', input] as const,\n queryFn: () => sdk['playground']['gdrive']['get-last-change'](input),\n});\n\nexport const playgroundGdriveReadFileQueryOptions = (sdk: GeneratedClient, input: PlaygroundGdriveReadFileInput) => ({\n queryKey: ['playground', 'gdrive', 'read-file', input] as const,\n queryFn: () => sdk['playground']['gdrive']['read-file'](input),\n});\n\nexport const playgroundGoogleadsReadCustomerQueryOptions = (sdk: GeneratedClient, input: PlaygroundGoogleadsReadCustomerInput) => ({\n queryKey: ['playground', 'googleads', 'read-customer', input] as const,\n queryFn: () => sdk['playground']['googleads']['read-customer'](input),\n});\n\nexport const playgroundLifecycleGetStateQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleGetStateInput) => ({\n queryKey: ['playground', 'lifecycle', 'get-state', input] as const,\n queryFn: () => sdk['playground']['lifecycle']['get-state'](input),\n});\n\nexport const playgroundLifecycleListEventsQueryOptions = (sdk: GeneratedClient, input: PlaygroundLifecycleListEventsInput) => ({\n queryKey: ['playground', 'lifecycle', 'list-events', input] as const,\n queryFn: () => sdk['playground']['lifecycle']['list-events'](input),\n});\n\nexport const playgroundWebhookGetLastQueryOptions = (sdk: GeneratedClient, input: PlaygroundWebhookGetLastInput) => ({\n queryKey: ['playground', 'webhook', 'get-last', input] as const,\n queryFn: () => sdk['playground']['webhook']['get-last'](input),\n});\n"]}