@gitbook/api 0.111.0 → 0.112.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/spec/openapi.json CHANGED
@@ -6323,6 +6323,78 @@
6323
6323
  }
6324
6324
  }
6325
6325
  },
6326
+ "/integrations/{integrationName}/sites": {
6327
+ "get": {
6328
+ "operationId": "listIntegrationSiteInstallations",
6329
+ "summary": "List all integration site installations",
6330
+ "tags": [
6331
+ "integrations"
6332
+ ],
6333
+ "security": [
6334
+ {
6335
+ "integration": []
6336
+ }
6337
+ ],
6338
+ "parameters": [
6339
+ {
6340
+ "$ref": "#/components/parameters/integrationName"
6341
+ },
6342
+ {
6343
+ "$ref": "#/components/parameters/listPage"
6344
+ },
6345
+ {
6346
+ "$ref": "#/components/parameters/listLimit"
6347
+ },
6348
+ {
6349
+ "name": "externalId",
6350
+ "in": "query",
6351
+ "description": "External ID to filter by",
6352
+ "schema": {
6353
+ "type": "string"
6354
+ }
6355
+ },
6356
+ {
6357
+ "name": "extended",
6358
+ "in": "query",
6359
+ "description": "If true, returns the site object in each items. If false, returns the site ID in each items.",
6360
+ "schema": {
6361
+ "type": "boolean",
6362
+ "default": false
6363
+ }
6364
+ }
6365
+ ],
6366
+ "responses": {
6367
+ "200": {
6368
+ "description": "OK",
6369
+ "content": {
6370
+ "application/json": {
6371
+ "schema": {
6372
+ "allOf": [
6373
+ {
6374
+ "$ref": "#/components/schemas/List"
6375
+ },
6376
+ {
6377
+ "type": "object",
6378
+ "required": [
6379
+ "items"
6380
+ ],
6381
+ "properties": {
6382
+ "items": {
6383
+ "type": "array",
6384
+ "items": {
6385
+ "$ref": "#/components/schemas/IntegrationSiteInstallation"
6386
+ }
6387
+ }
6388
+ }
6389
+ }
6390
+ ]
6391
+ }
6392
+ }
6393
+ }
6394
+ }
6395
+ }
6396
+ }
6397
+ },
6326
6398
  "/integrations/{integrationName}/dev": {
6327
6399
  "put": {
6328
6400
  "operationId": "setIntegrationDevelopmentMode",
@@ -17243,6 +17315,10 @@
17243
17315
  },
17244
17316
  "reusableContent": {
17245
17317
  "type": "string"
17318
+ },
17319
+ "space": {
17320
+ "type": "string",
17321
+ "description": "The space in which the reusable content is defined. If undefined, the reusable content is assumed to be in the same space as the content reference."
17246
17322
  }
17247
17323
  },
17248
17324
  "required": [
@@ -26319,529 +26395,645 @@
26319
26395
  }
26320
26396
  ]
26321
26397
  },
26322
- "ContentKitIcon": {
26398
+ "SiteType": {
26323
26399
  "type": "string",
26400
+ "description": "The type of the site",
26324
26401
  "enum": [
26325
- "close",
26326
- "edit",
26327
- "github",
26328
- "gitlab",
26329
- "maximize",
26330
- "email",
26331
- "settings",
26332
- "search",
26333
- "delete",
26334
- "star",
26335
- "warning",
26336
- "link",
26337
- "link-external",
26338
- "eye",
26339
- "lock"
26402
+ "basic",
26403
+ "premium",
26404
+ "ultimate",
26405
+ "sponsored",
26406
+ "legacy-basic",
26407
+ "legacy-premium"
26340
26408
  ]
26341
26409
  },
26342
- "ContentKitConfirm": {
26410
+ "SiteTitle": {
26411
+ "type": "string",
26412
+ "description": "Title of the site",
26413
+ "minLength": 2,
26414
+ "maxLength": 128
26415
+ },
26416
+ "SiteHostname": {
26417
+ "type": "string",
26418
+ "description": "Custom hostname for the site, for e.g. docs.mycompany.com",
26419
+ "pattern": "^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$",
26420
+ "maxLength": 512
26421
+ },
26422
+ "SiteBasename": {
26423
+ "type": "string",
26424
+ "description": "Basename for the site. For e.g. api",
26425
+ "minLength": 1,
26426
+ "maxLength": 100
26427
+ },
26428
+ "SiteProxyOrigin": {
26429
+ "type": "string",
26430
+ "description": "Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc.",
26431
+ "pattern": "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+)+$",
26432
+ "maxLength": 512
26433
+ },
26434
+ "SiteProxy": {
26343
26435
  "type": "object",
26344
- "description": "A confirm object that defines an optional confirmation dialog after the input is clicked.",
26345
26436
  "properties": {
26346
- "title": {
26347
- "type": "string",
26348
- "description": "A text value that defines the dialog's title.",
26349
- "maxLength": 100
26350
- },
26351
- "text": {
26352
- "type": "string",
26353
- "description": "A text value that defines the explanatory text that appears in the confirm dialog.",
26354
- "maxLength": 300
26355
- },
26356
- "confirm": {
26357
- "type": "string",
26358
- "description": "A text value to define the text of the button that confirms the action.",
26359
- "maxLength": 30
26437
+ "origin": {
26438
+ "$ref": "#/components/schemas/SiteProxyOrigin"
26360
26439
  },
26361
- "style": {
26440
+ "target": {
26362
26441
  "type": "string",
26363
- "enum": [
26364
- "primary",
26365
- "danger"
26366
- ]
26442
+ "description": "The target URL to which the requests at the origin URL should be proxied to."
26367
26443
  }
26368
26444
  },
26369
26445
  "required": [
26370
- "title",
26371
- "text",
26372
- "confirm"
26446
+ "origin",
26447
+ "target"
26373
26448
  ]
26374
26449
  },
26375
- "ContentKitButton": {
26376
- "type": "object",
26377
- "description": "Pressable button triggering an action.",
26378
- "properties": {
26379
- "type": {
26380
- "type": "string",
26381
- "enum": [
26382
- "button"
26383
- ]
26384
- },
26385
- "style": {
26386
- "type": "string",
26387
- "enum": [
26388
- "primary",
26389
- "secondary",
26390
- "danger"
26391
- ]
26392
- },
26393
- "onPress": {
26394
- "$ref": "#/components/schemas/ContentKitAction"
26395
- },
26396
- "icon": {
26397
- "$ref": "#/components/schemas/ContentKitIcon"
26398
- },
26399
- "trailingIcon": {
26400
- "$ref": "#/components/schemas/ContentKitIcon"
26401
- },
26402
- "label": {
26403
- "type": "string"
26404
- },
26405
- "tooltip": {
26406
- "type": "string"
26407
- },
26408
- "confirm": {
26409
- "$ref": "#/components/schemas/ContentKitConfirm"
26410
- },
26411
- "disabled": {
26412
- "type": "boolean"
26413
- }
26414
- },
26415
- "required": [
26416
- "type",
26417
- "onPress"
26450
+ "SiteVisibility": {
26451
+ "type": "string",
26452
+ "description": "The visibility setting of the site determines the audience of the site.\n* `public`: Anyone can access the site, and the site is indexed by search engines.\n* `unlisted`: Anyone can access the site, and the site is not indexed by search engines\n* `share-link`: Anyone with a secret token in the url can access the site.\n* `visitor-auth`: Anyone authenticated through a JWT token can access the site.\n",
26453
+ "enum": [
26454
+ "public",
26455
+ "unlisted",
26456
+ "share-link",
26457
+ "visitor-auth"
26418
26458
  ]
26419
26459
  },
26420
- "ContentKitTextInput": {
26460
+ "SiteAdaptiveContent": {
26421
26461
  "type": "object",
26422
- "description": "Text input to prompt the user.",
26423
26462
  "properties": {
26424
- "type": {
26425
- "type": "string",
26426
- "enum": [
26427
- "textinput"
26428
- ]
26429
- },
26430
- "disabled": {
26431
- "type": "boolean"
26432
- },
26433
- "state": {
26434
- "description": "State binding. The value of the input will be stored as a property in the state named after this ID.",
26435
- "type": "string"
26436
- },
26437
- "initialValue": {
26438
- "description": "Text value to initialize the input with.",
26439
- "type": "string"
26440
- },
26441
- "placeholder": {
26442
- "description": "Text that appears in the form control when it has no value set",
26443
- "type": "string"
26444
- },
26445
- "multiline": {
26446
- "type": "boolean"
26447
- },
26448
- "inputType": {
26449
- "type": "string",
26450
- "enum": [
26451
- "text",
26452
- "password",
26453
- "email"
26454
- ],
26455
- "default": "text"
26463
+ "enabled": {
26464
+ "type": "boolean",
26465
+ "description": "Whether adaptive content should be enabled on the site."
26456
26466
  }
26457
26467
  },
26458
26468
  "required": [
26459
- "type",
26460
- "state"
26469
+ "enabled"
26461
26470
  ]
26462
26471
  },
26463
- "ContentKitDescendantElement": {
26464
- "description": "Any element that can be used as children.",
26472
+ "SiteAdsTopic": {
26473
+ "type": "string",
26474
+ "description": "Topic of the content",
26475
+ "enum": [
26476
+ "webdev",
26477
+ "crypto"
26478
+ ]
26479
+ },
26480
+ "SiteAds": {
26465
26481
  "oneOf": [
26466
26482
  {
26467
- "$ref": "#/components/schemas/ContentKitButton"
26468
- },
26469
- {
26470
- "$ref": "#/components/schemas/ContentKitTextInput"
26471
- },
26472
- {
26473
- "$ref": "#/components/schemas/ContentKitHStack"
26474
- },
26475
- {
26476
- "$ref": "#/components/schemas/ContentKitVStack"
26477
- },
26478
- {
26479
- "$ref": "#/components/schemas/ContentKitBox"
26483
+ "type": "object",
26484
+ "required": [
26485
+ "status",
26486
+ "submittable"
26487
+ ],
26488
+ "properties": {
26489
+ "status": {
26490
+ "type": "string",
26491
+ "enum": [
26492
+ "pending"
26493
+ ]
26494
+ },
26495
+ "submittable": {
26496
+ "type": "boolean",
26497
+ "description": "True if the user can submit the site for review."
26498
+ }
26499
+ }
26480
26500
  },
26481
26501
  {
26482
- "$ref": "#/components/schemas/ContentKitDivider"
26502
+ "type": "object",
26503
+ "required": [
26504
+ "status",
26505
+ "topic",
26506
+ "accountEmail"
26507
+ ],
26508
+ "properties": {
26509
+ "status": {
26510
+ "type": "string",
26511
+ "enum": [
26512
+ "in-review"
26513
+ ]
26514
+ },
26515
+ "topic": {
26516
+ "$ref": "#/components/schemas/SiteAdsTopic"
26517
+ }
26518
+ }
26483
26519
  },
26484
26520
  {
26485
- "$ref": "#/components/schemas/ContentKitWebFrame"
26521
+ "type": "object",
26522
+ "required": [
26523
+ "status"
26524
+ ],
26525
+ "properties": {
26526
+ "status": {
26527
+ "type": "string",
26528
+ "enum": [
26529
+ "rejected"
26530
+ ]
26531
+ },
26532
+ "reason": {
26533
+ "type": "string",
26534
+ "description": "Reason for the rejection"
26535
+ }
26536
+ }
26486
26537
  },
26487
26538
  {
26488
- "$ref": "#/components/schemas/ContentKitCodeBlock"
26489
- },
26539
+ "type": "object",
26540
+ "required": [
26541
+ "status",
26542
+ "topic",
26543
+ "zoneId"
26544
+ ],
26545
+ "properties": {
26546
+ "status": {
26547
+ "type": "string",
26548
+ "enum": [
26549
+ "live",
26550
+ "disabled"
26551
+ ]
26552
+ },
26553
+ "topic": {
26554
+ "$ref": "#/components/schemas/SiteAdsTopic"
26555
+ },
26556
+ "zoneId": {
26557
+ "type": "string",
26558
+ "description": "The ad network zone ID"
26559
+ }
26560
+ }
26561
+ }
26562
+ ]
26563
+ },
26564
+ "SiteCustomizationFeature": {
26565
+ "type": "string",
26566
+ "description": "A list of all premium customizations.",
26567
+ "enum": [
26568
+ "header-logo",
26569
+ "theme-preset",
26570
+ "premium-fonts",
26571
+ "custom-icons",
26572
+ "footer-logo",
26573
+ "footer-links",
26574
+ "footer-copyright",
26575
+ "semantic-colors"
26576
+ ]
26577
+ },
26578
+ "SiteFeature": {
26579
+ "oneOf": [
26490
26580
  {
26491
- "$ref": "#/components/schemas/ContentKitMarkdown"
26581
+ "type": "object",
26582
+ "description": "A site feature and the plan it is available on.",
26583
+ "properties": {
26584
+ "id": {
26585
+ "description": "The feature identifier, matching the feature table keys in the pricing definition",
26586
+ "type": "string",
26587
+ "enum": [
26588
+ "sites-sections",
26589
+ "sites-visitor-authentication",
26590
+ "sites-adaptive-content",
26591
+ "sites-redirects",
26592
+ "sites-custom-domain",
26593
+ "sites-ai-search",
26594
+ "sites-pdf-export",
26595
+ "sites-page-feedback",
26596
+ "sites-unlisted-visibility",
26597
+ "sites-share-links",
26598
+ "sites-custom-fonts"
26599
+ ]
26600
+ },
26601
+ "plan": {
26602
+ "$ref": "#/components/schemas/SiteType"
26603
+ },
26604
+ "frozen": {
26605
+ "description": "A frozen feature is still enabled but cannot be changed or modified.",
26606
+ "type": "boolean"
26607
+ }
26608
+ },
26609
+ "required": [
26610
+ "id",
26611
+ "plan",
26612
+ "frozen"
26613
+ ]
26492
26614
  },
26493
26615
  {
26494
- "$ref": "#/components/schemas/ContentKitCard"
26616
+ "type": "object",
26617
+ "description": "The advanced customizations feature, carrying also which individual customization are used",
26618
+ "properties": {
26619
+ "id": {
26620
+ "description": "The feature identifier, always set to `sites-advanced-customization`",
26621
+ "type": "string",
26622
+ "enum": [
26623
+ "sites-advanced-customization"
26624
+ ]
26625
+ },
26626
+ "plan": {
26627
+ "$ref": "#/components/schemas/SiteType"
26628
+ },
26629
+ "frozen": {
26630
+ "description": "A frozen feature is still enabled but cannot be changed or modified.",
26631
+ "type": "boolean"
26632
+ },
26633
+ "customizations": {
26634
+ "description": "A list of the actual advanced customizations used",
26635
+ "type": "array",
26636
+ "items": {
26637
+ "$ref": "#/components/schemas/SiteCustomizationFeature"
26638
+ }
26639
+ }
26640
+ },
26641
+ "required": [
26642
+ "id",
26643
+ "plan",
26644
+ "frozen",
26645
+ "customizations"
26646
+ ]
26647
+ }
26648
+ ]
26649
+ },
26650
+ "Site": {
26651
+ "type": "object",
26652
+ "properties": {
26653
+ "object": {
26654
+ "type": "string",
26655
+ "enum": [
26656
+ "site"
26657
+ ]
26495
26658
  },
26496
- {
26497
- "$ref": "#/components/schemas/ContentKitImage"
26659
+ "id": {
26660
+ "type": "string",
26661
+ "description": "Unique identifier of the site"
26498
26662
  },
26499
- {
26500
- "$ref": "#/components/schemas/ContentKitInput"
26663
+ "type": {
26664
+ "$ref": "#/components/schemas/SiteType"
26501
26665
  },
26502
- {
26503
- "$ref": "#/components/schemas/ContentKitSelect"
26666
+ "title": {
26667
+ "$ref": "#/components/schemas/SiteTitle"
26504
26668
  },
26505
- {
26506
- "$ref": "#/components/schemas/ContentKitSwitch"
26669
+ "hostname": {
26670
+ "$ref": "#/components/schemas/SiteHostname"
26507
26671
  },
26508
- {
26509
- "$ref": "#/components/schemas/ContentKitCheckbox"
26672
+ "basename": {
26673
+ "$ref": "#/components/schemas/SiteBasename"
26510
26674
  },
26511
- {
26512
- "$ref": "#/components/schemas/ContentKitRadio"
26675
+ "proxy": {
26676
+ "$ref": "#/components/schemas/SiteProxy"
26513
26677
  },
26514
- {
26515
- "$ref": "#/components/schemas/ContentKitText"
26678
+ "visibility": {
26679
+ "$ref": "#/components/schemas/SiteVisibility"
26516
26680
  },
26517
- {
26518
- "$ref": "#/components/schemas/ContentKitHint"
26681
+ "published": {
26682
+ "type": "boolean",
26683
+ "description": "Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting."
26519
26684
  },
26520
- {
26521
- "$ref": "#/components/schemas/ContentKitLink"
26685
+ "siteSpaces": {
26686
+ "type": "number"
26522
26687
  },
26523
- {
26524
- "$ref": "#/components/schemas/ContentKitStepperStep"
26525
- }
26526
- ],
26527
- "discriminator": {
26528
- "propertyName": "type"
26529
- }
26530
- },
26531
- "ContentKitHStack": {
26532
- "type": "object",
26533
- "description": "Horizontal stack of boxes.",
26534
- "properties": {
26535
- "type": {
26688
+ "createdAt": {
26536
26689
  "type": "string",
26537
- "enum": [
26538
- "hstack"
26539
- ]
26690
+ "format": "date-time"
26540
26691
  },
26541
- "align": {
26542
- "type": "string",
26543
- "default": "start",
26544
- "enum": [
26545
- "start",
26546
- "center",
26547
- "end"
26548
- ]
26692
+ "adaptiveContent": {
26693
+ "$ref": "#/components/schemas/SiteAdaptiveContent"
26549
26694
  },
26550
- "children": {
26695
+ "ads": {
26696
+ "$ref": "#/components/schemas/SiteAds"
26697
+ },
26698
+ "features": {
26699
+ "description": "A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified.\n",
26551
26700
  "type": "array",
26552
26701
  "items": {
26553
- "$ref": "#/components/schemas/ContentKitDescendantElement"
26702
+ "$ref": "#/components/schemas/SiteFeature"
26554
26703
  }
26555
- }
26704
+ },
26705
+ "urls": {
26706
+ "type": "object",
26707
+ "description": "URLs associated with the object",
26708
+ "properties": {
26709
+ "location": {
26710
+ "type": "string",
26711
+ "description": "URL of the site in the API",
26712
+ "format": "uri"
26713
+ },
26714
+ "app": {
26715
+ "type": "string",
26716
+ "description": "URL of the site in the application",
26717
+ "format": "uri"
26718
+ },
26719
+ "published": {
26720
+ "type": "string",
26721
+ "description": "URL of the published version of the site. Only defined when site is published.",
26722
+ "format": "uri"
26723
+ }
26724
+ },
26725
+ "required": [
26726
+ "app",
26727
+ "location"
26728
+ ]
26729
+ }
26556
26730
  },
26557
26731
  "required": [
26732
+ "object",
26733
+ "id",
26558
26734
  "type",
26559
- "children"
26735
+ "title",
26736
+ "visibility",
26737
+ "published",
26738
+ "createdAt",
26739
+ "siteSpaces",
26740
+ "defaultSpace",
26741
+ "features",
26742
+ "urls"
26560
26743
  ]
26561
26744
  },
26562
- "ContentKitVStack": {
26563
- "type": "object",
26564
- "description": "Vertical stack of boxes.",
26565
- "properties": {
26566
- "type": {
26567
- "type": "string",
26568
- "enum": [
26569
- "vstack"
26570
- ]
26745
+ "IntegrationSiteInstallation": {
26746
+ "allOf": [
26747
+ {
26748
+ "$ref": "#/components/schemas/IntegrationContentInstallationBase"
26571
26749
  },
26572
- "align": {
26573
- "type": "string",
26574
- "default": "start",
26575
- "enum": [
26576
- "start",
26577
- "center",
26578
- "end"
26750
+ {
26751
+ "type": "object",
26752
+ "properties": {
26753
+ "site": {
26754
+ "description": "The site the integration is installed on. Using the string value is deprecated in favor of site.id",
26755
+ "oneOf": [
26756
+ {
26757
+ "type": "string"
26758
+ },
26759
+ {
26760
+ "$ref": "#/components/schemas/Site"
26761
+ }
26762
+ ]
26763
+ }
26764
+ },
26765
+ "required": [
26766
+ "site"
26579
26767
  ]
26580
- },
26581
- "children": {
26582
- "type": "array",
26583
- "items": {
26584
- "$ref": "#/components/schemas/ContentKitDescendantElement"
26585
- }
26586
26768
  }
26587
- },
26588
- "required": [
26589
- "type",
26590
- "children"
26591
26769
  ]
26592
26770
  },
26593
- "ContentKitBox": {
26771
+ "ContentKitIcon": {
26772
+ "type": "string",
26773
+ "enum": [
26774
+ "close",
26775
+ "edit",
26776
+ "github",
26777
+ "gitlab",
26778
+ "maximize",
26779
+ "email",
26780
+ "settings",
26781
+ "search",
26782
+ "delete",
26783
+ "star",
26784
+ "warning",
26785
+ "link",
26786
+ "link-external",
26787
+ "eye",
26788
+ "lock",
26789
+ "check",
26790
+ "check-circle"
26791
+ ]
26792
+ },
26793
+ "ContentKitConfirm": {
26594
26794
  "type": "object",
26795
+ "description": "A confirm object that defines an optional confirmation dialog after the input is clicked.",
26595
26796
  "properties": {
26596
- "type": {
26797
+ "title": {
26597
26798
  "type": "string",
26598
- "enum": [
26599
- "box"
26600
- ]
26799
+ "description": "A text value that defines the dialog's title.",
26800
+ "maxLength": 100
26601
26801
  },
26602
- "grow": {
26603
- "description": "specifies how much of the remaining space in the container should be assigned to the element",
26604
- "type": "number"
26802
+ "text": {
26803
+ "type": "string",
26804
+ "description": "A text value that defines the explanatory text that appears in the confirm dialog.",
26805
+ "maxLength": 300
26605
26806
  },
26606
- "children": {
26607
- "type": "array",
26608
- "items": {
26609
- "$ref": "#/components/schemas/ContentKitDescendantElement"
26610
- }
26611
- }
26612
- },
26613
- "required": [
26614
- "type",
26615
- "children"
26616
- ]
26617
- },
26618
- "ContentKitDivider": {
26619
- "type": "object",
26620
- "description": "Divider between 2 boxes in a stack.",
26621
- "properties": {
26622
- "type": {
26807
+ "confirm": {
26623
26808
  "type": "string",
26624
- "enum": [
26625
- "divider"
26626
- ]
26809
+ "description": "A text value to define the text of the button that confirms the action.",
26810
+ "maxLength": 30
26627
26811
  },
26628
- "size": {
26812
+ "style": {
26629
26813
  "type": "string",
26630
26814
  "enum": [
26631
- "small",
26632
- "medium",
26633
- "large"
26815
+ "primary",
26816
+ "danger"
26634
26817
  ]
26635
26818
  }
26636
26819
  },
26637
26820
  "required": [
26638
- "type"
26639
- ]
26640
- },
26641
- "ContentKitDynamicBinding": {
26642
- "type": "object",
26643
- "description": "Binding between a property and a state value.",
26644
- "properties": {
26645
- "$state": {
26646
- "type": "string",
26647
- "description": "Key in the state"
26648
- }
26649
- },
26650
- "required": [
26651
- "$state"
26821
+ "title",
26822
+ "text",
26823
+ "confirm"
26652
26824
  ]
26653
26825
  },
26654
- "ContentKitWebFrame": {
26826
+ "ContentKitButton": {
26655
26827
  "type": "object",
26656
- "description": "Frame for a webpage",
26828
+ "description": "Pressable button triggering an action.",
26657
26829
  "properties": {
26658
26830
  "type": {
26659
26831
  "type": "string",
26660
26832
  "enum": [
26661
- "webframe"
26833
+ "button"
26662
26834
  ]
26663
26835
  },
26664
- "aspectRatio": {
26665
- "type": "number",
26666
- "description": "Ratio between width and height. Used to size the webframe."
26667
- },
26668
- "source": {
26669
- "type": "object",
26670
- "description": "Content to load in the frame.",
26671
- "properties": {
26672
- "url": {
26673
- "type": "string"
26674
- }
26675
- },
26676
- "required": [
26677
- "url"
26836
+ "style": {
26837
+ "type": "string",
26838
+ "enum": [
26839
+ "primary",
26840
+ "secondary",
26841
+ "danger"
26678
26842
  ]
26679
26843
  },
26680
- "buttons": {
26681
- "type": "array",
26682
- "description": "Controls button shown as an overlay in a corner of the frame.",
26683
- "items": {
26684
- "$ref": "#/components/schemas/ContentKitButton"
26685
- }
26844
+ "onPress": {
26845
+ "$ref": "#/components/schemas/ContentKitAction"
26686
26846
  },
26687
- "data": {
26688
- "type": "object",
26689
- "description": "Data to communicated to the webframe's content. Each state update will cause the webframe to receive a message.",
26690
- "additionalProperties": {
26691
- "oneOf": [
26692
- {
26693
- "type": "string"
26694
- },
26695
- {
26696
- "$ref": "#/components/schemas/ContentKitDynamicBinding"
26697
- }
26698
- ]
26699
- }
26847
+ "icon": {
26848
+ "$ref": "#/components/schemas/ContentKitIcon"
26849
+ },
26850
+ "trailingIcon": {
26851
+ "$ref": "#/components/schemas/ContentKitIcon"
26852
+ },
26853
+ "label": {
26854
+ "type": "string"
26855
+ },
26856
+ "tooltip": {
26857
+ "type": "string"
26858
+ },
26859
+ "confirm": {
26860
+ "$ref": "#/components/schemas/ContentKitConfirm"
26861
+ },
26862
+ "disabled": {
26863
+ "type": "boolean"
26700
26864
  }
26701
26865
  },
26702
26866
  "required": [
26703
26867
  "type",
26704
- "source"
26868
+ "onPress"
26705
26869
  ]
26706
26870
  },
26707
- "ContentKitCodeBlock": {
26871
+ "ContentKitTextInput": {
26708
26872
  "type": "object",
26709
- "description": "Code block with syntax highlighting",
26873
+ "description": "Text input to prompt the user.",
26710
26874
  "properties": {
26711
26875
  "type": {
26712
26876
  "type": "string",
26713
26877
  "enum": [
26714
- "codeblock"
26878
+ "textinput"
26715
26879
  ]
26716
26880
  },
26717
- "content": {
26718
- "oneOf": [
26719
- {
26720
- "$ref": "#/components/schemas/ContentKitDynamicBinding"
26721
- },
26722
- {
26723
- "type": "string",
26724
- "description": "Code content to display"
26725
- }
26726
- ]
26881
+ "disabled": {
26882
+ "type": "boolean"
26727
26883
  },
26728
- "syntax": {
26729
- "description": "Syntax to use for highlighting (ex: javascript, python)",
26884
+ "state": {
26885
+ "description": "State binding. The value of the input will be stored as a property in the state named after this ID.",
26730
26886
  "type": "string"
26731
26887
  },
26732
- "lineNumbers": {
26733
- "oneOf": [
26734
- {
26735
- "type": "boolean"
26736
- },
26737
- {
26738
- "type": "number",
26739
- "description": "Line number to start at."
26740
- }
26741
- ]
26742
- },
26743
- "buttons": {
26744
- "type": "array",
26745
- "description": "Controls button shown as an overlay in a corner of the code block.",
26746
- "items": {
26747
- "$ref": "#/components/schemas/ContentKitButton"
26748
- }
26749
- },
26750
- "state": {
26751
- "description": "State binding when editable. The value of the input will be stored as a property in the state named after this ID.",
26888
+ "initialValue": {
26889
+ "description": "Text value to initialize the input with.",
26752
26890
  "type": "string"
26753
26891
  },
26754
- "onContentChange": {
26755
- "$ref": "#/components/schemas/ContentKitAction"
26892
+ "placeholder": {
26893
+ "description": "Text that appears in the form control when it has no value set",
26894
+ "type": "string"
26756
26895
  },
26757
- "header": {
26758
- "type": "array",
26759
- "description": "Header displayed before the code lines",
26760
- "items": {
26761
- "$ref": "#/components/schemas/ContentKitDescendantElement"
26762
- }
26896
+ "multiline": {
26897
+ "type": "boolean"
26763
26898
  },
26764
- "footer": {
26765
- "type": "array",
26766
- "description": "Footer displayed after the code lines",
26767
- "items": {
26768
- "$ref": "#/components/schemas/ContentKitDescendantElement"
26769
- }
26899
+ "inputType": {
26900
+ "type": "string",
26901
+ "enum": [
26902
+ "text",
26903
+ "password",
26904
+ "email"
26905
+ ],
26906
+ "default": "text"
26770
26907
  }
26771
26908
  },
26772
26909
  "required": [
26773
26910
  "type",
26774
- "content"
26911
+ "state"
26775
26912
  ]
26776
26913
  },
26777
- "ContentKitMarkdown": {
26914
+ "ContentKitDescendantElement": {
26915
+ "description": "Any element that can be used as children.",
26916
+ "oneOf": [
26917
+ {
26918
+ "$ref": "#/components/schemas/ContentKitButton"
26919
+ },
26920
+ {
26921
+ "$ref": "#/components/schemas/ContentKitTextInput"
26922
+ },
26923
+ {
26924
+ "$ref": "#/components/schemas/ContentKitHStack"
26925
+ },
26926
+ {
26927
+ "$ref": "#/components/schemas/ContentKitVStack"
26928
+ },
26929
+ {
26930
+ "$ref": "#/components/schemas/ContentKitBox"
26931
+ },
26932
+ {
26933
+ "$ref": "#/components/schemas/ContentKitDivider"
26934
+ },
26935
+ {
26936
+ "$ref": "#/components/schemas/ContentKitWebFrame"
26937
+ },
26938
+ {
26939
+ "$ref": "#/components/schemas/ContentKitCodeBlock"
26940
+ },
26941
+ {
26942
+ "$ref": "#/components/schemas/ContentKitMarkdown"
26943
+ },
26944
+ {
26945
+ "$ref": "#/components/schemas/ContentKitCard"
26946
+ },
26947
+ {
26948
+ "$ref": "#/components/schemas/ContentKitImage"
26949
+ },
26950
+ {
26951
+ "$ref": "#/components/schemas/ContentKitInput"
26952
+ },
26953
+ {
26954
+ "$ref": "#/components/schemas/ContentKitSelect"
26955
+ },
26956
+ {
26957
+ "$ref": "#/components/schemas/ContentKitSwitch"
26958
+ },
26959
+ {
26960
+ "$ref": "#/components/schemas/ContentKitCheckbox"
26961
+ },
26962
+ {
26963
+ "$ref": "#/components/schemas/ContentKitRadio"
26964
+ },
26965
+ {
26966
+ "$ref": "#/components/schemas/ContentKitText"
26967
+ },
26968
+ {
26969
+ "$ref": "#/components/schemas/ContentKitHint"
26970
+ },
26971
+ {
26972
+ "$ref": "#/components/schemas/ContentKitLink"
26973
+ },
26974
+ {
26975
+ "$ref": "#/components/schemas/ContentKitStepperStep"
26976
+ }
26977
+ ],
26978
+ "discriminator": {
26979
+ "propertyName": "type"
26980
+ }
26981
+ },
26982
+ "ContentKitHStack": {
26778
26983
  "type": "object",
26779
- "description": "Block with rich text formatting of a markdown content.",
26984
+ "description": "Horizontal stack of boxes.",
26780
26985
  "properties": {
26781
26986
  "type": {
26782
26987
  "type": "string",
26783
26988
  "enum": [
26784
- "markdown"
26989
+ "hstack"
26785
26990
  ]
26786
26991
  },
26787
- "content": {
26788
- "oneOf": [
26789
- {
26790
- "$ref": "#/components/schemas/ContentKitDynamicBinding"
26791
- },
26792
- {
26793
- "type": "string",
26794
- "description": "Markdown content to display"
26795
- }
26992
+ "align": {
26993
+ "type": "string",
26994
+ "default": "start",
26995
+ "enum": [
26996
+ "start",
26997
+ "center",
26998
+ "end"
26796
26999
  ]
27000
+ },
27001
+ "children": {
27002
+ "type": "array",
27003
+ "items": {
27004
+ "$ref": "#/components/schemas/ContentKitDescendantElement"
27005
+ }
26797
27006
  }
26798
27007
  },
26799
27008
  "required": [
26800
27009
  "type",
26801
- "content"
27010
+ "children"
26802
27011
  ]
26803
27012
  },
26804
- "ContentKitText": {
27013
+ "ContentKitVStack": {
26805
27014
  "type": "object",
26806
- "description": "Low level text element.",
27015
+ "description": "Vertical stack of boxes.",
26807
27016
  "properties": {
26808
27017
  "type": {
26809
27018
  "type": "string",
26810
27019
  "enum": [
26811
- "text"
27020
+ "vstack"
26812
27021
  ]
26813
27022
  },
26814
- "style": {
27023
+ "align": {
26815
27024
  "type": "string",
27025
+ "default": "start",
26816
27026
  "enum": [
26817
- "bold",
26818
- "italic",
26819
- "code",
26820
- "strikethrough"
27027
+ "start",
27028
+ "center",
27029
+ "end"
26821
27030
  ]
26822
27031
  },
26823
27032
  "children": {
26824
- "oneOf": [
26825
- {
26826
- "type": "string"
26827
- },
26828
- {
26829
- "type": "array",
26830
- "items": {
26831
- "oneOf": [
26832
- {
26833
- "type": "string"
26834
- },
26835
- {
26836
- "$ref": "#/components/schemas/ContentKitText"
26837
- },
26838
- {
26839
- "$ref": "#/components/schemas/ContentKitLink"
26840
- }
26841
- ]
26842
- }
26843
- }
26844
- ]
27033
+ "type": "array",
27034
+ "items": {
27035
+ "$ref": "#/components/schemas/ContentKitDescendantElement"
27036
+ }
26845
27037
  }
26846
27038
  },
26847
27039
  "required": [
@@ -26849,435 +27041,404 @@
26849
27041
  "children"
26850
27042
  ]
26851
27043
  },
26852
- "ContentKitURL": {
27044
+ "ContentKitBox": {
26853
27045
  "type": "object",
26854
- "description": "Specification for an URL in ContentKit.",
26855
27046
  "properties": {
26856
- "host": {
27047
+ "type": {
26857
27048
  "type": "string",
26858
- "description": "Hostname of the URL along with the port number if required.",
26859
- "example": "api.example.com"
27049
+ "enum": [
27050
+ "box"
27051
+ ]
26860
27052
  },
26861
- "pathname": {
26862
- "type": "string",
26863
- "description": "Path of the URL prefixed with a `/`.",
26864
- "example": "/v1/options"
27053
+ "grow": {
27054
+ "description": "specifies how much of the remaining space in the container should be assigned to the element",
27055
+ "type": "number"
26865
27056
  },
26866
- "query": {
26867
- "type": "object",
26868
- "additionalProperties": {
26869
- "oneOf": [
26870
- {
26871
- "type": "string"
26872
- },
26873
- {
26874
- "$ref": "#/components/schemas/ContentKitDynamicBinding"
26875
- }
26876
- ]
27057
+ "children": {
27058
+ "type": "array",
27059
+ "items": {
27060
+ "$ref": "#/components/schemas/ContentKitDescendantElement"
26877
27061
  }
26878
27062
  }
26879
27063
  },
26880
27064
  "required": [
26881
- "host",
26882
- "pathname"
27065
+ "type",
27066
+ "children"
26883
27067
  ]
26884
27068
  },
26885
- "ContentKitLink": {
27069
+ "ContentKitDivider": {
26886
27070
  "type": "object",
27071
+ "description": "Divider between 2 boxes in a stack.",
26887
27072
  "properties": {
26888
27073
  "type": {
26889
27074
  "type": "string",
26890
27075
  "enum": [
26891
- "link"
27076
+ "divider"
26892
27077
  ]
26893
27078
  },
26894
- "target": {
26895
- "type": "object",
26896
- "properties": {
26897
- "url": {
26898
- "oneOf": [
26899
- {
26900
- "type": "string"
26901
- },
26902
- {
26903
- "$ref": "#/components/schemas/ContentKitURL"
26904
- }
26905
- ]
26906
- }
26907
- },
26908
- "required": [
26909
- "url"
26910
- ]
26911
- },
26912
- "children": {
26913
- "oneOf": [
26914
- {
26915
- "type": "string"
26916
- },
26917
- {
26918
- "type": "array",
26919
- "items": {
26920
- "type": "string"
26921
- }
26922
- }
27079
+ "size": {
27080
+ "type": "string",
27081
+ "enum": [
27082
+ "small",
27083
+ "medium",
27084
+ "large"
26923
27085
  ]
26924
27086
  }
26925
27087
  },
26926
27088
  "required": [
26927
- "type",
26928
- "target",
26929
- "children"
27089
+ "type"
26930
27090
  ]
26931
27091
  },
26932
- "ContentKitImage": {
27092
+ "ContentKitDynamicBinding": {
27093
+ "type": "object",
27094
+ "description": "Binding between a property and a state value.",
27095
+ "properties": {
27096
+ "$state": {
27097
+ "type": "string",
27098
+ "description": "Key in the state"
27099
+ }
27100
+ },
27101
+ "required": [
27102
+ "$state"
27103
+ ]
27104
+ },
27105
+ "ContentKitWebFrame": {
26933
27106
  "type": "object",
27107
+ "description": "Frame for a webpage",
26934
27108
  "properties": {
26935
27109
  "type": {
26936
27110
  "type": "string",
26937
27111
  "enum": [
26938
- "image"
27112
+ "webframe"
26939
27113
  ]
26940
27114
  },
27115
+ "aspectRatio": {
27116
+ "type": "number",
27117
+ "description": "Ratio between width and height. Used to size the webframe."
27118
+ },
26941
27119
  "source": {
26942
27120
  "type": "object",
27121
+ "description": "Content to load in the frame.",
26943
27122
  "properties": {
26944
27123
  "url": {
26945
- "type": "string",
26946
- "format": "uri"
27124
+ "type": "string"
26947
27125
  }
26948
27126
  },
26949
27127
  "required": [
26950
27128
  "url"
26951
27129
  ]
26952
27130
  },
26953
- "aspectRatio": {
26954
- "type": "number"
27131
+ "buttons": {
27132
+ "type": "array",
27133
+ "description": "Controls button shown as an overlay in a corner of the frame.",
27134
+ "items": {
27135
+ "$ref": "#/components/schemas/ContentKitButton"
27136
+ }
27137
+ },
27138
+ "data": {
27139
+ "type": "object",
27140
+ "description": "Data to communicated to the webframe's content. Each state update will cause the webframe to receive a message.",
27141
+ "additionalProperties": {
27142
+ "oneOf": [
27143
+ {
27144
+ "type": "string"
27145
+ },
27146
+ {
27147
+ "$ref": "#/components/schemas/ContentKitDynamicBinding"
27148
+ }
27149
+ ]
27150
+ }
26955
27151
  }
26956
27152
  },
26957
27153
  "required": [
26958
27154
  "type",
26959
- "source",
26960
- "aspectRatio"
27155
+ "source"
26961
27156
  ]
26962
27157
  },
26963
- "ContentKitInlineElement": {
26964
- "description": "Any element that is inline.",
26965
- "oneOf": [
26966
- {
26967
- "$ref": "#/components/schemas/ContentKitText"
26968
- },
26969
- {
26970
- "$ref": "#/components/schemas/ContentKitImage"
26971
- },
26972
- {
26973
- "$ref": "#/components/schemas/ContentKitLink"
26974
- }
26975
- ],
26976
- "discriminator": {
26977
- "propertyName": "type"
26978
- }
26979
- },
26980
- "ContentKitCard": {
27158
+ "ContentKitCodeBlock": {
26981
27159
  "type": "object",
27160
+ "description": "Code block with syntax highlighting",
26982
27161
  "properties": {
26983
27162
  "type": {
26984
27163
  "type": "string",
26985
27164
  "enum": [
26986
- "card"
27165
+ "codeblock"
26987
27166
  ]
26988
27167
  },
26989
- "title": {
26990
- "type": "string"
26991
- },
26992
- "hint": {
27168
+ "content": {
26993
27169
  "oneOf": [
26994
27170
  {
26995
- "type": "string"
27171
+ "$ref": "#/components/schemas/ContentKitDynamicBinding"
26996
27172
  },
26997
27173
  {
26998
- "type": "array",
26999
- "items": {
27000
- "$ref": "#/components/schemas/ContentKitInlineElement"
27001
- }
27174
+ "type": "string",
27175
+ "description": "Code content to display"
27002
27176
  }
27003
27177
  ]
27004
27178
  },
27005
- "icon": {
27179
+ "syntax": {
27180
+ "description": "Syntax to use for highlighting (ex: javascript, python)",
27181
+ "type": "string"
27182
+ },
27183
+ "lineNumbers": {
27006
27184
  "oneOf": [
27007
27185
  {
27008
- "$ref": "#/components/schemas/ContentKitIcon"
27186
+ "type": "boolean"
27009
27187
  },
27010
27188
  {
27011
- "$ref": "#/components/schemas/ContentKitImage"
27189
+ "type": "number",
27190
+ "description": "Line number to start at."
27012
27191
  }
27013
27192
  ]
27014
27193
  },
27015
- "onPress": {
27194
+ "buttons": {
27195
+ "type": "array",
27196
+ "description": "Controls button shown as an overlay in a corner of the code block.",
27197
+ "items": {
27198
+ "$ref": "#/components/schemas/ContentKitButton"
27199
+ }
27200
+ },
27201
+ "state": {
27202
+ "description": "State binding when editable. The value of the input will be stored as a property in the state named after this ID.",
27203
+ "type": "string"
27204
+ },
27205
+ "onContentChange": {
27016
27206
  "$ref": "#/components/schemas/ContentKitAction"
27017
27207
  },
27018
- "children": {
27208
+ "header": {
27019
27209
  "type": "array",
27210
+ "description": "Header displayed before the code lines",
27020
27211
  "items": {
27021
27212
  "$ref": "#/components/schemas/ContentKitDescendantElement"
27022
27213
  }
27023
27214
  },
27024
- "buttons": {
27215
+ "footer": {
27025
27216
  "type": "array",
27026
- "description": "Buttons displayed in the top right corner of the card.",
27217
+ "description": "Footer displayed after the code lines",
27027
27218
  "items": {
27028
- "$ref": "#/components/schemas/ContentKitButton"
27219
+ "$ref": "#/components/schemas/ContentKitDescendantElement"
27029
27220
  }
27030
27221
  }
27031
27222
  },
27032
27223
  "required": [
27033
- "type"
27224
+ "type",
27225
+ "content"
27034
27226
  ]
27035
27227
  },
27036
- "ContentKitBuiltInSource": {
27228
+ "ContentKitMarkdown": {
27037
27229
  "type": "object",
27038
- "description": "Built-in sources that can be used to provide a ContentKitSelect.",
27230
+ "description": "Block with rich text formatting of a markdown content.",
27039
27231
  "properties": {
27040
- "source": {
27232
+ "type": {
27041
27233
  "type": "string",
27042
27234
  "enum": [
27043
- "openapi"
27235
+ "markdown"
27044
27236
  ]
27045
- }
27046
- },
27047
- "required": [
27048
- "source"
27049
- ]
27050
- },
27051
- "ContentKitSelectOption": {
27052
- "type": "object",
27053
- "description": "An individual option in a select element",
27054
- "properties": {
27055
- "id": {
27056
- "type": "string"
27057
- },
27058
- "label": {
27059
- "type": "string"
27060
27237
  },
27061
- "icon": {
27238
+ "content": {
27062
27239
  "oneOf": [
27063
27240
  {
27064
- "$ref": "#/components/schemas/ContentKitIcon"
27241
+ "$ref": "#/components/schemas/ContentKitDynamicBinding"
27065
27242
  },
27066
27243
  {
27067
- "$ref": "#/components/schemas/ContentKitImage"
27244
+ "type": "string",
27245
+ "description": "Markdown content to display"
27068
27246
  }
27069
27247
  ]
27070
27248
  }
27071
27249
  },
27072
27250
  "required": [
27073
- "id",
27074
- "label"
27251
+ "type",
27252
+ "content"
27075
27253
  ]
27076
27254
  },
27077
- "ContentKitSelect": {
27255
+ "ContentKitText": {
27078
27256
  "type": "object",
27079
- "description": "Creates a drop down menu with a list of options for a user to choose.",
27257
+ "description": "Low level text element.",
27080
27258
  "properties": {
27081
27259
  "type": {
27082
27260
  "type": "string",
27083
27261
  "enum": [
27084
- "select"
27262
+ "text"
27085
27263
  ]
27086
27264
  },
27087
- "disabled": {
27088
- "type": "boolean"
27089
- },
27090
- "state": {
27091
- "description": "State binding. The value of the input will be stored as a property in the state named after this ID.",
27092
- "type": "string"
27093
- },
27094
- "initialValue": {
27095
- "description": "Value to initialize the select with.",
27096
- "oneOf": [
27097
- {
27098
- "type": "string"
27099
- },
27100
- {
27101
- "type": "array",
27102
- "items": {
27103
- "type": "string"
27104
- }
27105
- }
27265
+ "style": {
27266
+ "type": "string",
27267
+ "enum": [
27268
+ "bold",
27269
+ "italic",
27270
+ "code",
27271
+ "strikethrough"
27106
27272
  ]
27107
27273
  },
27108
- "onValueChange": {
27109
- "$ref": "#/components/schemas/ContentKitAction"
27110
- },
27111
- "placeholder": {
27112
- "description": "Text that appears in the form control when it has no value set",
27113
- "type": "string"
27114
- },
27115
- "multiple": {
27116
- "description": "Should the select accept the selection of multiple options. If true, the state will be an array.",
27117
- "type": "boolean"
27118
- },
27119
- "acceptInput": {
27120
- "description": "Should the filter input be allowed to be selected as an option.",
27121
- "type": "boolean"
27122
- },
27123
- "options": {
27124
- "description": "Options to be displayed in the select.",
27274
+ "children": {
27125
27275
  "oneOf": [
27126
27276
  {
27127
- "$ref": "#/components/schemas/ContentKitBuiltInSource"
27277
+ "type": "string"
27128
27278
  },
27129
27279
  {
27130
27280
  "type": "array",
27131
- "description": "Static list of options",
27132
27281
  "items": {
27133
- "$ref": "#/components/schemas/ContentKitSelectOption"
27282
+ "oneOf": [
27283
+ {
27284
+ "type": "string"
27285
+ },
27286
+ {
27287
+ "$ref": "#/components/schemas/ContentKitText"
27288
+ },
27289
+ {
27290
+ "$ref": "#/components/schemas/ContentKitLink"
27291
+ }
27292
+ ]
27134
27293
  }
27135
- },
27136
- {
27137
- "type": "object",
27138
- "properties": {
27139
- "url": {
27140
- "oneOf": [
27141
- {
27142
- "type": "string",
27143
- "description": "External source of options. The URL should respond with an array of options."
27144
- },
27145
- {
27146
- "$ref": "#/components/schemas/ContentKitURL"
27147
- }
27148
- ]
27149
- }
27150
- },
27151
- "required": [
27152
- "url"
27153
- ]
27154
27294
  }
27155
27295
  ]
27156
27296
  }
27157
27297
  },
27158
27298
  "required": [
27159
27299
  "type",
27160
- "state",
27161
- "options"
27300
+ "children"
27162
27301
  ]
27163
27302
  },
27164
- "ContentKitSwitch": {
27303
+ "ContentKitURL": {
27165
27304
  "type": "object",
27166
- "description": "Renders a boolean input.",
27305
+ "description": "Specification for an URL in ContentKit.",
27167
27306
  "properties": {
27168
- "type": {
27307
+ "host": {
27169
27308
  "type": "string",
27170
- "enum": [
27171
- "switch"
27172
- ]
27173
- },
27174
- "disabled": {
27175
- "type": "boolean"
27176
- },
27177
- "state": {
27178
- "description": "State binding. The value of the input will be stored as a property in the state named after this ID.",
27179
- "type": "string"
27180
- },
27181
- "initialValue": {
27182
- "description": "Value to initialize the switch with.",
27183
- "type": "boolean"
27309
+ "description": "Hostname of the URL along with the port number if required.",
27310
+ "example": "api.example.com"
27184
27311
  },
27185
- "onValueChange": {
27186
- "$ref": "#/components/schemas/ContentKitAction"
27312
+ "pathname": {
27313
+ "type": "string",
27314
+ "description": "Path of the URL prefixed with a `/`.",
27315
+ "example": "/v1/options"
27187
27316
  },
27188
- "confirm": {
27189
- "$ref": "#/components/schemas/ContentKitConfirm"
27317
+ "query": {
27318
+ "type": "object",
27319
+ "additionalProperties": {
27320
+ "oneOf": [
27321
+ {
27322
+ "type": "string"
27323
+ },
27324
+ {
27325
+ "$ref": "#/components/schemas/ContentKitDynamicBinding"
27326
+ }
27327
+ ]
27328
+ }
27190
27329
  }
27191
27330
  },
27192
27331
  "required": [
27193
- "type",
27194
- "state"
27332
+ "host",
27333
+ "pathname"
27195
27334
  ]
27196
27335
  },
27197
- "ContentKitRadio": {
27336
+ "ContentKitLink": {
27198
27337
  "type": "object",
27199
27338
  "properties": {
27200
27339
  "type": {
27201
27340
  "type": "string",
27202
27341
  "enum": [
27203
- "radio"
27342
+ "link"
27204
27343
  ]
27205
27344
  },
27206
- "disabled": {
27207
- "type": "boolean"
27208
- },
27209
- "state": {
27210
- "description": "State binding. The value of the input will be stored as a property in the state named after this ID.",
27211
- "type": "string"
27345
+ "target": {
27346
+ "type": "object",
27347
+ "properties": {
27348
+ "url": {
27349
+ "oneOf": [
27350
+ {
27351
+ "type": "string"
27352
+ },
27353
+ {
27354
+ "$ref": "#/components/schemas/ContentKitURL"
27355
+ }
27356
+ ]
27357
+ }
27358
+ },
27359
+ "required": [
27360
+ "url"
27361
+ ]
27212
27362
  },
27213
- "value": {
27214
- "description": "Value to store in th state when the checkbox is selected.",
27363
+ "children": {
27215
27364
  "oneOf": [
27216
27365
  {
27217
27366
  "type": "string"
27218
27367
  },
27219
27368
  {
27220
- "type": "number"
27369
+ "type": "array",
27370
+ "items": {
27371
+ "type": "string"
27372
+ }
27221
27373
  }
27222
27374
  ]
27223
- },
27224
- "confirm": {
27225
- "$ref": "#/components/schemas/ContentKitConfirm"
27226
27375
  }
27227
27376
  },
27228
27377
  "required": [
27229
27378
  "type",
27230
- "state",
27231
- "value"
27379
+ "target",
27380
+ "children"
27232
27381
  ]
27233
27382
  },
27234
- "ContentKitCheckbox": {
27383
+ "ContentKitImage": {
27235
27384
  "type": "object",
27236
27385
  "properties": {
27237
27386
  "type": {
27238
27387
  "type": "string",
27239
27388
  "enum": [
27240
- "checkbox"
27389
+ "image"
27241
27390
  ]
27242
27391
  },
27243
- "state": {
27244
- "description": "State binding. The value of the input will be stored as a property in the state named after this ID.",
27245
- "type": "string"
27246
- },
27247
- "value": {
27248
- "description": "Value to store in a state array when the checkbox is selected.",
27249
- "oneOf": [
27250
- {
27251
- "type": "string"
27252
- },
27253
- {
27254
- "type": "number"
27392
+ "source": {
27393
+ "type": "object",
27394
+ "properties": {
27395
+ "url": {
27396
+ "type": "string",
27397
+ "format": "uri"
27255
27398
  }
27399
+ },
27400
+ "required": [
27401
+ "url"
27256
27402
  ]
27257
27403
  },
27258
- "confirm": {
27259
- "$ref": "#/components/schemas/ContentKitConfirm"
27404
+ "aspectRatio": {
27405
+ "type": "number"
27260
27406
  }
27261
27407
  },
27262
27408
  "required": [
27263
27409
  "type",
27264
- "state",
27265
- "value"
27410
+ "source",
27411
+ "aspectRatio"
27266
27412
  ]
27267
27413
  },
27268
- "ContentKitInput": {
27414
+ "ContentKitInlineElement": {
27415
+ "description": "Any element that is inline.",
27416
+ "oneOf": [
27417
+ {
27418
+ "$ref": "#/components/schemas/ContentKitText"
27419
+ },
27420
+ {
27421
+ "$ref": "#/components/schemas/ContentKitImage"
27422
+ },
27423
+ {
27424
+ "$ref": "#/components/schemas/ContentKitLink"
27425
+ }
27426
+ ],
27427
+ "discriminator": {
27428
+ "propertyName": "type"
27429
+ }
27430
+ },
27431
+ "ContentKitCard": {
27269
27432
  "type": "object",
27270
- "description": "Field for an input.",
27271
27433
  "properties": {
27272
27434
  "type": {
27273
27435
  "type": "string",
27274
27436
  "enum": [
27275
- "input"
27437
+ "card"
27276
27438
  ]
27277
27439
  },
27278
- "label": {
27279
- "type": "string",
27280
- "description": "Text label displayed next to the input."
27440
+ "title": {
27441
+ "type": "string"
27281
27442
  },
27282
27443
  "hint": {
27283
27444
  "oneOf": [
@@ -27285,790 +27446,707 @@
27285
27446
  "type": "string"
27286
27447
  },
27287
27448
  {
27288
- "$ref": "#/components/schemas/ContentKitInlineElement"
27449
+ "type": "array",
27450
+ "items": {
27451
+ "$ref": "#/components/schemas/ContentKitInlineElement"
27452
+ }
27289
27453
  }
27290
27454
  ]
27291
27455
  },
27292
- "element": {
27456
+ "icon": {
27293
27457
  "oneOf": [
27294
27458
  {
27295
- "$ref": "#/components/schemas/ContentKitTextInput"
27296
- },
27297
- {
27298
- "$ref": "#/components/schemas/ContentKitSelect"
27299
- },
27300
- {
27301
- "$ref": "#/components/schemas/ContentKitSwitch"
27302
- },
27303
- {
27304
- "$ref": "#/components/schemas/ContentKitRadio"
27305
- },
27306
- {
27307
- "$ref": "#/components/schemas/ContentKitCheckbox"
27308
- },
27309
- {
27310
- "$ref": "#/components/schemas/ContentKitButton"
27459
+ "$ref": "#/components/schemas/ContentKitIcon"
27311
27460
  },
27312
27461
  {
27313
- "$ref": "#/components/schemas/ContentKitCodeBlock"
27462
+ "$ref": "#/components/schemas/ContentKitImage"
27314
27463
  }
27315
27464
  ]
27465
+ },
27466
+ "onPress": {
27467
+ "$ref": "#/components/schemas/ContentKitAction"
27468
+ },
27469
+ "children": {
27470
+ "type": "array",
27471
+ "items": {
27472
+ "$ref": "#/components/schemas/ContentKitDescendantElement"
27473
+ }
27474
+ },
27475
+ "buttons": {
27476
+ "type": "array",
27477
+ "description": "Buttons displayed in the top right corner of the card.",
27478
+ "items": {
27479
+ "$ref": "#/components/schemas/ContentKitButton"
27480
+ }
27316
27481
  }
27317
27482
  },
27318
27483
  "required": [
27319
- "type",
27320
- "label",
27321
- "element"
27484
+ "type"
27322
27485
  ]
27323
27486
  },
27324
- "ContentKitHint": {
27487
+ "ContentKitBuiltInSource": {
27325
27488
  "type": "object",
27326
- "description": "Element used to contextualize other elements or info.",
27489
+ "description": "Built-in sources that can be used to provide a ContentKitSelect.",
27327
27490
  "properties": {
27328
- "type": {
27491
+ "source": {
27329
27492
  "type": "string",
27330
27493
  "enum": [
27331
- "hint"
27494
+ "openapi"
27332
27495
  ]
27333
- },
27334
- "children": {
27335
- "type": "array",
27336
- "items": {
27337
- "$ref": "#/components/schemas/ContentKitInlineElement"
27338
- }
27339
27496
  }
27340
27497
  },
27341
27498
  "required": [
27342
- "type",
27343
- "children"
27499
+ "source"
27344
27500
  ]
27345
27501
  },
27346
- "ContentKitStepperStep": {
27502
+ "ContentKitSelectOption": {
27347
27503
  "type": "object",
27504
+ "description": "An individual option in a select element",
27348
27505
  "properties": {
27349
- "type": {
27350
- "type": "string",
27351
- "enum": [
27352
- "step"
27353
- ]
27354
- },
27355
27506
  "id": {
27356
- "description": "unique identifier for the step",
27357
27507
  "type": "string"
27358
27508
  },
27359
- "title": {
27360
- "description": "title of the step",
27361
- "type": "string",
27362
- "maxLength": 50
27363
- },
27364
- "next": {
27365
- "description": "indicates if the user can progress to the next step based on some internal validation or condition",
27366
- "type": "boolean",
27367
- "default": false
27509
+ "label": {
27510
+ "type": "string"
27368
27511
  },
27369
- "children": {
27370
- "type": "array",
27371
- "items": {
27372
- "$ref": "#/components/schemas/ContentKitDescendantElement"
27373
- },
27374
- "minItems": 1
27512
+ "icon": {
27513
+ "oneOf": [
27514
+ {
27515
+ "$ref": "#/components/schemas/ContentKitIcon"
27516
+ },
27517
+ {
27518
+ "$ref": "#/components/schemas/ContentKitImage"
27519
+ }
27520
+ ]
27375
27521
  }
27376
27522
  },
27377
27523
  "required": [
27378
- "type",
27379
27524
  "id",
27380
- "children"
27525
+ "label"
27381
27526
  ]
27382
27527
  },
27383
- "ContentKitBlockControl": {
27528
+ "ContentKitSelect": {
27384
27529
  "type": "object",
27385
- "description": "Control menu item displayed for the block.",
27530
+ "description": "Creates a drop down menu with a list of options for a user to choose.",
27386
27531
  "properties": {
27387
- "icon": {
27388
- "$ref": "#/components/schemas/ContentKitIcon"
27532
+ "type": {
27533
+ "type": "string",
27534
+ "enum": [
27535
+ "select"
27536
+ ]
27389
27537
  },
27390
- "label": {
27538
+ "disabled": {
27539
+ "type": "boolean"
27540
+ },
27541
+ "state": {
27542
+ "description": "State binding. The value of the input will be stored as a property in the state named after this ID.",
27391
27543
  "type": "string"
27392
27544
  },
27393
- "onPress": {
27545
+ "initialValue": {
27546
+ "description": "Value to initialize the select with.",
27547
+ "oneOf": [
27548
+ {
27549
+ "type": "string"
27550
+ },
27551
+ {
27552
+ "type": "array",
27553
+ "items": {
27554
+ "type": "string"
27555
+ }
27556
+ }
27557
+ ]
27558
+ },
27559
+ "onValueChange": {
27394
27560
  "$ref": "#/components/schemas/ContentKitAction"
27395
27561
  },
27396
- "confirm": {
27397
- "$ref": "#/components/schemas/ContentKitConfirm"
27398
- }
27399
- },
27400
- "required": [
27401
- "label",
27402
- "onPress"
27403
- ]
27404
- },
27405
- "ContentKitBlock": {
27406
- "type": "object",
27407
- "description": "Higher level element to represent a custom block.",
27408
- "properties": {
27409
- "type": {
27410
- "type": "string",
27411
- "enum": [
27412
- "block"
27413
- ]
27562
+ "placeholder": {
27563
+ "description": "Text that appears in the form control when it has no value set",
27564
+ "type": "string"
27414
27565
  },
27415
- "children": {
27416
- "type": "array",
27417
- "items": {
27418
- "$ref": "#/components/schemas/ContentKitDescendantElement"
27419
- }
27566
+ "multiple": {
27567
+ "description": "Should the select accept the selection of multiple options. If true, the state will be an array.",
27568
+ "type": "boolean"
27420
27569
  },
27421
- "controls": {
27422
- "type": "array",
27423
- "items": {
27424
- "oneOf": [
27425
- {
27426
- "$ref": "#/components/schemas/ContentKitBlockControl"
27427
- },
27428
- {
27429
- "type": "array",
27430
- "items": {
27431
- "$ref": "#/components/schemas/ContentKitBlockControl"
27432
- }
27570
+ "acceptInput": {
27571
+ "description": "Should the filter input be allowed to be selected as an option.",
27572
+ "type": "boolean"
27573
+ },
27574
+ "options": {
27575
+ "description": "Options to be displayed in the select.",
27576
+ "oneOf": [
27577
+ {
27578
+ "$ref": "#/components/schemas/ContentKitBuiltInSource"
27579
+ },
27580
+ {
27581
+ "type": "array",
27582
+ "description": "Static list of options",
27583
+ "items": {
27584
+ "$ref": "#/components/schemas/ContentKitSelectOption"
27433
27585
  }
27434
- ]
27435
- }
27586
+ },
27587
+ {
27588
+ "type": "object",
27589
+ "properties": {
27590
+ "url": {
27591
+ "oneOf": [
27592
+ {
27593
+ "type": "string",
27594
+ "description": "External source of options. The URL should respond with an array of options."
27595
+ },
27596
+ {
27597
+ "$ref": "#/components/schemas/ContentKitURL"
27598
+ }
27599
+ ]
27600
+ }
27601
+ },
27602
+ "required": [
27603
+ "url"
27604
+ ]
27605
+ }
27606
+ ]
27436
27607
  }
27437
27608
  },
27438
27609
  "required": [
27439
27610
  "type",
27440
- "children"
27611
+ "state",
27612
+ "options"
27441
27613
  ]
27442
27614
  },
27443
- "ContentKitModal": {
27615
+ "ContentKitSwitch": {
27444
27616
  "type": "object",
27445
- "description": "Overlay modal.",
27617
+ "description": "Renders a boolean input.",
27446
27618
  "properties": {
27447
27619
  "type": {
27448
27620
  "type": "string",
27449
27621
  "enum": [
27450
- "modal"
27622
+ "switch"
27451
27623
  ]
27452
27624
  },
27453
- "title": {
27454
- "type": "string"
27455
- },
27456
- "subtitle": {
27457
- "type": "array",
27458
- "items": {
27459
- "$ref": "#/components/schemas/ContentKitInlineElement"
27460
- }
27625
+ "disabled": {
27626
+ "type": "boolean"
27461
27627
  },
27462
- "size": {
27463
- "type": "string",
27464
- "enum": [
27465
- "medium",
27466
- "xlarge",
27467
- "fullscreen"
27468
- ]
27628
+ "state": {
27629
+ "description": "State binding. The value of the input will be stored as a property in the state named after this ID.",
27630
+ "type": "string"
27469
27631
  },
27470
- "returnValue": {
27471
- "description": "Data passed back to the parent view when the modal is closed. These data are accessible in the \"@ui.modal.close\"",
27472
- "type": "object"
27632
+ "initialValue": {
27633
+ "description": "Value to initialize the switch with.",
27634
+ "type": "boolean"
27473
27635
  },
27474
- "children": {
27475
- "type": "array",
27476
- "items": {
27477
- "$ref": "#/components/schemas/ContentKitDescendantElement"
27478
- }
27636
+ "onValueChange": {
27637
+ "$ref": "#/components/schemas/ContentKitAction"
27479
27638
  },
27480
- "submit": {
27481
- "$ref": "#/components/schemas/ContentKitButton"
27639
+ "confirm": {
27640
+ "$ref": "#/components/schemas/ContentKitConfirm"
27482
27641
  }
27483
27642
  },
27484
27643
  "required": [
27485
27644
  "type",
27486
- "children"
27645
+ "state"
27487
27646
  ]
27488
27647
  },
27489
- "ContentKitStepper": {
27648
+ "ContentKitRadio": {
27490
27649
  "type": "object",
27491
27650
  "properties": {
27492
27651
  "type": {
27493
27652
  "type": "string",
27494
27653
  "enum": [
27495
- "stepper"
27654
+ "radio"
27496
27655
  ]
27497
27656
  },
27498
- "activeStep": {
27499
- "type": "string",
27500
- "description": "id of the currently active step"
27657
+ "disabled": {
27658
+ "type": "boolean"
27501
27659
  },
27502
- "onStepChange": {
27503
- "$ref": "#/components/schemas/ContentKitAction"
27660
+ "state": {
27661
+ "description": "State binding. The value of the input will be stored as a property in the state named after this ID.",
27662
+ "type": "string"
27504
27663
  },
27505
- "onComplete": {
27506
- "$ref": "#/components/schemas/ContentKitAction"
27664
+ "value": {
27665
+ "description": "Value to store in th state when the checkbox is selected.",
27666
+ "oneOf": [
27667
+ {
27668
+ "type": "string"
27669
+ },
27670
+ {
27671
+ "type": "number"
27672
+ }
27673
+ ]
27507
27674
  },
27508
- "children": {
27509
- "type": "array",
27510
- "items": {
27511
- "$ref": "#/components/schemas/ContentKitStepperStep"
27512
- },
27513
- "minItems": 1
27675
+ "confirm": {
27676
+ "$ref": "#/components/schemas/ContentKitConfirm"
27514
27677
  }
27515
27678
  },
27516
27679
  "required": [
27517
27680
  "type",
27518
- "activeStep",
27519
- "onStepChange",
27520
- "onComplete",
27521
- "children"
27681
+ "state",
27682
+ "value"
27522
27683
  ]
27523
27684
  },
27524
- "ContentKitConfiguration": {
27685
+ "ContentKitCheckbox": {
27525
27686
  "type": "object",
27526
- "description": "Higher level element to define a configuration block. Does not add any UI elements or wrappers. Must be used as a top level element for any configuration component.",
27527
27687
  "properties": {
27528
27688
  "type": {
27529
27689
  "type": "string",
27530
27690
  "enum": [
27531
- "configuration"
27691
+ "checkbox"
27532
27692
  ]
27533
27693
  },
27534
- "children": {
27694
+ "state": {
27695
+ "description": "State binding. The value of the input will be stored as a property in the state named after this ID.",
27696
+ "type": "string"
27697
+ },
27698
+ "value": {
27699
+ "description": "Value to store in a state array when the checkbox is selected.",
27535
27700
  "oneOf": [
27536
27701
  {
27537
- "type": "array",
27538
- "items": {
27539
- "$ref": "#/components/schemas/ContentKitStepper"
27540
- },
27541
- "minItems": 1,
27542
- "maxItems": 1
27702
+ "type": "string"
27543
27703
  },
27544
27704
  {
27545
- "type": "array",
27546
- "items": {
27547
- "$ref": "#/components/schemas/ContentKitDescendantElement"
27548
- },
27549
- "minItems": 1
27705
+ "type": "number"
27550
27706
  }
27551
27707
  ]
27708
+ },
27709
+ "confirm": {
27710
+ "$ref": "#/components/schemas/ContentKitConfirm"
27552
27711
  }
27553
27712
  },
27554
27713
  "required": [
27555
27714
  "type",
27556
- "children"
27715
+ "state",
27716
+ "value"
27557
27717
  ]
27558
27718
  },
27559
- "ContentKitRootElement": {
27560
- "description": "Element used as root",
27561
- "oneOf": [
27562
- {
27563
- "$ref": "#/components/schemas/ContentKitBlock"
27564
- },
27565
- {
27566
- "$ref": "#/components/schemas/ContentKitModal"
27567
- },
27568
- {
27569
- "$ref": "#/components/schemas/ContentKitConfiguration"
27570
- }
27571
- ],
27572
- "discriminator": {
27573
- "propertyName": "type"
27574
- }
27575
- },
27576
- "ContentKitRenderOutputElement": {
27719
+ "ContentKitInput": {
27577
27720
  "type": "object",
27578
- "description": "Output of type element in the lifecycle of the component.",
27721
+ "description": "Field for an input.",
27579
27722
  "properties": {
27580
27723
  "type": {
27581
27724
  "type": "string",
27582
27725
  "enum": [
27583
- "element"
27726
+ "input"
27584
27727
  ]
27585
27728
  },
27586
- "element": {
27587
- "$ref": "#/components/schemas/ContentKitRootElement"
27588
- },
27589
- "state": {
27590
- "type": "object"
27729
+ "label": {
27730
+ "type": "string",
27731
+ "description": "Text label displayed next to the input."
27591
27732
  },
27592
- "props": {
27593
- "$ref": "#/components/schemas/PlainObject"
27733
+ "hint": {
27734
+ "oneOf": [
27735
+ {
27736
+ "type": "string"
27737
+ },
27738
+ {
27739
+ "$ref": "#/components/schemas/ContentKitInlineElement"
27740
+ }
27741
+ ]
27742
+ },
27743
+ "element": {
27744
+ "oneOf": [
27745
+ {
27746
+ "$ref": "#/components/schemas/ContentKitTextInput"
27747
+ },
27748
+ {
27749
+ "$ref": "#/components/schemas/ContentKitSelect"
27750
+ },
27751
+ {
27752
+ "$ref": "#/components/schemas/ContentKitSwitch"
27753
+ },
27754
+ {
27755
+ "$ref": "#/components/schemas/ContentKitRadio"
27756
+ },
27757
+ {
27758
+ "$ref": "#/components/schemas/ContentKitCheckbox"
27759
+ },
27760
+ {
27761
+ "$ref": "#/components/schemas/ContentKitButton"
27762
+ },
27763
+ {
27764
+ "$ref": "#/components/schemas/ContentKitCodeBlock"
27765
+ }
27766
+ ]
27594
27767
  }
27595
27768
  },
27596
27769
  "required": [
27597
- "element",
27598
- "state",
27599
- "props"
27770
+ "type",
27771
+ "label",
27772
+ "element"
27600
27773
  ]
27601
27774
  },
27602
- "ContentKitRenderOutputComplete": {
27775
+ "ContentKitHint": {
27603
27776
  "type": "object",
27604
- "description": "Output of completed lifecycle of the component.",
27777
+ "description": "Element used to contextualize other elements or info.",
27605
27778
  "properties": {
27606
27779
  "type": {
27607
27780
  "type": "string",
27608
27781
  "enum": [
27609
- "complete"
27782
+ "hint"
27610
27783
  ]
27611
27784
  },
27612
- "returnValue": {
27613
- "type": "object"
27785
+ "children": {
27786
+ "type": "array",
27787
+ "items": {
27788
+ "$ref": "#/components/schemas/ContentKitInlineElement"
27789
+ }
27614
27790
  }
27615
27791
  },
27616
27792
  "required": [
27617
- "type"
27618
- ]
27619
- },
27620
- "ContentKitRenderOutput": {
27621
- "type": "object",
27622
- "description": "Output of the integration when rendering a UI.",
27623
- "oneOf": [
27624
- {
27625
- "$ref": "#/components/schemas/ContentKitRenderOutputElement"
27626
- },
27627
- {
27628
- "$ref": "#/components/schemas/ContentKitRenderOutputComplete"
27629
- }
27793
+ "type",
27794
+ "children"
27630
27795
  ]
27631
27796
  },
27632
- "RenderIntegrationUI": {
27797
+ "ContentKitStepperStep": {
27633
27798
  "type": "object",
27634
27799
  "properties": {
27635
- "componentId": {
27800
+ "type": {
27636
27801
  "type": "string",
27637
- "description": "ID of the component to render in the integration."
27802
+ "enum": [
27803
+ "step"
27804
+ ]
27638
27805
  },
27639
- "props": {
27640
- "description": "Current properties of the UI.",
27641
- "$ref": "#/components/schemas/PlainObject"
27806
+ "id": {
27807
+ "description": "unique identifier for the step",
27808
+ "type": "string"
27642
27809
  },
27643
- "state": {
27644
- "type": "object",
27645
- "description": "Current local state of the UI."
27810
+ "title": {
27811
+ "description": "title of the step",
27812
+ "type": "string",
27813
+ "maxLength": 50
27646
27814
  },
27647
- "context": {
27648
- "$ref": "#/components/schemas/ContentKitContext"
27815
+ "next": {
27816
+ "description": "indicates if the user can progress to the next step based on some internal validation or condition",
27817
+ "type": "boolean",
27818
+ "default": false
27649
27819
  },
27650
- "action": {
27651
- "$ref": "#/components/schemas/ContentKitAction"
27820
+ "children": {
27821
+ "type": "array",
27822
+ "items": {
27823
+ "$ref": "#/components/schemas/ContentKitDescendantElement"
27824
+ },
27825
+ "minItems": 1
27652
27826
  }
27653
27827
  },
27654
27828
  "required": [
27655
- "componentId",
27656
- "props",
27657
- "context"
27829
+ "type",
27830
+ "id",
27831
+ "children"
27658
27832
  ]
27659
27833
  },
27660
- "UpdateIntegrationInstallation": {
27834
+ "ContentKitBlockControl": {
27661
27835
  "type": "object",
27836
+ "description": "Control menu item displayed for the block.",
27662
27837
  "properties": {
27663
- "externalIds": {
27664
- "$ref": "#/components/schemas/IntegrationInstallationExternalIds"
27838
+ "icon": {
27839
+ "$ref": "#/components/schemas/ContentKitIcon"
27665
27840
  },
27666
- "configuration": {
27667
- "$ref": "#/components/schemas/IntegrationInstallationConfiguration"
27841
+ "label": {
27842
+ "type": "string"
27668
27843
  },
27669
- "space_selection": {
27670
- "$ref": "#/components/schemas/IntegrationInstallationSpaceSelection"
27844
+ "onPress": {
27845
+ "$ref": "#/components/schemas/ContentKitAction"
27671
27846
  },
27672
- "site_selection": {
27673
- "$ref": "#/components/schemas/IntegrationInstallationSiteSelection"
27674
- }
27675
- }
27676
- },
27677
- "APITemporaryToken": {
27678
- "type": "object",
27679
- "properties": {
27680
- "token": {
27681
- "type": "string",
27682
- "description": "Temporary access token to authenticate with the API"
27847
+ "confirm": {
27848
+ "$ref": "#/components/schemas/ContentKitConfirm"
27683
27849
  }
27684
27850
  },
27685
27851
  "required": [
27686
- "token"
27852
+ "label",
27853
+ "onPress"
27687
27854
  ]
27688
27855
  },
27689
- "UpdateIntegrationSpaceInstallation": {
27856
+ "ContentKitBlock": {
27690
27857
  "type": "object",
27858
+ "description": "Higher level element to represent a custom block.",
27691
27859
  "properties": {
27692
- "externalIds": {
27693
- "$ref": "#/components/schemas/IntegrationInstallationExternalIds"
27860
+ "type": {
27861
+ "type": "string",
27862
+ "enum": [
27863
+ "block"
27864
+ ]
27694
27865
  },
27695
- "configuration": {
27696
- "$ref": "#/components/schemas/IntegrationInstallationConfiguration"
27697
- }
27698
- }
27699
- },
27700
- "SiteType": {
27701
- "type": "string",
27702
- "description": "The type of the site",
27703
- "enum": [
27704
- "basic",
27705
- "premium",
27706
- "ultimate",
27707
- "sponsored",
27708
- "legacy-basic",
27709
- "legacy-premium"
27710
- ]
27711
- },
27712
- "SiteTitle": {
27713
- "type": "string",
27714
- "description": "Title of the site",
27715
- "minLength": 2,
27716
- "maxLength": 128
27717
- },
27718
- "SiteHostname": {
27719
- "type": "string",
27720
- "description": "Custom hostname for the site, for e.g. docs.mycompany.com",
27721
- "pattern": "^([a-z0-9]([a-z0-9-]{0,61}[a-z0-9])?[.]){2,}[a-z0-9][a-z0-9-]{0,61}[a-z0-9]$",
27722
- "maxLength": 512
27723
- },
27724
- "SiteBasename": {
27725
- "type": "string",
27726
- "description": "Basename for the site. For e.g. api",
27727
- "minLength": 1,
27728
- "maxLength": 100
27729
- },
27730
- "SiteProxyOrigin": {
27731
- "type": "string",
27732
- "description": "Proxy URL for the site, for e.g. company.com/docs or www.company.com/developer/docs etc.",
27733
- "pattern": "^([\\w-]+\\.)*[\\w-]+\\.[a-zA-Z]{2,}(\\/[\\w-]+)+$",
27734
- "maxLength": 512
27735
- },
27736
- "SiteProxy": {
27737
- "type": "object",
27738
- "properties": {
27739
- "origin": {
27740
- "$ref": "#/components/schemas/SiteProxyOrigin"
27866
+ "children": {
27867
+ "type": "array",
27868
+ "items": {
27869
+ "$ref": "#/components/schemas/ContentKitDescendantElement"
27870
+ }
27741
27871
  },
27742
- "target": {
27743
- "type": "string",
27744
- "description": "The target URL to which the requests at the origin URL should be proxied to."
27872
+ "controls": {
27873
+ "type": "array",
27874
+ "items": {
27875
+ "oneOf": [
27876
+ {
27877
+ "$ref": "#/components/schemas/ContentKitBlockControl"
27878
+ },
27879
+ {
27880
+ "type": "array",
27881
+ "items": {
27882
+ "$ref": "#/components/schemas/ContentKitBlockControl"
27883
+ }
27884
+ }
27885
+ ]
27886
+ }
27745
27887
  }
27746
27888
  },
27747
27889
  "required": [
27748
- "origin",
27749
- "target"
27750
- ]
27751
- },
27752
- "SiteVisibility": {
27753
- "type": "string",
27754
- "description": "The visibility setting of the site determines the audience of the site.\n* `public`: Anyone can access the site, and the site is indexed by search engines.\n* `unlisted`: Anyone can access the site, and the site is not indexed by search engines\n* `share-link`: Anyone with a secret token in the url can access the site.\n* `visitor-auth`: Anyone authenticated through a JWT token can access the site.\n",
27755
- "enum": [
27756
- "public",
27757
- "unlisted",
27758
- "share-link",
27759
- "visitor-auth"
27890
+ "type",
27891
+ "children"
27760
27892
  ]
27761
27893
  },
27762
- "SiteAdaptiveContent": {
27894
+ "ContentKitModal": {
27763
27895
  "type": "object",
27896
+ "description": "Overlay modal.",
27764
27897
  "properties": {
27765
- "enabled": {
27766
- "type": "boolean",
27767
- "description": "Whether adaptive content should be enabled on the site."
27768
- }
27769
- },
27770
- "required": [
27771
- "enabled"
27772
- ]
27773
- },
27774
- "SiteAdsTopic": {
27775
- "type": "string",
27776
- "description": "Topic of the content",
27777
- "enum": [
27778
- "webdev",
27779
- "crypto"
27780
- ]
27781
- },
27782
- "SiteAds": {
27783
- "oneOf": [
27784
- {
27785
- "type": "object",
27786
- "required": [
27787
- "status",
27788
- "submittable"
27789
- ],
27790
- "properties": {
27791
- "status": {
27792
- "type": "string",
27793
- "enum": [
27794
- "pending"
27795
- ]
27796
- },
27797
- "submittable": {
27798
- "type": "boolean",
27799
- "description": "True if the user can submit the site for review."
27800
- }
27801
- }
27898
+ "type": {
27899
+ "type": "string",
27900
+ "enum": [
27901
+ "modal"
27902
+ ]
27802
27903
  },
27803
- {
27804
- "type": "object",
27805
- "required": [
27806
- "status",
27807
- "topic",
27808
- "accountEmail"
27809
- ],
27810
- "properties": {
27811
- "status": {
27812
- "type": "string",
27813
- "enum": [
27814
- "in-review"
27815
- ]
27816
- },
27817
- "topic": {
27818
- "$ref": "#/components/schemas/SiteAdsTopic"
27819
- }
27820
- }
27904
+ "title": {
27905
+ "type": "string"
27821
27906
  },
27822
- {
27823
- "type": "object",
27824
- "required": [
27825
- "status"
27826
- ],
27827
- "properties": {
27828
- "status": {
27829
- "type": "string",
27830
- "enum": [
27831
- "rejected"
27832
- ]
27833
- },
27834
- "reason": {
27835
- "type": "string",
27836
- "description": "Reason for the rejection"
27837
- }
27907
+ "subtitle": {
27908
+ "type": "array",
27909
+ "items": {
27910
+ "$ref": "#/components/schemas/ContentKitInlineElement"
27838
27911
  }
27839
27912
  },
27840
- {
27841
- "type": "object",
27842
- "required": [
27843
- "status",
27844
- "topic",
27845
- "zoneId"
27846
- ],
27847
- "properties": {
27848
- "status": {
27849
- "type": "string",
27850
- "enum": [
27851
- "live",
27852
- "disabled"
27853
- ]
27854
- },
27855
- "topic": {
27856
- "$ref": "#/components/schemas/SiteAdsTopic"
27857
- },
27858
- "zoneId": {
27859
- "type": "string",
27860
- "description": "The ad network zone ID"
27861
- }
27913
+ "size": {
27914
+ "type": "string",
27915
+ "enum": [
27916
+ "medium",
27917
+ "xlarge",
27918
+ "fullscreen"
27919
+ ]
27920
+ },
27921
+ "returnValue": {
27922
+ "description": "Data passed back to the parent view when the modal is closed. These data are accessible in the \"@ui.modal.close\"",
27923
+ "type": "object"
27924
+ },
27925
+ "children": {
27926
+ "type": "array",
27927
+ "items": {
27928
+ "$ref": "#/components/schemas/ContentKitDescendantElement"
27862
27929
  }
27930
+ },
27931
+ "submit": {
27932
+ "$ref": "#/components/schemas/ContentKitButton"
27863
27933
  }
27934
+ },
27935
+ "required": [
27936
+ "type",
27937
+ "children"
27864
27938
  ]
27865
27939
  },
27866
- "SiteCustomizationFeature": {
27867
- "type": "string",
27868
- "description": "A list of all premium customizations.",
27869
- "enum": [
27870
- "header-logo",
27871
- "theme-preset",
27872
- "premium-fonts",
27873
- "custom-icons",
27874
- "footer-logo",
27875
- "footer-links",
27876
- "footer-copyright",
27877
- "semantic-colors"
27878
- ]
27879
- },
27880
- "SiteFeature": {
27881
- "oneOf": [
27882
- {
27883
- "type": "object",
27884
- "description": "A site feature and the plan it is available on.",
27885
- "properties": {
27886
- "id": {
27887
- "description": "The feature identifier, matching the feature table keys in the pricing definition",
27888
- "type": "string",
27889
- "enum": [
27890
- "sites-sections",
27891
- "sites-visitor-authentication",
27892
- "sites-adaptive-content",
27893
- "sites-redirects",
27894
- "sites-custom-domain",
27895
- "sites-ai-search",
27896
- "sites-pdf-export",
27897
- "sites-page-feedback",
27898
- "sites-unlisted-visibility",
27899
- "sites-share-links",
27900
- "sites-custom-fonts"
27901
- ]
27902
- },
27903
- "plan": {
27904
- "$ref": "#/components/schemas/SiteType"
27905
- },
27906
- "frozen": {
27907
- "description": "A frozen feature is still enabled but cannot be changed or modified.",
27908
- "type": "boolean"
27909
- }
27910
- },
27911
- "required": [
27912
- "id",
27913
- "plan",
27914
- "frozen"
27940
+ "ContentKitStepper": {
27941
+ "type": "object",
27942
+ "properties": {
27943
+ "type": {
27944
+ "type": "string",
27945
+ "enum": [
27946
+ "stepper"
27915
27947
  ]
27916
27948
  },
27917
- {
27918
- "type": "object",
27919
- "description": "The advanced customizations feature, carrying also which individual customization are used",
27920
- "properties": {
27921
- "id": {
27922
- "description": "The feature identifier, always set to `sites-advanced-customization`",
27923
- "type": "string",
27924
- "enum": [
27925
- "sites-advanced-customization"
27926
- ]
27927
- },
27928
- "plan": {
27929
- "$ref": "#/components/schemas/SiteType"
27930
- },
27931
- "frozen": {
27932
- "description": "A frozen feature is still enabled but cannot be changed or modified.",
27933
- "type": "boolean"
27949
+ "activeStep": {
27950
+ "type": "string",
27951
+ "description": "id of the currently active step"
27952
+ },
27953
+ "onStepChange": {
27954
+ "$ref": "#/components/schemas/ContentKitAction"
27955
+ },
27956
+ "onComplete": {
27957
+ "$ref": "#/components/schemas/ContentKitAction"
27958
+ },
27959
+ "children": {
27960
+ "type": "array",
27961
+ "items": {
27962
+ "$ref": "#/components/schemas/ContentKitStepperStep"
27963
+ },
27964
+ "minItems": 1
27965
+ }
27966
+ },
27967
+ "required": [
27968
+ "type",
27969
+ "activeStep",
27970
+ "onStepChange",
27971
+ "onComplete",
27972
+ "children"
27973
+ ]
27974
+ },
27975
+ "ContentKitConfiguration": {
27976
+ "type": "object",
27977
+ "description": "Higher level element to define a configuration block. Does not add any UI elements or wrappers. Must be used as a top level element for any configuration component.",
27978
+ "properties": {
27979
+ "type": {
27980
+ "type": "string",
27981
+ "enum": [
27982
+ "configuration"
27983
+ ]
27984
+ },
27985
+ "children": {
27986
+ "oneOf": [
27987
+ {
27988
+ "type": "array",
27989
+ "items": {
27990
+ "$ref": "#/components/schemas/ContentKitStepper"
27991
+ },
27992
+ "minItems": 1,
27993
+ "maxItems": 1
27934
27994
  },
27935
- "customizations": {
27936
- "description": "A list of the actual advanced customizations used",
27995
+ {
27937
27996
  "type": "array",
27938
27997
  "items": {
27939
- "$ref": "#/components/schemas/SiteCustomizationFeature"
27940
- }
27998
+ "$ref": "#/components/schemas/ContentKitDescendantElement"
27999
+ },
28000
+ "minItems": 1
27941
28001
  }
27942
- },
27943
- "required": [
27944
- "id",
27945
- "plan",
27946
- "frozen",
27947
- "customizations"
27948
28002
  ]
27949
28003
  }
28004
+ },
28005
+ "required": [
28006
+ "type",
28007
+ "children"
27950
28008
  ]
27951
28009
  },
27952
- "Site": {
28010
+ "ContentKitRootElement": {
28011
+ "description": "Element used as root",
28012
+ "oneOf": [
28013
+ {
28014
+ "$ref": "#/components/schemas/ContentKitBlock"
28015
+ },
28016
+ {
28017
+ "$ref": "#/components/schemas/ContentKitModal"
28018
+ },
28019
+ {
28020
+ "$ref": "#/components/schemas/ContentKitConfiguration"
28021
+ }
28022
+ ],
28023
+ "discriminator": {
28024
+ "propertyName": "type"
28025
+ }
28026
+ },
28027
+ "ContentKitRenderOutputElement": {
27953
28028
  "type": "object",
28029
+ "description": "Output of type element in the lifecycle of the component.",
27954
28030
  "properties": {
27955
- "object": {
28031
+ "type": {
27956
28032
  "type": "string",
27957
28033
  "enum": [
27958
- "site"
28034
+ "element"
27959
28035
  ]
27960
28036
  },
27961
- "id": {
27962
- "type": "string",
27963
- "description": "Unique identifier of the site"
27964
- },
27965
- "type": {
27966
- "$ref": "#/components/schemas/SiteType"
27967
- },
27968
- "title": {
27969
- "$ref": "#/components/schemas/SiteTitle"
28037
+ "element": {
28038
+ "$ref": "#/components/schemas/ContentKitRootElement"
27970
28039
  },
27971
- "hostname": {
27972
- "$ref": "#/components/schemas/SiteHostname"
28040
+ "state": {
28041
+ "type": "object"
27973
28042
  },
27974
- "basename": {
27975
- "$ref": "#/components/schemas/SiteBasename"
28043
+ "props": {
28044
+ "$ref": "#/components/schemas/PlainObject"
28045
+ }
28046
+ },
28047
+ "required": [
28048
+ "element",
28049
+ "state",
28050
+ "props"
28051
+ ]
28052
+ },
28053
+ "ContentKitRenderOutputComplete": {
28054
+ "type": "object",
28055
+ "description": "Output of completed lifecycle of the component.",
28056
+ "properties": {
28057
+ "type": {
28058
+ "type": "string",
28059
+ "enum": [
28060
+ "complete"
28061
+ ]
27976
28062
  },
27977
- "proxy": {
27978
- "$ref": "#/components/schemas/SiteProxy"
28063
+ "returnValue": {
28064
+ "type": "object"
28065
+ }
28066
+ },
28067
+ "required": [
28068
+ "type"
28069
+ ]
28070
+ },
28071
+ "ContentKitRenderOutput": {
28072
+ "type": "object",
28073
+ "description": "Output of the integration when rendering a UI.",
28074
+ "oneOf": [
28075
+ {
28076
+ "$ref": "#/components/schemas/ContentKitRenderOutputElement"
27979
28077
  },
27980
- "visibility": {
27981
- "$ref": "#/components/schemas/SiteVisibility"
28078
+ {
28079
+ "$ref": "#/components/schemas/ContentKitRenderOutputComplete"
28080
+ }
28081
+ ]
28082
+ },
28083
+ "RenderIntegrationUI": {
28084
+ "type": "object",
28085
+ "properties": {
28086
+ "componentId": {
28087
+ "type": "string",
28088
+ "description": "ID of the component to render in the integration."
27982
28089
  },
27983
- "published": {
27984
- "type": "boolean",
27985
- "description": "Whether the site is live or not. If true, the site is accessible to the audience defined by the visibility setting."
28090
+ "props": {
28091
+ "description": "Current properties of the UI.",
28092
+ "$ref": "#/components/schemas/PlainObject"
27986
28093
  },
27987
- "siteSpaces": {
27988
- "type": "number"
28094
+ "state": {
28095
+ "type": "object",
28096
+ "description": "Current local state of the UI."
27989
28097
  },
27990
- "createdAt": {
27991
- "type": "string",
27992
- "format": "date-time"
28098
+ "context": {
28099
+ "$ref": "#/components/schemas/ContentKitContext"
27993
28100
  },
27994
- "adaptiveContent": {
27995
- "$ref": "#/components/schemas/SiteAdaptiveContent"
28101
+ "action": {
28102
+ "$ref": "#/components/schemas/ContentKitAction"
28103
+ }
28104
+ },
28105
+ "required": [
28106
+ "componentId",
28107
+ "props",
28108
+ "context"
28109
+ ]
28110
+ },
28111
+ "UpdateIntegrationInstallation": {
28112
+ "type": "object",
28113
+ "properties": {
28114
+ "externalIds": {
28115
+ "$ref": "#/components/schemas/IntegrationInstallationExternalIds"
27996
28116
  },
27997
- "ads": {
27998
- "$ref": "#/components/schemas/SiteAds"
28117
+ "configuration": {
28118
+ "$ref": "#/components/schemas/IntegrationInstallationConfiguration"
27999
28119
  },
28000
- "features": {
28001
- "description": "A list of all premium features enabled on this site. For each feature we list the plan they belong to and whether the feature is frozen. A frozen feature is still enabled but cannot be changed or modified.\n",
28002
- "type": "array",
28003
- "items": {
28004
- "$ref": "#/components/schemas/SiteFeature"
28005
- }
28120
+ "space_selection": {
28121
+ "$ref": "#/components/schemas/IntegrationInstallationSpaceSelection"
28006
28122
  },
28007
- "urls": {
28008
- "type": "object",
28009
- "description": "URLs associated with the object",
28010
- "properties": {
28011
- "location": {
28012
- "type": "string",
28013
- "description": "URL of the site in the API",
28014
- "format": "uri"
28015
- },
28016
- "app": {
28017
- "type": "string",
28018
- "description": "URL of the site in the application",
28019
- "format": "uri"
28020
- },
28021
- "published": {
28022
- "type": "string",
28023
- "description": "URL of the published version of the site. Only defined when site is published.",
28024
- "format": "uri"
28025
- }
28026
- },
28027
- "required": [
28028
- "app",
28029
- "location"
28030
- ]
28123
+ "site_selection": {
28124
+ "$ref": "#/components/schemas/IntegrationInstallationSiteSelection"
28125
+ }
28126
+ }
28127
+ },
28128
+ "APITemporaryToken": {
28129
+ "type": "object",
28130
+ "properties": {
28131
+ "token": {
28132
+ "type": "string",
28133
+ "description": "Temporary access token to authenticate with the API"
28031
28134
  }
28032
28135
  },
28033
28136
  "required": [
28034
- "object",
28035
- "id",
28036
- "type",
28037
- "title",
28038
- "visibility",
28039
- "published",
28040
- "createdAt",
28041
- "siteSpaces",
28042
- "defaultSpace",
28043
- "features",
28044
- "urls"
28137
+ "token"
28045
28138
  ]
28046
28139
  },
28047
- "IntegrationSiteInstallation": {
28048
- "allOf": [
28049
- {
28050
- "$ref": "#/components/schemas/IntegrationContentInstallationBase"
28140
+ "UpdateIntegrationSpaceInstallation": {
28141
+ "type": "object",
28142
+ "properties": {
28143
+ "externalIds": {
28144
+ "$ref": "#/components/schemas/IntegrationInstallationExternalIds"
28051
28145
  },
28052
- {
28053
- "type": "object",
28054
- "properties": {
28055
- "site": {
28056
- "description": "The site the integration is installed on. Using the string value is deprecated in favor of site.id",
28057
- "oneOf": [
28058
- {
28059
- "type": "string"
28060
- },
28061
- {
28062
- "$ref": "#/components/schemas/Site"
28063
- }
28064
- ]
28065
- }
28066
- },
28067
- "required": [
28068
- "site"
28069
- ]
28146
+ "configuration": {
28147
+ "$ref": "#/components/schemas/IntegrationInstallationConfiguration"
28070
28148
  }
28071
- ]
28149
+ }
28072
28150
  },
28073
28151
  "UpdateIntegrationSiteInstallation": {
28074
28152
  "type": "object",
@@ -29762,14 +29840,9 @@
29762
29840
  "location": {
29763
29841
  "description": "URL of the OpenAPI specification version in the API",
29764
29842
  "$ref": "#/components/schemas/URL"
29765
- },
29766
- "app": {
29767
- "description": "URL of the OpenAPI specification version in the application",
29768
- "$ref": "#/components/schemas/URL"
29769
29843
  }
29770
29844
  },
29771
29845
  "required": [
29772
- "app",
29773
29846
  "location"
29774
29847
  ]
29775
29848
  }