@databutton/firebase-types 1.178.0 → 1.178.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.
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { Timestamp } from "firebase/firestore";
|
|
2
2
|
import type { RunMigrationsResponse } from "../db-api.js";
|
|
3
|
-
import type { CreateNeonTransferErrorCode, CreateProjectErrorCode, CreateStackAuthTransferErrorCode, CreateTeamAccountErrorCode, MigrateToRiffErrorCode, NotificationType } from "./enums.js";
|
|
3
|
+
import type { AccountRole, CreateNeonTransferErrorCode, CreateProjectErrorCode, CreateStackAuthTransferErrorCode, CreateTeamAccountErrorCode, MigrateToRiffErrorCode, NotificationType } from "./enums.js";
|
|
4
4
|
import type { ApprovalLevel, Datafile, Dataframe, Job, Project, ProjectPermissionName, ProjectTemplate, ScheduleTarget, ScheduleWhen } from "./persisted.js";
|
|
5
5
|
export type DeleteJob = Pick<Job, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
6
6
|
export type DeleteProject = Pick<Project, "markedForDeletionAt" | "markedForDeletionBy">;
|
|
@@ -139,6 +139,58 @@ export type AdminDetachFromParentPayload = {
|
|
|
139
139
|
export type AdminDetachFromParentResult = {
|
|
140
140
|
success: boolean;
|
|
141
141
|
};
|
|
142
|
+
export type AdminEnableSsoPayload = {
|
|
143
|
+
accountId: string;
|
|
144
|
+
organizationId: string;
|
|
145
|
+
emailDomains: string[];
|
|
146
|
+
adminEmail: string;
|
|
147
|
+
connectionName: string;
|
|
148
|
+
provider: "microsoft";
|
|
149
|
+
};
|
|
150
|
+
export type AdminEnableSsoResult = {
|
|
151
|
+
success: boolean;
|
|
152
|
+
};
|
|
153
|
+
export type AdminManageWorkosExtensionPayload = {
|
|
154
|
+
projectId: string;
|
|
155
|
+
enabled: boolean;
|
|
156
|
+
removeStackAuth?: boolean;
|
|
157
|
+
upgradeWorkspace?: boolean;
|
|
158
|
+
};
|
|
159
|
+
export type AdminManageWorkosExtensionResult = {
|
|
160
|
+
success: boolean;
|
|
161
|
+
message: string;
|
|
162
|
+
};
|
|
163
|
+
export type AdminAddAccountMembersPayload = {
|
|
164
|
+
accountId: string;
|
|
165
|
+
emails: string[];
|
|
166
|
+
roles: AccountRole[];
|
|
167
|
+
};
|
|
168
|
+
export type AdminAddAccountMembersResult = {
|
|
169
|
+
added: string[];
|
|
170
|
+
alreadyMember: string[];
|
|
171
|
+
failed: {
|
|
172
|
+
email: string;
|
|
173
|
+
error: string;
|
|
174
|
+
}[];
|
|
175
|
+
};
|
|
176
|
+
export type AdminConnectApiGatewayIntegrationPayload = {
|
|
177
|
+
accountId: string;
|
|
178
|
+
label: string;
|
|
179
|
+
displayName: string;
|
|
180
|
+
gatewayProjectId: string;
|
|
181
|
+
};
|
|
182
|
+
export type AdminConnectApiGatewayIntegrationResult = {
|
|
183
|
+
success: boolean;
|
|
184
|
+
message: string;
|
|
185
|
+
};
|
|
186
|
+
export type AdminUpdateMemberRolePayload = {
|
|
187
|
+
accountId: string;
|
|
188
|
+
email: string;
|
|
189
|
+
roles: AccountRole[];
|
|
190
|
+
};
|
|
191
|
+
export type AdminUpdateMemberRoleResult = {
|
|
192
|
+
success: boolean;
|
|
193
|
+
};
|
|
142
194
|
export type AdminSearchAccountsPayload = {
|
|
143
195
|
query?: string;
|
|
144
196
|
};
|
|
@@ -181,6 +233,21 @@ export type AdminCallableRequest = {
|
|
|
181
233
|
} | {
|
|
182
234
|
action: "searchAccounts";
|
|
183
235
|
payload: AdminSearchAccountsPayload;
|
|
236
|
+
} | {
|
|
237
|
+
action: "enableSso";
|
|
238
|
+
payload: AdminEnableSsoPayload;
|
|
239
|
+
} | {
|
|
240
|
+
action: "manageWorkosExtension";
|
|
241
|
+
payload: AdminManageWorkosExtensionPayload;
|
|
242
|
+
} | {
|
|
243
|
+
action: "addAccountMembers";
|
|
244
|
+
payload: AdminAddAccountMembersPayload;
|
|
245
|
+
} | {
|
|
246
|
+
action: "connectApiGatewayIntegration";
|
|
247
|
+
payload: AdminConnectApiGatewayIntegrationPayload;
|
|
248
|
+
} | {
|
|
249
|
+
action: "updateMemberRole";
|
|
250
|
+
payload: AdminUpdateMemberRolePayload;
|
|
184
251
|
};
|
|
185
252
|
export type AdminCallableResponse = {
|
|
186
253
|
action: "addCredits";
|
|
@@ -206,6 +273,21 @@ export type AdminCallableResponse = {
|
|
|
206
273
|
} | {
|
|
207
274
|
action: "searchAccounts";
|
|
208
275
|
result: AdminSearchAccountsResult;
|
|
276
|
+
} | {
|
|
277
|
+
action: "enableSso";
|
|
278
|
+
result: AdminEnableSsoResult;
|
|
279
|
+
} | {
|
|
280
|
+
action: "manageWorkosExtension";
|
|
281
|
+
result: AdminManageWorkosExtensionResult;
|
|
282
|
+
} | {
|
|
283
|
+
action: "addAccountMembers";
|
|
284
|
+
result: AdminAddAccountMembersResult;
|
|
285
|
+
} | {
|
|
286
|
+
action: "connectApiGatewayIntegration";
|
|
287
|
+
result: AdminConnectApiGatewayIntegrationResult;
|
|
288
|
+
} | {
|
|
289
|
+
action: "updateMemberRole";
|
|
290
|
+
result: AdminUpdateMemberRoleResult;
|
|
209
291
|
};
|
|
210
292
|
export type CreateBillingPortalSessionRequest = {
|
|
211
293
|
returnUrl: string;
|