@membranehq/sdk 0.17.0 → 0.17.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.
- package/dist/bundle.d.ts +91 -1
- package/dist/bundle.js +22 -17
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +2 -0
- package/dist/dts/accessors/integrations-accessors.d.ts +1 -0
- package/dist/dts/agent/index.d.ts +1 -0
- package/dist/dts/agent/session.d.ts +2 -0
- package/dist/dts/agent/worker-contracts.d.ts +43 -0
- package/dist/dts/client-tokens/index.d.ts +1 -0
- package/dist/dts/client-tokens/types.d.ts +76 -0
- package/dist/dts/client.d.ts +1 -1
- package/dist/dts/index.browser.d.ts +2 -0
- package/dist/dts/oauth/index.d.ts +1 -0
- package/dist/dts/oauth/types.d.ts +15 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +10 -0
- package/dist/dts/workspace-elements/api/actions-api.d.ts +24 -0
- package/dist/dts/workspace-elements/api/connected-products-api.d.ts +83 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +5 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +1 -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 +1 -0
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +44 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +6 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +20 -0
- package/dist/dts/workspace-elements/api/index.d.ts +1 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +7 -0
- package/dist/dts/workspace-elements/api/packages-api.d.ts +9 -0
- package/dist/dts/workspace-elements/base/action-instances/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/actions/index.d.ts +6 -0
- package/dist/dts/workspace-elements/base/connected-products/index.d.ts +58 -0
- package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +41 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +0 -15
- package/dist/dts/workspace-elements/base/connectors/auth-success-records.d.ts +13 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +13 -2
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +8 -0
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +14 -0
- package/dist/dts/workspace-elements/base/flows/index.d.ts +6 -0
- package/dist/dts/workspace-elements/base/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +9 -1
- package/dist/dts/workspace-elements/base/packages/index.d.ts +4 -0
- package/dist/dts/workspace-elements/types.d.ts +6 -1
- package/dist/dts/workspaces/compare.d.ts +7 -0
- package/dist/index.browser.d.mts +557 -21
- package/dist/index.browser.d.ts +557 -21
- package/dist/index.browser.js +275 -35
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +229 -36
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +557 -21
- package/dist/index.node.d.ts +557 -21
- package/dist/index.node.js +257 -37
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +229 -37
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -1
|
@@ -109,6 +109,7 @@ export declare class ConnectionAccessor {
|
|
|
109
109
|
hasGlobalWebhooks?: boolean | undefined;
|
|
110
110
|
hasUdm?: boolean | undefined;
|
|
111
111
|
isTest?: boolean | undefined;
|
|
112
|
+
externalAppId?: string | undefined;
|
|
112
113
|
appUuid?: string | undefined;
|
|
113
114
|
isDeactivated?: boolean | undefined;
|
|
114
115
|
authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
|
|
@@ -167,6 +168,7 @@ export declare function createOrUpdateConnection(options: {
|
|
|
167
168
|
connectorVersion?: string;
|
|
168
169
|
connectionId?: string;
|
|
169
170
|
allowMultipleConnections?: boolean;
|
|
171
|
+
connectionRequestId?: string;
|
|
170
172
|
token: string;
|
|
171
173
|
apiUri: string;
|
|
172
174
|
redirectUri?: string;
|
|
@@ -116,6 +116,7 @@ export declare class IntegrationAccessor extends ElementAccessor<IntegrationApiR
|
|
|
116
116
|
hasGlobalWebhooks?: boolean | undefined;
|
|
117
117
|
hasUdm?: boolean | undefined;
|
|
118
118
|
isTest?: boolean | undefined;
|
|
119
|
+
externalAppId?: string | undefined;
|
|
119
120
|
appUuid?: string | undefined;
|
|
120
121
|
isDeactivated?: boolean | undefined;
|
|
121
122
|
authType?: "proxy" | "integration-app-token" | "membrane-token" | "oauth2" | "oauth1" | "client-credentials" | undefined;
|
|
@@ -17,6 +17,8 @@ export declare enum AgentName {
|
|
|
17
17
|
MEMBRANE = "membrane",
|
|
18
18
|
MEMBRANE_CORE = "membrane-core",
|
|
19
19
|
SELF_INTEGRATING = "self-integrating",
|
|
20
|
+
CONNECTION_BUILDING = "connection-building",
|
|
21
|
+
ACTION_BUILDING = "action-building",
|
|
20
22
|
UNIVERSE = "universe"
|
|
21
23
|
}
|
|
22
24
|
export declare const AgentSession: z.ZodObject<{
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { AgentName } from './session';
|
|
3
|
+
export declare const SessionCredentials: z.ZodObject<{
|
|
4
|
+
accessKeyId: z.ZodString;
|
|
5
|
+
secretAccessKey: z.ZodString;
|
|
6
|
+
sessionToken: z.ZodString;
|
|
7
|
+
}, z.core.$strip>;
|
|
8
|
+
export declare const SessionParameters: z.ZodObject<{
|
|
9
|
+
id: z.ZodOptional<z.ZodString>;
|
|
10
|
+
accessToken: z.ZodOptional<z.ZodString>;
|
|
11
|
+
credentials: z.ZodOptional<z.ZodObject<{
|
|
12
|
+
accessKeyId: z.ZodString;
|
|
13
|
+
secretAccessKey: z.ZodString;
|
|
14
|
+
sessionToken: z.ZodString;
|
|
15
|
+
}, z.core.$strip>>;
|
|
16
|
+
apiUri: z.ZodOptional<z.ZodString>;
|
|
17
|
+
prompt: z.ZodOptional<z.ZodString>;
|
|
18
|
+
elementType: z.ZodOptional<z.ZodString>;
|
|
19
|
+
elementId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
customerId: z.ZodOptional<z.ZodString>;
|
|
21
|
+
opencodeSessionUuid: z.ZodOptional<z.ZodString>;
|
|
22
|
+
sessionFilesZipUri: z.ZodOptional<z.ZodString>;
|
|
23
|
+
openRouterApiKey: z.ZodOptional<z.ZodString>;
|
|
24
|
+
modelId: z.ZodOptional<z.ZodString>;
|
|
25
|
+
agentName: z.ZodOptional<z.ZodEnum<typeof AgentName>>;
|
|
26
|
+
}, z.core.$strip>;
|
|
27
|
+
export type SessionParameters = z.infer<typeof SessionParameters>;
|
|
28
|
+
export interface SessionStatus {
|
|
29
|
+
id: string;
|
|
30
|
+
status: 'idle' | 'starting' | 'running' | 'stopped' | 'error';
|
|
31
|
+
startedAt?: Date;
|
|
32
|
+
lastActivityAt?: Date;
|
|
33
|
+
error?: string;
|
|
34
|
+
summary?: string;
|
|
35
|
+
timeToFirstByteMs?: number;
|
|
36
|
+
elementType?: string;
|
|
37
|
+
elementId?: string;
|
|
38
|
+
customerId?: string;
|
|
39
|
+
apiUri?: string;
|
|
40
|
+
opencodeSessionUuid?: string;
|
|
41
|
+
opencodeVersion?: string;
|
|
42
|
+
agentVersion: string;
|
|
43
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CLIENT_TOKEN_GRANT_TYPES: readonly ["mcp-oauth", "cli-oauth", "agent-session", "api"];
|
|
3
|
+
export declare const ClientTokenGrantType: z.ZodEnum<{
|
|
4
|
+
api: "api";
|
|
5
|
+
"mcp-oauth": "mcp-oauth";
|
|
6
|
+
"cli-oauth": "cli-oauth";
|
|
7
|
+
"agent-session": "agent-session";
|
|
8
|
+
}>;
|
|
9
|
+
export type ClientTokenGrantType = z.infer<typeof ClientTokenGrantType>;
|
|
10
|
+
export declare const ClientToken: z.ZodObject<{
|
|
11
|
+
id: z.ZodString;
|
|
12
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
13
|
+
platformUserId: z.ZodOptional<z.ZodString>;
|
|
14
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
15
|
+
grantType: z.ZodEnum<{
|
|
16
|
+
api: "api";
|
|
17
|
+
"mcp-oauth": "mcp-oauth";
|
|
18
|
+
"cli-oauth": "cli-oauth";
|
|
19
|
+
"agent-session": "agent-session";
|
|
20
|
+
}>;
|
|
21
|
+
grantId: z.ZodOptional<z.ZodString>;
|
|
22
|
+
grantName: z.ZodOptional<z.ZodString>;
|
|
23
|
+
connectedProductId: z.ZodOptional<z.ZodString>;
|
|
24
|
+
createdAt: z.ZodString;
|
|
25
|
+
}, z.core.$strip>;
|
|
26
|
+
export type ClientToken = z.infer<typeof ClientToken>;
|
|
27
|
+
export declare const CreateClientTokenResponse: z.ZodObject<{
|
|
28
|
+
id: z.ZodString;
|
|
29
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
30
|
+
platformUserId: z.ZodOptional<z.ZodString>;
|
|
31
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
32
|
+
grantType: z.ZodEnum<{
|
|
33
|
+
api: "api";
|
|
34
|
+
"mcp-oauth": "mcp-oauth";
|
|
35
|
+
"cli-oauth": "cli-oauth";
|
|
36
|
+
"agent-session": "agent-session";
|
|
37
|
+
}>;
|
|
38
|
+
grantId: z.ZodOptional<z.ZodString>;
|
|
39
|
+
grantName: z.ZodOptional<z.ZodString>;
|
|
40
|
+
connectedProductId: z.ZodOptional<z.ZodString>;
|
|
41
|
+
createdAt: z.ZodString;
|
|
42
|
+
accessToken: z.ZodString;
|
|
43
|
+
}, z.core.$strip>;
|
|
44
|
+
export type CreateClientTokenResponse = z.infer<typeof CreateClientTokenResponse>;
|
|
45
|
+
export declare const CreateClientTokenRequest: z.ZodObject<{
|
|
46
|
+
grantType: z.ZodEnum<{
|
|
47
|
+
api: "api";
|
|
48
|
+
"mcp-oauth": "mcp-oauth";
|
|
49
|
+
"cli-oauth": "cli-oauth";
|
|
50
|
+
"agent-session": "agent-session";
|
|
51
|
+
}>;
|
|
52
|
+
grantId: z.ZodString;
|
|
53
|
+
grantName: z.ZodString;
|
|
54
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
55
|
+
productKey: z.ZodOptional<z.ZodString>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export type CreateClientTokenRequest = z.infer<typeof CreateClientTokenRequest>;
|
|
58
|
+
export declare const ClientTokenListResponse: z.ZodObject<{
|
|
59
|
+
items: z.ZodArray<z.ZodObject<{
|
|
60
|
+
id: z.ZodString;
|
|
61
|
+
workspaceId: z.ZodOptional<z.ZodString>;
|
|
62
|
+
platformUserId: z.ZodOptional<z.ZodString>;
|
|
63
|
+
tenantId: z.ZodOptional<z.ZodString>;
|
|
64
|
+
grantType: z.ZodEnum<{
|
|
65
|
+
api: "api";
|
|
66
|
+
"mcp-oauth": "mcp-oauth";
|
|
67
|
+
"cli-oauth": "cli-oauth";
|
|
68
|
+
"agent-session": "agent-session";
|
|
69
|
+
}>;
|
|
70
|
+
grantId: z.ZodOptional<z.ZodString>;
|
|
71
|
+
grantName: z.ZodOptional<z.ZodString>;
|
|
72
|
+
connectedProductId: z.ZodOptional<z.ZodString>;
|
|
73
|
+
createdAt: z.ZodString;
|
|
74
|
+
}, z.core.$strip>>;
|
|
75
|
+
}, z.core.$strip>;
|
|
76
|
+
export type ClientTokenListResponse = z.infer<typeof ClientTokenListResponse>;
|
package/dist/dts/client.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AppDataSchemaAccessor, AppDataSchemaInstanceAccessor, AppDataSchemaInstancesAccessor, AppDataSchemasAccessor, AppEventSubscriptionAccessor, AppEventSubscriptionsAccessor, AppEventTypeAccessor, AppEventTypesAccessor, DataLinkTableAccessor, DataLinkTableInstanceAccessor, DataLinkTableInstancesAccessor, DataLinkTablesAccessor, FieldMappingAccessor, FieldMappingInstanceAccessor, FieldMappingInstancesAccessor, FieldMappingsAccessor, FlowAccessor, FlowInstanceAccessor, FlowInstancesAccessor, FlowsAccessor, FlowRunAccessor, FlowRunsAccessor, ExternalEventSubscriptionAccessor, ExternalEventSubscriptionsAccessor, DataSourceAccessor, DataSourceInstanceAccessor, DataSourceInstancesAccessor, DataSourcesAccessor, ConnectionAccessor, ConnectionsAccessor, ActionAccessor, ActionInstanceAccessor, ActionInstancesAccessor, ActionsAccessor, IntegrationAccessor, IntegrationsAccessor, PackageAccessor, PackagesAccessor, ScreenAccessor, ScreensAccessor, CustomerAccessor, CustomersAccessor } from './accessors/index';
|
|
2
2
|
import { UI } from './ui';
|
|
3
|
-
import { MembraneApiClient
|
|
3
|
+
import { MembraneApiClient, MembraneClientOptions } from './api-client';
|
|
4
4
|
import { SelfAccessor } from './auth';
|
|
5
5
|
import { OpenConfigurationOptions } from './iframe';
|
|
6
6
|
import { FlowInstanceSelector, FlowSelector, DataSourceInstanceSelector, DataSourceSelector, ActionInstanceSelector, ActionSelector, ScreenSelector, CustomerSelector, AppDataSchemaInstanceSelector, AppEventSubscriptionSelector, DataLinkTableInstanceSelector, FieldMappingInstanceSelector, FieldMappingSelector, ConnectOptions, ConnectionApiResponse } from './workspace-elements/api';
|
|
@@ -35,6 +35,8 @@ export * from './functions';
|
|
|
35
35
|
export * from './dto';
|
|
36
36
|
export * from './async-requests';
|
|
37
37
|
export * from './self-hosting-tokens';
|
|
38
|
+
export * from './client-tokens';
|
|
39
|
+
export * from './oauth';
|
|
38
40
|
export * from './console-paths';
|
|
39
41
|
export { MembraneClient as IntegrationAppClient, MembraneClient } from './client';
|
|
40
42
|
export { axios as MembraneAxiosInstance } from './api-client';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './types';
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const MEMBRANE_CLI_CLIENT_ID: "membrane-cli";
|
|
3
|
+
export declare const OAUTH_SCOPE_PLATFORM_USER: "platform-user";
|
|
4
|
+
export declare const OAUTH_SCOPE_TENANT: "tenant";
|
|
5
|
+
export declare const OAUTH_SCOPES: readonly ["platform-user", "tenant"];
|
|
6
|
+
export type OAuthScope = (typeof OAUTH_SCOPES)[number];
|
|
7
|
+
export declare const OAuthTokenResponse: z.ZodObject<{
|
|
8
|
+
access_token: z.ZodString;
|
|
9
|
+
token_type: z.ZodString;
|
|
10
|
+
expires_in: z.ZodNumber;
|
|
11
|
+
refresh_token: z.ZodOptional<z.ZodString>;
|
|
12
|
+
default_workspace_key: z.ZodOptional<z.ZodString>;
|
|
13
|
+
default_tenant_key: z.ZodOptional<z.ZodString>;
|
|
14
|
+
}, z.core.$strip>;
|
|
15
|
+
export type OAuthTokenResponse = z.infer<typeof OAuthTokenResponse>;
|
|
@@ -25,8 +25,10 @@ export declare const ActionRunLogRecordApiResponse: z.ZodObject<{
|
|
|
25
25
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
26
26
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
27
27
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
28
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
28
29
|
parentId: z.ZodOptional<z.ZodString>;
|
|
29
30
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
31
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
30
32
|
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
31
33
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
32
34
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
@@ -60,8 +62,10 @@ export declare const ActionRunLogRecordApiResponse: z.ZodObject<{
|
|
|
60
62
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
61
63
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
62
64
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
65
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
63
66
|
parentId: z.ZodOptional<z.ZodString>;
|
|
64
67
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
68
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
65
69
|
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
66
70
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
67
71
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
@@ -117,6 +121,7 @@ export declare const ActionRunLogRecordApiResponse: z.ZodObject<{
|
|
|
117
121
|
hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
|
|
118
122
|
hasUdm: z.ZodOptional<z.ZodBoolean>;
|
|
119
123
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
124
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
120
125
|
appUuid: z.ZodOptional<z.ZodString>;
|
|
121
126
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
122
127
|
authType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -213,8 +218,10 @@ export declare const FindActionRunLogsResponse: z.ZodObject<{
|
|
|
213
218
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
214
219
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
215
220
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
221
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
216
222
|
parentId: z.ZodOptional<z.ZodString>;
|
|
217
223
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
224
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
218
225
|
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
219
226
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
220
227
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
@@ -248,8 +255,10 @@ export declare const FindActionRunLogsResponse: z.ZodObject<{
|
|
|
248
255
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
249
256
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
250
257
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
258
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
251
259
|
parentId: z.ZodOptional<z.ZodString>;
|
|
252
260
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
261
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
253
262
|
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
254
263
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
255
264
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
@@ -305,6 +314,7 @@ export declare const FindActionRunLogsResponse: z.ZodObject<{
|
|
|
305
314
|
hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
|
|
306
315
|
hasUdm: z.ZodOptional<z.ZodBoolean>;
|
|
307
316
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
317
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
308
318
|
appUuid: z.ZodOptional<z.ZodString>;
|
|
309
319
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
310
320
|
authType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -10,8 +10,10 @@ export declare const ActionApiResponse: z.ZodObject<{
|
|
|
10
10
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
11
11
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
12
12
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
13
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
13
14
|
parentId: z.ZodOptional<z.ZodString>;
|
|
14
15
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
16
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
15
17
|
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
16
18
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
17
19
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
@@ -65,6 +67,7 @@ export declare const ActionApiResponse: z.ZodObject<{
|
|
|
65
67
|
hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
|
|
66
68
|
hasUdm: z.ZodOptional<z.ZodBoolean>;
|
|
67
69
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
70
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
68
71
|
appUuid: z.ZodOptional<z.ZodString>;
|
|
69
72
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
70
73
|
authType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -102,8 +105,10 @@ export declare const ActionApiResponse: z.ZodObject<{
|
|
|
102
105
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
103
106
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
104
107
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
108
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
105
109
|
parentId: z.ZodOptional<z.ZodString>;
|
|
106
110
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
111
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
107
112
|
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
108
113
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
109
114
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
@@ -138,8 +143,10 @@ export declare const ActionApiResponse: z.ZodObject<{
|
|
|
138
143
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
139
144
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
140
145
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
146
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
141
147
|
parentId: z.ZodOptional<z.ZodString>;
|
|
142
148
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
149
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
143
150
|
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
144
151
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
145
152
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
@@ -195,6 +202,7 @@ export declare const ActionApiResponse: z.ZodObject<{
|
|
|
195
202
|
hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
|
|
196
203
|
hasUdm: z.ZodOptional<z.ZodBoolean>;
|
|
197
204
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
205
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
198
206
|
appUuid: z.ZodOptional<z.ZodString>;
|
|
199
207
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
200
208
|
authType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -249,8 +257,10 @@ export declare const CreateActionRequest: z.ZodObject<{
|
|
|
249
257
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
250
258
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
251
259
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
260
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
252
261
|
parentId: z.ZodOptional<z.ZodString>;
|
|
253
262
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
263
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
254
264
|
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
255
265
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
256
266
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
@@ -269,8 +279,10 @@ export declare const UpdateActionRequest: z.ZodObject<{
|
|
|
269
279
|
meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
270
280
|
integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
271
281
|
integrationUuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
282
|
+
integrationKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
272
283
|
parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
273
284
|
parentUuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
285
|
+
parentKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
274
286
|
isUniversal: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
275
287
|
connectionId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
276
288
|
instanceKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -289,8 +301,10 @@ export declare const CreateActionInstanceRequest: z.ZodObject<{
|
|
|
289
301
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
290
302
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
291
303
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
304
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
292
305
|
parentId: z.ZodOptional<z.ZodString>;
|
|
293
306
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
307
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
294
308
|
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
295
309
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
296
310
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
@@ -309,8 +323,10 @@ export declare const UpdateActionInstanceRequest: z.ZodObject<{
|
|
|
309
323
|
meta: z.ZodOptional<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>>;
|
|
310
324
|
integrationId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
311
325
|
integrationUuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
326
|
+
integrationKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
312
327
|
parentId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
313
328
|
parentUuid: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
329
|
+
parentKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
314
330
|
isUniversal: z.ZodOptional<z.ZodOptional<z.ZodBoolean>>;
|
|
315
331
|
connectionId: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
316
332
|
instanceKey: z.ZodOptional<z.ZodOptional<z.ZodString>>;
|
|
@@ -341,8 +357,10 @@ export declare const ActionInstanceApiResponse: z.ZodObject<{
|
|
|
341
357
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
342
358
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
343
359
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
360
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
344
361
|
parentId: z.ZodOptional<z.ZodString>;
|
|
345
362
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
363
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
346
364
|
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
347
365
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
348
366
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
@@ -396,6 +414,7 @@ export declare const ActionInstanceApiResponse: z.ZodObject<{
|
|
|
396
414
|
hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
|
|
397
415
|
hasUdm: z.ZodOptional<z.ZodBoolean>;
|
|
398
416
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
417
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
399
418
|
appUuid: z.ZodOptional<z.ZodString>;
|
|
400
419
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
401
420
|
authType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -433,8 +452,10 @@ export declare const ActionInstanceApiResponse: z.ZodObject<{
|
|
|
433
452
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
434
453
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
435
454
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
455
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
436
456
|
parentId: z.ZodOptional<z.ZodString>;
|
|
437
457
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
458
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
438
459
|
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
439
460
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
440
461
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
@@ -469,8 +490,10 @@ export declare const ActionInstanceApiResponse: z.ZodObject<{
|
|
|
469
490
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
470
491
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
471
492
|
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
493
|
+
integrationKey: z.ZodOptional<z.ZodString>;
|
|
472
494
|
parentId: z.ZodOptional<z.ZodString>;
|
|
473
495
|
parentUuid: z.ZodOptional<z.ZodString>;
|
|
496
|
+
parentKey: z.ZodOptional<z.ZodString>;
|
|
474
497
|
isUniversal: z.ZodOptional<z.ZodBoolean>;
|
|
475
498
|
connectionId: z.ZodOptional<z.ZodString>;
|
|
476
499
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
@@ -526,6 +549,7 @@ export declare const ActionInstanceApiResponse: z.ZodObject<{
|
|
|
526
549
|
hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
|
|
527
550
|
hasUdm: z.ZodOptional<z.ZodBoolean>;
|
|
528
551
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
552
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
529
553
|
appUuid: z.ZodOptional<z.ZodString>;
|
|
530
554
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
531
555
|
authType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const CreateConnectedProductRequest: z.ZodObject<{
|
|
3
|
+
name: z.ZodString;
|
|
4
|
+
type: z.ZodEnum<{
|
|
5
|
+
app: "app";
|
|
6
|
+
"ai-agent": "ai-agent";
|
|
7
|
+
}>;
|
|
8
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
9
|
+
customers: "customers";
|
|
10
|
+
personal: "personal";
|
|
11
|
+
}>>;
|
|
12
|
+
parameters: z.ZodOptional<z.ZodObject<{
|
|
13
|
+
agentType: z.ZodOptional<z.ZodEnum<{
|
|
14
|
+
custom: "custom";
|
|
15
|
+
openclaw: "openclaw";
|
|
16
|
+
claude: "claude";
|
|
17
|
+
chatgpt: "chatgpt";
|
|
18
|
+
}>>;
|
|
19
|
+
}, z.core.$strip>>;
|
|
20
|
+
}, z.core.$strip>;
|
|
21
|
+
export type CreateConnectedProductRequest = z.infer<typeof CreateConnectedProductRequest>;
|
|
22
|
+
export declare const UpdateConnectedProductRequest: z.ZodObject<{
|
|
23
|
+
name: z.ZodOptional<z.ZodString>;
|
|
24
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
25
|
+
app: "app";
|
|
26
|
+
"ai-agent": "ai-agent";
|
|
27
|
+
}>>;
|
|
28
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
29
|
+
customers: "customers";
|
|
30
|
+
personal: "personal";
|
|
31
|
+
}>>;
|
|
32
|
+
parameters: z.ZodOptional<z.ZodObject<{
|
|
33
|
+
agentType: z.ZodOptional<z.ZodEnum<{
|
|
34
|
+
custom: "custom";
|
|
35
|
+
openclaw: "openclaw";
|
|
36
|
+
claude: "claude";
|
|
37
|
+
chatgpt: "chatgpt";
|
|
38
|
+
}>>;
|
|
39
|
+
}, z.core.$strip>>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type UpdateConnectedProductRequest = z.infer<typeof UpdateConnectedProductRequest>;
|
|
42
|
+
export declare const FindConnectedProductsQuery: z.ZodObject<{
|
|
43
|
+
type: z.ZodOptional<z.ZodEnum<{
|
|
44
|
+
app: "app";
|
|
45
|
+
"ai-agent": "ai-agent";
|
|
46
|
+
}>>;
|
|
47
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
48
|
+
customers: "customers";
|
|
49
|
+
personal: "personal";
|
|
50
|
+
}>>;
|
|
51
|
+
key: z.ZodOptional<z.ZodString>;
|
|
52
|
+
limit: z.ZodOptional<z.ZodCoercedNumber<unknown>>;
|
|
53
|
+
cursor: z.ZodOptional<z.ZodString>;
|
|
54
|
+
search: z.ZodOptional<z.ZodString>;
|
|
55
|
+
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
56
|
+
}, z.core.$strip>;
|
|
57
|
+
export type FindConnectedProductsQuery = z.infer<typeof FindConnectedProductsQuery>;
|
|
58
|
+
export declare const ConnectedProductApiResponse: z.ZodObject<{
|
|
59
|
+
id: z.ZodString;
|
|
60
|
+
name: z.ZodString;
|
|
61
|
+
key: z.ZodString;
|
|
62
|
+
type: z.ZodEnum<{
|
|
63
|
+
app: "app";
|
|
64
|
+
"ai-agent": "ai-agent";
|
|
65
|
+
}>;
|
|
66
|
+
audience: z.ZodOptional<z.ZodEnum<{
|
|
67
|
+
customers: "customers";
|
|
68
|
+
personal: "personal";
|
|
69
|
+
}>>;
|
|
70
|
+
parameters: z.ZodOptional<z.ZodObject<{
|
|
71
|
+
agentType: z.ZodOptional<z.ZodEnum<{
|
|
72
|
+
custom: "custom";
|
|
73
|
+
openclaw: "openclaw";
|
|
74
|
+
claude: "claude";
|
|
75
|
+
chatgpt: "chatgpt";
|
|
76
|
+
}>>;
|
|
77
|
+
}, z.core.$strip>>;
|
|
78
|
+
isConnected: z.ZodOptional<z.ZodBoolean>;
|
|
79
|
+
lastApiRequestDate: z.ZodOptional<z.ZodString>;
|
|
80
|
+
createdAt: z.ZodOptional<z.ZodString>;
|
|
81
|
+
archivedAt: z.ZodOptional<z.ZodString>;
|
|
82
|
+
}, z.core.$strip>;
|
|
83
|
+
export type ConnectedProductApiResponse = z.infer<typeof ConnectedProductApiResponse>;
|
|
@@ -146,6 +146,7 @@ export declare const ConnectionApiResponse: z.ZodObject<{
|
|
|
146
146
|
hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
|
|
147
147
|
hasUdm: z.ZodOptional<z.ZodBoolean>;
|
|
148
148
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
149
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
149
150
|
appUuid: z.ZodOptional<z.ZodString>;
|
|
150
151
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
151
152
|
authType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -232,6 +233,7 @@ export declare const ConnectionApiResponseWithSecrets: z.ZodObject<{
|
|
|
232
233
|
hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
|
|
233
234
|
hasUdm: z.ZodOptional<z.ZodBoolean>;
|
|
234
235
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
236
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
235
237
|
appUuid: z.ZodOptional<z.ZodString>;
|
|
236
238
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
237
239
|
authType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -326,6 +328,7 @@ export declare const ConnectionMessagePayload: z.ZodDiscriminatedUnion<[z.ZodObj
|
|
|
326
328
|
hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
|
|
327
329
|
hasUdm: z.ZodOptional<z.ZodBoolean>;
|
|
328
330
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
331
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
329
332
|
appUuid: z.ZodOptional<z.ZodString>;
|
|
330
333
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
331
334
|
authType: z.ZodOptional<z.ZodEnum<{
|
|
@@ -375,6 +378,7 @@ export declare const ConnectPayload: z.ZodObject<{
|
|
|
375
378
|
allowMultipleConnections: z.ZodOptional<z.ZodBoolean>;
|
|
376
379
|
redirectUri: z.ZodOptional<z.ZodString>;
|
|
377
380
|
customState: z.ZodOptional<z.ZodString>;
|
|
381
|
+
connectionRequestId: z.ZodOptional<z.ZodString>;
|
|
378
382
|
}, z.core.$strip>;
|
|
379
383
|
export type ConnectPayload = z.infer<typeof ConnectPayload>;
|
|
380
384
|
export declare const ConnectUIOptions: z.ZodObject<{
|
|
@@ -390,6 +394,7 @@ export declare const ConnectUIOptions: z.ZodObject<{
|
|
|
390
394
|
connectionParameters: z.ZodOptional<z.ZodAny>;
|
|
391
395
|
allowMultipleConnections: z.ZodOptional<z.ZodBoolean>;
|
|
392
396
|
customState: z.ZodOptional<z.ZodString>;
|
|
397
|
+
connectionRequestId: z.ZodOptional<z.ZodString>;
|
|
393
398
|
theme: z.ZodOptional<z.ZodEnum<{
|
|
394
399
|
light: "light";
|
|
395
400
|
dark: "dark";
|
|
@@ -193,6 +193,7 @@ export declare const DataLinkTableInstanceApiResponse: z.ZodObject<{
|
|
|
193
193
|
hasGlobalWebhooks: z.ZodOptional<z.ZodBoolean>;
|
|
194
194
|
hasUdm: z.ZodOptional<z.ZodBoolean>;
|
|
195
195
|
isTest: z.ZodOptional<z.ZodBoolean>;
|
|
196
|
+
externalAppId: z.ZodOptional<z.ZodString>;
|
|
196
197
|
appUuid: z.ZodOptional<z.ZodString>;
|
|
197
198
|
isDeactivated: z.ZodOptional<z.ZodBoolean>;
|
|
198
199
|
authType: z.ZodOptional<z.ZodEnum<{
|