@@ -20,9 +20,17 @@ mockedApiResponse.Schema = {
2020 "wp/v2",
2121 "wp-site-health/v1",
2222 "wp-block-editor/v1",
23- "wp-abilities/v1"
23+ "wp-abilities/v1",
24+ "wp-collaboration/v1",
25+ "wp-sync/v1"
2426 ],
25- "authentication": [],
27+ "authentication": {
28+ "application-passwords": {
29+ "endpoints": {
30+ "authorization": "http://example.org/wp-admin/authorize-application.php"
31+ }
32+ }
33+ },
2634 "routes": {
2735 "/": {
2836 "namespace": "",
@@ -12692,6 +12700,240 @@ mockedApiResponse.Schema = {
1269212700 }
1269312701 }
1269412702 ]
12703+ },
12704+ "/wp-collaboration/v1": {
12705+ "namespace": "wp-collaboration/v1",
12706+ "methods": [
12707+ "GET"
12708+ ],
12709+ "endpoints": [
12710+ {
12711+ "methods": [
12712+ "GET"
12713+ ],
12714+ "args": {
12715+ "namespace": {
12716+ "default": "wp-collaboration/v1",
12717+ "required": false
12718+ },
12719+ "context": {
12720+ "default": "view",
12721+ "required": false
12722+ }
12723+ }
12724+ }
12725+ ],
12726+ "_links": {
12727+ "self": [
12728+ {
12729+ "href": "http://example.org/index.php?rest_route=/wp-collaboration/v1"
12730+ }
12731+ ]
12732+ }
12733+ },
12734+ "/wp-collaboration/v1/updates": {
12735+ "namespace": "wp-collaboration/v1",
12736+ "methods": [
12737+ "POST"
12738+ ],
12739+ "endpoints": [
12740+ {
12741+ "methods": [
12742+ "POST"
12743+ ],
12744+ "args": {
12745+ "rooms": {
12746+ "items": {
12747+ "properties": {
12748+ "after": {
12749+ "minimum": 0,
12750+ "required": true,
12751+ "type": "integer"
12752+ },
12753+ "awareness": {
12754+ "required": true,
12755+ "type": [
12756+ "object",
12757+ "null"
12758+ ]
12759+ },
12760+ "client_id": {
12761+ "minimum": 1,
12762+ "minLength": 1,
12763+ "maxLength": 32,
12764+ "required": true,
12765+ "type": [
12766+ "string",
12767+ "integer"
12768+ ],
12769+ "sanitize_callback": {}
12770+ },
12771+ "room": {
12772+ "required": true,
12773+ "type": "string",
12774+ "pattern": "^[^/]+/[^/:]+(?::\\S+)?$",
12775+ "maxLength": 191
12776+ },
12777+ "updates": {
12778+ "items": {
12779+ "properties": {
12780+ "data": {
12781+ "type": "string",
12782+ "required": true,
12783+ "maxLength": 1048576
12784+ },
12785+ "type": {
12786+ "type": "string",
12787+ "required": true,
12788+ "enum": [
12789+ "compaction",
12790+ "sync_step1",
12791+ "sync_step2",
12792+ "update"
12793+ ]
12794+ }
12795+ },
12796+ "required": true,
12797+ "type": "object"
12798+ },
12799+ "minItems": 0,
12800+ "required": true,
12801+ "type": "array"
12802+ }
12803+ },
12804+ "type": "object"
12805+ },
12806+ "maxItems": 50,
12807+ "type": "array",
12808+ "required": true
12809+ }
12810+ }
12811+ }
12812+ ],
12813+ "_links": {
12814+ "self": [
12815+ {
12816+ "href": "http://example.org/index.php?rest_route=/wp-collaboration/v1/updates"
12817+ }
12818+ ]
12819+ }
12820+ },
12821+ "/wp-sync/v1": {
12822+ "namespace": "wp-sync/v1",
12823+ "methods": [
12824+ "GET"
12825+ ],
12826+ "endpoints": [
12827+ {
12828+ "methods": [
12829+ "GET"
12830+ ],
12831+ "args": {
12832+ "namespace": {
12833+ "default": "wp-sync/v1",
12834+ "required": false
12835+ },
12836+ "context": {
12837+ "default": "view",
12838+ "required": false
12839+ }
12840+ }
12841+ }
12842+ ],
12843+ "_links": {
12844+ "self": [
12845+ {
12846+ "href": "http://example.org/index.php?rest_route=/wp-sync/v1"
12847+ }
12848+ ]
12849+ }
12850+ },
12851+ "/wp-sync/v1/updates": {
12852+ "namespace": "wp-sync/v1",
12853+ "methods": [
12854+ "POST"
12855+ ],
12856+ "endpoints": [
12857+ {
12858+ "methods": [
12859+ "POST"
12860+ ],
12861+ "args": {
12862+ "rooms": {
12863+ "items": {
12864+ "properties": {
12865+ "after": {
12866+ "minimum": 0,
12867+ "required": true,
12868+ "type": "integer"
12869+ },
12870+ "awareness": {
12871+ "required": true,
12872+ "type": [
12873+ "object",
12874+ "null"
12875+ ]
12876+ },
12877+ "client_id": {
12878+ "minimum": 1,
12879+ "minLength": 1,
12880+ "maxLength": 32,
12881+ "required": true,
12882+ "type": [
12883+ "string",
12884+ "integer"
12885+ ],
12886+ "sanitize_callback": {}
12887+ },
12888+ "room": {
12889+ "required": true,
12890+ "type": "string",
12891+ "pattern": "^[^/]+/[^/:]+(?::\\S+)?$",
12892+ "maxLength": 191
12893+ },
12894+ "updates": {
12895+ "items": {
12896+ "properties": {
12897+ "data": {
12898+ "type": "string",
12899+ "required": true,
12900+ "maxLength": 1048576
12901+ },
12902+ "type": {
12903+ "type": "string",
12904+ "required": true,
12905+ "enum": [
12906+ "compaction",
12907+ "sync_step1",
12908+ "sync_step2",
12909+ "update"
12910+ ]
12911+ }
12912+ },
12913+ "required": true,
12914+ "type": "object"
12915+ },
12916+ "minItems": 0,
12917+ "required": true,
12918+ "type": "array"
12919+ }
12920+ },
12921+ "type": "object"
12922+ },
12923+ "maxItems": 50,
12924+ "type": "array",
12925+ "required": true
12926+ }
12927+ }
12928+ }
12929+ ],
12930+ "_links": {
12931+ "self": [
12932+ {
12933+ "href": "http://example.org/index.php?rest_route=/wp-sync/v1/updates"
12934+ }
12935+ ]
12936+ }
1269512937 }
1269612938 },
1269712939 "site_logo": 0,
@@ -14550,7 +14792,7 @@ mockedApiResponse.settings = {
1455014792 "use_smilies": true,
1455114793 "default_category": 1,
1455214794 "default_post_format": "0",
14553- "wp_collaboration_enabled": false ,
14795+ "wp_collaboration_enabled": true ,
1455414796 "posts_per_page": 10,
1455514797 "show_on_front": "posts",
1455614798 "page_on_front": 0,
0 commit comments