Skip to content

Commit 04e02c3

Browse files
update version to 0.34.0 (#63)
1 parent 6c05a2b commit 04e02c3

3 files changed

Lines changed: 48 additions & 60 deletions

File tree

dist/api_types.ts

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -504,7 +504,7 @@ export type HasExportSettingsTrait = {
504504
export type HasGeometryTrait = MinimalFillsTrait &
505505
MinimalStrokesTrait & {
506506
/**
507-
* Map from ID to PaintOverride for looking up fill overrides. To see which regions are overriden,
507+
* Map from ID to PaintOverride for looking up fill overrides. To see which regions are overridden,
508508
* you must use the `geometry=paths` option. Each path returned may have an `overrideID` which maps
509509
* to this table.
510510
*/
@@ -2232,7 +2232,7 @@ export type BaseTypeStyle = {
22322232
/**
22332233
* Text casing applied to the node, default is the original casing.
22342234
*/
2235-
textCase?: 'UPPER' | 'LOWER' | 'TITLE' | 'SMALL_CAPS' | 'SMALL_CAPS_FORCED'
2235+
textCase?: 'ORIGINAL' | 'UPPER' | 'LOWER' | 'TITLE' | 'SMALL_CAPS' | 'SMALL_CAPS_FORCED'
22362236

22372237
/**
22382238
* Horizontal text alignment as string enum.
@@ -3960,7 +3960,7 @@ export type ActivityLogFileEntity = {
39603960
/**
39613961
* Access policy for users who have the link to the file.
39623962
*/
3963-
link_access: 'view' | 'edit' | 'org_view' | 'org_edit' | 'inherit'
3963+
link_access: LinkAccess
39643964

39653965
/**
39663966
* Access policy for users who have the link to the file's prototype.
@@ -4418,7 +4418,7 @@ export type LocalVariable = {
44184418
/**
44194419
* The resolved type of the variable.
44204420
*/
4421-
resolvedType: 'BOOLEAN' | 'FLOAT' | 'STRING' | 'COLOR'
4421+
resolvedType: VariableResolvedDataType
44224422

44234423
/**
44244424
* The values for each mode of this variable.
@@ -4531,7 +4531,7 @@ export type PublishedVariable = {
45314531
/**
45324532
* The resolved type of the variable.
45334533
*/
4534-
resolvedDataType: 'BOOLEAN' | 'FLOAT' | 'STRING' | 'COLOR'
4534+
resolvedDataType: VariableResolvedDataType
45354535

45364536
/**
45374537
* The UTC ISO 8601 time at which the variable was last updated.
@@ -4711,7 +4711,7 @@ export type VariableCreate = {
47114711
/**
47124712
* The resolved type of the variable.
47134713
*/
4714-
resolvedType: 'BOOLEAN' | 'FLOAT' | 'STRING' | 'COLOR'
4714+
resolvedType: VariableResolvedDataType
47154715

47164716
/**
47174717
* The description of this variable.
@@ -5305,6 +5305,16 @@ export type ErrorResponsePayloadWithErrorBoolean = {
53055305
message: string
53065306
}
53075307

5308+
/**
5309+
* Access policy for users who have the link to the resource.
5310+
*/
5311+
export type LinkAccess = 'view' | 'edit' | 'org_view' | 'org_edit' | 'inherit'
5312+
5313+
/**
5314+
* The role of the user making the API request in relation to the resource.
5315+
*/
5316+
export type Role = 'owner' | 'editor' | 'viewer'
5317+
53085318
/**
53095319
* Response from the GET /v1/files/{file_key} endpoint.
53105320
*/
@@ -5317,7 +5327,7 @@ export type GetFileResponse = {
53175327
/**
53185328
* The role of the user making the API request in relation to the file.
53195329
*/
5320-
role: 'owner' | 'editor' | 'viewer'
5330+
role: Role
53215331

53225332
/**
53235333
* The UTC ISO 8601 time at which the file was last modified.
@@ -5410,7 +5420,7 @@ export type GetFileNodesResponse = {
54105420
/**
54115421
* The role of the user making the API request in relation to the file.
54125422
*/
5413-
role: 'owner' | 'editor' | 'viewer'
5423+
role: Role
54145424

54155425
/**
54165426
* The UTC ISO 8601 time at which the file was last modified.
@@ -5542,12 +5552,12 @@ export type GetFileMetaResponse = {
55425552
/**
55435553
* The role of the user making the API request in relation to the file.
55445554
*/
5545-
role?: 'owner' | 'editor' | 'viewer'
5555+
role?: Role
55465556

55475557
/**
55485558
* Access policy for users who have the link to the file.
55495559
*/
5550-
link_access?: 'view' | 'edit' | 'org_view' | 'org_edit' | 'inherit'
5560+
link_access?: LinkAccess
55515561

55525562
/**
55535563
* The URL of the file.

openapi/openapi.yaml

Lines changed: 27 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
openapi: 3.1.0
22
info:
33
title: Figma API
4-
version: 0.33.0
4+
version: 0.34.0
55
description: |-
66
This is the OpenAPI specification for the [Figma REST API](https://www.figma.com/developers/api).
77
@@ -3185,7 +3185,7 @@ components:
31853185
- $ref: "#/components/schemas/PaintOverride"
31863186
- type: "null"
31873187
description: Map from ID to PaintOverride for looking up fill overrides. To see
3188-
which regions are overriden, you must use the `geometry=paths`
3188+
which regions are overridden, you must use the `geometry=paths`
31893189
option. Each path returned may have an `overrideID` which maps
31903190
to this table.
31913191
fillGeometry:
@@ -5269,6 +5269,7 @@ components:
52695269
type: string
52705270
description: Text casing applied to the node, default is the original casing.
52715271
enum:
5272+
- ORIGINAL
52725273
- UPPER
52735274
- LOWER
52745275
- TITLE
@@ -7214,14 +7215,8 @@ components:
72147215
- figma
72157216
- figjam
72167217
link_access:
7217-
type: string
7218+
$ref: "#/components/schemas/LinkAccess"
72187219
description: Access policy for users who have the link to the file.
7219-
enum:
7220-
- view
7221-
- edit
7222-
- org_view
7223-
- org_edit
7224-
- inherit
72257220
proto_link_access:
72267221
type: string
72277222
description: Access policy for users who have the link to the file's prototype.
@@ -7705,13 +7700,8 @@ components:
77057700
type: string
77067701
description: The id of the variable collection that contains this variable.
77077702
resolvedType:
7708-
type: string
7703+
$ref: "#/components/schemas/VariableResolvedDataType"
77097704
description: The resolved type of the variable.
7710-
enum:
7711-
- BOOLEAN
7712-
- FLOAT
7713-
- STRING
7714-
- COLOR
77157705
valuesByMode:
77167706
type: object
77177707
description: The values for each mode of this variable.
@@ -7816,13 +7806,8 @@ components:
78167806
type: string
78177807
description: The id of the variable collection that contains this variable.
78187808
resolvedDataType:
7819-
type: string
7809+
$ref: "#/components/schemas/VariableResolvedDataType"
78207810
description: The resolved type of the variable.
7821-
enum:
7822-
- BOOLEAN
7823-
- FLOAT
7824-
- STRING
7825-
- COLOR
78267811
updatedAt:
78277812
type: string
78287813
format: date-time
@@ -8003,13 +7988,8 @@ components:
80037988
description: The variable collection that will contain the variable. You can use
80047989
the temporary id of a variable collection.
80057990
resolvedType:
8006-
type: string
7991+
$ref: "#/components/schemas/VariableResolvedDataType"
80077992
description: The resolved type of the variable.
8008-
enum:
8009-
- BOOLEAN
8010-
- FLOAT
8011-
- STRING
8012-
- COLOR
80137993
description:
80147994
type: string
80157995
description: The description of this variable.
@@ -8529,6 +8509,22 @@ components:
85298509
- error
85308510
- status
85318511
- message
8512+
LinkAccess:
8513+
type: string
8514+
description: Access policy for users who have the link to the resource.
8515+
enum:
8516+
- view
8517+
- edit
8518+
- org_view
8519+
- org_edit
8520+
- inherit
8521+
Role:
8522+
type: string
8523+
description: The role of the user making the API request in relation to the resource.
8524+
enum:
8525+
- owner
8526+
- editor
8527+
- viewer
85328528
responses:
85338529
GetFileResponse:
85348530
description: Response from the GET /v1/files/{file_key} endpoint.
@@ -8541,11 +8537,7 @@ components:
85418537
type: string
85428538
description: The name of the file as it appears in the editor.
85438539
role:
8544-
type: string
8545-
enum:
8546-
- owner
8547-
- editor
8548-
- viewer
8540+
$ref: "#/components/schemas/Role"
85498541
description: The role of the user making the API request in relation to the
85508542
file.
85518543
lastModified:
@@ -8640,11 +8632,7 @@ components:
86408632
type: string
86418633
description: The name of the file as it appears in the editor.
86428634
role:
8643-
type: string
8644-
enum:
8645-
- owner
8646-
- editor
8647-
- viewer
8635+
$ref: "#/components/schemas/Role"
86488636
description: The role of the user making the API request in relation to the
86498637
file.
86508638
lastModified:
@@ -8798,21 +8786,11 @@ components:
87988786
- make
87998787
description: The type of editor associated with this file.
88008788
role:
8801-
type: string
8802-
enum:
8803-
- owner
8804-
- editor
8805-
- viewer
8789+
$ref: "#/components/schemas/Role"
88068790
description: The role of the user making the API request in relation to the
88078791
file.
88088792
link_access:
8809-
type: string
8810-
enum:
8811-
- view
8812-
- edit
8813-
- org_view
8814-
- org_edit
8815-
- inherit
8793+
$ref: "#/components/schemas/LinkAccess"
88168794
description: Access policy for users who have the link to the file.
88178795
url:
88188796
type: string

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@figma/rest-api-spec",
3-
"version": "0.33.0",
3+
"version": "0.34.0",
44
"description": "Typings for the Figma REST API",
55
"main": "dist/api_types.ts",
66
"repository": {

0 commit comments

Comments
 (0)