@budibase/types 2.32.1 → 2.32.3

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,4 +1,4 @@
1
- import { PermissionLevel, PlanType } from "../../../sdk";
1
+ import { PermissionLevel } from "../../../sdk";
2
2
  export interface ResourcePermissionInfo {
3
3
  role: string;
4
4
  permissionType: string;
@@ -6,7 +6,6 @@ export interface ResourcePermissionInfo {
6
6
  }
7
7
  export interface GetResourcePermsResponse {
8
8
  permissions: Record<string, ResourcePermissionInfo>;
9
- requiresPlanToModify?: PlanType;
10
9
  }
11
10
  export interface GetDependantResourcesResponse {
12
11
  resourceByType?: Record<string, number>;
@@ -1,4 +1,4 @@
1
- import { Role } from "../../documents";
1
+ import { Role, RoleUIMetadata } from "../../documents";
2
2
  export interface SaveRoleRequest {
3
3
  _id?: string;
4
4
  _rev?: string;
@@ -6,6 +6,7 @@ export interface SaveRoleRequest {
6
6
  inherits: string;
7
7
  permissionId: string;
8
8
  version: string;
9
+ uiMetadata?: RoleUIMetadata;
9
10
  }
10
11
  export interface SaveRoleResponse extends Role {
11
12
  }
@@ -113,7 +113,9 @@ export type OpenAIStepInputs = {
113
113
  };
114
114
  declare enum Model {
115
115
  GPT_35_TURBO = "gpt-3.5-turbo",
116
- GPT_4 = "gpt-4"
116
+ GPT_4 = "gpt-4",
117
+ GPT_4O = "gpt-4o",
118
+ GPT_4O_MINI = "gpt-4o-mini"
117
119
  }
118
120
  export type OpenAIStepOutputs = Omit<BaseAutomationOutputs, "response"> & {
119
121
  response?: string | null;
@@ -1,10 +1,15 @@
1
1
  import { Document } from "../document";
2
+ import { PermissionLevel } from "../../sdk";
3
+ export interface RoleUIMetadata {
4
+ displayName?: string;
5
+ color?: string;
6
+ description?: string;
7
+ }
2
8
  export interface Role extends Document {
3
9
  permissionId: string;
4
10
  inherits?: string;
5
- permissions: {
6
- [key: string]: string[];
7
- };
11
+ permissions: Record<string, PermissionLevel[]>;
8
12
  version?: string;
9
13
  name: string;
14
+ uiMetadata?: RoleUIMetadata;
10
15
  }
@@ -61,9 +61,7 @@ export declare enum UserStatus {
61
61
  ACTIVE = "active",
62
62
  INACTIVE = "inactive"
63
63
  }
64
- export interface UserRoles {
65
- [key: string]: string;
66
- }
64
+ export type UserRoles = Record<string, string>;
67
65
  export interface BuilderUser extends User {
68
66
  builder: {
69
67
  global?: boolean;