@membranehq/sdk 0.28.0 → 0.28.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 +60 -4
- package/dist/bundle.js +233 -126
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/actions-accessors.d.ts +1 -0
- package/dist/dts/accessors/connections-accessors.d.ts +3 -0
- package/dist/dts/accessors/integrations-accessors.d.ts +2 -0
- package/dist/dts/agent/index.d.ts +1 -0
- package/dist/dts/agent/session-cost.d.ts +1 -0
- package/dist/dts/agent/session.d.ts +10 -2
- package/dist/dts/ai-gateway/models.d.ts +43 -0
- package/dist/dts/ai-gateway/models.test.d.ts +1 -0
- package/dist/dts/alerts/types.d.ts +7 -0
- package/dist/dts/api-client.d.ts +22 -3
- package/dist/dts/api-version.generated.d.ts +1 -1
- package/dist/dts/index.browser.d.ts +1 -0
- package/dist/dts/membrane-instances/types.d.ts +19 -35
- package/dist/dts/membrane-instances/types.test.d.ts +1 -0
- package/dist/dts/oauth/types.d.ts +11 -5
- package/dist/dts/orgs/types.d.ts +154 -281
- package/dist/dts/webhooks/types.d.ts +4 -2
- package/dist/dts/workspace-elements/api/act-api.d.ts +33 -0
- package/dist/dts/workspace-elements/api/action-run-log-records-api.d.ts +4 -0
- package/dist/dts/workspace-elements/api/actions-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/connected-products-api.d.ts +6 -21
- package/dist/dts/workspace-elements/api/connection-attempt-logs-api.d.ts +53 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +15 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +6 -0
- package/dist/dts/workspace-elements/api/external-api-logs-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/external-event-log-records-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/external-event-pulls-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/external-event-subscriptions-api.d.ts +5 -1
- package/dist/dts/workspace-elements/api/field-mappings-api.d.ts +6 -0
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +4 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +5 -0
- package/dist/dts/workspace-elements/api/incoming-webhooks-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/index.d.ts +2 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +113 -0
- package/dist/dts/workspace-elements/api/packages-api.d.ts +1 -0
- package/dist/dts/workspace-elements/base/connected-products/index.d.ts +9 -14
- package/dist/dts/workspace-elements/base/connection-attempt-logs/index.d.ts +21 -0
- package/dist/dts/workspace-elements/base/connection-requests/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/connections/index.d.ts +3 -0
- package/dist/dts/workspace-elements/base/connectors/functions.d.ts +1 -1
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/connectors/rest-api.d.ts +1 -1
- package/dist/dts/workspace-elements/base/index.d.ts +1 -0
- package/dist/dts/workspace-elements/paths.d.ts +2 -2
- package/dist/dts/workspace-elements/types.d.ts +4 -1
- package/dist/dts/workspaces/api.d.ts +20 -0
- package/dist/dts/workspaces/compare.d.ts +1 -1
- package/dist/dts/workspaces/types.d.ts +29 -0
- package/dist/index.browser.d.mts +637 -373
- package/dist/index.browser.d.ts +637 -373
- package/dist/index.browser.js +307 -47
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +287 -44
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +637 -373
- package/dist/index.node.d.ts +637 -373
- package/dist/index.node.js +307 -47
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +287 -44
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
|
@@ -13,6 +13,7 @@ export declare class ActionAccessor<RunInput = any, RunOutput = any> extends Ele
|
|
|
13
13
|
run(input?: RunInput, options?: {
|
|
14
14
|
integrationKey?: string;
|
|
15
15
|
connectionId?: string;
|
|
16
|
+
connectionKey?: string;
|
|
16
17
|
}): Promise<ActionRunResponse<RunOutput>>;
|
|
17
18
|
}
|
|
18
19
|
export declare class IntegrationLevelActionAccessor extends IntegrationLevelElementAccessor<ActionApiResponse, UpdateActionRequest> {
|
|
@@ -46,7 +46,9 @@ export declare class ConnectionAccessor {
|
|
|
46
46
|
createdAt: string;
|
|
47
47
|
updatedAt: string;
|
|
48
48
|
userId: string;
|
|
49
|
+
key?: string | undefined;
|
|
49
50
|
isTest?: boolean | undefined;
|
|
51
|
+
connected?: boolean | undefined;
|
|
50
52
|
disconnected?: boolean | undefined;
|
|
51
53
|
isDefunct?: boolean | undefined;
|
|
52
54
|
state?: import("../workspace-elements").WorkspaceElementState | undefined;
|
|
@@ -178,6 +180,7 @@ export declare function createOrUpdateConnection(options: {
|
|
|
178
180
|
connectorId?: string;
|
|
179
181
|
connectorVersion?: string;
|
|
180
182
|
connectionId?: string;
|
|
183
|
+
connectionKey?: string;
|
|
181
184
|
allowMultipleConnections?: boolean;
|
|
182
185
|
connectionRequestId?: string;
|
|
183
186
|
apiUri: string;
|
|
@@ -53,7 +53,9 @@ export declare class IntegrationAccessor extends ElementAccessor<IntegrationApiR
|
|
|
53
53
|
createdAt: string;
|
|
54
54
|
updatedAt: string;
|
|
55
55
|
userId: string;
|
|
56
|
+
key?: string | undefined;
|
|
56
57
|
isTest?: boolean | undefined;
|
|
58
|
+
connected?: boolean | undefined;
|
|
57
59
|
disconnected?: boolean | undefined;
|
|
58
60
|
isDefunct?: boolean | undefined;
|
|
59
61
|
state?: import("../workspace-elements").WorkspaceElementState | undefined;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare function formatSessionCost(cost?: number | null): string;
|
|
@@ -37,7 +37,6 @@ export declare const AgentSession: z.ZodObject<{
|
|
|
37
37
|
summary: z.ZodOptional<z.ZodString>;
|
|
38
38
|
cost: z.ZodOptional<z.ZodNumber>;
|
|
39
39
|
state: z.ZodDefault<z.ZodEnum<typeof AgentSessionState>>;
|
|
40
|
-
usage: z.ZodOptional<z.ZodNumber>;
|
|
41
40
|
hasWorker: z.ZodBoolean;
|
|
42
41
|
isExternal: z.ZodOptional<z.ZodBoolean>;
|
|
43
42
|
agentName: z.ZodOptional<z.ZodEnum<typeof AgentName>>;
|
|
@@ -59,7 +58,16 @@ export declare const CreateAgentSession: z.ZodObject<{
|
|
|
59
58
|
prompt: z.ZodString;
|
|
60
59
|
testCustomerId: z.ZodOptional<z.ZodString>;
|
|
61
60
|
isExternal: z.ZodOptional<z.ZodBoolean>;
|
|
62
|
-
modelId: z.ZodOptional<z.
|
|
61
|
+
modelId: z.ZodOptional<z.ZodEnum<{
|
|
62
|
+
"anthropic/claude-sonnet-4.6": "anthropic/claude-sonnet-4.6";
|
|
63
|
+
"anthropic/claude-opus-4.6": "anthropic/claude-opus-4.6";
|
|
64
|
+
"anthropic/claude-sonnet-4.5": "anthropic/claude-sonnet-4.5";
|
|
65
|
+
"anthropic/claude-opus-4.5": "anthropic/claude-opus-4.5";
|
|
66
|
+
"openai/gpt-5.2": "openai/gpt-5.2";
|
|
67
|
+
"openai/gpt-5-nano": "openai/gpt-5-nano";
|
|
68
|
+
"google/gemini-3-pro-preview": "google/gemini-3-pro-preview";
|
|
69
|
+
"moonshotai/kimi-k2.5": "moonshotai/kimi-k2.5";
|
|
70
|
+
}>>;
|
|
63
71
|
agentName: z.ZodOptional<z.ZodEnum<typeof AgentName>>;
|
|
64
72
|
promptAttachments: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
65
73
|
title: z.ZodString;
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { z } from 'zod';
|
|
2
|
+
export declare const AI_GATEWAY_SUPPORTED_MODELS: readonly [{
|
|
3
|
+
readonly id: "anthropic/claude-sonnet-4.6";
|
|
4
|
+
readonly name: "Claude Sonnet 4.6";
|
|
5
|
+
}, {
|
|
6
|
+
readonly id: "anthropic/claude-opus-4.6";
|
|
7
|
+
readonly name: "Claude Opus 4.6";
|
|
8
|
+
}, {
|
|
9
|
+
readonly id: "anthropic/claude-sonnet-4.5";
|
|
10
|
+
readonly name: "Claude Sonnet 4.5";
|
|
11
|
+
}, {
|
|
12
|
+
readonly id: "anthropic/claude-opus-4.5";
|
|
13
|
+
readonly name: "Claude Opus 4.5";
|
|
14
|
+
}, {
|
|
15
|
+
readonly id: "openai/gpt-5.2";
|
|
16
|
+
readonly name: "GPT-5.2";
|
|
17
|
+
}, {
|
|
18
|
+
readonly id: "openai/gpt-5-nano";
|
|
19
|
+
readonly name: "GPT-5 Nano";
|
|
20
|
+
}, {
|
|
21
|
+
readonly id: "google/gemini-3-pro-preview";
|
|
22
|
+
readonly name: "Gemini 3 Pro";
|
|
23
|
+
}, {
|
|
24
|
+
readonly id: "moonshotai/kimi-k2.5";
|
|
25
|
+
readonly name: "Kimi K2.5";
|
|
26
|
+
}];
|
|
27
|
+
export declare const AI_GATEWAY_SUPPORTED_MODEL_IDS: [(typeof AI_GATEWAY_SUPPORTED_MODELS)[number]["id"], ...(typeof AI_GATEWAY_SUPPORTED_MODELS)[number]["id"][]];
|
|
28
|
+
export declare const AIGatewaySupportedModelIdSchema: z.ZodEnum<{
|
|
29
|
+
"anthropic/claude-sonnet-4.6": "anthropic/claude-sonnet-4.6";
|
|
30
|
+
"anthropic/claude-opus-4.6": "anthropic/claude-opus-4.6";
|
|
31
|
+
"anthropic/claude-sonnet-4.5": "anthropic/claude-sonnet-4.5";
|
|
32
|
+
"anthropic/claude-opus-4.5": "anthropic/claude-opus-4.5";
|
|
33
|
+
"openai/gpt-5.2": "openai/gpt-5.2";
|
|
34
|
+
"openai/gpt-5-nano": "openai/gpt-5-nano";
|
|
35
|
+
"google/gemini-3-pro-preview": "google/gemini-3-pro-preview";
|
|
36
|
+
"moonshotai/kimi-k2.5": "moonshotai/kimi-k2.5";
|
|
37
|
+
}>;
|
|
38
|
+
export type AIGatewaySupportedModelId = z.infer<typeof AIGatewaySupportedModelIdSchema>;
|
|
39
|
+
export declare const DEFAULT_AI_GATEWAY_MODEL_ID: AIGatewaySupportedModelId;
|
|
40
|
+
export declare const AI_GATEWAY_PROVIDER_MODELS: Readonly<Record<AIGatewaySupportedModelId, {
|
|
41
|
+
name: string;
|
|
42
|
+
}>>;
|
|
43
|
+
export declare function isAIGatewaySupportedModelId(modelId: string): modelId is AIGatewaySupportedModelId;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -24,6 +24,7 @@ export declare enum AlertType {
|
|
|
24
24
|
parallelApiRequestsPerCustomer = "parallelApiRequestsPerCustomer",
|
|
25
25
|
engineCreditsExhaustionProjected = "engineCreditsExhaustionProjected",
|
|
26
26
|
engineCreditsExhaustionActual = "engineCreditsExhaustionActual",
|
|
27
|
+
aiCreditsDebtAccumulated = "aiCreditsDebtAccumulated",
|
|
27
28
|
totalNumberOfDatabaseEntitiesPerCustomer = "totalNumberOfDatabaseEntitiesPerCustomer",
|
|
28
29
|
totalNumberOfCustomers = "totalNumberOfCustomers",
|
|
29
30
|
totalNumberOfConnections = "totalNumberOfConnections",
|
|
@@ -60,6 +61,7 @@ export declare const ALERT_TYPE_CATEGORIES: {
|
|
|
60
61
|
readonly parallelApiRequestsPerCustomer: AlertCategory.CUSTOMER_RATE_LIMIT;
|
|
61
62
|
readonly engineCreditsExhaustionProjected: AlertCategory.USAGE;
|
|
62
63
|
readonly engineCreditsExhaustionActual: AlertCategory.USAGE;
|
|
64
|
+
readonly aiCreditsDebtAccumulated: AlertCategory.USAGE;
|
|
63
65
|
readonly totalNumberOfDatabaseEntitiesPerCustomer: AlertCategory.WORKSPACE_SIZE;
|
|
64
66
|
readonly testAlert: AlertCategory.TEST;
|
|
65
67
|
readonly totalNumberOfCustomers: AlertCategory.WORKSPACE_SIZE;
|
|
@@ -105,6 +107,7 @@ export declare const Alert: z.ZodObject<{
|
|
|
105
107
|
parallelApiRequestsPerCustomer: AlertType.parallelApiRequestsPerCustomer;
|
|
106
108
|
engineCreditsExhaustionProjected: AlertType.engineCreditsExhaustionProjected;
|
|
107
109
|
engineCreditsExhaustionActual: AlertType.engineCreditsExhaustionActual;
|
|
110
|
+
aiCreditsDebtAccumulated: AlertType.aiCreditsDebtAccumulated;
|
|
108
111
|
totalNumberOfDatabaseEntitiesPerCustomer: AlertType.totalNumberOfDatabaseEntitiesPerCustomer;
|
|
109
112
|
totalNumberOfCustomers: AlertType.totalNumberOfCustomers;
|
|
110
113
|
totalNumberOfConnections: AlertType.totalNumberOfConnections;
|
|
@@ -155,6 +158,7 @@ export declare const AlertSchema: z.ZodObject<{
|
|
|
155
158
|
parallelApiRequestsPerCustomer: AlertType.parallelApiRequestsPerCustomer;
|
|
156
159
|
engineCreditsExhaustionProjected: AlertType.engineCreditsExhaustionProjected;
|
|
157
160
|
engineCreditsExhaustionActual: AlertType.engineCreditsExhaustionActual;
|
|
161
|
+
aiCreditsDebtAccumulated: AlertType.aiCreditsDebtAccumulated;
|
|
158
162
|
totalNumberOfDatabaseEntitiesPerCustomer: AlertType.totalNumberOfDatabaseEntitiesPerCustomer;
|
|
159
163
|
totalNumberOfCustomers: AlertType.totalNumberOfCustomers;
|
|
160
164
|
totalNumberOfConnections: AlertType.totalNumberOfConnections;
|
|
@@ -214,6 +218,7 @@ export declare const AlertDeliverySettingsSchema: z.ZodObject<{
|
|
|
214
218
|
parallelApiRequestsPerCustomer: AlertType.parallelApiRequestsPerCustomer;
|
|
215
219
|
engineCreditsExhaustionProjected: AlertType.engineCreditsExhaustionProjected;
|
|
216
220
|
engineCreditsExhaustionActual: AlertType.engineCreditsExhaustionActual;
|
|
221
|
+
aiCreditsDebtAccumulated: AlertType.aiCreditsDebtAccumulated;
|
|
217
222
|
totalNumberOfDatabaseEntitiesPerCustomer: AlertType.totalNumberOfDatabaseEntitiesPerCustomer;
|
|
218
223
|
totalNumberOfCustomers: AlertType.totalNumberOfCustomers;
|
|
219
224
|
totalNumberOfConnections: AlertType.totalNumberOfConnections;
|
|
@@ -265,6 +270,7 @@ export declare const FindAlertsQuery: z.ZodObject<{
|
|
|
265
270
|
parallelApiRequestsPerCustomer: AlertType.parallelApiRequestsPerCustomer;
|
|
266
271
|
engineCreditsExhaustionProjected: AlertType.engineCreditsExhaustionProjected;
|
|
267
272
|
engineCreditsExhaustionActual: AlertType.engineCreditsExhaustionActual;
|
|
273
|
+
aiCreditsDebtAccumulated: AlertType.aiCreditsDebtAccumulated;
|
|
268
274
|
totalNumberOfDatabaseEntitiesPerCustomer: AlertType.totalNumberOfDatabaseEntitiesPerCustomer;
|
|
269
275
|
totalNumberOfCustomers: AlertType.totalNumberOfCustomers;
|
|
270
276
|
totalNumberOfConnections: AlertType.totalNumberOfConnections;
|
|
@@ -301,6 +307,7 @@ export declare const CreateAlert: z.ZodObject<{
|
|
|
301
307
|
parallelApiRequestsPerCustomer: AlertType.parallelApiRequestsPerCustomer;
|
|
302
308
|
engineCreditsExhaustionProjected: AlertType.engineCreditsExhaustionProjected;
|
|
303
309
|
engineCreditsExhaustionActual: AlertType.engineCreditsExhaustionActual;
|
|
310
|
+
aiCreditsDebtAccumulated: AlertType.aiCreditsDebtAccumulated;
|
|
304
311
|
totalNumberOfDatabaseEntitiesPerCustomer: AlertType.totalNumberOfDatabaseEntitiesPerCustomer;
|
|
305
312
|
totalNumberOfCustomers: AlertType.totalNumberOfCustomers;
|
|
306
313
|
totalNumberOfConnections: AlertType.totalNumberOfConnections;
|
package/dist/dts/api-client.d.ts
CHANGED
|
@@ -3,24 +3,42 @@ import { LogRecord } from './logging';
|
|
|
3
3
|
export declare const axios: import("axios").AxiosInstance;
|
|
4
4
|
export declare const DEFAULT_API_URI = "https://api.getmembrane.com";
|
|
5
5
|
export declare const DEFAULT_UI_URI = "https://ui.getmembrane.com";
|
|
6
|
-
|
|
7
|
-
token?: string;
|
|
8
|
-
fetchToken?: () => Promise<string>;
|
|
6
|
+
interface BaseClientOptions {
|
|
9
7
|
credentials?: any;
|
|
10
8
|
fetchCredentials?: () => Promise<any>;
|
|
11
9
|
apiUri?: string;
|
|
12
10
|
uiUri?: string;
|
|
11
|
+
}
|
|
12
|
+
interface TokenBasedClientOptions extends BaseClientOptions {
|
|
13
|
+
token?: string;
|
|
14
|
+
fetchToken?: () => Promise<string>;
|
|
15
|
+
workspaceKey?: never;
|
|
16
|
+
workspaceSecret?: never;
|
|
17
|
+
tenantKey?: never;
|
|
13
18
|
accessToken?: string;
|
|
14
19
|
}
|
|
20
|
+
interface WorkspaceCredentialClientOptions extends BaseClientOptions {
|
|
21
|
+
token?: never;
|
|
22
|
+
fetchToken?: never;
|
|
23
|
+
workspaceKey: string;
|
|
24
|
+
workspaceSecret: string;
|
|
25
|
+
tenantKey: string;
|
|
26
|
+
accessToken?: never;
|
|
27
|
+
}
|
|
28
|
+
export type MembraneClientOptions = TokenBasedClientOptions | WorkspaceCredentialClientOptions;
|
|
15
29
|
export declare class MembraneApiClient {
|
|
16
30
|
apiUri: string;
|
|
17
31
|
uiUri: string;
|
|
18
32
|
token?: string;
|
|
19
33
|
protected fetchToken?: () => Promise<string>;
|
|
20
34
|
private logs;
|
|
35
|
+
private _workspaceKey?;
|
|
36
|
+
private _workspaceSecret?;
|
|
37
|
+
private _tenantKey?;
|
|
21
38
|
constructor(options?: MembraneClientOptions);
|
|
22
39
|
setCredentials(credentials: any): Promise<any>;
|
|
23
40
|
getToken(): Promise<string>;
|
|
41
|
+
private mintToken;
|
|
24
42
|
get<T = any>(uri: string, queryParams?: Record<string, any>, options?: AxiosRequestConfig): Promise<T>;
|
|
25
43
|
post<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
|
|
26
44
|
put<T = any>(uri: string, data?: any, options?: AxiosRequestConfig): Promise<T>;
|
|
@@ -42,3 +60,4 @@ export declare class MembraneApiClient {
|
|
|
42
60
|
private log;
|
|
43
61
|
private handleRequestError;
|
|
44
62
|
}
|
|
63
|
+
export {};
|
|
@@ -13,6 +13,7 @@ export * from './data-schema';
|
|
|
13
13
|
export * from './data-schema-utils';
|
|
14
14
|
export * from './date-time';
|
|
15
15
|
export * from './api';
|
|
16
|
+
export * from './ai-gateway/models';
|
|
16
17
|
export * from './stats';
|
|
17
18
|
export * from './http-requests';
|
|
18
19
|
export * from './integration-elements';
|
|
@@ -21,6 +21,24 @@ export declare const MembraneInstance: z.ZodObject<{
|
|
|
21
21
|
lastReportedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
22
22
|
activeTenants: z.ZodOptional<z.ZodNumber>;
|
|
23
23
|
billableTenants: z.ZodOptional<z.ZodNumber>;
|
|
24
|
+
}, z.core.$strip>;
|
|
25
|
+
export type MembraneInstanceDto = z.infer<typeof MembraneInstance>;
|
|
26
|
+
export declare const MembraneInstanceAdmin: z.ZodObject<{
|
|
27
|
+
id: z.ZodString;
|
|
28
|
+
name: z.ZodString;
|
|
29
|
+
apiBaseUri: z.ZodString;
|
|
30
|
+
consoleBaseUri: z.ZodOptional<z.ZodString>;
|
|
31
|
+
orgId: z.ZodOptional<z.ZodString>;
|
|
32
|
+
type: z.ZodOptional<z.ZodString>;
|
|
33
|
+
engineVersion: z.ZodOptional<z.ZodString>;
|
|
34
|
+
commitSHA: z.ZodOptional<z.ZodString>;
|
|
35
|
+
buildDate: z.ZodOptional<z.ZodString>;
|
|
36
|
+
cloudProvider: z.ZodOptional<z.ZodString>;
|
|
37
|
+
lastReportedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
38
|
+
activeTenants: z.ZodOptional<z.ZodNumber>;
|
|
39
|
+
billableTenants: z.ZodOptional<z.ZodNumber>;
|
|
40
|
+
orgName: z.ZodOptional<z.ZodString>;
|
|
41
|
+
workspaceCount: z.ZodOptional<z.ZodNumber>;
|
|
24
42
|
clusterName: z.ZodOptional<z.ZodString>;
|
|
25
43
|
argoCdUrl: z.ZodOptional<z.ZodURL>;
|
|
26
44
|
grafanaUrl: z.ZodOptional<z.ZodURL>;
|
|
@@ -30,7 +48,7 @@ export declare const MembraneInstance: z.ZodObject<{
|
|
|
30
48
|
awsAccountName: z.ZodOptional<z.ZodString>;
|
|
31
49
|
awsSsoUrl: z.ZodOptional<z.ZodURL>;
|
|
32
50
|
}, z.core.$strip>;
|
|
33
|
-
export type
|
|
51
|
+
export type MembraneInstanceAdmin = z.infer<typeof MembraneInstanceAdmin>;
|
|
34
52
|
export declare const CreateMembraneInstanceRequest: z.ZodObject<{
|
|
35
53
|
name: z.ZodString;
|
|
36
54
|
apiBaseUri: z.ZodString;
|
|
@@ -74,41 +92,7 @@ export declare const ListMembraneInstancesResponse: z.ZodObject<{
|
|
|
74
92
|
lastReportedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
75
93
|
activeTenants: z.ZodOptional<z.ZodNumber>;
|
|
76
94
|
billableTenants: z.ZodOptional<z.ZodNumber>;
|
|
77
|
-
clusterName: z.ZodOptional<z.ZodString>;
|
|
78
|
-
argoCdUrl: z.ZodOptional<z.ZodURL>;
|
|
79
|
-
grafanaUrl: z.ZodOptional<z.ZodURL>;
|
|
80
|
-
mongoAtlasUrl: z.ZodOptional<z.ZodURL>;
|
|
81
|
-
helmBranch: z.ZodOptional<z.ZodString>;
|
|
82
|
-
helmValuesPath: z.ZodOptional<z.ZodURL>;
|
|
83
|
-
awsAccountName: z.ZodOptional<z.ZodString>;
|
|
84
|
-
awsSsoUrl: z.ZodOptional<z.ZodURL>;
|
|
85
95
|
}, z.core.$strip>>;
|
|
86
96
|
cursor: z.ZodOptional<z.ZodString>;
|
|
87
97
|
}, z.core.$strip>;
|
|
88
98
|
export type ListMembraneInstancesResponse = z.infer<typeof ListMembraneInstancesResponse>;
|
|
89
|
-
export declare const MembraneInstanceAdmin: z.ZodObject<{
|
|
90
|
-
id: z.ZodString;
|
|
91
|
-
name: z.ZodString;
|
|
92
|
-
apiBaseUri: z.ZodString;
|
|
93
|
-
consoleBaseUri: z.ZodOptional<z.ZodString>;
|
|
94
|
-
orgId: z.ZodOptional<z.ZodString>;
|
|
95
|
-
type: z.ZodOptional<z.ZodString>;
|
|
96
|
-
engineVersion: z.ZodOptional<z.ZodString>;
|
|
97
|
-
commitSHA: z.ZodOptional<z.ZodString>;
|
|
98
|
-
buildDate: z.ZodOptional<z.ZodString>;
|
|
99
|
-
cloudProvider: z.ZodOptional<z.ZodString>;
|
|
100
|
-
lastReportedAt: z.ZodOptional<z.ZodCoercedDate<unknown>>;
|
|
101
|
-
activeTenants: z.ZodOptional<z.ZodNumber>;
|
|
102
|
-
billableTenants: z.ZodOptional<z.ZodNumber>;
|
|
103
|
-
clusterName: z.ZodOptional<z.ZodString>;
|
|
104
|
-
argoCdUrl: z.ZodOptional<z.ZodURL>;
|
|
105
|
-
grafanaUrl: z.ZodOptional<z.ZodURL>;
|
|
106
|
-
mongoAtlasUrl: z.ZodOptional<z.ZodURL>;
|
|
107
|
-
helmBranch: z.ZodOptional<z.ZodString>;
|
|
108
|
-
helmValuesPath: z.ZodOptional<z.ZodURL>;
|
|
109
|
-
awsAccountName: z.ZodOptional<z.ZodString>;
|
|
110
|
-
awsSsoUrl: z.ZodOptional<z.ZodURL>;
|
|
111
|
-
orgName: z.ZodOptional<z.ZodString>;
|
|
112
|
-
workspaceCount: z.ZodOptional<z.ZodNumber>;
|
|
113
|
-
}, z.core.$strip>;
|
|
114
|
-
export type MembraneInstanceAdmin = z.infer<typeof MembraneInstanceAdmin>;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
export declare const MEMBRANE_CLI_CLIENT_ID: "membrane-cli";
|
|
3
|
-
export declare const
|
|
4
|
-
export declare const
|
|
5
|
-
export declare const
|
|
6
|
-
export
|
|
7
|
-
export
|
|
3
|
+
export declare const OAUTH_TOKEN_TYPE_PLATFORM_USER: "platform-user";
|
|
4
|
+
export declare const OAUTH_TOKEN_TYPE_TENANT: "tenant";
|
|
5
|
+
export declare const OAUTH_TOKEN_TYPE_CONNECTION: "connection";
|
|
6
|
+
export declare const OAUTH_TOKEN_TYPES: readonly ["platform-user", "tenant", "connection"];
|
|
7
|
+
export type OAuthTokenType = (typeof OAUTH_TOKEN_TYPES)[number];
|
|
8
|
+
export interface AuthContextSettings {
|
|
9
|
+
defaultWorkspaceKey?: string;
|
|
10
|
+
defaultTenantKey?: string;
|
|
11
|
+
connectionId?: string;
|
|
12
|
+
}
|
|
8
13
|
export declare const OAuthTokenResponse: z.ZodObject<{
|
|
9
14
|
access_token: z.ZodString;
|
|
10
15
|
token_type: z.ZodString;
|
|
@@ -13,5 +18,6 @@ export declare const OAuthTokenResponse: z.ZodObject<{
|
|
|
13
18
|
default_workspace_key: z.ZodOptional<z.ZodString>;
|
|
14
19
|
default_tenant_key: z.ZodOptional<z.ZodString>;
|
|
15
20
|
email: z.ZodOptional<z.ZodString>;
|
|
21
|
+
org_id: z.ZodOptional<z.ZodString>;
|
|
16
22
|
}, z.core.$strip>;
|
|
17
23
|
export type OAuthTokenResponse = z.infer<typeof OAuthTokenResponse>;
|