@membranehq/sdk 0.9.4 → 0.9.6
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/LICENSE +1 -1
- package/README.md +3 -3
- package/dist/bundle.d.ts +1081 -187
- package/dist/dts/agent/session.d.ts +1 -0
- package/dist/dts/orgs/types.d.ts +13 -3
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +11 -0
- package/dist/dts/workspace-elements/base/connectors/auth.d.ts +1540 -51
- package/dist/dts/workspace-elements/base/connectors/methods.d.ts +111 -34
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +2188 -53
- package/dist/dts/workspace-elements/base/connectors/udm.d.ts +29 -13
- package/dist/dts/workspace-elements/base/data-collections/schemas.d.ts +5 -4
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +1 -0
- package/dist/dts/workspaces/compare.d.ts +8 -1
- package/dist/dts/workspaces/types.d.ts +24 -2
- package/dist/index.browser.d.mts +4236 -457
- package/dist/index.browser.d.ts +4236 -457
- package/dist/index.browser.js +246 -5
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +216 -6
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +4236 -457
- package/dist/index.node.d.ts +4236 -457
- package/dist/index.node.js +246 -5
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +216 -6
- package/dist/index.node.mjs.map +1 -1
- package/package.json +3 -3
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { OperationMapping } from './operations';
|
|
3
|
-
import { RestApiMapping } from './rest-api';
|
|
1
|
+
import { z } from 'zod';
|
|
4
2
|
import { DataSchema } from '../../../data-schema';
|
|
5
3
|
export declare enum ConnectorMethodImplementationType {
|
|
6
4
|
mapping = "mapping",
|
|
@@ -10,35 +8,114 @@ export declare enum ConnectorMethodImplementationType {
|
|
|
10
8
|
javascript = "javascript",
|
|
11
9
|
notSupported = "not-supported"
|
|
12
10
|
}
|
|
13
|
-
export type ConnectorMethodImplementation = ConnectorMethodImplementationBase | ConnectorMethodImplementationMapping | ConnectorMethodImplementationOperationMapping | ConnectorMethodImplementationRestApiMapping | ConnectorMethodImplementationGraphqlApiMapping | ConnectorMethodImplementationJavascript | ConnectorMethodImplementationNotSupported;
|
|
14
11
|
export declare const CONNECTOR_METHOD_IMPLEMENTATION_SUFFIXES: Partial<Record<ConnectorMethodImplementationType, string[]>>;
|
|
15
|
-
export
|
|
16
|
-
implementationType
|
|
17
|
-
filePath
|
|
18
|
-
inheritedFromPath
|
|
19
|
-
isIncomplete
|
|
20
|
-
parametersSchema
|
|
21
|
-
}
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
12
|
+
export declare const ConnectorMethodImplementationBase: z.ZodObject<{
|
|
13
|
+
implementationType: z.ZodOptional<z.ZodEnum<typeof ConnectorMethodImplementationType>>;
|
|
14
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
15
|
+
inheritedFromPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
16
|
+
isIncomplete: z.ZodOptional<z.ZodBoolean>;
|
|
17
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
18
|
+
}, z.core.$strip>;
|
|
19
|
+
export type ConnectorMethodImplementationBase = z.infer<typeof ConnectorMethodImplementationBase>;
|
|
20
|
+
export declare const ConnectorMethodImplementationMapping: z.ZodObject<{
|
|
21
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
22
|
+
inheritedFromPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
23
|
+
isIncomplete: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
25
|
+
implementationType: z.ZodLiteral<ConnectorMethodImplementationType.mapping>;
|
|
26
|
+
mapping: z.ZodAny;
|
|
27
|
+
}, z.core.$strip>;
|
|
28
|
+
export type ConnectorMethodImplementationMapping = z.infer<typeof ConnectorMethodImplementationMapping>;
|
|
29
|
+
export declare const ConnectorMethodImplementationOperationMapping: z.ZodObject<{
|
|
30
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
31
|
+
inheritedFromPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
32
|
+
isIncomplete: z.ZodOptional<z.ZodBoolean>;
|
|
33
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
34
|
+
implementationType: z.ZodLiteral<ConnectorMethodImplementationType.operationMapping>;
|
|
35
|
+
mapping: z.ZodAny;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type ConnectorMethodImplementationOperationMapping = z.infer<typeof ConnectorMethodImplementationOperationMapping>;
|
|
38
|
+
export declare const ConnectorMethodImplementationRestApiMapping: z.ZodObject<{
|
|
39
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
40
|
+
inheritedFromPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
41
|
+
isIncomplete: z.ZodOptional<z.ZodBoolean>;
|
|
42
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
43
|
+
implementationType: z.ZodLiteral<ConnectorMethodImplementationType.restApiMapping>;
|
|
44
|
+
mapping: z.ZodAny;
|
|
45
|
+
}, z.core.$strip>;
|
|
46
|
+
export type ConnectorMethodImplementationRestApiMapping = z.infer<typeof ConnectorMethodImplementationRestApiMapping>;
|
|
47
|
+
export declare const ConnectorMethodImplementationGraphqlApiMapping: z.ZodObject<{
|
|
48
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
49
|
+
inheritedFromPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
50
|
+
isIncomplete: z.ZodOptional<z.ZodBoolean>;
|
|
51
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
52
|
+
implementationType: z.ZodLiteral<ConnectorMethodImplementationType.graphqlApiMapping>;
|
|
53
|
+
mapping: z.ZodAny;
|
|
54
|
+
}, z.core.$strip>;
|
|
55
|
+
export type ConnectorMethodImplementationGraphqlApiMapping = z.infer<typeof ConnectorMethodImplementationGraphqlApiMapping>;
|
|
56
|
+
export declare const ConnectorMethodImplementationJavascript: z.ZodObject<{
|
|
57
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
58
|
+
inheritedFromPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
59
|
+
isIncomplete: z.ZodOptional<z.ZodBoolean>;
|
|
60
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
61
|
+
implementationType: z.ZodLiteral<ConnectorMethodImplementationType.javascript>;
|
|
62
|
+
code: z.ZodString;
|
|
63
|
+
}, z.core.$strip>;
|
|
64
|
+
export type ConnectorMethodImplementationJavascript = z.infer<typeof ConnectorMethodImplementationJavascript>;
|
|
65
|
+
export declare const ConnectorMethodImplementationNotSupported: z.ZodObject<{
|
|
66
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
67
|
+
inheritedFromPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
68
|
+
isIncomplete: z.ZodOptional<z.ZodBoolean>;
|
|
69
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
70
|
+
implementationType: z.ZodLiteral<ConnectorMethodImplementationType.notSupported>;
|
|
71
|
+
}, z.core.$strip>;
|
|
72
|
+
export type ConnectorMethodImplementationNotSupported = z.infer<typeof ConnectorMethodImplementationNotSupported>;
|
|
73
|
+
export declare const ConnectorMethodImplementation: z.ZodUnion<readonly [z.ZodObject<{
|
|
74
|
+
implementationType: z.ZodOptional<z.ZodEnum<typeof ConnectorMethodImplementationType>>;
|
|
75
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
76
|
+
inheritedFromPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
77
|
+
isIncomplete: z.ZodOptional<z.ZodBoolean>;
|
|
78
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
79
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
80
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
81
|
+
inheritedFromPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
82
|
+
isIncomplete: z.ZodOptional<z.ZodBoolean>;
|
|
83
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
84
|
+
implementationType: z.ZodLiteral<ConnectorMethodImplementationType.mapping>;
|
|
85
|
+
mapping: z.ZodAny;
|
|
86
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
87
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
88
|
+
inheritedFromPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
89
|
+
isIncomplete: z.ZodOptional<z.ZodBoolean>;
|
|
90
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
91
|
+
implementationType: z.ZodLiteral<ConnectorMethodImplementationType.operationMapping>;
|
|
92
|
+
mapping: z.ZodAny;
|
|
93
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
94
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
95
|
+
inheritedFromPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
96
|
+
isIncomplete: z.ZodOptional<z.ZodBoolean>;
|
|
97
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
98
|
+
implementationType: z.ZodLiteral<ConnectorMethodImplementationType.restApiMapping>;
|
|
99
|
+
mapping: z.ZodAny;
|
|
100
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
101
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
102
|
+
inheritedFromPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
103
|
+
isIncomplete: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
105
|
+
implementationType: z.ZodLiteral<ConnectorMethodImplementationType.graphqlApiMapping>;
|
|
106
|
+
mapping: z.ZodAny;
|
|
107
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
108
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
109
|
+
inheritedFromPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
110
|
+
isIncomplete: z.ZodOptional<z.ZodBoolean>;
|
|
111
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
112
|
+
implementationType: z.ZodLiteral<ConnectorMethodImplementationType.javascript>;
|
|
113
|
+
code: z.ZodString;
|
|
114
|
+
}, z.core.$strip>, z.ZodObject<{
|
|
115
|
+
filePath: z.ZodOptional<z.ZodString>;
|
|
116
|
+
inheritedFromPath: z.ZodOptional<z.ZodArray<z.ZodString>>;
|
|
117
|
+
isIncomplete: z.ZodOptional<z.ZodBoolean>;
|
|
118
|
+
parametersSchema: z.ZodOptional<z.ZodType<DataSchema, unknown, z.core.$ZodTypeInternals<DataSchema, unknown>>>;
|
|
119
|
+
implementationType: z.ZodLiteral<ConnectorMethodImplementationType.notSupported>;
|
|
120
|
+
}, z.core.$strip>]>;
|
|
121
|
+
export type ConnectorMethodImplementation = z.infer<typeof ConnectorMethodImplementation>;
|