@membranehq/sdk 0.15.5 → 0.16.0
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 +51 -2
- package/dist/bundle.js +94 -30
- package/dist/bundle.js.map +1 -1
- package/dist/dts/accessors/connections-accessors.d.ts +1 -0
- package/dist/dts/accessors/integrations-accessors.d.ts +1 -0
- package/dist/dts/auth/auth-context-permissions.d.ts +59 -0
- package/dist/dts/auth/index.d.ts +1 -0
- package/dist/dts/index.browser.d.ts +1 -0
- package/dist/dts/orgs/types.d.ts +27 -0
- package/dist/dts/self-hosting-tokens/index.d.ts +1 -0
- package/dist/dts/self-hosting-tokens/types.d.ts +38 -0
- package/dist/dts/ui.test.d.ts +1 -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 +16 -0
- package/dist/dts/workspace-elements/api/app-data-schema-instances-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/app-data-schemas-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/app-event-log-records-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/app-event-subscriptions-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/app-event-types-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/connections-api.d.ts +8 -0
- package/dist/dts/workspace-elements/api/connections-api.test.d.ts +1 -0
- package/dist/dts/workspace-elements/api/data-link-table-instances-api.d.ts +3 -0
- package/dist/dts/workspace-elements/api/data-link-tables-api.d.ts +1 -0
- package/dist/dts/workspace-elements/api/data-sources-api.d.ts +12 -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 +32 -10
- package/dist/dts/workspace-elements/api/flow-runs-api.d.ts +4 -0
- package/dist/dts/workspace-elements/api/flows-api.d.ts +11 -0
- package/dist/dts/workspace-elements/api/integrations-api.d.ts +2 -0
- package/dist/dts/workspace-elements/api/packages-api.d.ts +3 -0
- package/dist/dts/workspace-elements/base/action-instances/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/actions/index.d.ts +4 -0
- package/dist/dts/workspace-elements/base/app-data-schemas/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/app-event-subscriptions/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/app-event-types/index.d.ts +1 -0
- package/dist/dts/workspace-elements/base/connectors/index.d.ts +0 -4
- package/dist/dts/workspace-elements/base/data-link-tables/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/data-sources/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/field-mappings/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/flows/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/integrations/index.d.ts +2 -0
- package/dist/dts/workspace-elements/base/packages/index.d.ts +1 -0
- package/dist/dts/workspace-elements/types.d.ts +5 -0
- package/dist/dts/workspace-elements/utils/index.d.ts +1 -0
- package/dist/dts/workspace-elements/utils/zod-schema-utils.d.ts +2 -0
- package/dist/dts/workspace-elements/utils/zod-schema-utils.test.d.ts +1 -0
- package/dist/index.browser.d.mts +257 -6
- package/dist/index.browser.d.ts +257 -6
- package/dist/index.browser.js +199 -38
- package/dist/index.browser.js.map +1 -1
- package/dist/index.browser.mjs +190 -39
- package/dist/index.browser.mjs.map +1 -1
- package/dist/index.node.d.mts +257 -6
- package/dist/index.node.d.ts +257 -6
- package/dist/index.node.js +199 -38
- package/dist/index.node.js.map +1 -1
- package/dist/index.node.mjs +190 -39
- package/dist/index.node.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.browser.js
CHANGED
|
@@ -3497,35 +3497,78 @@ exports.WorkspaceElementDependencyType = void 0;
|
|
|
3497
3497
|
WorkspaceElementDependencyType["Parent"] = "PARENT";
|
|
3498
3498
|
})(exports.WorkspaceElementDependencyType || (exports.WorkspaceElementDependencyType = {}));
|
|
3499
3499
|
const BaseWorkspaceElement = z.z.object({
|
|
3500
|
-
id: z.z.string(),
|
|
3501
|
-
name: z.z.string(),
|
|
3500
|
+
id: z.z.string().describe('Internal database ID of the element. Assigned by the API; unique per element.'),
|
|
3501
|
+
name: z.z.string().describe('Display name of the workspace element.'),
|
|
3502
3502
|
});
|
|
3503
3503
|
const BaseMembraneInterfaceEditableProperties = z.z.object({
|
|
3504
|
-
uuid: z.z
|
|
3505
|
-
|
|
3506
|
-
|
|
3507
|
-
|
|
3508
|
-
|
|
3504
|
+
uuid: z.z
|
|
3505
|
+
.string()
|
|
3506
|
+
.optional()
|
|
3507
|
+
.describe('Stable unique identifier (UUID). Can be provided on create; otherwise generated. Must be unique across elements of this type.'),
|
|
3508
|
+
key: z.z
|
|
3509
|
+
.string()
|
|
3510
|
+
.optional()
|
|
3511
|
+
.describe('Stable key for referencing the element (e.g. in selectors). Unique per (parent, integration) scope. Generated from name if not provided on create.'),
|
|
3512
|
+
name: z.z.string().optional().describe('Display name. Optional on create; used to generate key when key is omitted.'),
|
|
3513
|
+
description: z.z.string().optional().describe('Optional human-readable description.'),
|
|
3514
|
+
meta: z.z.record(z.z.string(), z.z.any()).optional().describe('Optional key-value metadata.'),
|
|
3509
3515
|
});
|
|
3510
3516
|
const BaseMembraneInterfaceReadOnlyProperties = z.z.object({
|
|
3511
|
-
name: z.z.string(),
|
|
3512
|
-
state: z.z
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3517
|
+
name: z.z.string().describe('Display name. Always present in API responses (filled by API if not set on create).'),
|
|
3518
|
+
state: z.z
|
|
3519
|
+
.enum(exports.WorkspaceElementState)
|
|
3520
|
+
.optional()
|
|
3521
|
+
.describe('Current lifecycle or health state (e.g. READY, SETUP_FAILED, CONFIGURATION_ERROR). Set by the engine during setup and validation.'),
|
|
3522
|
+
errors: z.z.array(ErrorDataSchema).optional().describe('Validation or setup errors when state is not READY.'),
|
|
3523
|
+
revision: z.z
|
|
3524
|
+
.string()
|
|
3525
|
+
.optional()
|
|
3526
|
+
.describe('Opaque revision token; changes on each update. Used for optimistic concurrency.'),
|
|
3527
|
+
createdAt: z.z.string().optional().describe('ISO date when the element was created.'),
|
|
3528
|
+
updatedAt: z.z.string().optional().describe('ISO date when the element was last updated.'),
|
|
3529
|
+
archivedAt: z.z
|
|
3530
|
+
.string()
|
|
3531
|
+
.optional()
|
|
3532
|
+
.describe('When set, the element is archived (soft-deleted). Archived elements cannot be patched.'),
|
|
3533
|
+
isDeactivated: z.z
|
|
3534
|
+
.boolean()
|
|
3535
|
+
.optional()
|
|
3536
|
+
.describe('When true, setup is skipped and the element is treated as inactive (e.g. when dependencies are deactivated or the element is archived).'),
|
|
3537
|
+
isReadOnly: z.z
|
|
3538
|
+
.boolean()
|
|
3539
|
+
.optional()
|
|
3540
|
+
.describe('When true, the element cannot be modified (e.g. published package elements or elements from another workspace).'),
|
|
3519
3541
|
});
|
|
3520
3542
|
const BaseMembraneInterface = BaseWorkspaceElement.merge(BaseMembraneInterfaceEditableProperties).merge(BaseMembraneInterfaceReadOnlyProperties);
|
|
3521
3543
|
const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3522
|
-
integrationId: z.z
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3544
|
+
integrationId: z.z
|
|
3545
|
+
.string()
|
|
3546
|
+
.optional()
|
|
3547
|
+
.describe('Internal ID of the integration this element belongs to. Omit for universal elements; set for integration-specific elements. Uniqueness of key is scoped per integration.'),
|
|
3548
|
+
integrationUuid: z.z
|
|
3549
|
+
.string()
|
|
3550
|
+
.optional()
|
|
3551
|
+
.describe('UUID of the integration; alternative to integrationId when creating from export. Resolved to integrationId by the API.'),
|
|
3552
|
+
parentId: z.z
|
|
3553
|
+
.string()
|
|
3554
|
+
.optional()
|
|
3555
|
+
.describe('Internal ID of the parent workspace element. Used for hierarchy (e.g. integration-level under universal). Child key uniqueness is scoped by parent and integration.'),
|
|
3556
|
+
parentUuid: z.z
|
|
3557
|
+
.string()
|
|
3558
|
+
.optional()
|
|
3559
|
+
.describe('UUID of the parent element; alternative to parentId when creating (e.g. from export). Resolved to parentId by the API.'),
|
|
3560
|
+
connectionId: z.z
|
|
3561
|
+
.string()
|
|
3562
|
+
.optional()
|
|
3563
|
+
.describe('Connection ID. Used when filtering by connection in list/selector queries, or when creating or identifying connection-level instances.'),
|
|
3564
|
+
instanceKey: z.z
|
|
3565
|
+
.string()
|
|
3566
|
+
.optional()
|
|
3567
|
+
.describe('Key identifying a specific connection-level instance when multiple instances exist per (element, connection). Used in selector queries and when creating instances.'),
|
|
3568
|
+
isUniversal: z.z
|
|
3569
|
+
.boolean()
|
|
3570
|
+
.optional()
|
|
3571
|
+
.describe('When true, the element is universal (shared across all integrations). Requires universal-element access. Omit or false for integration-specific elements.'),
|
|
3529
3572
|
});
|
|
3530
3573
|
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3531
3574
|
isCustomized: z.z.boolean().optional(),
|
|
@@ -3600,6 +3643,13 @@ const FindIntegrationLevelMembraneInterfaceQuery = IntegrationLevelMembraneInter
|
|
|
3600
3643
|
isFlag: true,
|
|
3601
3644
|
}),
|
|
3602
3645
|
layer: MembraneElementLayer.optional(),
|
|
3646
|
+
externalAppId: z.z
|
|
3647
|
+
.string()
|
|
3648
|
+
.optional()
|
|
3649
|
+
.meta({
|
|
3650
|
+
filterTitle: 'External App',
|
|
3651
|
+
referenceElementType: exports.WorkspaceElementType.App,
|
|
3652
|
+
}),
|
|
3603
3653
|
});
|
|
3604
3654
|
const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
|
|
3605
3655
|
const TenantLayerElement = z.z.object({
|
|
@@ -3814,23 +3864,52 @@ const ActionDependency = z.z.object({
|
|
|
3814
3864
|
element: z.z.any().optional(),
|
|
3815
3865
|
});
|
|
3816
3866
|
const ActionSpecificProperties = z.z.object({
|
|
3817
|
-
connectionId: z.z
|
|
3818
|
-
|
|
3819
|
-
|
|
3820
|
-
|
|
3821
|
-
|
|
3822
|
-
|
|
3823
|
-
|
|
3867
|
+
connectionId: z.z
|
|
3868
|
+
.string()
|
|
3869
|
+
.optional()
|
|
3870
|
+
.describe('Connection ID for filtering or for connection-level instances. Same semantics as base integration-level property.'),
|
|
3871
|
+
instanceKey: z.z
|
|
3872
|
+
.string()
|
|
3873
|
+
.optional()
|
|
3874
|
+
.describe('Key for the connection-level instance when multiple exist per connection. Same semantics as base integration-level property.'),
|
|
3875
|
+
inputSchema: DataSchema.optional().describe('JSON Schema for the action input. Used by the action engine for template output schema, run-time variables, and output mapping.'),
|
|
3876
|
+
type: z.z
|
|
3877
|
+
.enum(exports.ActionType)
|
|
3878
|
+
.optional()
|
|
3879
|
+
.describe('Action type (e.g. ConnectorOperation, RunJavascript). Determines which handler runs and which config schema is used for validation.'),
|
|
3880
|
+
config: z.z
|
|
3881
|
+
.object({})
|
|
3882
|
+
.loose()
|
|
3883
|
+
.optional()
|
|
3884
|
+
.describe("Type-specific configuration object. Validated by the handler's config schema; passed to handler setup/run and getTemplateOutputSchema."),
|
|
3885
|
+
outputMapping: z.z
|
|
3886
|
+
.any()
|
|
3887
|
+
.optional()
|
|
3888
|
+
.describe("Mapping expression to transform the action's raw output. Evaluated with access to input, output, and user; used to compute transformed output schema and at run time."),
|
|
3889
|
+
customOutputSchema: DataSchema.optional().describe('Explicit output schema for the action. Takes precedence over the transformed or default output schema when resolving outputSchema.'),
|
|
3824
3890
|
});
|
|
3825
|
-
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend(ActionSpecificProperties.shape);
|
|
3891
|
+
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend(ActionSpecificProperties.shape).describe('Action editable properties: key, name, type, config, inputSchema, outputMapping, optional connectionId and instanceKey for connection-level instances.');
|
|
3826
3892
|
const ActionExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(ActionSpecificProperties.shape).omit({
|
|
3827
3893
|
connectionId: true,
|
|
3828
3894
|
});
|
|
3829
3895
|
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3830
3896
|
...TenantLayerElement.partial().shape,
|
|
3831
|
-
universalParentId: z.z
|
|
3832
|
-
|
|
3833
|
-
|
|
3897
|
+
universalParentId: z.z
|
|
3898
|
+
.string()
|
|
3899
|
+
.optional()
|
|
3900
|
+
.describe('For connection-level instances: ID of the universal (root) action in the hierarchy. Set automatically when creating an instance; used in list/selector queries to filter by universal parent.'),
|
|
3901
|
+
outputSchema: z.z
|
|
3902
|
+
.any()
|
|
3903
|
+
.optional()
|
|
3904
|
+
.describe('Resolved output schema (cached after setup). Derived from customOutputSchema, transformed schema from outputMapping, default output schema, or parent custom output schema. Read-only.'),
|
|
3905
|
+
isPublic: z.z
|
|
3906
|
+
.boolean()
|
|
3907
|
+
.optional()
|
|
3908
|
+
.describe('When true, the element is publicly listed (e.g. in universe). Used for published packages; publish/unpublish updates this on published elements.'),
|
|
3909
|
+
externalAppUuid: z.z
|
|
3910
|
+
.string()
|
|
3911
|
+
.optional()
|
|
3912
|
+
.describe('UUID of the external app when this action is published in a package that has an external app. Populated in API responses for published actions.'),
|
|
3834
3913
|
});
|
|
3835
3914
|
const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(ActionReadOnlyProperties);
|
|
3836
3915
|
const BaseActionInstance = BaseAction;
|
|
@@ -8900,9 +8979,7 @@ const ConnectorUiSpec = z.z.object({
|
|
|
8900
8979
|
const ConnectorSpec = z.z.object({
|
|
8901
8980
|
key: z.z.string().optional(),
|
|
8902
8981
|
name: z.z.string().optional(),
|
|
8903
|
-
|
|
8904
|
-
logoUri: z.z.string().optional(),
|
|
8905
|
-
apiDocsUri: z.z.string().optional(),
|
|
8982
|
+
logoUri: z.z.string().url().optional(),
|
|
8906
8983
|
api: z.z
|
|
8907
8984
|
.object({
|
|
8908
8985
|
type: z.z.enum(['openapi', 'graphql']),
|
|
@@ -10237,7 +10314,9 @@ const ConnectPayload = z.z.object({
|
|
|
10237
10314
|
redirectUri: z.z.string().optional(),
|
|
10238
10315
|
customState: z.z.string().optional(),
|
|
10239
10316
|
});
|
|
10240
|
-
const ConnectUIOptions = ConnectPayload.omit({ input: true, redirectUri: true })
|
|
10317
|
+
const ConnectUIOptions = ConnectPayload.omit({ input: true, redirectUri: true }).extend({
|
|
10318
|
+
theme: z.z.enum(['light', 'dark', 'auto']).optional(),
|
|
10319
|
+
});
|
|
10241
10320
|
|
|
10242
10321
|
const ListPublicConnectorsQuery = PaginationQuery.extend({
|
|
10243
10322
|
search: z.z.string().optional(),
|
|
@@ -10443,7 +10522,12 @@ const FindFlowRunsResponse = z.z.object({
|
|
|
10443
10522
|
|
|
10444
10523
|
const CreateIntegrationRequest = IntegrationEditableProperties;
|
|
10445
10524
|
const UpdateIntegrationRequest = IntegrationEditableProperties.partial();
|
|
10446
|
-
const FindIntegrationsQuery = z.z
|
|
10525
|
+
const FindIntegrationsQuery = z.z
|
|
10526
|
+
.object({
|
|
10527
|
+
appUuid: z.z.string().optional(),
|
|
10528
|
+
})
|
|
10529
|
+
.merge(PaginationQuery)
|
|
10530
|
+
.merge(SearchQuery);
|
|
10447
10531
|
const IntegrationAuthUi = z.z.object({
|
|
10448
10532
|
schema: z.z.any().optional(),
|
|
10449
10533
|
helpUri: z.z.string().optional(),
|
|
@@ -10571,6 +10655,13 @@ const CreateFieldMappingRequest = FieldMappingEditableProperties;
|
|
|
10571
10655
|
const CreateFieldMappingInstanceRequest = CreateFieldMappingRequest;
|
|
10572
10656
|
const UpdateFieldMappingRequest = CreateFieldMappingRequest.extend({}).partial();
|
|
10573
10657
|
const UpdateFieldMappingInstanceRequest = UpdateFieldMappingRequest;
|
|
10658
|
+
const RunFieldMappingRequest = z.z.object({
|
|
10659
|
+
direction: z.z.enum(exports.FieldMappingDirection).optional(),
|
|
10660
|
+
input: z.z.any().optional(),
|
|
10661
|
+
});
|
|
10662
|
+
const RunFieldMappingResponse = z.z.object({
|
|
10663
|
+
output: z.z.any().optional(),
|
|
10664
|
+
});
|
|
10574
10665
|
|
|
10575
10666
|
const DataLinkTableLayer = z.z.enum(['universal', 'connection']);
|
|
10576
10667
|
const FindDataLinkTablesQuery = z.z.object({
|
|
@@ -11230,6 +11321,11 @@ function hasCycles(nodes) {
|
|
|
11230
11321
|
return hasCycles;
|
|
11231
11322
|
}
|
|
11232
11323
|
|
|
11324
|
+
function getSchemaDescription(schema) {
|
|
11325
|
+
const json = z.z.toJSONSchema(schema);
|
|
11326
|
+
return json.description;
|
|
11327
|
+
}
|
|
11328
|
+
|
|
11233
11329
|
function addUndefinedWriteableProperties(value, schema) {
|
|
11234
11330
|
if (!(schema instanceof z.z.ZodObject)) {
|
|
11235
11331
|
return value;
|
|
@@ -11754,6 +11850,35 @@ class SelfAccessor {
|
|
|
11754
11850
|
}
|
|
11755
11851
|
}
|
|
11756
11852
|
|
|
11853
|
+
const PlatformUserPermissionsSchema = z.z.object({
|
|
11854
|
+
isEngineAdmin: z.z.boolean(),
|
|
11855
|
+
isPlatformAdmin: z.z.boolean(),
|
|
11856
|
+
platformUserId: z.z.string().optional(),
|
|
11857
|
+
});
|
|
11858
|
+
const OrgPermissionsSchema = z.z.object({
|
|
11859
|
+
orgId: z.z.string(),
|
|
11860
|
+
role: z.z.enum(['admin', 'member']).optional(),
|
|
11861
|
+
canRead: z.z.boolean(),
|
|
11862
|
+
canWrite: z.z.boolean(),
|
|
11863
|
+
});
|
|
11864
|
+
const WorkspacePermissionsSchema = z.z.object({
|
|
11865
|
+
workspaceId: z.z.string().optional(),
|
|
11866
|
+
isWorkspaceManager: z.z.boolean(),
|
|
11867
|
+
scopes: z.z.array(z.z.string()),
|
|
11868
|
+
});
|
|
11869
|
+
const TenantPermissionsSchema = z.z.object({
|
|
11870
|
+
tenantId: z.z.string().optional(),
|
|
11871
|
+
workspaceId: z.z.string().optional(),
|
|
11872
|
+
canRead: z.z.boolean(),
|
|
11873
|
+
canWrite: z.z.boolean(),
|
|
11874
|
+
});
|
|
11875
|
+
const AuthContextPermissionsSchema = z.z.object({
|
|
11876
|
+
platformUser: PlatformUserPermissionsSchema,
|
|
11877
|
+
org: OrgPermissionsSchema.optional(),
|
|
11878
|
+
workspace: WorkspacePermissionsSchema.optional(),
|
|
11879
|
+
tenant: TenantPermissionsSchema.optional(),
|
|
11880
|
+
});
|
|
11881
|
+
|
|
11757
11882
|
exports.LogRecordType = void 0;
|
|
11758
11883
|
(function (LogRecordType) {
|
|
11759
11884
|
LogRecordType["MSG"] = "message";
|
|
@@ -12936,6 +13061,7 @@ const AccountResponse = z.z.object({
|
|
|
12936
13061
|
superAdminToken: z.z.string().optional().nullable(),
|
|
12937
13062
|
orgs: z.z.array(Org).optional(),
|
|
12938
13063
|
permissions: z.z.array(z.z.string()).optional(),
|
|
13064
|
+
authContextPermissions: AuthContextPermissionsSchema.optional(),
|
|
12939
13065
|
featureFlags: z.z.any().optional(),
|
|
12940
13066
|
message: z.z.string().optional(),
|
|
12941
13067
|
error: z.z.string().optional(),
|
|
@@ -15002,6 +15128,31 @@ const AsyncRequestTriggerResponse = z.z.object({
|
|
|
15002
15128
|
accessKey: z.z.string(),
|
|
15003
15129
|
});
|
|
15004
15130
|
|
|
15131
|
+
const SelfHostingToken = z.z.object({
|
|
15132
|
+
id: z.z.string(),
|
|
15133
|
+
name: z.z.string(),
|
|
15134
|
+
orgId: z.z.string(),
|
|
15135
|
+
tokenPrefix: z.z.string(),
|
|
15136
|
+
createdAt: z.z.coerce.date(),
|
|
15137
|
+
updatedAt: z.z.coerce.date(),
|
|
15138
|
+
lastUsedAt: z.z.coerce.date().optional(),
|
|
15139
|
+
});
|
|
15140
|
+
const CreateSelfHostingTokenRequest = z.z.object({
|
|
15141
|
+
name: z.z.string().min(1).max(100),
|
|
15142
|
+
});
|
|
15143
|
+
const CreateSelfHostingTokenResponse = SelfHostingToken.extend({
|
|
15144
|
+
token: z.z.string(),
|
|
15145
|
+
});
|
|
15146
|
+
const UpdateSelfHostingTokenRequest = z.z.object({
|
|
15147
|
+
name: z.z.string().min(1).max(100),
|
|
15148
|
+
});
|
|
15149
|
+
const ValidateSelfHostingTokenRequest = z.z.object({});
|
|
15150
|
+
const ValidateSelfHostingTokenResponse = z.z.object({
|
|
15151
|
+
valid: z.z.boolean(),
|
|
15152
|
+
orgId: z.z.string().optional(),
|
|
15153
|
+
orgName: z.z.string().optional(),
|
|
15154
|
+
});
|
|
15155
|
+
|
|
15005
15156
|
const CONSOLE_ACCOUNT_API_TOKEN_PATH = 'settings/account/api-token';
|
|
15006
15157
|
|
|
15007
15158
|
class UI {
|
|
@@ -15486,6 +15637,7 @@ exports.AppEventTypesAccessor = AppEventTypesAccessor;
|
|
|
15486
15637
|
exports.AppSchema = AppSchema;
|
|
15487
15638
|
exports.AppliedToIntegrations = AppliedToIntegrations;
|
|
15488
15639
|
exports.AsyncRequestTriggerResponse = AsyncRequestTriggerResponse;
|
|
15640
|
+
exports.AuthContextPermissionsSchema = AuthContextPermissionsSchema;
|
|
15489
15641
|
exports.BackwardCompatibleDataSourceEditableProperties = BackwardCompatibleDataSourceEditableProperties;
|
|
15490
15642
|
exports.BadRequestError = BadRequestError;
|
|
15491
15643
|
exports.BaseAction = BaseAction;
|
|
@@ -15631,6 +15783,8 @@ exports.CreateOrgRequest = CreateOrgRequest;
|
|
|
15631
15783
|
exports.CreateOrgUserRequest = CreateOrgUserRequest;
|
|
15632
15784
|
exports.CreatePackageRequest = CreatePackageRequest;
|
|
15633
15785
|
exports.CreateScreenRequest = CreateScreenRequest;
|
|
15786
|
+
exports.CreateSelfHostingTokenRequest = CreateSelfHostingTokenRequest;
|
|
15787
|
+
exports.CreateSelfHostingTokenResponse = CreateSelfHostingTokenResponse;
|
|
15634
15788
|
exports.CustomCodeError = CustomCodeError;
|
|
15635
15789
|
exports.CustomerAccessor = CustomerAccessor;
|
|
15636
15790
|
exports.CustomerApiResponse = CustomerApiResponse;
|
|
@@ -15901,6 +16055,8 @@ exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
|
|
|
15901
16055
|
exports.RestApiMappingFunction = RestApiMappingFunction;
|
|
15902
16056
|
exports.RestApiMappingSchema = RestApiMappingSchema;
|
|
15903
16057
|
exports.RunActionRequest = RunActionRequest;
|
|
16058
|
+
exports.RunFieldMappingRequest = RunFieldMappingRequest;
|
|
16059
|
+
exports.RunFieldMappingResponse = RunFieldMappingResponse;
|
|
15904
16060
|
exports.RunFlowApiRequest = RunFlowApiRequest;
|
|
15905
16061
|
exports.SYSTEM_FIELDS = SYSTEM_FIELDS;
|
|
15906
16062
|
exports.ScenarioAccessor = ScenarioAccessor;
|
|
@@ -15914,6 +16070,7 @@ exports.ScreenSelector = ScreenSelector;
|
|
|
15914
16070
|
exports.ScreensAccessor = ScreensAccessor;
|
|
15915
16071
|
exports.SearchQuery = SearchQuery;
|
|
15916
16072
|
exports.SelfAccessor = SelfAccessor;
|
|
16073
|
+
exports.SelfHostingToken = SelfHostingToken;
|
|
15917
16074
|
exports.StatsFilterQuery = StatsFilterQuery;
|
|
15918
16075
|
exports.TenantLayerElement = TenantLayerElement;
|
|
15919
16076
|
exports.UNIFIED_DATA_MODELS = UNIFIED_DATA_MODELS;
|
|
@@ -15935,9 +16092,12 @@ exports.UpdateOrgRequest = UpdateOrgRequest;
|
|
|
15935
16092
|
exports.UpdateOrgUserRequest = UpdateOrgUserRequest;
|
|
15936
16093
|
exports.UpdatePackageRequest = UpdatePackageRequest;
|
|
15937
16094
|
exports.UpdateScreenRequest = UpdateScreenRequest;
|
|
16095
|
+
exports.UpdateSelfHostingTokenRequest = UpdateSelfHostingTokenRequest;
|
|
15938
16096
|
exports.UpstreamFlowNodeRunSchema = UpstreamFlowNodeRunSchema;
|
|
15939
16097
|
exports.UserAccessor = UserAccessor;
|
|
15940
16098
|
exports.UsersAccessor = UsersAccessor;
|
|
16099
|
+
exports.ValidateSelfHostingTokenRequest = ValidateSelfHostingTokenRequest;
|
|
16100
|
+
exports.ValidateSelfHostingTokenResponse = ValidateSelfHostingTokenResponse;
|
|
15941
16101
|
exports.WORKSPACE_ELEMENTS_STATS_COLLECTIONS = WORKSPACE_ELEMENTS_STATS_COLLECTIONS;
|
|
15942
16102
|
exports.WORKSPACE_SIZE_LIMITS = WORKSPACE_SIZE_LIMITS;
|
|
15943
16103
|
exports.Workspace = Workspace;
|
|
@@ -16032,6 +16192,7 @@ exports.getReferenceCollectionPointerForSchema = getReferenceCollectionPointerFo
|
|
|
16032
16192
|
exports.getRequiredFieldsFromSchema = getRequiredFieldsFromSchema;
|
|
16033
16193
|
exports.getRootNodeKeys = getRootNodeKeys;
|
|
16034
16194
|
exports.getSchemaByLocator = getSchemaByLocator;
|
|
16195
|
+
exports.getSchemaDescription = getSchemaDescription;
|
|
16035
16196
|
exports.getSchemaFromValue = getSchemaFromValue;
|
|
16036
16197
|
exports.getUpstreamNodeKeys = getUpstreamNodeKeys;
|
|
16037
16198
|
exports.getValueAtLocator = getValueAtLocator;
|