@databutton/firebase-types 1.78.153 → 1.79.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.
|
@@ -34,6 +34,8 @@ export declare enum CollectionName {
|
|
|
34
34
|
MIGRATIONS = "migrations",
|
|
35
35
|
NOTEBOOKS = "notebooks",
|
|
36
36
|
INTEGRATIONS = "integrations",
|
|
37
|
+
INTEGRATION_TEMPLATES = "integration-templates",
|
|
38
|
+
INSTALLED_INTEGRATIONS = "installed-integrations",
|
|
37
39
|
PAGES = "pages",
|
|
38
40
|
PATCH_ATTEMPTS = "patch-attempts",
|
|
39
41
|
PROFILES = "profiles",
|
|
@@ -35,6 +35,8 @@ export var CollectionName;
|
|
|
35
35
|
CollectionName["MIGRATIONS"] = "migrations";
|
|
36
36
|
CollectionName["NOTEBOOKS"] = "notebooks";
|
|
37
37
|
CollectionName["INTEGRATIONS"] = "integrations";
|
|
38
|
+
CollectionName["INTEGRATION_TEMPLATES"] = "integration-templates";
|
|
39
|
+
CollectionName["INSTALLED_INTEGRATIONS"] = "installed-integrations";
|
|
38
40
|
CollectionName["PAGES"] = "pages";
|
|
39
41
|
CollectionName["PATCH_ATTEMPTS"] = "patch-attempts";
|
|
40
42
|
CollectionName["PROFILES"] = "profiles";
|
|
@@ -787,6 +787,116 @@ export interface Integration {
|
|
|
787
787
|
} | null;
|
|
788
788
|
}
|
|
789
789
|
export type ProjectVariant = "beyond-streamlit" | "riff";
|
|
790
|
+
export interface IntegrationPackages {
|
|
791
|
+
npmPackages: {
|
|
792
|
+
dependencies: {
|
|
793
|
+
[key: string]: string;
|
|
794
|
+
};
|
|
795
|
+
devDependencies: {
|
|
796
|
+
[key: string]: string;
|
|
797
|
+
};
|
|
798
|
+
};
|
|
799
|
+
pythonPackages: {
|
|
800
|
+
app: string[];
|
|
801
|
+
dev: string[];
|
|
802
|
+
};
|
|
803
|
+
}
|
|
804
|
+
/**
|
|
805
|
+
* Pre-defined integrations. To speed up the process for the user by pre-defining auth strategy and other fields.
|
|
806
|
+
* These include OAuth connections managed by Riff.
|
|
807
|
+
*/
|
|
808
|
+
export interface IntegrationTemplate {
|
|
809
|
+
displayName: string;
|
|
810
|
+
state: "active" | "early-access" | "inactive";
|
|
811
|
+
semVerVersion: string;
|
|
812
|
+
managedBy: "riff" | "community";
|
|
813
|
+
/**
|
|
814
|
+
* Short description of the integration
|
|
815
|
+
* Ment for the user to understand what the integration does
|
|
816
|
+
*/
|
|
817
|
+
description: string;
|
|
818
|
+
provider: {
|
|
819
|
+
name: string;
|
|
820
|
+
};
|
|
821
|
+
/**
|
|
822
|
+
* Riff-oauth are integrations that use our provided Riff OAuth flow
|
|
823
|
+
* Any integration using a custom flow should have usage descriubed in the guide field
|
|
824
|
+
*/
|
|
825
|
+
authStrategy: "riff-oauth" | "oauth" | "api-key" | "custom";
|
|
826
|
+
requiredCredentials: {
|
|
827
|
+
key: string;
|
|
828
|
+
}[];
|
|
829
|
+
/**
|
|
830
|
+
* human/agent-readable notes (scopes, pagination, rate limits, usage examples). Living document. used by agent, and for debug
|
|
831
|
+
*/
|
|
832
|
+
guide: string | null;
|
|
833
|
+
/**
|
|
834
|
+
* Set of URLs for the agent to learn about how to use the integration.
|
|
835
|
+
* Quickstart is a human-friendly guide from the integration docs
|
|
836
|
+
* OpenAPI is the API spec to learn from
|
|
837
|
+
* Docs is a generic catch all for the documentation presented by the provider. e.g. docs.stripe.com
|
|
838
|
+
*/
|
|
839
|
+
documentationUrls: {
|
|
840
|
+
type: "quickstart" | "openapi" | "docs";
|
|
841
|
+
url: string;
|
|
842
|
+
}[];
|
|
843
|
+
/**
|
|
844
|
+
* The name of the Python packages needed to use the integration
|
|
845
|
+
*/
|
|
846
|
+
packages: IntegrationPackages;
|
|
847
|
+
createdBy: PerformedBy;
|
|
848
|
+
lastUpdatedBy: PerformedBy;
|
|
849
|
+
}
|
|
850
|
+
/**
|
|
851
|
+
* Integrations installed to user apps. If supported taken from AvailableIntegrations, otherwise custom.
|
|
852
|
+
* Once installed they evolve by themselves.
|
|
853
|
+
*/
|
|
854
|
+
export interface InstalledIntegration {
|
|
855
|
+
displayName: string;
|
|
856
|
+
templateSemVerVersion: string;
|
|
857
|
+
templateId: string;
|
|
858
|
+
enabled: boolean;
|
|
859
|
+
credentials: {
|
|
860
|
+
key: string;
|
|
861
|
+
ref: string;
|
|
862
|
+
}[];
|
|
863
|
+
/**
|
|
864
|
+
* Learnings are notes collected by the agent as it learns about the integration and the way a given company uses it.
|
|
865
|
+
* This should evolve over time and allow the agent to provide mroe acurate results tailored to the specific dataset.
|
|
866
|
+
* e.g. For example in intercom user_id is called external_ref
|
|
867
|
+
*/
|
|
868
|
+
learnings: string[];
|
|
869
|
+
managedBy: "riff" | "community";
|
|
870
|
+
/**
|
|
871
|
+
* Short description of the integration
|
|
872
|
+
* Ment for the user to understand what the integration does
|
|
873
|
+
*/
|
|
874
|
+
description: string;
|
|
875
|
+
provider: {
|
|
876
|
+
name: string;
|
|
877
|
+
};
|
|
878
|
+
authStrategy: "riff-oauth" | "oauth" | "api-key" | "custom";
|
|
879
|
+
/**
|
|
880
|
+
* human/agent-readable notes (scopes, pagination, rate limits, usage examples). Living document. used by agent, and for debug
|
|
881
|
+
*/
|
|
882
|
+
guide: string | null;
|
|
883
|
+
/**
|
|
884
|
+
* Set of URLs for the agent to learn about how to use the integration.
|
|
885
|
+
* Quickstart is a human-friendly guide from the integration docs
|
|
886
|
+
* OpenAPI is the API spec to learn from
|
|
887
|
+
* Docs is a generic catch all for the documentation presented by the provider. e.g. docs.stripe.com
|
|
888
|
+
*/
|
|
889
|
+
documentationUrls: {
|
|
890
|
+
type: "quickstart" | "openapi" | "docs";
|
|
891
|
+
url: string;
|
|
892
|
+
}[];
|
|
893
|
+
/**
|
|
894
|
+
* The name of the Python packages needed to use the integration
|
|
895
|
+
*/
|
|
896
|
+
packages: IntegrationPackages;
|
|
897
|
+
installedBy: PerformedBy;
|
|
898
|
+
lastUpdatedBy: PerformedBy;
|
|
899
|
+
}
|
|
790
900
|
export interface CompanyKnowledgeBase {
|
|
791
901
|
createdBy: PerformedBy;
|
|
792
902
|
lastUpdatedBy: PerformedBy;
|