@membranehq/sdk 0.5.1 → 0.5.2

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 (34) hide show
  1. package/dist/bundle.d.ts +160 -2153
  2. package/dist/dts/accessors/connections-accessors.d.ts +1 -15
  3. package/dist/dts/accessors/integrations-accessors.d.ts +1 -15
  4. package/dist/dts/workspace-elements/api/action-instances-api.d.ts +3 -3
  5. package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +5 -99
  6. package/dist/dts/workspace-elements/api/actions-api.d.ts +0 -192
  7. package/dist/dts/workspace-elements/api/connections-api.d.ts +291 -211
  8. package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +5 -99
  9. package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +5 -99
  10. package/dist/dts/workspace-elements/api/data-sources-api.d.ts +0 -192
  11. package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +5 -99
  12. package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +5 -99
  13. package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +5 -99
  14. package/dist/dts/workspace-elements/api/external-events-api.d.ts +0 -108
  15. package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +12 -228
  16. package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +0 -192
  17. package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +12 -228
  18. package/dist/dts/workspace-elements/api/flows-api.d.ts +42 -530
  19. package/dist/dts/workspace-elements/api/integrations-api.d.ts +109 -75
  20. package/dist/dts/workspace-elements/api/scenarios-api.d.ts +0 -84
  21. package/dist/dts/workspace-elements/base/action-instances/types.d.ts +3 -3
  22. package/dist/dts/workspace-elements/base/connections/types.d.ts +3 -9
  23. package/dist/dts/workspace-elements/base/flow-instances/schemas.d.ts +4 -4
  24. package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +2 -2
  25. package/dist/dts/workspace-elements/base/flows/types.d.ts +6 -6
  26. package/dist/dts/workspace-elements/base/integrations/types.d.ts +0 -407
  27. package/dist/dts/workspaces/types.d.ts +1 -1
  28. package/dist/index.d.ts +530 -3109
  29. package/dist/index.js +22 -18
  30. package/dist/index.js.map +1 -1
  31. package/dist/index.module.d.mts +530 -3109
  32. package/dist/index.module.mjs +22 -19
  33. package/dist/index.module.mjs.map +1 -1
  34. package/package.json +1 -1
@@ -123,9 +123,7 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
123
123
  isDefunct: z.ZodOptional<z.ZodBoolean>;
124
124
  error: any;
125
125
  integrationId: z.ZodString;
126
- credentials: z.ZodOptional<z.ZodUnknown>;
127
- parameters: z.ZodOptional<z.ZodUnknown>;
128
- connectorParameters: z.ZodOptional<z.ZodUnknown>;
126
+ authOptionKey: z.ZodOptional<z.ZodString>;
129
127
  createdAt: z.ZodString;
130
128
  updatedAt: z.ZodString;
131
129
  lastActiveAt: z.ZodOptional<z.ZodString>;
@@ -147,9 +145,7 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
147
145
  errors?: any[] | undefined;
148
146
  isDeactivated?: boolean | undefined;
149
147
  archivedAt?: string | undefined;
150
- credentials?: unknown;
151
- parameters?: unknown;
152
- connectorParameters?: unknown;
148
+ authOptionKey?: string | undefined;
153
149
  isTest?: boolean | undefined;
154
150
  disconnected?: boolean | undefined;
155
151
  isDefunct?: boolean | undefined;
@@ -168,9 +164,7 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
168
164
  errors?: any[] | undefined;
169
165
  isDeactivated?: boolean | undefined;
170
166
  archivedAt?: string | undefined;
171
- credentials?: unknown;
172
- parameters?: unknown;
173
- connectorParameters?: unknown;
167
+ authOptionKey?: string | undefined;
174
168
  isTest?: boolean | undefined;
175
169
  disconnected?: boolean | undefined;
176
170
  isDefunct?: boolean | undefined;
@@ -193,44 +187,8 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
193
187
  logoUri: z.ZodString;
194
188
  connectorId: z.ZodOptional<z.ZodString>;
195
189
  connectorVersion: z.ZodOptional<z.ZodString>;
196
- authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
197
- key: z.ZodString;
198
- type: z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>;
199
- title: z.ZodOptional<z.ZodString>;
200
- description: z.ZodOptional<z.ZodString>;
201
- ui: z.ZodOptional<z.ZodObject<{
202
- schema: z.ZodOptional<z.ZodAny>;
203
- helpUri: z.ZodOptional<z.ZodString>;
204
- }, "strip", z.ZodTypeAny, {
205
- schema?: any;
206
- helpUri?: string | undefined;
207
- }, {
208
- schema?: any;
209
- helpUri?: string | undefined;
210
- }>>;
211
- }, "strip", z.ZodTypeAny, {
212
- key: string;
213
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
214
- description?: string | undefined;
215
- title?: string | undefined;
216
- ui?: {
217
- schema?: any;
218
- helpUri?: string | undefined;
219
- } | undefined;
220
- }, {
221
- key: string;
222
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
223
- description?: string | undefined;
224
- title?: string | undefined;
225
- ui?: {
226
- schema?: any;
227
- helpUri?: string | undefined;
228
- } | undefined;
229
- }>, "many">>;
230
190
  oAuthCallbackUri: z.ZodOptional<z.ZodString>;
231
- parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
232
191
  parameters: z.ZodOptional<z.ZodAny>;
233
- baseUri: z.ZodString;
234
192
  archivedAt: z.ZodOptional<z.ZodString>;
235
193
  hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
236
194
  hasDocumentation: z.ZodOptional<z.ZodBoolean>;
@@ -249,7 +207,6 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
249
207
  }, "strip", z.ZodTypeAny, {
250
208
  id: string;
251
209
  name: string;
252
- baseUri: string;
253
210
  logoUri: string;
254
211
  key?: string | undefined;
255
212
  uuid?: string | undefined;
@@ -262,20 +219,9 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
262
219
  updatedAt?: string | undefined;
263
220
  archivedAt?: string | undefined;
264
221
  parameters?: any;
265
- parametersSchema?: import("../..").DataSchema | undefined;
266
222
  isTest?: boolean | undefined;
267
223
  connectorId?: string | undefined;
268
224
  connectorVersion?: string | undefined;
269
- authOptions?: {
270
- key: string;
271
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
272
- description?: string | undefined;
273
- title?: string | undefined;
274
- ui?: {
275
- schema?: any;
276
- helpUri?: string | undefined;
277
- } | undefined;
278
- }[] | undefined;
279
225
  oAuthCallbackUri?: string | undefined;
280
226
  hasMissingParameters?: boolean | undefined;
281
227
  hasDocumentation?: boolean | undefined;
@@ -292,7 +238,6 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
292
238
  }, {
293
239
  id: string;
294
240
  name: string;
295
- baseUri: string;
296
241
  logoUri: string;
297
242
  key?: string | undefined;
298
243
  uuid?: string | undefined;
@@ -305,20 +250,9 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
305
250
  updatedAt?: string | undefined;
306
251
  archivedAt?: string | undefined;
307
252
  parameters?: any;
308
- parametersSchema?: import("../..").DataSchema | undefined;
309
253
  isTest?: boolean | undefined;
310
254
  connectorId?: string | undefined;
311
255
  connectorVersion?: string | undefined;
312
- authOptions?: {
313
- key: string;
314
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
315
- description?: string | undefined;
316
- title?: string | undefined;
317
- ui?: {
318
- schema?: any;
319
- helpUri?: string | undefined;
320
- } | undefined;
321
- }[] | undefined;
322
256
  oAuthCallbackUri?: string | undefined;
323
257
  hasMissingParameters?: boolean | undefined;
324
258
  hasDocumentation?: boolean | undefined;
@@ -385,9 +319,7 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
385
319
  errors?: any[] | undefined;
386
320
  isDeactivated?: boolean | undefined;
387
321
  archivedAt?: string | undefined;
388
- credentials?: unknown;
389
- parameters?: unknown;
390
- connectorParameters?: unknown;
322
+ authOptionKey?: string | undefined;
391
323
  isTest?: boolean | undefined;
392
324
  disconnected?: boolean | undefined;
393
325
  isDefunct?: boolean | undefined;
@@ -398,7 +330,6 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
398
330
  integration?: {
399
331
  id: string;
400
332
  name: string;
401
- baseUri: string;
402
333
  logoUri: string;
403
334
  key?: string | undefined;
404
335
  uuid?: string | undefined;
@@ -411,20 +342,9 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
411
342
  updatedAt?: string | undefined;
412
343
  archivedAt?: string | undefined;
413
344
  parameters?: any;
414
- parametersSchema?: import("../..").DataSchema | undefined;
415
345
  isTest?: boolean | undefined;
416
346
  connectorId?: string | undefined;
417
347
  connectorVersion?: string | undefined;
418
- authOptions?: {
419
- key: string;
420
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
421
- description?: string | undefined;
422
- title?: string | undefined;
423
- ui?: {
424
- schema?: any;
425
- helpUri?: string | undefined;
426
- } | undefined;
427
- }[] | undefined;
428
348
  oAuthCallbackUri?: string | undefined;
429
349
  hasMissingParameters?: boolean | undefined;
430
350
  hasDocumentation?: boolean | undefined;
@@ -495,9 +415,7 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
495
415
  errors?: any[] | undefined;
496
416
  isDeactivated?: boolean | undefined;
497
417
  archivedAt?: string | undefined;
498
- credentials?: unknown;
499
- parameters?: unknown;
500
- connectorParameters?: unknown;
418
+ authOptionKey?: string | undefined;
501
419
  isTest?: boolean | undefined;
502
420
  disconnected?: boolean | undefined;
503
421
  isDefunct?: boolean | undefined;
@@ -508,7 +426,6 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
508
426
  integration?: {
509
427
  id: string;
510
428
  name: string;
511
- baseUri: string;
512
429
  logoUri: string;
513
430
  key?: string | undefined;
514
431
  uuid?: string | undefined;
@@ -521,20 +438,9 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
521
438
  updatedAt?: string | undefined;
522
439
  archivedAt?: string | undefined;
523
440
  parameters?: any;
524
- parametersSchema?: import("../..").DataSchema | undefined;
525
441
  isTest?: boolean | undefined;
526
442
  connectorId?: string | undefined;
527
443
  connectorVersion?: string | undefined;
528
- authOptions?: {
529
- key: string;
530
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
531
- description?: string | undefined;
532
- title?: string | undefined;
533
- ui?: {
534
- schema?: any;
535
- helpUri?: string | undefined;
536
- } | undefined;
537
- }[] | undefined;
538
444
  oAuthCallbackUri?: string | undefined;
539
445
  hasMissingParameters?: boolean | undefined;
540
446
  hasDocumentation?: boolean | undefined;
@@ -839,9 +839,7 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
839
839
  isDefunct: z.ZodOptional<z.ZodBoolean>;
840
840
  error: any;
841
841
  integrationId: z.ZodString;
842
- credentials: z.ZodOptional<z.ZodUnknown>;
843
- parameters: z.ZodOptional<z.ZodUnknown>;
844
- connectorParameters: z.ZodOptional<z.ZodUnknown>;
842
+ authOptionKey: z.ZodOptional<z.ZodString>;
845
843
  createdAt: z.ZodString;
846
844
  updatedAt: z.ZodString;
847
845
  lastActiveAt: z.ZodOptional<z.ZodString>;
@@ -863,9 +861,7 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
863
861
  errors?: any[] | undefined;
864
862
  isDeactivated?: boolean | undefined;
865
863
  archivedAt?: string | undefined;
866
- credentials?: unknown;
867
- parameters?: unknown;
868
- connectorParameters?: unknown;
864
+ authOptionKey?: string | undefined;
869
865
  isTest?: boolean | undefined;
870
866
  disconnected?: boolean | undefined;
871
867
  isDefunct?: boolean | undefined;
@@ -884,9 +880,7 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
884
880
  errors?: any[] | undefined;
885
881
  isDeactivated?: boolean | undefined;
886
882
  archivedAt?: string | undefined;
887
- credentials?: unknown;
888
- parameters?: unknown;
889
- connectorParameters?: unknown;
883
+ authOptionKey?: string | undefined;
890
884
  isTest?: boolean | undefined;
891
885
  disconnected?: boolean | undefined;
892
886
  isDefunct?: boolean | undefined;
@@ -909,44 +903,8 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
909
903
  logoUri: z.ZodString;
910
904
  connectorId: z.ZodOptional<z.ZodString>;
911
905
  connectorVersion: z.ZodOptional<z.ZodString>;
912
- authOptions: z.ZodOptional<z.ZodArray<z.ZodObject<{
913
- key: z.ZodString;
914
- type: z.ZodEnum<["integration-app-token", "membrane-token", "oauth2", "oauth1", "client-credentials", "proxy"]>;
915
- title: z.ZodOptional<z.ZodString>;
916
- description: z.ZodOptional<z.ZodString>;
917
- ui: z.ZodOptional<z.ZodObject<{
918
- schema: z.ZodOptional<z.ZodAny>;
919
- helpUri: z.ZodOptional<z.ZodString>;
920
- }, "strip", z.ZodTypeAny, {
921
- schema?: any;
922
- helpUri?: string | undefined;
923
- }, {
924
- schema?: any;
925
- helpUri?: string | undefined;
926
- }>>;
927
- }, "strip", z.ZodTypeAny, {
928
- key: string;
929
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
930
- description?: string | undefined;
931
- title?: string | undefined;
932
- ui?: {
933
- schema?: any;
934
- helpUri?: string | undefined;
935
- } | undefined;
936
- }, {
937
- key: string;
938
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
939
- description?: string | undefined;
940
- title?: string | undefined;
941
- ui?: {
942
- schema?: any;
943
- helpUri?: string | undefined;
944
- } | undefined;
945
- }>, "many">>;
946
906
  oAuthCallbackUri: z.ZodOptional<z.ZodString>;
947
- parametersSchema: z.ZodOptional<z.ZodType<import("../..").DataSchema, z.ZodTypeDef, import("../..").DataSchema>>;
948
907
  parameters: z.ZodOptional<z.ZodAny>;
949
- baseUri: z.ZodString;
950
908
  archivedAt: z.ZodOptional<z.ZodString>;
951
909
  hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
952
910
  hasDocumentation: z.ZodOptional<z.ZodBoolean>;
@@ -965,7 +923,6 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
965
923
  }, "strip", z.ZodTypeAny, {
966
924
  id: string;
967
925
  name: string;
968
- baseUri: string;
969
926
  logoUri: string;
970
927
  key?: string | undefined;
971
928
  uuid?: string | undefined;
@@ -978,20 +935,9 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
978
935
  updatedAt?: string | undefined;
979
936
  archivedAt?: string | undefined;
980
937
  parameters?: any;
981
- parametersSchema?: import("../..").DataSchema | undefined;
982
938
  isTest?: boolean | undefined;
983
939
  connectorId?: string | undefined;
984
940
  connectorVersion?: string | undefined;
985
- authOptions?: {
986
- key: string;
987
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
988
- description?: string | undefined;
989
- title?: string | undefined;
990
- ui?: {
991
- schema?: any;
992
- helpUri?: string | undefined;
993
- } | undefined;
994
- }[] | undefined;
995
941
  oAuthCallbackUri?: string | undefined;
996
942
  hasMissingParameters?: boolean | undefined;
997
943
  hasDocumentation?: boolean | undefined;
@@ -1008,7 +954,6 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
1008
954
  }, {
1009
955
  id: string;
1010
956
  name: string;
1011
- baseUri: string;
1012
957
  logoUri: string;
1013
958
  key?: string | undefined;
1014
959
  uuid?: string | undefined;
@@ -1021,20 +966,9 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
1021
966
  updatedAt?: string | undefined;
1022
967
  archivedAt?: string | undefined;
1023
968
  parameters?: any;
1024
- parametersSchema?: import("../..").DataSchema | undefined;
1025
969
  isTest?: boolean | undefined;
1026
970
  connectorId?: string | undefined;
1027
971
  connectorVersion?: string | undefined;
1028
- authOptions?: {
1029
- key: string;
1030
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
1031
- description?: string | undefined;
1032
- title?: string | undefined;
1033
- ui?: {
1034
- schema?: any;
1035
- helpUri?: string | undefined;
1036
- } | undefined;
1037
- }[] | undefined;
1038
972
  oAuthCallbackUri?: string | undefined;
1039
973
  hasMissingParameters?: boolean | undefined;
1040
974
  hasDocumentation?: boolean | undefined;
@@ -1069,9 +1003,7 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
1069
1003
  errors?: any[] | undefined;
1070
1004
  isDeactivated?: boolean | undefined;
1071
1005
  archivedAt?: string | undefined;
1072
- credentials?: unknown;
1073
- parameters?: unknown;
1074
- connectorParameters?: unknown;
1006
+ authOptionKey?: string | undefined;
1075
1007
  isTest?: boolean | undefined;
1076
1008
  disconnected?: boolean | undefined;
1077
1009
  isDefunct?: boolean | undefined;
@@ -1083,7 +1015,6 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
1083
1015
  integration?: {
1084
1016
  id: string;
1085
1017
  name: string;
1086
- baseUri: string;
1087
1018
  logoUri: string;
1088
1019
  key?: string | undefined;
1089
1020
  uuid?: string | undefined;
@@ -1096,20 +1027,9 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
1096
1027
  updatedAt?: string | undefined;
1097
1028
  archivedAt?: string | undefined;
1098
1029
  parameters?: any;
1099
- parametersSchema?: import("../..").DataSchema | undefined;
1100
1030
  isTest?: boolean | undefined;
1101
1031
  connectorId?: string | undefined;
1102
1032
  connectorVersion?: string | undefined;
1103
- authOptions?: {
1104
- key: string;
1105
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
1106
- description?: string | undefined;
1107
- title?: string | undefined;
1108
- ui?: {
1109
- schema?: any;
1110
- helpUri?: string | undefined;
1111
- } | undefined;
1112
- }[] | undefined;
1113
1033
  oAuthCallbackUri?: string | undefined;
1114
1034
  hasMissingParameters?: boolean | undefined;
1115
1035
  hasDocumentation?: boolean | undefined;
@@ -1337,9 +1257,7 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
1337
1257
  errors?: any[] | undefined;
1338
1258
  isDeactivated?: boolean | undefined;
1339
1259
  archivedAt?: string | undefined;
1340
- credentials?: unknown;
1341
- parameters?: unknown;
1342
- connectorParameters?: unknown;
1260
+ authOptionKey?: string | undefined;
1343
1261
  isTest?: boolean | undefined;
1344
1262
  disconnected?: boolean | undefined;
1345
1263
  isDefunct?: boolean | undefined;
@@ -1351,7 +1269,6 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
1351
1269
  integration?: {
1352
1270
  id: string;
1353
1271
  name: string;
1354
- baseUri: string;
1355
1272
  logoUri: string;
1356
1273
  key?: string | undefined;
1357
1274
  uuid?: string | undefined;
@@ -1364,20 +1281,9 @@ export declare const DataSourceInstanceApiResponse: z.ZodObject<{
1364
1281
  updatedAt?: string | undefined;
1365
1282
  archivedAt?: string | undefined;
1366
1283
  parameters?: any;
1367
- parametersSchema?: import("../..").DataSchema | undefined;
1368
1284
  isTest?: boolean | undefined;
1369
1285
  connectorId?: string | undefined;
1370
1286
  connectorVersion?: string | undefined;
1371
- authOptions?: {
1372
- key: string;
1373
- type: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials";
1374
- description?: string | undefined;
1375
- title?: string | undefined;
1376
- ui?: {
1377
- schema?: any;
1378
- helpUri?: string | undefined;
1379
- } | undefined;
1380
- }[] | undefined;
1381
1287
  oAuthCallbackUri?: string | undefined;
1382
1288
  hasMissingParameters?: boolean | undefined;
1383
1289
  hasDocumentation?: boolean | undefined;