From ff1e5ff138d590e51976c9f35e0ffec1c4f3ad0e Mon Sep 17 00:00:00 2001 From: Alex Hurtado Date: Mon, 29 Sep 2025 13:52:57 -0400 Subject: [PATCH] update version to 0.34.0 --- dist/api_types.ts | 30 +++++++++++------ openapi/openapi.yaml | 76 ++++++++++++++++---------------------------- package.json | 2 +- 3 files changed, 48 insertions(+), 60 deletions(-) diff --git a/dist/api_types.ts b/dist/api_types.ts index 67b354b..9af5f17 100644 --- a/dist/api_types.ts +++ b/dist/api_types.ts @@ -504,7 +504,7 @@ export type HasExportSettingsTrait = { export type HasGeometryTrait = MinimalFillsTrait & MinimalStrokesTrait & { /** - * Map from ID to PaintOverride for looking up fill overrides. To see which regions are overriden, + * Map from ID to PaintOverride for looking up fill overrides. To see which regions are overridden, * you must use the `geometry=paths` option. Each path returned may have an `overrideID` which maps * to this table. */ @@ -2232,7 +2232,7 @@ export type BaseTypeStyle = { /** * Text casing applied to the node, default is the original casing. */ - textCase?: 'UPPER' | 'LOWER' | 'TITLE' | 'SMALL_CAPS' | 'SMALL_CAPS_FORCED' + textCase?: 'ORIGINAL' | 'UPPER' | 'LOWER' | 'TITLE' | 'SMALL_CAPS' | 'SMALL_CAPS_FORCED' /** * Horizontal text alignment as string enum. @@ -3960,7 +3960,7 @@ export type ActivityLogFileEntity = { /** * Access policy for users who have the link to the file. */ - link_access: 'view' | 'edit' | 'org_view' | 'org_edit' | 'inherit' + link_access: LinkAccess /** * Access policy for users who have the link to the file's prototype. @@ -4418,7 +4418,7 @@ export type LocalVariable = { /** * The resolved type of the variable. */ - resolvedType: 'BOOLEAN' | 'FLOAT' | 'STRING' | 'COLOR' + resolvedType: VariableResolvedDataType /** * The values for each mode of this variable. @@ -4531,7 +4531,7 @@ export type PublishedVariable = { /** * The resolved type of the variable. */ - resolvedDataType: 'BOOLEAN' | 'FLOAT' | 'STRING' | 'COLOR' + resolvedDataType: VariableResolvedDataType /** * The UTC ISO 8601 time at which the variable was last updated. @@ -4711,7 +4711,7 @@ export type VariableCreate = { /** * The resolved type of the variable. */ - resolvedType: 'BOOLEAN' | 'FLOAT' | 'STRING' | 'COLOR' + resolvedType: VariableResolvedDataType /** * The description of this variable. @@ -5305,6 +5305,16 @@ export type ErrorResponsePayloadWithErrorBoolean = { message: string } +/** + * Access policy for users who have the link to the resource. + */ +export type LinkAccess = 'view' | 'edit' | 'org_view' | 'org_edit' | 'inherit' + +/** + * The role of the user making the API request in relation to the resource. + */ +export type Role = 'owner' | 'editor' | 'viewer' + /** * Response from the GET /v1/files/{file_key} endpoint. */ @@ -5317,7 +5327,7 @@ export type GetFileResponse = { /** * The role of the user making the API request in relation to the file. */ - role: 'owner' | 'editor' | 'viewer' + role: Role /** * The UTC ISO 8601 time at which the file was last modified. @@ -5410,7 +5420,7 @@ export type GetFileNodesResponse = { /** * The role of the user making the API request in relation to the file. */ - role: 'owner' | 'editor' | 'viewer' + role: Role /** * The UTC ISO 8601 time at which the file was last modified. @@ -5542,12 +5552,12 @@ export type GetFileMetaResponse = { /** * The role of the user making the API request in relation to the file. */ - role?: 'owner' | 'editor' | 'viewer' + role?: Role /** * Access policy for users who have the link to the file. */ - link_access?: 'view' | 'edit' | 'org_view' | 'org_edit' | 'inherit' + link_access?: LinkAccess /** * The URL of the file. diff --git a/openapi/openapi.yaml b/openapi/openapi.yaml index bb0b0b2..8e49ea6 100644 --- a/openapi/openapi.yaml +++ b/openapi/openapi.yaml @@ -1,7 +1,7 @@ openapi: 3.1.0 info: title: Figma API - version: 0.33.0 + version: 0.34.0 description: |- This is the OpenAPI specification for the [Figma REST API](https://www.figma.com/developers/api). @@ -3185,7 +3185,7 @@ components: - $ref: "#/components/schemas/PaintOverride" - type: "null" description: Map from ID to PaintOverride for looking up fill overrides. To see - which regions are overriden, you must use the `geometry=paths` + which regions are overridden, you must use the `geometry=paths` option. Each path returned may have an `overrideID` which maps to this table. fillGeometry: @@ -5269,6 +5269,7 @@ components: type: string description: Text casing applied to the node, default is the original casing. enum: + - ORIGINAL - UPPER - LOWER - TITLE @@ -7214,14 +7215,8 @@ components: - figma - figjam link_access: - type: string + $ref: "#/components/schemas/LinkAccess" description: Access policy for users who have the link to the file. - enum: - - view - - edit - - org_view - - org_edit - - inherit proto_link_access: type: string description: Access policy for users who have the link to the file's prototype. @@ -7705,13 +7700,8 @@ components: type: string description: The id of the variable collection that contains this variable. resolvedType: - type: string + $ref: "#/components/schemas/VariableResolvedDataType" description: The resolved type of the variable. - enum: - - BOOLEAN - - FLOAT - - STRING - - COLOR valuesByMode: type: object description: The values for each mode of this variable. @@ -7816,13 +7806,8 @@ components: type: string description: The id of the variable collection that contains this variable. resolvedDataType: - type: string + $ref: "#/components/schemas/VariableResolvedDataType" description: The resolved type of the variable. - enum: - - BOOLEAN - - FLOAT - - STRING - - COLOR updatedAt: type: string format: date-time @@ -8003,13 +7988,8 @@ components: description: The variable collection that will contain the variable. You can use the temporary id of a variable collection. resolvedType: - type: string + $ref: "#/components/schemas/VariableResolvedDataType" description: The resolved type of the variable. - enum: - - BOOLEAN - - FLOAT - - STRING - - COLOR description: type: string description: The description of this variable. @@ -8529,6 +8509,22 @@ components: - error - status - message + LinkAccess: + type: string + description: Access policy for users who have the link to the resource. + enum: + - view + - edit + - org_view + - org_edit + - inherit + Role: + type: string + description: The role of the user making the API request in relation to the resource. + enum: + - owner + - editor + - viewer responses: GetFileResponse: description: Response from the GET /v1/files/{file_key} endpoint. @@ -8541,11 +8537,7 @@ components: type: string description: The name of the file as it appears in the editor. role: - type: string - enum: - - owner - - editor - - viewer + $ref: "#/components/schemas/Role" description: The role of the user making the API request in relation to the file. lastModified: @@ -8640,11 +8632,7 @@ components: type: string description: The name of the file as it appears in the editor. role: - type: string - enum: - - owner - - editor - - viewer + $ref: "#/components/schemas/Role" description: The role of the user making the API request in relation to the file. lastModified: @@ -8798,21 +8786,11 @@ components: - make description: The type of editor associated with this file. role: - type: string - enum: - - owner - - editor - - viewer + $ref: "#/components/schemas/Role" description: The role of the user making the API request in relation to the file. link_access: - type: string - enum: - - view - - edit - - org_view - - org_edit - - inherit + $ref: "#/components/schemas/LinkAccess" description: Access policy for users who have the link to the file. url: type: string diff --git a/package.json b/package.json index 8816e6e..2fcc929 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "@figma/rest-api-spec", - "version": "0.33.0", + "version": "0.34.0", "description": "Typings for the Figma REST API", "main": "dist/api_types.ts", "repository": {