@opengeni/db 0.28.9 → 0.31.1
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/attached-browser-devices.d.ts +42 -0
- package/dist/attempt-tool-catalogs.d.ts +16 -0
- package/dist/browser-auth.d.ts +91 -0
- package/dist/browser-identities.d.ts +128 -0
- package/dist/browser-sessions.d.ts +272 -0
- package/dist/browser-state-artifacts.d.ts +17 -0
- package/dist/capability-components.d.ts +37 -0
- package/dist/capability-integrations.d.ts +192 -0
- package/dist/chunk-F5FT7BEZ.js +3535 -0
- package/dist/chunk-F5FT7BEZ.js.map +1 -0
- package/dist/chunk-ISI2TIUG.js +639 -0
- package/dist/chunk-ISI2TIUG.js.map +1 -0
- package/dist/chunk-MWDVXQOL.js +11639 -0
- package/dist/chunk-MWDVXQOL.js.map +1 -0
- package/dist/chunk-NBE6CHRI.js +955 -0
- package/dist/chunk-NBE6CHRI.js.map +1 -0
- package/dist/{chunk-VHBFHMPC.js → chunk-YHZXQ7HP.js} +754 -11
- package/dist/chunk-YHZXQ7HP.js.map +1 -0
- package/dist/codemode-operations.d.ts +117 -0
- package/dist/codex-token-resolver.d.ts +2 -2
- package/dist/company-profile-schema.d.ts +798 -0
- package/dist/company-profile.d.ts +268 -0
- package/dist/computer-sessions.d.ts +109 -0
- package/dist/connection-token-resolver.d.ts +9 -4
- package/dist/database.d.ts +52 -3
- package/dist/editable-artifact-durable-export.d.ts +153 -0
- package/dist/editable-artifact-durable-export.js +788 -0
- package/dist/editable-artifact-durable-export.js.map +1 -0
- package/dist/editable-artifact-materialization.d.ts +123 -0
- package/dist/editable-artifacts-schema.d.ts +4152 -0
- package/dist/editable-artifacts.d.ts +610 -0
- package/dist/editable-artifacts.js +26 -0
- package/dist/editable-artifacts.js.map +1 -0
- package/dist/generated-images.d.ts +139 -0
- package/dist/index.d.ts +698 -111
- package/dist/index.js +27573 -10322
- package/dist/index.js.map +1 -1
- package/dist/insights.d.ts +51 -4
- package/dist/integration-bindings.d.ts +70 -0
- package/dist/integration-features.d.ts +99 -0
- package/dist/interaction-revisions.d.ts +3 -0
- package/dist/interaction-schema.d.ts +5372 -0
- package/dist/knowledge-source-sync-schema.d.ts +1679 -0
- package/dist/knowledge-source-sync.d.ts +274 -0
- package/dist/memory-governance.d.ts +2 -2
- package/dist/memory-slack-delivery.d.ts +101 -0
- package/dist/new-session-drafts.d.ts +2 -2
- package/dist/pack-components.d.ts +76 -0
- package/dist/pack-installations.d.ts +86 -0
- package/dist/persistence-errors.d.ts +3 -3
- package/dist/plugin-packages.d.ts +126 -0
- package/dist/preference-registry.d.ts +1 -1
- package/dist/provision-roles.d.ts +9 -1
- package/dist/provision-roles.js +1 -1
- package/dist/runtime-posture.d.ts +18 -6
- package/dist/schema.d.ts +18342 -9099
- package/dist/schema.js +165 -1
- package/dist/scoped-knowledge.d.ts +97 -1
- package/dist/session-control.d.ts +4 -4
- package/dist/session-queue-commands.d.ts +19 -11
- package/dist/session-realtime-context.d.ts +2 -2
- package/dist/session-realtime-ledger.d.ts +4 -4
- package/dist/session-realtime-mirror.d.ts +2 -2
- package/dist/session-realtime-state.d.ts +1 -1
- package/dist/session-realtime-terminal.d.ts +1 -1
- package/dist/session-realtime.d.ts +7 -7
- package/dist/session-tool-call-settlement.d.ts +1 -1
- package/dist/slack-user-link-access.d.ts +54 -0
- package/dist/transcription-recordings.d.ts +2 -2
- package/dist/turn-initiator.d.ts +2 -2
- package/dist/video-generation.d.ts +216 -0
- package/dist/video-generation.js +66 -0
- package/dist/video-generation.js.map +1 -0
- package/dist/workspace-artifacts.d.ts +1 -1
- package/dist/workspace-instruction-policies.d.ts +1 -1
- package/dist/workspace-learning-policy-schema.d.ts +932 -0
- package/dist/workspace-learning-policy.d.ts +161 -0
- package/drizzle/0183_model_call_provider_cost_estimates.sql +39 -0
- package/drizzle/0184_sandbox_drain_teardown_fence.sql +682 -0
- package/drizzle/0185_temporal_schedule_cleanup_outbox.sql +168 -0
- package/drizzle/0186_sandbox_capture_provider_contract.sql +400 -0
- package/drizzle/0187_generated_image_artifacts.sql +173 -0
- package/drizzle/0188_image_generation_retention_failure.sql +25 -0
- package/drizzle/0189_retained_session_image_formats.sql +13 -0
- package/drizzle/0190_timeline_annotations.sql +31 -0
- package/drizzle/0191_editable_artifact_engine.sql +3853 -0
- package/drizzle/0192_editable_artifact_live_tickets.sql +338 -0
- package/drizzle/0193_editable_artifact_authorization.sql +190 -0
- package/drizzle/0194_editable_artifact_durable_exports.sql +160 -0
- package/drizzle/0195_editable_artifact_import_authorization.sql +203 -0
- package/drizzle/0196_rig_provider_images.sql +152 -0
- package/drizzle/0197_knowledge_source_sync_schedules.sql +523 -0
- package/drizzle/0198_memory_slack_publication_delivery.sql +393 -0
- package/drizzle/0199_workspace_learning_policy.sql +980 -0
- package/drizzle/0201_company_profile_authority.sql +849 -0
- package/drizzle/0202_document_index_checkpoints.sql +85 -0
- package/drizzle/0203_durable_video_generation.sql +353 -0
- package/drizzle/0204_video_generation_funding.sql +44 -0
- package/drizzle/0205_attempt_tool_catalogs.sql +230 -0
- package/drizzle/0206_browser_sessions.sql +646 -0
- package/drizzle/0207_browser_identities.sql +379 -0
- package/drizzle/0208_attached_browser_devices.sql +165 -0
- package/drizzle/0209_computer_sessions.sql +575 -0
- package/drizzle/0210_browser_auth_network_interventions.sql +441 -0
- package/drizzle/0211_editable_artifact_session_links.sql +58 -0
- package/drizzle/0212_slack_installation_bindings.sql +348 -0
- package/drizzle/0213_slack_user_link_access_requests.sql +177 -0
- package/drizzle/0214_session_activity_commit_gate.sql +262 -0
- package/drizzle/0215_capabilities_platform.sql +980 -0
- package/drizzle/0216_pack_component_ownership.sql +235 -0
- package/drizzle/0217_capability_definition_delete_authority.sql +32 -0
- package/package.json +18 -5
- package/src/attached-browser-devices.ts +371 -0
- package/src/attempt-tool-catalogs.ts +131 -0
- package/src/browser-auth.ts +1896 -0
- package/src/browser-identities.ts +1168 -0
- package/src/browser-sessions.ts +2005 -0
- package/src/browser-state-artifacts.ts +59 -0
- package/src/capability-components.ts +166 -0
- package/src/capability-integrations.ts +1663 -0
- package/src/codemode-operations.ts +674 -0
- package/src/company-profile-schema.ts +143 -0
- package/src/company-profile.ts +968 -0
- package/src/computer-sessions.ts +1130 -0
- package/src/connection-token-resolver.ts +270 -25
- package/src/database.ts +427 -23
- package/src/editable-artifact-durable-export.ts +1201 -0
- package/src/editable-artifact-materialization.ts +893 -0
- package/src/editable-artifacts-schema.ts +879 -0
- package/src/editable-artifacts.ts +5404 -0
- package/src/generated-images.ts +740 -0
- package/src/index.ts +5917 -1182
- package/src/insights.ts +160 -13
- package/src/integration-bindings.ts +455 -0
- package/src/integration-features.ts +859 -0
- package/src/interaction-revisions.ts +40 -0
- package/src/interaction-schema.ts +1303 -0
- package/src/knowledge-source-sync-schema.ts +192 -0
- package/src/knowledge-source-sync.ts +1922 -0
- package/src/memory-slack-delivery.ts +801 -0
- package/src/pack-components.ts +954 -0
- package/src/pack-installations.ts +929 -0
- package/src/persistence-errors.ts +4 -7
- package/src/plugin-packages.ts +1186 -0
- package/src/provision-roles.ts +302 -1
- package/src/runtime-posture-cli.ts +9 -0
- package/src/runtime-posture.ts +508 -5
- package/src/schema.ts +5117 -3119
- package/src/scoped-knowledge-schema.ts +1 -1
- package/src/scoped-knowledge.ts +655 -3
- package/src/session-control.ts +8 -5
- package/src/session-queue-commands.ts +187 -14
- package/src/session-realtime-context.ts +2 -2
- package/src/session-realtime-ledger.ts +3 -3
- package/src/session-realtime.ts +7 -7
- package/src/session-tool-call-settlement.ts +9 -0
- package/src/slack-user-link-access.ts +702 -0
- package/src/video-generation.ts +1452 -0
- package/src/workspace-learning-policy-schema.ts +139 -0
- package/src/workspace-learning-policy.ts +595 -0
- package/dist/chunk-P6CUHXQZ.js +0 -7248
- package/dist/chunk-P6CUHXQZ.js.map +0 -1
- package/dist/chunk-VHBFHMPC.js.map +0 -1
package/dist/insights.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Database } from "./database";
|
|
1
|
+
import type { Database } from "./database.js";
|
|
2
2
|
export type InsightsTimeWindow = {
|
|
3
3
|
since: Date;
|
|
4
4
|
until: Date;
|
|
@@ -11,10 +11,15 @@ export type ModelCallFactAggregateRow = {
|
|
|
11
11
|
inputTokens: number;
|
|
12
12
|
outputTokens: number;
|
|
13
13
|
cachedTokens: number;
|
|
14
|
+
cacheInputTokens: number;
|
|
14
15
|
cacheWriteTokens: number;
|
|
15
16
|
reasoningTokens: number;
|
|
16
17
|
totalTokens: number;
|
|
18
|
+
tokenKnownCalls: number;
|
|
19
|
+
cacheKnownCalls: number;
|
|
17
20
|
pricedCostMicros: number;
|
|
21
|
+
estimatedProviderCostMicros: number;
|
|
22
|
+
estimatedProviderCostKnownCalls: number;
|
|
18
23
|
};
|
|
19
24
|
export type InsightsDayBucket = {
|
|
20
25
|
day: string;
|
|
@@ -40,14 +45,20 @@ export type RootSessionDriverRow = {
|
|
|
40
45
|
rootSessionId: string;
|
|
41
46
|
title: string | null;
|
|
42
47
|
pricedCostMicros: number;
|
|
43
|
-
|
|
48
|
+
estimatedProviderCostMicros: number;
|
|
49
|
+
estimatedProviderCostKnownCalls: number;
|
|
50
|
+
totalTokens: number;
|
|
44
51
|
cachedTokens: number;
|
|
52
|
+
cacheInputTokens: number;
|
|
45
53
|
};
|
|
46
54
|
export type ScheduleFactAggregate = {
|
|
47
55
|
scheduledTaskId: string;
|
|
48
56
|
pricedCostMicros: number;
|
|
49
|
-
|
|
57
|
+
estimatedProviderCostMicros: number;
|
|
58
|
+
estimatedProviderCostKnownCalls: number;
|
|
59
|
+
totalTokens: number;
|
|
50
60
|
cachedTokens: number;
|
|
61
|
+
cacheInputTokens: number;
|
|
51
62
|
calls: number;
|
|
52
63
|
/** Prefer credits whenever any credits-path call exists in the window. */
|
|
53
64
|
billingPath: string;
|
|
@@ -71,6 +82,27 @@ export type FloorSessionRow = {
|
|
|
71
82
|
updatedAt: Date;
|
|
72
83
|
createdAt: Date;
|
|
73
84
|
};
|
|
85
|
+
export type RecentModelCallRow = {
|
|
86
|
+
id: string;
|
|
87
|
+
occurredAt: Date;
|
|
88
|
+
recordedAt: Date;
|
|
89
|
+
sessionId: string;
|
|
90
|
+
sessionTitle: string | null;
|
|
91
|
+
turnId: string;
|
|
92
|
+
provider: string;
|
|
93
|
+
providerApi: string;
|
|
94
|
+
model: string;
|
|
95
|
+
billingPath: string;
|
|
96
|
+
inputTokens: number | null;
|
|
97
|
+
outputTokens: number | null;
|
|
98
|
+
cachedTokens: number | null;
|
|
99
|
+
cacheWriteTokens: number | null;
|
|
100
|
+
reasoningTokens: number | null;
|
|
101
|
+
totalTokens: number | null;
|
|
102
|
+
pricedCostMicros: number;
|
|
103
|
+
estimatedProviderCostMicros: number | null;
|
|
104
|
+
pricingSource: string | null;
|
|
105
|
+
};
|
|
74
106
|
export declare function sumUsageQuantityInRange(db: Database, input: {
|
|
75
107
|
workspaceId: string;
|
|
76
108
|
eventType: string;
|
|
@@ -98,8 +130,17 @@ export declare function aggregateModelCallFactsByDay(db: Database, input: {
|
|
|
98
130
|
model?: string | null;
|
|
99
131
|
}): Promise<Map<string, {
|
|
100
132
|
costMicros: number;
|
|
133
|
+
estimatedProviderCostMicros: number;
|
|
134
|
+
estimatedProviderCostKnownCalls: number;
|
|
101
135
|
inputTokens: number;
|
|
136
|
+
outputTokens: number;
|
|
102
137
|
cachedTokens: number;
|
|
138
|
+
cacheInputTokens: number;
|
|
139
|
+
cacheWriteTokens: number;
|
|
140
|
+
reasoningTokens: number;
|
|
141
|
+
totalTokens: number;
|
|
142
|
+
tokenKnownCalls: number;
|
|
143
|
+
cacheKnownCalls: number;
|
|
103
144
|
calls: number;
|
|
104
145
|
}>>;
|
|
105
146
|
export declare function aggregateWarmSecondsByGroup(db: Database, input: InsightsTimeWindow & {
|
|
@@ -118,6 +159,12 @@ export declare function aggregateRootSessionDrivers(db: Database, input: Insight
|
|
|
118
159
|
export declare function listModelCallFacets(db: Database, input: InsightsTimeWindow & {
|
|
119
160
|
workspaceId: string;
|
|
120
161
|
}): Promise<ModelCallFacetRow[]>;
|
|
162
|
+
export declare function listRecentModelCalls(db: Database, input: InsightsTimeWindow & {
|
|
163
|
+
workspaceId: string;
|
|
164
|
+
provider?: string | null;
|
|
165
|
+
model?: string | null;
|
|
166
|
+
limit?: number;
|
|
167
|
+
}): Promise<RecentModelCallRow[]>;
|
|
121
168
|
export declare function aggregateScheduleFacts(db: Database, input: InsightsTimeWindow & {
|
|
122
169
|
workspaceId: string;
|
|
123
170
|
provider?: string | null;
|
|
@@ -138,7 +185,7 @@ export declare function aggregateSessionDepth(db: Database, workspaceId: string)
|
|
|
138
185
|
goalsCompleted: number;
|
|
139
186
|
}>;
|
|
140
187
|
export declare function listFloorSessions(db: Database, workspaceId: string, limit?: number): Promise<FloorSessionRow[]>;
|
|
141
|
-
export declare function countOnlineMachines(db: Database, workspaceId: string, heartbeatFreshMs: number): Promise<number>;
|
|
188
|
+
export declare function countOnlineMachines(db: Database, workspaceId: string, heartbeatFreshMs: number, now?: Date): Promise<number>;
|
|
142
189
|
export declare function enumerateUtcDays(since: Date, until: Date): string[];
|
|
143
190
|
/**
|
|
144
191
|
* Idempotent YTD backfill from authoritative agent.model.usage into model_call_facts.
|
|
@@ -0,0 +1,70 @@
|
|
|
1
|
+
import type { Database } from "./database.js";
|
|
2
|
+
import * as schema from "./schema.js";
|
|
3
|
+
export type IntegrationFeatureBindingOwner = {
|
|
4
|
+
kind: "direct" | "plugin" | "pack" | "migration";
|
|
5
|
+
id: string;
|
|
6
|
+
removable: boolean;
|
|
7
|
+
};
|
|
8
|
+
export type UpsertIntegrationFeatureBindingInput = {
|
|
9
|
+
accountId: string;
|
|
10
|
+
workspaceId: string;
|
|
11
|
+
integrationFacetInstallationId: string;
|
|
12
|
+
featureFacetId: string;
|
|
13
|
+
bindingKey: string;
|
|
14
|
+
displayName: string;
|
|
15
|
+
runtimeKey?: string | null;
|
|
16
|
+
connectionId?: string | null;
|
|
17
|
+
config: Record<string, unknown>;
|
|
18
|
+
createdBySubjectId: string;
|
|
19
|
+
owner: IntegrationFeatureBindingOwner;
|
|
20
|
+
expectedVersion?: number;
|
|
21
|
+
};
|
|
22
|
+
export declare class IntegrationFeatureBindingVersionConflictError extends Error {
|
|
23
|
+
readonly bindingKey: string;
|
|
24
|
+
readonly expectedVersion: number;
|
|
25
|
+
readonly actualVersion: number;
|
|
26
|
+
readonly name = "IntegrationFeatureBindingVersionConflictError";
|
|
27
|
+
constructor(bindingKey: string, expectedVersion: number, actualVersion: number);
|
|
28
|
+
}
|
|
29
|
+
export declare class IntegrationFeatureBindingVersionRequiredError extends Error {
|
|
30
|
+
readonly name = "IntegrationFeatureBindingVersionRequiredError";
|
|
31
|
+
}
|
|
32
|
+
export declare class IntegrationFeatureBindingOwnershipConflictError extends Error {
|
|
33
|
+
readonly name = "IntegrationFeatureBindingOwnershipConflictError";
|
|
34
|
+
}
|
|
35
|
+
export declare function integrationBindingKey(connectionId: string | null | undefined, requested?: string | null): string;
|
|
36
|
+
export declare function integrationRuntimeKey(baseServerId: string, bindingKey: string): string;
|
|
37
|
+
export declare function ensureIntegrationFeatureFacet(db: Database, input: {
|
|
38
|
+
integrationFacetId: string;
|
|
39
|
+
featureKey: string;
|
|
40
|
+
kind: "tools" | "knowledge_source" | "inbound_trigger" | "delivery_destination" | "identity_link";
|
|
41
|
+
configSchema?: Record<string, unknown>;
|
|
42
|
+
capabilities?: Record<string, unknown>;
|
|
43
|
+
}): Promise<typeof schema.integrationFeatureFacets.$inferSelect>;
|
|
44
|
+
export declare function upsertIntegrationFeatureBinding(db: Database, input: UpsertIntegrationFeatureBindingInput): Promise<{
|
|
45
|
+
row: typeof schema.integrationFeatureBindings.$inferSelect;
|
|
46
|
+
changed: boolean;
|
|
47
|
+
}>;
|
|
48
|
+
export declare function listIntegrationFeatureBindingOwners(db: Database, bindingId: string): Promise<IntegrationFeatureBindingOwner[]>;
|
|
49
|
+
export declare function removeIntegrationFeatureBindingOwner(db: Database, input: {
|
|
50
|
+
workspaceId: string;
|
|
51
|
+
bindingId: string;
|
|
52
|
+
owner: Pick<IntegrationFeatureBindingOwner, "kind" | "id">;
|
|
53
|
+
expectedVersion?: number;
|
|
54
|
+
}): Promise<{
|
|
55
|
+
binding: typeof schema.integrationFeatureBindings.$inferSelect | null;
|
|
56
|
+
remainingOwners: IntegrationFeatureBindingOwner[];
|
|
57
|
+
}>;
|
|
58
|
+
export declare function removeIntegrationFeatureBindingOwnersForOwner(db: Database, input: {
|
|
59
|
+
workspaceId: string;
|
|
60
|
+
owner: Pick<IntegrationFeatureBindingOwner, "kind" | "id">;
|
|
61
|
+
}): Promise<{
|
|
62
|
+
disabledBindingIds: string[];
|
|
63
|
+
retainedBindingIds: string[];
|
|
64
|
+
}>;
|
|
65
|
+
export declare function integrationDefinitionHasBindingOwner(db: Database, input: {
|
|
66
|
+
workspaceId: string;
|
|
67
|
+
pluginInstallationId: string;
|
|
68
|
+
owner: Pick<IntegrationFeatureBindingOwner, "kind" | "id">;
|
|
69
|
+
}): Promise<boolean>;
|
|
70
|
+
export declare function addIntegrationFeatureBindingOwner(db: Database, bindingId: string, input: Pick<UpsertIntegrationFeatureBindingInput, "accountId" | "workspaceId" | "owner">): Promise<void>;
|
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
import { type Database } from "./database.js";
|
|
2
|
+
export type IntegrationFeatureKind = "knowledge_source" | "inbound_trigger" | "delivery_destination" | "identity_link";
|
|
3
|
+
export type IntegrationFeatureBindingSummary = {
|
|
4
|
+
id: string;
|
|
5
|
+
featureKey: string;
|
|
6
|
+
kind: IntegrationFeatureKind;
|
|
7
|
+
bindingKey: string;
|
|
8
|
+
displayName: string;
|
|
9
|
+
connectionId: string | null;
|
|
10
|
+
status: "active" | "paused" | "needs_attention" | "disabled";
|
|
11
|
+
config: Record<string, unknown>;
|
|
12
|
+
version: number;
|
|
13
|
+
hasCursor: boolean;
|
|
14
|
+
lastSuccessAt: string | null;
|
|
15
|
+
lastErrorCode: string | null;
|
|
16
|
+
createdAt: string;
|
|
17
|
+
updatedAt: string;
|
|
18
|
+
};
|
|
19
|
+
export type IntegrationFeatureDefinitionSummary = {
|
|
20
|
+
featureKey: string;
|
|
21
|
+
kind: IntegrationFeatureKind;
|
|
22
|
+
configSchema: Record<string, unknown>;
|
|
23
|
+
capabilities: Record<string, unknown>;
|
|
24
|
+
};
|
|
25
|
+
export type IntegrationInstanceFeatures = {
|
|
26
|
+
capabilityId: string;
|
|
27
|
+
instanceKey: string;
|
|
28
|
+
providerDomain: string;
|
|
29
|
+
connectionId: string | null;
|
|
30
|
+
features: {
|
|
31
|
+
definition: IntegrationFeatureDefinitionSummary;
|
|
32
|
+
binding: IntegrationFeatureBindingSummary | null;
|
|
33
|
+
}[];
|
|
34
|
+
};
|
|
35
|
+
export type IntegrationFeatureMutationResult = {
|
|
36
|
+
capabilityId: string;
|
|
37
|
+
instanceKey: string;
|
|
38
|
+
featureKey: string;
|
|
39
|
+
status: "configured" | "paused" | "active";
|
|
40
|
+
binding: IntegrationFeatureBindingSummary;
|
|
41
|
+
};
|
|
42
|
+
export type IntegrationFeatureRemovalResult = {
|
|
43
|
+
capabilityId: string;
|
|
44
|
+
instanceKey: string;
|
|
45
|
+
featureKey: string;
|
|
46
|
+
status: "not_configured" | "removed" | "retained_by_other_owners";
|
|
47
|
+
binding: IntegrationFeatureBindingSummary | null;
|
|
48
|
+
remainingOwners: {
|
|
49
|
+
kind: "direct" | "plugin" | "pack" | "migration";
|
|
50
|
+
id: string;
|
|
51
|
+
removable: boolean;
|
|
52
|
+
}[];
|
|
53
|
+
};
|
|
54
|
+
export declare class IntegrationFeatureNotFoundError extends Error {
|
|
55
|
+
readonly name = "IntegrationFeatureNotFoundError";
|
|
56
|
+
}
|
|
57
|
+
export declare class IntegrationFeatureConnectionError extends Error {
|
|
58
|
+
readonly name = "IntegrationFeatureConnectionError";
|
|
59
|
+
}
|
|
60
|
+
export declare class IntegrationFeatureConfigError extends Error {
|
|
61
|
+
readonly name = "IntegrationFeatureConfigError";
|
|
62
|
+
}
|
|
63
|
+
export declare class IntegrationFeatureOperationIdempotencyError extends Error {
|
|
64
|
+
readonly name = "IntegrationFeatureOperationIdempotencyError";
|
|
65
|
+
}
|
|
66
|
+
export declare function listIntegrationInstanceFeatures(db: Database, workspaceId: string, subjectId: string, capabilityId: string, instanceKey: string): Promise<IntegrationInstanceFeatures>;
|
|
67
|
+
export declare function configureIntegrationFeature(db: Database, input: {
|
|
68
|
+
accountId: string;
|
|
69
|
+
workspaceId: string;
|
|
70
|
+
subjectId: string;
|
|
71
|
+
capabilityId: string;
|
|
72
|
+
instanceKey: string;
|
|
73
|
+
featureKey: string;
|
|
74
|
+
displayName: string;
|
|
75
|
+
config: Record<string, unknown>;
|
|
76
|
+
expectedVersion?: number;
|
|
77
|
+
idempotencyKey: string;
|
|
78
|
+
}): Promise<IntegrationFeatureMutationResult>;
|
|
79
|
+
export declare function setIntegrationFeatureLifecycle(db: Database, input: {
|
|
80
|
+
accountId: string;
|
|
81
|
+
workspaceId: string;
|
|
82
|
+
subjectId: string;
|
|
83
|
+
capabilityId: string;
|
|
84
|
+
instanceKey: string;
|
|
85
|
+
featureKey: string;
|
|
86
|
+
action: "pause" | "resume";
|
|
87
|
+
expectedVersion: number;
|
|
88
|
+
idempotencyKey: string;
|
|
89
|
+
}): Promise<IntegrationFeatureMutationResult>;
|
|
90
|
+
export declare function removeIntegrationFeature(db: Database, input: {
|
|
91
|
+
accountId: string;
|
|
92
|
+
workspaceId: string;
|
|
93
|
+
subjectId: string;
|
|
94
|
+
capabilityId: string;
|
|
95
|
+
instanceKey: string;
|
|
96
|
+
featureKey: string;
|
|
97
|
+
expectedVersion: number;
|
|
98
|
+
idempotencyKey: string;
|
|
99
|
+
}): Promise<IntegrationFeatureRemovalResult>;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { type Database } from "./database.js";
|
|
2
|
+
export declare function advanceWorkspaceInteractionRevision(db: Database, accountId: string, workspaceId: string): Promise<number>;
|
|
3
|
+
export declare function readWorkspaceInteractionRevision(db: Database, workspaceId: string): Promise<number>;
|