@databutton/firebase-types 1.178.0 → 1.179.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,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;
|
|
@@ -558,6 +640,7 @@ export type GenerateUsageReportResponse = {
|
|
|
558
640
|
export type InviteMemberToAccountRequest = {
|
|
559
641
|
accountId: string;
|
|
560
642
|
email: string;
|
|
643
|
+
role?: AccountRole;
|
|
561
644
|
};
|
|
562
645
|
export type InviteMemberToAccountResponse = {
|
|
563
646
|
statusCode: number;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@databutton/firebase-types",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.179.0",
|
|
4
4
|
"main": "lib/types/published/index.js",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"engines": {
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"@protobufjs/utf8": "1.1.2",
|
|
30
30
|
"@tootallnate/once": "2.0.1",
|
|
31
31
|
"node-forge": "1.4.0",
|
|
32
|
-
"fast-xml-parser": "5.11.
|
|
32
|
+
"fast-xml-parser": "5.11.1",
|
|
33
33
|
"//3": "@opentelemetry/core moderate advisory GHSA-8988-4f7v-96qf (unbounded memory allocation in W3C Baggage propagation, fixed >=2.8.0). firebase-tools>@google-cloud/pubsub pins @opentelemetry/core to the ^1.30.1 line, which never received a backport; no top-level bump resolves this. Pubsub only uses the stable W3CTraceContextPropagator class, unchanged across the 1.x/2.x split, so forcing 2.x here is safe.",
|
|
34
34
|
"@opentelemetry/core": "2.10.0",
|
|
35
35
|
"//4": "uuid moderate advisory (missing buffer bounds check, fixed >=11.1.1). firebase-tools' bundled gaxios/google-auth-library still require uuid ^9.0.1 and firebase-tools has no newer release available (latest is 15.28.2, same range). They only call the argumentless uuid.v4(), unaffected either way and stable across majors, so pinning to our own already-used 11.1.1 is safe.",
|