@lessly/sdk-app 29.0.0 → 30.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 (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 +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-QlwjPsPF.d.cts → client.gen-BOjtovBR.d.cts} +123 -254
  10. package/dist/{client.gen-QlwjPsPF.d.ts → client.gen-BOjtovBR.d.ts} +123 -254
  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 +36 -104
  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 +36 -104
  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 +5 -0
  24. package/dist/organization/index.cjs.map +1 -1
  25. package/dist/organization/index.d.cts +6 -2
  26. package/dist/organization/index.d.ts +6 -2
  27. package/dist/organization/index.js +5 -1
  28. package/dist/organization/index.js.map +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/users/index.d.cts +1 -1
  34. package/dist/users/index.d.ts +1 -1
  35. package/dist/waitlist/index.d.cts +1 -1
  36. package/dist/waitlist/index.d.ts +1 -1
  37. package/package.json +2 -7
  38. package/src/gen/bindings.gen.ts +36 -104
  39. package/src/gen/brain/index.ts +1 -1
  40. package/src/gen/brain/queryOptions.gen.ts +7 -0
  41. package/src/gen/client.gen.ts +8 -52
  42. package/src/gen/manifest.gen.ts +1 -1
  43. package/src/gen/organization/index.ts +1 -1
  44. package/src/gen/organization/queryOptions.gen.ts +6 -0
  45. package/src/gen/types.gen.ts +122 -257
  46. package/dist/playground/index.cjs +0 -66
  47. package/dist/playground/index.cjs.map +0 -1
  48. package/dist/playground/index.d.cts +0 -52
  49. package/dist/playground/index.d.ts +0 -52
  50. package/dist/playground/index.js +0 -53
  51. package/dist/playground/index.js.map +0 -1
  52. package/src/gen/playground/index.ts +0 -3
  53. package/src/gen/playground/queryOptions.gen.ts +0 -86
@@ -82,6 +82,8 @@ import type {
82
82
  BrainProductSharedMemoryResetOutput,
83
83
  BrainRestoreStatusInput,
84
84
  BrainRestoreStatusOutput,
85
+ BrainUsageReportInput,
86
+ BrainUsageReportOutput,
85
87
  ConsentConfigCookieDomainUpsertInput,
86
88
  ConsentConfigCookieDomainUpsertOutput,
87
89
  ConsentConfigCustomizationUpsertInput,
@@ -480,6 +482,8 @@ import type {
480
482
  OrganizationDomainsListOutput,
481
483
  OrganizationDomainsRemoveInput,
482
484
  OrganizationDomainsRemoveOutput,
485
+ OrganizationDomainsSetModeInput,
486
+ OrganizationDomainsSetModeOutput,
483
487
  OrganizationExtensionsListInstalledInput,
484
488
  OrganizationExtensionsListInstalledOutput,
485
489
  OrganizationFeedbackSubmitInput,
@@ -562,30 +566,6 @@ import type {
562
566
  OrganizationSecurityMfaEnableOutput,
563
567
  OrganizationSelectInput,
564
568
  OrganizationSelectOutput,
565
- PlaygroundAnalyticsOverviewInput,
566
- PlaygroundAnalyticsOverviewOutput,
567
- PlaygroundBillingEntitlementsInput,
568
- PlaygroundBillingEntitlementsOutput,
569
- PlaygroundBillingRecordUsageInput,
570
- PlaygroundBillingRecordUsageOutput,
571
- PlaygroundClickupCreateTaskInput,
572
- PlaygroundClickupCreateTaskOutput,
573
- PlaygroundClickupGetLastWebhookInput,
574
- PlaygroundClickupGetLastWebhookOutput,
575
- PlaygroundClickupGetOverviewInput,
576
- PlaygroundClickupGetOverviewOutput,
577
- PlaygroundGdriveGetLastChangeInput,
578
- PlaygroundGdriveGetLastChangeOutput,
579
- PlaygroundGdriveReadFileInput,
580
- PlaygroundGdriveReadFileOutput,
581
- PlaygroundGoogleadsReadCustomerInput,
582
- PlaygroundGoogleadsReadCustomerOutput,
583
- PlaygroundLifecycleGetStateInput,
584
- PlaygroundLifecycleGetStateOutput,
585
- PlaygroundLifecycleListEventsInput,
586
- PlaygroundLifecycleListEventsOutput,
587
- PlaygroundWebhookGetLastInput,
588
- PlaygroundWebhookGetLastOutput,
589
569
  RealtimeArchiveExportInput,
590
570
  RealtimeArchiveExportOutput,
591
571
  RealtimeArchiveExportStatusInput,
@@ -901,6 +881,9 @@ export interface GeneratedClient {
901
881
  restore: {
902
882
  status(input: BrainRestoreStatusInput): Promise<BrainRestoreStatusOutput>;
903
883
  };
884
+ usage: {
885
+ report(input: BrainUsageReportInput): Promise<BrainUsageReportOutput>;
886
+ };
904
887
  };
905
888
  consent: {
906
889
  'config-cookie-domain': {
@@ -1255,6 +1238,7 @@ export interface GeneratedClient {
1255
1238
  get(input: OrganizationDomainsGetInput): Promise<OrganizationDomainsGetOutput>;
1256
1239
  list(input: OrganizationDomainsListInput): Promise<OrganizationDomainsListOutput>;
1257
1240
  remove(input: OrganizationDomainsRemoveInput): Promise<OrganizationDomainsRemoveOutput>;
1241
+ 'set-mode'(input: OrganizationDomainsSetModeInput): Promise<OrganizationDomainsSetModeOutput>;
1258
1242
  };
1259
1243
  extensions: {
1260
1244
  'list-installed'(input: OrganizationExtensionsListInstalledInput): Promise<OrganizationExtensionsListInstalledOutput>;
@@ -1322,34 +1306,6 @@ export interface GeneratedClient {
1322
1306
  enable(input: OrganizationSecurityMfaEnableInput): Promise<OrganizationSecurityMfaEnableOutput>;
1323
1307
  };
1324
1308
  };
1325
- playground: {
1326
- analytics: {
1327
- overview(input: PlaygroundAnalyticsOverviewInput): Promise<PlaygroundAnalyticsOverviewOutput>;
1328
- };
1329
- billing: {
1330
- entitlements(input: PlaygroundBillingEntitlementsInput): Promise<PlaygroundBillingEntitlementsOutput>;
1331
- 'record-usage'(input: PlaygroundBillingRecordUsageInput): Promise<PlaygroundBillingRecordUsageOutput>;
1332
- };
1333
- clickup: {
1334
- 'create-task'(input: PlaygroundClickupCreateTaskInput): Promise<PlaygroundClickupCreateTaskOutput>;
1335
- 'get-last-webhook'(input: PlaygroundClickupGetLastWebhookInput): Promise<PlaygroundClickupGetLastWebhookOutput>;
1336
- 'get-overview'(input: PlaygroundClickupGetOverviewInput): Promise<PlaygroundClickupGetOverviewOutput>;
1337
- };
1338
- gdrive: {
1339
- 'get-last-change'(input: PlaygroundGdriveGetLastChangeInput): Promise<PlaygroundGdriveGetLastChangeOutput>;
1340
- 'read-file'(input: PlaygroundGdriveReadFileInput): Promise<PlaygroundGdriveReadFileOutput>;
1341
- };
1342
- googleads: {
1343
- 'read-customer'(input: PlaygroundGoogleadsReadCustomerInput): Promise<PlaygroundGoogleadsReadCustomerOutput>;
1344
- };
1345
- lifecycle: {
1346
- 'get-state'(input: PlaygroundLifecycleGetStateInput): Promise<PlaygroundLifecycleGetStateOutput>;
1347
- 'list-events'(input: PlaygroundLifecycleListEventsInput): Promise<PlaygroundLifecycleListEventsOutput>;
1348
- };
1349
- webhook: {
1350
- 'get-last'(input: PlaygroundWebhookGetLastInput): Promise<PlaygroundWebhookGetLastOutput>;
1351
- };
1352
- };
1353
1309
  realtime: {
1354
1310
  archive: {
1355
1311
  export(input: RealtimeArchiveExportInput): Promise<RealtimeArchiveExportOutput>;
@@ -1,2 +1,2 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
- export const namespaces = ['analytics', 'brain', 'consent', 'deployment', 'mail', 'organization', 'playground', 'realtime', 'tracking', 'users', 'waitlist'] as const;
2
+ export const namespaces = ['analytics', 'brain', 'consent', 'deployment', 'mail', 'organization', 'realtime', 'tracking', 'users', 'waitlist'] as const;
@@ -1,3 +1,3 @@
1
1
  // AUTOGENERATED by scripts/generate.ts — do not edit.
2
2
  export * from './queryOptions.gen';
3
- export type { OrganizationAuthMeInput, OrganizationAuthMeOutput, OrganizationBillingBudgetsGetInput, OrganizationBillingBudgetsGetOutput, OrganizationBillingBudgetsSetInput, OrganizationBillingBudgetsSetOutput, OrganizationBillingCapsClearInput, OrganizationBillingCapsClearOutput, OrganizationBillingCapsSetInput, OrganizationBillingCapsSetOutput, OrganizationBindingsListInput, OrganizationBindingsListOutput, OrganizationClickupInstallInput, OrganizationClickupInstallOutput, OrganizationClickupListInstallationsInput, OrganizationClickupListInstallationsOutput, OrganizationCloudflareInstallInput, OrganizationCloudflareInstallOutput, OrganizationConnectorsApproveRequestInput, OrganizationConnectorsApproveRequestOutput, OrganizationConnectorsAttachInput, OrganizationConnectorsAttachOutput, OrganizationConnectorsDeleteInput, OrganizationConnectorsDeleteOutput, OrganizationConnectorsDenyRequestInput, OrganizationConnectorsDenyRequestOutput, OrganizationConnectorsDetachInput, OrganizationConnectorsDetachOutput, OrganizationConnectorsListAttachmentsInput, OrganizationConnectorsListAttachmentsOutput, OrganizationConnectorsListAvailableInput, OrganizationConnectorsListAvailableOutput, OrganizationConnectorsListInput, OrganizationConnectorsListOrgInput, OrganizationConnectorsListOrgOutput, OrganizationConnectorsListOutput, OrganizationConnectorsListRequestsInput, OrganizationConnectorsListRequestsOutput, OrganizationConnectorsRemoveInput, OrganizationConnectorsRemoveOutput, OrganizationConnectorsRequestInput, OrganizationConnectorsRequestOutput, OrganizationCreateInput, OrganizationCreateOutput, OrganizationDomainsAddInput, OrganizationDomainsAddOutput, OrganizationDomainsGetInput, OrganizationDomainsGetOutput, OrganizationDomainsListInput, OrganizationDomainsListOutput, OrganizationDomainsRemoveInput, OrganizationDomainsRemoveOutput, OrganizationExtensionsListInstalledInput, OrganizationExtensionsListInstalledOutput, OrganizationFeedbackSubmitInput, OrganizationFeedbackSubmitOutput, OrganizationGdriveInstallInput, OrganizationGdriveInstallOutput, OrganizationGithubInstallInput, OrganizationGithubInstallOutput, OrganizationGithubListInstallationsInput, OrganizationGithubListInstallationsOutput, OrganizationGoogleadsInstallInput, OrganizationGoogleadsInstallOutput, OrganizationListInput, OrganizationListOutput, OrganizationMemberAcceptInviteInput, OrganizationMemberAcceptInviteOutput, OrganizationMemberInviteInput, OrganizationMemberInviteOutput, OrganizationMemberListInput, OrganizationMemberListInvitationsInput, OrganizationMemberListInvitationsOutput, OrganizationMemberListOutput, OrganizationMemberListProductAccessInput, OrganizationMemberListProductAccessOutput, OrganizationMemberRemoveInput, OrganizationMemberRemoveOutput, OrganizationMemberRevokeInvitationInput, OrganizationMemberRevokeInvitationOutput, OrganizationMemberSetRoleInput, OrganizationMemberSetRoleOutput, OrganizationMemberShareProductInput, OrganizationMemberShareProductOutput, OrganizationMemberUnshareProductInput, OrganizationMemberUnshareProductOutput, OrganizationMembersAssignRoleInput, OrganizationMembersAssignRoleOutput, OrganizationPermissionCatalogInput, OrganizationPermissionCatalogOutput, OrganizationProductAcceptInvitationInput, OrganizationProductAcceptInvitationOutput, OrganizationProductCreateInput, OrganizationProductCreateOutput, OrganizationProductInviteInput, OrganizationProductInviteOutput, OrganizationProductListInput, OrganizationProductListInvitationsInput, OrganizationProductListInvitationsOutput, OrganizationProductListMembersInput, OrganizationProductListMembersOutput, OrganizationProductListOutput, OrganizationProductListRolesInput, OrganizationProductListRolesOutput, OrganizationProductRevokeInvitationInput, OrganizationProductRevokeInvitationOutput, OrganizationProductSelectInput, OrganizationProductSelectOutput, OrganizationProductUpdateInput, OrganizationProductUpdateOutput, OrganizationPublicKeysCreateInput, OrganizationPublicKeysCreateOutput, OrganizationPublicKeysListInput, OrganizationPublicKeysListOutput, OrganizationPublicKeysRevokeInput, OrganizationPublicKeysRevokeOutput, OrganizationPublicKeysUpdateScopeInput, OrganizationPublicKeysUpdateScopeOutput, OrganizationPublicRoutesListInput, OrganizationPublicRoutesListOutput, OrganizationRolesCreateInput, OrganizationRolesCreateOutput, OrganizationRolesDeleteInput, OrganizationRolesDeleteOutput, OrganizationRolesGetInput, OrganizationRolesGetOutput, OrganizationRolesListInput, OrganizationRolesListOutput, OrganizationRolesUpdateInput, OrganizationRolesUpdateOutput, OrganizationSecurityMfaEnableInput, OrganizationSecurityMfaEnableOutput, OrganizationSelectInput, OrganizationSelectOutput } from '../types.gen';
3
+ export type { OrganizationAuthMeInput, OrganizationAuthMeOutput, OrganizationBillingBudgetsGetInput, OrganizationBillingBudgetsGetOutput, OrganizationBillingBudgetsSetInput, OrganizationBillingBudgetsSetOutput, OrganizationBillingCapsClearInput, OrganizationBillingCapsClearOutput, OrganizationBillingCapsSetInput, OrganizationBillingCapsSetOutput, OrganizationBindingsListInput, OrganizationBindingsListOutput, OrganizationClickupInstallInput, OrganizationClickupInstallOutput, OrganizationClickupListInstallationsInput, OrganizationClickupListInstallationsOutput, OrganizationCloudflareInstallInput, OrganizationCloudflareInstallOutput, OrganizationConnectorsApproveRequestInput, OrganizationConnectorsApproveRequestOutput, OrganizationConnectorsAttachInput, OrganizationConnectorsAttachOutput, OrganizationConnectorsDeleteInput, OrganizationConnectorsDeleteOutput, OrganizationConnectorsDenyRequestInput, OrganizationConnectorsDenyRequestOutput, OrganizationConnectorsDetachInput, OrganizationConnectorsDetachOutput, OrganizationConnectorsListAttachmentsInput, OrganizationConnectorsListAttachmentsOutput, OrganizationConnectorsListAvailableInput, OrganizationConnectorsListAvailableOutput, OrganizationConnectorsListInput, OrganizationConnectorsListOrgInput, OrganizationConnectorsListOrgOutput, OrganizationConnectorsListOutput, OrganizationConnectorsListRequestsInput, OrganizationConnectorsListRequestsOutput, OrganizationConnectorsRemoveInput, OrganizationConnectorsRemoveOutput, OrganizationConnectorsRequestInput, OrganizationConnectorsRequestOutput, OrganizationCreateInput, OrganizationCreateOutput, OrganizationDomainsAddInput, OrganizationDomainsAddOutput, OrganizationDomainsGetInput, OrganizationDomainsGetOutput, OrganizationDomainsListInput, OrganizationDomainsListOutput, OrganizationDomainsRemoveInput, OrganizationDomainsRemoveOutput, OrganizationDomainsSetModeInput, OrganizationDomainsSetModeOutput, OrganizationExtensionsListInstalledInput, OrganizationExtensionsListInstalledOutput, OrganizationFeedbackSubmitInput, OrganizationFeedbackSubmitOutput, OrganizationGdriveInstallInput, OrganizationGdriveInstallOutput, OrganizationGithubInstallInput, OrganizationGithubInstallOutput, OrganizationGithubListInstallationsInput, OrganizationGithubListInstallationsOutput, OrganizationGoogleadsInstallInput, OrganizationGoogleadsInstallOutput, OrganizationListInput, OrganizationListOutput, OrganizationMemberAcceptInviteInput, OrganizationMemberAcceptInviteOutput, OrganizationMemberInviteInput, OrganizationMemberInviteOutput, OrganizationMemberListInput, OrganizationMemberListInvitationsInput, OrganizationMemberListInvitationsOutput, OrganizationMemberListOutput, OrganizationMemberListProductAccessInput, OrganizationMemberListProductAccessOutput, OrganizationMemberRemoveInput, OrganizationMemberRemoveOutput, OrganizationMemberRevokeInvitationInput, OrganizationMemberRevokeInvitationOutput, OrganizationMemberSetRoleInput, OrganizationMemberSetRoleOutput, OrganizationMemberShareProductInput, OrganizationMemberShareProductOutput, OrganizationMemberUnshareProductInput, OrganizationMemberUnshareProductOutput, OrganizationMembersAssignRoleInput, OrganizationMembersAssignRoleOutput, OrganizationPermissionCatalogInput, OrganizationPermissionCatalogOutput, OrganizationProductAcceptInvitationInput, OrganizationProductAcceptInvitationOutput, OrganizationProductCreateInput, OrganizationProductCreateOutput, OrganizationProductInviteInput, OrganizationProductInviteOutput, OrganizationProductListInput, OrganizationProductListInvitationsInput, OrganizationProductListInvitationsOutput, OrganizationProductListMembersInput, OrganizationProductListMembersOutput, OrganizationProductListOutput, OrganizationProductListRolesInput, OrganizationProductListRolesOutput, OrganizationProductRevokeInvitationInput, OrganizationProductRevokeInvitationOutput, OrganizationProductSelectInput, OrganizationProductSelectOutput, OrganizationProductUpdateInput, OrganizationProductUpdateOutput, OrganizationPublicKeysCreateInput, OrganizationPublicKeysCreateOutput, OrganizationPublicKeysListInput, OrganizationPublicKeysListOutput, OrganizationPublicKeysRevokeInput, OrganizationPublicKeysRevokeOutput, OrganizationPublicKeysUpdateScopeInput, OrganizationPublicKeysUpdateScopeOutput, OrganizationPublicRoutesListInput, OrganizationPublicRoutesListOutput, OrganizationRolesCreateInput, OrganizationRolesCreateOutput, OrganizationRolesDeleteInput, OrganizationRolesDeleteOutput, OrganizationRolesGetInput, OrganizationRolesGetOutput, OrganizationRolesListInput, OrganizationRolesListOutput, OrganizationRolesUpdateInput, OrganizationRolesUpdateOutput, OrganizationSecurityMfaEnableInput, OrganizationSecurityMfaEnableOutput, OrganizationSelectInput, OrganizationSelectOutput } from '../types.gen';
@@ -38,6 +38,7 @@ import type {
38
38
  OrganizationDomainsListInput,
39
39
  OrganizationDomainsListOutput,
40
40
  OrganizationDomainsRemoveInput,
41
+ OrganizationDomainsSetModeInput,
41
42
  OrganizationExtensionsListInstalledInput,
42
43
  OrganizationExtensionsListInstalledOutput,
43
44
  OrganizationFeedbackSubmitInput,
@@ -226,6 +227,11 @@ export const organizationDomainsRemoveMutationOptions = (sdk: GeneratedClient) =
226
227
  mutationFn: (input: OrganizationDomainsRemoveInput) => sdk['organization']['domains']['remove'](input),
227
228
  });
228
229
 
230
+ export const organizationDomainsSetModeMutationOptions = (sdk: GeneratedClient) => ({
231
+ mutationKey: ['organization', 'domains', 'set-mode'],
232
+ mutationFn: (input: OrganizationDomainsSetModeInput) => sdk['organization']['domains']['set-mode'](input),
233
+ });
234
+
229
235
  export const organizationExtensionsListInstalledQueryOptions = (sdk: GeneratedClient, input: OrganizationExtensionsListInstalledInput) => ({
230
236
  queryKey: ['organization', 'extensions', 'list-installed', input] as const,
231
237
  queryFn: () => sdk['organization']['extensions']['list-installed'](input),
@@ -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
  }
@@ -12701,6 +12793,7 @@ provider: string
12701
12793
  externalId: string
12702
12794
  displayName: string
12703
12795
  requestStatus: (("pending" | "denied") | null)
12796
+ organizationId: string
12704
12797
  }[]
12705
12798
 
12706
12799
  export interface OrganizationConnectorsListOrgInput {
@@ -12796,6 +12889,12 @@ domain: string
12796
12889
  createdAt: string
12797
12890
  createdBy: string
12798
12891
  productId: string
12892
+ managedDns: ({
12893
+ tool: "organization_domains_set-mode"
12894
+ provider: "cloudflare"
12895
+ available: true
12896
+ providerConnectorId: string
12897
+ } | null)
12799
12898
  providerConnectorId: (string | null)
12800
12899
  }
12801
12900
 
@@ -12840,6 +12939,23 @@ export interface OrganizationDomainsRemoveOutput {
12840
12939
  [k: string]: unknown
12841
12940
  }
12842
12941
 
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
+
12843
12959
  export interface OrganizationExtensionsListInstalledInput {
12844
12960
  productId: string
12845
12961
  }
@@ -12889,6 +13005,7 @@ connectors: {
12889
13005
  id: string
12890
13006
  externalId: string
12891
13007
  displayName: string
13008
+ organizationId: string
12892
13009
  attachedToThisProduct: boolean
12893
13010
  }[]
12894
13011
  }
@@ -12923,6 +13040,7 @@ name: string
12923
13040
  role: ("owner" | "admin" | "member")
12924
13041
  active: boolean
12925
13042
  blockedAt: (string | null)
13043
+ blockReason: (("no_subscription" | "under_review") | null)
12926
13044
  }[]
12927
13045
  }
12928
13046
 
@@ -13516,226 +13634,6 @@ name: string
13516
13634
  activeProductId: (string | null)
13517
13635
  }
13518
13636
 
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
-
13739
13637
  export interface RealtimeArchiveExportInput {
13740
13638
  /**
13741
13639
  * Only entries with ts <= to_ts (epoch ms)
@@ -15917,7 +15815,7 @@ successMessage: string
15917
15815
  */
15918
15816
  doubleOptIn: boolean
15919
15817
  /**
15920
- * How long an UNCONVERTED waitlist entry — still pending, or invited and never registered — is kept, counted from SIGN-UP, before the sweep erases it. Default 180: Lessly Privacy Policy §6 promises deletion 6 months from sign-up. The bound stays wide because a client Product answers to its own privacy policy, not ours.
15818
+ * How long a still-pending waitlist entry is kept before the sweep erases it. Default 365.
15921
15819
  */
15922
15820
  retentionDays: number
15923
15821
  /**
@@ -16237,7 +16135,7 @@ successMessage?: string
16237
16135
  */
16238
16136
  doubleOptIn?: boolean
16239
16137
  /**
16240
- * How long an UNCONVERTED waitlist entry — still pending, or invited and never registered — is kept, counted from SIGN-UP, before the sweep erases it. Default 180: Lessly Privacy Policy §6 promises deletion 6 months from sign-up. The bound stays wide because a client Product answers to its own privacy policy, not ours.
16138
+ * How long a still-pending waitlist entry is kept before the sweep erases it. Default 365.
16241
16139
  */
16242
16140
  retentionDays?: number
16243
16141
  /**
@@ -16556,7 +16454,7 @@ successMessage: string
16556
16454
  */
16557
16455
  doubleOptIn: boolean
16558
16456
  /**
16559
- * How long an UNCONVERTED waitlist entry — still pending, or invited and never registered — is kept, counted from SIGN-UP, before the sweep erases it. Default 180: Lessly Privacy Policy §6 promises deletion 6 months from sign-up. The bound stays wide because a client Product answers to its own privacy policy, not ours.
16457
+ * How long a still-pending waitlist entry is kept before the sweep erases it. Default 365.
16560
16458
  */
16561
16459
  retentionDays: number
16562
16460
  /**
@@ -16845,42 +16743,9 @@ why: string
16845
16743
  what: string
16846
16744
  }[]
16847
16745
  /**
16848
- * The last sweep this replica performed, or NULL when it has observed none. Null and a run with `erased: 0` are DIFFERENT STATES and must never be collapsed: one means the job is working and there was nothing due, the other means this replica has no evidence the job ran at all. The durable per-entry trail is elsewhere the append-only `waitlist.erased` audit rows.
16849
- */
16850
- lastSweep: ({
16851
- /**
16852
- * This is ONE replica’s memory of its own last pass, not the deployment’s — the same honesty as `users_ops_slo_get`. A replica that has never executed the cron reports `null` even though another one may have swept a minute ago, so treat this as a spot check.
16853
- */
16854
- scope: "replica"
16855
- /**
16856
- * How many of THIS PRODUCT’s entries that pass erased. The sweep itself runs across every tenant at once — expiry is the passage of time and it has no request tenant to scope to — but the number reported here is bucketed, because a management tool answers about the caller’s own product and never about anybody else’s. A zero next to a non-null run is a result, not a gap: the job ran and nothing was due here.
16857
- */
16858
- erased: number
16859
- /**
16860
- * Which window decided, in words that name the config field.
16861
- */
16862
- window: string
16863
- /**
16864
- * The statuses in scope. `registered` and `withdrawn` are never swept.
16865
- */
16866
- statuses: string[]
16867
- /**
16868
- * ISO time the pass finished.
16869
- */
16870
- finishedAt: string
16871
- } | null)
16872
- /**
16873
- * How long an UNCONVERTED waitlist entry — still pending, or invited and never registered — is kept, counted from SIGN-UP. It lives in the `waitlist` config block rather than in `retention`, because it is not a grace period on a dead row: such an entry never expires on its own, so this window is the whole of what makes it go away — and the sweep ERASES it (audit row, `users/waitlist-entry.erased`) rather than deleting it.
16746
+ * How long a still-PENDING waitlist entry is kept. It lives in the `waitlist` config block rather than in `retention`, because it is not a grace period on a dead row: a pending entry never expires on its own, so this window is the whole of what makes it go away and the sweep ERASES it (audit row, `users/waitlist-entry.erased`) rather than deleting it.
16874
16747
  */
16875
16748
  waitlistRetentionDays: number
16876
- /**
16877
- * What Lessly PUBLISHED, in its Privacy Policy §6: a waitlist address that never converted is deleted 6 months from sign-up. It rides along so the window above can be read against the promise it came from, rather than as a number with no provenance.
16878
- */
16879
- waitlistPromisedMaxDays: number
16880
- /**
16881
- * True when this product configured a window WIDER than the published 180 days. Nothing refuses such a value and nothing clamps it — §6 is Lessly’s own policy and a client Product answers to its own, under which a longer window may be perfectly lawful. This flag exists INSTEAD of that ceiling: a deliberate divergence from what Lessly published must be diagnosable in one call rather than found by comparing two numbers nobody thought to compare.
16882
- */
16883
- waitlistWiderThanPromised: boolean
16884
16749
  }
16885
16750
 
16886
16751
  export interface UsersOpsSloGetInput {
@@ -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