@elevasis/ui 2.72.0 → 2.73.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 (70) hide show
  1. package/dist/api/index.js +3 -3
  2. package/dist/app/index.d.ts +114 -20
  3. package/dist/app/index.js +8 -8
  4. package/dist/auth/index.js +4 -4
  5. package/dist/charts/index.js +4 -4
  6. package/dist/{chunk-A3JHFZDP.js → chunk-3TS5U5BL.js} +1 -1
  7. package/dist/{chunk-IXBRUIYI.js → chunk-4CW2C5BD.js} +1 -1
  8. package/dist/{chunk-753MKWFV.js → chunk-5B2ZFO44.js} +1 -1
  9. package/dist/{chunk-DJWIIPKW.js → chunk-AJOVWB47.js} +3 -3
  10. package/dist/{chunk-RRS2QR3W.js → chunk-CJ2232PQ.js} +1 -1
  11. package/dist/{chunk-2454MK7P.js → chunk-ETN3TTRT.js} +7 -7
  12. package/dist/{chunk-Q3O3WY7Q.js → chunk-IBCEAVB2.js} +33 -13
  13. package/dist/{chunk-7ESZKTQG.js → chunk-IGBPWD6S.js} +3 -3
  14. package/dist/{chunk-UZ5JO5TK.js → chunk-JYBJMVNY.js} +1 -1
  15. package/dist/{chunk-LCHL5SM2.js → chunk-LEPYXLJ2.js} +1 -1
  16. package/dist/{chunk-LEQGGX2U.js → chunk-LZT2H2MA.js} +4 -4
  17. package/dist/{chunk-Z2W5VNN3.js → chunk-NHNTX6ZL.js} +1 -1
  18. package/dist/{chunk-AFBFSXP3.js → chunk-NI37YNRP.js} +4 -4
  19. package/dist/{chunk-KIDZXZM5.js → chunk-OCVSPAKM.js} +501 -25
  20. package/dist/{chunk-IMZTRDY2.js → chunk-PQ4B62HH.js} +2 -2
  21. package/dist/{chunk-SV4M2BUI.js → chunk-SWKAH2YM.js} +52 -20
  22. package/dist/{chunk-XZIOCB5D.js → chunk-U2H3TIHD.js} +1 -1
  23. package/dist/{chunk-DKVGO6RJ.js → chunk-Z4ICFQXG.js} +1 -1
  24. package/dist/{chunk-ZBXCEWKF.js → chunk-ZDKPHFTH.js} +3 -3
  25. package/dist/components/index.d.ts +305 -22
  26. package/dist/components/index.js +316 -26
  27. package/dist/components/navigation/index.js +5 -5
  28. package/dist/features/auth/index.d.ts +76 -0
  29. package/dist/features/auth/index.js +6 -6
  30. package/dist/features/clients/index.js +5 -5
  31. package/dist/features/content/index.d.ts +494 -31
  32. package/dist/features/content/index.js +1090 -44
  33. package/dist/features/crm/index.d.ts +114 -20
  34. package/dist/features/crm/index.js +6 -6
  35. package/dist/features/dashboard/index.d.ts +19 -10
  36. package/dist/features/dashboard/index.js +6 -6
  37. package/dist/features/delivery/index.d.ts +76 -0
  38. package/dist/features/delivery/index.js +5 -5
  39. package/dist/features/knowledge/index.js +4 -4
  40. package/dist/features/lead-gen/index.d.ts +38 -20
  41. package/dist/features/lead-gen/index.js +6 -6
  42. package/dist/features/monitoring/index.js +7 -7
  43. package/dist/features/monitoring/requests/index.js +5 -5
  44. package/dist/features/operations/index.d.ts +38 -20
  45. package/dist/features/operations/index.js +9 -9
  46. package/dist/features/settings/index.d.ts +76 -0
  47. package/dist/features/settings/index.js +6 -6
  48. package/dist/hooks/access/index.js +4 -4
  49. package/dist/hooks/delivery/index.d.ts +76 -0
  50. package/dist/hooks/delivery/index.js +2 -2
  51. package/dist/hooks/index.d.ts +1248 -28
  52. package/dist/hooks/index.js +4 -4
  53. package/dist/hooks/operations/command-view/utils/transformCommandViewData.d.ts +19 -10
  54. package/dist/hooks/published.d.ts +1248 -28
  55. package/dist/hooks/published.js +4 -4
  56. package/dist/initialization/index.d.ts +76 -0
  57. package/dist/knowledge/index.d.ts +38 -20
  58. package/dist/knowledge/index.js +8 -8
  59. package/dist/layout/index.js +7 -7
  60. package/dist/profile/index.d.ts +76 -0
  61. package/dist/provider/index.d.ts +114 -20
  62. package/dist/provider/index.js +4 -4
  63. package/dist/provider/published.d.ts +114 -20
  64. package/dist/provider/published.js +4 -4
  65. package/dist/supabase/index.d.ts +149 -0
  66. package/dist/test-utils/index.js +3 -3
  67. package/dist/types/index.d.ts +125 -13
  68. package/dist/utils/index.d.ts +19 -10
  69. package/dist/utils/index.js +1 -1
  70. package/package.json +5 -5
@@ -2044,6 +2044,63 @@ type Database = {
2044
2044
  }
2045
2045
  ];
2046
2046
  };
2047
+ content_item_source_assets: {
2048
+ Row: {
2049
+ alt_text: string | null;
2050
+ content_item_id: string;
2051
+ created_at: string;
2052
+ crop: Json | null;
2053
+ derivative_crop: Json | null;
2054
+ derivative_path: string | null;
2055
+ derivative_rendered_at: string | null;
2056
+ id: string;
2057
+ organization_id: string;
2058
+ position: number;
2059
+ source_asset_id: string;
2060
+ };
2061
+ Insert: {
2062
+ alt_text?: string | null;
2063
+ content_item_id: string;
2064
+ created_at?: string;
2065
+ crop?: Json | null;
2066
+ derivative_crop?: Json | null;
2067
+ derivative_path?: string | null;
2068
+ derivative_rendered_at?: string | null;
2069
+ id?: string;
2070
+ organization_id: string;
2071
+ position: number;
2072
+ source_asset_id: string;
2073
+ };
2074
+ Update: {
2075
+ alt_text?: string | null;
2076
+ content_item_id?: string;
2077
+ created_at?: string;
2078
+ crop?: Json | null;
2079
+ derivative_crop?: Json | null;
2080
+ derivative_path?: string | null;
2081
+ derivative_rendered_at?: string | null;
2082
+ id?: string;
2083
+ organization_id?: string;
2084
+ position?: number;
2085
+ source_asset_id?: string;
2086
+ };
2087
+ Relationships: [
2088
+ {
2089
+ foreignKeyName: "content_item_source_assets_asset_fkey";
2090
+ columns: ["source_asset_id", "organization_id"];
2091
+ isOneToOne: false;
2092
+ referencedRelation: "content_source_assets";
2093
+ referencedColumns: ["id", "organization_id"];
2094
+ },
2095
+ {
2096
+ foreignKeyName: "content_item_source_assets_item_fkey";
2097
+ columns: ["content_item_id", "organization_id"];
2098
+ isOneToOne: false;
2099
+ referencedRelation: "content_items";
2100
+ referencedColumns: ["id", "organization_id"];
2101
+ }
2102
+ ];
2103
+ };
2047
2104
  content_items: {
2048
2105
  Row: {
2049
2106
  body: string | null;
@@ -3799,6 +3856,25 @@ type Database = {
3799
3856
  };
3800
3857
  Returns: Json;
3801
3858
  };
3859
+ activate_deployment_atomic: {
3860
+ Args: {
3861
+ p_deployment_id: string;
3862
+ p_organization_id: string;
3863
+ };
3864
+ Returns: {
3865
+ created_at: string;
3866
+ deployment_version: string | null;
3867
+ error_message: string | null;
3868
+ id: string;
3869
+ organization_id: string;
3870
+ pid: number | null;
3871
+ port: number | null;
3872
+ sdk_version: string;
3873
+ status: string;
3874
+ tarball_path: string | null;
3875
+ updated_at: string;
3876
+ };
3877
+ };
3802
3878
  append_deal_activity: {
3803
3879
  Args: {
3804
3880
  p_activity: Json;
@@ -4427,7 +4503,9 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
4427
4503
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4428
4504
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4429
4505
  storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4430
- }, z.core.$loose>>>>;
4506
+ rowSchema: z.ZodOptional<z.ZodString>;
4507
+ stateCatalogId: z.ZodOptional<z.ZodString>;
4508
+ }, z.core.$strict>>>>;
4431
4509
  linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4432
4510
  id: z.ZodString;
4433
4511
  label: z.ZodOptional<z.ZodString>;
@@ -4438,7 +4516,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
4438
4516
  to: z.ZodString;
4439
4517
  cardinality: z.ZodOptional<z.ZodString>;
4440
4518
  via: z.ZodOptional<z.ZodString>;
4441
- }, z.core.$loose>>>>;
4519
+ }, z.core.$strict>>>>;
4442
4520
  actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4443
4521
  id: z.ZodString;
4444
4522
  label: z.ZodOptional<z.ZodString>;
@@ -4448,7 +4526,11 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
4448
4526
  actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
4449
4527
  input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4450
4528
  effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
4451
- }, z.core.$loose>>>>;
4529
+ resourceId: z.ZodOptional<z.ZodString>;
4530
+ invocations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
4531
+ lifecycle: z.ZodOptional<z.ZodString>;
4532
+ legacyActionId: z.ZodOptional<z.ZodString>;
4533
+ }, z.core.$strict>>>>;
4452
4534
  catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4453
4535
  id: z.ZodString;
4454
4536
  label: z.ZodOptional<z.ZodString>;
@@ -4458,7 +4540,10 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
4458
4540
  kind: z.ZodOptional<z.ZodString>;
4459
4541
  appliesTo: z.ZodOptional<z.ZodString>;
4460
4542
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4461
- }, z.core.$loose>>>>;
4543
+ legacyCatalogKey: z.ZodOptional<z.ZodString>;
4544
+ legacyPipelineKey: z.ZodOptional<z.ZodString>;
4545
+ legacyEntityKey: z.ZodOptional<z.ZodString>;
4546
+ }, z.core.$strict>>>>;
4462
4547
  eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4463
4548
  id: z.ZodString;
4464
4549
  label: z.ZodOptional<z.ZodString>;
@@ -4466,7 +4551,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
4466
4551
  ownerSystemId: z.ZodOptional<z.ZodString>;
4467
4552
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4468
4553
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4469
- }, z.core.$loose>>>>;
4554
+ }, z.core.$strict>>>>;
4470
4555
  interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4471
4556
  id: z.ZodString;
4472
4557
  label: z.ZodOptional<z.ZodString>;
@@ -4474,7 +4559,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
4474
4559
  ownerSystemId: z.ZodOptional<z.ZodString>;
4475
4560
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4476
4561
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
4477
- }, z.core.$loose>>>>;
4562
+ }, z.core.$strict>>>>;
4478
4563
  valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4479
4564
  id: z.ZodString;
4480
4565
  label: z.ZodOptional<z.ZodString>;
@@ -4482,7 +4567,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
4482
4567
  ownerSystemId: z.ZodOptional<z.ZodString>;
4483
4568
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4484
4569
  primitive: z.ZodOptional<z.ZodString>;
4485
- }, z.core.$loose>>>>;
4570
+ }, z.core.$strict>>>>;
4486
4571
  sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4487
4572
  id: z.ZodString;
4488
4573
  label: z.ZodOptional<z.ZodString>;
@@ -4492,7 +4577,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
4492
4577
  valueType: z.ZodOptional<z.ZodString>;
4493
4578
  searchable: z.ZodOptional<z.ZodBoolean>;
4494
4579
  pii: z.ZodOptional<z.ZodBoolean>;
4495
- }, z.core.$loose>>>>;
4580
+ }, z.core.$strict>>>>;
4496
4581
  groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4497
4582
  id: z.ZodString;
4498
4583
  label: z.ZodOptional<z.ZodString>;
@@ -4500,7 +4585,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
4500
4585
  ownerSystemId: z.ZodOptional<z.ZodString>;
4501
4586
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4502
4587
  members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
4503
- }, z.core.$loose>>>>;
4588
+ }, z.core.$strict>>>>;
4504
4589
  endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
4505
4590
  id: z.ZodString;
4506
4591
  label: z.ZodOptional<z.ZodString>;
@@ -4508,7 +4593,7 @@ declare const OntologyScopeSchema: z.ZodDefault<z.ZodObject<{
4508
4593
  ownerSystemId: z.ZodOptional<z.ZodString>;
4509
4594
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
4510
4595
  route: z.ZodOptional<z.ZodString>;
4511
- }, z.core.$loose>>>>;
4596
+ }, z.core.$strict>>>>;
4512
4597
  }, z.core.$strict>>;
4513
4598
  type OntologyScope = z.infer<typeof OntologyScopeSchema>;
4514
4599
 
@@ -5074,7 +5159,9 @@ declare const OrganizationModelSchema: z.ZodObject<{
5074
5159
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5075
5160
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5076
5161
  storage: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5077
- }, z.core.$loose>>>>;
5162
+ rowSchema: z.ZodOptional<z.ZodString>;
5163
+ stateCatalogId: z.ZodOptional<z.ZodString>;
5164
+ }, z.core.$strict>>>>;
5078
5165
  linkTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5079
5166
  id: z.ZodString;
5080
5167
  label: z.ZodOptional<z.ZodString>;
@@ -5085,7 +5172,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
5085
5172
  to: z.ZodString;
5086
5173
  cardinality: z.ZodOptional<z.ZodString>;
5087
5174
  via: z.ZodOptional<z.ZodString>;
5088
- }, z.core.$loose>>>>;
5175
+ }, z.core.$strict>>>>;
5089
5176
  actionTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5090
5177
  id: z.ZodString;
5091
5178
  label: z.ZodOptional<z.ZodString>;
@@ -5095,7 +5182,11 @@ declare const OrganizationModelSchema: z.ZodObject<{
5095
5182
  actsOn: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
5096
5183
  input: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5097
5184
  effects: z.ZodOptional<z.ZodArray<z.ZodRecord<z.ZodString, z.ZodUnknown>>>;
5098
- }, z.core.$loose>>>>;
5185
+ resourceId: z.ZodOptional<z.ZodString>;
5186
+ invocations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
5187
+ lifecycle: z.ZodOptional<z.ZodString>;
5188
+ legacyActionId: z.ZodOptional<z.ZodString>;
5189
+ }, z.core.$strict>>>>;
5099
5190
  catalogTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5100
5191
  id: z.ZodString;
5101
5192
  label: z.ZodOptional<z.ZodString>;
@@ -5105,7 +5196,10 @@ declare const OrganizationModelSchema: z.ZodObject<{
5105
5196
  kind: z.ZodOptional<z.ZodString>;
5106
5197
  appliesTo: z.ZodOptional<z.ZodString>;
5107
5198
  entries: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5108
- }, z.core.$loose>>>>;
5199
+ legacyCatalogKey: z.ZodOptional<z.ZodString>;
5200
+ legacyPipelineKey: z.ZodOptional<z.ZodString>;
5201
+ legacyEntityKey: z.ZodOptional<z.ZodString>;
5202
+ }, z.core.$strict>>>>;
5109
5203
  eventTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5110
5204
  id: z.ZodString;
5111
5205
  label: z.ZodOptional<z.ZodString>;
@@ -5113,7 +5207,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
5113
5207
  ownerSystemId: z.ZodOptional<z.ZodString>;
5114
5208
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5115
5209
  payload: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5116
- }, z.core.$loose>>>>;
5210
+ }, z.core.$strict>>>>;
5117
5211
  interfaceTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5118
5212
  id: z.ZodString;
5119
5213
  label: z.ZodOptional<z.ZodString>;
@@ -5121,7 +5215,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
5121
5215
  ownerSystemId: z.ZodOptional<z.ZodString>;
5122
5216
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5123
5217
  properties: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
5124
- }, z.core.$loose>>>>;
5218
+ }, z.core.$strict>>>>;
5125
5219
  valueTypes: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5126
5220
  id: z.ZodString;
5127
5221
  label: z.ZodOptional<z.ZodString>;
@@ -5129,7 +5223,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
5129
5223
  ownerSystemId: z.ZodOptional<z.ZodString>;
5130
5224
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5131
5225
  primitive: z.ZodOptional<z.ZodString>;
5132
- }, z.core.$loose>>>>;
5226
+ }, z.core.$strict>>>>;
5133
5227
  sharedProperties: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5134
5228
  id: z.ZodString;
5135
5229
  label: z.ZodOptional<z.ZodString>;
@@ -5139,7 +5233,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
5139
5233
  valueType: z.ZodOptional<z.ZodString>;
5140
5234
  searchable: z.ZodOptional<z.ZodBoolean>;
5141
5235
  pii: z.ZodOptional<z.ZodBoolean>;
5142
- }, z.core.$loose>>>>;
5236
+ }, z.core.$strict>>>>;
5143
5237
  groups: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5144
5238
  id: z.ZodString;
5145
5239
  label: z.ZodOptional<z.ZodString>;
@@ -5147,7 +5241,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
5147
5241
  ownerSystemId: z.ZodOptional<z.ZodString>;
5148
5242
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5149
5243
  members: z.ZodOptional<z.ZodDefault<z.ZodArray<z.ZodString>>>;
5150
- }, z.core.$loose>>>>;
5244
+ }, z.core.$strict>>>>;
5151
5245
  endpoints: z.ZodOptional<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodObject<{
5152
5246
  id: z.ZodString;
5153
5247
  label: z.ZodOptional<z.ZodString>;
@@ -5155,7 +5249,7 @@ declare const OrganizationModelSchema: z.ZodObject<{
5155
5249
  ownerSystemId: z.ZodOptional<z.ZodString>;
5156
5250
  aliases: z.ZodOptional<z.ZodArray<z.ZodString>>;
5157
5251
  route: z.ZodOptional<z.ZodString>;
5158
- }, z.core.$loose>>>>;
5252
+ }, z.core.$strict>>>>;
5159
5253
  }, z.core.$strict>>>;
5160
5254
  resources: z.ZodDefault<z.ZodDefault<z.ZodRecord<z.ZodString, z.ZodDiscriminatedUnion<[z.ZodObject<{
5161
5255
  id: z.ZodString;
@@ -6277,6 +6371,39 @@ declare const ListCredentialsResponseSchema: z.ZodObject<{
6277
6371
  /** API response type for a single credential list item */
6278
6372
  type CredentialListItem = z.infer<typeof ListCredentialsResponseSchema>['credentials'][number];
6279
6373
 
6374
+ /**
6375
+ * Storage-neutral file descriptor.
6376
+ *
6377
+ * Dropbox and Google Drive (the foreseeable second provider) both ship
6378
+ * their own file/metadata shapes. Consumers on both sides of the wire —
6379
+ * a UI file browser and the API route that talks to the provider — need
6380
+ * to agree on one normalized shape, which is why it lives here instead
6381
+ * of being duplicated in each consumer.
6382
+ *
6383
+ * Adapters (`createDropboxAdapter`, a future Drive adapter) stay concrete
6384
+ * and keep their own provider-shaped responses. Normalization into this
6385
+ * type happens at the route/hook boundary — a few lines per provider,
6386
+ * not behind a shared `CloudStorageAdapter` interface.
6387
+ */
6388
+ interface CloudStorageFile {
6389
+ id: string;
6390
+ name: string;
6391
+ kind: 'file' | 'folder';
6392
+ path?: string;
6393
+ mimeType?: string;
6394
+ sizeBytes?: number;
6395
+ width?: number;
6396
+ height?: number;
6397
+ /** ISO 8601 timestamp the asset was captured (e.g. photo EXIF date), when the provider exposes one. */
6398
+ capturedAt?: string;
6399
+ /**
6400
+ * Optional on purpose. Dropbox does not produce a thumbnail for HEIC or
6401
+ * for anything over 20 MB — "no thumbnail" is a normal state a consumer
6402
+ * renders a fallback for, not an error.
6403
+ */
6404
+ thumbnailUrl?: string;
6405
+ }
6406
+
6280
6407
  type PermissionRow = PermissionDescriptor;
6281
6408
  type Props = {
6282
6409
  catalog: PermissionRow[];
@@ -8433,6 +8560,162 @@ declare const DEAL_STAGES: DealStage[];
8433
8560
  /** Default Mantine color mapping for each deal stage. */
8434
8561
  declare const DEFAULT_KANBAN_CONFIG: KanbanBoardConfig;
8435
8562
 
8563
+ /** Per-file display flags the consumer computes. Both optional; both purely visual. */
8564
+ interface CloudStorageItemDecoration {
8565
+ /** Renders the card's "used" badge -- e.g. this file already backs a content item. */
8566
+ used?: boolean;
8567
+ /** Renders a warning affordance on the card, e.g. "below the minimum postable size". */
8568
+ dimensionWarning?: string;
8569
+ }
8570
+ interface CloudStorageBrowserProps {
8571
+ /** Which connected cloud-storage credential to browse. */
8572
+ credentialName: string;
8573
+ /**
8574
+ * The current selection, in the consumer's own order. The browser preserves
8575
+ * that order and appends newly-picked files to the end -- ordering is the
8576
+ * consumer's concern (a carousel cares; a single-file picker does not).
8577
+ */
8578
+ selected: CloudStorageFile[];
8579
+ /** Fired with the full next selection whenever a tile is toggled. */
8580
+ onSelectionChange: (files: CloudStorageFile[]) => void;
8581
+ /** When false (default), picking a file replaces the selection. */
8582
+ multiple?: boolean;
8583
+ /**
8584
+ * Supplies per-file display flags. Called for every visible file. Keep it
8585
+ * cheap and pure -- it runs on each render of the grid.
8586
+ *
8587
+ * This is the seam that keeps the browser storage-only: "already used" and
8588
+ * "too small to post" are both facts about the CONSUMER's domain, not about
8589
+ * storage, so the browser renders them without knowing what they mean.
8590
+ */
8591
+ decorateItem?: (file: CloudStorageFile) => CloudStorageItemDecoration;
8592
+ /** Replaces the default "not connected" panel. */
8593
+ notConnected?: ReactNode;
8594
+ }
8595
+ /**
8596
+ * A browsable, selectable view of one cloud-storage account.
8597
+ *
8598
+ * Composes the three presentational pieces (`CloudStorageFolderTree`,
8599
+ * `CloudStorageFileGrid`, `CloudStorageFileCard`) with the fetching and
8600
+ * bookkeeping that every storage-backed screen otherwise reimplements: lazy
8601
+ * folder-tree accumulation, cursor paging, thumbnail batching, and a selection
8602
+ * that survives navigating between folders.
8603
+ *
8604
+ * It is deliberately storage-only. It knows nothing about content items, source
8605
+ * assets, or what a selection is *for* -- the consumer receives the selected
8606
+ * files and decides. That boundary is why the same component serves a carousel
8607
+ * builder, a knowledge-document importer, and a single-file picker.
8608
+ *
8609
+ * **The folder tree is built from what browsing has revealed, not fetched whole.**
8610
+ * `list_folder` returns one level at a time and there is no "list every folder"
8611
+ * call, so a folder enters the tree the first time it appears in a listing,
8612
+ * parented to whatever folder was open when it did. The tree therefore grows as
8613
+ * you explore. This is also why `CloudStorageFolderTree` takes a flat,
8614
+ * parent-referencing node list rather than a nested one -- a nested shape cannot
8615
+ * express a subtree discovered before its parent.
8616
+ */
8617
+ declare function CloudStorageBrowser({ credentialName, selected, onSelectionChange, multiple, decorateItem, notConnected }: CloudStorageBrowserProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element;
8618
+
8619
+ interface CloudStorageFileCardProps {
8620
+ /** Storage-neutral file descriptor to render. */
8621
+ file: CloudStorageFile;
8622
+ /** Whether this card is currently selected. Omit to render without a checkbox affordance. */
8623
+ selected?: boolean;
8624
+ /** Marks the file as already used by the consuming feature (e.g. attached to a campaign asset). */
8625
+ used?: boolean;
8626
+ /**
8627
+ * Warning message to surface when this file's dimensions are unsuitable for the
8628
+ * consumer's use case. The card only renders the affordance the caller supplies —
8629
+ * the aspect-ratio / minimum-resolution rule itself is the consuming tenant's, not
8630
+ * this package's, so pass a message only when `file.width`/`file.height` are present
8631
+ * and the caller has already judged them problematic.
8632
+ */
8633
+ dimensionWarning?: string;
8634
+ /** Fired when the card (or its checkbox) is activated. Omit to render a read-only tile. */
8635
+ onSelect?: (file: CloudStorageFile) => void;
8636
+ }
8637
+ /**
8638
+ * A single cloud-storage file/folder tile: thumbnail, used/unused badge, dimension
8639
+ * warning, and a no-thumbnail fallback.
8640
+ *
8641
+ * Purely presentational -- no fetching, no data-layer coupling. `file.thumbnailUrl`
8642
+ * missing is a normal state (Dropbox skips thumbnail conversion for HEIC and for
8643
+ * anything over 20 MB), not an error, so the fallback tile below is not a broken-image
8644
+ * placeholder -- it is a first-class rendering path.
8645
+ */
8646
+ declare function CloudStorageFileCard({ file, selected, used, dimensionWarning, onSelect }: CloudStorageFileCardProps): react_jsx_runtime.JSX.Element;
8647
+
8648
+ /**
8649
+ * A `CloudStorageFile` plus optional per-item display flags a consumer computes
8650
+ * upstream (already-used state, a dimension-warning message). Kept on the item
8651
+ * itself rather than as a second lookup-map prop -- the grid stays a pure
8652
+ * pass-through and every `CloudStorageFile[]` is already a valid
8653
+ * `CloudStorageGridItem[]` since both extra fields are optional.
8654
+ */
8655
+ interface CloudStorageGridItem extends CloudStorageFile {
8656
+ used?: boolean;
8657
+ dimensionWarning?: string;
8658
+ }
8659
+ interface CloudStorageFileGridProps {
8660
+ /** Files (and/or folders) to render as tiles. */
8661
+ items: CloudStorageGridItem[];
8662
+ /** Ids of the currently selected items. */
8663
+ selectedIds: string[];
8664
+ /** When false (default), selecting an item replaces the selection with just that item. When true, selection accumulates. */
8665
+ multiple?: boolean;
8666
+ /** Fired with the full next selection whenever an item is toggled. */
8667
+ onSelectionChange: (selectedIds: string[]) => void;
8668
+ /** Rendered instead of the grid when `items` is empty. */
8669
+ emptyState?: ReactNode;
8670
+ }
8671
+ /**
8672
+ * A selectable grid of cloud-storage file tiles.
8673
+ *
8674
+ * Purely presentational -- data comes in via `items`, selection goes out via
8675
+ * `onSelectionChange`. No fetching, no hook imports.
8676
+ */
8677
+ declare function CloudStorageFileGrid({ items, selectedIds, multiple, onSelectionChange, emptyState }: CloudStorageFileGridProps): string | number | bigint | boolean | Iterable<ReactNode> | Promise<string | number | bigint | boolean | React$1.ReactPortal | React$1.ReactElement<unknown, string | React$1.JSXElementConstructor<any>> | Iterable<ReactNode> | null | undefined> | react_jsx_runtime.JSX.Element;
8678
+
8679
+ /**
8680
+ * A folder in a cloud-storage tree, addressed by parent references rather than
8681
+ * a single nested `children` structure.
8682
+ *
8683
+ * Deliberately flat + multi-parent: Google Drive folders can have more than one
8684
+ * parent and shared drives sit outside the user's own root, so the tree needs
8685
+ * more than one root and more than one parent for a single node from day one.
8686
+ * A nested single-parent shape would have to be rewritten, not extended, once
8687
+ * Drive is wired up.
8688
+ */
8689
+ interface CloudStorageFolderNode {
8690
+ id: string;
8691
+ name: string;
8692
+ /** Ids of the folders this node is nested under. Omitted or empty marks a root. */
8693
+ parentIds?: string[];
8694
+ /**
8695
+ * Storage-neutral location string matched against `selectedPath`. Dropbox
8696
+ * supplies a real folder path; providers without one (Drive) can synthesize
8697
+ * any stable string here.
8698
+ */
8699
+ path?: string;
8700
+ }
8701
+ interface CloudStorageFolderTreeProps {
8702
+ /** Flat list of all folders. Roots and multi-parent nodes are derived from `parentIds`. */
8703
+ nodes: CloudStorageFolderNode[];
8704
+ /** `path` of the currently active folder, if any. */
8705
+ selectedPath?: string;
8706
+ /** Fired with the activated node. */
8707
+ onNavigate: (node: CloudStorageFolderNode) => void;
8708
+ }
8709
+ /**
8710
+ * Renders a cloud-storage folder tree from a flat, parent-referencing node list.
8711
+ *
8712
+ * Purely presentational -- no fetching. A node with more than one parent is
8713
+ * rendered once per parent branch (the same folder legitimately appears in more
8714
+ * than one place), and a defensive visited-chain guard keeps a malformed cyclic
8715
+ * `parentIds` graph from infinite-looping the render.
8716
+ */
8717
+ declare function CloudStorageFolderTree({ nodes, selectedPath, onNavigate }: CloudStorageFolderTreeProps): react_jsx_runtime.JSX.Element;
8718
+
8436
8719
  interface CrmSidebarProps {
8437
8720
  /** Replace the default `CrmSidebarMiddle` with custom middle content. Leave unset for the default layout. */
8438
8721
  children?: ReactNode;
@@ -8851,5 +9134,5 @@ declare const OperationsSidebarMiddle: () => react_jsx_runtime.JSX.Element;
8851
9134
 
8852
9135
  declare const operationsManifest: SystemModule;
8853
9136
 
8854
- export { APIErrorAlert, AbsoluteScheduleForm, ActionModal, ActivityCard, ActivityFeedWidget, ActivityFilters as ActivityFiltersBar, ActivityTable, ActivityTimeline, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationDetailPanel, AgentIterationEdge, AgentIterationNode, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeySettings, AppErrorBoundary, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CONTAINER_CONSTANTS, CardHeader, CenteredErrorState, CheckpointGroup, CollapsibleJsonSection, CollapsibleSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CompanyDetailPage, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContactDetailPage, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, CostBreakdownCard, CostByModelTable, CostMetricsCard, CrashErrorFallback, CreateApiKeyModal, CreateCredentialModal, CreateRoleModal, CreateScheduleModal, CredentialList, CredentialSettings, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, CustomModal, CustomSelector, DEAL_STAGES, DEFAULT_KANBAN_CONFIG, DealDetailPage, DealKanbanCard, DealsListPage, DeleteScheduleModal, DeploymentDetailModal, DeploymentList, DeploymentSettings, DeploymentStatusBadge, DetailCardSkeleton, EditApiKeyModal, ElevasisLoader, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ErrorReportCard, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FeatureUnavailableState, FilterBar, GlowDot, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, HealthStatusCard, JsonViewer, KanbanBoard, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, ListSkeleton, LogEntry, LogGroup, MdxRenderer, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyTasksPanel, NavigationButton, NoAccessState, NotificationBell, NotificationItem, NotificationList, NotificationPanel, OAuthConnectModal, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationMembershipsList, OrganizationModelDriftActionIcon, PIPELINE_FUNNEL_ORDER, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, ProvisioningStateBadge, QuickCreateActions, RecurringScheduleForm, RelativeScheduleForm, ResourceCard, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, RichTextEditor, RoleBadge, RunResourceButton, SAVED_VIEW_PRESETS, SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, SHARED_VIZ_CONSTANTS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, SessionMemory, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StepConfigForm, StyledMarkdown, TabCountBadge, TabSection, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UpcomingMilestonesPage, VisualizerContainer, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionTimeline, ZodFormRenderer, buildErrorReport, calculateProgress, crmManifest, deliveryManifest, formatStatusLabel, getEnrichmentColor, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getLogLevelConfig, getStatusColor, iconMap, leadGenManifest, mdxComponents, milestoneStatusColors, monitoringManifest, noteTypeColors, operationsManifest, projectStatusColors, seoManifest, settingsManifest, showApiErrorNotification, showAuthError, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, taskStatusColors, taskTypeColors, useCrmPipelineSummary, useCrmQuickMetrics, useDeleteLists, useGraphBackgroundStyles, useGraphTheme, useRecentCrmActivity };
8855
- export type { ActivityEntry, ActivityFiltersProps, ActivityTableProps, AgentIterationTotals, AppErrorBoundaryProps, BaseEdgeProps, BaseExecutionLogsProps, BreadcrumbsProps, CompanyDetailPageProps, ContactDetailPageProps, ContextViewerProps, CostByModelTableProps, CrashErrorFallbackProps, CreateRoleModalProps, CrmOverviewProps, DealKanbanCardProps, ErrorAnalysisCardProps, ErrorReportCardProps, ExecutionBreakdownTableProps, ExecutionHealthCardProps, ExecutionLogEntry, ExecutionLogsFiltersProps, ExecutionLogsTableProps, FeatureUnavailableStateProps, FieldPath, FitViewButtonVariant, GraphFitViewHandlerProps, JsonViewerProps, KanbanBoardProps, LogLevel, MdxRendererProps, NavigationButtonProps, PermissionRow, ProjectsSidebarMiddleProps, ResourceHealthPanelProps, RichTextEditorProps, RunResourceButtonProps, RunResourceInputResolver, SavedViewPreset, ScheduleType, StatCardProps, StepConfigComponent, StepConfigFieldHint, StepConfigFormProps, StepConfigLayout, StepConfigSection, StyledMarkdownProps, TabSectionProps, TaskFilterStatus, TrendIndicatorProps, ZodFormRendererProps };
9137
+ export { APIErrorAlert, AbsoluteScheduleForm, ActionModal, ActivityCard, ActivityFeedWidget, ActivityFilters as ActivityFiltersBar, ActivityTable, ActivityTimeline, AgentDefinitionDisplay, AgentExecutionLogs, AgentExecutionTimeline, AgentExecutionVisualizer, AgentIterationDetailPanel, AgentIterationEdge, AgentIterationNode, AllTasksPage, ApiKeyDisplayModal, ApiKeyList, ApiKeySettings, AppErrorBoundary, BaseEdge, BaseExecutionLogs, BaseExecutionLogsHeader, BaseExecutionLogsStates, BaseNode, Breadcrumbs, BusinessImpactCard, CONTAINER_CONSTANTS, CardHeader, CenteredErrorState, CheckpointGroup, CloudStorageBrowser, CloudStorageFileCard, CloudStorageFileGrid, CloudStorageFolderTree, CollapsibleJsonSection, CollapsibleSection, CommandQueueSidebar, CommandQueueSidebarMiddle, CommandQueueSidebarTop, CommandQueueTaskRow, CompanyDetailPage, ConfigCard, ConfirmationInputModal, ConfirmationModal, ContactDetailPage, ContentSections, ContextUsageBadge, ContextViewer, ContractDisplay, CostBreakdownCard, CostByModelTable, CostMetricsCard, CrashErrorFallback, CreateApiKeyModal, CreateCredentialModal, CreateRoleModal, CreateScheduleModal, CredentialList, CredentialSettings, CrmOverview, CrmSidebar, CrmSidebarMiddle, CrmSidebarTop, CustomModal, CustomSelector, DEAL_STAGES, DEFAULT_KANBAN_CONFIG, DealDetailPage, DealKanbanCard, DealsListPage, DeleteScheduleModal, DeploymentDetailModal, DeploymentList, DeploymentSettings, DeploymentStatusBadge, DetailCardSkeleton, EditApiKeyModal, ElevasisLoader, EmptyState, EmptyVisualizer, ErrorAnalysisCard, ErrorBreakdownTable, ErrorReportCard, ExecutionBreakdownTable, ExecutionErrorSection, ExecutionHealthCard, ExecutionLogsFilters as ExecutionLogsFilterBar, ExecutionLogsTable, ExecutionStats, ExecutionStatusBadge, FeatureUnavailableState, FilterBar, GlowDot, GraphBackground, GraphContainer, GraphFitViewButton, GraphFitViewHandler, GraphLegend, HealthStatusCard, JsonViewer, KanbanBoard, LEAD_GEN_ROUTE_LINKS, LeadGenCompaniesPage, LeadGenContactsPage, LeadGenListDetailPage, LeadGenListsPage, LeadGenOverviewPage, LeadGenRouteShell, LeadGenSidebar, LeadGenSidebarMiddle, LeadGenSidebarTop, ListSkeleton, LogEntry, LogGroup, MdxRenderer, MembershipStatusBadge, MetricsStrip, MilestoneTimeline, MyTasksPanel, NavigationButton, NoAccessState, NotificationBell, NotificationItem, NotificationList, NotificationPanel, OAuthConnectModal, OperationsSidebar, OperationsSidebarMiddle, OperationsSidebarTop, OrganizationMembershipsList, OrganizationModelDriftActionIcon, PIPELINE_FUNNEL_ORDER, PageNotFound, PageTitleCaption, PermissionMatrix, PipelineFunnelWidget, ProjectDetailPage, ProjectsListPage, ProjectsSidebar, ProjectsSidebarMiddle, ProjectsSidebarTop, ProvisioningStateBadge, QuickCreateActions, RecurringScheduleForm, RelativeScheduleForm, ResourceCard, ResourceDefinitionSection, ResourceErrorState, ResourceFilter, ResourceHeader, ResourceHealthChart, ResourceHealthPanel, ResourceNotFoundState, RichTextEditor, RoleBadge, RunResourceButton, SAVED_VIEW_PRESETS, SEOSidebar, SEOSidebarMiddle, SEOSidebarTop, SHARED_VIZ_CONSTANTS, SavedViewsPanel, ScheduleCard, ScheduleDetailModal, ScheduleTypeSelector, SessionMemory, SortableHeader, StatCard, StatCardSkeleton, StatsCardSkeleton, StatusBadge, StepConfigForm, StyledMarkdown, TabCountBadge, TabSection, TableSelectionToolbar, TaskCard, TaskScheduler, TimeRangeSelector, TimelineAxis, TimelineBar, TimelineContainer, TimelineRow, ToolsListDisplay, TrendIndicator, UnifiedWorkflowEdge, UnifiedWorkflowGraph, UnifiedWorkflowNode, UpcomingMilestonesPage, VisualizerContainer, WebhookUrlDisplayModal, WorkflowDefinitionDisplay, WorkflowExecutionLogs, WorkflowExecutionTimeline, ZodFormRenderer, buildErrorReport, calculateProgress, crmManifest, deliveryManifest, formatStatusLabel, getEnrichmentColor, getExecutionStatusConfig, getGraphBackgroundStyles, getHealthColor, getIcon, getLogLevelConfig, getStatusColor, iconMap, leadGenManifest, mdxComponents, milestoneStatusColors, monitoringManifest, noteTypeColors, operationsManifest, projectStatusColors, seoManifest, settingsManifest, showApiErrorNotification, showAuthError, showErrorNotification, showInfoNotification, showSuccessNotification, showWarningNotification, taskStatusColors, taskTypeColors, useCrmPipelineSummary, useCrmQuickMetrics, useDeleteLists, useGraphBackgroundStyles, useGraphTheme, useRecentCrmActivity };
9138
+ export type { ActivityEntry, ActivityFiltersProps, ActivityTableProps, AgentIterationTotals, AppErrorBoundaryProps, BaseEdgeProps, BaseExecutionLogsProps, BreadcrumbsProps, CloudStorageBrowserProps, CloudStorageFileCardProps, CloudStorageFileGridProps, CloudStorageFolderNode, CloudStorageFolderTreeProps, CloudStorageGridItem, CloudStorageItemDecoration, CompanyDetailPageProps, ContactDetailPageProps, ContextViewerProps, CostByModelTableProps, CrashErrorFallbackProps, CreateRoleModalProps, CrmOverviewProps, DealKanbanCardProps, ErrorAnalysisCardProps, ErrorReportCardProps, ExecutionBreakdownTableProps, ExecutionHealthCardProps, ExecutionLogEntry, ExecutionLogsFiltersProps, ExecutionLogsTableProps, FeatureUnavailableStateProps, FieldPath, FitViewButtonVariant, GraphFitViewHandlerProps, JsonViewerProps, KanbanBoardProps, LogLevel, MdxRendererProps, NavigationButtonProps, PermissionRow, ProjectsSidebarMiddleProps, ResourceHealthPanelProps, RichTextEditorProps, RunResourceButtonProps, RunResourceInputResolver, SavedViewPreset, ScheduleType, StatCardProps, StepConfigComponent, StepConfigFieldHint, StepConfigFormProps, StepConfigLayout, StepConfigSection, StyledMarkdownProps, TabSectionProps, TaskFilterStatus, TrendIndicatorProps, ZodFormRendererProps };