@opengeni/capabilities 0.1.1 → 0.2.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.
@@ -1,44 +0,0 @@
1
- export interface OAuthProviderPreset {
2
- readonly authorizationUrl: string;
3
- readonly tokenUrl: string;
4
- readonly scopes: readonly string[];
5
- readonly tokenPlacement: {
6
- readonly carrier: "header";
7
- readonly name: "Authorization";
8
- readonly prefix: "Bearer ";
9
- };
10
- }
11
- export interface OpenApiProviderPreset {
12
- readonly id: string;
13
- readonly name: string;
14
- readonly summary: string;
15
- readonly family: "google" | "microsoft";
16
- readonly sourceFormat: "google-discovery" | "openapi";
17
- readonly sourceUrl: string;
18
- readonly baseUrl: string;
19
- readonly oauth: OAuthProviderPreset;
20
- readonly pathPrefixes?: readonly string[];
21
- readonly healthOperation?: string;
22
- readonly healthArgs?: Readonly<Record<string, unknown>>;
23
- readonly features: readonly IntegrationFeatureDefinition[];
24
- }
25
- export interface IntegrationFeatureDefinition {
26
- readonly featureKey: string;
27
- readonly kind: "knowledge_source" | "inbound_trigger" | "delivery_destination" | "identity_link";
28
- readonly configSchema: Readonly<Record<string, unknown>>;
29
- readonly capabilities: Readonly<Record<string, unknown>>;
30
- }
31
- export declare const GOOGLE_DRIVE_PRESET: OpenApiProviderPreset;
32
- export declare const GOOGLE_GMAIL_PRESET: OpenApiProviderPreset;
33
- export declare const MICROSOFT_GRAPH_OPENAPI_URL = "https://raw.githubusercontent.com/microsoftgraph/msgraph-metadata/master/openapi/v1.0/openapi.yaml";
34
- export declare const MICROSOFT_GRAPH_BASE_URL = "https://graph.microsoft.com/v1.0";
35
- export declare const MICROSOFT_OUTLOOK_MAIL_PRESET: OpenApiProviderPreset;
36
- export declare const MICROSOFT_OUTLOOK_CALENDAR_PRESET: OpenApiProviderPreset;
37
- export declare const MICROSOFT_OUTLOOK_CONTACTS_PRESET: OpenApiProviderPreset;
38
- export declare const MICROSOFT_ONEDRIVE_PRESET: OpenApiProviderPreset;
39
- export declare const CORE_PROVIDER_PRESETS: readonly OpenApiProviderPreset[];
40
- export declare function providerPresetById(id: string): OpenApiProviderPreset | undefined;
41
- export declare function providerDomainForPreset(preset: OpenApiProviderPreset): string;
42
- export declare function integrationFeaturesForPreset(presetId: string | null | undefined): readonly IntegrationFeatureDefinition[];
43
- export declare function filterOpenApiDocumentForPreset(document: Record<string, unknown>, preset: OpenApiProviderPreset): Record<string, unknown>;
44
- export declare function googleDiscoveryToOpenApi(discovery: unknown): Record<string, unknown>;