@gitbook/api 0.112.0 → 0.114.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.
package/dist/client.d.ts CHANGED
@@ -217,12 +217,18 @@ export interface Space {
217
217
  changeRequestsDraft: number;
218
218
  /** The set of permissions for the space */
219
219
  permissions: {
220
+ /** Can the user view the space content. */
221
+ view: boolean;
220
222
  /** Can the user access the space in the application. */
221
223
  access: boolean;
222
224
  /** Can the user edit the title, install integrations, and manage the space. */
223
225
  admin: boolean;
226
+ /** Can the user view the invite links of the space. */
227
+ viewInviteLinks: boolean;
224
228
  /** Can the user edit the content of the space by creating a change request. */
225
229
  edit: boolean;
230
+ /** Can the user trigger a git sync. */
231
+ triggerGitSync: boolean;
226
232
  /** Can the user comment on the content. */
227
233
  comment: boolean;
228
234
  /** Can the user merge change requests. */
@@ -412,6 +418,13 @@ export interface OrganizationTeam {
412
418
  spaces: number;
413
419
  /** Date at which the team was created. */
414
420
  createdAt: Timestamp;
421
+ /** The set of permissions for the team */
422
+ permissions: {
423
+ /** Can the user manage the team */
424
+ admin: boolean;
425
+ /** Can the user view the team and list its members */
426
+ view: boolean;
427
+ };
415
428
  }
416
429
  /**
417
430
  * Name of the icon
@@ -880,6 +893,10 @@ export interface DocumentBlockReusableContent {
880
893
  ref: ContentRefReusableContent;
881
894
  };
882
895
  isVoid: true;
896
+ meta?: {
897
+ /** A content token that can be used to fetch the reusable content from the API. */
898
+ token?: string;
899
+ };
883
900
  }
884
901
  export interface DocumentBlockExpandable {
885
902
  object: 'block';
@@ -1691,8 +1708,11 @@ export interface Organization {
1691
1708
  blocked?: {
1692
1709
  reason: OrganizationBlockReason;
1693
1710
  };
1694
- /** If true, the organization is on the new trial which includes sites and the Pro plan. */
1695
- internal_isOnNewTrial?: boolean;
1711
+ /**
1712
+ * Deprecated. Always true. All organizations are on new trials.
1713
+ * @deprecated
1714
+ */
1715
+ internal_isOnNewTrial?: true;
1696
1716
  internal_billingMigration?: {
1697
1717
  /** When we will upgrade the organization onto new pricing, if they haven't already. */
1698
1718
  deadline?: Timestamp;
@@ -1703,10 +1723,24 @@ export interface Organization {
1703
1723
  };
1704
1724
  /** The set of permissions for the organization */
1705
1725
  permissions: {
1726
+ /** Can the user view the organization. */
1727
+ view: boolean;
1706
1728
  /** Can the user manage the title, members, etc. */
1707
1729
  admin: boolean;
1708
- /** Can the user create new spaces/collections in the organization */
1730
+ /** Is the user a team owner. */
1731
+ ownTeam: boolean;
1732
+ /** Can the user create new spaces/collections in the organization. */
1709
1733
  createContent: boolean;
1734
+ /** Can the user create new OpenAPI specifications. */
1735
+ createOpenAPISpec: boolean;
1736
+ /** Can the user view the billing details of the organization. */
1737
+ viewBilling: boolean;
1738
+ /** Can the user list the members of the organization. */
1739
+ listMembers: boolean;
1740
+ /** Can the user list the teams in the organization. */
1741
+ listTeams: boolean;
1742
+ /** Can the user list the integrations in the organization. */
1743
+ listIntegrations: boolean;
1710
1744
  };
1711
1745
  }
1712
1746
  export interface ContentLocationRevisionContext {
@@ -1791,8 +1825,12 @@ export interface Collection {
1791
1825
  };
1792
1826
  /** The set of permissions for the collection */
1793
1827
  permissions: {
1828
+ /** Can the user view the collection. */
1829
+ view: boolean;
1794
1830
  /** Can the user edit the title/description. */
1795
1831
  admin: boolean;
1832
+ /** Can the user view the invite links of the collection. */
1833
+ viewInviteLinks: boolean;
1796
1834
  /** Can the user create spaces/collections in this collection. */
1797
1835
  create: boolean;
1798
1836
  };
@@ -1855,8 +1893,10 @@ export interface OpenAPISpec {
1855
1893
  lastProcessErrorCode?: OpenAPISpecProcessingErrorCode;
1856
1894
  /** The set of permissions for the OpenAPI specification. */
1857
1895
  permissions: {
1896
+ /** Can the user view the specification. */
1897
+ view: boolean;
1858
1898
  /** Can the user edit the specification. */
1859
- edit?: boolean;
1899
+ edit: boolean;
1860
1900
  };
1861
1901
  /** URLs associated with the object */
1862
1902
  urls: {
@@ -1992,6 +2032,17 @@ export type Comment = {
1992
2032
  */
1993
2033
  location: string;
1994
2034
  };
2035
+ /** The set of permissions for the comment */
2036
+ permissions: {
2037
+ /** Can the user view the comment. */
2038
+ view: boolean;
2039
+ /** Can the user edit the comment. */
2040
+ edit: boolean;
2041
+ /** Can the user react or send a reply to the comment. */
2042
+ reply?: boolean;
2043
+ /** Can the user delete the comment. */
2044
+ delete: boolean;
2045
+ };
1995
2046
  } & ({
1996
2047
  /** Status of the comment. */
1997
2048
  status: 'resolved';
@@ -2080,6 +2131,17 @@ export interface CommentReply {
2080
2131
  */
2081
2132
  location: string;
2082
2133
  };
2134
+ /** The set of permissions for the comment reply */
2135
+ permissions: {
2136
+ /** Can the user view the comment reply. */
2137
+ view: boolean;
2138
+ /** Can the user edit the comment reply. */
2139
+ edit: boolean;
2140
+ /** Can the user react or reply to the comment reply. */
2141
+ reply?: boolean;
2142
+ /** Can the user delete the comment reply. */
2143
+ delete: boolean;
2144
+ };
2083
2145
  }
2084
2146
  export interface PostCommentReplySchema {
2085
2147
  /** The content of the comment. */
@@ -2425,6 +2487,8 @@ export declare enum IntegrationScope {
2425
2487
  SiteScriptInject = "site:script:inject",
2426
2488
  SiteScriptCookies = "site:script:cookies",
2427
2489
  SiteVisitorAuth = "site:visitor:auth",
2490
+ SiteAdaptiveRead = "site:adaptive:read",
2491
+ SiteAdaptiveWrite = "site:adaptive:write",
2428
2492
  OpenapiRead = "openapi:read",
2429
2493
  OpenapiWrite = "openapi:write"
2430
2494
  }
@@ -2678,6 +2742,12 @@ export interface CustomField {
2678
2742
  */
2679
2743
  location: string;
2680
2744
  };
2745
+ permissions?: {
2746
+ /** Whether the user can view the object */
2747
+ view: boolean;
2748
+ /** Whether the user can edit the object */
2749
+ edit: boolean;
2750
+ };
2681
2751
  }
2682
2752
  export type CustomFieldValues = {
2683
2753
  /** Custom field */
@@ -3855,6 +3925,11 @@ export interface OrganizationTeamMember {
3855
3925
  organization: OrganizationMember;
3856
3926
  /** User information as a team member */
3857
3927
  team: TeamMember;
3928
+ /** The set of permissions for the team member */
3929
+ permissions: {
3930
+ /** Can the user view the team member */
3931
+ view: boolean;
3932
+ };
3858
3933
  }
3859
3934
  export interface UpdateMembersInOrganizationTeam {
3860
3935
  add?: string[];
@@ -3881,6 +3956,8 @@ export interface InviteLinkToCollection {
3881
3956
  id: string;
3882
3957
  /** The level of the member in the target collection */
3883
3958
  level: MemberRoleOrGuest;
3959
+ /** An invite is redundant if the requesting user already has all necessary permissions. */
3960
+ redundant: boolean;
3884
3961
  /** The collection the member has been invited to */
3885
3962
  collection: Collection;
3886
3963
  }
@@ -3892,6 +3969,8 @@ export interface InviteLinkToSpace {
3892
3969
  id: string;
3893
3970
  /** The level of the member in the target space */
3894
3971
  level: MemberRoleOrGuest;
3972
+ /** An invite is redundant if the requesting user already has all necessary permissions. */
3973
+ redundant: boolean;
3895
3974
  /** The space the member has been invited to */
3896
3975
  space: Space;
3897
3976
  }
@@ -3901,8 +3980,10 @@ export interface InviteLinkToOrganization {
3901
3980
  object: 'invite';
3902
3981
  /** Unique identifier for the invite link to the organization */
3903
3982
  id: string;
3904
- /** The role of the member in the organization */
3983
+ /** The role in the organization the invite link is for */
3905
3984
  role: MemberRoleOrGuest;
3985
+ /** An invite is redundant if the requesting user already has all necessary permissions. */
3986
+ redundant: boolean;
3906
3987
  }
3907
3988
  export interface CreateInviteToOrganization {
3908
3989
  /** The role of the member in the organization */
@@ -4191,6 +4272,11 @@ export interface OrganizationUsage {
4191
4272
  members: OrganizationUsageMembers;
4192
4273
  /** Team members usage metrics of an organization */
4193
4274
  teamMembers: OrganizationUsageTeamMembers;
4275
+ /** The set of permissions for the organization's usage. */
4276
+ permissions: {
4277
+ /** Can the user view the organization's usage. */
4278
+ view: boolean;
4279
+ };
4194
4280
  }
4195
4281
  export interface SearchAIQuery {
4196
4282
  query: string;
@@ -4285,6 +4371,8 @@ export interface TranslationSettings {
4285
4371
  /** @format date-time */
4286
4372
  updatedAt: string;
4287
4373
  permissions: {
4374
+ /** Whether the user can view the object */
4375
+ view: boolean;
4288
4376
  /** Whether the user can edit the object */
4289
4377
  edit: boolean;
4290
4378
  };
@@ -4359,7 +4447,7 @@ export interface FontFace {
4359
4447
  sources: FontSource[];
4360
4448
  }
4361
4449
  /** Defines a font family along with its various font-face declarations for use in CSS '@font-face' rules. */
4362
- export interface CustomizationFontDefinition {
4450
+ export interface CustomizationFontDefinitionInput {
4363
4451
  /** A globally unique identifier for the font definition. */
4364
4452
  id: string;
4365
4453
  /** Whether the font is a custom font. If false, this font is provided by GitBook. */
@@ -4372,6 +4460,13 @@ export interface CustomizationFontDefinition {
4372
4460
  */
4373
4461
  fontFaces: FontFace[];
4374
4462
  }
4463
+ export type CustomizationFontDefinition = CustomizationFontDefinitionInput & {
4464
+ /** The set of permissions for the font definition */
4465
+ permissions: {
4466
+ /** Can the user edit the font definition */
4467
+ edit: boolean;
4468
+ };
4469
+ };
4375
4470
  /**
4376
4471
  * The path of the file in the storage bucket
4377
4472
  * @minLength 1
@@ -4491,7 +4586,7 @@ export declare enum CustomizationDefaultFont {
4491
4586
  Poppins = "Poppins",
4492
4587
  FiraSans = "FiraSans"
4493
4588
  }
4494
- export type CustomizationFont = CustomizationDefaultFont | CustomizationFontDefinition;
4589
+ export type CustomizationFont = CustomizationDefaultFont | CustomizationFontDefinitionInput;
4495
4590
  /**
4496
4591
  * The background style has been deprecated and will be removed in a future release. Use the `tint` settings instead.
4497
4592
  * @deprecated
package/dist/index.cjs CHANGED
@@ -269,7 +269,7 @@ module.exports = __toCommonJS(src_exports);
269
269
 
270
270
  // package.json
271
271
  var name = "@gitbook/api";
272
- var version = "0.112.0";
272
+ var version = "0.114.0";
273
273
 
274
274
  // src/client.ts
275
275
  var import_event_iterator = __toESM(require_node(), 1);
@@ -617,6 +617,8 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
617
617
  IntegrationScope2["SiteScriptInject"] = "site:script:inject";
618
618
  IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
619
619
  IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
620
+ IntegrationScope2["SiteAdaptiveRead"] = "site:adaptive:read";
621
+ IntegrationScope2["SiteAdaptiveWrite"] = "site:adaptive:write";
620
622
  IntegrationScope2["OpenapiRead"] = "openapi:read";
621
623
  IntegrationScope2["OpenapiWrite"] = "openapi:write";
622
624
  return IntegrationScope2;
package/dist/index.js CHANGED
@@ -172,7 +172,7 @@ var require_node = __commonJS({
172
172
 
173
173
  // package.json
174
174
  var name = "@gitbook/api";
175
- var version = "0.112.0";
175
+ var version = "0.114.0";
176
176
 
177
177
  // src/client.ts
178
178
  var import_event_iterator = __toESM(require_node(), 1);
@@ -520,6 +520,8 @@ var IntegrationScope = /* @__PURE__ */ ((IntegrationScope2) => {
520
520
  IntegrationScope2["SiteScriptInject"] = "site:script:inject";
521
521
  IntegrationScope2["SiteScriptCookies"] = "site:script:cookies";
522
522
  IntegrationScope2["SiteVisitorAuth"] = "site:visitor:auth";
523
+ IntegrationScope2["SiteAdaptiveRead"] = "site:adaptive:read";
524
+ IntegrationScope2["SiteAdaptiveWrite"] = "site:adaptive:write";
523
525
  IntegrationScope2["OpenapiRead"] = "openapi:read";
524
526
  IntegrationScope2["OpenapiWrite"] = "openapi:write";
525
527
  return IntegrationScope2;
package/package.json CHANGED
@@ -4,7 +4,7 @@
4
4
  "main": "./dist/index.cjs",
5
5
  "module": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
7
- "version": "0.112.0",
7
+ "version": "0.114.0",
8
8
  "sideEffects": false,
9
9
  "files": [
10
10
  "README.md",
package/spec/openapi.json CHANGED
@@ -11384,7 +11384,7 @@
11384
11384
  ],
11385
11385
  "security": [
11386
11386
  {
11387
- "user-internal": []
11387
+ "user": []
11388
11388
  }
11389
11389
  ],
11390
11390
  "parameters": [
@@ -16198,6 +16198,10 @@
16198
16198
  "type": "object",
16199
16199
  "description": "The set of permissions for the space",
16200
16200
  "properties": {
16201
+ "view": {
16202
+ "type": "boolean",
16203
+ "description": "Can the user view the space content."
16204
+ },
16201
16205
  "access": {
16202
16206
  "type": "boolean",
16203
16207
  "description": "Can the user access the space in the application."
@@ -16206,10 +16210,18 @@
16206
16210
  "type": "boolean",
16207
16211
  "description": "Can the user edit the title, install integrations, and manage the space."
16208
16212
  },
16213
+ "viewInviteLinks": {
16214
+ "type": "boolean",
16215
+ "description": "Can the user view the invite links of the space."
16216
+ },
16209
16217
  "edit": {
16210
16218
  "type": "boolean",
16211
16219
  "description": "Can the user edit the content of the space by creating a change request."
16212
16220
  },
16221
+ "triggerGitSync": {
16222
+ "type": "boolean",
16223
+ "description": "Can the user trigger a git sync."
16224
+ },
16213
16225
  "comment": {
16214
16226
  "type": "boolean",
16215
16227
  "description": "Can the user comment on the content."
@@ -16224,9 +16236,12 @@
16224
16236
  }
16225
16237
  },
16226
16238
  "required": [
16239
+ "view",
16227
16240
  "access",
16228
16241
  "admin",
16242
+ "viewInviteLinks",
16229
16243
  "edit",
16244
+ "triggerGitSync",
16230
16245
  "comment",
16231
16246
  "merge",
16232
16247
  "review"
@@ -16753,6 +16768,24 @@
16753
16768
  "createdAt": {
16754
16769
  "description": "Date at which the team was created.",
16755
16770
  "$ref": "#/components/schemas/Timestamp"
16771
+ },
16772
+ "permissions": {
16773
+ "type": "object",
16774
+ "description": "The set of permissions for the team",
16775
+ "properties": {
16776
+ "admin": {
16777
+ "type": "boolean",
16778
+ "description": "Can the user manage the team"
16779
+ },
16780
+ "view": {
16781
+ "type": "boolean",
16782
+ "description": "Can the user view the team and list its members"
16783
+ }
16784
+ },
16785
+ "required": [
16786
+ "admin",
16787
+ "view"
16788
+ ]
16756
16789
  }
16757
16790
  },
16758
16791
  "required": [
@@ -16761,7 +16794,8 @@
16761
16794
  "title",
16762
16795
  "members",
16763
16796
  "spaces",
16764
- "createdAt"
16797
+ "createdAt",
16798
+ "permissions"
16765
16799
  ]
16766
16800
  },
16767
16801
  "Icon": {
@@ -19111,6 +19145,15 @@
19111
19145
  "enum": [
19112
19146
  true
19113
19147
  ]
19148
+ },
19149
+ "meta": {
19150
+ "type": "object",
19151
+ "properties": {
19152
+ "token": {
19153
+ "description": "A content token that can be used to fetch the reusable content from the API.",
19154
+ "type": "string"
19155
+ }
19156
+ }
19114
19157
  }
19115
19158
  },
19116
19159
  "required": [
@@ -22072,7 +22115,11 @@
22072
22115
  },
22073
22116
  "internal_isOnNewTrial": {
22074
22117
  "type": "boolean",
22075
- "description": "If true, the organization is on the new trial which includes sites and the Pro plan."
22118
+ "description": "Deprecated. Always true. All organizations are on new trials.",
22119
+ "deprecated": true,
22120
+ "enum": [
22121
+ true
22122
+ ]
22076
22123
  },
22077
22124
  "internal_billingMigration": {
22078
22125
  "type": "object",
@@ -22095,18 +22142,53 @@
22095
22142
  "type": "object",
22096
22143
  "description": "The set of permissions for the organization",
22097
22144
  "properties": {
22145
+ "view": {
22146
+ "type": "boolean",
22147
+ "description": "Can the user view the organization."
22148
+ },
22098
22149
  "admin": {
22099
22150
  "type": "boolean",
22100
22151
  "description": "Can the user manage the title, members, etc."
22101
22152
  },
22153
+ "ownTeam": {
22154
+ "type": "boolean",
22155
+ "description": "Is the user a team owner."
22156
+ },
22102
22157
  "createContent": {
22103
22158
  "type": "boolean",
22104
- "description": "Can the user create new spaces/collections in the organization"
22159
+ "description": "Can the user create new spaces/collections in the organization."
22160
+ },
22161
+ "createOpenAPISpec": {
22162
+ "type": "boolean",
22163
+ "description": "Can the user create new OpenAPI specifications."
22164
+ },
22165
+ "viewBilling": {
22166
+ "type": "boolean",
22167
+ "description": "Can the user view the billing details of the organization."
22168
+ },
22169
+ "listMembers": {
22170
+ "type": "boolean",
22171
+ "description": "Can the user list the members of the organization."
22172
+ },
22173
+ "listTeams": {
22174
+ "type": "boolean",
22175
+ "description": "Can the user list the teams in the organization."
22176
+ },
22177
+ "listIntegrations": {
22178
+ "type": "boolean",
22179
+ "description": "Can the user list the integrations in the organization."
22105
22180
  }
22106
22181
  },
22107
22182
  "required": [
22183
+ "view",
22108
22184
  "admin",
22109
- "createContent"
22185
+ "ownTeam",
22186
+ "createContent",
22187
+ "createOpenAPISpec",
22188
+ "viewBilling",
22189
+ "listMembers",
22190
+ "listTeams",
22191
+ "listIntegrations"
22110
22192
  ]
22111
22193
  }
22112
22194
  },
@@ -22382,17 +22464,27 @@
22382
22464
  "type": "object",
22383
22465
  "description": "The set of permissions for the collection",
22384
22466
  "properties": {
22467
+ "view": {
22468
+ "type": "boolean",
22469
+ "description": "Can the user view the collection."
22470
+ },
22385
22471
  "admin": {
22386
22472
  "type": "boolean",
22387
22473
  "description": "Can the user edit the title/description."
22388
22474
  },
22475
+ "viewInviteLinks": {
22476
+ "type": "boolean",
22477
+ "description": "Can the user view the invite links of the collection."
22478
+ },
22389
22479
  "create": {
22390
22480
  "type": "boolean",
22391
22481
  "description": "Can the user create spaces/collections in this collection."
22392
22482
  }
22393
22483
  },
22394
22484
  "required": [
22485
+ "view",
22395
22486
  "admin",
22487
+ "viewInviteLinks",
22396
22488
  "create"
22397
22489
  ]
22398
22490
  }
@@ -22555,7 +22647,16 @@
22555
22647
  "permissions": {
22556
22648
  "type": "object",
22557
22649
  "description": "The set of permissions for the OpenAPI specification.",
22650
+ "required": [
22651
+ "view",
22652
+ "delete",
22653
+ "edit"
22654
+ ],
22558
22655
  "properties": {
22656
+ "view": {
22657
+ "type": "boolean",
22658
+ "description": "Can the user view the specification."
22659
+ },
22559
22660
  "edit": {
22560
22661
  "type": "boolean",
22561
22662
  "description": "Can the user edit the specification."
@@ -22899,6 +23000,34 @@
22899
23000
  "required": [
22900
23001
  "location"
22901
23002
  ]
23003
+ },
23004
+ "permissions": {
23005
+ "type": "object",
23006
+ "description": "The set of permissions for the comment",
23007
+ "properties": {
23008
+ "view": {
23009
+ "type": "boolean",
23010
+ "description": "Can the user view the comment."
23011
+ },
23012
+ "edit": {
23013
+ "type": "boolean",
23014
+ "description": "Can the user edit the comment."
23015
+ },
23016
+ "reply": {
23017
+ "type": "boolean",
23018
+ "description": "Can the user react or send a reply to the comment."
23019
+ },
23020
+ "delete": {
23021
+ "type": "boolean",
23022
+ "description": "Can the user delete the comment."
23023
+ }
23024
+ },
23025
+ "required": [
23026
+ "view",
23027
+ "edit",
23028
+ "react",
23029
+ "delete"
23030
+ ]
22902
23031
  }
22903
23032
  },
22904
23033
  "required": [
@@ -22910,7 +23039,8 @@
22910
23039
  "postedAt",
22911
23040
  "reactions",
22912
23041
  "target",
22913
- "urls"
23042
+ "urls",
23043
+ "permissions"
22914
23044
  ]
22915
23045
  },
22916
23046
  {
@@ -23198,6 +23328,34 @@
23198
23328
  "required": [
23199
23329
  "location"
23200
23330
  ]
23331
+ },
23332
+ "permissions": {
23333
+ "type": "object",
23334
+ "description": "The set of permissions for the comment reply",
23335
+ "properties": {
23336
+ "view": {
23337
+ "type": "boolean",
23338
+ "description": "Can the user view the comment reply."
23339
+ },
23340
+ "edit": {
23341
+ "type": "boolean",
23342
+ "description": "Can the user edit the comment reply."
23343
+ },
23344
+ "reply": {
23345
+ "type": "boolean",
23346
+ "description": "Can the user react or reply to the comment reply."
23347
+ },
23348
+ "delete": {
23349
+ "type": "boolean",
23350
+ "description": "Can the user delete the comment reply."
23351
+ }
23352
+ },
23353
+ "required": [
23354
+ "view",
23355
+ "edit",
23356
+ "react",
23357
+ "delete"
23358
+ ]
23201
23359
  }
23202
23360
  },
23203
23361
  "required": [
@@ -23207,7 +23365,8 @@
23207
23365
  "postedBy",
23208
23366
  "postedAt",
23209
23367
  "reactions",
23210
- "urls"
23368
+ "urls",
23369
+ "permissions"
23211
23370
  ]
23212
23371
  },
23213
23372
  "PostCommentReplySchema": {
@@ -24274,6 +24433,8 @@
24274
24433
  "site:script:inject",
24275
24434
  "site:script:cookies",
24276
24435
  "site:visitor:auth",
24436
+ "site:adaptive:read",
24437
+ "site:adaptive:write",
24277
24438
  "openapi:read",
24278
24439
  "openapi:write"
24279
24440
  ]
@@ -24901,6 +25062,23 @@
24901
25062
  "required": [
24902
25063
  "location"
24903
25064
  ]
25065
+ },
25066
+ "permissions": {
25067
+ "type": "object",
25068
+ "properties": {
25069
+ "view": {
25070
+ "type": "boolean",
25071
+ "description": "Whether the user can view the object"
25072
+ },
25073
+ "edit": {
25074
+ "type": "boolean",
25075
+ "description": "Whether the user can edit the object"
25076
+ }
25077
+ },
25078
+ "required": [
25079
+ "view",
25080
+ "edit"
25081
+ ]
24904
25082
  }
24905
25083
  },
24906
25084
  "required": [
@@ -28621,11 +28799,25 @@
28621
28799
  "team": {
28622
28800
  "description": "User information as a team member",
28623
28801
  "$ref": "#/components/schemas/TeamMember"
28802
+ },
28803
+ "permissions": {
28804
+ "type": "object",
28805
+ "description": "The set of permissions for the team member",
28806
+ "properties": {
28807
+ "view": {
28808
+ "type": "boolean",
28809
+ "description": "Can the user view the team member"
28810
+ }
28811
+ },
28812
+ "required": [
28813
+ "view"
28814
+ ]
28624
28815
  }
28625
28816
  },
28626
28817
  "required": [
28627
28818
  "organization",
28628
- "team"
28819
+ "team",
28820
+ "permissions"
28629
28821
  ]
28630
28822
  },
28631
28823
  "UpdateMembersInOrganizationTeam": {
@@ -28715,6 +28907,10 @@
28715
28907
  "$ref": "#/components/schemas/MemberRoleOrGuest",
28716
28908
  "description": "The level of the member in the target collection"
28717
28909
  },
28910
+ "redundant": {
28911
+ "type": "boolean",
28912
+ "description": "An invite is redundant if the requesting user already has all necessary permissions."
28913
+ },
28718
28914
  "collection": {
28719
28915
  "$ref": "#/components/schemas/Collection",
28720
28916
  "description": "The collection the member has been invited to"
@@ -28725,6 +28921,7 @@
28725
28921
  "id",
28726
28922
  "target",
28727
28923
  "level",
28924
+ "redundant",
28728
28925
  "collection"
28729
28926
  ]
28730
28927
  },
@@ -28747,6 +28944,10 @@
28747
28944
  "$ref": "#/components/schemas/MemberRoleOrGuest",
28748
28945
  "description": "The level of the member in the target space"
28749
28946
  },
28947
+ "redundant": {
28948
+ "type": "boolean",
28949
+ "description": "An invite is redundant if the requesting user already has all necessary permissions."
28950
+ },
28750
28951
  "space": {
28751
28952
  "$ref": "#/components/schemas/Space",
28752
28953
  "description": "The space the member has been invited to"
@@ -28757,6 +28958,7 @@
28757
28958
  "id",
28758
28959
  "target",
28759
28960
  "level",
28961
+ "redundant",
28760
28962
  "space"
28761
28963
  ]
28762
28964
  },
@@ -28777,13 +28979,18 @@
28777
28979
  },
28778
28980
  "role": {
28779
28981
  "$ref": "#/components/schemas/MemberRoleOrGuest",
28780
- "description": "The role of the member in the organization"
28982
+ "description": "The role in the organization the invite link is for"
28983
+ },
28984
+ "redundant": {
28985
+ "type": "boolean",
28986
+ "description": "An invite is redundant if the requesting user already has all necessary permissions."
28781
28987
  }
28782
28988
  },
28783
28989
  "required": [
28784
28990
  "object",
28785
28991
  "id",
28786
- "role"
28992
+ "role",
28993
+ "redundant"
28787
28994
  ]
28788
28995
  },
28789
28996
  "CreateInviteToOrganization": {
@@ -29637,6 +29844,19 @@
29637
29844
  },
29638
29845
  "teamMembers": {
29639
29846
  "$ref": "#/components/schemas/OrganizationUsageTeamMembers"
29847
+ },
29848
+ "permissions": {
29849
+ "type": "object",
29850
+ "description": "The set of permissions for the organization's usage.",
29851
+ "required": [
29852
+ "view"
29853
+ ],
29854
+ "properties": {
29855
+ "view": {
29856
+ "type": "boolean",
29857
+ "description": "Can the user view the organization's usage."
29858
+ }
29859
+ }
29640
29860
  }
29641
29861
  },
29642
29862
  "required": [
@@ -29645,7 +29865,8 @@
29645
29865
  "sites",
29646
29866
  "teams",
29647
29867
  "members",
29648
- "teamMembers"
29868
+ "teamMembers",
29869
+ "permissions"
29649
29870
  ]
29650
29871
  },
29651
29872
  "SearchAIQuery": {
@@ -29910,12 +30131,17 @@
29910
30131
  "permissions": {
29911
30132
  "type": "object",
29912
30133
  "properties": {
30134
+ "view": {
30135
+ "type": "boolean",
30136
+ "description": "Whether the user can view the object"
30137
+ },
29913
30138
  "edit": {
29914
30139
  "type": "boolean",
29915
30140
  "description": "Whether the user can edit the object"
29916
30141
  }
29917
30142
  },
29918
30143
  "required": [
30144
+ "view",
29919
30145
  "edit"
29920
30146
  ]
29921
30147
  },
@@ -30089,7 +30315,7 @@
30089
30315
  "sources"
30090
30316
  ]
30091
30317
  },
30092
- "CustomizationFontDefinition": {
30318
+ "CustomizationFontDefinitionInput": {
30093
30319
  "type": "object",
30094
30320
  "description": "Defines a font family along with its various font-face declarations for use in CSS '@font-face' rules.",
30095
30321
  "properties": {
@@ -30120,6 +30346,34 @@
30120
30346
  "fontFaces"
30121
30347
  ]
30122
30348
  },
30349
+ "CustomizationFontDefinition": {
30350
+ "allOf": [
30351
+ {
30352
+ "$ref": "#/components/schemas/CustomizationFontDefinitionInput"
30353
+ },
30354
+ {
30355
+ "type": "object",
30356
+ "properties": {
30357
+ "permissions": {
30358
+ "type": "object",
30359
+ "description": "The set of permissions for the font definition",
30360
+ "properties": {
30361
+ "edit": {
30362
+ "type": "boolean",
30363
+ "description": "Can the user edit the font definition"
30364
+ }
30365
+ },
30366
+ "required": [
30367
+ "edit"
30368
+ ]
30369
+ }
30370
+ },
30371
+ "required": [
30372
+ "permissions"
30373
+ ]
30374
+ }
30375
+ ]
30376
+ },
30123
30377
  "StorageFileKey": {
30124
30378
  "type": "string",
30125
30379
  "description": "The path of the file in the storage bucket",
@@ -30518,7 +30772,7 @@
30518
30772
  "$ref": "#/components/schemas/CustomizationDefaultFont"
30519
30773
  },
30520
30774
  {
30521
- "$ref": "#/components/schemas/CustomizationFontDefinition"
30775
+ "$ref": "#/components/schemas/CustomizationFontDefinitionInput"
30522
30776
  }
30523
30777
  ]
30524
30778
  },
package/spec/openapi.yaml CHANGED
@@ -6470,7 +6470,7 @@ paths:
6470
6470
  tags:
6471
6471
  - sites
6472
6472
  security:
6473
- - user-internal: []
6473
+ - user: []
6474
6474
  parameters:
6475
6475
  - $ref: "#/components/parameters/organizationId"
6476
6476
  - $ref: "#/components/parameters/siteId"
@@ -9344,15 +9344,24 @@ components:
9344
9344
  type: object
9345
9345
  description: The set of permissions for the space
9346
9346
  properties:
9347
+ view:
9348
+ type: boolean
9349
+ description: Can the user view the space content.
9347
9350
  access:
9348
9351
  type: boolean
9349
9352
  description: Can the user access the space in the application.
9350
9353
  admin:
9351
9354
  type: boolean
9352
9355
  description: Can the user edit the title, install integrations, and manage the space.
9356
+ viewInviteLinks:
9357
+ type: boolean
9358
+ description: Can the user view the invite links of the space.
9353
9359
  edit:
9354
9360
  type: boolean
9355
9361
  description: Can the user edit the content of the space by creating a change request.
9362
+ triggerGitSync:
9363
+ type: boolean
9364
+ description: Can the user trigger a git sync.
9356
9365
  comment:
9357
9366
  type: boolean
9358
9367
  description: Can the user comment on the content.
@@ -9363,9 +9372,12 @@ components:
9363
9372
  type: boolean
9364
9373
  description: Can the user review change requests.
9365
9374
  required:
9375
+ - view
9366
9376
  - access
9367
9377
  - admin
9378
+ - viewInviteLinks
9368
9379
  - edit
9380
+ - triggerGitSync
9369
9381
  - comment
9370
9382
  - merge
9371
9383
  - review
@@ -9729,6 +9741,19 @@ components:
9729
9741
  createdAt:
9730
9742
  description: Date at which the team was created.
9731
9743
  $ref: "#/components/schemas/Timestamp"
9744
+ permissions:
9745
+ type: object
9746
+ description: The set of permissions for the team
9747
+ properties:
9748
+ admin:
9749
+ type: boolean
9750
+ description: Can the user manage the team
9751
+ view:
9752
+ type: boolean
9753
+ description: Can the user view the team and list its members
9754
+ required:
9755
+ - admin
9756
+ - view
9732
9757
  required:
9733
9758
  - object
9734
9759
  - id
@@ -9736,6 +9761,7 @@ components:
9736
9761
  - members
9737
9762
  - spaces
9738
9763
  - createdAt
9764
+ - permissions
9739
9765
  Icon:
9740
9766
  type: string
9741
9767
  maxLength: 50
@@ -11226,6 +11252,12 @@ components:
11226
11252
  type: boolean
11227
11253
  enum:
11228
11254
  - true
11255
+ meta:
11256
+ type: object
11257
+ properties:
11258
+ token:
11259
+ description: A content token that can be used to fetch the reusable content from the API.
11260
+ type: string
11229
11261
  required:
11230
11262
  - object
11231
11263
  - type
@@ -13085,7 +13117,10 @@ components:
13085
13117
  - reason
13086
13118
  internal_isOnNewTrial:
13087
13119
  type: boolean
13088
- description: If true, the organization is on the new trial which includes sites and the Pro plan.
13120
+ description: Deprecated. Always true. All organizations are on new trials.
13121
+ deprecated: true
13122
+ enum:
13123
+ - true
13089
13124
  internal_billingMigration:
13090
13125
  type: object
13091
13126
  properties:
@@ -13102,15 +13137,43 @@ components:
13102
13137
  type: object
13103
13138
  description: The set of permissions for the organization
13104
13139
  properties:
13140
+ view:
13141
+ type: boolean
13142
+ description: Can the user view the organization.
13105
13143
  admin:
13106
13144
  type: boolean
13107
13145
  description: Can the user manage the title, members, etc.
13146
+ ownTeam:
13147
+ type: boolean
13148
+ description: Is the user a team owner.
13108
13149
  createContent:
13109
13150
  type: boolean
13110
- description: Can the user create new spaces/collections in the organization
13151
+ description: Can the user create new spaces/collections in the organization.
13152
+ createOpenAPISpec:
13153
+ type: boolean
13154
+ description: Can the user create new OpenAPI specifications.
13155
+ viewBilling:
13156
+ type: boolean
13157
+ description: Can the user view the billing details of the organization.
13158
+ listMembers:
13159
+ type: boolean
13160
+ description: Can the user list the members of the organization.
13161
+ listTeams:
13162
+ type: boolean
13163
+ description: Can the user list the teams in the organization.
13164
+ listIntegrations:
13165
+ type: boolean
13166
+ description: Can the user list the integrations in the organization.
13111
13167
  required:
13168
+ - view
13112
13169
  - admin
13170
+ - ownTeam
13113
13171
  - createContent
13172
+ - createOpenAPISpec
13173
+ - viewBilling
13174
+ - listMembers
13175
+ - listTeams
13176
+ - listIntegrations
13114
13177
  required:
13115
13178
  - object
13116
13179
  - id
@@ -13296,14 +13359,22 @@ components:
13296
13359
  type: object
13297
13360
  description: The set of permissions for the collection
13298
13361
  properties:
13362
+ view:
13363
+ type: boolean
13364
+ description: Can the user view the collection.
13299
13365
  admin:
13300
13366
  type: boolean
13301
13367
  description: Can the user edit the title/description.
13368
+ viewInviteLinks:
13369
+ type: boolean
13370
+ description: Can the user view the invite links of the collection.
13302
13371
  create:
13303
13372
  type: boolean
13304
13373
  description: Can the user create spaces/collections in this collection.
13305
13374
  required:
13375
+ - view
13306
13376
  - admin
13377
+ - viewInviteLinks
13307
13378
  - create
13308
13379
  required:
13309
13380
  - object
@@ -13417,7 +13488,14 @@ components:
13417
13488
  permissions:
13418
13489
  type: object
13419
13490
  description: The set of permissions for the OpenAPI specification.
13491
+ required:
13492
+ - view
13493
+ - delete
13494
+ - edit
13420
13495
  properties:
13496
+ view:
13497
+ type: boolean
13498
+ description: Can the user view the specification.
13421
13499
  edit:
13422
13500
  type: boolean
13423
13501
  description: Can the user edit the specification.
@@ -13657,6 +13735,27 @@ components:
13657
13735
  format: uri
13658
13736
  required:
13659
13737
  - location
13738
+ permissions:
13739
+ type: object
13740
+ description: The set of permissions for the comment
13741
+ properties:
13742
+ view:
13743
+ type: boolean
13744
+ description: Can the user view the comment.
13745
+ edit:
13746
+ type: boolean
13747
+ description: Can the user edit the comment.
13748
+ reply:
13749
+ type: boolean
13750
+ description: Can the user react or send a reply to the comment.
13751
+ delete:
13752
+ type: boolean
13753
+ description: Can the user delete the comment.
13754
+ required:
13755
+ - view
13756
+ - edit
13757
+ - react
13758
+ - delete
13660
13759
  required:
13661
13760
  - object
13662
13761
  - id
@@ -13667,6 +13766,7 @@ components:
13667
13766
  - reactions
13668
13767
  - target
13669
13768
  - urls
13769
+ - permissions
13670
13770
  - oneOf:
13671
13771
  - type: object
13672
13772
  title: Resolved
@@ -13861,6 +13961,27 @@ components:
13861
13961
  format: uri
13862
13962
  required:
13863
13963
  - location
13964
+ permissions:
13965
+ type: object
13966
+ description: The set of permissions for the comment reply
13967
+ properties:
13968
+ view:
13969
+ type: boolean
13970
+ description: Can the user view the comment reply.
13971
+ edit:
13972
+ type: boolean
13973
+ description: Can the user edit the comment reply.
13974
+ reply:
13975
+ type: boolean
13976
+ description: Can the user react or reply to the comment reply.
13977
+ delete:
13978
+ type: boolean
13979
+ description: Can the user delete the comment reply.
13980
+ required:
13981
+ - view
13982
+ - edit
13983
+ - react
13984
+ - delete
13864
13985
  required:
13865
13986
  - object
13866
13987
  - id
@@ -13869,6 +13990,7 @@ components:
13869
13990
  - postedAt
13870
13991
  - reactions
13871
13992
  - urls
13993
+ - permissions
13872
13994
  PostCommentReplySchema:
13873
13995
  type: object
13874
13996
  properties:
@@ -14577,6 +14699,8 @@ components:
14577
14699
  - site:script:inject
14578
14700
  - site:script:cookies
14579
14701
  - site:visitor:auth
14702
+ - site:adaptive:read
14703
+ - site:adaptive:write
14580
14704
  - openapi:read
14581
14705
  - openapi:write
14582
14706
  IntegrationScopes:
@@ -15011,6 +15135,18 @@ components:
15011
15135
  format: uri
15012
15136
  required:
15013
15137
  - location
15138
+ permissions:
15139
+ type: object
15140
+ properties:
15141
+ view:
15142
+ type: boolean
15143
+ description: Whether the user can view the object
15144
+ edit:
15145
+ type: boolean
15146
+ description: Whether the user can edit the object
15147
+ required:
15148
+ - view
15149
+ - edit
15014
15150
  required:
15015
15151
  - id
15016
15152
  - name
@@ -17422,9 +17558,19 @@ components:
17422
17558
  team:
17423
17559
  description: User information as a team member
17424
17560
  $ref: "#/components/schemas/TeamMember"
17561
+ permissions:
17562
+ type: object
17563
+ description: The set of permissions for the team member
17564
+ properties:
17565
+ view:
17566
+ type: boolean
17567
+ description: Can the user view the team member
17568
+ required:
17569
+ - view
17425
17570
  required:
17426
17571
  - organization
17427
17572
  - team
17573
+ - permissions
17428
17574
  UpdateMembersInOrganizationTeam:
17429
17575
  type: object
17430
17576
  properties:
@@ -17484,6 +17630,9 @@ components:
17484
17630
  level:
17485
17631
  $ref: "#/components/schemas/MemberRoleOrGuest"
17486
17632
  description: The level of the member in the target collection
17633
+ redundant:
17634
+ type: boolean
17635
+ description: An invite is redundant if the requesting user already has all necessary permissions.
17487
17636
  collection:
17488
17637
  $ref: "#/components/schemas/Collection"
17489
17638
  description: The collection the member has been invited to
@@ -17492,6 +17641,7 @@ components:
17492
17641
  - id
17493
17642
  - target
17494
17643
  - level
17644
+ - redundant
17495
17645
  - collection
17496
17646
  InviteLinkToSpace:
17497
17647
  type: object
@@ -17508,6 +17658,9 @@ components:
17508
17658
  level:
17509
17659
  $ref: "#/components/schemas/MemberRoleOrGuest"
17510
17660
  description: The level of the member in the target space
17661
+ redundant:
17662
+ type: boolean
17663
+ description: An invite is redundant if the requesting user already has all necessary permissions.
17511
17664
  space:
17512
17665
  $ref: "#/components/schemas/Space"
17513
17666
  description: The space the member has been invited to
@@ -17516,6 +17669,7 @@ components:
17516
17669
  - id
17517
17670
  - target
17518
17671
  - level
17672
+ - redundant
17519
17673
  - space
17520
17674
  InviteLinkToOrganization:
17521
17675
  type: object
@@ -17531,11 +17685,15 @@ components:
17531
17685
  description: Unique identifier for the invite link to the organization
17532
17686
  role:
17533
17687
  $ref: "#/components/schemas/MemberRoleOrGuest"
17534
- description: The role of the member in the organization
17688
+ description: The role in the organization the invite link is for
17689
+ redundant:
17690
+ type: boolean
17691
+ description: An invite is redundant if the requesting user already has all necessary permissions.
17535
17692
  required:
17536
17693
  - object
17537
17694
  - id
17538
17695
  - role
17696
+ - redundant
17539
17697
  CreateInviteToOrganization:
17540
17698
  type: object
17541
17699
  properties:
@@ -18122,6 +18280,15 @@ components:
18122
18280
  $ref: "#/components/schemas/OrganizationUsageMembers"
18123
18281
  teamMembers:
18124
18282
  $ref: "#/components/schemas/OrganizationUsageTeamMembers"
18283
+ permissions:
18284
+ type: object
18285
+ description: The set of permissions for the organization's usage.
18286
+ required:
18287
+ - view
18288
+ properties:
18289
+ view:
18290
+ type: boolean
18291
+ description: Can the user view the organization's usage.
18125
18292
  required:
18126
18293
  - spaces
18127
18294
  - collections
@@ -18129,6 +18296,7 @@ components:
18129
18296
  - teams
18130
18297
  - members
18131
18298
  - teamMembers
18299
+ - permissions
18132
18300
  SearchAIQuery:
18133
18301
  type: object
18134
18302
  properties:
@@ -18313,10 +18481,14 @@ components:
18313
18481
  permissions:
18314
18482
  type: object
18315
18483
  properties:
18484
+ view:
18485
+ type: boolean
18486
+ description: Whether the user can view the object
18316
18487
  edit:
18317
18488
  type: boolean
18318
18489
  description: Whether the user can edit the object
18319
18490
  required:
18491
+ - view
18320
18492
  - edit
18321
18493
  urls:
18322
18494
  type: object
@@ -18441,7 +18613,7 @@ components:
18441
18613
  required:
18442
18614
  - weight
18443
18615
  - sources
18444
- CustomizationFontDefinition:
18616
+ CustomizationFontDefinitionInput:
18445
18617
  type: object
18446
18618
  description: Defines a font family along with its various font-face declarations for use in CSS '@font-face' rules.
18447
18619
  properties:
@@ -18464,6 +18636,22 @@ components:
18464
18636
  - custom
18465
18637
  - fontFamily
18466
18638
  - fontFaces
18639
+ CustomizationFontDefinition:
18640
+ allOf:
18641
+ - $ref: "#/components/schemas/CustomizationFontDefinitionInput"
18642
+ - type: object
18643
+ properties:
18644
+ permissions:
18645
+ type: object
18646
+ description: The set of permissions for the font definition
18647
+ properties:
18648
+ edit:
18649
+ type: boolean
18650
+ description: Can the user edit the font definition
18651
+ required:
18652
+ - edit
18653
+ required:
18654
+ - permissions
18467
18655
  StorageFileKey:
18468
18656
  type: string
18469
18657
  description: The path of the file in the storage bucket
@@ -18739,7 +18927,7 @@ components:
18739
18927
  CustomizationFont:
18740
18928
  oneOf:
18741
18929
  - $ref: "#/components/schemas/CustomizationDefaultFont"
18742
- - $ref: "#/components/schemas/CustomizationFontDefinition"
18930
+ - $ref: "#/components/schemas/CustomizationFontDefinitionInput"
18743
18931
  CustomizationBackground:
18744
18932
  type: string
18745
18933
  enum: