@membranehq/sdk 0.7.5 → 0.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/bundle.d.ts CHANGED
@@ -2637,6 +2637,9 @@ interface FindExternalEventSubscriptionsQuery extends PaginationQuery {
2637
2637
  }
2638
2638
 
2639
2639
  declare const FindScenariosQuery: z.ZodObject<{
2640
+ integrationId: z.ZodOptional<z.ZodString>;
2641
+ integrationKey: z.ZodOptional<z.ZodString>;
2642
+ parentId: z.ZodOptional<z.ZodString>;
2640
2643
  search: z.ZodOptional<z.ZodString>;
2641
2644
  limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
2642
2645
  cursor: z.ZodOptional<z.ZodString>;
@@ -4010,7 +4013,6 @@ declare class ActionsAccessor extends ElementListAccessor<Action, FindActionsQue
4010
4013
  }
4011
4014
  declare class ActionAccessor extends ElementAccessor<Action, UpdateActionRequest, ActionSelector> {
4012
4015
  constructor(client: MembraneApiClient, selector: ActionSelector | string);
4013
- apply(integrationKeys: string[]): Promise<Action[]>;
4014
4016
  reset(): Promise<any>;
4015
4017
  }
4016
4018
  declare class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor<Action, UpdateActionRequest> {
@@ -4091,7 +4093,6 @@ declare class DataSourcesAccessor extends ElementListAccessor<DataSource, FindDa
4091
4093
  }
4092
4094
  declare class DataSourceAccessor extends ElementAccessor<DataSource, UpdateDataSourceRequest, DataSourceSelector> {
4093
4095
  constructor(client: MembraneApiClient, selector: DataSourceSelector | string);
4094
- apply(integrationKeys: string[]): Promise<DataSource[]>;
4095
4096
  setup(): Promise<void>;
4096
4097
  reset(): Promise<any>;
4097
4098
  }
@@ -4351,7 +4352,6 @@ declare class FlowsAccessor extends ElementListAccessor<Flow, FindFlowsQuery, Cr
4351
4352
  }
4352
4353
  declare class FlowAccessor extends ElementAccessor<Flow, UpdateFlowRequest, FlowSelector> {
4353
4354
  constructor(client: MembraneApiClient, selector: FlowSelector | string);
4354
- apply(integrationKeys: string[]): Promise<Flow[]>;
4355
4355
  reset(): Promise<Flow>;
4356
4356
  }
4357
4357
  declare class IntegrationLevelFlowAccessor extends IntegrationLevelElementAccessor<Flow, UpdateFlowRequest> {
@@ -4403,7 +4403,6 @@ declare class FieldMappingsAccessor extends ElementListAccessor<FieldMapping, Fi
4403
4403
  declare class FieldMappingAccessor extends ElementAccessor<FieldMapping, UpdateFieldMappingRequest, FieldMappingSelector> {
4404
4404
  constructor(client: MembraneApiClient, selector: string | FieldMappingSelector);
4405
4405
  getAppSchema(): Promise<any>;
4406
- apply(integrationKeys: string[]): Promise<FieldMapping[]>;
4407
4406
  setup(): Promise<any>;
4408
4407
  reset(): Promise<any>;
4409
4408
  }
package/dist/bundle.js CHANGED
@@ -6130,11 +6130,6 @@
6130
6130
  path: 'action',
6131
6131
  });
6132
6132
  }
6133
- async apply(integrationKeys) {
6134
- return await this.options.client.post(this.getPath('apply'), {
6135
- integrationKeys,
6136
- });
6137
- }
6138
6133
  async reset() {
6139
6134
  return await this.options.client.post(this.getPath('reset'));
6140
6135
  }
@@ -7115,11 +7110,6 @@
7115
7110
  path: 'data-source',
7116
7111
  });
7117
7112
  }
7118
- async apply(integrationKeys) {
7119
- return await this.options.client.post(this.getPath('apply'), {
7120
- integrationKeys,
7121
- });
7122
- }
7123
7113
  async setup() {
7124
7114
  await this.options.client.post(this.getPath('setup'));
7125
7115
  }
@@ -10756,20 +10746,6 @@
10756
10746
  ...normalizeParams(params),
10757
10747
  });
10758
10748
  }
10759
- /** @deprecated This API has been merged into `z.enum()`. Use `z.enum()` instead.
10760
- *
10761
- * ```ts
10762
- * enum Colors { red, green, blue }
10763
- * z.enum(Colors);
10764
- * ```
10765
- */
10766
- function nativeEnum(entries, params) {
10767
- return new ZodEnum({
10768
- type: "enum",
10769
- entries,
10770
- ...normalizeParams(params),
10771
- });
10772
- }
10773
10749
  const ZodTransform = /*@__PURE__*/ $constructor("ZodTransform", (inst, def) => {
10774
10750
  $ZodTransform.init(inst, def);
10775
10751
  ZodType.init(inst, def);
@@ -10968,7 +10944,7 @@
10968
10944
  ConcurrencyErrorKey["LOCK_TIMEOUT"] = "lock_timeout";
10969
10945
  })(ConcurrencyErrorKey || (ConcurrencyErrorKey = {}));
10970
10946
  const ErrorDataSchema = lazy(() => object({
10971
- type: nativeEnum(ErrorType).optional(),
10947
+ type: _enum(ErrorType).optional(),
10972
10948
  key: string().optional(),
10973
10949
  message: string(),
10974
10950
  data: any().optional(),
@@ -11097,11 +11073,11 @@
11097
11073
  FlowRunLaunchedByTrigger["ExternalEvent"] = "external-event";
11098
11074
  })(FlowRunLaunchedByTrigger || (FlowRunLaunchedByTrigger = {}));
11099
11075
  const FlowRunLaunchedBy = object({
11100
- type: nativeEnum(FlowRunLaunchedByTrigger),
11076
+ type: _enum(FlowRunLaunchedByTrigger),
11101
11077
  ids: array(string()).optional(),
11102
11078
  });
11103
11079
  const FlowRunNode = object({
11104
- state: nativeEnum(FlowRunNodeState),
11080
+ state: _enum(FlowRunNodeState),
11105
11081
  runs: number().optional(),
11106
11082
  erroredRuns: number().optional(),
11107
11083
  outputs: number().optional(),
@@ -11116,7 +11092,7 @@
11116
11092
  startNodeKey: string(),
11117
11093
  userId: string(),
11118
11094
  input: any().optional(),
11119
- state: nativeEnum(FlowRunState),
11095
+ state: _enum(FlowRunState),
11120
11096
  startTime: string(),
11121
11097
  endTime: string().optional(),
11122
11098
  errors: array(ErrorDataSchema).optional(),
@@ -11150,7 +11126,7 @@
11150
11126
  downstreamRuns: array(DownstreamFlowNodeRunSchema),
11151
11127
  });
11152
11128
  const FlowNodeRunResultSchema = object({
11153
- status: nativeEnum(FlowNodeRunStatus),
11129
+ status: _enum(FlowNodeRunStatus),
11154
11130
  logs: array(any()),
11155
11131
  outputs: array(FlowNodeRunOutputSchema),
11156
11132
  errors: array(ErrorDataSchema),
@@ -11168,7 +11144,7 @@
11168
11144
  id: string(),
11169
11145
  upstreamRuns: array(UpstreamFlowNodeRunSchema),
11170
11146
  input: any(),
11171
- status: nativeEnum(FlowNodeRunStatus),
11147
+ status: _enum(FlowNodeRunStatus),
11172
11148
  logs: array(any()),
11173
11149
  outputs: array(FlowNodeRunOutputMetadataSchema),
11174
11150
  errors: array(ErrorDataSchema),
@@ -11314,7 +11290,7 @@
11314
11290
  });
11315
11291
  const BaseMembraneInterfaceReadOnlyProperties = object({
11316
11292
  name: string(),
11317
- state: nativeEnum(WorkspaceElementState).optional(),
11293
+ state: _enum(WorkspaceElementState).optional(),
11318
11294
  errors: array(ErrorDataSchema).optional(),
11319
11295
  revision: string().optional(),
11320
11296
  createdAt: string().optional(),
@@ -11884,11 +11860,6 @@
11884
11860
  path: 'flow',
11885
11861
  });
11886
11862
  }
11887
- async apply(integrationKeys) {
11888
- return await this.options.client.post(this.getPath('apply'), {
11889
- integrationKeys,
11890
- });
11891
- }
11892
11863
  async reset() {
11893
11864
  return await this.options.client.post(this.getPath('reset'));
11894
11865
  }
@@ -11925,11 +11896,6 @@
11925
11896
  async getAppSchema() {
11926
11897
  return await this.options.client.get(this.getPath('app-schema'));
11927
11898
  }
11928
- async apply(integrationKeys) {
11929
- return await this.options.client.post(this.getPath('apply'), {
11930
- integrationKeys,
11931
- });
11932
- }
11933
11899
  async setup() {
11934
11900
  return await this.options.client.post(this.getPath('setup'));
11935
11901
  }