@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.node.js
CHANGED
|
@@ -3521,35 +3521,78 @@ exports.WorkspaceElementDependencyType = void 0;
|
|
|
3521
3521
|
WorkspaceElementDependencyType["Parent"] = "PARENT";
|
|
3522
3522
|
})(exports.WorkspaceElementDependencyType || (exports.WorkspaceElementDependencyType = {}));
|
|
3523
3523
|
const BaseWorkspaceElement = z.z.object({
|
|
3524
|
-
id: z.z.string(),
|
|
3525
|
-
name: z.z.string(),
|
|
3524
|
+
id: z.z.string().describe('Internal database ID of the element. Assigned by the API; unique per element.'),
|
|
3525
|
+
name: z.z.string().describe('Display name of the workspace element.'),
|
|
3526
3526
|
});
|
|
3527
3527
|
const BaseMembraneInterfaceEditableProperties = z.z.object({
|
|
3528
|
-
uuid: z.z
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3528
|
+
uuid: z.z
|
|
3529
|
+
.string()
|
|
3530
|
+
.optional()
|
|
3531
|
+
.describe('Stable unique identifier (UUID). Can be provided on create; otherwise generated. Must be unique across elements of this type.'),
|
|
3532
|
+
key: z.z
|
|
3533
|
+
.string()
|
|
3534
|
+
.optional()
|
|
3535
|
+
.describe('Stable key for referencing the element (e.g. in selectors). Unique per (parent, integration) scope. Generated from name if not provided on create.'),
|
|
3536
|
+
name: z.z.string().optional().describe('Display name. Optional on create; used to generate key when key is omitted.'),
|
|
3537
|
+
description: z.z.string().optional().describe('Optional human-readable description.'),
|
|
3538
|
+
meta: z.z.record(z.z.string(), z.z.any()).optional().describe('Optional key-value metadata.'),
|
|
3533
3539
|
});
|
|
3534
3540
|
const BaseMembraneInterfaceReadOnlyProperties = z.z.object({
|
|
3535
|
-
name: z.z.string(),
|
|
3536
|
-
state: z.z
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3541
|
-
|
|
3542
|
-
|
|
3541
|
+
name: z.z.string().describe('Display name. Always present in API responses (filled by API if not set on create).'),
|
|
3542
|
+
state: z.z
|
|
3543
|
+
.enum(exports.WorkspaceElementState)
|
|
3544
|
+
.optional()
|
|
3545
|
+
.describe('Current lifecycle or health state (e.g. READY, SETUP_FAILED, CONFIGURATION_ERROR). Set by the engine during setup and validation.'),
|
|
3546
|
+
errors: z.z.array(ErrorDataSchema).optional().describe('Validation or setup errors when state is not READY.'),
|
|
3547
|
+
revision: z.z
|
|
3548
|
+
.string()
|
|
3549
|
+
.optional()
|
|
3550
|
+
.describe('Opaque revision token; changes on each update. Used for optimistic concurrency.'),
|
|
3551
|
+
createdAt: z.z.string().optional().describe('ISO date when the element was created.'),
|
|
3552
|
+
updatedAt: z.z.string().optional().describe('ISO date when the element was last updated.'),
|
|
3553
|
+
archivedAt: z.z
|
|
3554
|
+
.string()
|
|
3555
|
+
.optional()
|
|
3556
|
+
.describe('When set, the element is archived (soft-deleted). Archived elements cannot be patched.'),
|
|
3557
|
+
isDeactivated: z.z
|
|
3558
|
+
.boolean()
|
|
3559
|
+
.optional()
|
|
3560
|
+
.describe('When true, setup is skipped and the element is treated as inactive (e.g. when dependencies are deactivated or the element is archived).'),
|
|
3561
|
+
isReadOnly: z.z
|
|
3562
|
+
.boolean()
|
|
3563
|
+
.optional()
|
|
3564
|
+
.describe('When true, the element cannot be modified (e.g. published package elements or elements from another workspace).'),
|
|
3543
3565
|
});
|
|
3544
3566
|
const BaseMembraneInterface = BaseWorkspaceElement.merge(BaseMembraneInterfaceEditableProperties).merge(BaseMembraneInterfaceReadOnlyProperties);
|
|
3545
3567
|
const BaseIntegrationLevelMembraneInterfaceEditableProperties = BaseMembraneInterfaceEditableProperties.extend({
|
|
3546
|
-
integrationId: z.z
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3568
|
+
integrationId: z.z
|
|
3569
|
+
.string()
|
|
3570
|
+
.optional()
|
|
3571
|
+
.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.'),
|
|
3572
|
+
integrationUuid: z.z
|
|
3573
|
+
.string()
|
|
3574
|
+
.optional()
|
|
3575
|
+
.describe('UUID of the integration; alternative to integrationId when creating from export. Resolved to integrationId by the API.'),
|
|
3576
|
+
parentId: z.z
|
|
3577
|
+
.string()
|
|
3578
|
+
.optional()
|
|
3579
|
+
.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.'),
|
|
3580
|
+
parentUuid: z.z
|
|
3581
|
+
.string()
|
|
3582
|
+
.optional()
|
|
3583
|
+
.describe('UUID of the parent element; alternative to parentId when creating (e.g. from export). Resolved to parentId by the API.'),
|
|
3584
|
+
connectionId: z.z
|
|
3585
|
+
.string()
|
|
3586
|
+
.optional()
|
|
3587
|
+
.describe('Connection ID. Used when filtering by connection in list/selector queries, or when creating or identifying connection-level instances.'),
|
|
3588
|
+
instanceKey: z.z
|
|
3589
|
+
.string()
|
|
3590
|
+
.optional()
|
|
3591
|
+
.describe('Key identifying a specific connection-level instance when multiple instances exist per (element, connection). Used in selector queries and when creating instances.'),
|
|
3592
|
+
isUniversal: z.z
|
|
3593
|
+
.boolean()
|
|
3594
|
+
.optional()
|
|
3595
|
+
.describe('When true, the element is universal (shared across all integrations). Requires universal-element access. Omit or false for integration-specific elements.'),
|
|
3553
3596
|
});
|
|
3554
3597
|
const BaseIntegrationLevelMembraneInterfaceReadOnlyProperties = BaseMembraneInterfaceReadOnlyProperties.extend({
|
|
3555
3598
|
isCustomized: z.z.boolean().optional(),
|
|
@@ -3624,6 +3667,13 @@ const FindIntegrationLevelMembraneInterfaceQuery = IntegrationLevelMembraneInter
|
|
|
3624
3667
|
isFlag: true,
|
|
3625
3668
|
}),
|
|
3626
3669
|
layer: MembraneElementLayer.optional(),
|
|
3670
|
+
externalAppId: z.z
|
|
3671
|
+
.string()
|
|
3672
|
+
.optional()
|
|
3673
|
+
.meta({
|
|
3674
|
+
filterTitle: 'External App',
|
|
3675
|
+
referenceElementType: exports.WorkspaceElementType.App,
|
|
3676
|
+
}),
|
|
3627
3677
|
});
|
|
3628
3678
|
const BaseIntegrationLevelMembraneInterface = BaseMembraneInterface.merge(BaseIntegrationLevelMembraneInterfaceEditableProperties).merge(BaseIntegrationLevelMembraneInterfaceReadOnlyProperties);
|
|
3629
3679
|
const TenantLayerElement = z.z.object({
|
|
@@ -3838,23 +3888,52 @@ const ActionDependency = z.z.object({
|
|
|
3838
3888
|
element: z.z.any().optional(),
|
|
3839
3889
|
});
|
|
3840
3890
|
const ActionSpecificProperties = z.z.object({
|
|
3841
|
-
connectionId: z.z
|
|
3842
|
-
|
|
3843
|
-
|
|
3844
|
-
|
|
3845
|
-
|
|
3846
|
-
|
|
3847
|
-
|
|
3891
|
+
connectionId: z.z
|
|
3892
|
+
.string()
|
|
3893
|
+
.optional()
|
|
3894
|
+
.describe('Connection ID for filtering or for connection-level instances. Same semantics as base integration-level property.'),
|
|
3895
|
+
instanceKey: z.z
|
|
3896
|
+
.string()
|
|
3897
|
+
.optional()
|
|
3898
|
+
.describe('Key for the connection-level instance when multiple exist per connection. Same semantics as base integration-level property.'),
|
|
3899
|
+
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.'),
|
|
3900
|
+
type: z.z
|
|
3901
|
+
.enum(exports.ActionType)
|
|
3902
|
+
.optional()
|
|
3903
|
+
.describe('Action type (e.g. ConnectorOperation, RunJavascript). Determines which handler runs and which config schema is used for validation.'),
|
|
3904
|
+
config: z.z
|
|
3905
|
+
.object({})
|
|
3906
|
+
.loose()
|
|
3907
|
+
.optional()
|
|
3908
|
+
.describe("Type-specific configuration object. Validated by the handler's config schema; passed to handler setup/run and getTemplateOutputSchema."),
|
|
3909
|
+
outputMapping: z.z
|
|
3910
|
+
.any()
|
|
3911
|
+
.optional()
|
|
3912
|
+
.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."),
|
|
3913
|
+
customOutputSchema: DataSchema.optional().describe('Explicit output schema for the action. Takes precedence over the transformed or default output schema when resolving outputSchema.'),
|
|
3848
3914
|
});
|
|
3849
|
-
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend(ActionSpecificProperties.shape);
|
|
3915
|
+
const ActionEditableProperties = BaseIntegrationLevelMembraneInterfaceEditableProperties.extend(ActionSpecificProperties.shape).describe('Action editable properties: key, name, type, config, inputSchema, outputMapping, optional connectionId and instanceKey for connection-level instances.');
|
|
3850
3916
|
const ActionExportProperties = BaseIntegrationLevelMembraneInterfaceExportProperties.extend(ActionSpecificProperties.shape).omit({
|
|
3851
3917
|
connectionId: true,
|
|
3852
3918
|
});
|
|
3853
3919
|
const ActionReadOnlyProperties = BaseIntegrationLevelMembraneInterfaceReadOnlyProperties.extend({
|
|
3854
3920
|
...TenantLayerElement.partial().shape,
|
|
3855
|
-
universalParentId: z.z
|
|
3856
|
-
|
|
3857
|
-
|
|
3921
|
+
universalParentId: z.z
|
|
3922
|
+
.string()
|
|
3923
|
+
.optional()
|
|
3924
|
+
.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.'),
|
|
3925
|
+
outputSchema: z.z
|
|
3926
|
+
.any()
|
|
3927
|
+
.optional()
|
|
3928
|
+
.describe('Resolved output schema (cached after setup). Derived from customOutputSchema, transformed schema from outputMapping, default output schema, or parent custom output schema. Read-only.'),
|
|
3929
|
+
isPublic: z.z
|
|
3930
|
+
.boolean()
|
|
3931
|
+
.optional()
|
|
3932
|
+
.describe('When true, the element is publicly listed (e.g. in universe). Used for published packages; publish/unpublish updates this on published elements.'),
|
|
3933
|
+
externalAppUuid: z.z
|
|
3934
|
+
.string()
|
|
3935
|
+
.optional()
|
|
3936
|
+
.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.'),
|
|
3858
3937
|
});
|
|
3859
3938
|
const BaseAction = BaseMembraneInterface.merge(ActionEditableProperties).merge(ActionReadOnlyProperties);
|
|
3860
3939
|
const BaseActionInstance = BaseAction;
|
|
@@ -8924,9 +9003,7 @@ const ConnectorUiSpec = z.z.object({
|
|
|
8924
9003
|
const ConnectorSpec = z.z.object({
|
|
8925
9004
|
key: z.z.string().optional(),
|
|
8926
9005
|
name: z.z.string().optional(),
|
|
8927
|
-
|
|
8928
|
-
logoUri: z.z.string().optional(),
|
|
8929
|
-
apiDocsUri: z.z.string().optional(),
|
|
9006
|
+
logoUri: z.z.string().url().optional(),
|
|
8930
9007
|
api: z.z
|
|
8931
9008
|
.object({
|
|
8932
9009
|
type: z.z.enum(['openapi', 'graphql']),
|
|
@@ -10261,7 +10338,9 @@ const ConnectPayload = z.z.object({
|
|
|
10261
10338
|
redirectUri: z.z.string().optional(),
|
|
10262
10339
|
customState: z.z.string().optional(),
|
|
10263
10340
|
});
|
|
10264
|
-
const ConnectUIOptions = ConnectPayload.omit({ input: true, redirectUri: true })
|
|
10341
|
+
const ConnectUIOptions = ConnectPayload.omit({ input: true, redirectUri: true }).extend({
|
|
10342
|
+
theme: z.z.enum(['light', 'dark', 'auto']).optional(),
|
|
10343
|
+
});
|
|
10265
10344
|
|
|
10266
10345
|
const ListPublicConnectorsQuery = PaginationQuery.extend({
|
|
10267
10346
|
search: z.z.string().optional(),
|
|
@@ -10467,7 +10546,12 @@ const FindFlowRunsResponse = z.z.object({
|
|
|
10467
10546
|
|
|
10468
10547
|
const CreateIntegrationRequest = IntegrationEditableProperties;
|
|
10469
10548
|
const UpdateIntegrationRequest = IntegrationEditableProperties.partial();
|
|
10470
|
-
const FindIntegrationsQuery = z.z
|
|
10549
|
+
const FindIntegrationsQuery = z.z
|
|
10550
|
+
.object({
|
|
10551
|
+
appUuid: z.z.string().optional(),
|
|
10552
|
+
})
|
|
10553
|
+
.merge(PaginationQuery)
|
|
10554
|
+
.merge(SearchQuery);
|
|
10471
10555
|
const IntegrationAuthUi = z.z.object({
|
|
10472
10556
|
schema: z.z.any().optional(),
|
|
10473
10557
|
helpUri: z.z.string().optional(),
|
|
@@ -10595,6 +10679,13 @@ const CreateFieldMappingRequest = FieldMappingEditableProperties;
|
|
|
10595
10679
|
const CreateFieldMappingInstanceRequest = CreateFieldMappingRequest;
|
|
10596
10680
|
const UpdateFieldMappingRequest = CreateFieldMappingRequest.extend({}).partial();
|
|
10597
10681
|
const UpdateFieldMappingInstanceRequest = UpdateFieldMappingRequest;
|
|
10682
|
+
const RunFieldMappingRequest = z.z.object({
|
|
10683
|
+
direction: z.z.enum(exports.FieldMappingDirection).optional(),
|
|
10684
|
+
input: z.z.any().optional(),
|
|
10685
|
+
});
|
|
10686
|
+
const RunFieldMappingResponse = z.z.object({
|
|
10687
|
+
output: z.z.any().optional(),
|
|
10688
|
+
});
|
|
10598
10689
|
|
|
10599
10690
|
const DataLinkTableLayer = z.z.enum(['universal', 'connection']);
|
|
10600
10691
|
const FindDataLinkTablesQuery = z.z.object({
|
|
@@ -11254,6 +11345,11 @@ function hasCycles(nodes) {
|
|
|
11254
11345
|
return hasCycles;
|
|
11255
11346
|
}
|
|
11256
11347
|
|
|
11348
|
+
function getSchemaDescription(schema) {
|
|
11349
|
+
const json = z.z.toJSONSchema(schema);
|
|
11350
|
+
return json.description;
|
|
11351
|
+
}
|
|
11352
|
+
|
|
11257
11353
|
function addUndefinedWriteableProperties(value, schema) {
|
|
11258
11354
|
if (!(schema instanceof z.z.ZodObject)) {
|
|
11259
11355
|
return value;
|
|
@@ -11778,6 +11874,35 @@ class SelfAccessor {
|
|
|
11778
11874
|
}
|
|
11779
11875
|
}
|
|
11780
11876
|
|
|
11877
|
+
const PlatformUserPermissionsSchema = z.z.object({
|
|
11878
|
+
isEngineAdmin: z.z.boolean(),
|
|
11879
|
+
isPlatformAdmin: z.z.boolean(),
|
|
11880
|
+
platformUserId: z.z.string().optional(),
|
|
11881
|
+
});
|
|
11882
|
+
const OrgPermissionsSchema = z.z.object({
|
|
11883
|
+
orgId: z.z.string(),
|
|
11884
|
+
role: z.z.enum(['admin', 'member']).optional(),
|
|
11885
|
+
canRead: z.z.boolean(),
|
|
11886
|
+
canWrite: z.z.boolean(),
|
|
11887
|
+
});
|
|
11888
|
+
const WorkspacePermissionsSchema = z.z.object({
|
|
11889
|
+
workspaceId: z.z.string().optional(),
|
|
11890
|
+
isWorkspaceManager: z.z.boolean(),
|
|
11891
|
+
scopes: z.z.array(z.z.string()),
|
|
11892
|
+
});
|
|
11893
|
+
const TenantPermissionsSchema = z.z.object({
|
|
11894
|
+
tenantId: z.z.string().optional(),
|
|
11895
|
+
workspaceId: z.z.string().optional(),
|
|
11896
|
+
canRead: z.z.boolean(),
|
|
11897
|
+
canWrite: z.z.boolean(),
|
|
11898
|
+
});
|
|
11899
|
+
const AuthContextPermissionsSchema = z.z.object({
|
|
11900
|
+
platformUser: PlatformUserPermissionsSchema,
|
|
11901
|
+
org: OrgPermissionsSchema.optional(),
|
|
11902
|
+
workspace: WorkspacePermissionsSchema.optional(),
|
|
11903
|
+
tenant: TenantPermissionsSchema.optional(),
|
|
11904
|
+
});
|
|
11905
|
+
|
|
11781
11906
|
exports.LogRecordType = void 0;
|
|
11782
11907
|
(function (LogRecordType) {
|
|
11783
11908
|
LogRecordType["MSG"] = "message";
|
|
@@ -12960,6 +13085,7 @@ const AccountResponse = z.z.object({
|
|
|
12960
13085
|
superAdminToken: z.z.string().optional().nullable(),
|
|
12961
13086
|
orgs: z.z.array(Org).optional(),
|
|
12962
13087
|
permissions: z.z.array(z.z.string()).optional(),
|
|
13088
|
+
authContextPermissions: AuthContextPermissionsSchema.optional(),
|
|
12963
13089
|
featureFlags: z.z.any().optional(),
|
|
12964
13090
|
message: z.z.string().optional(),
|
|
12965
13091
|
error: z.z.string().optional(),
|
|
@@ -15026,6 +15152,31 @@ const AsyncRequestTriggerResponse = z.z.object({
|
|
|
15026
15152
|
accessKey: z.z.string(),
|
|
15027
15153
|
});
|
|
15028
15154
|
|
|
15155
|
+
const SelfHostingToken = z.z.object({
|
|
15156
|
+
id: z.z.string(),
|
|
15157
|
+
name: z.z.string(),
|
|
15158
|
+
orgId: z.z.string(),
|
|
15159
|
+
tokenPrefix: z.z.string(),
|
|
15160
|
+
createdAt: z.z.coerce.date(),
|
|
15161
|
+
updatedAt: z.z.coerce.date(),
|
|
15162
|
+
lastUsedAt: z.z.coerce.date().optional(),
|
|
15163
|
+
});
|
|
15164
|
+
const CreateSelfHostingTokenRequest = z.z.object({
|
|
15165
|
+
name: z.z.string().min(1).max(100),
|
|
15166
|
+
});
|
|
15167
|
+
const CreateSelfHostingTokenResponse = SelfHostingToken.extend({
|
|
15168
|
+
token: z.z.string(),
|
|
15169
|
+
});
|
|
15170
|
+
const UpdateSelfHostingTokenRequest = z.z.object({
|
|
15171
|
+
name: z.z.string().min(1).max(100),
|
|
15172
|
+
});
|
|
15173
|
+
const ValidateSelfHostingTokenRequest = z.z.object({});
|
|
15174
|
+
const ValidateSelfHostingTokenResponse = z.z.object({
|
|
15175
|
+
valid: z.z.boolean(),
|
|
15176
|
+
orgId: z.z.string().optional(),
|
|
15177
|
+
orgName: z.z.string().optional(),
|
|
15178
|
+
});
|
|
15179
|
+
|
|
15029
15180
|
const CONSOLE_ACCOUNT_API_TOKEN_PATH = 'settings/account/api-token';
|
|
15030
15181
|
|
|
15031
15182
|
class UI {
|
|
@@ -15690,6 +15841,7 @@ exports.AppEventTypesAccessor = AppEventTypesAccessor;
|
|
|
15690
15841
|
exports.AppSchema = AppSchema;
|
|
15691
15842
|
exports.AppliedToIntegrations = AppliedToIntegrations;
|
|
15692
15843
|
exports.AsyncRequestTriggerResponse = AsyncRequestTriggerResponse;
|
|
15844
|
+
exports.AuthContextPermissionsSchema = AuthContextPermissionsSchema;
|
|
15693
15845
|
exports.BackwardCompatibleDataSourceEditableProperties = BackwardCompatibleDataSourceEditableProperties;
|
|
15694
15846
|
exports.BadRequestError = BadRequestError;
|
|
15695
15847
|
exports.BaseAction = BaseAction;
|
|
@@ -15836,6 +15988,8 @@ exports.CreateOrgRequest = CreateOrgRequest;
|
|
|
15836
15988
|
exports.CreateOrgUserRequest = CreateOrgUserRequest;
|
|
15837
15989
|
exports.CreatePackageRequest = CreatePackageRequest;
|
|
15838
15990
|
exports.CreateScreenRequest = CreateScreenRequest;
|
|
15991
|
+
exports.CreateSelfHostingTokenRequest = CreateSelfHostingTokenRequest;
|
|
15992
|
+
exports.CreateSelfHostingTokenResponse = CreateSelfHostingTokenResponse;
|
|
15839
15993
|
exports.CustomCodeError = CustomCodeError;
|
|
15840
15994
|
exports.CustomerAccessor = CustomerAccessor;
|
|
15841
15995
|
exports.CustomerApiResponse = CustomerApiResponse;
|
|
@@ -16107,6 +16261,8 @@ exports.ResetFlowInstanceOptions = ResetFlowInstanceOptions;
|
|
|
16107
16261
|
exports.RestApiMappingFunction = RestApiMappingFunction;
|
|
16108
16262
|
exports.RestApiMappingSchema = RestApiMappingSchema;
|
|
16109
16263
|
exports.RunActionRequest = RunActionRequest;
|
|
16264
|
+
exports.RunFieldMappingRequest = RunFieldMappingRequest;
|
|
16265
|
+
exports.RunFieldMappingResponse = RunFieldMappingResponse;
|
|
16110
16266
|
exports.RunFlowApiRequest = RunFlowApiRequest;
|
|
16111
16267
|
exports.SYSTEM_FIELDS = SYSTEM_FIELDS;
|
|
16112
16268
|
exports.ScenarioAccessor = ScenarioAccessor;
|
|
@@ -16120,6 +16276,7 @@ exports.ScreenSelector = ScreenSelector;
|
|
|
16120
16276
|
exports.ScreensAccessor = ScreensAccessor;
|
|
16121
16277
|
exports.SearchQuery = SearchQuery;
|
|
16122
16278
|
exports.SelfAccessor = SelfAccessor;
|
|
16279
|
+
exports.SelfHostingToken = SelfHostingToken;
|
|
16123
16280
|
exports.StatsFilterQuery = StatsFilterQuery;
|
|
16124
16281
|
exports.TenantLayerElement = TenantLayerElement;
|
|
16125
16282
|
exports.UNIFIED_DATA_MODELS = UNIFIED_DATA_MODELS;
|
|
@@ -16141,9 +16298,12 @@ exports.UpdateOrgRequest = UpdateOrgRequest;
|
|
|
16141
16298
|
exports.UpdateOrgUserRequest = UpdateOrgUserRequest;
|
|
16142
16299
|
exports.UpdatePackageRequest = UpdatePackageRequest;
|
|
16143
16300
|
exports.UpdateScreenRequest = UpdateScreenRequest;
|
|
16301
|
+
exports.UpdateSelfHostingTokenRequest = UpdateSelfHostingTokenRequest;
|
|
16144
16302
|
exports.UpstreamFlowNodeRunSchema = UpstreamFlowNodeRunSchema;
|
|
16145
16303
|
exports.UserAccessor = UserAccessor;
|
|
16146
16304
|
exports.UsersAccessor = UsersAccessor;
|
|
16305
|
+
exports.ValidateSelfHostingTokenRequest = ValidateSelfHostingTokenRequest;
|
|
16306
|
+
exports.ValidateSelfHostingTokenResponse = ValidateSelfHostingTokenResponse;
|
|
16147
16307
|
exports.WORKSPACE_ELEMENTS_STATS_COLLECTIONS = WORKSPACE_ELEMENTS_STATS_COLLECTIONS;
|
|
16148
16308
|
exports.WORKSPACE_SIZE_LIMITS = WORKSPACE_SIZE_LIMITS;
|
|
16149
16309
|
exports.Workspace = Workspace;
|
|
@@ -16239,6 +16399,7 @@ exports.getReferenceCollectionPointerForSchema = getReferenceCollectionPointerFo
|
|
|
16239
16399
|
exports.getRequiredFieldsFromSchema = getRequiredFieldsFromSchema;
|
|
16240
16400
|
exports.getRootNodeKeys = getRootNodeKeys;
|
|
16241
16401
|
exports.getSchemaByLocator = getSchemaByLocator;
|
|
16402
|
+
exports.getSchemaDescription = getSchemaDescription;
|
|
16242
16403
|
exports.getSchemaFromValue = getSchemaFromValue;
|
|
16243
16404
|
exports.getUpstreamNodeKeys = getUpstreamNodeKeys;
|
|
16244
16405
|
exports.getValueAtLocator = getValueAtLocator;
|