@lessly/sdk-app 30.2.0 → 30.2.1

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 (53) 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-C6_mJktu.d.cts → client.gen-QlwjPsPF.d.cts} +217 -119
  10. package/dist/{client.gen-C6_mJktu.d.ts → client.gen-QlwjPsPF.d.ts} +217 -119
  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 +104 -36
  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 +104 -36
  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/organization/index.cjs +0 -5
  24. package/dist/organization/index.cjs.map +1 -1
  25. package/dist/organization/index.d.cts +2 -6
  26. package/dist/organization/index.d.ts +2 -6
  27. package/dist/organization/index.js +1 -5
  28. package/dist/organization/index.js.map +1 -1
  29. package/dist/playground/index.cjs +66 -0
  30. package/dist/playground/index.cjs.map +1 -0
  31. package/dist/playground/index.d.cts +52 -0
  32. package/dist/playground/index.d.ts +52 -0
  33. package/dist/playground/index.js +53 -0
  34. package/dist/playground/index.js.map +1 -0
  35. package/dist/realtime/index.d.cts +1 -1
  36. package/dist/realtime/index.d.ts +1 -1
  37. package/dist/tracking/index.d.cts +1 -1
  38. package/dist/tracking/index.d.ts +1 -1
  39. package/dist/users/index.d.cts +1 -1
  40. package/dist/users/index.d.ts +1 -1
  41. package/dist/waitlist/index.d.cts +1 -1
  42. package/dist/waitlist/index.d.ts +1 -1
  43. package/package.json +7 -2
  44. package/src/gen/bindings.gen.ts +104 -36
  45. package/src/gen/brain/index.ts +1 -1
  46. package/src/gen/brain/queryOptions.gen.ts +0 -7
  47. package/src/gen/client.gen.ts +52 -8
  48. package/src/gen/manifest.gen.ts +1 -1
  49. package/src/gen/organization/index.ts +1 -1
  50. package/src/gen/organization/queryOptions.gen.ts +0 -6
  51. package/src/gen/playground/index.ts +3 -0
  52. package/src/gen/playground/queryOptions.gen.ts +86 -0
  53. package/src/gen/types.gen.ts +220 -118
@@ -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
  }
@@ -12793,7 +12701,6 @@ provider: string
12793
12701
  externalId: string
12794
12702
  displayName: string
12795
12703
  requestStatus: (("pending" | "denied") | null)
12796
- organizationId: string
12797
12704
  }[]
12798
12705
 
12799
12706
  export interface OrganizationConnectorsListOrgInput {
@@ -12889,12 +12796,6 @@ domain: string
12889
12796
  createdAt: string
12890
12797
  createdBy: string
12891
12798
  productId: string
12892
- managedDns: ({
12893
- tool: "organization_domains_set-mode"
12894
- provider: "cloudflare"
12895
- available: true
12896
- providerConnectorId: string
12897
- } | null)
12898
12799
  providerConnectorId: (string | null)
12899
12800
  }
12900
12801
 
@@ -12939,23 +12840,6 @@ export interface OrganizationDomainsRemoveOutput {
12939
12840
  [k: string]: unknown
12940
12841
  }
12941
12842
 
12942
- export interface OrganizationDomainsSetModeInput {
12943
- mode: ("managed" | "external")
12944
- domainId: string
12945
- productId: string
12946
- providerConnectorId?: string
12947
- }
12948
-
12949
- export interface OrganizationDomainsSetModeOutput {
12950
- id: string
12951
- mode: ("external" | "managed")
12952
- domain: string
12953
- createdAt: string
12954
- createdBy: string
12955
- productId: string
12956
- providerConnectorId: (string | null)
12957
- }
12958
-
12959
12843
  export interface OrganizationExtensionsListInstalledInput {
12960
12844
  productId: string
12961
12845
  }
@@ -13005,7 +12889,6 @@ connectors: {
13005
12889
  id: string
13006
12890
  externalId: string
13007
12891
  displayName: string
13008
- organizationId: string
13009
12892
  attachedToThisProduct: boolean
13010
12893
  }[]
13011
12894
  }
@@ -13040,7 +12923,6 @@ name: string
13040
12923
  role: ("owner" | "admin" | "member")
13041
12924
  active: boolean
13042
12925
  blockedAt: (string | null)
13043
- blockReason: (("no_subscription" | "under_review") | null)
13044
12926
  }[]
13045
12927
  }
13046
12928
 
@@ -13634,6 +13516,226 @@ name: string
13634
13516
  activeProductId: (string | null)
13635
13517
  }
13636
13518
 
13519
+ export interface PlaygroundAnalyticsOverviewInput {
13520
+ /**
13521
+ * Max records per entity in recent[]; omit for the endpoint default
13522
+ */
13523
+ limit?: number
13524
+ }
13525
+
13526
+ export interface PlaygroundAnalyticsOverviewOutput {
13527
+ ok: boolean
13528
+ minted: boolean
13529
+ overview?: unknown
13530
+ http_status: number
13531
+ }
13532
+
13533
+ export interface PlaygroundBillingEntitlementsInput {
13534
+
13535
+ }
13536
+
13537
+ export interface PlaygroundBillingEntitlementsOutput {
13538
+ ok: boolean
13539
+ minted: boolean
13540
+ http_status: number
13541
+ entitlements?: unknown
13542
+ }
13543
+
13544
+ export interface PlaygroundBillingRecordUsageInput {
13545
+ /**
13546
+ * Quantity of events to record against playground-events (SUM); defaults to 1
13547
+ */
13548
+ value?: number
13549
+ }
13550
+
13551
+ export interface PlaygroundBillingRecordUsageOutput {
13552
+ minted: boolean
13553
+ accepted: (number | null)
13554
+ recorded: boolean
13555
+ duplicates: (number | null)
13556
+ http_status: number
13557
+ }
13558
+
13559
+ export interface PlaygroundClickupCreateTaskInput {
13560
+ /**
13561
+ * Task title; defaults to a fixture label
13562
+ */
13563
+ name?: string
13564
+ /**
13565
+ * ClickUp list id; falls back to CLICKUP_TEST_LIST_ID
13566
+ */
13567
+ listId?: string
13568
+ }
13569
+
13570
+ export interface PlaygroundClickupCreateTaskOutput {
13571
+ minted: boolean
13572
+ task_id: (string | null)
13573
+ list_status: number
13574
+ vend_status: number
13575
+ clickup_status: number
13576
+ installation_count: number
13577
+ }
13578
+
13579
+ export interface PlaygroundClickupGetLastWebhookInput {
13580
+
13581
+ }
13582
+
13583
+ export type PlaygroundClickupGetLastWebhookOutput = ({
13584
+ payload: string
13585
+ event_id: string
13586
+ provider: string
13587
+ verified: boolean
13588
+ product_id: string
13589
+ occurred_at: string
13590
+ connector_id: string
13591
+ clickup_event: (string | null)
13592
+ receipt_count: number
13593
+ } | {
13594
+ found: false
13595
+ })
13596
+
13597
+ export interface PlaygroundClickupGetOverviewInput {
13598
+
13599
+ }
13600
+
13601
+ export interface PlaygroundClickupGetOverviewOutput {
13602
+ team: ({
13603
+ teamId: string
13604
+ teamName: string
13605
+ } | null)
13606
+ lists: PlaygroundClickupGetOverviewOutputItems[]
13607
+ tasks: {
13608
+ id: string
13609
+ name: string
13610
+ status: (string | null)
13611
+ }[]
13612
+ minted: boolean
13613
+ spaces: PlaygroundClickupGetOverviewOutputItems[]
13614
+ list_status: number
13615
+ vend_status: number
13616
+ lists_status: number
13617
+ tasks_status: number
13618
+ spaces_status: number
13619
+ folders_status: number
13620
+ installation_count: number
13621
+ }
13622
+ export interface PlaygroundClickupGetOverviewOutputItems {
13623
+ id: string
13624
+ name: string
13625
+ }
13626
+
13627
+ export interface PlaygroundGdriveGetLastChangeInput {
13628
+
13629
+ }
13630
+
13631
+ export type PlaygroundGdriveGetLastChangeOutput = ({
13632
+ file_id: string
13633
+ removed: boolean
13634
+ file_name: (string | null)
13635
+ mime_type: (string | null)
13636
+ product_id: string
13637
+ occurred_at: string
13638
+ connector_id: string
13639
+ resource_state: string
13640
+ } | {
13641
+ found: false
13642
+ })
13643
+
13644
+ export interface PlaygroundGdriveReadFileInput {
13645
+ /**
13646
+ * Drive file id; falls back to GDRIVE_TEST_FILE_ID, then the first picked file
13647
+ */
13648
+ fileId?: string
13649
+ }
13650
+
13651
+ export interface PlaygroundGdriveReadFileOutput {
13652
+ minted: boolean
13653
+ file_id: (string | null)
13654
+ file_name: (string | null)
13655
+ mime_type: (string | null)
13656
+ file_count: number
13657
+ get_status: number
13658
+ list_status: number
13659
+ vend_status: number
13660
+ content_bytes: (number | null)
13661
+ }
13662
+
13663
+ export interface PlaygroundGoogleadsReadCustomerInput {
13664
+
13665
+ }
13666
+
13667
+ export interface PlaygroundGoogleadsReadCustomerOutput {
13668
+ minted: boolean
13669
+ vended: boolean
13670
+ customer_id: (string | null)
13671
+ vend_status: number
13672
+ result_count: number
13673
+ search_status: number
13674
+ login_customer_id: (string | null)
13675
+ }
13676
+
13677
+ export interface PlaygroundLifecycleGetStateInput {
13678
+
13679
+ }
13680
+
13681
+ export interface PlaygroundLifecycleGetStateOutput {
13682
+ blocked: boolean
13683
+ archived: boolean
13684
+ productId: string
13685
+ lastBlockTransition: ({
13686
+ eventId: string
13687
+ eventName: string
13688
+ productId: string
13689
+ occurredAt: string
13690
+ recordedAt: string
13691
+ receiptCount: number
13692
+ organizationId: string
13693
+ cascadedFromOrg: boolean
13694
+ } | null)
13695
+ lastArchiveTransition: ({
13696
+ eventId: string
13697
+ eventName: string
13698
+ productId: string
13699
+ occurredAt: string
13700
+ recordedAt: string
13701
+ receiptCount: number
13702
+ organizationId: string
13703
+ cascadedFromOrg: boolean
13704
+ } | null)
13705
+ }
13706
+
13707
+ export interface PlaygroundLifecycleListEventsInput {
13708
+
13709
+ }
13710
+
13711
+ export type PlaygroundLifecycleListEventsOutput = {
13712
+ eventId: string
13713
+ eventName: string
13714
+ productId: string
13715
+ occurredAt: string
13716
+ recordedAt: string
13717
+ receiptCount: number
13718
+ organizationId: string
13719
+ cascadedFromOrg: boolean
13720
+ }[]
13721
+
13722
+ export interface PlaygroundWebhookGetLastInput {
13723
+
13724
+ }
13725
+
13726
+ export type PlaygroundWebhookGetLastOutput = ({
13727
+ payload?: unknown
13728
+ event_id: string
13729
+ provider: string
13730
+ verified: boolean
13731
+ product_id: string
13732
+ occurred_at: string
13733
+ connector_id: string
13734
+ delivery_count: number
13735
+ } | {
13736
+ found: false
13737
+ })
13738
+
13637
13739
  export interface RealtimeArchiveExportInput {
13638
13740
  /**
13639
13741
  * Only entries with ts <= to_ts (epoch ms)