@membranehq/sdk 0.7.3 → 0.7.4

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 (32) hide show
  1. package/dist/bundle.d.ts +1180 -1049
  2. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +9 -20
  3. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +452 -453
  4. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +43 -69
  5. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +208 -110
  6. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +6 -6
  7. package/dist/dts/workspace-elements/api/flows-api.d.ts +583 -497
  8. package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +2 -2
  9. package/dist/dts/workspace-elements/base/data-sources/index.d.ts +153 -2
  10. package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +1 -1
  11. package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +191 -1
  12. package/dist/dts/workspace-elements/base/flow-runs/types.d.ts +2 -2
  13. package/dist/dts/workspace-elements/base/flows/index.d.ts +300 -1
  14. package/dist/dts/workspace-elements/base/flows/nodes/base.d.ts +79 -1
  15. package/dist/dts/workspace-elements/base/flows/nodes/index.d.ts +1 -1
  16. package/dist/index.browser.d.mts +1749 -1375
  17. package/dist/index.browser.d.ts +1749 -1375
  18. package/dist/index.browser.js +128 -133
  19. package/dist/index.browser.js.map +1 -1
  20. package/dist/index.browser.mjs +123 -132
  21. package/dist/index.browser.mjs.map +1 -1
  22. package/dist/index.node.d.mts +1749 -1375
  23. package/dist/index.node.d.ts +1749 -1375
  24. package/dist/index.node.js +128 -133
  25. package/dist/index.node.js.map +1 -1
  26. package/dist/index.node.mjs +123 -132
  27. package/dist/index.node.mjs.map +1 -1
  28. package/package.json +1 -1
  29. package/dist/dts/workspace-elements/base/data-sources/constants.d.ts +0 -4
  30. package/dist/dts/workspace-elements/base/data-sources/types.d.ts +0 -109
  31. package/dist/dts/workspace-elements/base/field-mappings/types.d.ts +0 -136
  32. package/dist/dts/workspace-elements/base/flows/types.d.ts +0 -248
package/dist/bundle.d.ts CHANGED
@@ -43,25 +43,6 @@ declare const PaginationQuery: z.ZodObject<{
43
43
  cursor?: string | undefined;
44
44
  }>;
45
45
  type PaginationQuery = z.infer<typeof PaginationQuery>;
46
- declare const CommonListElementsQuery: z.ZodObject<{
47
- search: z.ZodOptional<z.ZodString>;
48
- } & {
49
- limit: z.ZodOptional<z.ZodNumber>;
50
- cursor: z.ZodOptional<z.ZodString>;
51
- } & {
52
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
53
- }, "strip", z.ZodTypeAny, {
54
- search?: string | undefined;
55
- includeArchived?: boolean | undefined;
56
- limit?: number | undefined;
57
- cursor?: string | undefined;
58
- }, {
59
- search?: string | undefined;
60
- includeArchived?: unknown;
61
- limit?: number | undefined;
62
- cursor?: string | undefined;
63
- }>;
64
- type CommonListElementsQuery = z.infer<typeof CommonListElementsQuery>;
65
46
  declare const CommonInstancesListQuery: z.ZodObject<{
66
47
  search: z.ZodOptional<z.ZodString>;
67
48
  } & {
@@ -4246,7 +4227,13 @@ declare const DataSourceInstanceApiResponse: z.ZodObject<{
4246
4227
  description: z.ZodOptional<z.ZodString>;
4247
4228
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
4248
4229
  integrationId: z.ZodOptional<z.ZodString>;
4249
- parentId: z.ZodOptional<z.ZodString>;
4230
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
4231
+ udm: z.ZodOptional<z.ZodString>;
4232
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
4233
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
4234
+ collectionKey: z.ZodOptional<z.ZodString>;
4235
+ collectionParameters: z.ZodOptional<z.ZodAny>;
4236
+ defaultPath: z.ZodOptional<z.ZodString>;
4250
4237
  } & {
4251
4238
  name: z.ZodString;
4252
4239
  state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
@@ -4257,16 +4244,7 @@ declare const DataSourceInstanceApiResponse: z.ZodObject<{
4257
4244
  archivedAt: z.ZodOptional<z.ZodString>;
4258
4245
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
4259
4246
  isCustomized: z.ZodOptional<z.ZodBoolean>;
4260
- } & {
4261
- publishedRevision: z.ZodOptional<z.ZodString>;
4262
- universalDataSourceId: z.ZodOptional<z.ZodString>;
4263
4247
  universalDataSourceRevision: z.ZodOptional<z.ZodString>;
4264
- udm: z.ZodOptional<z.ZodString>;
4265
- pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
4266
- fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
4267
- collectionKey: z.ZodOptional<z.ZodString>;
4268
- collectionParameters: z.ZodOptional<z.ZodAny>;
4269
- defaultPath: z.ZodOptional<z.ZodString>;
4270
4248
  }, "strip", z.ZodTypeAny, {
4271
4249
  id: string;
4272
4250
  name: string;
@@ -4282,9 +4260,7 @@ declare const DataSourceInstanceApiResponse: z.ZodObject<{
4282
4260
  archivedAt?: string | undefined;
4283
4261
  isDeactivated?: boolean | undefined;
4284
4262
  integrationId?: string | undefined;
4285
- parentId?: string | undefined;
4286
4263
  isCustomized?: boolean | undefined;
4287
- publishedRevision?: string | undefined;
4288
4264
  udm?: string | undefined;
4289
4265
  universalDataSourceId?: string | undefined;
4290
4266
  collectionKey?: string | undefined;
@@ -4308,9 +4284,7 @@ declare const DataSourceInstanceApiResponse: z.ZodObject<{
4308
4284
  archivedAt?: string | undefined;
4309
4285
  isDeactivated?: boolean | undefined;
4310
4286
  integrationId?: string | undefined;
4311
- parentId?: string | undefined;
4312
4287
  isCustomized?: boolean | undefined;
4313
- publishedRevision?: string | undefined;
4314
4288
  udm?: string | undefined;
4315
4289
  universalDataSourceId?: string | undefined;
4316
4290
  collectionKey?: string | undefined;
@@ -4546,7 +4520,6 @@ declare const DataSourceInstanceApiResponse: z.ZodObject<{
4546
4520
  isDeactivated?: boolean | undefined;
4547
4521
  isCustomized?: boolean | undefined;
4548
4522
  instanceKey?: string | undefined;
4549
- dataSourceId?: string | undefined;
4550
4523
  udm?: string | undefined;
4551
4524
  collectionSpec?: {
4552
4525
  type: "collection";
@@ -4696,6 +4669,7 @@ declare const DataSourceInstanceApiResponse: z.ZodObject<{
4696
4669
  lastActiveAt?: string | undefined;
4697
4670
  isBillable?: boolean | undefined;
4698
4671
  } | undefined;
4672
+ dataSourceId?: string | undefined;
4699
4673
  dataSourceRevision?: string | undefined;
4700
4674
  universalDataSourceId?: string | undefined;
4701
4675
  collectionKey?: string | undefined;
@@ -4720,9 +4694,7 @@ declare const DataSourceInstanceApiResponse: z.ZodObject<{
4720
4694
  archivedAt?: string | undefined;
4721
4695
  isDeactivated?: boolean | undefined;
4722
4696
  integrationId?: string | undefined;
4723
- parentId?: string | undefined;
4724
4697
  isCustomized?: boolean | undefined;
4725
- publishedRevision?: string | undefined;
4726
4698
  udm?: string | undefined;
4727
4699
  universalDataSourceId?: string | undefined;
4728
4700
  collectionKey?: string | undefined;
@@ -4804,7 +4776,6 @@ declare const DataSourceInstanceApiResponse: z.ZodObject<{
4804
4776
  isDeactivated?: boolean | undefined;
4805
4777
  isCustomized?: boolean | undefined;
4806
4778
  instanceKey?: string | undefined;
4807
- dataSourceId?: string | undefined;
4808
4779
  udm?: string | undefined;
4809
4780
  collectionSpec?: {
4810
4781
  type: "collection";
@@ -4954,6 +4925,7 @@ declare const DataSourceInstanceApiResponse: z.ZodObject<{
4954
4925
  lastActiveAt?: string | undefined;
4955
4926
  isBillable?: boolean | undefined;
4956
4927
  } | undefined;
4928
+ dataSourceId?: string | undefined;
4957
4929
  dataSourceRevision?: string | undefined;
4958
4930
  universalDataSourceId?: string | undefined;
4959
4931
  collectionKey?: string | undefined;
@@ -4978,9 +4950,7 @@ declare const DataSourceInstanceApiResponse: z.ZodObject<{
4978
4950
  archivedAt?: string | undefined;
4979
4951
  isDeactivated?: boolean | undefined;
4980
4952
  integrationId?: string | undefined;
4981
- parentId?: string | undefined;
4982
4953
  isCustomized?: boolean | undefined;
4983
- publishedRevision?: string | undefined;
4984
4954
  udm?: string | undefined;
4985
4955
  universalDataSourceId?: string | undefined;
4986
4956
  collectionKey?: string | undefined;
@@ -4994,412 +4964,90 @@ declare const DataSourceInstanceApiResponse: z.ZodObject<{
4994
4964
  type DataSourceInstanceApiResponse = z.infer<typeof DataSourceInstanceApiResponse>;
4995
4965
  type DataSourceInstance = DataSourceInstanceApiResponse;
4996
4966
 
4997
- declare const ListFlowsForIntegrationQuery: z.ZodObject<{
4998
- universalFlowId: z.ZodOptional<z.ZodString>;
4999
- } & {
5000
- search: z.ZodOptional<z.ZodString>;
5001
- } & {
5002
- limit: z.ZodOptional<z.ZodNumber>;
5003
- cursor: z.ZodOptional<z.ZodString>;
5004
- } & {
5005
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
5006
- }, "strip", z.ZodTypeAny, {
5007
- search?: string | undefined;
5008
- includeArchived?: boolean | undefined;
5009
- limit?: number | undefined;
5010
- cursor?: string | undefined;
5011
- universalFlowId?: string | undefined;
5012
- }, {
5013
- search?: string | undefined;
5014
- includeArchived?: unknown;
5015
- limit?: number | undefined;
5016
- cursor?: string | undefined;
5017
- universalFlowId?: string | undefined;
5018
- }>;
5019
- type ListFlowsForIntegrationQuery = z.infer<typeof ListFlowsForIntegrationQuery>;
5020
- declare const FindFlowsQuery: z.ZodObject<{
5021
- universalFlowId: z.ZodOptional<z.ZodString>;
5022
- } & {
5023
- search: z.ZodOptional<z.ZodString>;
5024
- } & {
5025
- limit: z.ZodOptional<z.ZodNumber>;
5026
- cursor: z.ZodOptional<z.ZodString>;
5027
- } & {
5028
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
5029
- } & {
5030
- integrationId: z.ZodOptional<z.ZodString>;
5031
- }, "strip", z.ZodTypeAny, {
5032
- search?: string | undefined;
5033
- integrationId?: string | undefined;
5034
- includeArchived?: boolean | undefined;
5035
- limit?: number | undefined;
5036
- cursor?: string | undefined;
5037
- universalFlowId?: string | undefined;
5038
- }, {
5039
- search?: string | undefined;
5040
- integrationId?: string | undefined;
5041
- includeArchived?: unknown;
5042
- limit?: number | undefined;
5043
- cursor?: string | undefined;
5044
- universalFlowId?: string | undefined;
5045
- }>;
5046
- type FindFlowsQuery = z.infer<typeof FindFlowsQuery>;
5047
- declare const CreateFlowRequest: z.ZodObject<{
5048
- key: z.ZodString;
5049
- name: z.ZodString;
4967
+ declare const FlowApiResponse: z.ZodObject<{
4968
+ id: z.ZodString;
4969
+ key: z.ZodOptional<z.ZodString>;
4970
+ uuid: z.ZodOptional<z.ZodString>;
4971
+ description: z.ZodOptional<z.ZodString>;
4972
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5050
4973
  integrationId: z.ZodOptional<z.ZodString>;
5051
- nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5052
- type: z.ZodString;
5053
- config: z.ZodOptional<z.ZodAny>;
5054
- ui: z.ZodOptional<z.ZodAny>;
5055
- links: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodType<{
5056
- key?: string | undefined;
5057
- filter?: any;
5058
- name?: string | undefined;
5059
- }, z.ZodTypeDef, {
5060
- key?: string | undefined;
5061
- filter?: any;
5062
- name?: string | undefined;
5063
- }>>, "many">>;
5064
- }, "strip", z.ZodTypeAny, {
5065
- type: string;
5066
- config?: any;
5067
- ui?: any;
5068
- links?: {
5069
- key?: string | undefined;
5070
- filter?: any;
5071
- name?: string | undefined;
5072
- }[] | undefined;
5073
- }, {
5074
- type: string;
5075
- config?: any;
5076
- ui?: any;
5077
- links?: {
5078
- key?: string | undefined;
5079
- filter?: any;
5080
- name?: string | undefined;
5081
- }[] | undefined;
5082
- }>>>;
4974
+ universalFlowId: z.ZodOptional<z.ZodString>;
5083
4975
  parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
5084
- autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
5085
- }, "strip", z.ZodTypeAny, {
5086
- key: string;
5087
- name: string;
5088
- integrationId?: string | undefined;
5089
- parametersSchema?: DataSchema | undefined;
5090
- nodes?: Record<string, {
5091
- type: string;
5092
- config?: any;
5093
- ui?: any;
5094
- links?: {
5095
- key?: string | undefined;
5096
- filter?: any;
5097
- name?: string | undefined;
5098
- }[] | undefined;
5099
- }> | undefined;
5100
- autoCreateInstances?: boolean | undefined;
5101
- }, {
5102
- key: string;
5103
- name: string;
5104
- integrationId?: string | undefined;
5105
- parametersSchema?: DataSchema | undefined;
5106
- nodes?: Record<string, {
5107
- type: string;
5108
- config?: any;
5109
- ui?: any;
5110
- links?: {
5111
- key?: string | undefined;
5112
- filter?: any;
5113
- name?: string | undefined;
5114
- }[] | undefined;
5115
- }> | undefined;
5116
- autoCreateInstances?: boolean | undefined;
5117
- }>;
5118
- type CreateFlowRequest = z.infer<typeof CreateFlowRequest>;
5119
- declare const UpdateFlowRequest: z.ZodObject<{
5120
- key: z.ZodString;
5121
- name: z.ZodString;
5122
- integrationId: z.ZodOptional<z.ZodString>;
5123
4976
  nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5124
- type: z.ZodString;
4977
+ type: z.ZodOptional<z.ZodString>;
4978
+ version: z.ZodOptional<z.ZodNumber>;
4979
+ name: z.ZodOptional<z.ZodString>;
4980
+ description: z.ZodOptional<z.ZodString>;
5125
4981
  config: z.ZodOptional<z.ZodAny>;
4982
+ concurrency: z.ZodOptional<z.ZodNumber>;
4983
+ onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
5126
4984
  ui: z.ZodOptional<z.ZodAny>;
5127
- links: z.ZodOptional<z.ZodArray<z.ZodLazy<z.ZodType<{
4985
+ inputSchema: z.ZodOptional<z.ZodAny>;
4986
+ outputSchema: z.ZodOptional<z.ZodAny>;
4987
+ outputExample: z.ZodOptional<z.ZodAny>;
4988
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
4989
+ key: z.ZodOptional<z.ZodString>;
4990
+ filter: z.ZodOptional<z.ZodAny>;
4991
+ name: z.ZodOptional<z.ZodString>;
4992
+ }, "strip", z.ZodTypeAny, {
5128
4993
  key?: string | undefined;
5129
4994
  filter?: any;
5130
4995
  name?: string | undefined;
5131
- }, z.ZodTypeDef, {
4996
+ }, {
5132
4997
  key?: string | undefined;
5133
4998
  filter?: any;
5134
4999
  name?: string | undefined;
5135
- }>>, "many">>;
5000
+ }>, "many">>;
5001
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
5136
5002
  }, "strip", z.ZodTypeAny, {
5137
- type: string;
5003
+ concurrency?: number | undefined;
5004
+ type?: string | undefined;
5005
+ name?: string | undefined;
5006
+ description?: string | undefined;
5007
+ isCustomized?: boolean | undefined;
5008
+ inputSchema?: any;
5138
5009
  config?: any;
5010
+ outputSchema?: any;
5011
+ version?: number | undefined;
5012
+ onError?: "stop" | "continue" | undefined;
5139
5013
  ui?: any;
5014
+ outputExample?: any;
5140
5015
  links?: {
5141
5016
  key?: string | undefined;
5142
5017
  filter?: any;
5143
5018
  name?: string | undefined;
5144
5019
  }[] | undefined;
5145
5020
  }, {
5146
- type: string;
5021
+ concurrency?: number | undefined;
5022
+ type?: string | undefined;
5023
+ name?: string | undefined;
5024
+ description?: string | undefined;
5025
+ isCustomized?: boolean | undefined;
5026
+ inputSchema?: any;
5147
5027
  config?: any;
5028
+ outputSchema?: any;
5029
+ version?: number | undefined;
5030
+ onError?: "stop" | "continue" | undefined;
5148
5031
  ui?: any;
5032
+ outputExample?: any;
5149
5033
  links?: {
5150
5034
  key?: string | undefined;
5151
5035
  filter?: any;
5152
5036
  name?: string | undefined;
5153
5037
  }[] | undefined;
5154
5038
  }>>>;
5155
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
5156
5039
  autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
5157
5040
  } & {
5041
+ name: z.ZodString;
5042
+ state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
5043
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
5044
+ revision: z.ZodOptional<z.ZodString>;
5045
+ createdAt: z.ZodOptional<z.ZodString>;
5046
+ updatedAt: z.ZodOptional<z.ZodString>;
5158
5047
  archivedAt: z.ZodOptional<z.ZodString>;
5159
- }, "strip", z.ZodTypeAny, {
5160
- key: string;
5161
- name: string;
5162
- archivedAt?: string | undefined;
5163
- integrationId?: string | undefined;
5164
- parametersSchema?: DataSchema | undefined;
5165
- nodes?: Record<string, {
5166
- type: string;
5167
- config?: any;
5168
- ui?: any;
5169
- links?: {
5170
- key?: string | undefined;
5171
- filter?: any;
5172
- name?: string | undefined;
5173
- }[] | undefined;
5174
- }> | undefined;
5175
- autoCreateInstances?: boolean | undefined;
5176
- }, {
5177
- key: string;
5178
- name: string;
5179
- archivedAt?: string | undefined;
5180
- integrationId?: string | undefined;
5181
- parametersSchema?: DataSchema | undefined;
5182
- nodes?: Record<string, {
5183
- type: string;
5184
- config?: any;
5185
- ui?: any;
5186
- links?: {
5187
- key?: string | undefined;
5188
- filter?: any;
5189
- name?: string | undefined;
5190
- }[] | undefined;
5191
- }> | undefined;
5192
- autoCreateInstances?: boolean | undefined;
5193
- }>;
5194
- type UpdateFlowRequest = z.infer<typeof UpdateFlowRequest>;
5195
- interface FlowSelector extends IntegrationSpecificElementSelector {
5196
- autoCreate?: boolean;
5197
- }
5198
- declare const ListFlowInstancesForConnectionQuery: z.ZodObject<{
5199
- flowId: z.ZodOptional<z.ZodString>;
5200
- flowKey: z.ZodOptional<z.ZodString>;
5201
- enabled: z.ZodOptional<z.ZodBoolean>;
5202
- } & {
5203
- search: z.ZodOptional<z.ZodString>;
5204
- } & {
5205
- limit: z.ZodOptional<z.ZodNumber>;
5206
- cursor: z.ZodOptional<z.ZodString>;
5207
- } & {
5208
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
5209
- } & {
5210
- userId: z.ZodOptional<z.ZodString>;
5211
- instanceKey: z.ZodOptional<z.ZodString>;
5212
- }, "strip", z.ZodTypeAny, {
5213
- search?: string | undefined;
5214
- includeArchived?: boolean | undefined;
5215
- limit?: number | undefined;
5216
- cursor?: string | undefined;
5217
- userId?: string | undefined;
5218
- instanceKey?: string | undefined;
5219
- flowId?: string | undefined;
5220
- enabled?: boolean | undefined;
5221
- flowKey?: string | undefined;
5222
- }, {
5223
- search?: string | undefined;
5224
- includeArchived?: unknown;
5225
- limit?: number | undefined;
5226
- cursor?: string | undefined;
5227
- userId?: string | undefined;
5228
- instanceKey?: string | undefined;
5229
- flowId?: string | undefined;
5230
- enabled?: boolean | undefined;
5231
- flowKey?: string | undefined;
5232
- }>;
5233
- type ListFlowInstancesForConnectionQuery = z.infer<typeof ListFlowInstancesForConnectionQuery>;
5234
- declare const FindFlowInstancesQuery: z.ZodObject<{
5235
- flowId: z.ZodOptional<z.ZodString>;
5236
- flowKey: z.ZodOptional<z.ZodString>;
5237
- enabled: z.ZodOptional<z.ZodBoolean>;
5238
- } & {
5239
- search: z.ZodOptional<z.ZodString>;
5240
- } & {
5241
- limit: z.ZodOptional<z.ZodNumber>;
5242
- cursor: z.ZodOptional<z.ZodString>;
5243
- } & {
5244
- includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
5245
- } & {
5246
- userId: z.ZodOptional<z.ZodString>;
5247
- instanceKey: z.ZodOptional<z.ZodString>;
5248
- } & {
5249
- connectionId: z.ZodOptional<z.ZodString>;
5250
- integrationId: z.ZodOptional<z.ZodString>;
5251
- integrationKey: z.ZodOptional<z.ZodString>;
5252
- }, "strip", z.ZodTypeAny, {
5253
- search?: string | undefined;
5254
- integrationId?: string | undefined;
5255
- includeArchived?: boolean | undefined;
5256
- limit?: number | undefined;
5257
- cursor?: string | undefined;
5258
- userId?: string | undefined;
5259
- instanceKey?: string | undefined;
5260
- connectionId?: string | undefined;
5261
- integrationKey?: string | undefined;
5262
- flowId?: string | undefined;
5263
- enabled?: boolean | undefined;
5264
- flowKey?: string | undefined;
5265
- }, {
5266
- search?: string | undefined;
5267
- integrationId?: string | undefined;
5268
- includeArchived?: unknown;
5269
- limit?: number | undefined;
5270
- cursor?: string | undefined;
5271
- userId?: string | undefined;
5272
- instanceKey?: string | undefined;
5273
- connectionId?: string | undefined;
5274
- integrationKey?: string | undefined;
5275
- flowId?: string | undefined;
5276
- enabled?: boolean | undefined;
5277
- flowKey?: string | undefined;
5278
- }>;
5279
- type FindFlowInstancesQuery = z.infer<typeof FindFlowInstancesQuery>;
5280
- interface FlowInstanceSelector extends ConnectionSelector, ElementInstanceSelector {
5281
- flowId?: string;
5282
- flowKey?: string;
5283
- instanceKey?: string;
5284
- autoUpdate?: boolean;
5285
- }
5286
- declare const ResetFlowInstanceOptions: z.ZodObject<{
5287
- name: z.ZodOptional<z.ZodBoolean>;
5288
- nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
5289
- allNodes: z.ZodOptional<z.ZodBoolean>;
5290
- }, "strip", z.ZodTypeAny, {
5291
- name?: boolean | undefined;
5292
- nodes?: Record<string, boolean> | undefined;
5293
- allNodes?: boolean | undefined;
5294
- }, {
5295
- name?: boolean | undefined;
5296
- nodes?: Record<string, boolean> | undefined;
5297
- allNodes?: boolean | undefined;
5298
- }>;
5299
- type ResetFlowInstanceOptions = z.infer<typeof ResetFlowInstanceOptions>;
5300
- declare const RunFlowOptions: z.ZodObject<{
5301
- nodeKey: z.ZodOptional<z.ZodString>;
5302
- input: z.ZodOptional<z.ZodAny>;
5303
- returnImmediately: z.ZodOptional<z.ZodBoolean>;
5304
- onUpdate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
5305
- }, "strip", z.ZodTypeAny, {
5306
- input?: any;
5307
- nodeKey?: string | undefined;
5308
- returnImmediately?: boolean | undefined;
5309
- onUpdate?: ((...args: unknown[]) => unknown) | undefined;
5310
- }, {
5311
- input?: any;
5312
- nodeKey?: string | undefined;
5313
- returnImmediately?: boolean | undefined;
5314
- onUpdate?: ((...args: unknown[]) => unknown) | undefined;
5315
- }>;
5316
- type RunFlowOptions = z.infer<typeof RunFlowOptions>;
5317
- declare const FlowApiResponse: z.ZodObject<{
5318
- id: z.ZodString;
5319
- key: z.ZodOptional<z.ZodString>;
5320
- uuid: z.ZodOptional<z.ZodString>;
5321
- description: z.ZodOptional<z.ZodString>;
5322
- meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5323
- integrationId: z.ZodOptional<z.ZodString>;
5324
- parentId: z.ZodOptional<z.ZodString>;
5325
- } & {
5326
- name: z.ZodString;
5327
- state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
5328
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
5329
- revision: z.ZodOptional<z.ZodString>;
5330
- createdAt: z.ZodOptional<z.ZodString>;
5331
- updatedAt: z.ZodOptional<z.ZodString>;
5332
- archivedAt: z.ZodOptional<z.ZodString>;
5333
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
5334
- isCustomized: z.ZodOptional<z.ZodBoolean>;
5335
- } & {
5336
- universalFlowId: z.ZodOptional<z.ZodString>;
5337
- universalFlowRevision: z.ZodOptional<z.ZodString>;
5338
- parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
5339
- nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5340
- type: z.ZodOptional<z.ZodString>;
5341
- version: z.ZodOptional<z.ZodNumber>;
5342
- name: z.ZodOptional<z.ZodString>;
5343
- description: z.ZodOptional<z.ZodString>;
5344
- config: z.ZodOptional<z.ZodAny>;
5345
- concurrency: z.ZodOptional<z.ZodNumber>;
5346
- onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
5347
- ui: z.ZodOptional<z.ZodAny>;
5348
- inputSchema: z.ZodOptional<z.ZodAny>;
5349
- outputSchema: z.ZodOptional<z.ZodAny>;
5350
- outputExample: z.ZodOptional<z.ZodAny>;
5351
- links: z.ZodOptional<z.ZodArray<z.ZodObject<{
5352
- key: z.ZodOptional<z.ZodString>;
5353
- filter: z.ZodOptional<z.ZodAny>;
5354
- name: z.ZodOptional<z.ZodString>;
5355
- }, "strip", z.ZodTypeAny, {
5356
- key?: string | undefined;
5357
- filter?: any;
5358
- name?: string | undefined;
5359
- }, {
5360
- key?: string | undefined;
5361
- filter?: any;
5362
- name?: string | undefined;
5363
- }>, "many">>;
5364
- isCustomized: z.ZodOptional<z.ZodBoolean>;
5365
- }, "strip", z.ZodTypeAny, {
5366
- concurrency?: number | undefined;
5367
- type?: string | undefined;
5368
- name?: string | undefined;
5369
- description?: string | undefined;
5370
- isCustomized?: boolean | undefined;
5371
- inputSchema?: any;
5372
- config?: any;
5373
- outputSchema?: any;
5374
- version?: number | undefined;
5375
- onError?: "stop" | "continue" | undefined;
5376
- ui?: any;
5377
- outputExample?: any;
5378
- links?: {
5379
- key?: string | undefined;
5380
- filter?: any;
5381
- name?: string | undefined;
5382
- }[] | undefined;
5383
- }, {
5384
- concurrency?: number | undefined;
5385
- type?: string | undefined;
5386
- name?: string | undefined;
5387
- description?: string | undefined;
5388
- isCustomized?: boolean | undefined;
5389
- inputSchema?: any;
5390
- config?: any;
5391
- outputSchema?: any;
5392
- version?: number | undefined;
5393
- onError?: "stop" | "continue" | undefined;
5394
- ui?: any;
5395
- outputExample?: any;
5396
- links?: {
5397
- key?: string | undefined;
5398
- filter?: any;
5399
- name?: string | undefined;
5400
- }[] | undefined;
5401
- }>>>;
5402
- autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
5048
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
5049
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
5050
+ universalFlowRevision: z.ZodOptional<z.ZodString>;
5403
5051
  } & {
5404
5052
  integration: z.ZodOptional<z.ZodObject<{
5405
5053
  id: z.ZodString;
@@ -5744,7 +5392,6 @@ declare const FlowApiResponse: z.ZodObject<{
5744
5392
  archivedAt?: string | undefined;
5745
5393
  isDeactivated?: boolean | undefined;
5746
5394
  integrationId?: string | undefined;
5747
- parentId?: string | undefined;
5748
5395
  isCustomized?: boolean | undefined;
5749
5396
  parametersSchema?: DataSchema | undefined;
5750
5397
  appliedToIntegrations?: {
@@ -5790,7 +5437,6 @@ declare const FlowApiResponse: z.ZodObject<{
5790
5437
  }[] | undefined;
5791
5438
  dependencies?: any[] | undefined;
5792
5439
  universalFlowId?: string | undefined;
5793
- universalFlowRevision?: string | undefined;
5794
5440
  nodes?: Record<string, {
5795
5441
  concurrency?: number | undefined;
5796
5442
  type?: string | undefined;
@@ -5811,6 +5457,7 @@ declare const FlowApiResponse: z.ZodObject<{
5811
5457
  }[] | undefined;
5812
5458
  }> | undefined;
5813
5459
  autoCreateInstances?: boolean | undefined;
5460
+ universalFlowRevision?: string | undefined;
5814
5461
  }, {
5815
5462
  id: string;
5816
5463
  name: string;
@@ -5859,7 +5506,6 @@ declare const FlowApiResponse: z.ZodObject<{
5859
5506
  archivedAt?: string | undefined;
5860
5507
  isDeactivated?: boolean | undefined;
5861
5508
  integrationId?: string | undefined;
5862
- parentId?: string | undefined;
5863
5509
  isCustomized?: boolean | undefined;
5864
5510
  parametersSchema?: DataSchema | undefined;
5865
5511
  appliedToIntegrations?: {
@@ -5905,7 +5551,6 @@ declare const FlowApiResponse: z.ZodObject<{
5905
5551
  }[] | undefined;
5906
5552
  dependencies?: any[] | undefined;
5907
5553
  universalFlowId?: string | undefined;
5908
- universalFlowRevision?: string | undefined;
5909
5554
  nodes?: Record<string, {
5910
5555
  concurrency?: number | undefined;
5911
5556
  type?: string | undefined;
@@ -5926,41 +5571,458 @@ declare const FlowApiResponse: z.ZodObject<{
5926
5571
  }[] | undefined;
5927
5572
  }> | undefined;
5928
5573
  autoCreateInstances?: boolean | undefined;
5574
+ universalFlowRevision?: string | undefined;
5929
5575
  }>;
5930
5576
  type FlowApiResponse = z.infer<typeof FlowApiResponse>;
5931
5577
  type Flow = FlowApiResponse;
5932
- declare const FlowInstanceApiResponse: z.ZodObject<{
5933
- id: z.ZodString;
5578
+ declare const FindFlowsQuery: z.ZodObject<{
5579
+ limit: z.ZodOptional<z.ZodNumber>;
5580
+ cursor: z.ZodOptional<z.ZodString>;
5581
+ } & {
5582
+ integrationId: z.ZodOptional<z.ZodString>;
5583
+ integrationKey: z.ZodOptional<z.ZodString>;
5584
+ universalFlowId: z.ZodOptional<z.ZodString>;
5585
+ search: z.ZodOptional<z.ZodString>;
5586
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
5587
+ }, "strip", z.ZodTypeAny, {
5588
+ search?: string | undefined;
5589
+ integrationId?: string | undefined;
5590
+ includeArchived?: boolean | undefined;
5591
+ limit?: number | undefined;
5592
+ cursor?: string | undefined;
5593
+ integrationKey?: string | undefined;
5594
+ universalFlowId?: string | undefined;
5595
+ }, {
5596
+ search?: string | undefined;
5597
+ integrationId?: string | undefined;
5598
+ includeArchived?: unknown;
5599
+ limit?: number | undefined;
5600
+ cursor?: string | undefined;
5601
+ integrationKey?: string | undefined;
5602
+ universalFlowId?: string | undefined;
5603
+ }>;
5604
+ type FindFlowsQuery = z.infer<typeof FindFlowsQuery>;
5605
+ declare const CreateFlowRequest: z.ZodObject<{
5934
5606
  key: z.ZodOptional<z.ZodString>;
5607
+ name: z.ZodOptional<z.ZodString>;
5935
5608
  uuid: z.ZodOptional<z.ZodString>;
5936
5609
  description: z.ZodOptional<z.ZodString>;
5937
5610
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5938
- name: z.ZodString;
5939
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
5940
- revision: z.ZodOptional<z.ZodString>;
5941
- archivedAt: z.ZodOptional<z.ZodString>;
5942
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
5943
5611
  } & {
5944
- userId: z.ZodString;
5945
- connectionId: z.ZodOptional<z.ZodString>;
5946
- flowId: z.ZodOptional<z.ZodString>;
5612
+ integrationId: z.ZodOptional<z.ZodString>;
5947
5613
  universalFlowId: z.ZodOptional<z.ZodString>;
5948
- integrationId: z.ZodString;
5949
- instanceKey: z.ZodOptional<z.ZodString>;
5950
- parameters: z.ZodOptional<z.ZodAny>;
5951
5614
  parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
5952
- nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
5953
- enabled: z.ZodBoolean;
5954
- createdAt: z.ZodString;
5955
- updatedAt: z.ZodString;
5956
- state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
5957
- customized: z.ZodOptional<z.ZodObject<{
5958
- name: z.ZodOptional<z.ZodBoolean>;
5959
- nodes: z.ZodOptional<z.ZodBoolean>;
5960
- }, "strip", z.ZodTypeAny, {
5961
- name?: boolean | undefined;
5962
- nodes?: boolean | undefined;
5963
- }, {
5615
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5616
+ type: z.ZodOptional<z.ZodString>;
5617
+ version: z.ZodOptional<z.ZodNumber>;
5618
+ name: z.ZodOptional<z.ZodString>;
5619
+ description: z.ZodOptional<z.ZodString>;
5620
+ config: z.ZodOptional<z.ZodAny>;
5621
+ concurrency: z.ZodOptional<z.ZodNumber>;
5622
+ onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
5623
+ ui: z.ZodOptional<z.ZodAny>;
5624
+ inputSchema: z.ZodOptional<z.ZodAny>;
5625
+ outputSchema: z.ZodOptional<z.ZodAny>;
5626
+ outputExample: z.ZodOptional<z.ZodAny>;
5627
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
5628
+ key: z.ZodOptional<z.ZodString>;
5629
+ filter: z.ZodOptional<z.ZodAny>;
5630
+ name: z.ZodOptional<z.ZodString>;
5631
+ }, "strip", z.ZodTypeAny, {
5632
+ key?: string | undefined;
5633
+ filter?: any;
5634
+ name?: string | undefined;
5635
+ }, {
5636
+ key?: string | undefined;
5637
+ filter?: any;
5638
+ name?: string | undefined;
5639
+ }>, "many">>;
5640
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
5641
+ }, "strip", z.ZodTypeAny, {
5642
+ concurrency?: number | undefined;
5643
+ type?: string | undefined;
5644
+ name?: string | undefined;
5645
+ description?: string | undefined;
5646
+ isCustomized?: boolean | undefined;
5647
+ inputSchema?: any;
5648
+ config?: any;
5649
+ outputSchema?: any;
5650
+ version?: number | undefined;
5651
+ onError?: "stop" | "continue" | undefined;
5652
+ ui?: any;
5653
+ outputExample?: any;
5654
+ links?: {
5655
+ key?: string | undefined;
5656
+ filter?: any;
5657
+ name?: string | undefined;
5658
+ }[] | undefined;
5659
+ }, {
5660
+ concurrency?: number | undefined;
5661
+ type?: string | undefined;
5662
+ name?: string | undefined;
5663
+ description?: string | undefined;
5664
+ isCustomized?: boolean | undefined;
5665
+ inputSchema?: any;
5666
+ config?: any;
5667
+ outputSchema?: any;
5668
+ version?: number | undefined;
5669
+ onError?: "stop" | "continue" | undefined;
5670
+ ui?: any;
5671
+ outputExample?: any;
5672
+ links?: {
5673
+ key?: string | undefined;
5674
+ filter?: any;
5675
+ name?: string | undefined;
5676
+ }[] | undefined;
5677
+ }>>>;
5678
+ autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
5679
+ }, "strip", z.ZodTypeAny, {
5680
+ key?: string | undefined;
5681
+ name?: string | undefined;
5682
+ uuid?: string | undefined;
5683
+ description?: string | undefined;
5684
+ meta?: Record<string, any> | undefined;
5685
+ integrationId?: string | undefined;
5686
+ parametersSchema?: DataSchema | undefined;
5687
+ universalFlowId?: string | undefined;
5688
+ nodes?: Record<string, {
5689
+ concurrency?: number | undefined;
5690
+ type?: string | undefined;
5691
+ name?: string | undefined;
5692
+ description?: string | undefined;
5693
+ isCustomized?: boolean | undefined;
5694
+ inputSchema?: any;
5695
+ config?: any;
5696
+ outputSchema?: any;
5697
+ version?: number | undefined;
5698
+ onError?: "stop" | "continue" | undefined;
5699
+ ui?: any;
5700
+ outputExample?: any;
5701
+ links?: {
5702
+ key?: string | undefined;
5703
+ filter?: any;
5704
+ name?: string | undefined;
5705
+ }[] | undefined;
5706
+ }> | undefined;
5707
+ autoCreateInstances?: boolean | undefined;
5708
+ }, {
5709
+ key?: string | undefined;
5710
+ name?: string | undefined;
5711
+ uuid?: string | undefined;
5712
+ description?: string | undefined;
5713
+ meta?: Record<string, any> | undefined;
5714
+ integrationId?: string | undefined;
5715
+ parametersSchema?: DataSchema | undefined;
5716
+ universalFlowId?: string | undefined;
5717
+ nodes?: Record<string, {
5718
+ concurrency?: number | undefined;
5719
+ type?: string | undefined;
5720
+ name?: string | undefined;
5721
+ description?: string | undefined;
5722
+ isCustomized?: boolean | undefined;
5723
+ inputSchema?: any;
5724
+ config?: any;
5725
+ outputSchema?: any;
5726
+ version?: number | undefined;
5727
+ onError?: "stop" | "continue" | undefined;
5728
+ ui?: any;
5729
+ outputExample?: any;
5730
+ links?: {
5731
+ key?: string | undefined;
5732
+ filter?: any;
5733
+ name?: string | undefined;
5734
+ }[] | undefined;
5735
+ }> | undefined;
5736
+ autoCreateInstances?: boolean | undefined;
5737
+ }>;
5738
+ type CreateFlowRequest = z.infer<typeof CreateFlowRequest>;
5739
+ declare const UpdateFlowRequest: z.ZodObject<{
5740
+ key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5741
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5742
+ uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5743
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5744
+ meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
5745
+ integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5746
+ universalFlowId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
5747
+ parametersSchema: z.ZodOptional<z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>>;
5748
+ nodes: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
5749
+ type: z.ZodOptional<z.ZodString>;
5750
+ version: z.ZodOptional<z.ZodNumber>;
5751
+ name: z.ZodOptional<z.ZodString>;
5752
+ description: z.ZodOptional<z.ZodString>;
5753
+ config: z.ZodOptional<z.ZodAny>;
5754
+ concurrency: z.ZodOptional<z.ZodNumber>;
5755
+ onError: z.ZodOptional<z.ZodEnum<["stop", "continue"]>>;
5756
+ ui: z.ZodOptional<z.ZodAny>;
5757
+ inputSchema: z.ZodOptional<z.ZodAny>;
5758
+ outputSchema: z.ZodOptional<z.ZodAny>;
5759
+ outputExample: z.ZodOptional<z.ZodAny>;
5760
+ links: z.ZodOptional<z.ZodArray<z.ZodObject<{
5761
+ key: z.ZodOptional<z.ZodString>;
5762
+ filter: z.ZodOptional<z.ZodAny>;
5763
+ name: z.ZodOptional<z.ZodString>;
5764
+ }, "strip", z.ZodTypeAny, {
5765
+ key?: string | undefined;
5766
+ filter?: any;
5767
+ name?: string | undefined;
5768
+ }, {
5769
+ key?: string | undefined;
5770
+ filter?: any;
5771
+ name?: string | undefined;
5772
+ }>, "many">>;
5773
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
5774
+ }, "strip", z.ZodTypeAny, {
5775
+ concurrency?: number | undefined;
5776
+ type?: string | undefined;
5777
+ name?: string | undefined;
5778
+ description?: string | undefined;
5779
+ isCustomized?: boolean | undefined;
5780
+ inputSchema?: any;
5781
+ config?: any;
5782
+ outputSchema?: any;
5783
+ version?: number | undefined;
5784
+ onError?: "stop" | "continue" | undefined;
5785
+ ui?: any;
5786
+ outputExample?: any;
5787
+ links?: {
5788
+ key?: string | undefined;
5789
+ filter?: any;
5790
+ name?: string | undefined;
5791
+ }[] | undefined;
5792
+ }, {
5793
+ concurrency?: number | undefined;
5794
+ type?: string | undefined;
5795
+ name?: string | undefined;
5796
+ description?: string | undefined;
5797
+ isCustomized?: boolean | undefined;
5798
+ inputSchema?: any;
5799
+ config?: any;
5800
+ outputSchema?: any;
5801
+ version?: number | undefined;
5802
+ onError?: "stop" | "continue" | undefined;
5803
+ ui?: any;
5804
+ outputExample?: any;
5805
+ links?: {
5806
+ key?: string | undefined;
5807
+ filter?: any;
5808
+ name?: string | undefined;
5809
+ }[] | undefined;
5810
+ }>>>>;
5811
+ autoCreateInstances: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
5812
+ }, "strip", z.ZodTypeAny, {
5813
+ key?: string | undefined;
5814
+ name?: string | undefined;
5815
+ uuid?: string | undefined;
5816
+ description?: string | undefined;
5817
+ meta?: Record<string, any> | undefined;
5818
+ integrationId?: string | undefined;
5819
+ parametersSchema?: DataSchema | undefined;
5820
+ universalFlowId?: string | undefined;
5821
+ nodes?: Record<string, {
5822
+ concurrency?: number | undefined;
5823
+ type?: string | undefined;
5824
+ name?: string | undefined;
5825
+ description?: string | undefined;
5826
+ isCustomized?: boolean | undefined;
5827
+ inputSchema?: any;
5828
+ config?: any;
5829
+ outputSchema?: any;
5830
+ version?: number | undefined;
5831
+ onError?: "stop" | "continue" | undefined;
5832
+ ui?: any;
5833
+ outputExample?: any;
5834
+ links?: {
5835
+ key?: string | undefined;
5836
+ filter?: any;
5837
+ name?: string | undefined;
5838
+ }[] | undefined;
5839
+ }> | undefined;
5840
+ autoCreateInstances?: boolean | undefined;
5841
+ }, {
5842
+ key?: string | undefined;
5843
+ name?: string | undefined;
5844
+ uuid?: string | undefined;
5845
+ description?: string | undefined;
5846
+ meta?: Record<string, any> | undefined;
5847
+ integrationId?: string | undefined;
5848
+ parametersSchema?: DataSchema | undefined;
5849
+ universalFlowId?: string | undefined;
5850
+ nodes?: Record<string, {
5851
+ concurrency?: number | undefined;
5852
+ type?: string | undefined;
5853
+ name?: string | undefined;
5854
+ description?: string | undefined;
5855
+ isCustomized?: boolean | undefined;
5856
+ inputSchema?: any;
5857
+ config?: any;
5858
+ outputSchema?: any;
5859
+ version?: number | undefined;
5860
+ onError?: "stop" | "continue" | undefined;
5861
+ ui?: any;
5862
+ outputExample?: any;
5863
+ links?: {
5864
+ key?: string | undefined;
5865
+ filter?: any;
5866
+ name?: string | undefined;
5867
+ }[] | undefined;
5868
+ }> | undefined;
5869
+ autoCreateInstances?: boolean | undefined;
5870
+ }>;
5871
+ type UpdateFlowRequest = z.infer<typeof UpdateFlowRequest>;
5872
+ interface FlowSelector extends IntegrationSpecificElementSelector {
5873
+ autoCreate?: boolean;
5874
+ }
5875
+ declare const ListFlowInstancesForConnectionQuery: z.ZodObject<{
5876
+ flowId: z.ZodOptional<z.ZodString>;
5877
+ flowKey: z.ZodOptional<z.ZodString>;
5878
+ enabled: z.ZodOptional<z.ZodBoolean>;
5879
+ } & {
5880
+ search: z.ZodOptional<z.ZodString>;
5881
+ } & {
5882
+ limit: z.ZodOptional<z.ZodNumber>;
5883
+ cursor: z.ZodOptional<z.ZodString>;
5884
+ } & {
5885
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
5886
+ } & {
5887
+ userId: z.ZodOptional<z.ZodString>;
5888
+ instanceKey: z.ZodOptional<z.ZodString>;
5889
+ }, "strip", z.ZodTypeAny, {
5890
+ search?: string | undefined;
5891
+ includeArchived?: boolean | undefined;
5892
+ limit?: number | undefined;
5893
+ cursor?: string | undefined;
5894
+ userId?: string | undefined;
5895
+ instanceKey?: string | undefined;
5896
+ flowId?: string | undefined;
5897
+ enabled?: boolean | undefined;
5898
+ flowKey?: string | undefined;
5899
+ }, {
5900
+ search?: string | undefined;
5901
+ includeArchived?: unknown;
5902
+ limit?: number | undefined;
5903
+ cursor?: string | undefined;
5904
+ userId?: string | undefined;
5905
+ instanceKey?: string | undefined;
5906
+ flowId?: string | undefined;
5907
+ enabled?: boolean | undefined;
5908
+ flowKey?: string | undefined;
5909
+ }>;
5910
+ type ListFlowInstancesForConnectionQuery = z.infer<typeof ListFlowInstancesForConnectionQuery>;
5911
+ declare const FindFlowInstancesQuery: z.ZodObject<{
5912
+ flowId: z.ZodOptional<z.ZodString>;
5913
+ flowKey: z.ZodOptional<z.ZodString>;
5914
+ enabled: z.ZodOptional<z.ZodBoolean>;
5915
+ } & {
5916
+ search: z.ZodOptional<z.ZodString>;
5917
+ } & {
5918
+ limit: z.ZodOptional<z.ZodNumber>;
5919
+ cursor: z.ZodOptional<z.ZodString>;
5920
+ } & {
5921
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
5922
+ } & {
5923
+ userId: z.ZodOptional<z.ZodString>;
5924
+ instanceKey: z.ZodOptional<z.ZodString>;
5925
+ } & {
5926
+ connectionId: z.ZodOptional<z.ZodString>;
5927
+ integrationId: z.ZodOptional<z.ZodString>;
5928
+ integrationKey: z.ZodOptional<z.ZodString>;
5929
+ }, "strip", z.ZodTypeAny, {
5930
+ search?: string | undefined;
5931
+ integrationId?: string | undefined;
5932
+ includeArchived?: boolean | undefined;
5933
+ limit?: number | undefined;
5934
+ cursor?: string | undefined;
5935
+ userId?: string | undefined;
5936
+ instanceKey?: string | undefined;
5937
+ connectionId?: string | undefined;
5938
+ integrationKey?: string | undefined;
5939
+ flowId?: string | undefined;
5940
+ enabled?: boolean | undefined;
5941
+ flowKey?: string | undefined;
5942
+ }, {
5943
+ search?: string | undefined;
5944
+ integrationId?: string | undefined;
5945
+ includeArchived?: unknown;
5946
+ limit?: number | undefined;
5947
+ cursor?: string | undefined;
5948
+ userId?: string | undefined;
5949
+ instanceKey?: string | undefined;
5950
+ connectionId?: string | undefined;
5951
+ integrationKey?: string | undefined;
5952
+ flowId?: string | undefined;
5953
+ enabled?: boolean | undefined;
5954
+ flowKey?: string | undefined;
5955
+ }>;
5956
+ type FindFlowInstancesQuery = z.infer<typeof FindFlowInstancesQuery>;
5957
+ interface FlowInstanceSelector extends ConnectionSelector, ElementInstanceSelector {
5958
+ flowId?: string;
5959
+ flowKey?: string;
5960
+ instanceKey?: string;
5961
+ autoUpdate?: boolean;
5962
+ }
5963
+ declare const ResetFlowInstanceOptions: z.ZodObject<{
5964
+ name: z.ZodOptional<z.ZodBoolean>;
5965
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodBoolean>>;
5966
+ allNodes: z.ZodOptional<z.ZodBoolean>;
5967
+ }, "strip", z.ZodTypeAny, {
5968
+ name?: boolean | undefined;
5969
+ nodes?: Record<string, boolean> | undefined;
5970
+ allNodes?: boolean | undefined;
5971
+ }, {
5972
+ name?: boolean | undefined;
5973
+ nodes?: Record<string, boolean> | undefined;
5974
+ allNodes?: boolean | undefined;
5975
+ }>;
5976
+ type ResetFlowInstanceOptions = z.infer<typeof ResetFlowInstanceOptions>;
5977
+ declare const RunFlowOptions: z.ZodObject<{
5978
+ nodeKey: z.ZodOptional<z.ZodString>;
5979
+ input: z.ZodOptional<z.ZodAny>;
5980
+ returnImmediately: z.ZodOptional<z.ZodBoolean>;
5981
+ onUpdate: z.ZodOptional<z.ZodFunction<z.ZodTuple<[], z.ZodUnknown>, z.ZodUnknown>>;
5982
+ }, "strip", z.ZodTypeAny, {
5983
+ input?: any;
5984
+ nodeKey?: string | undefined;
5985
+ returnImmediately?: boolean | undefined;
5986
+ onUpdate?: ((...args: unknown[]) => unknown) | undefined;
5987
+ }, {
5988
+ input?: any;
5989
+ nodeKey?: string | undefined;
5990
+ returnImmediately?: boolean | undefined;
5991
+ onUpdate?: ((...args: unknown[]) => unknown) | undefined;
5992
+ }>;
5993
+ type RunFlowOptions = z.infer<typeof RunFlowOptions>;
5994
+ declare const FlowInstanceApiResponse: z.ZodObject<{
5995
+ id: z.ZodString;
5996
+ key: z.ZodOptional<z.ZodString>;
5997
+ uuid: z.ZodOptional<z.ZodString>;
5998
+ description: z.ZodOptional<z.ZodString>;
5999
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6000
+ name: z.ZodString;
6001
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
6002
+ revision: z.ZodOptional<z.ZodString>;
6003
+ archivedAt: z.ZodOptional<z.ZodString>;
6004
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
6005
+ } & {
6006
+ userId: z.ZodString;
6007
+ connectionId: z.ZodOptional<z.ZodString>;
6008
+ flowId: z.ZodOptional<z.ZodString>;
6009
+ universalFlowId: z.ZodOptional<z.ZodString>;
6010
+ integrationId: z.ZodString;
6011
+ instanceKey: z.ZodOptional<z.ZodString>;
6012
+ parameters: z.ZodOptional<z.ZodAny>;
6013
+ parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
6014
+ nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6015
+ enabled: z.ZodBoolean;
6016
+ createdAt: z.ZodString;
6017
+ updatedAt: z.ZodString;
6018
+ state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
6019
+ customized: z.ZodOptional<z.ZodObject<{
6020
+ name: z.ZodOptional<z.ZodBoolean>;
6021
+ nodes: z.ZodOptional<z.ZodBoolean>;
6022
+ }, "strip", z.ZodTypeAny, {
6023
+ name?: boolean | undefined;
6024
+ nodes?: boolean | undefined;
6025
+ }, {
5964
6026
  name?: boolean | undefined;
5965
6027
  nodes?: boolean | undefined;
5966
6028
  }>>;
@@ -6035,20 +6097,7 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
6035
6097
  description: z.ZodOptional<z.ZodString>;
6036
6098
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
6037
6099
  integrationId: z.ZodOptional<z.ZodString>;
6038
- parentId: z.ZodOptional<z.ZodString>;
6039
- } & {
6040
- name: z.ZodString;
6041
- state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
6042
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
6043
- revision: z.ZodOptional<z.ZodString>;
6044
- createdAt: z.ZodOptional<z.ZodString>;
6045
- updatedAt: z.ZodOptional<z.ZodString>;
6046
- archivedAt: z.ZodOptional<z.ZodString>;
6047
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
6048
- isCustomized: z.ZodOptional<z.ZodBoolean>;
6049
- } & {
6050
6100
  universalFlowId: z.ZodOptional<z.ZodString>;
6051
- universalFlowRevision: z.ZodOptional<z.ZodString>;
6052
6101
  parametersSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
6053
6102
  nodes: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<{
6054
6103
  type: z.ZodOptional<z.ZodString>;
@@ -6114,6 +6163,17 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
6114
6163
  }[] | undefined;
6115
6164
  }>>>;
6116
6165
  autoCreateInstances: z.ZodOptional<z.ZodBoolean>;
6166
+ } & {
6167
+ name: z.ZodString;
6168
+ state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
6169
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
6170
+ revision: z.ZodOptional<z.ZodString>;
6171
+ createdAt: z.ZodOptional<z.ZodString>;
6172
+ updatedAt: z.ZodOptional<z.ZodString>;
6173
+ archivedAt: z.ZodOptional<z.ZodString>;
6174
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
6175
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
6176
+ universalFlowRevision: z.ZodOptional<z.ZodString>;
6117
6177
  } & {
6118
6178
  integration: z.ZodOptional<z.ZodObject<{
6119
6179
  id: z.ZodString;
@@ -6458,7 +6518,6 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
6458
6518
  archivedAt?: string | undefined;
6459
6519
  isDeactivated?: boolean | undefined;
6460
6520
  integrationId?: string | undefined;
6461
- parentId?: string | undefined;
6462
6521
  isCustomized?: boolean | undefined;
6463
6522
  parametersSchema?: DataSchema | undefined;
6464
6523
  appliedToIntegrations?: {
@@ -6504,7 +6563,6 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
6504
6563
  }[] | undefined;
6505
6564
  dependencies?: any[] | undefined;
6506
6565
  universalFlowId?: string | undefined;
6507
- universalFlowRevision?: string | undefined;
6508
6566
  nodes?: Record<string, {
6509
6567
  concurrency?: number | undefined;
6510
6568
  type?: string | undefined;
@@ -6525,6 +6583,7 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
6525
6583
  }[] | undefined;
6526
6584
  }> | undefined;
6527
6585
  autoCreateInstances?: boolean | undefined;
6586
+ universalFlowRevision?: string | undefined;
6528
6587
  }, {
6529
6588
  id: string;
6530
6589
  name: string;
@@ -6573,7 +6632,6 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
6573
6632
  archivedAt?: string | undefined;
6574
6633
  isDeactivated?: boolean | undefined;
6575
6634
  integrationId?: string | undefined;
6576
- parentId?: string | undefined;
6577
6635
  isCustomized?: boolean | undefined;
6578
6636
  parametersSchema?: DataSchema | undefined;
6579
6637
  appliedToIntegrations?: {
@@ -6619,7 +6677,6 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
6619
6677
  }[] | undefined;
6620
6678
  dependencies?: any[] | undefined;
6621
6679
  universalFlowId?: string | undefined;
6622
- universalFlowRevision?: string | undefined;
6623
6680
  nodes?: Record<string, {
6624
6681
  concurrency?: number | undefined;
6625
6682
  type?: string | undefined;
@@ -6640,6 +6697,7 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
6640
6697
  }[] | undefined;
6641
6698
  }> | undefined;
6642
6699
  autoCreateInstances?: boolean | undefined;
6700
+ universalFlowRevision?: string | undefined;
6643
6701
  }>>>;
6644
6702
  integration: z.ZodOptional<z.ZodLazy<z.ZodType<{
6645
6703
  id: string;
@@ -6815,7 +6873,6 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
6815
6873
  archivedAt?: string | undefined;
6816
6874
  isDeactivated?: boolean | undefined;
6817
6875
  integrationId?: string | undefined;
6818
- parentId?: string | undefined;
6819
6876
  isCustomized?: boolean | undefined;
6820
6877
  parametersSchema?: DataSchema | undefined;
6821
6878
  appliedToIntegrations?: {
@@ -6861,7 +6918,6 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
6861
6918
  }[] | undefined;
6862
6919
  dependencies?: any[] | undefined;
6863
6920
  universalFlowId?: string | undefined;
6864
- universalFlowRevision?: string | undefined;
6865
6921
  nodes?: Record<string, {
6866
6922
  concurrency?: number | undefined;
6867
6923
  type?: string | undefined;
@@ -6882,6 +6938,7 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
6882
6938
  }[] | undefined;
6883
6939
  }> | undefined;
6884
6940
  autoCreateInstances?: boolean | undefined;
6941
+ universalFlowRevision?: string | undefined;
6885
6942
  } | undefined;
6886
6943
  uuid?: string | undefined;
6887
6944
  description?: string | undefined;
@@ -7025,7 +7082,6 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
7025
7082
  archivedAt?: string | undefined;
7026
7083
  isDeactivated?: boolean | undefined;
7027
7084
  integrationId?: string | undefined;
7028
- parentId?: string | undefined;
7029
7085
  isCustomized?: boolean | undefined;
7030
7086
  parametersSchema?: DataSchema | undefined;
7031
7087
  appliedToIntegrations?: {
@@ -7069,276 +7125,68 @@ declare const FlowInstanceApiResponse: z.ZodObject<{
7069
7125
  universalFlowId?: string | undefined;
7070
7126
  };
7071
7127
  }[] | undefined;
7072
- dependencies?: any[] | undefined;
7073
- universalFlowId?: string | undefined;
7074
- universalFlowRevision?: string | undefined;
7075
- nodes?: Record<string, {
7076
- concurrency?: number | undefined;
7077
- type?: string | undefined;
7078
- name?: string | undefined;
7079
- description?: string | undefined;
7080
- isCustomized?: boolean | undefined;
7081
- inputSchema?: any;
7082
- config?: any;
7083
- outputSchema?: any;
7084
- version?: number | undefined;
7085
- onError?: "stop" | "continue" | undefined;
7086
- ui?: any;
7087
- outputExample?: any;
7088
- links?: {
7089
- key?: string | undefined;
7090
- filter?: any;
7091
- name?: string | undefined;
7092
- }[] | undefined;
7093
- }> | undefined;
7094
- autoCreateInstances?: boolean | undefined;
7095
- } | undefined;
7096
- uuid?: string | undefined;
7097
- description?: string | undefined;
7098
- meta?: Record<string, any> | undefined;
7099
- state?: WorkspaceElementState | undefined;
7100
- errors?: ErrorDataSchema[] | undefined;
7101
- revision?: string | undefined;
7102
- archivedAt?: string | undefined;
7103
- isDeactivated?: boolean | undefined;
7104
- instanceKey?: string | undefined;
7105
- connectionId?: string | undefined;
7106
- parameters?: any;
7107
- parametersSchema?: DataSchema | undefined;
7108
- user?: {
7109
- id: string;
7110
- name: string;
7111
- internalId: string;
7112
- meta?: Record<string, any> | undefined;
7113
- createdAt?: string | undefined;
7114
- archivedAt?: string | undefined;
7115
- credentials?: any;
7116
- fields?: Record<string, any> | undefined;
7117
- isTest?: boolean | undefined;
7118
- lastActiveAt?: string | undefined;
7119
- isBillable?: boolean | undefined;
7120
- } | undefined;
7121
- dependencies?: any[] | undefined;
7122
- universalFlowId?: string | undefined;
7123
- nodes?: Record<string, any> | undefined;
7124
- flowId?: string | undefined;
7125
- customized?: {
7126
- name?: boolean | undefined;
7127
- nodes?: boolean | undefined;
7128
- } | undefined;
7129
- }>;
7130
- type FlowInstanceApiResponse = z.infer<typeof FlowInstanceApiResponse>;
7131
- type FlowInstance = FlowInstanceApiResponse;
7132
-
7133
- declare const ListDataSourcesForIntegrationQuery: z.ZodObject<{
7134
- universalDataSourceId: z.ZodOptional<z.ZodString>;
7135
- } & {
7136
- limit: z.ZodOptional<z.ZodNumber>;
7137
- cursor: z.ZodOptional<z.ZodString>;
7138
- }, "strip", z.ZodTypeAny, {
7139
- limit?: number | undefined;
7140
- cursor?: string | undefined;
7141
- universalDataSourceId?: string | undefined;
7142
- }, {
7143
- limit?: number | undefined;
7144
- cursor?: string | undefined;
7145
- universalDataSourceId?: string | undefined;
7146
- }>;
7147
- type ListDataSourcesForIntegrationQuery = z.infer<typeof ListDataSourcesForIntegrationQuery>;
7148
- declare const FindDataSourcesQuery: z.ZodObject<{
7149
- universalDataSourceId: z.ZodOptional<z.ZodString>;
7150
- } & {
7151
- limit: z.ZodOptional<z.ZodNumber>;
7152
- cursor: z.ZodOptional<z.ZodString>;
7153
- } & {
7154
- integrationId: z.ZodOptional<z.ZodString>;
7155
- }, "strip", z.ZodTypeAny, {
7156
- integrationId?: string | undefined;
7157
- limit?: number | undefined;
7158
- cursor?: string | undefined;
7159
- universalDataSourceId?: string | undefined;
7160
- }, {
7161
- integrationId?: string | undefined;
7162
- limit?: number | undefined;
7163
- cursor?: string | undefined;
7164
- universalDataSourceId?: string | undefined;
7165
- }>;
7166
- type FindDataSourcesQuery = z.infer<typeof FindDataSourcesQuery>;
7167
- declare const CreateDataSourceRequest: z.ZodObject<{
7168
- key: z.ZodString;
7169
- name: z.ZodString;
7170
- integrationId: z.ZodOptional<z.ZodString>;
7171
- udm: z.ZodOptional<z.ZodString>;
7172
- pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7173
- fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7174
- rootPath: z.ZodOptional<z.ZodString>;
7175
- defaultPath: z.ZodOptional<z.ZodString>;
7176
- collectionKey: z.ZodOptional<z.ZodString>;
7177
- collectionParameters: z.ZodOptional<z.ZodAny>;
7178
- }, "strip", z.ZodTypeAny, {
7179
- key: string;
7180
- name: string;
7181
- integrationId?: string | undefined;
7182
- udm?: string | undefined;
7183
- collectionKey?: string | undefined;
7184
- collectionParameters?: any;
7185
- pullUpdatesIntervalSeconds?: number | undefined;
7186
- fullSyncIntervalSeconds?: number | undefined;
7187
- defaultPath?: string | undefined;
7188
- rootPath?: string | undefined;
7189
- }, {
7190
- key: string;
7191
- name: string;
7192
- integrationId?: string | undefined;
7193
- udm?: string | undefined;
7194
- collectionKey?: string | undefined;
7195
- collectionParameters?: any;
7196
- pullUpdatesIntervalSeconds?: number | undefined;
7197
- fullSyncIntervalSeconds?: number | undefined;
7198
- defaultPath?: string | undefined;
7199
- rootPath?: string | undefined;
7200
- }>;
7201
- type CreateDataSourceRequest = z.infer<typeof CreateDataSourceRequest>;
7202
- declare const UpdateDataSourceRequest: z.ZodObject<{
7203
- key: z.ZodOptional<z.ZodString>;
7204
- name: z.ZodOptional<z.ZodString>;
7205
- archivedAt: z.ZodOptional<z.ZodString>;
7206
- udm: z.ZodOptional<z.ZodString>;
7207
- pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7208
- fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7209
- rootPath: z.ZodOptional<z.ZodString>;
7210
- defaultPath: z.ZodOptional<z.ZodString>;
7211
- }, "strip", z.ZodTypeAny, {
7212
- key?: string | undefined;
7213
- name?: string | undefined;
7214
- archivedAt?: string | undefined;
7215
- udm?: string | undefined;
7216
- pullUpdatesIntervalSeconds?: number | undefined;
7217
- fullSyncIntervalSeconds?: number | undefined;
7218
- defaultPath?: string | undefined;
7219
- rootPath?: string | undefined;
7220
- }, {
7221
- key?: string | undefined;
7222
- name?: string | undefined;
7128
+ dependencies?: any[] | undefined;
7129
+ universalFlowId?: string | undefined;
7130
+ nodes?: Record<string, {
7131
+ concurrency?: number | undefined;
7132
+ type?: string | undefined;
7133
+ name?: string | undefined;
7134
+ description?: string | undefined;
7135
+ isCustomized?: boolean | undefined;
7136
+ inputSchema?: any;
7137
+ config?: any;
7138
+ outputSchema?: any;
7139
+ version?: number | undefined;
7140
+ onError?: "stop" | "continue" | undefined;
7141
+ ui?: any;
7142
+ outputExample?: any;
7143
+ links?: {
7144
+ key?: string | undefined;
7145
+ filter?: any;
7146
+ name?: string | undefined;
7147
+ }[] | undefined;
7148
+ }> | undefined;
7149
+ autoCreateInstances?: boolean | undefined;
7150
+ universalFlowRevision?: string | undefined;
7151
+ } | undefined;
7152
+ uuid?: string | undefined;
7153
+ description?: string | undefined;
7154
+ meta?: Record<string, any> | undefined;
7155
+ state?: WorkspaceElementState | undefined;
7156
+ errors?: ErrorDataSchema[] | undefined;
7157
+ revision?: string | undefined;
7223
7158
  archivedAt?: string | undefined;
7224
- udm?: string | undefined;
7225
- pullUpdatesIntervalSeconds?: number | undefined;
7226
- fullSyncIntervalSeconds?: number | undefined;
7227
- defaultPath?: string | undefined;
7228
- rootPath?: string | undefined;
7229
- }>;
7230
- type UpdateDataSourceRequest = z.infer<typeof UpdateDataSourceRequest>;
7231
- interface DataSourceSelector extends IntegrationSpecificElementSelector {
7232
- }
7233
- interface DataSourceInstanceSelector extends ConnectionSelector, FlowInstanceSelector, ElementInstanceSelector {
7234
- dataSourceKey?: string;
7235
- dataSourceId?: string;
7236
- instanceKey?: string;
7237
- nodeKey?: string;
7238
- udm?: string;
7239
- }
7240
- declare const FindDataSourceInstancesQuery: z.ZodObject<{
7241
- userId: z.ZodOptional<z.ZodString>;
7242
- dataSourceId: z.ZodOptional<z.ZodString>;
7243
- universalDataSourceId: z.ZodOptional<z.ZodString>;
7244
- connectionId: z.ZodOptional<z.ZodString>;
7245
- integrationKey: z.ZodOptional<z.ZodString>;
7246
- integrationId: z.ZodOptional<z.ZodString>;
7247
- } & {
7248
- limit: z.ZodOptional<z.ZodNumber>;
7249
- cursor: z.ZodOptional<z.ZodString>;
7250
- }, "strip", z.ZodTypeAny, {
7251
- integrationId?: string | undefined;
7252
- limit?: number | undefined;
7253
- cursor?: string | undefined;
7254
- userId?: string | undefined;
7255
- connectionId?: string | undefined;
7256
- integrationKey?: string | undefined;
7257
- dataSourceId?: string | undefined;
7258
- universalDataSourceId?: string | undefined;
7259
- }, {
7260
- integrationId?: string | undefined;
7261
- limit?: number | undefined;
7262
- cursor?: string | undefined;
7263
- userId?: string | undefined;
7159
+ isDeactivated?: boolean | undefined;
7160
+ instanceKey?: string | undefined;
7264
7161
  connectionId?: string | undefined;
7265
- integrationKey?: string | undefined;
7266
- dataSourceId?: string | undefined;
7267
- universalDataSourceId?: string | undefined;
7268
- }>;
7269
- type FindDataSourceInstancesQuery = z.infer<typeof FindDataSourceInstancesQuery>;
7270
- declare const CreateDataSourceInstanceRequest: z.ZodObject<{
7271
- dataSourceId: z.ZodString;
7272
- connectionId: z.ZodString;
7273
- path: z.ZodOptional<z.ZodString>;
7274
- }, "strip", z.ZodTypeAny, {
7275
- connectionId: string;
7276
- dataSourceId: string;
7277
- path?: string | undefined;
7278
- }, {
7279
- connectionId: string;
7280
- dataSourceId: string;
7281
- path?: string | undefined;
7282
- }>;
7283
- type CreateDataSourceInstanceRequest = z.infer<typeof CreateDataSourceInstanceRequest>;
7284
- declare const UpdateDataSourceInstanceRequest: z.ZodObject<{
7285
- path: z.ZodOptional<z.ZodString>;
7286
- collectionKey: z.ZodOptional<z.ZodString>;
7287
- collectionParameters: z.ZodOptional<z.ZodAny>;
7288
- pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7289
- fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7290
- subscribedTo: z.ZodOptional<z.ZodObject<{
7291
- created: z.ZodOptional<z.ZodBoolean>;
7292
- updated: z.ZodOptional<z.ZodBoolean>;
7293
- deleted: z.ZodOptional<z.ZodBoolean>;
7294
- }, "strip", z.ZodTypeAny, {
7295
- created?: boolean | undefined;
7296
- updated?: boolean | undefined;
7297
- deleted?: boolean | undefined;
7298
- }, {
7299
- created?: boolean | undefined;
7300
- updated?: boolean | undefined;
7301
- deleted?: boolean | undefined;
7302
- }>>;
7303
- }, "strip", z.ZodTypeAny, {
7304
- path?: string | undefined;
7305
- collectionKey?: string | undefined;
7306
- collectionParameters?: any;
7307
- pullUpdatesIntervalSeconds?: number | undefined;
7308
- fullSyncIntervalSeconds?: number | undefined;
7309
- subscribedTo?: {
7310
- created?: boolean | undefined;
7311
- updated?: boolean | undefined;
7312
- deleted?: boolean | undefined;
7162
+ parameters?: any;
7163
+ parametersSchema?: DataSchema | undefined;
7164
+ user?: {
7165
+ id: string;
7166
+ name: string;
7167
+ internalId: string;
7168
+ meta?: Record<string, any> | undefined;
7169
+ createdAt?: string | undefined;
7170
+ archivedAt?: string | undefined;
7171
+ credentials?: any;
7172
+ fields?: Record<string, any> | undefined;
7173
+ isTest?: boolean | undefined;
7174
+ lastActiveAt?: string | undefined;
7175
+ isBillable?: boolean | undefined;
7313
7176
  } | undefined;
7314
- }, {
7315
- path?: string | undefined;
7316
- collectionKey?: string | undefined;
7317
- collectionParameters?: any;
7318
- pullUpdatesIntervalSeconds?: number | undefined;
7319
- fullSyncIntervalSeconds?: number | undefined;
7320
- subscribedTo?: {
7321
- created?: boolean | undefined;
7322
- updated?: boolean | undefined;
7323
- deleted?: boolean | undefined;
7177
+ dependencies?: any[] | undefined;
7178
+ universalFlowId?: string | undefined;
7179
+ nodes?: Record<string, any> | undefined;
7180
+ flowId?: string | undefined;
7181
+ customized?: {
7182
+ name?: boolean | undefined;
7183
+ nodes?: boolean | undefined;
7324
7184
  } | undefined;
7325
7185
  }>;
7326
- type UpdateDataSourceInstanceRequest = z.infer<typeof UpdateDataSourceInstanceRequest>;
7327
- declare const ListDataSourceInstancesForConnectionQuery: z.ZodObject<{
7328
- dataSourceId: z.ZodOptional<z.ZodString>;
7329
- } & {
7330
- limit: z.ZodOptional<z.ZodNumber>;
7331
- cursor: z.ZodOptional<z.ZodString>;
7332
- }, "strip", z.ZodTypeAny, {
7333
- limit?: number | undefined;
7334
- cursor?: string | undefined;
7335
- dataSourceId?: string | undefined;
7336
- }, {
7337
- limit?: number | undefined;
7338
- cursor?: string | undefined;
7339
- dataSourceId?: string | undefined;
7340
- }>;
7341
- type ListDataSourceInstancesForConnectionQuery = z.infer<typeof ListDataSourceInstancesForConnectionQuery>;
7186
+ type FlowInstanceApiResponse = z.infer<typeof FlowInstanceApiResponse>;
7187
+ type FlowInstance = FlowInstanceApiResponse;
7188
+ type ListFlowsForIntegrationQuery = Omit<FindFlowsQuery, 'integrationId' | 'integrationKey'>;
7189
+
7342
7190
  declare const DataSourceApiResponse: z.ZodObject<{
7343
7191
  id: z.ZodString;
7344
7192
  key: z.ZodOptional<z.ZodString>;
@@ -7346,7 +7194,13 @@ declare const DataSourceApiResponse: z.ZodObject<{
7346
7194
  description: z.ZodOptional<z.ZodString>;
7347
7195
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7348
7196
  integrationId: z.ZodOptional<z.ZodString>;
7349
- parentId: z.ZodOptional<z.ZodString>;
7197
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
7198
+ udm: z.ZodOptional<z.ZodString>;
7199
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7200
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7201
+ collectionKey: z.ZodOptional<z.ZodString>;
7202
+ collectionParameters: z.ZodOptional<z.ZodAny>;
7203
+ defaultPath: z.ZodOptional<z.ZodString>;
7350
7204
  } & {
7351
7205
  name: z.ZodString;
7352
7206
  state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
@@ -7357,16 +7211,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
7357
7211
  archivedAt: z.ZodOptional<z.ZodString>;
7358
7212
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
7359
7213
  isCustomized: z.ZodOptional<z.ZodBoolean>;
7360
- } & {
7361
- publishedRevision: z.ZodOptional<z.ZodString>;
7362
- universalDataSourceId: z.ZodOptional<z.ZodString>;
7363
7214
  universalDataSourceRevision: z.ZodOptional<z.ZodString>;
7364
- udm: z.ZodOptional<z.ZodString>;
7365
- pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7366
- fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7367
- collectionKey: z.ZodOptional<z.ZodString>;
7368
- collectionParameters: z.ZodOptional<z.ZodAny>;
7369
- defaultPath: z.ZodOptional<z.ZodString>;
7370
7215
  } & {
7371
7216
  integration: z.ZodOptional<z.ZodObject<{
7372
7217
  id: z.ZodString;
@@ -7474,7 +7319,13 @@ declare const DataSourceApiResponse: z.ZodObject<{
7474
7319
  description: z.ZodOptional<z.ZodString>;
7475
7320
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7476
7321
  integrationId: z.ZodOptional<z.ZodString>;
7477
- parentId: z.ZodOptional<z.ZodString>;
7322
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
7323
+ udm: z.ZodOptional<z.ZodString>;
7324
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7325
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7326
+ collectionKey: z.ZodOptional<z.ZodString>;
7327
+ collectionParameters: z.ZodOptional<z.ZodAny>;
7328
+ defaultPath: z.ZodOptional<z.ZodString>;
7478
7329
  } & {
7479
7330
  name: z.ZodString;
7480
7331
  state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
@@ -7485,16 +7336,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
7485
7336
  archivedAt: z.ZodOptional<z.ZodString>;
7486
7337
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
7487
7338
  isCustomized: z.ZodOptional<z.ZodBoolean>;
7488
- } & {
7489
- publishedRevision: z.ZodOptional<z.ZodString>;
7490
- universalDataSourceId: z.ZodOptional<z.ZodString>;
7491
7339
  universalDataSourceRevision: z.ZodOptional<z.ZodString>;
7492
- udm: z.ZodOptional<z.ZodString>;
7493
- pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7494
- fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7495
- collectionKey: z.ZodOptional<z.ZodString>;
7496
- collectionParameters: z.ZodOptional<z.ZodAny>;
7497
- defaultPath: z.ZodOptional<z.ZodString>;
7498
7340
  }, "strip", z.ZodTypeAny, {
7499
7341
  id: string;
7500
7342
  name: string;
@@ -7510,9 +7352,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
7510
7352
  archivedAt?: string | undefined;
7511
7353
  isDeactivated?: boolean | undefined;
7512
7354
  integrationId?: string | undefined;
7513
- parentId?: string | undefined;
7514
7355
  isCustomized?: boolean | undefined;
7515
- publishedRevision?: string | undefined;
7516
7356
  udm?: string | undefined;
7517
7357
  universalDataSourceId?: string | undefined;
7518
7358
  collectionKey?: string | undefined;
@@ -7536,9 +7376,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
7536
7376
  archivedAt?: string | undefined;
7537
7377
  isDeactivated?: boolean | undefined;
7538
7378
  integrationId?: string | undefined;
7539
- parentId?: string | undefined;
7540
7379
  isCustomized?: boolean | undefined;
7541
- publishedRevision?: string | undefined;
7542
7380
  udm?: string | undefined;
7543
7381
  universalDataSourceId?: string | undefined;
7544
7382
  collectionKey?: string | undefined;
@@ -7695,9 +7533,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
7695
7533
  archivedAt?: string | undefined;
7696
7534
  isDeactivated?: boolean | undefined;
7697
7535
  integrationId?: string | undefined;
7698
- parentId?: string | undefined;
7699
7536
  isCustomized?: boolean | undefined;
7700
- publishedRevision?: string | undefined;
7701
7537
  udm?: string | undefined;
7702
7538
  universalDataSourceId?: string | undefined;
7703
7539
  collectionKey?: string | undefined;
@@ -7707,7 +7543,117 @@ declare const DataSourceApiResponse: z.ZodObject<{
7707
7543
  defaultPath?: string | undefined;
7708
7544
  universalDataSourceRevision?: string | undefined;
7709
7545
  };
7710
- }, {
7546
+ }, {
7547
+ integration: {
7548
+ id: string;
7549
+ name: string;
7550
+ logoUri: string;
7551
+ key?: string | undefined;
7552
+ uuid?: string | undefined;
7553
+ description?: string | undefined;
7554
+ meta?: Record<string, any> | undefined;
7555
+ state?: WorkspaceElementState | undefined;
7556
+ errors?: ErrorDataSchema[] | undefined;
7557
+ revision?: string | undefined;
7558
+ createdAt?: string | undefined;
7559
+ updatedAt?: string | undefined;
7560
+ archivedAt?: string | undefined;
7561
+ isDeactivated?: boolean | undefined;
7562
+ parameters?: any;
7563
+ connectorId?: string | undefined;
7564
+ connectorVersion?: string | undefined;
7565
+ oAuthCallbackUri?: string | undefined;
7566
+ hasMissingParameters?: boolean | undefined;
7567
+ hasDocumentation?: boolean | undefined;
7568
+ hasOperations?: boolean | undefined;
7569
+ operationsCount?: number | undefined;
7570
+ hasData?: boolean | undefined;
7571
+ dataCollectionsCount?: number | undefined;
7572
+ hasEvents?: boolean | undefined;
7573
+ eventsCount?: number | undefined;
7574
+ hasGlobalWebhooks?: boolean | undefined;
7575
+ hasUdm?: boolean | undefined;
7576
+ isTest?: boolean | undefined;
7577
+ appUuid?: string | undefined;
7578
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
7579
+ };
7580
+ element: {
7581
+ id: string;
7582
+ name: string;
7583
+ key?: string | undefined;
7584
+ uuid?: string | undefined;
7585
+ description?: string | undefined;
7586
+ meta?: Record<string, any> | undefined;
7587
+ state?: WorkspaceElementState | undefined;
7588
+ errors?: ErrorDataSchema[] | undefined;
7589
+ revision?: string | undefined;
7590
+ createdAt?: string | undefined;
7591
+ updatedAt?: string | undefined;
7592
+ archivedAt?: string | undefined;
7593
+ isDeactivated?: boolean | undefined;
7594
+ integrationId?: string | undefined;
7595
+ isCustomized?: boolean | undefined;
7596
+ udm?: string | undefined;
7597
+ universalDataSourceId?: string | undefined;
7598
+ collectionKey?: string | undefined;
7599
+ collectionParameters?: any;
7600
+ pullUpdatesIntervalSeconds?: number | undefined;
7601
+ fullSyncIntervalSeconds?: number | undefined;
7602
+ defaultPath?: string | undefined;
7603
+ universalDataSourceRevision?: string | undefined;
7604
+ };
7605
+ }>, "many">>;
7606
+ }, "strip", z.ZodTypeAny, {
7607
+ id: string;
7608
+ name: string;
7609
+ key?: string | undefined;
7610
+ integration?: {
7611
+ id: string;
7612
+ name: string;
7613
+ logoUri: string;
7614
+ key?: string | undefined;
7615
+ uuid?: string | undefined;
7616
+ description?: string | undefined;
7617
+ meta?: Record<string, any> | undefined;
7618
+ state?: WorkspaceElementState | undefined;
7619
+ errors?: ErrorDataSchema[] | undefined;
7620
+ revision?: string | undefined;
7621
+ createdAt?: string | undefined;
7622
+ updatedAt?: string | undefined;
7623
+ archivedAt?: string | undefined;
7624
+ isDeactivated?: boolean | undefined;
7625
+ parameters?: any;
7626
+ connectorId?: string | undefined;
7627
+ connectorVersion?: string | undefined;
7628
+ oAuthCallbackUri?: string | undefined;
7629
+ hasMissingParameters?: boolean | undefined;
7630
+ hasDocumentation?: boolean | undefined;
7631
+ hasOperations?: boolean | undefined;
7632
+ operationsCount?: number | undefined;
7633
+ hasData?: boolean | undefined;
7634
+ dataCollectionsCount?: number | undefined;
7635
+ hasEvents?: boolean | undefined;
7636
+ eventsCount?: number | undefined;
7637
+ hasGlobalWebhooks?: boolean | undefined;
7638
+ hasUdm?: boolean | undefined;
7639
+ isTest?: boolean | undefined;
7640
+ appUuid?: string | undefined;
7641
+ authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
7642
+ } | undefined;
7643
+ uuid?: string | undefined;
7644
+ description?: string | undefined;
7645
+ meta?: Record<string, any> | undefined;
7646
+ state?: WorkspaceElementState | undefined;
7647
+ errors?: ErrorDataSchema[] | undefined;
7648
+ revision?: string | undefined;
7649
+ createdAt?: string | undefined;
7650
+ updatedAt?: string | undefined;
7651
+ archivedAt?: string | undefined;
7652
+ isDeactivated?: boolean | undefined;
7653
+ integrationId?: string | undefined;
7654
+ isCustomized?: boolean | undefined;
7655
+ udm?: string | undefined;
7656
+ appliedToIntegrations?: {
7711
7657
  integration: {
7712
7658
  id: string;
7713
7659
  name: string;
@@ -7756,9 +7702,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
7756
7702
  archivedAt?: string | undefined;
7757
7703
  isDeactivated?: boolean | undefined;
7758
7704
  integrationId?: string | undefined;
7759
- parentId?: string | undefined;
7760
7705
  isCustomized?: boolean | undefined;
7761
- publishedRevision?: string | undefined;
7762
7706
  udm?: string | undefined;
7763
7707
  universalDataSourceId?: string | undefined;
7764
7708
  collectionKey?: string | undefined;
@@ -7768,8 +7712,15 @@ declare const DataSourceApiResponse: z.ZodObject<{
7768
7712
  defaultPath?: string | undefined;
7769
7713
  universalDataSourceRevision?: string | undefined;
7770
7714
  };
7771
- }>, "many">>;
7772
- }, "strip", z.ZodTypeAny, {
7715
+ }[] | undefined;
7716
+ universalDataSourceId?: string | undefined;
7717
+ collectionKey?: string | undefined;
7718
+ collectionParameters?: any;
7719
+ pullUpdatesIntervalSeconds?: number | undefined;
7720
+ fullSyncIntervalSeconds?: number | undefined;
7721
+ defaultPath?: string | undefined;
7722
+ universalDataSourceRevision?: string | undefined;
7723
+ }, {
7773
7724
  id: string;
7774
7725
  name: string;
7775
7726
  key?: string | undefined;
@@ -7817,9 +7768,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
7817
7768
  archivedAt?: string | undefined;
7818
7769
  isDeactivated?: boolean | undefined;
7819
7770
  integrationId?: string | undefined;
7820
- parentId?: string | undefined;
7821
7771
  isCustomized?: boolean | undefined;
7822
- publishedRevision?: string | undefined;
7823
7772
  udm?: string | undefined;
7824
7773
  appliedToIntegrations?: {
7825
7774
  integration: {
@@ -7870,9 +7819,7 @@ declare const DataSourceApiResponse: z.ZodObject<{
7870
7819
  archivedAt?: string | undefined;
7871
7820
  isDeactivated?: boolean | undefined;
7872
7821
  integrationId?: string | undefined;
7873
- parentId?: string | undefined;
7874
7822
  isCustomized?: boolean | undefined;
7875
- publishedRevision?: string | undefined;
7876
7823
  udm?: string | undefined;
7877
7824
  universalDataSourceId?: string | undefined;
7878
7825
  collectionKey?: string | undefined;
@@ -7888,132 +7835,241 @@ declare const DataSourceApiResponse: z.ZodObject<{
7888
7835
  collectionParameters?: any;
7889
7836
  pullUpdatesIntervalSeconds?: number | undefined;
7890
7837
  fullSyncIntervalSeconds?: number | undefined;
7891
- defaultPath?: string | undefined;
7892
- universalDataSourceRevision?: string | undefined;
7893
- }, {
7894
- id: string;
7895
- name: string;
7896
- key?: string | undefined;
7897
- integration?: {
7898
- id: string;
7899
- name: string;
7900
- logoUri: string;
7901
- key?: string | undefined;
7902
- uuid?: string | undefined;
7903
- description?: string | undefined;
7904
- meta?: Record<string, any> | undefined;
7905
- state?: WorkspaceElementState | undefined;
7906
- errors?: ErrorDataSchema[] | undefined;
7907
- revision?: string | undefined;
7908
- createdAt?: string | undefined;
7909
- updatedAt?: string | undefined;
7910
- archivedAt?: string | undefined;
7911
- isDeactivated?: boolean | undefined;
7912
- parameters?: any;
7913
- connectorId?: string | undefined;
7914
- connectorVersion?: string | undefined;
7915
- oAuthCallbackUri?: string | undefined;
7916
- hasMissingParameters?: boolean | undefined;
7917
- hasDocumentation?: boolean | undefined;
7918
- hasOperations?: boolean | undefined;
7919
- operationsCount?: number | undefined;
7920
- hasData?: boolean | undefined;
7921
- dataCollectionsCount?: number | undefined;
7922
- hasEvents?: boolean | undefined;
7923
- eventsCount?: number | undefined;
7924
- hasGlobalWebhooks?: boolean | undefined;
7925
- hasUdm?: boolean | undefined;
7926
- isTest?: boolean | undefined;
7927
- appUuid?: string | undefined;
7928
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
7838
+ defaultPath?: string | undefined;
7839
+ universalDataSourceRevision?: string | undefined;
7840
+ }>;
7841
+ type DataSourceApiResponse = z.infer<typeof DataSourceApiResponse>;
7842
+ type DataSource = DataSourceApiResponse;
7843
+ declare const FindDataSourcesQuery: z.ZodObject<{
7844
+ limit: z.ZodOptional<z.ZodNumber>;
7845
+ cursor: z.ZodOptional<z.ZodString>;
7846
+ } & {
7847
+ integrationId: z.ZodOptional<z.ZodString>;
7848
+ integrationKey: z.ZodOptional<z.ZodString>;
7849
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
7850
+ search: z.ZodOptional<z.ZodString>;
7851
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
7852
+ }, "strip", z.ZodTypeAny, {
7853
+ search?: string | undefined;
7854
+ integrationId?: string | undefined;
7855
+ includeArchived?: boolean | undefined;
7856
+ limit?: number | undefined;
7857
+ cursor?: string | undefined;
7858
+ integrationKey?: string | undefined;
7859
+ universalDataSourceId?: string | undefined;
7860
+ }, {
7861
+ search?: string | undefined;
7862
+ integrationId?: string | undefined;
7863
+ includeArchived?: unknown;
7864
+ limit?: number | undefined;
7865
+ cursor?: string | undefined;
7866
+ integrationKey?: string | undefined;
7867
+ universalDataSourceId?: string | undefined;
7868
+ }>;
7869
+ type FindDataSourcesQuery = z.infer<typeof FindDataSourcesQuery>;
7870
+ declare const CreateDataSourceRequest: z.ZodObject<Omit<{
7871
+ key: z.ZodOptional<z.ZodString>;
7872
+ name: z.ZodOptional<z.ZodString>;
7873
+ uuid: z.ZodOptional<z.ZodString>;
7874
+ description: z.ZodOptional<z.ZodString>;
7875
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
7876
+ } & {
7877
+ integrationId: z.ZodOptional<z.ZodString>;
7878
+ parentId: z.ZodOptional<z.ZodString>;
7879
+ }, "parentId"> & {
7880
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
7881
+ udm: z.ZodOptional<z.ZodString>;
7882
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7883
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
7884
+ collectionKey: z.ZodOptional<z.ZodString>;
7885
+ collectionParameters: z.ZodOptional<z.ZodAny>;
7886
+ defaultPath: z.ZodOptional<z.ZodString>;
7887
+ }, "strip", z.ZodTypeAny, {
7888
+ key?: string | undefined;
7889
+ name?: string | undefined;
7890
+ uuid?: string | undefined;
7891
+ description?: string | undefined;
7892
+ meta?: Record<string, any> | undefined;
7893
+ integrationId?: string | undefined;
7894
+ udm?: string | undefined;
7895
+ universalDataSourceId?: string | undefined;
7896
+ collectionKey?: string | undefined;
7897
+ collectionParameters?: any;
7898
+ pullUpdatesIntervalSeconds?: number | undefined;
7899
+ fullSyncIntervalSeconds?: number | undefined;
7900
+ defaultPath?: string | undefined;
7901
+ }, {
7902
+ key?: string | undefined;
7903
+ name?: string | undefined;
7904
+ uuid?: string | undefined;
7905
+ description?: string | undefined;
7906
+ meta?: Record<string, any> | undefined;
7907
+ integrationId?: string | undefined;
7908
+ udm?: string | undefined;
7909
+ universalDataSourceId?: string | undefined;
7910
+ collectionKey?: string | undefined;
7911
+ collectionParameters?: any;
7912
+ pullUpdatesIntervalSeconds?: number | undefined;
7913
+ fullSyncIntervalSeconds?: number | undefined;
7914
+ defaultPath?: string | undefined;
7915
+ }>;
7916
+ type CreateDataSourceRequest = z.infer<typeof CreateDataSourceRequest>;
7917
+ declare const UpdateDataSourceRequest: z.ZodObject<{
7918
+ key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7919
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7920
+ uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7921
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7922
+ meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
7923
+ integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7924
+ universalDataSourceId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7925
+ udm: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7926
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
7927
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodOptional<z.ZodNumber>>;
7928
+ collectionKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7929
+ collectionParameters: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
7930
+ defaultPath: z.ZodOptional<z.ZodOptional<z.ZodString>>;
7931
+ }, "strip", z.ZodTypeAny, {
7932
+ key?: string | undefined;
7933
+ name?: string | undefined;
7934
+ uuid?: string | undefined;
7935
+ description?: string | undefined;
7936
+ meta?: Record<string, any> | undefined;
7937
+ integrationId?: string | undefined;
7938
+ udm?: string | undefined;
7939
+ universalDataSourceId?: string | undefined;
7940
+ collectionKey?: string | undefined;
7941
+ collectionParameters?: any;
7942
+ pullUpdatesIntervalSeconds?: number | undefined;
7943
+ fullSyncIntervalSeconds?: number | undefined;
7944
+ defaultPath?: string | undefined;
7945
+ }, {
7946
+ key?: string | undefined;
7947
+ name?: string | undefined;
7948
+ uuid?: string | undefined;
7949
+ description?: string | undefined;
7950
+ meta?: Record<string, any> | undefined;
7951
+ integrationId?: string | undefined;
7952
+ udm?: string | undefined;
7953
+ universalDataSourceId?: string | undefined;
7954
+ collectionKey?: string | undefined;
7955
+ collectionParameters?: any;
7956
+ pullUpdatesIntervalSeconds?: number | undefined;
7957
+ fullSyncIntervalSeconds?: number | undefined;
7958
+ defaultPath?: string | undefined;
7959
+ }>;
7960
+ type UpdateDataSourceRequest = z.infer<typeof UpdateDataSourceRequest>;
7961
+ interface DataSourceSelector extends IntegrationSpecificElementSelector {
7962
+ }
7963
+ interface DataSourceInstanceSelector extends ConnectionSelector, FlowInstanceSelector, ElementInstanceSelector {
7964
+ dataSourceKey?: string;
7965
+ dataSourceId?: string;
7966
+ instanceKey?: string;
7967
+ nodeKey?: string;
7968
+ udm?: string;
7969
+ }
7970
+ declare const FindDataSourceInstancesQuery: z.ZodObject<{
7971
+ userId: z.ZodOptional<z.ZodString>;
7972
+ dataSourceId: z.ZodOptional<z.ZodString>;
7973
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
7974
+ connectionId: z.ZodOptional<z.ZodString>;
7975
+ integrationKey: z.ZodOptional<z.ZodString>;
7976
+ integrationId: z.ZodOptional<z.ZodString>;
7977
+ } & {
7978
+ limit: z.ZodOptional<z.ZodNumber>;
7979
+ cursor: z.ZodOptional<z.ZodString>;
7980
+ }, "strip", z.ZodTypeAny, {
7981
+ integrationId?: string | undefined;
7982
+ limit?: number | undefined;
7983
+ cursor?: string | undefined;
7984
+ userId?: string | undefined;
7985
+ connectionId?: string | undefined;
7986
+ integrationKey?: string | undefined;
7987
+ dataSourceId?: string | undefined;
7988
+ universalDataSourceId?: string | undefined;
7989
+ }, {
7990
+ integrationId?: string | undefined;
7991
+ limit?: number | undefined;
7992
+ cursor?: string | undefined;
7993
+ userId?: string | undefined;
7994
+ connectionId?: string | undefined;
7995
+ integrationKey?: string | undefined;
7996
+ dataSourceId?: string | undefined;
7997
+ universalDataSourceId?: string | undefined;
7998
+ }>;
7999
+ type FindDataSourceInstancesQuery = z.infer<typeof FindDataSourceInstancesQuery>;
8000
+ declare const CreateDataSourceInstanceRequest: z.ZodObject<{
8001
+ dataSourceId: z.ZodString;
8002
+ connectionId: z.ZodString;
8003
+ path: z.ZodOptional<z.ZodString>;
8004
+ }, "strip", z.ZodTypeAny, {
8005
+ connectionId: string;
8006
+ dataSourceId: string;
8007
+ path?: string | undefined;
8008
+ }, {
8009
+ connectionId: string;
8010
+ dataSourceId: string;
8011
+ path?: string | undefined;
8012
+ }>;
8013
+ type CreateDataSourceInstanceRequest = z.infer<typeof CreateDataSourceInstanceRequest>;
8014
+ declare const UpdateDataSourceInstanceRequest: z.ZodObject<{
8015
+ path: z.ZodOptional<z.ZodString>;
8016
+ collectionKey: z.ZodOptional<z.ZodString>;
8017
+ collectionParameters: z.ZodOptional<z.ZodAny>;
8018
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
8019
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
8020
+ subscribedTo: z.ZodOptional<z.ZodObject<{
8021
+ created: z.ZodOptional<z.ZodBoolean>;
8022
+ updated: z.ZodOptional<z.ZodBoolean>;
8023
+ deleted: z.ZodOptional<z.ZodBoolean>;
8024
+ }, "strip", z.ZodTypeAny, {
8025
+ created?: boolean | undefined;
8026
+ updated?: boolean | undefined;
8027
+ deleted?: boolean | undefined;
8028
+ }, {
8029
+ created?: boolean | undefined;
8030
+ updated?: boolean | undefined;
8031
+ deleted?: boolean | undefined;
8032
+ }>>;
8033
+ }, "strip", z.ZodTypeAny, {
8034
+ path?: string | undefined;
8035
+ collectionKey?: string | undefined;
8036
+ collectionParameters?: any;
8037
+ pullUpdatesIntervalSeconds?: number | undefined;
8038
+ fullSyncIntervalSeconds?: number | undefined;
8039
+ subscribedTo?: {
8040
+ created?: boolean | undefined;
8041
+ updated?: boolean | undefined;
8042
+ deleted?: boolean | undefined;
7929
8043
  } | undefined;
7930
- uuid?: string | undefined;
7931
- description?: string | undefined;
7932
- meta?: Record<string, any> | undefined;
7933
- state?: WorkspaceElementState | undefined;
7934
- errors?: ErrorDataSchema[] | undefined;
7935
- revision?: string | undefined;
7936
- createdAt?: string | undefined;
7937
- updatedAt?: string | undefined;
7938
- archivedAt?: string | undefined;
7939
- isDeactivated?: boolean | undefined;
7940
- integrationId?: string | undefined;
7941
- parentId?: string | undefined;
7942
- isCustomized?: boolean | undefined;
7943
- publishedRevision?: string | undefined;
7944
- udm?: string | undefined;
7945
- appliedToIntegrations?: {
7946
- integration: {
7947
- id: string;
7948
- name: string;
7949
- logoUri: string;
7950
- key?: string | undefined;
7951
- uuid?: string | undefined;
7952
- description?: string | undefined;
7953
- meta?: Record<string, any> | undefined;
7954
- state?: WorkspaceElementState | undefined;
7955
- errors?: ErrorDataSchema[] | undefined;
7956
- revision?: string | undefined;
7957
- createdAt?: string | undefined;
7958
- updatedAt?: string | undefined;
7959
- archivedAt?: string | undefined;
7960
- isDeactivated?: boolean | undefined;
7961
- parameters?: any;
7962
- connectorId?: string | undefined;
7963
- connectorVersion?: string | undefined;
7964
- oAuthCallbackUri?: string | undefined;
7965
- hasMissingParameters?: boolean | undefined;
7966
- hasDocumentation?: boolean | undefined;
7967
- hasOperations?: boolean | undefined;
7968
- operationsCount?: number | undefined;
7969
- hasData?: boolean | undefined;
7970
- dataCollectionsCount?: number | undefined;
7971
- hasEvents?: boolean | undefined;
7972
- eventsCount?: number | undefined;
7973
- hasGlobalWebhooks?: boolean | undefined;
7974
- hasUdm?: boolean | undefined;
7975
- isTest?: boolean | undefined;
7976
- appUuid?: string | undefined;
7977
- authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
7978
- };
7979
- element: {
7980
- id: string;
7981
- name: string;
7982
- key?: string | undefined;
7983
- uuid?: string | undefined;
7984
- description?: string | undefined;
7985
- meta?: Record<string, any> | undefined;
7986
- state?: WorkspaceElementState | undefined;
7987
- errors?: ErrorDataSchema[] | undefined;
7988
- revision?: string | undefined;
7989
- createdAt?: string | undefined;
7990
- updatedAt?: string | undefined;
7991
- archivedAt?: string | undefined;
7992
- isDeactivated?: boolean | undefined;
7993
- integrationId?: string | undefined;
7994
- parentId?: string | undefined;
7995
- isCustomized?: boolean | undefined;
7996
- publishedRevision?: string | undefined;
7997
- udm?: string | undefined;
7998
- universalDataSourceId?: string | undefined;
7999
- collectionKey?: string | undefined;
8000
- collectionParameters?: any;
8001
- pullUpdatesIntervalSeconds?: number | undefined;
8002
- fullSyncIntervalSeconds?: number | undefined;
8003
- defaultPath?: string | undefined;
8004
- universalDataSourceRevision?: string | undefined;
8005
- };
8006
- }[] | undefined;
8007
- universalDataSourceId?: string | undefined;
8044
+ }, {
8045
+ path?: string | undefined;
8008
8046
  collectionKey?: string | undefined;
8009
8047
  collectionParameters?: any;
8010
8048
  pullUpdatesIntervalSeconds?: number | undefined;
8011
8049
  fullSyncIntervalSeconds?: number | undefined;
8012
- defaultPath?: string | undefined;
8013
- universalDataSourceRevision?: string | undefined;
8050
+ subscribedTo?: {
8051
+ created?: boolean | undefined;
8052
+ updated?: boolean | undefined;
8053
+ deleted?: boolean | undefined;
8054
+ } | undefined;
8014
8055
  }>;
8015
- type DataSourceApiResponse = z.infer<typeof DataSourceApiResponse>;
8016
- type DataSource = DataSourceApiResponse;
8056
+ type UpdateDataSourceInstanceRequest = z.infer<typeof UpdateDataSourceInstanceRequest>;
8057
+ declare const ListDataSourceInstancesForConnectionQuery: z.ZodObject<{
8058
+ dataSourceId: z.ZodOptional<z.ZodString>;
8059
+ } & {
8060
+ limit: z.ZodOptional<z.ZodNumber>;
8061
+ cursor: z.ZodOptional<z.ZodString>;
8062
+ }, "strip", z.ZodTypeAny, {
8063
+ limit?: number | undefined;
8064
+ cursor?: string | undefined;
8065
+ dataSourceId?: string | undefined;
8066
+ }, {
8067
+ limit?: number | undefined;
8068
+ cursor?: string | undefined;
8069
+ dataSourceId?: string | undefined;
8070
+ }>;
8071
+ type ListDataSourceInstancesForConnectionQuery = z.infer<typeof ListDataSourceInstancesForConnectionQuery>;
8072
+ type ListDataSourcesForIntegrationQuery = Omit<FindDataSourcesQuery, 'integrationId' | 'integrationKey'>;
8017
8073
 
8018
8074
  interface FindExternalEventSubscriptionsQuery extends PaginationQuery {
8019
8075
  userId?: string;
@@ -8467,7 +8523,6 @@ declare const FlowRunApiResponse: z.ZodObject<{
8467
8523
  errors?: ErrorDataSchema[] | undefined;
8468
8524
  integrationId?: string | undefined;
8469
8525
  connectionId?: string | undefined;
8470
- input?: any;
8471
8526
  endTime?: string | undefined;
8472
8527
  user?: {
8473
8528
  id: string;
@@ -8482,6 +8537,7 @@ declare const FlowRunApiResponse: z.ZodObject<{
8482
8537
  lastActiveAt?: string | undefined;
8483
8538
  isBillable?: boolean | undefined;
8484
8539
  } | undefined;
8540
+ input?: any;
8485
8541
  universalFlowId?: string | undefined;
8486
8542
  nodes?: Record<string, {
8487
8543
  state: FlowRunNodeState;
@@ -8586,7 +8642,6 @@ declare const FlowRunApiResponse: z.ZodObject<{
8586
8642
  errors?: ErrorDataSchema[] | undefined;
8587
8643
  integrationId?: string | undefined;
8588
8644
  connectionId?: string | undefined;
8589
- input?: any;
8590
8645
  endTime?: string | undefined;
8591
8646
  user?: {
8592
8647
  id: string;
@@ -8601,6 +8656,7 @@ declare const FlowRunApiResponse: z.ZodObject<{
8601
8656
  lastActiveAt?: string | undefined;
8602
8657
  isBillable?: boolean | undefined;
8603
8658
  } | undefined;
8659
+ input?: any;
8604
8660
  universalFlowId?: string | undefined;
8605
8661
  nodes?: Record<string, {
8606
8662
  state: FlowRunNodeState;
@@ -9035,7 +9091,6 @@ declare const FindFlowRunsResponse: z.ZodObject<{
9035
9091
  errors?: ErrorDataSchema[] | undefined;
9036
9092
  integrationId?: string | undefined;
9037
9093
  connectionId?: string | undefined;
9038
- input?: any;
9039
9094
  endTime?: string | undefined;
9040
9095
  user?: {
9041
9096
  id: string;
@@ -9050,6 +9105,7 @@ declare const FindFlowRunsResponse: z.ZodObject<{
9050
9105
  lastActiveAt?: string | undefined;
9051
9106
  isBillable?: boolean | undefined;
9052
9107
  } | undefined;
9108
+ input?: any;
9053
9109
  universalFlowId?: string | undefined;
9054
9110
  nodes?: Record<string, {
9055
9111
  state: FlowRunNodeState;
@@ -9154,7 +9210,6 @@ declare const FindFlowRunsResponse: z.ZodObject<{
9154
9210
  errors?: ErrorDataSchema[] | undefined;
9155
9211
  integrationId?: string | undefined;
9156
9212
  connectionId?: string | undefined;
9157
- input?: any;
9158
9213
  endTime?: string | undefined;
9159
9214
  user?: {
9160
9215
  id: string;
@@ -9169,6 +9224,7 @@ declare const FindFlowRunsResponse: z.ZodObject<{
9169
9224
  lastActiveAt?: string | undefined;
9170
9225
  isBillable?: boolean | undefined;
9171
9226
  } | undefined;
9227
+ input?: any;
9172
9228
  universalFlowId?: string | undefined;
9173
9229
  nodes?: Record<string, {
9174
9230
  state: FlowRunNodeState;
@@ -9276,7 +9332,6 @@ declare const FindFlowRunsResponse: z.ZodObject<{
9276
9332
  errors?: ErrorDataSchema[] | undefined;
9277
9333
  integrationId?: string | undefined;
9278
9334
  connectionId?: string | undefined;
9279
- input?: any;
9280
9335
  endTime?: string | undefined;
9281
9336
  user?: {
9282
9337
  id: string;
@@ -9291,6 +9346,7 @@ declare const FindFlowRunsResponse: z.ZodObject<{
9291
9346
  lastActiveAt?: string | undefined;
9292
9347
  isBillable?: boolean | undefined;
9293
9348
  } | undefined;
9349
+ input?: any;
9294
9350
  universalFlowId?: string | undefined;
9295
9351
  nodes?: Record<string, {
9296
9352
  state: FlowRunNodeState;
@@ -9398,7 +9454,6 @@ declare const FindFlowRunsResponse: z.ZodObject<{
9398
9454
  errors?: ErrorDataSchema[] | undefined;
9399
9455
  integrationId?: string | undefined;
9400
9456
  connectionId?: string | undefined;
9401
- input?: any;
9402
9457
  endTime?: string | undefined;
9403
9458
  user?: {
9404
9459
  id: string;
@@ -9413,6 +9468,7 @@ declare const FindFlowRunsResponse: z.ZodObject<{
9413
9468
  lastActiveAt?: string | undefined;
9414
9469
  isBillable?: boolean | undefined;
9415
9470
  } | undefined;
9471
+ input?: any;
9416
9472
  universalFlowId?: string | undefined;
9417
9473
  nodes?: Record<string, {
9418
9474
  state: FlowRunNodeState;
@@ -10029,35 +10085,6 @@ declare const ScreenApiResponse: zod.ZodObject<{
10029
10085
  type ScreenApiResponse = typeof ScreenApiResponse._type;
10030
10086
  type Screen = ScreenApiResponse;
10031
10087
 
10032
- interface ListFieldMappingsForIntegrationQuery extends CommonListElementsQuery {
10033
- universalFieldMappingId?: string | 'null';
10034
- }
10035
- interface FindFieldMappingsQuery extends ListFieldMappingsForIntegrationQuery {
10036
- integrationId?: string | 'null';
10037
- }
10038
- interface UpdateFieldMappingRequest {
10039
- key?: string;
10040
- name?: string;
10041
- dataSourceKey?: string;
10042
- dataSourceId?: string;
10043
- appSchema?: DataSchema;
10044
- direction?: FieldMappingDirection;
10045
- defaultImportValue?: any;
10046
- exportValue?: any;
10047
- importValue?: any;
10048
- defaultExportValue?: any;
10049
- frozenImportFields?: any;
10050
- frozenExportFields?: any;
10051
- frozenUnifiedExportFields?: any;
10052
- archivedAt?: string;
10053
- }
10054
- interface CreateFieldMappingRequest extends UpdateFieldMappingRequest {
10055
- key: string;
10056
- name: string;
10057
- integrationId?: string;
10058
- }
10059
- interface FieldMappingSelector extends IntegrationSpecificElementSelector {
10060
- }
10061
10088
  declare const FieldMappingApiResponse: z.ZodObject<{
10062
10089
  id: z.ZodString;
10063
10090
  key: z.ZodOptional<z.ZodString>;
@@ -10065,23 +10092,9 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10065
10092
  description: z.ZodOptional<z.ZodString>;
10066
10093
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
10067
10094
  integrationId: z.ZodOptional<z.ZodString>;
10068
- parentId: z.ZodOptional<z.ZodString>;
10069
- } & {
10070
- name: z.ZodString;
10071
- state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
10072
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
10073
- revision: z.ZodOptional<z.ZodString>;
10074
- createdAt: z.ZodOptional<z.ZodString>;
10075
- updatedAt: z.ZodOptional<z.ZodString>;
10076
- archivedAt: z.ZodOptional<z.ZodString>;
10077
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
10078
- isCustomized: z.ZodOptional<z.ZodBoolean>;
10079
- } & {
10080
- publishedRevision: z.ZodOptional<z.ZodString>;
10081
10095
  universalFieldMappingId: z.ZodOptional<z.ZodString>;
10082
- universalFieldMappingRevision: z.ZodOptional<z.ZodString>;
10083
- dataSourceId: z.ZodOptional<z.ZodString>;
10084
10096
  dataSourceKey: z.ZodOptional<z.ZodString>;
10097
+ dataSourceId: z.ZodOptional<z.ZodString>;
10085
10098
  appSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
10086
10099
  direction: z.ZodOptional<z.ZodNativeEnum<typeof FieldMappingDirection>>;
10087
10100
  defaultImportValue: z.ZodOptional<z.ZodAny>;
@@ -10091,6 +10104,17 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10091
10104
  frozenImportFields: z.ZodOptional<z.ZodAny>;
10092
10105
  frozenExportFields: z.ZodOptional<z.ZodAny>;
10093
10106
  frozenUnifiedExportFields: z.ZodOptional<z.ZodAny>;
10107
+ } & {
10108
+ name: z.ZodString;
10109
+ state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
10110
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
10111
+ revision: z.ZodOptional<z.ZodString>;
10112
+ createdAt: z.ZodOptional<z.ZodString>;
10113
+ updatedAt: z.ZodOptional<z.ZodString>;
10114
+ archivedAt: z.ZodOptional<z.ZodString>;
10115
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
10116
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
10117
+ universalFieldMappingRevision: z.ZodOptional<z.ZodString>;
10094
10118
  } & {
10095
10119
  integration: z.ZodOptional<z.ZodObject<{
10096
10120
  id: z.ZodString;
@@ -10198,23 +10222,9 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10198
10222
  description: z.ZodOptional<z.ZodString>;
10199
10223
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
10200
10224
  integrationId: z.ZodOptional<z.ZodString>;
10201
- parentId: z.ZodOptional<z.ZodString>;
10202
- } & {
10203
- name: z.ZodString;
10204
- state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
10205
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
10206
- revision: z.ZodOptional<z.ZodString>;
10207
- createdAt: z.ZodOptional<z.ZodString>;
10208
- updatedAt: z.ZodOptional<z.ZodString>;
10209
- archivedAt: z.ZodOptional<z.ZodString>;
10210
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
10211
- isCustomized: z.ZodOptional<z.ZodBoolean>;
10212
- } & {
10213
- publishedRevision: z.ZodOptional<z.ZodString>;
10214
10225
  universalFieldMappingId: z.ZodOptional<z.ZodString>;
10215
- universalFieldMappingRevision: z.ZodOptional<z.ZodString>;
10216
- dataSourceId: z.ZodOptional<z.ZodString>;
10217
10226
  dataSourceKey: z.ZodOptional<z.ZodString>;
10227
+ dataSourceId: z.ZodOptional<z.ZodString>;
10218
10228
  appSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
10219
10229
  direction: z.ZodOptional<z.ZodNativeEnum<typeof FieldMappingDirection>>;
10220
10230
  defaultImportValue: z.ZodOptional<z.ZodAny>;
@@ -10224,6 +10234,17 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10224
10234
  frozenImportFields: z.ZodOptional<z.ZodAny>;
10225
10235
  frozenExportFields: z.ZodOptional<z.ZodAny>;
10226
10236
  frozenUnifiedExportFields: z.ZodOptional<z.ZodAny>;
10237
+ } & {
10238
+ name: z.ZodString;
10239
+ state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
10240
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
10241
+ revision: z.ZodOptional<z.ZodString>;
10242
+ createdAt: z.ZodOptional<z.ZodString>;
10243
+ updatedAt: z.ZodOptional<z.ZodString>;
10244
+ archivedAt: z.ZodOptional<z.ZodString>;
10245
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
10246
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
10247
+ universalFieldMappingRevision: z.ZodOptional<z.ZodString>;
10227
10248
  }, "strip", z.ZodTypeAny, {
10228
10249
  id: string;
10229
10250
  name: string;
@@ -10239,13 +10260,10 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10239
10260
  archivedAt?: string | undefined;
10240
10261
  isDeactivated?: boolean | undefined;
10241
10262
  integrationId?: string | undefined;
10242
- parentId?: string | undefined;
10243
10263
  isCustomized?: boolean | undefined;
10244
- publishedRevision?: string | undefined;
10245
10264
  universalFieldMappingId?: string | undefined;
10246
- universalFieldMappingRevision?: string | undefined;
10247
- dataSourceId?: string | undefined;
10248
10265
  dataSourceKey?: string | undefined;
10266
+ dataSourceId?: string | undefined;
10249
10267
  appSchema?: DataSchema | undefined;
10250
10268
  direction?: FieldMappingDirection | undefined;
10251
10269
  defaultImportValue?: any;
@@ -10255,6 +10273,7 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10255
10273
  frozenImportFields?: any;
10256
10274
  frozenExportFields?: any;
10257
10275
  frozenUnifiedExportFields?: any;
10276
+ universalFieldMappingRevision?: string | undefined;
10258
10277
  }, {
10259
10278
  id: string;
10260
10279
  name: string;
@@ -10270,13 +10289,10 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10270
10289
  archivedAt?: string | undefined;
10271
10290
  isDeactivated?: boolean | undefined;
10272
10291
  integrationId?: string | undefined;
10273
- parentId?: string | undefined;
10274
10292
  isCustomized?: boolean | undefined;
10275
- publishedRevision?: string | undefined;
10276
10293
  universalFieldMappingId?: string | undefined;
10277
- universalFieldMappingRevision?: string | undefined;
10278
- dataSourceId?: string | undefined;
10279
10294
  dataSourceKey?: string | undefined;
10295
+ dataSourceId?: string | undefined;
10280
10296
  appSchema?: DataSchema | undefined;
10281
10297
  direction?: FieldMappingDirection | undefined;
10282
10298
  defaultImportValue?: any;
@@ -10286,6 +10302,7 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10286
10302
  frozenImportFields?: any;
10287
10303
  frozenExportFields?: any;
10288
10304
  frozenUnifiedExportFields?: any;
10305
+ universalFieldMappingRevision?: string | undefined;
10289
10306
  }>;
10290
10307
  integration: z.ZodObject<{
10291
10308
  id: z.ZodString;
@@ -10434,13 +10451,10 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10434
10451
  archivedAt?: string | undefined;
10435
10452
  isDeactivated?: boolean | undefined;
10436
10453
  integrationId?: string | undefined;
10437
- parentId?: string | undefined;
10438
10454
  isCustomized?: boolean | undefined;
10439
- publishedRevision?: string | undefined;
10440
10455
  universalFieldMappingId?: string | undefined;
10441
- universalFieldMappingRevision?: string | undefined;
10442
- dataSourceId?: string | undefined;
10443
10456
  dataSourceKey?: string | undefined;
10457
+ dataSourceId?: string | undefined;
10444
10458
  appSchema?: DataSchema | undefined;
10445
10459
  direction?: FieldMappingDirection | undefined;
10446
10460
  defaultImportValue?: any;
@@ -10450,6 +10464,7 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10450
10464
  frozenImportFields?: any;
10451
10465
  frozenExportFields?: any;
10452
10466
  frozenUnifiedExportFields?: any;
10467
+ universalFieldMappingRevision?: string | undefined;
10453
10468
  };
10454
10469
  }, {
10455
10470
  integration: {
@@ -10500,13 +10515,10 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10500
10515
  archivedAt?: string | undefined;
10501
10516
  isDeactivated?: boolean | undefined;
10502
10517
  integrationId?: string | undefined;
10503
- parentId?: string | undefined;
10504
10518
  isCustomized?: boolean | undefined;
10505
- publishedRevision?: string | undefined;
10506
10519
  universalFieldMappingId?: string | undefined;
10507
- universalFieldMappingRevision?: string | undefined;
10508
- dataSourceId?: string | undefined;
10509
10520
  dataSourceKey?: string | undefined;
10521
+ dataSourceId?: string | undefined;
10510
10522
  appSchema?: DataSchema | undefined;
10511
10523
  direction?: FieldMappingDirection | undefined;
10512
10524
  defaultImportValue?: any;
@@ -10516,6 +10528,7 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10516
10528
  frozenImportFields?: any;
10517
10529
  frozenExportFields?: any;
10518
10530
  frozenUnifiedExportFields?: any;
10531
+ universalFieldMappingRevision?: string | undefined;
10519
10532
  };
10520
10533
  }>, "many">>;
10521
10534
  }, "strip", z.ZodTypeAny, {
@@ -10566,13 +10579,10 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10566
10579
  archivedAt?: string | undefined;
10567
10580
  isDeactivated?: boolean | undefined;
10568
10581
  integrationId?: string | undefined;
10569
- parentId?: string | undefined;
10570
10582
  isCustomized?: boolean | undefined;
10571
- publishedRevision?: string | undefined;
10572
10583
  universalFieldMappingId?: string | undefined;
10573
- universalFieldMappingRevision?: string | undefined;
10574
- dataSourceId?: string | undefined;
10575
10584
  dataSourceKey?: string | undefined;
10585
+ dataSourceId?: string | undefined;
10576
10586
  appSchema?: DataSchema | undefined;
10577
10587
  direction?: FieldMappingDirection | undefined;
10578
10588
  defaultImportValue?: any;
@@ -10582,6 +10592,7 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10582
10592
  frozenImportFields?: any;
10583
10593
  frozenExportFields?: any;
10584
10594
  frozenUnifiedExportFields?: any;
10595
+ universalFieldMappingRevision?: string | undefined;
10585
10596
  appliedToIntegrations?: {
10586
10597
  integration: {
10587
10598
  id: string;
@@ -10631,13 +10642,10 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10631
10642
  archivedAt?: string | undefined;
10632
10643
  isDeactivated?: boolean | undefined;
10633
10644
  integrationId?: string | undefined;
10634
- parentId?: string | undefined;
10635
10645
  isCustomized?: boolean | undefined;
10636
- publishedRevision?: string | undefined;
10637
10646
  universalFieldMappingId?: string | undefined;
10638
- universalFieldMappingRevision?: string | undefined;
10639
- dataSourceId?: string | undefined;
10640
10647
  dataSourceKey?: string | undefined;
10648
+ dataSourceId?: string | undefined;
10641
10649
  appSchema?: DataSchema | undefined;
10642
10650
  direction?: FieldMappingDirection | undefined;
10643
10651
  defaultImportValue?: any;
@@ -10647,6 +10655,7 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10647
10655
  frozenImportFields?: any;
10648
10656
  frozenExportFields?: any;
10649
10657
  frozenUnifiedExportFields?: any;
10658
+ universalFieldMappingRevision?: string | undefined;
10650
10659
  };
10651
10660
  }[] | undefined;
10652
10661
  }, {
@@ -10697,13 +10706,10 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10697
10706
  archivedAt?: string | undefined;
10698
10707
  isDeactivated?: boolean | undefined;
10699
10708
  integrationId?: string | undefined;
10700
- parentId?: string | undefined;
10701
10709
  isCustomized?: boolean | undefined;
10702
- publishedRevision?: string | undefined;
10703
10710
  universalFieldMappingId?: string | undefined;
10704
- universalFieldMappingRevision?: string | undefined;
10705
- dataSourceId?: string | undefined;
10706
10711
  dataSourceKey?: string | undefined;
10712
+ dataSourceId?: string | undefined;
10707
10713
  appSchema?: DataSchema | undefined;
10708
10714
  direction?: FieldMappingDirection | undefined;
10709
10715
  defaultImportValue?: any;
@@ -10713,6 +10719,7 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10713
10719
  frozenImportFields?: any;
10714
10720
  frozenExportFields?: any;
10715
10721
  frozenUnifiedExportFields?: any;
10722
+ universalFieldMappingRevision?: string | undefined;
10716
10723
  appliedToIntegrations?: {
10717
10724
  integration: {
10718
10725
  id: string;
@@ -10762,13 +10769,10 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10762
10769
  archivedAt?: string | undefined;
10763
10770
  isDeactivated?: boolean | undefined;
10764
10771
  integrationId?: string | undefined;
10765
- parentId?: string | undefined;
10766
10772
  isCustomized?: boolean | undefined;
10767
- publishedRevision?: string | undefined;
10768
10773
  universalFieldMappingId?: string | undefined;
10769
- universalFieldMappingRevision?: string | undefined;
10770
- dataSourceId?: string | undefined;
10771
10774
  dataSourceKey?: string | undefined;
10775
+ dataSourceId?: string | undefined;
10772
10776
  appSchema?: DataSchema | undefined;
10773
10777
  direction?: FieldMappingDirection | undefined;
10774
10778
  defaultImportValue?: any;
@@ -10778,11 +10782,164 @@ declare const FieldMappingApiResponse: z.ZodObject<{
10778
10782
  frozenImportFields?: any;
10779
10783
  frozenExportFields?: any;
10780
10784
  frozenUnifiedExportFields?: any;
10785
+ universalFieldMappingRevision?: string | undefined;
10781
10786
  };
10782
10787
  }[] | undefined;
10783
10788
  }>;
10784
10789
  type FieldMappingApiResponse = z.infer<typeof FieldMappingApiResponse>;
10785
10790
  type FieldMapping = FieldMappingApiResponse;
10791
+ declare const FindFieldMappingsQuery: z.ZodObject<{
10792
+ limit: z.ZodOptional<z.ZodNumber>;
10793
+ cursor: z.ZodOptional<z.ZodString>;
10794
+ } & {
10795
+ integrationId: z.ZodOptional<z.ZodString>;
10796
+ integrationKey: z.ZodOptional<z.ZodString>;
10797
+ universalFieldMappingId: z.ZodOptional<z.ZodString>;
10798
+ search: z.ZodOptional<z.ZodString>;
10799
+ includeArchived: z.ZodOptional<z.ZodEffects<z.ZodBoolean, boolean, unknown>>;
10800
+ }, "strip", z.ZodTypeAny, {
10801
+ search?: string | undefined;
10802
+ integrationId?: string | undefined;
10803
+ includeArchived?: boolean | undefined;
10804
+ limit?: number | undefined;
10805
+ cursor?: string | undefined;
10806
+ integrationKey?: string | undefined;
10807
+ universalFieldMappingId?: string | undefined;
10808
+ }, {
10809
+ search?: string | undefined;
10810
+ integrationId?: string | undefined;
10811
+ includeArchived?: unknown;
10812
+ limit?: number | undefined;
10813
+ cursor?: string | undefined;
10814
+ integrationKey?: string | undefined;
10815
+ universalFieldMappingId?: string | undefined;
10816
+ }>;
10817
+ type FindFieldMappingsQuery = z.infer<typeof FindFieldMappingsQuery>;
10818
+ declare const CreateFieldMappingRequest: z.ZodObject<Omit<{
10819
+ key: z.ZodOptional<z.ZodString>;
10820
+ name: z.ZodOptional<z.ZodString>;
10821
+ uuid: z.ZodOptional<z.ZodString>;
10822
+ description: z.ZodOptional<z.ZodString>;
10823
+ meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
10824
+ } & {
10825
+ integrationId: z.ZodOptional<z.ZodString>;
10826
+ parentId: z.ZodOptional<z.ZodString>;
10827
+ }, "parentId"> & {
10828
+ universalFieldMappingId: z.ZodOptional<z.ZodString>;
10829
+ dataSourceKey: z.ZodOptional<z.ZodString>;
10830
+ dataSourceId: z.ZodOptional<z.ZodString>;
10831
+ appSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
10832
+ direction: z.ZodOptional<z.ZodNativeEnum<typeof FieldMappingDirection>>;
10833
+ defaultImportValue: z.ZodOptional<z.ZodAny>;
10834
+ defaultExportValue: z.ZodOptional<z.ZodAny>;
10835
+ importValue: z.ZodOptional<z.ZodAny>;
10836
+ exportValue: z.ZodOptional<z.ZodAny>;
10837
+ frozenImportFields: z.ZodOptional<z.ZodAny>;
10838
+ frozenExportFields: z.ZodOptional<z.ZodAny>;
10839
+ frozenUnifiedExportFields: z.ZodOptional<z.ZodAny>;
10840
+ }, "strip", z.ZodTypeAny, {
10841
+ key?: string | undefined;
10842
+ name?: string | undefined;
10843
+ uuid?: string | undefined;
10844
+ description?: string | undefined;
10845
+ meta?: Record<string, any> | undefined;
10846
+ integrationId?: string | undefined;
10847
+ universalFieldMappingId?: string | undefined;
10848
+ dataSourceKey?: string | undefined;
10849
+ dataSourceId?: string | undefined;
10850
+ appSchema?: DataSchema | undefined;
10851
+ direction?: FieldMappingDirection | undefined;
10852
+ defaultImportValue?: any;
10853
+ defaultExportValue?: any;
10854
+ importValue?: any;
10855
+ exportValue?: any;
10856
+ frozenImportFields?: any;
10857
+ frozenExportFields?: any;
10858
+ frozenUnifiedExportFields?: any;
10859
+ }, {
10860
+ key?: string | undefined;
10861
+ name?: string | undefined;
10862
+ uuid?: string | undefined;
10863
+ description?: string | undefined;
10864
+ meta?: Record<string, any> | undefined;
10865
+ integrationId?: string | undefined;
10866
+ universalFieldMappingId?: string | undefined;
10867
+ dataSourceKey?: string | undefined;
10868
+ dataSourceId?: string | undefined;
10869
+ appSchema?: DataSchema | undefined;
10870
+ direction?: FieldMappingDirection | undefined;
10871
+ defaultImportValue?: any;
10872
+ defaultExportValue?: any;
10873
+ importValue?: any;
10874
+ exportValue?: any;
10875
+ frozenImportFields?: any;
10876
+ frozenExportFields?: any;
10877
+ frozenUnifiedExportFields?: any;
10878
+ }>;
10879
+ type CreateFieldMappingRequest = z.infer<typeof CreateFieldMappingRequest>;
10880
+ declare const UpdateFieldMappingRequest: z.ZodObject<{
10881
+ key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10882
+ name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10883
+ uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10884
+ description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10885
+ meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
10886
+ integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10887
+ universalFieldMappingId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10888
+ dataSourceKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10889
+ dataSourceId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
10890
+ appSchema: z.ZodOptional<z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>>;
10891
+ direction: z.ZodOptional<z.ZodOptional<z.ZodNativeEnum<typeof FieldMappingDirection>>>;
10892
+ defaultImportValue: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
10893
+ defaultExportValue: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
10894
+ importValue: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
10895
+ exportValue: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
10896
+ frozenImportFields: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
10897
+ frozenExportFields: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
10898
+ frozenUnifiedExportFields: z.ZodOptional<z.ZodOptional<z.ZodAny>>;
10899
+ }, "strip", z.ZodTypeAny, {
10900
+ key?: string | undefined;
10901
+ name?: string | undefined;
10902
+ uuid?: string | undefined;
10903
+ description?: string | undefined;
10904
+ meta?: Record<string, any> | undefined;
10905
+ integrationId?: string | undefined;
10906
+ universalFieldMappingId?: string | undefined;
10907
+ dataSourceKey?: string | undefined;
10908
+ dataSourceId?: string | undefined;
10909
+ appSchema?: DataSchema | undefined;
10910
+ direction?: FieldMappingDirection | undefined;
10911
+ defaultImportValue?: any;
10912
+ defaultExportValue?: any;
10913
+ importValue?: any;
10914
+ exportValue?: any;
10915
+ frozenImportFields?: any;
10916
+ frozenExportFields?: any;
10917
+ frozenUnifiedExportFields?: any;
10918
+ }, {
10919
+ key?: string | undefined;
10920
+ name?: string | undefined;
10921
+ uuid?: string | undefined;
10922
+ description?: string | undefined;
10923
+ meta?: Record<string, any> | undefined;
10924
+ integrationId?: string | undefined;
10925
+ universalFieldMappingId?: string | undefined;
10926
+ dataSourceKey?: string | undefined;
10927
+ dataSourceId?: string | undefined;
10928
+ appSchema?: DataSchema | undefined;
10929
+ direction?: FieldMappingDirection | undefined;
10930
+ defaultImportValue?: any;
10931
+ defaultExportValue?: any;
10932
+ importValue?: any;
10933
+ exportValue?: any;
10934
+ frozenImportFields?: any;
10935
+ frozenExportFields?: any;
10936
+ frozenUnifiedExportFields?: any;
10937
+ }>;
10938
+ type UpdateFieldMappingRequest = z.infer<typeof UpdateFieldMappingRequest>;
10939
+ interface FieldMappingSelector extends IntegrationSpecificElementSelector {
10940
+ }
10941
+ interface ListFieldMappingsForIntegrationQuery extends Omit<FindFieldMappingsQuery, 'integrationId' | 'integrationKey'> {
10942
+ }
10786
10943
 
10787
10944
  type ListFieldMappingInstancesForConnectionQuery = CommonInstancesListQuery & {
10788
10945
  fieldMappingId?: string;
@@ -11040,23 +11197,9 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
11040
11197
  description: z.ZodOptional<z.ZodString>;
11041
11198
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
11042
11199
  integrationId: z.ZodOptional<z.ZodString>;
11043
- parentId: z.ZodOptional<z.ZodString>;
11044
- } & {
11045
- name: z.ZodString;
11046
- state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
11047
- errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
11048
- revision: z.ZodOptional<z.ZodString>;
11049
- createdAt: z.ZodOptional<z.ZodString>;
11050
- updatedAt: z.ZodOptional<z.ZodString>;
11051
- archivedAt: z.ZodOptional<z.ZodString>;
11052
- isDeactivated: z.ZodOptional<z.ZodBoolean>;
11053
- isCustomized: z.ZodOptional<z.ZodBoolean>;
11054
- } & {
11055
- publishedRevision: z.ZodOptional<z.ZodString>;
11056
11200
  universalFieldMappingId: z.ZodOptional<z.ZodString>;
11057
- universalFieldMappingRevision: z.ZodOptional<z.ZodString>;
11058
- dataSourceId: z.ZodOptional<z.ZodString>;
11059
11201
  dataSourceKey: z.ZodOptional<z.ZodString>;
11202
+ dataSourceId: z.ZodOptional<z.ZodString>;
11060
11203
  appSchema: z.ZodOptional<z.ZodType<DataSchema, z.ZodTypeDef, DataSchema>>;
11061
11204
  direction: z.ZodOptional<z.ZodNativeEnum<typeof FieldMappingDirection>>;
11062
11205
  defaultImportValue: z.ZodOptional<z.ZodAny>;
@@ -11066,6 +11209,17 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
11066
11209
  frozenImportFields: z.ZodOptional<z.ZodAny>;
11067
11210
  frozenExportFields: z.ZodOptional<z.ZodAny>;
11068
11211
  frozenUnifiedExportFields: z.ZodOptional<z.ZodAny>;
11212
+ } & {
11213
+ name: z.ZodString;
11214
+ state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
11215
+ errors: z.ZodOptional<z.ZodArray<z.ZodType<ErrorDataSchema, z.ZodTypeDef, ErrorDataSchema>, "many">>;
11216
+ revision: z.ZodOptional<z.ZodString>;
11217
+ createdAt: z.ZodOptional<z.ZodString>;
11218
+ updatedAt: z.ZodOptional<z.ZodString>;
11219
+ archivedAt: z.ZodOptional<z.ZodString>;
11220
+ isDeactivated: z.ZodOptional<z.ZodBoolean>;
11221
+ isCustomized: z.ZodOptional<z.ZodBoolean>;
11222
+ universalFieldMappingRevision: z.ZodOptional<z.ZodString>;
11069
11223
  }, "strip", z.ZodTypeAny, {
11070
11224
  id: string;
11071
11225
  name: string;
@@ -11081,13 +11235,10 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
11081
11235
  archivedAt?: string | undefined;
11082
11236
  isDeactivated?: boolean | undefined;
11083
11237
  integrationId?: string | undefined;
11084
- parentId?: string | undefined;
11085
11238
  isCustomized?: boolean | undefined;
11086
- publishedRevision?: string | undefined;
11087
11239
  universalFieldMappingId?: string | undefined;
11088
- universalFieldMappingRevision?: string | undefined;
11089
- dataSourceId?: string | undefined;
11090
11240
  dataSourceKey?: string | undefined;
11241
+ dataSourceId?: string | undefined;
11091
11242
  appSchema?: DataSchema | undefined;
11092
11243
  direction?: FieldMappingDirection | undefined;
11093
11244
  defaultImportValue?: any;
@@ -11097,6 +11248,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
11097
11248
  frozenImportFields?: any;
11098
11249
  frozenExportFields?: any;
11099
11250
  frozenUnifiedExportFields?: any;
11251
+ universalFieldMappingRevision?: string | undefined;
11100
11252
  }, {
11101
11253
  id: string;
11102
11254
  name: string;
@@ -11112,13 +11264,10 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
11112
11264
  archivedAt?: string | undefined;
11113
11265
  isDeactivated?: boolean | undefined;
11114
11266
  integrationId?: string | undefined;
11115
- parentId?: string | undefined;
11116
11267
  isCustomized?: boolean | undefined;
11117
- publishedRevision?: string | undefined;
11118
11268
  universalFieldMappingId?: string | undefined;
11119
- universalFieldMappingRevision?: string | undefined;
11120
- dataSourceId?: string | undefined;
11121
11269
  dataSourceKey?: string | undefined;
11270
+ dataSourceId?: string | undefined;
11122
11271
  appSchema?: DataSchema | undefined;
11123
11272
  direction?: FieldMappingDirection | undefined;
11124
11273
  defaultImportValue?: any;
@@ -11128,6 +11277,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
11128
11277
  frozenImportFields?: any;
11129
11278
  frozenExportFields?: any;
11130
11279
  frozenUnifiedExportFields?: any;
11280
+ universalFieldMappingRevision?: string | undefined;
11131
11281
  }>>;
11132
11282
  dataSourceInstance: z.ZodOptional<z.ZodObject<{
11133
11283
  id: z.ZodString;
@@ -11896,7 +12046,13 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
11896
12046
  description: z.ZodOptional<z.ZodString>;
11897
12047
  meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
11898
12048
  integrationId: z.ZodOptional<z.ZodString>;
11899
- parentId: z.ZodOptional<z.ZodString>;
12049
+ universalDataSourceId: z.ZodOptional<z.ZodString>;
12050
+ udm: z.ZodOptional<z.ZodString>;
12051
+ pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
12052
+ fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
12053
+ collectionKey: z.ZodOptional<z.ZodString>;
12054
+ collectionParameters: z.ZodOptional<z.ZodAny>;
12055
+ defaultPath: z.ZodOptional<z.ZodString>;
11900
12056
  } & {
11901
12057
  name: z.ZodString;
11902
12058
  state: z.ZodOptional<z.ZodNativeEnum<typeof WorkspaceElementState>>;
@@ -11907,16 +12063,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
11907
12063
  archivedAt: z.ZodOptional<z.ZodString>;
11908
12064
  isDeactivated: z.ZodOptional<z.ZodBoolean>;
11909
12065
  isCustomized: z.ZodOptional<z.ZodBoolean>;
11910
- } & {
11911
- publishedRevision: z.ZodOptional<z.ZodString>;
11912
- universalDataSourceId: z.ZodOptional<z.ZodString>;
11913
12066
  universalDataSourceRevision: z.ZodOptional<z.ZodString>;
11914
- udm: z.ZodOptional<z.ZodString>;
11915
- pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
11916
- fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
11917
- collectionKey: z.ZodOptional<z.ZodString>;
11918
- collectionParameters: z.ZodOptional<z.ZodAny>;
11919
- defaultPath: z.ZodOptional<z.ZodString>;
11920
12067
  }, "strip", z.ZodTypeAny, {
11921
12068
  id: string;
11922
12069
  name: string;
@@ -11932,9 +12079,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
11932
12079
  archivedAt?: string | undefined;
11933
12080
  isDeactivated?: boolean | undefined;
11934
12081
  integrationId?: string | undefined;
11935
- parentId?: string | undefined;
11936
12082
  isCustomized?: boolean | undefined;
11937
- publishedRevision?: string | undefined;
11938
12083
  udm?: string | undefined;
11939
12084
  universalDataSourceId?: string | undefined;
11940
12085
  collectionKey?: string | undefined;
@@ -11958,9 +12103,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
11958
12103
  archivedAt?: string | undefined;
11959
12104
  isDeactivated?: boolean | undefined;
11960
12105
  integrationId?: string | undefined;
11961
- parentId?: string | undefined;
11962
12106
  isCustomized?: boolean | undefined;
11963
- publishedRevision?: string | undefined;
11964
12107
  udm?: string | undefined;
11965
12108
  universalDataSourceId?: string | undefined;
11966
12109
  collectionKey?: string | undefined;
@@ -12196,7 +12339,6 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
12196
12339
  isDeactivated?: boolean | undefined;
12197
12340
  isCustomized?: boolean | undefined;
12198
12341
  instanceKey?: string | undefined;
12199
- dataSourceId?: string | undefined;
12200
12342
  udm?: string | undefined;
12201
12343
  collectionSpec?: {
12202
12344
  type: "collection";
@@ -12346,6 +12488,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
12346
12488
  lastActiveAt?: string | undefined;
12347
12489
  isBillable?: boolean | undefined;
12348
12490
  } | undefined;
12491
+ dataSourceId?: string | undefined;
12349
12492
  dataSourceRevision?: string | undefined;
12350
12493
  universalDataSourceId?: string | undefined;
12351
12494
  collectionKey?: string | undefined;
@@ -12370,9 +12513,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
12370
12513
  archivedAt?: string | undefined;
12371
12514
  isDeactivated?: boolean | undefined;
12372
12515
  integrationId?: string | undefined;
12373
- parentId?: string | undefined;
12374
12516
  isCustomized?: boolean | undefined;
12375
- publishedRevision?: string | undefined;
12376
12517
  udm?: string | undefined;
12377
12518
  universalDataSourceId?: string | undefined;
12378
12519
  collectionKey?: string | undefined;
@@ -12454,7 +12595,6 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
12454
12595
  isDeactivated?: boolean | undefined;
12455
12596
  isCustomized?: boolean | undefined;
12456
12597
  instanceKey?: string | undefined;
12457
- dataSourceId?: string | undefined;
12458
12598
  udm?: string | undefined;
12459
12599
  collectionSpec?: {
12460
12600
  type: "collection";
@@ -12604,6 +12744,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
12604
12744
  lastActiveAt?: string | undefined;
12605
12745
  isBillable?: boolean | undefined;
12606
12746
  } | undefined;
12747
+ dataSourceId?: string | undefined;
12607
12748
  dataSourceRevision?: string | undefined;
12608
12749
  universalDataSourceId?: string | undefined;
12609
12750
  collectionKey?: string | undefined;
@@ -12628,9 +12769,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
12628
12769
  archivedAt?: string | undefined;
12629
12770
  isDeactivated?: boolean | undefined;
12630
12771
  integrationId?: string | undefined;
12631
- parentId?: string | undefined;
12632
12772
  isCustomized?: boolean | undefined;
12633
- publishedRevision?: string | undefined;
12634
12773
  udm?: string | undefined;
12635
12774
  universalDataSourceId?: string | undefined;
12636
12775
  collectionKey?: string | undefined;
@@ -12713,12 +12852,6 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
12713
12852
  isDeactivated?: boolean | undefined;
12714
12853
  isCustomized?: boolean | undefined;
12715
12854
  instanceKey?: string | undefined;
12716
- appSchema?: DataSchema | undefined;
12717
- direction?: FieldMappingDirection | undefined;
12718
- importValue?: any;
12719
- exportValue?: any;
12720
- frozenImportFields?: string[] | undefined;
12721
- frozenExportFields?: string[] | undefined;
12722
12855
  user?: {
12723
12856
  id: string;
12724
12857
  name: string;
@@ -12732,6 +12865,12 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
12732
12865
  lastActiveAt?: string | undefined;
12733
12866
  isBillable?: boolean | undefined;
12734
12867
  } | undefined;
12868
+ appSchema?: DataSchema | undefined;
12869
+ direction?: FieldMappingDirection | undefined;
12870
+ importValue?: any;
12871
+ exportValue?: any;
12872
+ frozenImportFields?: string[] | undefined;
12873
+ frozenExportFields?: string[] | undefined;
12735
12874
  dataSourceInstanceId?: string | undefined;
12736
12875
  fieldMappingRevision?: string | undefined;
12737
12876
  fieldMappingId?: string | undefined;
@@ -12754,13 +12893,10 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
12754
12893
  archivedAt?: string | undefined;
12755
12894
  isDeactivated?: boolean | undefined;
12756
12895
  integrationId?: string | undefined;
12757
- parentId?: string | undefined;
12758
12896
  isCustomized?: boolean | undefined;
12759
- publishedRevision?: string | undefined;
12760
12897
  universalFieldMappingId?: string | undefined;
12761
- universalFieldMappingRevision?: string | undefined;
12762
- dataSourceId?: string | undefined;
12763
12898
  dataSourceKey?: string | undefined;
12899
+ dataSourceId?: string | undefined;
12764
12900
  appSchema?: DataSchema | undefined;
12765
12901
  direction?: FieldMappingDirection | undefined;
12766
12902
  defaultImportValue?: any;
@@ -12770,6 +12906,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
12770
12906
  frozenImportFields?: any;
12771
12907
  frozenExportFields?: any;
12772
12908
  frozenUnifiedExportFields?: any;
12909
+ universalFieldMappingRevision?: string | undefined;
12773
12910
  } | undefined;
12774
12911
  dataSourceInstance?: {
12775
12912
  id: string;
@@ -12843,7 +12980,6 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
12843
12980
  isDeactivated?: boolean | undefined;
12844
12981
  isCustomized?: boolean | undefined;
12845
12982
  instanceKey?: string | undefined;
12846
- dataSourceId?: string | undefined;
12847
12983
  udm?: string | undefined;
12848
12984
  collectionSpec?: {
12849
12985
  type: "collection";
@@ -12993,6 +13129,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
12993
13129
  lastActiveAt?: string | undefined;
12994
13130
  isBillable?: boolean | undefined;
12995
13131
  } | undefined;
13132
+ dataSourceId?: string | undefined;
12996
13133
  dataSourceRevision?: string | undefined;
12997
13134
  universalDataSourceId?: string | undefined;
12998
13135
  collectionKey?: string | undefined;
@@ -13017,9 +13154,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
13017
13154
  archivedAt?: string | undefined;
13018
13155
  isDeactivated?: boolean | undefined;
13019
13156
  integrationId?: string | undefined;
13020
- parentId?: string | undefined;
13021
13157
  isCustomized?: boolean | undefined;
13022
- publishedRevision?: string | undefined;
13023
13158
  udm?: string | undefined;
13024
13159
  universalDataSourceId?: string | undefined;
13025
13160
  collectionKey?: string | undefined;
@@ -13102,12 +13237,6 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
13102
13237
  isDeactivated?: boolean | undefined;
13103
13238
  isCustomized?: boolean | undefined;
13104
13239
  instanceKey?: string | undefined;
13105
- appSchema?: DataSchema | undefined;
13106
- direction?: FieldMappingDirection | undefined;
13107
- importValue?: any;
13108
- exportValue?: any;
13109
- frozenImportFields?: string[] | undefined;
13110
- frozenExportFields?: string[] | undefined;
13111
13240
  user?: {
13112
13241
  id: string;
13113
13242
  name: string;
@@ -13121,6 +13250,12 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
13121
13250
  lastActiveAt?: string | undefined;
13122
13251
  isBillable?: boolean | undefined;
13123
13252
  } | undefined;
13253
+ appSchema?: DataSchema | undefined;
13254
+ direction?: FieldMappingDirection | undefined;
13255
+ importValue?: any;
13256
+ exportValue?: any;
13257
+ frozenImportFields?: string[] | undefined;
13258
+ frozenExportFields?: string[] | undefined;
13124
13259
  dataSourceInstanceId?: string | undefined;
13125
13260
  fieldMappingRevision?: string | undefined;
13126
13261
  fieldMappingId?: string | undefined;
@@ -13143,13 +13278,10 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
13143
13278
  archivedAt?: string | undefined;
13144
13279
  isDeactivated?: boolean | undefined;
13145
13280
  integrationId?: string | undefined;
13146
- parentId?: string | undefined;
13147
13281
  isCustomized?: boolean | undefined;
13148
- publishedRevision?: string | undefined;
13149
13282
  universalFieldMappingId?: string | undefined;
13150
- universalFieldMappingRevision?: string | undefined;
13151
- dataSourceId?: string | undefined;
13152
13283
  dataSourceKey?: string | undefined;
13284
+ dataSourceId?: string | undefined;
13153
13285
  appSchema?: DataSchema | undefined;
13154
13286
  direction?: FieldMappingDirection | undefined;
13155
13287
  defaultImportValue?: any;
@@ -13159,6 +13291,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
13159
13291
  frozenImportFields?: any;
13160
13292
  frozenExportFields?: any;
13161
13293
  frozenUnifiedExportFields?: any;
13294
+ universalFieldMappingRevision?: string | undefined;
13162
13295
  } | undefined;
13163
13296
  dataSourceInstance?: {
13164
13297
  id: string;
@@ -13232,7 +13365,6 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
13232
13365
  isDeactivated?: boolean | undefined;
13233
13366
  isCustomized?: boolean | undefined;
13234
13367
  instanceKey?: string | undefined;
13235
- dataSourceId?: string | undefined;
13236
13368
  udm?: string | undefined;
13237
13369
  collectionSpec?: {
13238
13370
  type: "collection";
@@ -13382,6 +13514,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
13382
13514
  lastActiveAt?: string | undefined;
13383
13515
  isBillable?: boolean | undefined;
13384
13516
  } | undefined;
13517
+ dataSourceId?: string | undefined;
13385
13518
  dataSourceRevision?: string | undefined;
13386
13519
  universalDataSourceId?: string | undefined;
13387
13520
  collectionKey?: string | undefined;
@@ -13406,9 +13539,7 @@ declare const FieldMappingInstanceApiResponse: z.ZodObject<{
13406
13539
  archivedAt?: string | undefined;
13407
13540
  isDeactivated?: boolean | undefined;
13408
13541
  integrationId?: string | undefined;
13409
- parentId?: string | undefined;
13410
13542
  isCustomized?: boolean | undefined;
13411
- publishedRevision?: string | undefined;
13412
13543
  udm?: string | undefined;
13413
13544
  universalDataSourceId?: string | undefined;
13414
13545
  collectionKey?: string | undefined;