@contractspec/lib.contracts 1.56.1 → 1.57.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/_virtual/{rolldown_runtime.js → _rolldown/runtime.js} +3 -3
- package/dist/app-config/app-config.contracts.d.ts +50 -50
- package/dist/app-config/events.d.ts +27 -27
- package/dist/app-config/lifecycle-contracts.d.ts +54 -54
- package/dist/app-config/runtime.js +3 -3
- package/dist/app-config/validation.js +3 -3
- package/dist/capabilities/capabilities.js +20 -20
- package/dist/capabilities/context.d.ts +0 -1
- package/dist/capabilities/context.js +1 -1
- package/dist/capabilities/guards.d.ts +0 -1
- package/dist/capabilities/index.d.ts +2 -1
- package/dist/capabilities/index.js +2 -1
- package/dist/capabilities/meeting-recorder.d.ts +10 -0
- package/dist/capabilities/meeting-recorder.js +82 -0
- package/dist/capabilities/validation.d.ts +0 -1
- package/dist/client/react/drivers/rn-reusables.d.ts +0 -1
- package/dist/client/react/drivers/shadcn.d.ts +0 -1
- package/dist/client/react/form-render.js +3 -3
- package/dist/contract-registry/schemas.d.ts +2 -2
- package/dist/data-views/registry.d.ts +0 -1
- package/dist/data-views/spec.d.ts +0 -1
- package/dist/docs/commands/docsPublish.command.d.ts +13 -13
- package/dist/docs/contracts.d.ts +103 -103
- package/dist/docs/events/docsGenerated.event.d.ts +13 -13
- package/dist/docs/events/docsPublished.event.d.ts +15 -15
- package/dist/docs/forms/docsSearch.form.d.ts +4 -4
- package/dist/docs/queries/contractReference.query.d.ts +47 -47
- package/dist/docs/queries/docsIndex.query.d.ts +57 -57
- package/dist/docs/tech/llm/llm-integration.docblock.d.ts +0 -1
- package/dist/docs/tech/mcp-endpoints.docblock.js +5 -0
- package/dist/events.d.ts +0 -1
- package/dist/examples/index.d.ts +0 -1
- package/dist/examples/registry.d.ts +0 -1
- package/dist/examples/schema.d.ts +17 -17
- package/dist/experiments/spec.d.ts +2 -4
- package/dist/features/index.d.ts +0 -1
- package/dist/features/types.d.ts +2 -5
- package/dist/forms/forms.d.ts +1 -2
- package/dist/forms/forms.js +1 -2
- package/dist/index.d.ts +42 -1
- package/dist/index.js +36 -1
- package/dist/install.d.ts +2 -5
- package/dist/integrations/docs/integrations.docblock.js +19 -1
- package/dist/integrations/index.d.ts +26 -1
- package/dist/integrations/index.js +20 -1
- package/dist/integrations/meeting-recorder/contracts/index.d.ts +10 -0
- package/dist/integrations/meeting-recorder/contracts/index.js +12 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.d.ts +458 -0
- package/dist/integrations/meeting-recorder/contracts/meetings.js +149 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.d.ts +173 -0
- package/dist/integrations/meeting-recorder/contracts/transcripts.js +156 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.d.ts +92 -0
- package/dist/integrations/meeting-recorder/contracts/webhooks.js +82 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.d.ts +7 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.capability.js +21 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.d.ts +11 -0
- package/dist/integrations/meeting-recorder/meeting-recorder.feature.js +67 -0
- package/dist/integrations/meeting-recorder/models.d.ts +407 -0
- package/dist/integrations/meeting-recorder/models.js +295 -0
- package/dist/integrations/meeting-recorder/telemetry.d.ts +16 -0
- package/dist/integrations/meeting-recorder/telemetry.js +42 -0
- package/dist/integrations/openbanking/contracts/accounts.d.ts +66 -66
- package/dist/integrations/openbanking/contracts/balances.d.ts +34 -34
- package/dist/integrations/openbanking/contracts/transactions.d.ts +48 -48
- package/dist/integrations/openbanking/models.d.ts +55 -55
- package/dist/integrations/operations.d.ts +102 -102
- package/dist/integrations/providers/analytics-reader.d.ts +107 -0
- package/dist/integrations/providers/analytics-reader.js +0 -0
- package/dist/integrations/providers/analytics-writer.d.ts +10 -0
- package/dist/integrations/providers/analytics-writer.js +0 -0
- package/dist/integrations/providers/analytics.d.ts +49 -0
- package/dist/integrations/providers/analytics.js +0 -0
- package/dist/integrations/providers/database.d.ts +15 -0
- package/dist/integrations/providers/database.js +0 -0
- package/dist/integrations/providers/fal.d.ts +8 -0
- package/dist/integrations/providers/fal.js +94 -0
- package/dist/integrations/providers/fathom.d.ts +8 -0
- package/dist/integrations/providers/fathom.js +114 -0
- package/dist/integrations/providers/fireflies.d.ts +8 -0
- package/dist/integrations/providers/fireflies.js +98 -0
- package/dist/integrations/providers/gradium.d.ts +8 -0
- package/dist/integrations/providers/gradium.js +92 -0
- package/dist/integrations/providers/granola.d.ts +8 -0
- package/dist/integrations/providers/granola.js +71 -0
- package/dist/integrations/providers/index.d.ts +19 -1
- package/dist/integrations/providers/index.js +13 -1
- package/dist/integrations/providers/jira.d.ts +8 -0
- package/dist/integrations/providers/jira.js +90 -0
- package/dist/integrations/providers/linear.d.ts +8 -0
- package/dist/integrations/providers/linear.js +85 -0
- package/dist/integrations/providers/meeting-recorder.d.ts +132 -0
- package/dist/integrations/providers/meeting-recorder.js +0 -0
- package/dist/integrations/providers/notion.d.ts +8 -0
- package/dist/integrations/providers/notion.js +91 -0
- package/dist/integrations/providers/posthog.d.ts +8 -0
- package/dist/integrations/providers/posthog.js +107 -0
- package/dist/integrations/providers/project-management.d.ts +35 -0
- package/dist/integrations/providers/project-management.js +0 -0
- package/dist/integrations/providers/registry.d.ts +0 -1
- package/dist/integrations/providers/registry.js +24 -0
- package/dist/integrations/providers/supabase-postgres.d.ts +8 -0
- package/dist/integrations/providers/supabase-postgres.js +73 -0
- package/dist/integrations/providers/supabase-vector.d.ts +8 -0
- package/dist/integrations/providers/supabase-vector.js +93 -0
- package/dist/integrations/providers/tldv.d.ts +8 -0
- package/dist/integrations/providers/tldv.js +98 -0
- package/dist/integrations/runtime.js +0 -1
- package/dist/integrations/spec.d.ts +1 -1
- package/dist/jobs/queue.d.ts +0 -1
- package/dist/knowledge/binding.d.ts +1 -3
- package/dist/knowledge/operations.d.ts +66 -66
- package/dist/llm/exporters.d.ts +0 -1
- package/dist/llm/exporters.js +0 -1
- package/dist/llm/prompts.d.ts +0 -1
- package/dist/llm/types.d.ts +0 -1
- package/dist/onboarding-base.d.ts +29 -29
- package/dist/openapi.d.ts +0 -1
- package/dist/operations/operation.d.ts +19 -43
- package/dist/operations/registry.d.ts +0 -1
- package/dist/operations/registry.js +2 -2
- package/dist/operations/report/getContractVerificationStatus.d.ts +10 -10
- package/dist/ownership.d.ts +41 -88
- package/dist/policy/guards.d.ts +0 -1
- package/dist/policy/guards.js +3 -3
- package/dist/policy/index.d.ts +0 -1
- package/dist/policy/validation.d.ts +0 -1
- package/dist/product-intent/contract-patch-intent.d.ts +103 -0
- package/dist/product-intent/contract-patch-intent.js +33 -0
- package/dist/product-intent/contract-spec-patch.d.ts +89 -0
- package/dist/product-intent/contract-spec-patch.js +27 -0
- package/dist/product-intent/evidence.d.ts +17 -0
- package/dist/product-intent/evidence.js +13 -0
- package/dist/product-intent/findings.d.ts +60 -0
- package/dist/product-intent/findings.js +17 -0
- package/dist/product-intent/impact-report.d.ts +60 -0
- package/dist/product-intent/impact-report.js +27 -0
- package/dist/product-intent/index.d.ts +16 -0
- package/dist/product-intent/index.js +17 -0
- package/dist/product-intent/insights.d.ts +65 -0
- package/dist/product-intent/insights.js +23 -0
- package/dist/product-intent/opportunity-brief.d.ts +195 -0
- package/dist/product-intent/opportunity-brief.js +42 -0
- package/dist/product-intent/problems.d.ts +62 -0
- package/dist/product-intent/problems.js +22 -0
- package/dist/product-intent/registry.d.ts +32 -0
- package/dist/product-intent/registry.js +49 -0
- package/dist/product-intent/runtime.d.ts +103 -0
- package/dist/product-intent/runtime.js +101 -0
- package/dist/product-intent/spec.d.ts +676 -0
- package/dist/product-intent/spec.js +53 -0
- package/dist/product-intent/task-pack.d.ts +101 -0
- package/dist/product-intent/task-pack.js +34 -0
- package/dist/product-intent/tickets.d.ts +70 -0
- package/dist/product-intent/tickets.js +24 -0
- package/dist/product-intent/types.d.ts +12 -0
- package/dist/product-intent/types.js +13 -0
- package/dist/product-intent/ui-wireframe.d.ts +103 -0
- package/dist/product-intent/ui-wireframe.js +33 -0
- package/dist/registry-utils.d.ts +0 -1
- package/dist/registry-utils.js +3 -3
- package/dist/resources.js +1 -1
- package/dist/schema-to-markdown.d.ts +0 -1
- package/dist/server/contracts-adapter-input.js +2 -2
- package/dist/server/graphql-pothos.d.ts +0 -1
- package/dist/server/mcp/createMcpServer.d.ts +0 -1
- package/dist/server/rest-express.d.ts +0 -1
- package/dist/server/rest-generic.js +3 -3
- package/dist/server/rest-next-app.d.ts +0 -1
- package/dist/tests/spec.d.ts +0 -1
- package/dist/translations/registry.d.ts +0 -1
- package/dist/translations/spec.d.ts +0 -1
- package/dist/translations/validation.d.ts +0 -1
- package/dist/types.d.ts +5 -12
- package/dist/versioning/types.d.ts +0 -1
- package/dist/versioning/utils.d.ts +0 -1
- package/dist/workflow/adapters/memory-store.d.ts +0 -1
- package/dist/workflow/context.d.ts +0 -1
- package/dist/workflow/context.js +2 -2
- package/dist/workflow/runner.d.ts +1 -2
- package/dist/workspace-config/contractsrc-schema.d.ts +0 -1
- package/dist/workspace-config/contractsrc-types.d.ts +1 -3
- package/package.json +110 -32
- package/dist/integrations/providers/impls/elevenlabs-voice.d.ts +0 -20
- package/dist/integrations/providers/impls/elevenlabs-voice.js +0 -95
- package/dist/integrations/providers/impls/gcs-storage.d.ts +0 -24
- package/dist/integrations/providers/impls/gcs-storage.js +0 -88
- package/dist/integrations/providers/impls/gmail-inbound.d.ts +0 -26
- package/dist/integrations/providers/impls/gmail-inbound.js +0 -200
- package/dist/integrations/providers/impls/gmail-outbound.d.ts +0 -18
- package/dist/integrations/providers/impls/gmail-outbound.js +0 -105
- package/dist/integrations/providers/impls/google-calendar.d.ts +0 -23
- package/dist/integrations/providers/impls/google-calendar.js +0 -154
- package/dist/integrations/providers/impls/index.d.ts +0 -15
- package/dist/integrations/providers/impls/index.js +0 -16
- package/dist/integrations/providers/impls/mistral-embedding.d.ts +0 -23
- package/dist/integrations/providers/impls/mistral-embedding.js +0 -41
- package/dist/integrations/providers/impls/mistral-llm.d.ts +0 -31
- package/dist/integrations/providers/impls/mistral-llm.js +0 -247
- package/dist/integrations/providers/impls/postmark-email.d.ts +0 -19
- package/dist/integrations/providers/impls/postmark-email.js +0 -55
- package/dist/integrations/providers/impls/powens-client.d.ts +0 -124
- package/dist/integrations/providers/impls/powens-client.js +0 -171
- package/dist/integrations/providers/impls/powens-openbanking.d.ts +0 -27
- package/dist/integrations/providers/impls/powens-openbanking.js +0 -218
- package/dist/integrations/providers/impls/provider-factory.d.ts +0 -26
- package/dist/integrations/providers/impls/provider-factory.js +0 -146
- package/dist/integrations/providers/impls/qdrant-vector.d.ts +0 -24
- package/dist/integrations/providers/impls/qdrant-vector.js +0 -69
- package/dist/integrations/providers/impls/stripe-payments.d.ts +0 -28
- package/dist/integrations/providers/impls/stripe-payments.js +0 -202
- package/dist/integrations/providers/impls/twilio-sms.d.ts +0 -20
- package/dist/integrations/providers/impls/twilio-sms.js +0 -58
|
@@ -2,401 +2,401 @@ import { AnyOperationSpec, OperationSpec } from "../operations/operation.js";
|
|
|
2
2
|
import "../operations/index.js";
|
|
3
3
|
import { OperationSpecRegistry } from "../operations/registry.js";
|
|
4
4
|
import "../index.js";
|
|
5
|
-
import * as
|
|
5
|
+
import * as _contractspec_lib_schema0 from "@contractspec/lib.schema";
|
|
6
6
|
import { SchemaModel } from "@contractspec/lib.schema";
|
|
7
7
|
|
|
8
8
|
//#region src/integrations/operations.d.ts
|
|
9
9
|
declare const CreateIntegrationConnection: OperationSpec<SchemaModel<{
|
|
10
10
|
tenantId: {
|
|
11
|
-
type:
|
|
11
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
12
12
|
isOptional: false;
|
|
13
13
|
};
|
|
14
14
|
integrationKey: {
|
|
15
|
-
type:
|
|
15
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
16
16
|
isOptional: false;
|
|
17
17
|
};
|
|
18
18
|
integrationVersion: {
|
|
19
|
-
type:
|
|
19
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
20
20
|
isOptional: false;
|
|
21
21
|
};
|
|
22
22
|
label: {
|
|
23
|
-
type:
|
|
23
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
24
24
|
isOptional: false;
|
|
25
25
|
};
|
|
26
26
|
ownershipMode: {
|
|
27
|
-
type:
|
|
27
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
28
28
|
isOptional: false;
|
|
29
29
|
};
|
|
30
30
|
externalAccountId: {
|
|
31
|
-
type:
|
|
31
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
32
32
|
isOptional: true;
|
|
33
33
|
};
|
|
34
34
|
secretProvider: {
|
|
35
|
-
type:
|
|
35
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
36
36
|
isOptional: false;
|
|
37
37
|
};
|
|
38
38
|
secretRef: {
|
|
39
|
-
type:
|
|
39
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
40
40
|
isOptional: false;
|
|
41
41
|
};
|
|
42
42
|
environment: {
|
|
43
|
-
type:
|
|
43
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
44
44
|
isOptional: true;
|
|
45
45
|
};
|
|
46
46
|
config: {
|
|
47
|
-
type:
|
|
47
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
48
48
|
isOptional: false;
|
|
49
49
|
};
|
|
50
50
|
}>, SchemaModel<{
|
|
51
51
|
id: {
|
|
52
|
-
type:
|
|
52
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
53
53
|
isOptional: false;
|
|
54
54
|
};
|
|
55
55
|
tenantId: {
|
|
56
|
-
type:
|
|
56
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
57
57
|
isOptional: false;
|
|
58
58
|
};
|
|
59
59
|
integrationKey: {
|
|
60
|
-
type:
|
|
60
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
61
61
|
isOptional: false;
|
|
62
62
|
};
|
|
63
63
|
integrationVersion: {
|
|
64
|
-
type:
|
|
64
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
65
65
|
isOptional: false;
|
|
66
66
|
};
|
|
67
67
|
label: {
|
|
68
|
-
type:
|
|
68
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
69
69
|
isOptional: false;
|
|
70
70
|
};
|
|
71
71
|
ownershipMode: {
|
|
72
|
-
type:
|
|
72
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
73
73
|
isOptional: false;
|
|
74
74
|
};
|
|
75
75
|
externalAccountId: {
|
|
76
|
-
type:
|
|
76
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
77
77
|
isOptional: true;
|
|
78
78
|
};
|
|
79
79
|
secretProvider: {
|
|
80
|
-
type:
|
|
80
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
81
81
|
isOptional: false;
|
|
82
82
|
};
|
|
83
83
|
secretRef: {
|
|
84
|
-
type:
|
|
84
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
85
85
|
isOptional: false;
|
|
86
86
|
};
|
|
87
87
|
status: {
|
|
88
|
-
type:
|
|
88
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
89
89
|
isOptional: false;
|
|
90
90
|
};
|
|
91
91
|
environment: {
|
|
92
|
-
type:
|
|
92
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
93
93
|
isOptional: true;
|
|
94
94
|
};
|
|
95
95
|
healthStatus: {
|
|
96
|
-
type:
|
|
96
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
97
97
|
isOptional: true;
|
|
98
98
|
};
|
|
99
99
|
healthCheckedAt: {
|
|
100
|
-
type:
|
|
100
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
101
101
|
isOptional: true;
|
|
102
102
|
};
|
|
103
103
|
healthLatencyMs: {
|
|
104
|
-
type:
|
|
104
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
105
105
|
isOptional: true;
|
|
106
106
|
};
|
|
107
107
|
healthErrorCode: {
|
|
108
|
-
type:
|
|
108
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
109
109
|
isOptional: true;
|
|
110
110
|
};
|
|
111
111
|
healthErrorMessage: {
|
|
112
|
-
type:
|
|
112
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
113
113
|
isOptional: true;
|
|
114
114
|
};
|
|
115
115
|
usageRequestCount: {
|
|
116
|
-
type:
|
|
116
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
117
117
|
isOptional: true;
|
|
118
118
|
};
|
|
119
119
|
usageSuccessCount: {
|
|
120
|
-
type:
|
|
120
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
121
121
|
isOptional: true;
|
|
122
122
|
};
|
|
123
123
|
usageErrorCount: {
|
|
124
|
-
type:
|
|
124
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
125
125
|
isOptional: true;
|
|
126
126
|
};
|
|
127
127
|
usageLastUsedAt: {
|
|
128
|
-
type:
|
|
128
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
129
129
|
isOptional: true;
|
|
130
130
|
};
|
|
131
131
|
usageLastErrorAt: {
|
|
132
|
-
type:
|
|
132
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
133
133
|
isOptional: true;
|
|
134
134
|
};
|
|
135
135
|
usageLastErrorCode: {
|
|
136
|
-
type:
|
|
136
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
137
137
|
isOptional: true;
|
|
138
138
|
};
|
|
139
139
|
createdAt: {
|
|
140
|
-
type:
|
|
140
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
141
141
|
isOptional: true;
|
|
142
142
|
};
|
|
143
143
|
updatedAt: {
|
|
144
|
-
type:
|
|
144
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
145
145
|
isOptional: true;
|
|
146
146
|
};
|
|
147
147
|
}>, undefined>;
|
|
148
148
|
declare const UpdateIntegrationConnection: OperationSpec<SchemaModel<{
|
|
149
149
|
connectionId: {
|
|
150
|
-
type:
|
|
150
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
151
151
|
isOptional: false;
|
|
152
152
|
};
|
|
153
153
|
label: {
|
|
154
|
-
type:
|
|
154
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
155
155
|
isOptional: true;
|
|
156
156
|
};
|
|
157
157
|
status: {
|
|
158
|
-
type:
|
|
158
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
159
159
|
isOptional: true;
|
|
160
160
|
};
|
|
161
161
|
ownershipMode: {
|
|
162
|
-
type:
|
|
162
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
163
163
|
isOptional: true;
|
|
164
164
|
};
|
|
165
165
|
externalAccountId: {
|
|
166
|
-
type:
|
|
166
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
167
167
|
isOptional: true;
|
|
168
168
|
};
|
|
169
169
|
secretProvider: {
|
|
170
|
-
type:
|
|
170
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
171
171
|
isOptional: true;
|
|
172
172
|
};
|
|
173
173
|
secretRef: {
|
|
174
|
-
type:
|
|
174
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
175
175
|
isOptional: true;
|
|
176
176
|
};
|
|
177
177
|
config: {
|
|
178
|
-
type:
|
|
178
|
+
type: _contractspec_lib_schema0.FieldType<Record<string, unknown>, Record<string, unknown>>;
|
|
179
179
|
isOptional: true;
|
|
180
180
|
};
|
|
181
181
|
}>, SchemaModel<{
|
|
182
182
|
id: {
|
|
183
|
-
type:
|
|
183
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
184
184
|
isOptional: false;
|
|
185
185
|
};
|
|
186
186
|
tenantId: {
|
|
187
|
-
type:
|
|
187
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
188
188
|
isOptional: false;
|
|
189
189
|
};
|
|
190
190
|
integrationKey: {
|
|
191
|
-
type:
|
|
191
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
192
192
|
isOptional: false;
|
|
193
193
|
};
|
|
194
194
|
integrationVersion: {
|
|
195
|
-
type:
|
|
195
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
196
196
|
isOptional: false;
|
|
197
197
|
};
|
|
198
198
|
label: {
|
|
199
|
-
type:
|
|
199
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
200
200
|
isOptional: false;
|
|
201
201
|
};
|
|
202
202
|
ownershipMode: {
|
|
203
|
-
type:
|
|
203
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
204
204
|
isOptional: false;
|
|
205
205
|
};
|
|
206
206
|
externalAccountId: {
|
|
207
|
-
type:
|
|
207
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
208
208
|
isOptional: true;
|
|
209
209
|
};
|
|
210
210
|
secretProvider: {
|
|
211
|
-
type:
|
|
211
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
212
212
|
isOptional: false;
|
|
213
213
|
};
|
|
214
214
|
secretRef: {
|
|
215
|
-
type:
|
|
215
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
216
216
|
isOptional: false;
|
|
217
217
|
};
|
|
218
218
|
status: {
|
|
219
|
-
type:
|
|
219
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
220
220
|
isOptional: false;
|
|
221
221
|
};
|
|
222
222
|
environment: {
|
|
223
|
-
type:
|
|
223
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
224
224
|
isOptional: true;
|
|
225
225
|
};
|
|
226
226
|
healthStatus: {
|
|
227
|
-
type:
|
|
227
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
228
228
|
isOptional: true;
|
|
229
229
|
};
|
|
230
230
|
healthCheckedAt: {
|
|
231
|
-
type:
|
|
231
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
232
232
|
isOptional: true;
|
|
233
233
|
};
|
|
234
234
|
healthLatencyMs: {
|
|
235
|
-
type:
|
|
235
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
236
236
|
isOptional: true;
|
|
237
237
|
};
|
|
238
238
|
healthErrorCode: {
|
|
239
|
-
type:
|
|
239
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
240
240
|
isOptional: true;
|
|
241
241
|
};
|
|
242
242
|
healthErrorMessage: {
|
|
243
|
-
type:
|
|
243
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
244
244
|
isOptional: true;
|
|
245
245
|
};
|
|
246
246
|
usageRequestCount: {
|
|
247
|
-
type:
|
|
247
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
248
248
|
isOptional: true;
|
|
249
249
|
};
|
|
250
250
|
usageSuccessCount: {
|
|
251
|
-
type:
|
|
251
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
252
252
|
isOptional: true;
|
|
253
253
|
};
|
|
254
254
|
usageErrorCount: {
|
|
255
|
-
type:
|
|
255
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
256
256
|
isOptional: true;
|
|
257
257
|
};
|
|
258
258
|
usageLastUsedAt: {
|
|
259
|
-
type:
|
|
259
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
260
260
|
isOptional: true;
|
|
261
261
|
};
|
|
262
262
|
usageLastErrorAt: {
|
|
263
|
-
type:
|
|
263
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
264
264
|
isOptional: true;
|
|
265
265
|
};
|
|
266
266
|
usageLastErrorCode: {
|
|
267
|
-
type:
|
|
267
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
268
268
|
isOptional: true;
|
|
269
269
|
};
|
|
270
270
|
createdAt: {
|
|
271
|
-
type:
|
|
271
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
272
272
|
isOptional: true;
|
|
273
273
|
};
|
|
274
274
|
updatedAt: {
|
|
275
|
-
type:
|
|
275
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
276
276
|
isOptional: true;
|
|
277
277
|
};
|
|
278
278
|
}>, undefined>;
|
|
279
279
|
declare const DeleteIntegrationConnection: OperationSpec<SchemaModel<{
|
|
280
280
|
connectionId: {
|
|
281
|
-
type:
|
|
281
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
282
282
|
isOptional: false;
|
|
283
283
|
};
|
|
284
284
|
}>, SchemaModel<{
|
|
285
285
|
success: {
|
|
286
|
-
type:
|
|
286
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
287
287
|
isOptional: false;
|
|
288
288
|
};
|
|
289
289
|
}>, undefined>;
|
|
290
290
|
declare const ListIntegrationConnections: OperationSpec<SchemaModel<{
|
|
291
291
|
tenantId: {
|
|
292
|
-
type:
|
|
292
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
293
293
|
isOptional: false;
|
|
294
294
|
};
|
|
295
295
|
category: {
|
|
296
|
-
type:
|
|
296
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
297
297
|
isOptional: true;
|
|
298
298
|
};
|
|
299
299
|
status: {
|
|
300
|
-
type:
|
|
300
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
301
301
|
isOptional: true;
|
|
302
302
|
};
|
|
303
303
|
}>, SchemaModel<{
|
|
304
304
|
connections: {
|
|
305
305
|
type: SchemaModel<{
|
|
306
306
|
id: {
|
|
307
|
-
type:
|
|
307
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
308
308
|
isOptional: false;
|
|
309
309
|
};
|
|
310
310
|
tenantId: {
|
|
311
|
-
type:
|
|
311
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
312
312
|
isOptional: false;
|
|
313
313
|
};
|
|
314
314
|
integrationKey: {
|
|
315
|
-
type:
|
|
315
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
316
316
|
isOptional: false;
|
|
317
317
|
};
|
|
318
318
|
integrationVersion: {
|
|
319
|
-
type:
|
|
319
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
320
320
|
isOptional: false;
|
|
321
321
|
};
|
|
322
322
|
label: {
|
|
323
|
-
type:
|
|
323
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
324
324
|
isOptional: false;
|
|
325
325
|
};
|
|
326
326
|
ownershipMode: {
|
|
327
|
-
type:
|
|
327
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
328
328
|
isOptional: false;
|
|
329
329
|
};
|
|
330
330
|
externalAccountId: {
|
|
331
|
-
type:
|
|
331
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
332
332
|
isOptional: true;
|
|
333
333
|
};
|
|
334
334
|
secretProvider: {
|
|
335
|
-
type:
|
|
335
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
336
336
|
isOptional: false;
|
|
337
337
|
};
|
|
338
338
|
secretRef: {
|
|
339
|
-
type:
|
|
339
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
340
340
|
isOptional: false;
|
|
341
341
|
};
|
|
342
342
|
status: {
|
|
343
|
-
type:
|
|
343
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
344
344
|
isOptional: false;
|
|
345
345
|
};
|
|
346
346
|
environment: {
|
|
347
|
-
type:
|
|
347
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
348
348
|
isOptional: true;
|
|
349
349
|
};
|
|
350
350
|
healthStatus: {
|
|
351
|
-
type:
|
|
351
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
352
352
|
isOptional: true;
|
|
353
353
|
};
|
|
354
354
|
healthCheckedAt: {
|
|
355
|
-
type:
|
|
355
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
356
356
|
isOptional: true;
|
|
357
357
|
};
|
|
358
358
|
healthLatencyMs: {
|
|
359
|
-
type:
|
|
359
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
360
360
|
isOptional: true;
|
|
361
361
|
};
|
|
362
362
|
healthErrorCode: {
|
|
363
|
-
type:
|
|
363
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
364
364
|
isOptional: true;
|
|
365
365
|
};
|
|
366
366
|
healthErrorMessage: {
|
|
367
|
-
type:
|
|
367
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
368
368
|
isOptional: true;
|
|
369
369
|
};
|
|
370
370
|
usageRequestCount: {
|
|
371
|
-
type:
|
|
371
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
372
372
|
isOptional: true;
|
|
373
373
|
};
|
|
374
374
|
usageSuccessCount: {
|
|
375
|
-
type:
|
|
375
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
376
376
|
isOptional: true;
|
|
377
377
|
};
|
|
378
378
|
usageErrorCount: {
|
|
379
|
-
type:
|
|
379
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
380
380
|
isOptional: true;
|
|
381
381
|
};
|
|
382
382
|
usageLastUsedAt: {
|
|
383
|
-
type:
|
|
383
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
384
384
|
isOptional: true;
|
|
385
385
|
};
|
|
386
386
|
usageLastErrorAt: {
|
|
387
|
-
type:
|
|
387
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
388
388
|
isOptional: true;
|
|
389
389
|
};
|
|
390
390
|
usageLastErrorCode: {
|
|
391
|
-
type:
|
|
391
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
392
392
|
isOptional: true;
|
|
393
393
|
};
|
|
394
394
|
createdAt: {
|
|
395
|
-
type:
|
|
395
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
396
396
|
isOptional: true;
|
|
397
397
|
};
|
|
398
398
|
updatedAt: {
|
|
399
|
-
type:
|
|
399
|
+
type: _contractspec_lib_schema0.FieldType<Date, string>;
|
|
400
400
|
isOptional: true;
|
|
401
401
|
};
|
|
402
402
|
}>;
|
|
@@ -406,28 +406,28 @@ declare const ListIntegrationConnections: OperationSpec<SchemaModel<{
|
|
|
406
406
|
}>, undefined>;
|
|
407
407
|
declare const TestIntegrationConnection: OperationSpec<SchemaModel<{
|
|
408
408
|
connectionId: {
|
|
409
|
-
type:
|
|
409
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
410
410
|
isOptional: false;
|
|
411
411
|
};
|
|
412
412
|
}>, SchemaModel<{
|
|
413
413
|
success: {
|
|
414
|
-
type:
|
|
414
|
+
type: _contractspec_lib_schema0.FieldType<boolean, boolean>;
|
|
415
415
|
isOptional: false;
|
|
416
416
|
};
|
|
417
417
|
status: {
|
|
418
|
-
type:
|
|
418
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
419
419
|
isOptional: true;
|
|
420
420
|
};
|
|
421
421
|
latencyMs: {
|
|
422
|
-
type:
|
|
422
|
+
type: _contractspec_lib_schema0.FieldType<number, number>;
|
|
423
423
|
isOptional: true;
|
|
424
424
|
};
|
|
425
425
|
error: {
|
|
426
|
-
type:
|
|
426
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
427
427
|
isOptional: true;
|
|
428
428
|
};
|
|
429
429
|
errorCode: {
|
|
430
|
-
type:
|
|
430
|
+
type: _contractspec_lib_schema0.FieldType<string, string>;
|
|
431
431
|
isOptional: true;
|
|
432
432
|
};
|
|
433
433
|
}>, undefined>;
|
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
import { AnalyticsQueryInput, AnalyticsQueryResult } from "./analytics.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/analytics-reader.d.ts
|
|
4
|
+
type AnalyticsPropertyFilter = Record<string, string | number | boolean | null>;
|
|
5
|
+
interface DateRangeInput {
|
|
6
|
+
from?: string | Date;
|
|
7
|
+
to?: string | Date;
|
|
8
|
+
timezone?: string;
|
|
9
|
+
}
|
|
10
|
+
interface PaginationInput {
|
|
11
|
+
limit?: number;
|
|
12
|
+
offset?: number;
|
|
13
|
+
}
|
|
14
|
+
interface GetEventsInput extends PaginationInput {
|
|
15
|
+
projectId?: string | number;
|
|
16
|
+
event?: string;
|
|
17
|
+
events?: string[];
|
|
18
|
+
distinctId?: string;
|
|
19
|
+
properties?: AnalyticsPropertyFilter;
|
|
20
|
+
dateRange?: DateRangeInput;
|
|
21
|
+
orderBy?: 'timestamp' | '-timestamp';
|
|
22
|
+
}
|
|
23
|
+
interface GetPersonsInput extends PaginationInput {
|
|
24
|
+
projectId?: string | number;
|
|
25
|
+
cohortId?: string | number;
|
|
26
|
+
properties?: AnalyticsPropertyFilter;
|
|
27
|
+
search?: string;
|
|
28
|
+
}
|
|
29
|
+
type AnalyticsInsightType = 'TRENDS' | 'FUNNELS' | 'RETENTION' | 'PATHS' | 'STICKINESS' | 'LIFECYCLE' | 'SESSIONS' | 'CUSTOM';
|
|
30
|
+
interface GetInsightsInput extends PaginationInput {
|
|
31
|
+
projectId?: string | number;
|
|
32
|
+
insightType?: AnalyticsInsightType;
|
|
33
|
+
}
|
|
34
|
+
interface GetInsightResultInput {
|
|
35
|
+
projectId?: string | number;
|
|
36
|
+
insightId: string | number;
|
|
37
|
+
}
|
|
38
|
+
interface GetCohortsInput extends PaginationInput {
|
|
39
|
+
projectId?: string | number;
|
|
40
|
+
}
|
|
41
|
+
interface GetFeatureFlagsInput extends PaginationInput {
|
|
42
|
+
projectId?: string | number;
|
|
43
|
+
active?: boolean;
|
|
44
|
+
}
|
|
45
|
+
interface GetAnnotationsInput extends PaginationInput {
|
|
46
|
+
projectId?: string | number;
|
|
47
|
+
dateRange?: DateRangeInput;
|
|
48
|
+
}
|
|
49
|
+
interface AnalyticsEvent {
|
|
50
|
+
id?: string | number;
|
|
51
|
+
event: string;
|
|
52
|
+
distinctId: string;
|
|
53
|
+
properties?: Record<string, unknown>;
|
|
54
|
+
timestamp: string;
|
|
55
|
+
}
|
|
56
|
+
interface AnalyticsPerson {
|
|
57
|
+
id?: string | number;
|
|
58
|
+
distinctId?: string;
|
|
59
|
+
properties?: Record<string, unknown>;
|
|
60
|
+
createdAt?: string;
|
|
61
|
+
}
|
|
62
|
+
interface AnalyticsInsight {
|
|
63
|
+
id?: string | number;
|
|
64
|
+
name?: string;
|
|
65
|
+
type?: AnalyticsInsightType | string;
|
|
66
|
+
filters?: Record<string, unknown>;
|
|
67
|
+
result?: unknown;
|
|
68
|
+
}
|
|
69
|
+
interface AnalyticsCohort {
|
|
70
|
+
id?: string | number;
|
|
71
|
+
name?: string;
|
|
72
|
+
groups?: unknown;
|
|
73
|
+
count?: number;
|
|
74
|
+
}
|
|
75
|
+
interface AnalyticsFeatureFlag {
|
|
76
|
+
id?: string | number;
|
|
77
|
+
key?: string;
|
|
78
|
+
name?: string;
|
|
79
|
+
active?: boolean;
|
|
80
|
+
filters?: Record<string, unknown>;
|
|
81
|
+
rolloutPercentage?: number;
|
|
82
|
+
}
|
|
83
|
+
interface AnalyticsAnnotation {
|
|
84
|
+
id?: string | number;
|
|
85
|
+
content?: string;
|
|
86
|
+
dateMarker?: string;
|
|
87
|
+
scope?: string;
|
|
88
|
+
createdAt?: string;
|
|
89
|
+
}
|
|
90
|
+
interface PaginatedResponse<T> {
|
|
91
|
+
count: number;
|
|
92
|
+
next?: string | null;
|
|
93
|
+
previous?: string | null;
|
|
94
|
+
results: T[];
|
|
95
|
+
}
|
|
96
|
+
interface AnalyticsReader {
|
|
97
|
+
queryHogQL?(input: AnalyticsQueryInput): Promise<AnalyticsQueryResult>;
|
|
98
|
+
getEvents?(input: GetEventsInput): Promise<PaginatedResponse<AnalyticsEvent>>;
|
|
99
|
+
getPersons?(input: GetPersonsInput): Promise<PaginatedResponse<AnalyticsPerson>>;
|
|
100
|
+
getInsights?(input: GetInsightsInput): Promise<PaginatedResponse<AnalyticsInsight>>;
|
|
101
|
+
getInsightResult?(input: GetInsightResultInput): Promise<AnalyticsInsight>;
|
|
102
|
+
getCohorts?(input: GetCohortsInput): Promise<PaginatedResponse<AnalyticsCohort>>;
|
|
103
|
+
getFeatureFlags?(input: GetFeatureFlagsInput): Promise<PaginatedResponse<AnalyticsFeatureFlag>>;
|
|
104
|
+
getAnnotations?(input: GetAnnotationsInput): Promise<PaginatedResponse<AnalyticsAnnotation>>;
|
|
105
|
+
}
|
|
106
|
+
//#endregion
|
|
107
|
+
export { AnalyticsAnnotation, AnalyticsCohort, AnalyticsEvent, AnalyticsFeatureFlag, AnalyticsInsight, AnalyticsInsightType, AnalyticsPerson, AnalyticsPropertyFilter, AnalyticsReader, DateRangeInput, GetAnnotationsInput, GetCohortsInput, GetEventsInput, GetFeatureFlagsInput, GetInsightResultInput, GetInsightsInput, GetPersonsInput, PaginatedResponse, PaginationInput };
|
|
File without changes
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { AnalyticsEventInput, AnalyticsIdentifyInput, AnalyticsMcpToolCall } from "./analytics.js";
|
|
2
|
+
|
|
3
|
+
//#region src/integrations/providers/analytics-writer.d.ts
|
|
4
|
+
interface AnalyticsWriter {
|
|
5
|
+
capture(event: AnalyticsEventInput): Promise<void>;
|
|
6
|
+
identify?(input: AnalyticsIdentifyInput): Promise<void>;
|
|
7
|
+
callMcpTool?(call: AnalyticsMcpToolCall): Promise<unknown>;
|
|
8
|
+
}
|
|
9
|
+
//#endregion
|
|
10
|
+
export { AnalyticsWriter };
|
|
File without changes
|