@databutton/firebase-types 1.103.0 → 1.105.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.
|
@@ -71,11 +71,13 @@ export interface Account {
|
|
|
71
71
|
customInstructions?: string;
|
|
72
72
|
/**
|
|
73
73
|
* Identifier for the special account wide project for knowledgebase
|
|
74
|
+
* @deprecated This field is being deprecated in favor of userAccountLevelProjectIds with a special key for the knowledge base project, to allow multiple special projects per account in the future
|
|
74
75
|
*/
|
|
75
76
|
knowledgeBaseProjectId?: string;
|
|
76
77
|
/**
|
|
77
78
|
* For each member of an account we spin up a special project that is used by them to have access to devx
|
|
78
79
|
* when talking to an account wide agent (knowledgebase etc.). These should be hidden from users by default.
|
|
80
|
+
* Format is: <userID, projectID>
|
|
79
81
|
*/
|
|
80
82
|
userAccountLevelProjectIds: Record<string, string>;
|
|
81
83
|
}
|
|
@@ -1236,6 +1238,13 @@ export type RiffMigrationState<T> = {
|
|
|
1236
1238
|
failedAt: Timestamp | null;
|
|
1237
1239
|
data?: T;
|
|
1238
1240
|
};
|
|
1241
|
+
/**
|
|
1242
|
+
* SpecialProjectType allows for classification of projects that behave differently from a general Riff project.
|
|
1243
|
+
* For example the agentProject is hidden from the user, but is used to provide a account wide devx and agent environment to a user in the account context
|
|
1244
|
+
*/
|
|
1245
|
+
export declare enum SpecialProjectType {
|
|
1246
|
+
AGENT_PROJECT = "agentProject"
|
|
1247
|
+
}
|
|
1239
1248
|
export interface Project {
|
|
1240
1249
|
createdAt: Timestamp;
|
|
1241
1250
|
createdBy?: PerformedBy;
|
|
@@ -1245,8 +1254,13 @@ export interface Project {
|
|
|
1245
1254
|
/**
|
|
1246
1255
|
* Identifier for special projects that should be hidden from the user when in use for the knowledgebase feature
|
|
1247
1256
|
* TODO: replace with a different name
|
|
1257
|
+
* @deprecated Replaced by isAccountLevelUserProject, but kept for backwards compatibility with old projects
|
|
1248
1258
|
*/
|
|
1249
1259
|
isAccountKnowledgeProject?: boolean;
|
|
1260
|
+
/**
|
|
1261
|
+
* specialType is used when the project should behave differently to a normal project. It is optional on purpose to allow for easier filtering.
|
|
1262
|
+
*/
|
|
1263
|
+
specialType?: SpecialProjectType;
|
|
1250
1264
|
migratedFromDatabutton?: boolean;
|
|
1251
1265
|
migrationFromDatabutton?: "started" | "complete" | "failed";
|
|
1252
1266
|
startingPrompt?: string | null;
|
|
@@ -62,6 +62,14 @@ export var ProjectExtension;
|
|
|
62
62
|
ProjectExtension["MCP"] = "mcp";
|
|
63
63
|
ProjectExtension["POSTHOG"] = "posthog";
|
|
64
64
|
})(ProjectExtension || (ProjectExtension = {}));
|
|
65
|
+
/**
|
|
66
|
+
* SpecialProjectType allows for classification of projects that behave differently from a general Riff project.
|
|
67
|
+
* For example the agentProject is hidden from the user, but is used to provide a account wide devx and agent environment to a user in the account context
|
|
68
|
+
*/
|
|
69
|
+
export var SpecialProjectType;
|
|
70
|
+
(function (SpecialProjectType) {
|
|
71
|
+
SpecialProjectType["AGENT_PROJECT"] = "agentProject";
|
|
72
|
+
})(SpecialProjectType || (SpecialProjectType = {}));
|
|
65
73
|
/**
|
|
66
74
|
* Taken from AWS types
|
|
67
75
|
*/
|
|
@@ -471,4 +471,14 @@ export type CreateKnowledgeBaseProjectResponse = {
|
|
|
471
471
|
errorCode: string;
|
|
472
472
|
errorMessage?: string;
|
|
473
473
|
};
|
|
474
|
+
export type LinkKnowledgeBaseIntegrationsRequest = {
|
|
475
|
+
accountId: string;
|
|
476
|
+
};
|
|
477
|
+
export type LinkKnowledgeBaseIntegrationsResponse = {
|
|
478
|
+
success: true;
|
|
479
|
+
} | {
|
|
480
|
+
success: false;
|
|
481
|
+
errorCode: string;
|
|
482
|
+
errorMessage?: string;
|
|
483
|
+
};
|
|
474
484
|
export {};
|