@membranehq/sdk 0.15.5 → 0.16.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 (63) hide show
  1. package/dist/bundle.d.ts +51 -2
  2. package/dist/bundle.js +94 -30
  3. package/dist/bundle.js.map +1 -1
  4. package/dist/dts/accessors/connections-accessors.d.ts +1 -0
  5. package/dist/dts/accessors/integrations-accessors.d.ts +1 -0
  6. package/dist/dts/auth/auth-context-permissions.d.ts +59 -0
  7. package/dist/dts/auth/index.d.ts +1 -0
  8. package/dist/dts/index.browser.d.ts +1 -0
  9. package/dist/dts/orgs/types.d.ts +27 -0
  10. package/dist/dts/self-hosting-tokens/index.d.ts +1 -0
  11. package/dist/dts/self-hosting-tokens/types.d.ts +38 -0
  12. package/dist/dts/ui.test.d.ts +1 -0
  13. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +10 -0
  14. package/dist/dts/workspace-elements/api/actions-api.d.ts +16 -0
  15. package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +2 -0
  16. package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +1 -0
  17. package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +2 -0
  18. package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +2 -0
  19. package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +1 -0
  20. package/dist/dts/workspace-elements/api/connections-api.d.ts +8 -0
  21. package/dist/dts/workspace-elements/api/connections-api.test.d.ts +1 -0
  22. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +3 -0
  23. package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +1 -0
  24. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +12 -0
  25. package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +1 -0
  26. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +1 -0
  27. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +1 -0
  28. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +1 -0
  29. package/dist/dts/workspace-elements/api/external-events-api.d.ts +1 -0
  30. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +32 -10
  31. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +4 -0
  32. package/dist/dts/workspace-elements/api/flows-api.d.ts +11 -0
  33. package/dist/dts/workspace-elements/api/integrations-api.d.ts +2 -0
  34. package/dist/dts/workspace-elements/api/packages-api.d.ts +3 -0
  35. package/dist/dts/workspace-elements/base/action-instances/index.d.ts +2 -0
  36. package/dist/dts/workspace-elements/base/actions/index.d.ts +4 -0
  37. package/dist/dts/workspace-elements/base/app-data-schemas/index.d.ts +2 -0
  38. package/dist/dts/workspace-elements/base/app-event-subscriptions/index.d.ts +1 -0
  39. package/dist/dts/workspace-elements/base/app-event-types/index.d.ts +1 -0
  40. package/dist/dts/workspace-elements/base/connectors/index.d.ts +0 -4
  41. package/dist/dts/workspace-elements/base/data-link-tables/index.d.ts +2 -0
  42. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +2 -0
  43. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +2 -0
  44. package/dist/dts/workspace-elements/base/flows/index.d.ts +2 -0
  45. package/dist/dts/workspace-elements/base/integrations/index.d.ts +2 -0
  46. package/dist/dts/workspace-elements/base/packages/index.d.ts +1 -0
  47. package/dist/dts/workspace-elements/types.d.ts +5 -0
  48. package/dist/dts/workspace-elements/utils/index.d.ts +1 -0
  49. package/dist/dts/workspace-elements/utils/zod-schema-utils.d.ts +2 -0
  50. package/dist/dts/workspace-elements/utils/zod-schema-utils.test.d.ts +1 -0
  51. package/dist/index.browser.d.mts +257 -6
  52. package/dist/index.browser.d.ts +257 -6
  53. package/dist/index.browser.js +199 -38
  54. package/dist/index.browser.js.map +1 -1
  55. package/dist/index.browser.mjs +190 -39
  56. package/dist/index.browser.mjs.map +1 -1
  57. package/dist/index.node.d.mts +257 -6
  58. package/dist/index.node.d.ts +257 -6
  59. package/dist/index.node.js +199 -38
  60. package/dist/index.node.js.map +1 -1
  61. package/dist/index.node.mjs +190 -39
  62. package/dist/index.node.mjs.map +1 -1
  63. package/package.json +2 -2
package/dist/bundle.d.ts CHANGED
@@ -439,6 +439,7 @@ declare const ConnectionApiResponse: z.ZodObject<{
439
439
  revision: z.ZodOptional<z.ZodString>;
440
440
  createdAt: z.ZodOptional<z.ZodString>;
441
441
  updatedAt: z.ZodOptional<z.ZodString>;
442
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
442
443
  logoUri: z.ZodString;
443
444
  connectorId: z.ZodOptional<z.ZodString>;
444
445
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -503,6 +504,11 @@ declare const ConnectUIOptions: z.ZodObject<{
503
504
  connectionParameters: z.ZodOptional<z.ZodAny>;
504
505
  allowMultipleConnections: z.ZodOptional<z.ZodBoolean>;
505
506
  customState: z.ZodOptional<z.ZodString>;
507
+ theme: z.ZodOptional<z.ZodEnum<{
508
+ light: "light";
509
+ dark: "dark";
510
+ auto: "auto";
511
+ }>>;
506
512
  }, z.core.$strip>;
507
513
  type ConnectUIOptions = z.infer<typeof ConnectUIOptions>;
508
514
  type ConnectOptions = ConnectPayload & {
@@ -536,9 +542,11 @@ declare const ActionApiResponse: z.ZodObject<{
536
542
  updatedAt: z.ZodOptional<z.ZodString>;
537
543
  archivedAt: z.ZodOptional<z.ZodString>;
538
544
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
545
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
539
546
  isCustomized: z.ZodOptional<z.ZodBoolean>;
540
547
  universalParentId: z.ZodOptional<z.ZodString>;
541
548
  isPublic: z.ZodOptional<z.ZodBoolean>;
549
+ externalAppUuid: z.ZodOptional<z.ZodString>;
542
550
  userId: z.ZodOptional<z.ZodString>;
543
551
  tenantId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
544
552
  integration: z.ZodOptional<z.ZodObject<{
@@ -553,6 +561,7 @@ declare const ActionApiResponse: z.ZodObject<{
553
561
  revision: z.ZodOptional<z.ZodString>;
554
562
  createdAt: z.ZodOptional<z.ZodString>;
555
563
  updatedAt: z.ZodOptional<z.ZodString>;
564
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
556
565
  logoUri: z.ZodString;
557
566
  connectorId: z.ZodOptional<z.ZodString>;
558
567
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -625,10 +634,12 @@ declare const ActionApiResponse: z.ZodObject<{
625
634
  updatedAt: z.ZodOptional<z.ZodString>;
626
635
  archivedAt: z.ZodOptional<z.ZodString>;
627
636
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
637
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
628
638
  isCustomized: z.ZodOptional<z.ZodBoolean>;
629
639
  universalParentId: z.ZodOptional<z.ZodString>;
630
640
  outputSchema: z.ZodOptional<z.ZodAny>;
631
641
  isPublic: z.ZodOptional<z.ZodBoolean>;
642
+ externalAppUuid: z.ZodOptional<z.ZodString>;
632
643
  userId: z.ZodOptional<z.ZodString>;
633
644
  tenantId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
634
645
  }, z.core.$strip>>;
@@ -659,10 +670,12 @@ declare const ActionApiResponse: z.ZodObject<{
659
670
  updatedAt: z.ZodOptional<z.ZodString>;
660
671
  archivedAt: z.ZodOptional<z.ZodString>;
661
672
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
673
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
662
674
  isCustomized: z.ZodOptional<z.ZodBoolean>;
663
675
  universalParentId: z.ZodOptional<z.ZodString>;
664
676
  outputSchema: z.ZodOptional<z.ZodAny>;
665
677
  isPublic: z.ZodOptional<z.ZodBoolean>;
678
+ externalAppUuid: z.ZodOptional<z.ZodString>;
666
679
  userId: z.ZodOptional<z.ZodString>;
667
680
  tenantId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
668
681
  }, z.core.$strip>;
@@ -678,6 +691,7 @@ declare const ActionApiResponse: z.ZodObject<{
678
691
  revision: z.ZodOptional<z.ZodString>;
679
692
  createdAt: z.ZodOptional<z.ZodString>;
680
693
  updatedAt: z.ZodOptional<z.ZodString>;
694
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
681
695
  logoUri: z.ZodString;
682
696
  connectorId: z.ZodOptional<z.ZodString>;
683
697
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -901,9 +915,7 @@ interface OperationRunResponse {
901
915
  declare const ConnectorSpec: z.ZodObject<{
902
916
  key: z.ZodOptional<z.ZodString>;
903
917
  name: z.ZodOptional<z.ZodString>;
904
- appUri: z.ZodOptional<z.ZodString>;
905
918
  logoUri: z.ZodOptional<z.ZodString>;
906
- apiDocsUri: z.ZodOptional<z.ZodString>;
907
919
  api: z.ZodOptional<z.ZodObject<{
908
920
  type: z.ZodEnum<{
909
921
  openapi: "openapi";
@@ -3170,6 +3182,7 @@ declare const BaseDataLinkTable: z.ZodObject<{
3170
3182
  createdAt: z.ZodOptional<z.ZodString>;
3171
3183
  updatedAt: z.ZodOptional<z.ZodString>;
3172
3184
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
3185
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
3173
3186
  integrationId: z.ZodOptional<z.ZodString>;
3174
3187
  archivedAt: z.ZodOptional<z.ZodString>;
3175
3188
  isCustomized: z.ZodOptional<z.ZodBoolean>;
@@ -3190,6 +3203,7 @@ declare const BaseAppEventType: z.ZodObject<{
3190
3203
  createdAt: z.ZodOptional<z.ZodString>;
3191
3204
  updatedAt: z.ZodOptional<z.ZodString>;
3192
3205
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
3206
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
3193
3207
  revision: z.ZodString;
3194
3208
  archivedAt: z.ZodOptional<z.ZodString>;
3195
3209
  webhookKey: z.ZodString;
@@ -3225,6 +3239,7 @@ declare const BaseAppDataSchema: z.ZodObject<{
3225
3239
  createdAt: z.ZodOptional<z.ZodString>;
3226
3240
  updatedAt: z.ZodOptional<z.ZodString>;
3227
3241
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
3242
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
3228
3243
  appDataSchemaRevision: z.ZodOptional<z.ZodString>;
3229
3244
  archivedAt: z.ZodOptional<z.ZodString>;
3230
3245
  isCustomized: z.ZodOptional<z.ZodBoolean>;
@@ -3344,6 +3359,7 @@ declare const FlowRunApiResponse: z.ZodObject<{
3344
3359
  revision: z.ZodOptional<z.ZodString>;
3345
3360
  archivedAt: z.ZodOptional<z.ZodString>;
3346
3361
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
3362
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
3347
3363
  isCustomized: z.ZodOptional<z.ZodBoolean>;
3348
3364
  flowRevision: z.ZodOptional<z.ZodString>;
3349
3365
  universalFlowRevision: z.ZodOptional<z.ZodString>;
@@ -3396,6 +3412,7 @@ declare const FlowRunApiResponse: z.ZodObject<{
3396
3412
  revision: z.ZodOptional<z.ZodString>;
3397
3413
  createdAt: z.ZodOptional<z.ZodString>;
3398
3414
  updatedAt: z.ZodOptional<z.ZodString>;
3415
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
3399
3416
  logoUri: z.ZodString;
3400
3417
  connectorId: z.ZodOptional<z.ZodString>;
3401
3418
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -3521,6 +3538,7 @@ declare const FindFlowRunsResponse: z.ZodObject<{
3521
3538
  revision: z.ZodOptional<z.ZodString>;
3522
3539
  archivedAt: z.ZodOptional<z.ZodString>;
3523
3540
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
3541
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
3524
3542
  isCustomized: z.ZodOptional<z.ZodBoolean>;
3525
3543
  flowRevision: z.ZodOptional<z.ZodString>;
3526
3544
  universalFlowRevision: z.ZodOptional<z.ZodString>;
@@ -3573,6 +3591,7 @@ declare const FindFlowRunsResponse: z.ZodObject<{
3573
3591
  revision: z.ZodOptional<z.ZodString>;
3574
3592
  createdAt: z.ZodOptional<z.ZodString>;
3575
3593
  updatedAt: z.ZodOptional<z.ZodString>;
3594
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
3576
3595
  logoUri: z.ZodString;
3577
3596
  connectorId: z.ZodOptional<z.ZodString>;
3578
3597
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -3674,6 +3693,7 @@ declare const FlowApiResponse: z.ZodObject<{
3674
3693
  revision: z.ZodOptional<z.ZodString>;
3675
3694
  archivedAt: z.ZodOptional<z.ZodString>;
3676
3695
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
3696
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
3677
3697
  isCustomized: z.ZodOptional<z.ZodBoolean>;
3678
3698
  flowRevision: z.ZodOptional<z.ZodString>;
3679
3699
  universalFlowRevision: z.ZodOptional<z.ZodString>;
@@ -3699,6 +3719,7 @@ declare const FlowApiResponse: z.ZodObject<{
3699
3719
  revision: z.ZodOptional<z.ZodString>;
3700
3720
  createdAt: z.ZodOptional<z.ZodString>;
3701
3721
  updatedAt: z.ZodOptional<z.ZodString>;
3722
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
3702
3723
  logoUri: z.ZodString;
3703
3724
  connectorId: z.ZodOptional<z.ZodString>;
3704
3725
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -3782,6 +3803,7 @@ declare const FlowApiResponse: z.ZodObject<{
3782
3803
  revision: z.ZodOptional<z.ZodString>;
3783
3804
  archivedAt: z.ZodOptional<z.ZodString>;
3784
3805
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
3806
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
3785
3807
  isCustomized: z.ZodOptional<z.ZodBoolean>;
3786
3808
  flowRevision: z.ZodOptional<z.ZodString>;
3787
3809
  universalFlowRevision: z.ZodOptional<z.ZodString>;
@@ -3808,6 +3830,7 @@ declare const FlowApiResponse: z.ZodObject<{
3808
3830
  revision: z.ZodOptional<z.ZodString>;
3809
3831
  createdAt: z.ZodOptional<z.ZodString>;
3810
3832
  updatedAt: z.ZodOptional<z.ZodString>;
3833
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
3811
3834
  logoUri: z.ZodString;
3812
3835
  connectorId: z.ZodOptional<z.ZodString>;
3813
3836
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -3931,6 +3954,7 @@ declare const FlowApiResponse: z.ZodObject<{
3931
3954
  revision: z.ZodOptional<z.ZodString>;
3932
3955
  archivedAt: z.ZodOptional<z.ZodString>;
3933
3956
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
3957
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
3934
3958
  isCustomized: z.ZodOptional<z.ZodBoolean>;
3935
3959
  flowRevision: z.ZodOptional<z.ZodString>;
3936
3960
  universalFlowRevision: z.ZodOptional<z.ZodString>;
@@ -3965,6 +3989,7 @@ declare const FindFlowsQuery: z.ZodObject<{
3965
3989
  }>>;
3966
3990
  universalParentId: z.ZodOptional<z.ZodString>;
3967
3991
  tenantId: z.ZodOptional<z.ZodString>;
3992
+ externalAppId: z.ZodOptional<z.ZodString>;
3968
3993
  flowId: z.ZodOptional<z.ZodString>;
3969
3994
  universalFlowId: z.ZodOptional<z.ZodString>;
3970
3995
  }, z.core.$strip>;
@@ -4124,6 +4149,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
4124
4149
  updatedAt: z.ZodOptional<z.ZodString>;
4125
4150
  archivedAt: z.ZodOptional<z.ZodString>;
4126
4151
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
4152
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
4127
4153
  dataSourceRevision: z.ZodOptional<z.ZodString>;
4128
4154
  universalDataSourceRevision: z.ZodOptional<z.ZodString>;
4129
4155
  defaultCollectionKey: z.ZodOptional<z.ZodString>;
@@ -4254,6 +4280,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
4254
4280
  revision: z.ZodOptional<z.ZodString>;
4255
4281
  createdAt: z.ZodOptional<z.ZodString>;
4256
4282
  updatedAt: z.ZodOptional<z.ZodString>;
4283
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
4257
4284
  logoUri: z.ZodString;
4258
4285
  connectorId: z.ZodOptional<z.ZodString>;
4259
4286
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -4313,6 +4340,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
4313
4340
  updatedAt: z.ZodOptional<z.ZodString>;
4314
4341
  archivedAt: z.ZodOptional<z.ZodString>;
4315
4342
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
4343
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
4316
4344
  dataSourceRevision: z.ZodOptional<z.ZodString>;
4317
4345
  universalDataSourceRevision: z.ZodOptional<z.ZodString>;
4318
4346
  defaultCollectionKey: z.ZodOptional<z.ZodString>;
@@ -4444,6 +4472,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
4444
4472
  revision: z.ZodOptional<z.ZodString>;
4445
4473
  createdAt: z.ZodOptional<z.ZodString>;
4446
4474
  updatedAt: z.ZodOptional<z.ZodString>;
4475
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
4447
4476
  logoUri: z.ZodString;
4448
4477
  connectorId: z.ZodOptional<z.ZodString>;
4449
4478
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -4543,6 +4572,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
4543
4572
  updatedAt: z.ZodOptional<z.ZodString>;
4544
4573
  archivedAt: z.ZodOptional<z.ZodString>;
4545
4574
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
4575
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
4546
4576
  dataSourceRevision: z.ZodOptional<z.ZodString>;
4547
4577
  universalDataSourceRevision: z.ZodOptional<z.ZodString>;
4548
4578
  defaultCollectionKey: z.ZodOptional<z.ZodString>;
@@ -4684,6 +4714,7 @@ declare const FindDataSourcesQuery: z.ZodObject<{
4684
4714
  }>>;
4685
4715
  universalParentId: z.ZodOptional<z.ZodString>;
4686
4716
  tenantId: z.ZodOptional<z.ZodString>;
4717
+ externalAppId: z.ZodOptional<z.ZodString>;
4687
4718
  dataSourceId: z.ZodOptional<z.ZodString>;
4688
4719
  universalDataSourceId: z.ZodOptional<z.ZodString>;
4689
4720
  }, z.core.$strip>;
@@ -4818,6 +4849,7 @@ declare const UpdateIntegrationRequest: z.ZodObject<{
4818
4849
  }, z.core.$strip>;
4819
4850
  type UpdateIntegrationRequest = z.infer<typeof UpdateIntegrationRequest>;
4820
4851
  declare const FindIntegrationsQuery: z.ZodObject<{
4852
+ appUuid: z.ZodOptional<z.ZodString>;
4821
4853
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
4822
4854
  cursor: z.ZodOptional<z.ZodString>;
4823
4855
  search: z.ZodOptional<z.ZodString>;
@@ -4840,6 +4872,7 @@ declare const IntegrationApiResponse: z.ZodObject<{
4840
4872
  revision: z.ZodOptional<z.ZodString>;
4841
4873
  createdAt: z.ZodOptional<z.ZodString>;
4842
4874
  updatedAt: z.ZodOptional<z.ZodString>;
4875
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
4843
4876
  logoUri: z.ZodString;
4844
4877
  connectorId: z.ZodOptional<z.ZodString>;
4845
4878
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -4950,6 +4983,7 @@ declare const PackageApiResponse: z.ZodObject<{
4950
4983
  updatedAt: z.ZodOptional<z.ZodString>;
4951
4984
  archivedAt: z.ZodOptional<z.ZodString>;
4952
4985
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
4986
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
4953
4987
  uuid: z.ZodOptional<z.ZodString>;
4954
4988
  description: z.ZodOptional<z.ZodString>;
4955
4989
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -4984,6 +5018,7 @@ declare const PackageApiResponse: z.ZodObject<{
4984
5018
  updatedAt: z.ZodOptional<z.ZodString>;
4985
5019
  archivedAt: z.ZodOptional<z.ZodString>;
4986
5020
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
5021
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
4987
5022
  uuid: z.ZodOptional<z.ZodString>;
4988
5023
  description: z.ZodOptional<z.ZodString>;
4989
5024
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
@@ -5018,6 +5053,7 @@ declare const PackageApiResponse: z.ZodObject<{
5018
5053
  revision: z.ZodOptional<z.ZodString>;
5019
5054
  createdAt: z.ZodOptional<z.ZodString>;
5020
5055
  updatedAt: z.ZodOptional<z.ZodString>;
5056
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
5021
5057
  logoUri: z.ZodString;
5022
5058
  connectorId: z.ZodOptional<z.ZodString>;
5023
5059
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -5174,6 +5210,7 @@ declare const FieldMappingApiResponse: z.ZodObject<{
5174
5210
  updatedAt: z.ZodOptional<z.ZodString>;
5175
5211
  archivedAt: z.ZodOptional<z.ZodString>;
5176
5212
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
5213
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
5177
5214
  fieldMappingRevision: z.ZodOptional<z.ZodString>;
5178
5215
  universalFieldMappingRevision: z.ZodOptional<z.ZodString>;
5179
5216
  dataSourceInstanceId: z.ZodOptional<z.ZodString>;
@@ -5195,6 +5232,7 @@ declare const FieldMappingApiResponse: z.ZodObject<{
5195
5232
  revision: z.ZodOptional<z.ZodString>;
5196
5233
  createdAt: z.ZodOptional<z.ZodString>;
5197
5234
  updatedAt: z.ZodOptional<z.ZodString>;
5235
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
5198
5236
  logoUri: z.ZodString;
5199
5237
  connectorId: z.ZodOptional<z.ZodString>;
5200
5238
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -5261,6 +5299,7 @@ declare const FieldMappingApiResponse: z.ZodObject<{
5261
5299
  updatedAt: z.ZodOptional<z.ZodString>;
5262
5300
  archivedAt: z.ZodOptional<z.ZodString>;
5263
5301
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
5302
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
5264
5303
  fieldMappingRevision: z.ZodOptional<z.ZodString>;
5265
5304
  universalFieldMappingRevision: z.ZodOptional<z.ZodString>;
5266
5305
  dataSourceInstanceId: z.ZodOptional<z.ZodString>;
@@ -5283,6 +5322,7 @@ declare const FieldMappingApiResponse: z.ZodObject<{
5283
5322
  revision: z.ZodOptional<z.ZodString>;
5284
5323
  createdAt: z.ZodOptional<z.ZodString>;
5285
5324
  updatedAt: z.ZodOptional<z.ZodString>;
5325
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
5286
5326
  logoUri: z.ZodString;
5287
5327
  connectorId: z.ZodOptional<z.ZodString>;
5288
5328
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -5389,6 +5429,7 @@ declare const FieldMappingApiResponse: z.ZodObject<{
5389
5429
  updatedAt: z.ZodOptional<z.ZodString>;
5390
5430
  archivedAt: z.ZodOptional<z.ZodString>;
5391
5431
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
5432
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
5392
5433
  fieldMappingRevision: z.ZodOptional<z.ZodString>;
5393
5434
  universalFieldMappingRevision: z.ZodOptional<z.ZodString>;
5394
5435
  dataSourceInstanceId: z.ZodOptional<z.ZodString>;
@@ -5419,6 +5460,7 @@ declare const FindFieldMappingsQuery: z.ZodObject<{
5419
5460
  }>>;
5420
5461
  universalParentId: z.ZodOptional<z.ZodString>;
5421
5462
  tenantId: z.ZodOptional<z.ZodString>;
5463
+ externalAppId: z.ZodOptional<z.ZodString>;
5422
5464
  fieldMappingId: z.ZodOptional<z.ZodString>;
5423
5465
  universalFieldMappingId: z.ZodOptional<z.ZodString>;
5424
5466
  }, z.core.$strip>;
@@ -5546,6 +5588,7 @@ declare const DataLinkTableApiResponse: z.ZodObject<{
5546
5588
  createdAt: z.ZodOptional<z.ZodString>;
5547
5589
  updatedAt: z.ZodOptional<z.ZodString>;
5548
5590
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
5591
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
5549
5592
  integrationId: z.ZodOptional<z.ZodString>;
5550
5593
  archivedAt: z.ZodOptional<z.ZodString>;
5551
5594
  isCustomized: z.ZodOptional<z.ZodBoolean>;
@@ -5658,6 +5701,7 @@ declare const AppEventSubscriptionApiResponse: z.ZodObject<{
5658
5701
  createdAt: z.ZodOptional<z.ZodString>;
5659
5702
  updatedAt: z.ZodOptional<z.ZodString>;
5660
5703
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
5704
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
5661
5705
  revision: z.ZodString;
5662
5706
  appEventTypeId: z.ZodString;
5663
5707
  instanceKey: z.ZodOptional<z.ZodString>;
@@ -5687,6 +5731,7 @@ declare const AppEventSubscriptionApiResponse: z.ZodObject<{
5687
5731
  createdAt: z.ZodOptional<z.ZodString>;
5688
5732
  updatedAt: z.ZodOptional<z.ZodString>;
5689
5733
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
5734
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
5690
5735
  revision: z.ZodString;
5691
5736
  archivedAt: z.ZodOptional<z.ZodString>;
5692
5737
  webhookKey: z.ZodString;
@@ -5762,6 +5807,7 @@ declare const AppDataSchemaApiResponse: z.ZodObject<{
5762
5807
  createdAt: z.ZodOptional<z.ZodString>;
5763
5808
  updatedAt: z.ZodOptional<z.ZodString>;
5764
5809
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
5810
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
5765
5811
  appDataSchemaRevision: z.ZodOptional<z.ZodString>;
5766
5812
  archivedAt: z.ZodOptional<z.ZodString>;
5767
5813
  isCustomized: z.ZodOptional<z.ZodBoolean>;
@@ -5884,6 +5930,7 @@ declare const ExternalEventSubscriptionApiResponse: z.ZodObject<{
5884
5930
  revision: z.ZodOptional<z.ZodString>;
5885
5931
  createdAt: z.ZodOptional<z.ZodString>;
5886
5932
  updatedAt: z.ZodOptional<z.ZodString>;
5933
+ isReadOnly: z.ZodOptional<z.ZodBoolean>;
5887
5934
  logoUri: z.ZodString;
5888
5935
  connectorId: z.ZodOptional<z.ZodString>;
5889
5936
  connectorVersion: z.ZodOptional<z.ZodString>;
@@ -6130,6 +6177,7 @@ declare class ConnectionAccessor {
6130
6177
  revision?: string | undefined;
6131
6178
  createdAt?: string | undefined;
6132
6179
  updatedAt?: string | undefined;
6180
+ isReadOnly?: boolean | undefined;
6133
6181
  connectorId?: string | undefined;
6134
6182
  connectorVersion?: string | undefined;
6135
6183
  oAuthCallbackUri?: string | undefined;
@@ -6353,6 +6401,7 @@ declare class IntegrationAccessor extends ElementAccessor<IntegrationApiResponse
6353
6401
  revision?: string | undefined;
6354
6402
  createdAt?: string | undefined;
6355
6403
  updatedAt?: string | undefined;
6404
+ isReadOnly?: boolean | undefined;
6356
6405
  connectorId?: string | undefined;
6357
6406
  connectorVersion?: string | undefined;
6358
6407
  oAuthCallbackUri?: string | undefined;
package/dist/bundle.js CHANGED
@@ -7898,7 +7898,7 @@
7898
7898
  const version = {
7899
7899
  major: 4,
7900
7900
  minor: 3,
7901
- patch: 5,
7901
+ patch: 6,
7902
7902
  };
7903
7903
 
7904
7904
  const $ZodType = /*@__PURE__*/ $constructor("$ZodType", (inst, def) => {
@@ -9260,11 +9260,9 @@
9260
9260
  if (keyResult instanceof Promise) {
9261
9261
  throw new Error("Async schemas not supported in object keys currently");
9262
9262
  }
9263
- // Numeric string fallback: if key failed with "expected number", retry with Number(key)
9264
- const checkNumericKey = typeof key === "string" &&
9265
- number$2.test(key) &&
9266
- keyResult.issues.length &&
9267
- keyResult.issues.some((iss) => iss.code === "invalid_type" && iss.expected === "number");
9263
+ // Numeric string fallback: if key is a numeric string and failed, retry with Number(key)
9264
+ // This handles z.number(), z.literal([1, 2, 3]), and unions containing numeric literals
9265
+ const checkNumericKey = typeof key === "string" && number$2.test(key) && keyResult.issues.length;
9268
9266
  if (checkNumericKey) {
9269
9267
  const retryResult = def.keyType._zod.run({ value: Number(key), issues: [] }, ctx);
9270
9268
  if (retryResult instanceof Promise) {
@@ -16917,7 +16915,7 @@
16917
16915
  }
16918
16916
  }
16919
16917
  // When ref was extracted to $defs, remove properties that match the definition
16920
- if (refSchema.$ref) {
16918
+ if (refSchema.$ref && refSeen.def) {
16921
16919
  for (const key in schema) {
16922
16920
  if (key === "$ref" || key === "allOf")
16923
16921
  continue;
@@ -22189,35 +22187,64 @@
22189
22187
  WorkspaceElementDependencyType["Parent"] = "PARENT";
22190
22188
  })(WorkspaceElementDependencyType || (WorkspaceElementDependencyType = {}));
22191
22189
  const BaseWorkspaceElement = object({
22192
- id: string$1(),
22193
- name: string$1(),
22190
+ id: string$1().describe('Internal database ID of the element. Assigned by the API; unique per element.'),
22191
+ name: string$1().describe('Display name of the workspace element.'),
22194
22192
  });
22195
22193
  const BaseMembraneInterfaceEditableProperties = object({
22196
- uuid: string$1().optional(),
22197
- key: string$1().optional(),
22198
- name: string$1().optional(),
22199
- description: string$1().optional(),
22200
- meta: record(string$1(), any()).optional(),
22194
+ uuid: string$1()
22195
+ .optional()
22196
+ .describe('Stable unique identifier (UUID). Can be provided on create; otherwise generated. Must be unique across elements of this type.'),
22197
+ key: string$1()
22198
+ .optional()
22199
+ .describe('Stable key for referencing the element (e.g. in selectors). Unique per (parent, integration) scope. Generated from name if not provided on create.'),
22200
+ name: string$1().optional().describe('Display name. Optional on create; used to generate key when key is omitted.'),
22201
+ description: string$1().optional().describe('Optional human-readable description.'),
22202
+ meta: record(string$1(), any()).optional().describe('Optional key-value metadata.'),
22201
22203
  });
22202
22204
  const BaseMembraneInterfaceReadOnlyProperties = object({
22203
- name: string$1(),
22204
- state: _enum(WorkspaceElementState).optional(),
22205
- errors: array(ErrorDataSchema).optional(),
22206
- revision: string$1().optional(),
22207
- createdAt: string$1().optional(),
22208
- updatedAt: string$1().optional(),
22209
- archivedAt: string$1().optional(),
22210
- isDeactivated: boolean$1().optional(),
22205
+ name: string$1().describe('Display name. Always present in API responses (filled by API if not set on create).'),
22206
+ state: _enum(WorkspaceElementState)
22207
+ .optional()
22208
+ .describe('Current lifecycle or health state (e.g. READY, SETUP_FAILED, CONFIGURATION_ERROR). Set by the engine during setup and validation.'),
22209
+ errors: array(ErrorDataSchema).optional().describe('Validation or setup errors when state is not READY.'),
22210
+ revision: string$1()
22211
+ .optional()
22212
+ .describe('Opaque revision token; changes on each update. Used for optimistic concurrency.'),
22213
+ createdAt: string$1().optional().describe('ISO date when the element was created.'),
22214
+ updatedAt: string$1().optional().describe('ISO date when the element was last updated.'),
22215
+ archivedAt: string$1()
22216
+ .optional()
22217
+ .describe('When set, the element is archived (soft-deleted). Archived elements cannot be patched.'),
22218
+ isDeactivated: boolean$1()
22219
+ .optional()
22220
+ .describe('When true, setup is skipped and the element is treated as inactive (e.g. when dependencies are deactivated or the element is archived).'),
22221
+ isReadOnly: boolean$1()
22222
+ .optional()
22223
+ .describe('When true, the element cannot be modified (e.g. published package elements or elements from another workspace).'),
22211
22224
  });
22212
22225
  const BaseMembraneInterface = BaseWorkspaceElement.merge(BaseMembraneInterfaceEditableProperties).merge(BaseMembraneInterfaceReadOnlyProperties);
22213
22226
  const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
22214
- integrationId: string$1().optional(),
22215
- integrationUuid: string$1().optional(),
22216
- parentId: string$1().optional(),
22217
- parentUuid: string$1().optional(),
22218
- connectionId: string$1().optional(),
22219
- instanceKey: string$1().optional(),
22220
- isUniversal: boolean$1().optional(),
22227
+ integrationId: string$1()
22228
+ .optional()
22229
+ .describe('Internal ID of the integration this element belongs to. Omit for universal elements; set for integration-specific elements. Uniqueness of key is scoped per integration.'),
22230
+ integrationUuid: string$1()
22231
+ .optional()
22232
+ .describe('UUID of the integration; alternative to integrationId when creating from export. Resolved to integrationId by the API.'),
22233
+ parentId: string$1()
22234
+ .optional()
22235
+ .describe('Internal ID of the parent workspace element. Used for hierarchy (e.g. integration-level under universal). Child key uniqueness is scoped by parent and integration.'),
22236
+ parentUuid: string$1()
22237
+ .optional()
22238
+ .describe('UUID of the parent element; alternative to parentId when creating (e.g. from export). Resolved to parentId by the API.'),
22239
+ connectionId: string$1()
22240
+ .optional()
22241
+ .describe('Connection ID. Used when filtering by connection in list/selector queries, or when creating or identifying connection-level instances.'),
22242
+ instanceKey: string$1()
22243
+ .optional()
22244
+ .describe('Key identifying a specific connection-level instance when multiple instances exist per (element, connection). Used in selector queries and when creating instances.'),
22245
+ isUniversal: boolean$1()
22246
+ .optional()
22247
+ .describe('When true, the element is universal (shared across all integrations). Requires universal-element access. Omit or false for integration-specific elements.'),
22221
22248
  });
22222
22249
  const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
22223
22250
  isCustomized: boolean$1().optional(),
@@ -22285,6 +22312,12 @@
22285
22312
  isFlag: true,
22286
22313
  }),
22287
22314
  layer: MembraneElementLayer.optional(),
22315
+ externalAppId: string$1()
22316
+ .optional()
22317
+ .meta({
22318
+ filterTitle: 'External App',
22319
+ referenceElementType: WorkspaceElementType.App,
22320
+ }),
22288
22321
  });
22289
22322
  BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
22290
22323
  const TenantLayerElement = object({
@@ -24600,7 +24633,9 @@
24600
24633
  redirectUri: string$1().optional(),
24601
24634
  customState: string$1().optional(),
24602
24635
  });
24603
- ConnectPayload.omit({ input: true, redirectUri: true });
24636
+ ConnectPayload.omit({ input: true, redirectUri: true }).extend({
24637
+ theme: _enum(['light', 'dark', 'auto']).optional(),
24638
+ });
24604
24639
 
24605
24640
  class UI {
24606
24641
  constructor(client) {
@@ -29119,6 +29154,35 @@
29119
29154
  }
29120
29155
  }
29121
29156
 
29157
+ const PlatformUserPermissionsSchema = object({
29158
+ isEngineAdmin: boolean$1(),
29159
+ isPlatformAdmin: boolean$1(),
29160
+ platformUserId: string$1().optional(),
29161
+ });
29162
+ const OrgPermissionsSchema = object({
29163
+ orgId: string$1(),
29164
+ role: _enum(['admin', 'member']).optional(),
29165
+ canRead: boolean$1(),
29166
+ canWrite: boolean$1(),
29167
+ });
29168
+ const WorkspacePermissionsSchema = object({
29169
+ workspaceId: string$1().optional(),
29170
+ isWorkspaceManager: boolean$1(),
29171
+ scopes: array(string$1()),
29172
+ });
29173
+ const TenantPermissionsSchema = object({
29174
+ tenantId: string$1().optional(),
29175
+ workspaceId: string$1().optional(),
29176
+ canRead: boolean$1(),
29177
+ canWrite: boolean$1(),
29178
+ });
29179
+ object({
29180
+ platformUser: PlatformUserPermissionsSchema,
29181
+ org: OrgPermissionsSchema.optional(),
29182
+ workspace: WorkspacePermissionsSchema.optional(),
29183
+ tenant: TenantPermissionsSchema.optional(),
29184
+ });
29185
+
29122
29186
  class MembraneClient extends MembraneApiClient {
29123
29187
  constructor(options) {
29124
29188
  super(options);