@membranehq/sdk 0.9.9 → 0.9.10
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 +281 -239
- package/dist/bundle.js +24 -6
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/base-accessors.d.ts +1 -1
- package/dist/dts/{entity-repository.d.ts → api/index.d.ts} +31 -8
- package/dist/dts/index.browser.d.ts +2 -2
- package/dist/dts/integration-elements/connection-level-element.accessor.d.ts +1 -1
- package/dist/dts/integration-elements/integration-level-element.accessor.d.ts +1 -1
- package/dist/dts/scenario-templates/index.d.ts +1 -1
- package/dist/dts/usage/types.d.ts +1 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +212 -1
- package/dist/dts/workspace-elements/api/actions-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +12 -8
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +22 -13
- package/dist/dts/workspace-elements/api/connections-api.d.ts +11 -5
- package/dist/dts/workspace-elements/api/connectors-api.d.ts +7 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +55 -17
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +17 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/external-apps-api.d.ts +10 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +11 -0
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +1 -8
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/flows-api.d.ts +1 -1
- package/dist/dts/workspace-elements/api/index.d.ts +2 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +26 -8
- package/dist/dts/workspace-elements/api/packages-api.d.ts +23 -9
- package/dist/dts/workspace-elements/api/screens-api.d.ts +7 -4
- package/dist/dts/workspace-elements/base/action-run-log-records/types.d.ts +1 -0
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +2 -0
- package/dist/dts/{apps/types.d.ts → workspace-elements/base/external-apps/index.d.ts} +1 -0
- package/dist/dts/workspace-elements/base/external-events/api.d.ts +1 -1
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +122 -1
- package/dist/dts/workspace-elements/base/packages/index.d.ts +36 -6
- package/dist/dts/workspace-elements/types.d.ts +16 -0
- package/dist/dts/workspace-elements-catalog/index.d.ts +8 -7
- package/dist/index.browser.d.mts +1446 -1006
- package/dist/index.browser.d.ts +1446 -1006
- package/dist/index.browser.js +241 -60
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +215 -61
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +1446 -1006
- package/dist/index.node.d.ts +1446 -1006
- package/dist/index.node.js +241 -60
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +215 -61
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
- package/dist/dts/apps/index.d.ts +0 -1
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +0 -104
|
@@ -3,7 +3,7 @@ import { ConnectionSelector } from './connections-api';
|
|
|
3
3
|
import { DataSourceInstance } from './data-source-instances-api';
|
|
4
4
|
import { FlowInstanceSelector } from './flows-api';
|
|
5
5
|
import { ElementInstanceSelector, IntegrationSpecificElementSelector } from '../../accessors';
|
|
6
|
-
import { PaginationResponse } from '../../
|
|
6
|
+
import { PaginationResponse } from '../../api';
|
|
7
7
|
export declare const DataSourceApiResponse: z.ZodObject<{
|
|
8
8
|
id: z.ZodString;
|
|
9
9
|
key: z.ZodOptional<z.ZodString>;
|
|
@@ -149,9 +149,9 @@ export type DataSourceApiResponse = z.infer<typeof DataSourceApiResponse>;
|
|
|
149
149
|
export type DataSource = DataSourceApiResponse;
|
|
150
150
|
export declare const FindDataSourcesQuery: z.ZodObject<{
|
|
151
151
|
search: z.ZodOptional<z.ZodString>;
|
|
152
|
-
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
153
152
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
154
153
|
cursor: z.ZodOptional<z.ZodString>;
|
|
154
|
+
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
155
155
|
userId: z.ZodOptional<z.ZodString>;
|
|
156
156
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
157
157
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const ListExternalAppsQuery: z.ZodObject<{
|
|
3
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
4
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
5
|
+
search: z.ZodOptional<z.ZodString>;
|
|
6
|
+
category: z.ZodOptional<z.ZodString>;
|
|
7
|
+
hasAuth: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
8
|
+
hasData: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
9
|
+
}, z.core.$strip>;
|
|
10
|
+
export type ListExternalAppsQuery = z.infer<typeof ListExternalAppsQuery>;
|
|
@@ -11,6 +11,17 @@ export declare const ListExternalEventPullsQuery: z.ZodObject<{
|
|
|
11
11
|
status: z.ZodOptional<z.ZodEnum<typeof ExternalEventPullStatus>>;
|
|
12
12
|
}, z.core.$strip>;
|
|
13
13
|
export type ListExternalEventPullsQuery = z.infer<typeof ListExternalEventPullsQuery>;
|
|
14
|
+
export declare const FindExternalEventPullsQuery: z.ZodObject<{
|
|
15
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
16
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
17
|
+
externalEventSubscriptionId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
integrationId: z.ZodOptional<z.ZodString>;
|
|
19
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
userId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
status: z.ZodOptional<z.ZodEnum<typeof ExternalEventPullStatus>>;
|
|
22
|
+
startedAfter: z.ZodOptional<z.ZodString>;
|
|
23
|
+
}, z.core.$strip>;
|
|
24
|
+
export type FindExternalEventPullsQuery = z.infer<typeof FindExternalEventPullsQuery>;
|
|
14
25
|
export declare const ExternalEventPullApiResponse: z.ZodObject<{
|
|
15
26
|
id: z.ZodString;
|
|
16
27
|
name: z.ZodOptional<z.ZodString>;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { PaginationQuery } from '../../
|
|
2
|
+
import { PaginationQuery } from '../../api';
|
|
3
3
|
import { ExternalEventLogStatus } from '../base/external-event-log-records';
|
|
4
4
|
export interface FindExternalEventSubscriptionsQuery extends PaginationQuery {
|
|
5
5
|
userId?: string;
|
|
@@ -14,13 +14,6 @@ export interface FindExternalEventLogsQuery extends PaginationQuery {
|
|
|
14
14
|
startDatetime?: string;
|
|
15
15
|
status?: ExternalEventLogStatus;
|
|
16
16
|
}
|
|
17
|
-
export interface FindExternalEventPullsQuery extends PaginationQuery {
|
|
18
|
-
userId?: string;
|
|
19
|
-
externalEventSubscriptionId?: string;
|
|
20
|
-
integrationId?: string;
|
|
21
|
-
connectionId?: string;
|
|
22
|
-
startedAfter?: string;
|
|
23
|
-
}
|
|
24
17
|
export interface ExternalEventCustomPullSubscribeResponse {
|
|
25
18
|
state: Record<string, any>;
|
|
26
19
|
}
|
|
@@ -2,7 +2,7 @@ import { z } from 'zod';
|
|
|
2
2
|
import { ConnectionSelector } from './connections-api';
|
|
3
3
|
import { FlowInstanceSelector } from './flows-api';
|
|
4
4
|
import { ElementInstanceSelector } from '../../accessors';
|
|
5
|
-
import { CommonInstancesListQuery, CommonIntegrationOrConnectionQuery } from '../../
|
|
5
|
+
import { CommonInstancesListQuery, CommonIntegrationOrConnectionQuery } from '../../api';
|
|
6
6
|
export type ListFieldMappingInstancesForConnectionQuery = CommonInstancesListQuery & {
|
|
7
7
|
fieldMappingId?: string;
|
|
8
8
|
universalFieldMappingId?: string;
|
|
@@ -154,9 +154,9 @@ export type FieldMappingApiResponse = z.infer<typeof FieldMappingApiResponse>;
|
|
|
154
154
|
export type FieldMapping = FieldMappingApiResponse;
|
|
155
155
|
export declare const FindFieldMappingsQuery: z.ZodObject<{
|
|
156
156
|
search: z.ZodOptional<z.ZodString>;
|
|
157
|
-
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
158
157
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
159
158
|
cursor: z.ZodOptional<z.ZodString>;
|
|
159
|
+
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
160
160
|
userId: z.ZodOptional<z.ZodString>;
|
|
161
161
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
162
162
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
@@ -189,9 +189,9 @@ export type FlowApiResponse = z.infer<typeof FlowApiResponse>;
|
|
|
189
189
|
export type Flow = FlowApiResponse;
|
|
190
190
|
export declare const FindFlowsQuery: z.ZodObject<{
|
|
191
191
|
search: z.ZodOptional<z.ZodString>;
|
|
192
|
-
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
193
192
|
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
194
193
|
cursor: z.ZodOptional<z.ZodString>;
|
|
194
|
+
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
195
195
|
userId: z.ZodOptional<z.ZodString>;
|
|
196
196
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
197
197
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
@@ -1,8 +1,10 @@
|
|
|
1
1
|
export * from './actions-api';
|
|
2
2
|
export * from './action-run-log-records-api';
|
|
3
3
|
export * from './connections-api';
|
|
4
|
+
export * from './connectors-api';
|
|
4
5
|
export * from './data-sources-api';
|
|
5
6
|
export * from './data-source-instances-api';
|
|
7
|
+
export * from './external-apps-api';
|
|
6
8
|
export * from './external-events-api';
|
|
7
9
|
export * from './flows-api';
|
|
8
10
|
export * from './flow-runs-api';
|
|
@@ -1,19 +1,37 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
+
import { PaginationResponse } from '../../api';
|
|
2
3
|
import { DataSchema } from '../../data-schema';
|
|
3
|
-
import { PaginationResponse } from '../../entity-repository';
|
|
4
4
|
import { OpenConfigurationOptions } from '../../iframe';
|
|
5
5
|
export declare const CreateIntegrationRequest: z.ZodObject<{
|
|
6
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
7
|
+
key: z.ZodOptional<z.ZodString>;
|
|
6
8
|
name: z.ZodOptional<z.ZodString>;
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
description: z.ZodOptional<z.ZodString>;
|
|
10
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
11
|
+
baseUri: z.ZodOptional<z.ZodString>;
|
|
12
|
+
logoUri: z.ZodOptional<z.ZodString>;
|
|
13
|
+
appUuid: z.ZodOptional<z.ZodString>;
|
|
14
|
+
oAuthCallbackUri: z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>;
|
|
15
|
+
logoBase64: z.ZodOptional<z.ZodString>;
|
|
16
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
17
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
18
|
+
connectorUuid: z.ZodOptional<z.ZodString>;
|
|
10
19
|
}, z.core.$strip>;
|
|
11
20
|
export type CreateIntegrationRequest = z.infer<typeof CreateIntegrationRequest>;
|
|
12
21
|
export declare const UpdateIntegrationRequest: z.ZodObject<{
|
|
13
|
-
|
|
14
|
-
key: z.ZodOptional<z.ZodString
|
|
15
|
-
|
|
16
|
-
|
|
22
|
+
uuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
23
|
+
key: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
24
|
+
name: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
25
|
+
description: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
26
|
+
meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
27
|
+
baseUri: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
28
|
+
logoUri: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
29
|
+
appUuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
30
|
+
oAuthCallbackUri: z.ZodOptional<z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>>;
|
|
31
|
+
logoBase64: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
32
|
+
connectorVersion: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
33
|
+
connectorId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
34
|
+
connectorUuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
17
35
|
}, z.core.$strip>;
|
|
18
36
|
export type UpdateIntegrationRequest = z.infer<typeof UpdateIntegrationRequest>;
|
|
19
37
|
export declare const FindIntegrationsQuery: z.ZodObject<{
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { WorkspaceElementType } from '../types';
|
|
3
3
|
export declare const PackageElementApi: z.ZodObject<{
|
|
4
4
|
id: z.ZodString;
|
|
5
|
-
type: z.ZodEnum<typeof
|
|
5
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
6
6
|
element: z.ZodOptional<z.ZodAny>;
|
|
7
7
|
}, z.core.$strip>;
|
|
8
8
|
export type PackageElementApi = z.infer<typeof PackageElementApi>;
|
|
@@ -23,6 +23,7 @@ export declare const FindPackagesQuery: z.ZodObject<{
|
|
|
23
23
|
parentId: z.ZodOptional<z.ZodString>;
|
|
24
24
|
universalParentId: z.ZodOptional<z.ZodString>;
|
|
25
25
|
userId: z.ZodOptional<z.ZodString>;
|
|
26
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
26
27
|
}, z.core.$strip>;
|
|
27
28
|
export type FindPackagesQuery = z.infer<typeof FindPackagesQuery>;
|
|
28
29
|
export declare const CreatePackageRequest: z.ZodObject<{
|
|
@@ -38,9 +39,10 @@ export declare const CreatePackageRequest: z.ZodObject<{
|
|
|
38
39
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
39
40
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
40
41
|
scenarioTemplateId: z.ZodOptional<z.ZodString>;
|
|
42
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
41
43
|
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
42
44
|
id: z.ZodString;
|
|
43
|
-
type: z.ZodEnum<typeof
|
|
45
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
44
46
|
element: z.ZodOptional<z.ZodAny>;
|
|
45
47
|
}, z.core.$strip>>>;
|
|
46
48
|
}, z.core.$strip>;
|
|
@@ -58,9 +60,10 @@ export declare const UpdatePackageRequest: z.ZodObject<{
|
|
|
58
60
|
connectionId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
59
61
|
instanceKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
60
62
|
scenarioTemplateId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
63
|
+
externalAppId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
61
64
|
elements: z.ZodOptional<z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
62
65
|
id: z.ZodString;
|
|
63
|
-
type: z.ZodEnum<typeof
|
|
66
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
64
67
|
element: z.ZodOptional<z.ZodAny>;
|
|
65
68
|
}, z.core.$strip>>>>;
|
|
66
69
|
}, z.core.$strip>;
|
|
@@ -84,14 +87,18 @@ export declare const PackageApiResponse: z.ZodObject<{
|
|
|
84
87
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
85
88
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
86
89
|
scenarioTemplateId: z.ZodOptional<z.ZodString>;
|
|
90
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
91
|
+
key: z.ZodString;
|
|
92
|
+
name: z.ZodString;
|
|
93
|
+
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
87
94
|
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
88
95
|
id: z.ZodString;
|
|
89
|
-
type: z.ZodEnum<typeof
|
|
96
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
90
97
|
element: z.ZodOptional<z.ZodAny>;
|
|
91
98
|
}, z.core.$strip>>>;
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
99
|
+
version: z.ZodOptional<z.ZodString>;
|
|
100
|
+
changelog: z.ZodOptional<z.ZodString>;
|
|
101
|
+
parentPackageVersion: z.ZodOptional<z.ZodString>;
|
|
95
102
|
appliedToIntegrations: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
96
103
|
element: z.ZodObject<{
|
|
97
104
|
id: z.ZodString;
|
|
@@ -112,9 +119,10 @@ export declare const PackageApiResponse: z.ZodObject<{
|
|
|
112
119
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
113
120
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
114
121
|
scenarioTemplateId: z.ZodOptional<z.ZodString>;
|
|
122
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
115
123
|
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
116
124
|
id: z.ZodString;
|
|
117
|
-
type: z.ZodEnum<typeof
|
|
125
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
118
126
|
element: z.ZodOptional<z.ZodAny>;
|
|
119
127
|
}, z.core.$strip>>>;
|
|
120
128
|
key: z.ZodString;
|
|
@@ -166,3 +174,9 @@ export declare const PackageApiResponse: z.ZodObject<{
|
|
|
166
174
|
export type PackageApiResponse = z.infer<typeof PackageApiResponse>;
|
|
167
175
|
export type Package = PackageApiResponse;
|
|
168
176
|
export type Scenario = PackageApiResponse;
|
|
177
|
+
export declare const ListPublicPackagesQuery: z.ZodObject<{
|
|
178
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
179
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
180
|
+
search: z.ZodOptional<z.ZodString>;
|
|
181
|
+
}, z.core.$strip>;
|
|
182
|
+
export type ListPublicPackagesQuery = z.infer<typeof ListPublicPackagesQuery>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import { PaginationQuery } from '../../entity-repository';
|
|
3
2
|
import { ScreenBlockType, ScreenType } from '../base/screens';
|
|
4
3
|
export interface ScreenBlockApi {
|
|
5
4
|
type: ScreenBlockType;
|
|
@@ -19,9 +18,13 @@ export interface UpdateScreenRequest {
|
|
|
19
18
|
export interface CreateScreenRequest extends UpdateScreenRequest {
|
|
20
19
|
type: ScreenType;
|
|
21
20
|
}
|
|
22
|
-
export
|
|
23
|
-
|
|
24
|
-
|
|
21
|
+
export declare const FindScreensQuery: z.ZodObject<{
|
|
22
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
23
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
24
|
+
type: z.ZodOptional<z.ZodEnum<typeof ScreenType>>;
|
|
25
|
+
key: z.ZodOptional<z.ZodString>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type FindScreensQuery = z.infer<typeof FindScreensQuery>;
|
|
25
28
|
export declare const ScreenApiResponse: z.ZodObject<{
|
|
26
29
|
id: z.ZodString;
|
|
27
30
|
name: z.ZodString;
|
|
@@ -47,6 +47,7 @@ export declare const BackwardCompatibleDataSourceEditableProperties: z.ZodObject
|
|
|
47
47
|
export type BackwardCompatibleDataSourceEditableProperties = z.infer<typeof BackwardCompatibleDataSourceEditableProperties>;
|
|
48
48
|
export declare const DataSourceExportProperties: z.ZodObject<{
|
|
49
49
|
key: z.ZodOptional<z.ZodString>;
|
|
50
|
+
path: z.ZodOptional<z.ZodString>;
|
|
50
51
|
description: z.ZodOptional<z.ZodString>;
|
|
51
52
|
name: z.ZodOptional<z.ZodString>;
|
|
52
53
|
uuid: z.ZodOptional<z.ZodString>;
|
|
@@ -59,6 +60,7 @@ export declare const DataSourceExportProperties: z.ZodObject<{
|
|
|
59
60
|
collectionParameters: z.ZodOptional<z.ZodAny>;
|
|
60
61
|
pullUpdatesIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
61
62
|
fullSyncIntervalSeconds: z.ZodOptional<z.ZodNumber>;
|
|
63
|
+
defaultPath: z.ZodOptional<z.ZodString>;
|
|
62
64
|
}, z.core.$strip>;
|
|
63
65
|
export type DataSourceExportProperties = z.infer<typeof DataSourceExportProperties>;
|
|
64
66
|
export declare const BaseDataSource: z.ZodObject<{
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { PaginationQuery } from '../../../
|
|
1
|
+
import { PaginationQuery } from '../../../api';
|
|
2
2
|
import { ExternalEventLogStatus } from '../external-event-log-records';
|
|
3
3
|
export interface FindExternalEventSubscriptionsQuery extends PaginationQuery {
|
|
4
4
|
userId?: string;
|
|
@@ -1 +1,122 @@
|
|
|
1
|
-
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ConnectorAuthSpec } from '../connectors';
|
|
3
|
+
export declare const BaseIntegration: z.ZodObject<{
|
|
4
|
+
id: z.ZodString;
|
|
5
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
6
|
+
key: z.ZodOptional<z.ZodString>;
|
|
7
|
+
description: z.ZodOptional<z.ZodString>;
|
|
8
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
9
|
+
name: z.ZodString;
|
|
10
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
11
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../../errors").ErrorDataSchema, unknown>>>>;
|
|
12
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
13
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
14
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
15
|
+
logoUri: z.ZodString;
|
|
16
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
17
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
18
|
+
oAuthCallbackUri: z.ZodOptional<z.ZodString>;
|
|
19
|
+
parameters: z.ZodOptional<z.ZodAny>;
|
|
20
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
21
|
+
hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
|
|
22
|
+
hasDocumentation: z.ZodOptional<z.ZodBoolean>;
|
|
23
|
+
hasOperations: z.ZodOptional<z.ZodBoolean>;
|
|
24
|
+
operationsCount: z.ZodOptional<z.ZodNumber>;
|
|
25
|
+
hasData: z.ZodOptional<z.ZodBoolean>;
|
|
26
|
+
dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
|
|
27
|
+
hasEvents: z.ZodOptional<z.ZodBoolean>;
|
|
28
|
+
eventsCount: z.ZodOptional<z.ZodNumber>;
|
|
29
|
+
hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
|
|
30
|
+
hasUdm: z.ZodOptional<z.ZodBoolean>;
|
|
31
|
+
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
32
|
+
appUuid: z.ZodOptional<z.ZodString>;
|
|
33
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
34
|
+
authType: z.ZodOptional<z.ZodEnum<{
|
|
35
|
+
proxy: "proxy";
|
|
36
|
+
"integration-app-token": "integration-app-token";
|
|
37
|
+
"membrane-token": "membrane-token";
|
|
38
|
+
oauth2: "oauth2";
|
|
39
|
+
oauth1: "oauth1";
|
|
40
|
+
"client-credentials": "client-credentials";
|
|
41
|
+
}>>;
|
|
42
|
+
}, z.core.$strip>;
|
|
43
|
+
export type BaseIntegration = z.infer<typeof BaseIntegration>;
|
|
44
|
+
export declare const IntegrationEditableProperties: z.ZodObject<{
|
|
45
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
46
|
+
key: z.ZodOptional<z.ZodString>;
|
|
47
|
+
name: z.ZodOptional<z.ZodString>;
|
|
48
|
+
description: z.ZodOptional<z.ZodString>;
|
|
49
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
50
|
+
baseUri: z.ZodOptional<z.ZodString>;
|
|
51
|
+
logoUri: z.ZodOptional<z.ZodString>;
|
|
52
|
+
appUuid: z.ZodOptional<z.ZodString>;
|
|
53
|
+
oAuthCallbackUri: z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>;
|
|
54
|
+
logoBase64: z.ZodOptional<z.ZodString>;
|
|
55
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
56
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
57
|
+
connectorUuid: z.ZodOptional<z.ZodString>;
|
|
58
|
+
}, z.core.$strip>;
|
|
59
|
+
export type IntegrationEditableProperties = z.infer<typeof IntegrationEditableProperties>;
|
|
60
|
+
export declare const IntegrationExportProperties: z.ZodObject<{
|
|
61
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
62
|
+
key: z.ZodOptional<z.ZodString>;
|
|
63
|
+
name: z.ZodOptional<z.ZodString>;
|
|
64
|
+
description: z.ZodOptional<z.ZodString>;
|
|
65
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
66
|
+
baseUri: z.ZodOptional<z.ZodString>;
|
|
67
|
+
logoUri: z.ZodOptional<z.ZodString>;
|
|
68
|
+
appUuid: z.ZodOptional<z.ZodString>;
|
|
69
|
+
oAuthCallbackUri: z.ZodOptional<z.ZodUnion<[z.ZodURL, z.ZodLiteral<"">]>>;
|
|
70
|
+
logoBase64: z.ZodOptional<z.ZodString>;
|
|
71
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
72
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
73
|
+
connectorUuid: z.ZodOptional<z.ZodString>;
|
|
74
|
+
}, z.core.$strip>;
|
|
75
|
+
export type IntegrationExportProperties = z.infer<typeof IntegrationExportProperties>;
|
|
76
|
+
export type IntegrationAuthOptionLegacy = ConnectorAuthSpec & {
|
|
77
|
+
key: string;
|
|
78
|
+
};
|
|
79
|
+
export declare const AppliedToIntegrations: <Element extends z.ZodType>(elementSchema: Element) => z.ZodArray<z.ZodObject<{
|
|
80
|
+
element: Element;
|
|
81
|
+
integration: z.ZodObject<{
|
|
82
|
+
id: z.ZodString;
|
|
83
|
+
uuid: z.ZodOptional<z.ZodString>;
|
|
84
|
+
key: z.ZodOptional<z.ZodString>;
|
|
85
|
+
description: z.ZodOptional<z.ZodString>;
|
|
86
|
+
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
87
|
+
name: z.ZodString;
|
|
88
|
+
state: z.ZodOptional<z.ZodEnum<typeof import("../../types").WorkspaceElementState>>;
|
|
89
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../../errors").ErrorDataSchema, unknown>>>>;
|
|
90
|
+
revision: z.ZodOptional<z.ZodString>;
|
|
91
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
92
|
+
updatedAt: z.ZodOptional<z.ZodString>;
|
|
93
|
+
logoUri: z.ZodString;
|
|
94
|
+
connectorId: z.ZodOptional<z.ZodString>;
|
|
95
|
+
connectorVersion: z.ZodOptional<z.ZodString>;
|
|
96
|
+
oAuthCallbackUri: z.ZodOptional<z.ZodString>;
|
|
97
|
+
parameters: z.ZodOptional<z.ZodAny>;
|
|
98
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
99
|
+
hasMissingParameters: z.ZodOptional<z.ZodBoolean>;
|
|
100
|
+
hasDocumentation: z.ZodOptional<z.ZodBoolean>;
|
|
101
|
+
hasOperations: z.ZodOptional<z.ZodBoolean>;
|
|
102
|
+
operationsCount: z.ZodOptional<z.ZodNumber>;
|
|
103
|
+
hasData: z.ZodOptional<z.ZodBoolean>;
|
|
104
|
+
dataCollectionsCount: z.ZodOptional<z.ZodNumber>;
|
|
105
|
+
hasEvents: z.ZodOptional<z.ZodBoolean>;
|
|
106
|
+
eventsCount: z.ZodOptional<z.ZodNumber>;
|
|
107
|
+
hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
|
|
108
|
+
hasUdm: z.ZodOptional<z.ZodBoolean>;
|
|
109
|
+
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
110
|
+
appUuid: z.ZodOptional<z.ZodString>;
|
|
111
|
+
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
112
|
+
authType: z.ZodOptional<z.ZodEnum<{
|
|
113
|
+
proxy: "proxy";
|
|
114
|
+
"integration-app-token": "integration-app-token";
|
|
115
|
+
"membrane-token": "membrane-token";
|
|
116
|
+
oauth2: "oauth2";
|
|
117
|
+
oauth1: "oauth1";
|
|
118
|
+
"client-credentials": "client-credentials";
|
|
119
|
+
}>>;
|
|
120
|
+
}, z.core.$strip>;
|
|
121
|
+
}, z.core.$strip>>;
|
|
122
|
+
export type AppliedToIntegrations<Element> = z.infer<ReturnType<typeof AppliedToIntegrations<z.ZodType<Element>>>>;
|
|
@@ -1,14 +1,16 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
import {
|
|
2
|
+
import { WorkspaceElementType } from '../../types';
|
|
3
|
+
export declare const PACKAGE_VERSION_DEVELOPMENT = "dev";
|
|
4
|
+
export declare const PACKAGE_VERSION_LATEST = "latest";
|
|
3
5
|
export declare const PackageElement: z.ZodObject<{
|
|
4
6
|
id: z.ZodString;
|
|
5
|
-
type: z.ZodEnum<typeof
|
|
7
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
6
8
|
element: z.ZodOptional<z.ZodAny>;
|
|
7
9
|
}, z.core.$strip>;
|
|
8
10
|
export type PackageElement = z.infer<typeof PackageElement>;
|
|
9
11
|
export declare const PackageElementExport: z.ZodObject<{
|
|
10
12
|
uuid: z.ZodString;
|
|
11
|
-
type: z.ZodEnum<typeof
|
|
13
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
12
14
|
element: z.ZodOptional<z.ZodAny>;
|
|
13
15
|
}, z.core.$strip>;
|
|
14
16
|
export type PackageElementExport = z.infer<typeof PackageElementExport>;
|
|
@@ -25,9 +27,10 @@ export declare const PackageEditableProperties: z.ZodObject<{
|
|
|
25
27
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
26
28
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
27
29
|
scenarioTemplateId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
28
31
|
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
29
32
|
id: z.ZodString;
|
|
30
|
-
type: z.ZodEnum<typeof
|
|
33
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
31
34
|
element: z.ZodOptional<z.ZodAny>;
|
|
32
35
|
}, z.core.$strip>>>;
|
|
33
36
|
}, z.core.$strip>;
|
|
@@ -43,7 +46,7 @@ export declare const PackageExportProperties: z.ZodObject<{
|
|
|
43
46
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
44
47
|
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
45
48
|
uuid: z.ZodString;
|
|
46
|
-
type: z.ZodEnum<typeof
|
|
49
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
47
50
|
element: z.ZodOptional<z.ZodAny>;
|
|
48
51
|
}, z.core.$strip>>>;
|
|
49
52
|
}, z.core.$strip>;
|
|
@@ -73,9 +76,10 @@ export declare const BasePackage: z.ZodObject<{
|
|
|
73
76
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
74
77
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
75
78
|
scenarioTemplateId: z.ZodOptional<z.ZodString>;
|
|
79
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
76
80
|
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
77
81
|
id: z.ZodString;
|
|
78
|
-
type: z.ZodEnum<typeof
|
|
82
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
79
83
|
element: z.ZodOptional<z.ZodAny>;
|
|
80
84
|
}, z.core.$strip>>>;
|
|
81
85
|
key: z.ZodString;
|
|
@@ -83,3 +87,29 @@ export declare const BasePackage: z.ZodObject<{
|
|
|
83
87
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
84
88
|
}, z.core.$strip>;
|
|
85
89
|
export type BasePackage = z.infer<typeof BasePackage>;
|
|
90
|
+
export declare const WritablePackageVersionData: z.ZodObject<{
|
|
91
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
92
|
+
id: z.ZodString;
|
|
93
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
94
|
+
element: z.ZodOptional<z.ZodAny>;
|
|
95
|
+
}, z.core.$strip>>>;
|
|
96
|
+
}, z.core.$strip>;
|
|
97
|
+
export type WritablePackageVersionData = z.infer<typeof WritablePackageVersionData>;
|
|
98
|
+
export declare const PackageVersionData: z.ZodObject<{
|
|
99
|
+
elements: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
100
|
+
id: z.ZodString;
|
|
101
|
+
type: z.ZodEnum<typeof WorkspaceElementType>;
|
|
102
|
+
element: z.ZodOptional<z.ZodAny>;
|
|
103
|
+
}, z.core.$strip>>>;
|
|
104
|
+
version: z.ZodOptional<z.ZodString>;
|
|
105
|
+
changelog: z.ZodOptional<z.ZodString>;
|
|
106
|
+
parentPackageVersion: z.ZodOptional<z.ZodString>;
|
|
107
|
+
}, z.core.$strip>;
|
|
108
|
+
export type PackageVersionData = z.infer<typeof PackageVersionData>;
|
|
109
|
+
export declare const PackageVersionListItem: z.ZodObject<{
|
|
110
|
+
id: z.ZodString;
|
|
111
|
+
version: z.ZodString;
|
|
112
|
+
changelog: z.ZodOptional<z.ZodString>;
|
|
113
|
+
parentPackageVersion: z.ZodOptional<z.ZodString>;
|
|
114
|
+
}, z.core.$strip>;
|
|
115
|
+
export type PackageVersionListItem = z.infer<typeof PackageVersionListItem>;
|
|
@@ -113,6 +113,7 @@ export declare const BaseIntegrationLevelMembraneInterfaceEditableProperties: z.
|
|
|
113
113
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
114
114
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
115
115
|
}, z.core.$strip>;
|
|
116
|
+
export type BaseIntegrationLevelMembraneInterfaceEditableProperties = z.infer<typeof BaseIntegrationLevelMembraneInterfaceEditableProperties>;
|
|
116
117
|
export declare const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties: z.ZodObject<{
|
|
117
118
|
name: z.ZodString;
|
|
118
119
|
state: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementState>>;
|
|
@@ -124,6 +125,7 @@ export declare const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties: z.
|
|
|
124
125
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
125
126
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
126
127
|
}, z.core.$strip>;
|
|
128
|
+
export type BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = z.infer<typeof BaseIntegrationLevelMembraneInterfaceReadOnlyProperties>;
|
|
127
129
|
export declare const BaseIntegrationLevelMembraneInterfaceExportProperties: z.ZodObject<{
|
|
128
130
|
uuid: z.ZodOptional<z.ZodString>;
|
|
129
131
|
key: z.ZodOptional<z.ZodString>;
|
|
@@ -134,6 +136,7 @@ export declare const BaseIntegrationLevelMembraneInterfaceExportProperties: z.Zo
|
|
|
134
136
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
135
137
|
isCustomized: z.ZodOptional<z.ZodBoolean>;
|
|
136
138
|
}, z.core.$strip>;
|
|
139
|
+
export type BaseIntegrationLevelMembraneInterfaceExportProperties = z.infer<typeof BaseIntegrationLevelMembraneInterfaceExportProperties>;
|
|
137
140
|
export declare const IntegrationLevelMembraneInterfaceSelectorQuery: z.ZodObject<{
|
|
138
141
|
layer: z.ZodOptional<z.ZodEnum<{
|
|
139
142
|
connection: "connection";
|
|
@@ -196,3 +199,16 @@ export interface WorkspaceElementDependency extends WorkspaceElementReference {
|
|
|
196
199
|
dependencyType: WorkspaceElementDependencyType;
|
|
197
200
|
data?: unknown;
|
|
198
201
|
}
|
|
202
|
+
export declare const WorkspaceElementSearchQuery: z.ZodObject<{
|
|
203
|
+
q: z.ZodString;
|
|
204
|
+
elementType: z.ZodOptional<z.ZodEnum<typeof WorkspaceElementType>>;
|
|
205
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
206
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
207
|
+
}, z.core.$strip>;
|
|
208
|
+
export type WorkspaceElementSearchQuery = z.infer<typeof WorkspaceElementSearchQuery>;
|
|
209
|
+
export declare const WorkspaceElementSearchResult: z.ZodObject<{
|
|
210
|
+
elementType: z.ZodEnum<typeof WorkspaceElementType>;
|
|
211
|
+
elementId: z.ZodString;
|
|
212
|
+
name: z.ZodString;
|
|
213
|
+
}, z.core.$strip>;
|
|
214
|
+
export type WorkspaceElementSearchResult = z.infer<typeof WorkspaceElementSearchResult>;
|
|
@@ -7,17 +7,18 @@ export interface WorkspaceElementSpec {
|
|
|
7
7
|
apiPath: string;
|
|
8
8
|
name: string;
|
|
9
9
|
namePlural: string;
|
|
10
|
-
createSchema?: z.ZodObject
|
|
11
|
-
updateSchema?: z.ZodObject
|
|
12
|
-
editablePropertiesSchema?: z.ZodObject
|
|
13
|
-
backwardCompatibleEditablePropertiesSchema?: z.ZodObject
|
|
14
|
-
exportPropertiesSchema?: z.ZodObject
|
|
15
|
-
apiResponseSchema?: z.ZodObject
|
|
16
|
-
findQuerySchema?: z.ZodObject
|
|
10
|
+
createSchema?: z.ZodObject;
|
|
11
|
+
updateSchema?: z.ZodObject;
|
|
12
|
+
editablePropertiesSchema?: z.ZodObject;
|
|
13
|
+
backwardCompatibleEditablePropertiesSchema?: z.ZodObject;
|
|
14
|
+
exportPropertiesSchema?: z.ZodObject;
|
|
15
|
+
apiResponseSchema?: z.ZodObject;
|
|
16
|
+
findQuerySchema?: z.ZodObject;
|
|
17
17
|
isMembraneInterface?: boolean;
|
|
18
18
|
isIntegrationLevel?: boolean;
|
|
19
19
|
parentFieldKey?: string;
|
|
20
20
|
universalParentFieldKey?: string;
|
|
21
|
+
canBeAddedToPackage?: boolean;
|
|
21
22
|
}
|
|
22
23
|
export interface WorkspaceElements {
|
|
23
24
|
flows?: Record<string, CreateFlowRequest>;
|