@membranehq/sdk 0.8.3 → 0.8.5
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 +430 -293
- package/dist/bundle.js +123 -103
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/action-instances-accessors.d.ts +1 -16
- package/dist/dts/accessors/actions-accessors.d.ts +26 -7
- package/dist/dts/accessors/actions-accessors.test.d.ts +1 -0
- package/dist/dts/accessors/connections-accessors.d.ts +5 -5
- package/dist/dts/accessors/integrations-accessors.d.ts +5 -5
- package/dist/dts/agent/session.d.ts +41 -0
- package/dist/dts/alerts/types.d.ts +2 -1
- package/dist/dts/entity-repository.d.ts +0 -1
- package/dist/dts/formulas/dataSchemaRef.d.ts +3 -3
- package/dist/dts/index.browser.d.ts +3 -1
- package/dist/dts/orgs/types.d.ts +10 -1
- package/dist/dts/usage/types.d.ts +4 -2
- package/dist/dts/validation/types.d.ts +2 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +12 -10
- package/dist/dts/workspace-elements/api/actions-api.d.ts +85 -63
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +5 -5
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +9 -8
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +9 -8
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +3 -2
- package/dist/dts/workspace-elements/api/connections-api.d.ts +3 -3
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +7 -7
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +2 -2
- package/dist/dts/workspace-elements/api/data-source-instances-api.d.ts +13 -8
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +42 -12
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +8 -7
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +8 -7
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +7 -6
- package/dist/dts/workspace-elements/api/external-events-api.d.ts +8 -6
- package/dist/dts/workspace-elements/api/field-mapping-instances-api.d.ts +28 -19
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +46 -20
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +14 -14
- package/dist/dts/workspace-elements/api/flows-api.d.ts +83 -40
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +3 -3
- package/dist/dts/workspace-elements/api/packages-api.d.ts +70 -13
- package/dist/dts/workspace-elements/base/action-instances/types.d.ts +8 -6
- package/dist/dts/workspace-elements/base/actions/index.d.ts +33 -11
- package/dist/dts/workspace-elements/base/app-data-schema-instances/types.d.ts +1 -1
- package/dist/dts/workspace-elements/base/app-data-schemas/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/app-event-subscriptions/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/app-event-types/types.d.ts +3 -2
- package/dist/dts/workspace-elements/base/connectors/types.d.ts +2 -0
- package/dist/dts/workspace-elements/base/data-link-table-instances/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/data-link-tables/types.d.ts +2 -2
- package/dist/dts/workspace-elements/base/data-source-instances/types.d.ts +3 -3
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +30 -3
- package/dist/dts/workspace-elements/base/external-event-subscriptions/types.d.ts +6 -4
- package/dist/dts/workspace-elements/base/external-events/types.d.ts +6 -4
- package/dist/dts/workspace-elements/base/field-mapping-instances/types.d.ts +1 -1
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +31 -3
- package/dist/dts/workspace-elements/base/flow-instances/types.d.ts +1 -1
- package/dist/dts/workspace-elements/base/flows/index.d.ts +53 -3
- package/dist/dts/workspace-elements/base/integrations/types.d.ts +18 -4
- package/dist/dts/workspace-elements/base/packages/index.d.ts +35 -6
- package/dist/dts/workspace-elements/paths.d.ts +8 -0
- package/dist/dts/workspace-elements/paths.test.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +33 -11
- package/dist/dts/workspace-elements-catalog/index.d.ts +2 -0
- package/dist/dts/workspaces/types.d.ts +0 -1
- package/dist/index.browser.d.mts +6690 -6383
- package/dist/index.browser.d.ts +6690 -6383
- package/dist/index.browser.js +310 -289
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +294 -289
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +8742 -8435
- package/dist/index.node.d.ts +8742 -8435
- package/dist/index.node.js +310 -289
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +294 -289
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -1
- package/dist/dts/connector-copilot/types.d.ts +0 -160
- package/dist/dts/index.d.ts +0 -33
- /package/dist/dts/{connector-copilot → validation}/index.d.ts +0 -0
|
@@ -1,9 +1,7 @@
|
|
|
1
1
|
import { MembraneApiClient } from '../api-client';
|
|
2
2
|
import { OpenConfigurationOptions } from '../iframe';
|
|
3
3
|
import { ElementInstanceAccessor, ElementInstanceListAccessor } from './base-accessors';
|
|
4
|
-
import {
|
|
5
|
-
import { ConnectionLevelElementAccessor, ConnectionLevelElementsListAccessor } from '../integration-elements/connection-level-element.accessor';
|
|
6
|
-
import { ActionInstance, ActionInstanceSelector, CreateActionInstanceRequest, FindActionInstancesQuery, ListActionInstancesForConnectionQuery, UpdateActionInstanceRequest, ActionRunResponse } from '../workspace-elements/api/actions-api';
|
|
4
|
+
import { ActionInstance, ActionInstanceSelector, CreateActionInstanceRequest, FindActionInstancesQuery, UpdateActionInstanceRequest, ActionRunResponse } from '../workspace-elements/api/actions-api';
|
|
7
5
|
export interface OpenActionConfigurationOptions extends OpenConfigurationOptions {
|
|
8
6
|
}
|
|
9
7
|
export declare class ActionInstancesAccessor extends ElementInstanceListAccessor<ActionInstance, FindActionInstancesQuery> {
|
|
@@ -17,16 +15,3 @@ export declare class ActionInstanceAccessor extends ElementInstanceAccessor<Acti
|
|
|
17
15
|
run(input?: any): Promise<ActionRunResponse>;
|
|
18
16
|
open({ onClose }?: OpenActionConfigurationOptions): Promise<void>;
|
|
19
17
|
}
|
|
20
|
-
export declare class ConnectionLevelActionAccessor extends ConnectionLevelElementAccessor<ActionInstance, UpdateActionInstanceRequest> {
|
|
21
|
-
client: MembraneApiClient;
|
|
22
|
-
connectionSelector: string;
|
|
23
|
-
actionSelector: string;
|
|
24
|
-
query: InstanceKeyQuery;
|
|
25
|
-
constructor(client: MembraneApiClient, connectionSelector: string, actionSelector: string, query: InstanceKeyQuery);
|
|
26
|
-
run(input?: any): Promise<ActionRunResponse>;
|
|
27
|
-
}
|
|
28
|
-
export declare class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor<ActionInstance, ListActionInstancesForConnectionQuery> {
|
|
29
|
-
client: MembraneApiClient;
|
|
30
|
-
connectionSelector: string;
|
|
31
|
-
constructor(client: MembraneApiClient, connectionSelector: string);
|
|
32
|
-
}
|
|
@@ -1,22 +1,41 @@
|
|
|
1
1
|
import { MembraneApiClient } from '../api-client';
|
|
2
|
-
import { ElementAccessor, ElementListAccessor } from './base-accessors';
|
|
2
|
+
import { ElementAccessor, ElementListAccessor, IntegrationSpecificElementSelector } from './base-accessors';
|
|
3
|
+
import { InstanceKeyQuery } from '../integration-elements/common';
|
|
4
|
+
import { ConnectionLevelElementAccessor, ConnectionLevelElementsListAccessor } from '../integration-elements/connection-level-element.accessor';
|
|
3
5
|
import { IntegrationLevelElementAccessor, IntegrationLevelElementsListAccessor } from '../integration-elements/integration-level-element.accessor';
|
|
4
|
-
import {
|
|
5
|
-
export declare class ActionsAccessor extends ElementListAccessor<
|
|
6
|
+
import { ActionApiResponse, ActionInstanceApiResponse, ActionRunResponse, CreateActionRequest, FindActionsQuery, UpdateActionInstanceRequest, UpdateActionRequest } from '../workspace-elements/api/actions-api';
|
|
7
|
+
export declare class ActionsAccessor extends ElementListAccessor<ActionApiResponse, FindActionsQuery, CreateActionRequest> {
|
|
6
8
|
constructor(client: MembraneApiClient);
|
|
7
9
|
}
|
|
8
|
-
export declare class ActionAccessor extends ElementAccessor<
|
|
9
|
-
constructor(client: MembraneApiClient, selector:
|
|
10
|
+
export declare class ActionAccessor<RunInput = any, RunOutput = any> extends ElementAccessor<ActionApiResponse, UpdateActionRequest, IntegrationSpecificElementSelector> {
|
|
11
|
+
constructor(client: MembraneApiClient, selector: IntegrationSpecificElementSelector | string);
|
|
10
12
|
reset(): Promise<any>;
|
|
13
|
+
run(input?: RunInput, options?: {
|
|
14
|
+
integrationKey?: string;
|
|
15
|
+
connectionId?: string;
|
|
16
|
+
}): Promise<ActionRunResponse<RunOutput>>;
|
|
11
17
|
}
|
|
12
|
-
export declare class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor<
|
|
18
|
+
export declare class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor<ActionApiResponse, UpdateActionRequest> {
|
|
13
19
|
client: MembraneApiClient;
|
|
14
20
|
integrationSelector: string;
|
|
15
21
|
actionSelector: string;
|
|
16
22
|
constructor(client: MembraneApiClient, integrationSelector: string, actionSelector: string);
|
|
17
23
|
}
|
|
18
|
-
export declare class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAccessor<
|
|
24
|
+
export declare class IntegrationLevelActionsListAccessor extends IntegrationLevelElementsListAccessor<ActionApiResponse, Omit<FindActionsQuery, 'integrationId'>, Omit<CreateActionRequest, 'integrationId'>> {
|
|
19
25
|
client: MembraneApiClient;
|
|
20
26
|
integrationSelector: string;
|
|
21
27
|
constructor(client: MembraneApiClient, integrationSelector: string);
|
|
22
28
|
}
|
|
29
|
+
export declare class ConnectionLevelActionAccessor<RunInput = any, RunOutput = any> extends ConnectionLevelElementAccessor<ActionInstanceApiResponse, UpdateActionInstanceRequest> {
|
|
30
|
+
client: MembraneApiClient;
|
|
31
|
+
connectionSelector: string;
|
|
32
|
+
actionSelector: string;
|
|
33
|
+
query: InstanceKeyQuery;
|
|
34
|
+
constructor(client: MembraneApiClient, connectionSelector: string, actionSelector: string, query: InstanceKeyQuery);
|
|
35
|
+
run(input?: RunInput): Promise<ActionRunResponse<RunOutput>>;
|
|
36
|
+
}
|
|
37
|
+
export declare class ConnectionLevelActionsAccessor extends ConnectionLevelElementsListAccessor<ActionInstanceApiResponse, FindActionsQuery> {
|
|
38
|
+
client: MembraneApiClient;
|
|
39
|
+
connectionSelector: string;
|
|
40
|
+
constructor(client: MembraneApiClient, connectionSelector: string);
|
|
41
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor } from './
|
|
1
|
+
import { ConnectionLevelActionAccessor, ConnectionLevelActionsAccessor } from './actions-accessors';
|
|
2
2
|
import { ElementInstanceListAccessor } from './base-accessors';
|
|
3
3
|
import { ConnectionLevelDataSourceAccessor, ConnectionLevelDataSourcesAccessor } from './data-sources-accessors';
|
|
4
4
|
import { ConnectionLevelFieldMappingAccessor, ConnectionLevelFieldMappingsAccessor } from './field-mapping-instances-accessors';
|
|
@@ -19,7 +19,7 @@ export declare class ConnectionAccessor {
|
|
|
19
19
|
connectionSelector: string;
|
|
20
20
|
constructor(client: MembraneApiClient, connectionSelector: string);
|
|
21
21
|
get actions(): ConnectionLevelActionsAccessor;
|
|
22
|
-
action(actionSelector: string, query?: InstanceKeyQuery): ConnectionLevelActionAccessor
|
|
22
|
+
action(actionSelector: string, query?: InstanceKeyQuery): ConnectionLevelActionAccessor<any, any>;
|
|
23
23
|
get flows(): ConnectionLevelFlowsAccessor;
|
|
24
24
|
flow(flowSelector: string, query?: InstanceKeyQuery): ConnectionLevelFlowAccessor;
|
|
25
25
|
get dataSources(): ConnectionLevelDataSourcesAccessor;
|
|
@@ -50,7 +50,7 @@ export declare class ConnectionAccessor {
|
|
|
50
50
|
isTest?: boolean | undefined;
|
|
51
51
|
disconnected?: boolean | undefined;
|
|
52
52
|
isDefunct?: boolean | undefined;
|
|
53
|
-
state?: import("
|
|
53
|
+
state?: import("../workspace-elements").WorkspaceElementState | undefined;
|
|
54
54
|
error?: import("../errors").ErrorDataSchema | undefined;
|
|
55
55
|
authOptionKey?: string | undefined;
|
|
56
56
|
lastActiveAt?: string | undefined;
|
|
@@ -75,11 +75,11 @@ export declare class ConnectionAccessor {
|
|
|
75
75
|
id: string;
|
|
76
76
|
name: string;
|
|
77
77
|
logoUri: string;
|
|
78
|
-
key?: string | undefined;
|
|
79
78
|
uuid?: string | undefined;
|
|
79
|
+
key?: string | undefined;
|
|
80
80
|
description?: string | undefined;
|
|
81
81
|
meta?: Record<string, any> | undefined;
|
|
82
|
-
state?: import("
|
|
82
|
+
state?: import("../workspace-elements").WorkspaceElementState | undefined;
|
|
83
83
|
errors?: import("../errors").ErrorDataSchema[] | undefined;
|
|
84
84
|
revision?: string | undefined;
|
|
85
85
|
createdAt?: string | undefined;
|
|
@@ -54,8 +54,8 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
|
|
|
54
54
|
isTest?: boolean | undefined;
|
|
55
55
|
disconnected?: boolean | undefined;
|
|
56
56
|
isDefunct?: boolean | undefined;
|
|
57
|
-
state?: import("
|
|
58
|
-
error?: import("
|
|
57
|
+
state?: import("../workspace-elements").WorkspaceElementState | undefined;
|
|
58
|
+
error?: import("../errors").ErrorDataSchema | undefined;
|
|
59
59
|
authOptionKey?: string | undefined;
|
|
60
60
|
lastActiveAt?: string | undefined;
|
|
61
61
|
nextCredentialsRefreshAt?: string | undefined;
|
|
@@ -79,12 +79,12 @@ export declare class IntegrationAccessor extends ElementAccessor<Integration, Up
|
|
|
79
79
|
id: string;
|
|
80
80
|
name: string;
|
|
81
81
|
logoUri: string;
|
|
82
|
-
key?: string | undefined;
|
|
83
82
|
uuid?: string | undefined;
|
|
83
|
+
key?: string | undefined;
|
|
84
84
|
description?: string | undefined;
|
|
85
85
|
meta?: Record<string, any> | undefined;
|
|
86
|
-
state?: import("
|
|
87
|
-
errors?: import("
|
|
86
|
+
state?: import("../workspace-elements").WorkspaceElementState | undefined;
|
|
87
|
+
errors?: import("../errors").ErrorDataSchema[] | undefined;
|
|
88
88
|
revision?: string | undefined;
|
|
89
89
|
createdAt?: string | undefined;
|
|
90
90
|
updatedAt?: string | undefined;
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
import { ErrorDataSchema } from '../errors';
|
|
3
|
+
import { WorkspaceElementType } from '../workspace-elements';
|
|
4
|
+
export declare enum AgentSessionStatus {
|
|
5
|
+
QUEUED = "queued",
|
|
6
|
+
STARTING = "starting",
|
|
7
|
+
RUNNING = "running",
|
|
8
|
+
COMPLETED = "completed",
|
|
9
|
+
FAILED = "failed",
|
|
10
|
+
CANCELLED = "cancelled"
|
|
11
|
+
}
|
|
12
|
+
export declare const AgentSession: z.ZodObject<{
|
|
13
|
+
id: z.ZodString;
|
|
14
|
+
workspaceId: z.ZodString;
|
|
15
|
+
workspaceElementType: z.ZodEnum<typeof WorkspaceElementType>;
|
|
16
|
+
workspaceElementId: z.ZodString;
|
|
17
|
+
type: z.ZodString;
|
|
18
|
+
status: z.ZodEnum<typeof AgentSessionStatus>;
|
|
19
|
+
workerId: z.ZodOptional<z.ZodString>;
|
|
20
|
+
workerUrl: z.ZodOptional<z.ZodString>;
|
|
21
|
+
prompt: z.ZodString;
|
|
22
|
+
error: z.ZodOptional<z.ZodType<ErrorDataSchema, unknown, z.core.$ZodTypeInternals<ErrorDataSchema, unknown>>>;
|
|
23
|
+
createdBy: z.ZodString;
|
|
24
|
+
lastActivityAt: z.ZodISODateTime;
|
|
25
|
+
createdAt: z.ZodISODateTime;
|
|
26
|
+
updatedAt: z.ZodISODateTime;
|
|
27
|
+
storedMessagesUri: z.ZodOptional<z.ZodString>;
|
|
28
|
+
sessionFilesZipUri: z.ZodOptional<z.ZodString>;
|
|
29
|
+
logs: z.ZodOptional<z.ZodArray<z.ZodAny>>;
|
|
30
|
+
}, z.core.$strip>;
|
|
31
|
+
export type AgentSession = z.infer<typeof AgentSession>;
|
|
32
|
+
export declare const CreateAgentSession: z.ZodObject<{
|
|
33
|
+
workspaceElementType: z.ZodEnum<typeof WorkspaceElementType>;
|
|
34
|
+
workspaceElementId: z.ZodString;
|
|
35
|
+
prompt: z.ZodString;
|
|
36
|
+
}, z.core.$strip>;
|
|
37
|
+
export type CreateAgentSession = z.infer<typeof CreateAgentSession>;
|
|
38
|
+
export declare const AgentSessionInputSchema: z.ZodObject<{
|
|
39
|
+
input: z.ZodOptional<z.ZodString>;
|
|
40
|
+
}, z.core.$strip>;
|
|
41
|
+
export type AgentSessionInput = z.infer<typeof AgentSessionInputSchema>;
|
|
@@ -9,7 +9,8 @@ export declare enum AlertSeverity {
|
|
|
9
9
|
export declare enum AlertType {
|
|
10
10
|
externalEventsPerCustomerPerDay = "externalEventsPerCustomerPerDay",
|
|
11
11
|
totalUsagePerDay = "totalUsagePerDay",
|
|
12
|
-
totalUsagePer30Days = "totalUsagePer30Days"
|
|
12
|
+
totalUsagePer30Days = "totalUsagePer30Days",
|
|
13
|
+
membraneAgentUsagePer30Days = "membraneAgentUsagePer30Days"
|
|
13
14
|
}
|
|
14
15
|
export interface Alert {
|
|
15
16
|
id: string;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export declare const zodBooleanCoercion: () => z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>;
|
|
3
2
|
export declare const IncludeArchivedQuery: z.ZodObject<{
|
|
4
3
|
includeArchived: z.ZodOptional<z.ZodPipe<z.ZodTransform<boolean, unknown>, z.ZodBoolean>>;
|
|
5
4
|
}, z.core.$strip>;
|
|
@@ -13,9 +13,9 @@ export declare class DataSchemaRef extends DataBuilderFormulaBase<DataSchemaRefA
|
|
|
13
13
|
value: any;
|
|
14
14
|
constructor(value: any);
|
|
15
15
|
getValue(): undefined;
|
|
16
|
-
resolveValue(params: ResolveFormulaParams): Promise<import("
|
|
17
|
-
resolveDataCollection(args: DataSchemaRegArgsDataCollection, params: ResolveFormulaParams): Promise<import("
|
|
18
|
-
resolveInternalDataSchema(args: DataSchemaRegArgsInternalDataSchema, params: ResolveFormulaParams): Promise<import("
|
|
16
|
+
resolveValue(params: ResolveFormulaParams): Promise<import("../data-schema").DataSchema | undefined>;
|
|
17
|
+
resolveDataCollection(args: DataSchemaRegArgsDataCollection, params: ResolveFormulaParams): Promise<import("../data-schema").DataSchema | undefined>;
|
|
18
|
+
resolveInternalDataSchema(args: DataSchemaRegArgsInternalDataSchema, params: ResolveFormulaParams): Promise<import("../data-schema").DataSchema | undefined>;
|
|
19
19
|
getSchema(): {
|
|
20
20
|
type: string;
|
|
21
21
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
export * from './errors';
|
|
2
2
|
export * from './workspace-elements';
|
|
3
3
|
export * from './workspace-elements-catalog';
|
|
4
|
+
export * from './workspace-elements/paths';
|
|
4
5
|
export * from './auth';
|
|
5
|
-
export * from './connector-copilot';
|
|
6
6
|
export * from './data-builder';
|
|
7
7
|
export * from './data-filter';
|
|
8
8
|
export * from './formulas';
|
|
@@ -27,6 +27,8 @@ export * from './alerts';
|
|
|
27
27
|
export * from './accessors';
|
|
28
28
|
export * from './sse';
|
|
29
29
|
export * from './scenario-templates';
|
|
30
|
+
export * from './agent/session';
|
|
31
|
+
export * from './validation';
|
|
30
32
|
export { MembraneClient as IntegrationAppClient } from './client';
|
|
31
33
|
export { MembraneClient as MembraneClient } from './client';
|
|
32
34
|
export { axios as MembraneAxiosInstance } from './api-client';
|
package/dist/dts/orgs/types.d.ts
CHANGED
|
@@ -1,12 +1,16 @@
|
|
|
1
1
|
export declare enum OrgLimitsType {
|
|
2
2
|
NUMBER_OF_WORKSPACES = "numberOfWorkspaces",
|
|
3
3
|
TODAY_USAGE = "todayUsage",
|
|
4
|
-
LAST_THIRTY_DAY_USAGE = "lastThirtyDayUsage"
|
|
4
|
+
LAST_THIRTY_DAY_USAGE = "lastThirtyDayUsage",
|
|
5
|
+
MEMBRANE_EXPERT_CREDITS_CAP = "membraneExpertCreditsCapPerMonth",
|
|
6
|
+
MEMBRANE_AGENT_LAST_THIRTY_DAYS_USAGE = "membraneAgentLastThirtyDaysUsage"
|
|
5
7
|
}
|
|
6
8
|
export interface OrgLimits {
|
|
7
9
|
[OrgLimitsType.NUMBER_OF_WORKSPACES]?: number;
|
|
8
10
|
[OrgLimitsType.TODAY_USAGE]?: number;
|
|
9
11
|
[OrgLimitsType.LAST_THIRTY_DAY_USAGE]?: number;
|
|
12
|
+
[OrgLimitsType.MEMBRANE_AGENT_LAST_THIRTY_DAYS_USAGE]?: number;
|
|
13
|
+
[OrgLimitsType.MEMBRANE_EXPERT_CREDITS_CAP]?: number | null;
|
|
10
14
|
}
|
|
11
15
|
export interface Org {
|
|
12
16
|
id: string;
|
|
@@ -58,3 +62,8 @@ export interface OrgWorkspace {
|
|
|
58
62
|
trialEndDate?: string;
|
|
59
63
|
featureFlags?: string[];
|
|
60
64
|
}
|
|
65
|
+
export interface MembraneAgentKey {
|
|
66
|
+
key: string;
|
|
67
|
+
activityDate: Date;
|
|
68
|
+
hash: string;
|
|
69
|
+
}
|
|
@@ -16,7 +16,8 @@ export declare enum UsageType {
|
|
|
16
16
|
APP_EVENTS_SIZE = "app-events-size",
|
|
17
17
|
FILES_UPLOAD_NUMBER = "files-upload-number",
|
|
18
18
|
FILES_UPLOAD_SIZE = "files-upload-size",
|
|
19
|
-
CUSTOM_CODE_RUNTIME_DURATION = "custom-code-runtime-duration"
|
|
19
|
+
CUSTOM_CODE_RUNTIME_DURATION = "custom-code-runtime-duration",
|
|
20
|
+
MEMBRANE_AGENT = "membrane-agent"
|
|
20
21
|
}
|
|
21
22
|
export interface UsageWithCredits {
|
|
22
23
|
key: UsageType;
|
|
@@ -24,7 +25,8 @@ export interface UsageWithCredits {
|
|
|
24
25
|
credits: number;
|
|
25
26
|
}
|
|
26
27
|
export interface UsageEntry {
|
|
27
|
-
workspaceId
|
|
28
|
+
workspaceId?: string;
|
|
29
|
+
orgId?: string;
|
|
28
30
|
customerId?: string;
|
|
29
31
|
connectionId?: string;
|
|
30
32
|
key: UsageType;
|
|
@@ -10,25 +10,27 @@ export declare const ActionRunLogRecordApiResponse: z.ZodObject<{
|
|
|
10
10
|
status: z.ZodEnum<typeof import("../base/action-run-log-records").ActionRunLogStatus>;
|
|
11
11
|
createdAt: z.ZodString;
|
|
12
12
|
completedAt: z.ZodOptional<z.ZodString>;
|
|
13
|
-
error: z.ZodOptional<z.ZodType<import("
|
|
13
|
+
error: z.ZodOptional<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>;
|
|
14
14
|
action: z.ZodOptional<z.ZodObject<{
|
|
15
15
|
id: z.ZodString;
|
|
16
|
-
key: z.ZodOptional<z.ZodString>;
|
|
17
16
|
uuid: z.ZodOptional<z.ZodString>;
|
|
17
|
+
key: z.ZodOptional<z.ZodString>;
|
|
18
18
|
description: z.ZodOptional<z.ZodString>;
|
|
19
19
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
20
20
|
integrationId: z.ZodOptional<z.ZodString>;
|
|
21
|
-
|
|
21
|
+
integrationUuid: z.ZodOptional<z.ZodString>;
|
|
22
22
|
parentId: z.ZodOptional<z.ZodString>;
|
|
23
|
+
parentUuid: z.ZodOptional<z.ZodString>;
|
|
24
|
+
connectionId: z.ZodOptional<z.ZodString>;
|
|
23
25
|
instanceKey: z.ZodOptional<z.ZodString>;
|
|
24
|
-
inputSchema: z.ZodOptional<z.ZodType<import("
|
|
26
|
+
inputSchema: z.ZodOptional<z.ZodType<import("../../data-schema").DataSchema, unknown, z.core.$ZodTypeInternals<import("../../data-schema").DataSchema, unknown>>>;
|
|
25
27
|
type: z.ZodOptional<z.ZodEnum<typeof import("../base/actions").ActionType>>;
|
|
26
|
-
config: z.ZodOptional<z.
|
|
28
|
+
config: z.ZodOptional<z.ZodObject<{}, z.core.$loose>>;
|
|
27
29
|
outputMapping: z.ZodOptional<z.ZodAny>;
|
|
28
|
-
customOutputSchema: z.ZodOptional<z.ZodType<import("
|
|
30
|
+
customOutputSchema: z.ZodOptional<z.ZodType<import("../../data-schema").DataSchema, unknown, z.core.$ZodTypeInternals<import("../../data-schema").DataSchema, unknown>>>;
|
|
29
31
|
name: z.ZodString;
|
|
30
32
|
state: z.ZodOptional<z.ZodEnum<typeof import("..").WorkspaceElementState>>;
|
|
31
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("
|
|
33
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>>;
|
|
32
34
|
revision: z.ZodOptional<z.ZodString>;
|
|
33
35
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
34
36
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -41,13 +43,13 @@ export declare const ActionRunLogRecordApiResponse: z.ZodObject<{
|
|
|
41
43
|
}, z.core.$strip>>;
|
|
42
44
|
integration: z.ZodOptional<z.ZodObject<{
|
|
43
45
|
id: z.ZodString;
|
|
44
|
-
key: z.ZodOptional<z.ZodString>;
|
|
45
46
|
uuid: z.ZodOptional<z.ZodString>;
|
|
47
|
+
key: z.ZodOptional<z.ZodString>;
|
|
46
48
|
description: z.ZodOptional<z.ZodString>;
|
|
47
49
|
meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodAny>>;
|
|
48
50
|
name: z.ZodString;
|
|
49
51
|
state: z.ZodOptional<z.ZodEnum<typeof import("..").WorkspaceElementState>>;
|
|
50
|
-
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("
|
|
52
|
+
errors: z.ZodOptional<z.ZodArray<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>>;
|
|
51
53
|
revision: z.ZodOptional<z.ZodString>;
|
|
52
54
|
createdAt: z.ZodOptional<z.ZodString>;
|
|
53
55
|
updatedAt: z.ZodOptional<z.ZodString>;
|
|
@@ -87,7 +89,7 @@ export declare const ActionRunLogRecordApiResponse: z.ZodObject<{
|
|
|
87
89
|
disconnected: z.ZodOptional<z.ZodBoolean>;
|
|
88
90
|
isDefunct: z.ZodOptional<z.ZodBoolean>;
|
|
89
91
|
state: z.ZodOptional<z.ZodEnum<typeof import("..").WorkspaceElementState>>;
|
|
90
|
-
error: z.ZodOptional<z.ZodType<import("
|
|
92
|
+
error: z.ZodOptional<z.ZodType<import("../../errors").ErrorDataSchema, unknown, z.core.$ZodTypeInternals<import("../../errors").ErrorDataSchema, unknown>>>;
|
|
91
93
|
integrationId: z.ZodString;
|
|
92
94
|
authOptionKey: z.ZodOptional<z.ZodString>;
|
|
93
95
|
createdAt: z.ZodString;
|