File size: 30,500 Bytes
cffba29 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 | {
"ScreenCapture": {
"meta": {
"name": "ScreenCapture",
"description": "Screenshot and screen recording application, placed in Application and contained by System. Supports requesting simulated capture authorization, taking screenshots, starting and stopping screen recording, querying authorization and recording state, and querying or deleting screenshot and completed recording records by stable ID. Records contain only metadata such as type, time, and duration; no actual images or videos are generated. Authorization may be denied or revoked, and protected content or resource conflicts may block capture. Failures create no successful records, and repeated recording starts are rejected. Recording duration uses monotonic time. Normal stopping creates a completed record; authorization revocation or resource loss terminates recording with an explicitly marked interrupted result. Enabling microphone audio recording additionally requires Privacy authorization; screen capture authorization does not replace microphone permission.",
"version": "1.0.0",
"from": ""
},
"properties": {
"update": {
"authorization_status": {
"type": "string",
"description": "Current simulated screen capture authorization state. A granted state permits capture subject to the other interlocks. Explicit revocation interrupts an active recording.",
"mode": 2,
"value": {
"default": "not_requested",
"choices": [
"not_requested",
"granted",
"denied",
"revoked"
]
}
},
"recording_state": {
"type": "string",
"description": "Current screen recording lifecycle state. Both normal stopping and interruption return this state to idle; the resulting metadata record identifies the outcome.",
"mode": 2,
"value": {
"default": "idle",
"choices": [
"idle",
"recording"
]
}
},
"microphone_audio_enabled": {
"type": "boolean",
"description": "Whether newly started screen recordings include simulated microphone-audio metadata. Enabling requires microphone_access_granted, and this setting cannot be changed during recording.",
"mode": 3,
"value": {
"default": false
}
},
"microphone_access_granted": {
"type": "boolean",
"description": "Read-only microphone authorization derived exactly from the declared Privacy dependency property microphone_authorized: true maps to true and false maps to false. Screen capture authorization does not grant microphone access.",
"mode": 2,
"value": {
"default": false
}
},
"capture_block_reason": {
"type": "string",
"description": "Read-only current capture block reason derived from the declared system capture-condition dependency. protected_content_active=true maps to protected_content regardless of resource availability; otherwise capture_resource_available=false maps to resource_conflict; otherwise the value is none.",
"mode": 2,
"value": {
"default": "none",
"choices": [
"none",
"protected_content",
"resource_conflict"
]
}
},
"captures": {
"type": "dict",
"description": "Metadata-only capture records keyed by stable IDs. A screenshot record has exactly type, capture_minute, duration_minutes, and result. A recording record has exactly type, start_minute, end_minute, duration_minutes, microphone_audio_included, result, and interruption_reason. Completed recordings use interruption_reason none; interrupted recordings use authorization_revoked, protected_content, resource_conflict, or microphone_authorization_revoked.",
"mode": 2,
"value": {
"default": {},
"schema": {
"type": "object",
"propertyNames": {
"pattern": "^capture_[0-9]{6,}$",
"maxLength": 128
},
"additionalProperties": {
"oneOf": [
{
"type": "object",
"properties": {
"type": {
"const": "screenshot"
},
"capture_minute": {
"type": "integer",
"minimum": 0
},
"duration_minutes": {
"const": 0
},
"result": {
"const": "completed"
}
},
"required": [
"type",
"capture_minute",
"duration_minutes",
"result"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"const": "recording"
},
"start_minute": {
"type": "integer",
"minimum": 0
},
"end_minute": {
"type": "integer",
"minimum": 0
},
"duration_minutes": {
"type": "integer",
"minimum": 0
},
"microphone_audio_included": {
"type": "boolean"
},
"result": {
"const": "completed"
},
"interruption_reason": {
"const": "none"
}
},
"required": [
"type",
"start_minute",
"end_minute",
"duration_minutes",
"microphone_audio_included",
"result",
"interruption_reason"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"type": {
"const": "recording"
},
"start_minute": {
"type": "integer",
"minimum": 0
},
"end_minute": {
"type": "integer",
"minimum": 0
},
"duration_minutes": {
"type": "integer",
"minimum": 0
},
"microphone_audio_included": {
"type": "boolean"
},
"result": {
"const": "interrupted"
},
"interruption_reason": {
"type": "string",
"enum": [
"authorization_revoked",
"protected_content",
"resource_conflict",
"microphone_authorization_revoked"
]
}
},
"required": [
"type",
"start_minute",
"end_minute",
"duration_minutes",
"microphone_audio_included",
"result",
"interruption_reason"
],
"additionalProperties": false
}
]
}
}
}
},
"recording_started_at_minute": {
"type": "integer",
"description": "Internal monotonic elapsed simulation minute at which the active recording started, or zero when no recording is active.",
"mode": 0,
"value": {
"default": 0,
"unit": "minutes",
"minimum": 0,
"step": 1,
"step_origin": 0
}
},
"next_capture_number": {
"type": "integer",
"description": "Internal monotonically increasing sequence number used to allocate stable capture IDs without reusing deleted IDs.",
"mode": 0,
"value": {
"default": 1,
"minimum": 1,
"step": 1,
"step_origin": 1
}
}
},
"disabled": []
},
"functions": {
"update": {
"get_authorization_status": {
"description": "Return the current simulated screen capture authorization status without changing it.",
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"mutation": false,
"reads": [
"authorization_status"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "authorization_status",
"response_key": "authorization_status",
"preconditions": {}
},
"response": {
"authorization_status": {
"type": "string",
"description": "Current authorization status: not_requested, granted, denied, or revoked."
}
}
},
"request_capture_authorization": {
"description": "Resolve a simulated screen capture authorization request using an explicit granted or denied user decision. Requests are accepted only while recording is idle. A granted decision sets authorization_status to granted, and a denied decision sets it to denied. Invalid input or an active recording leaves all state unchanged.",
"parameters_schema": {
"type": "object",
"properties": {
"decision": {
"type": "string",
"description": "Explicit simulated authorization decision.",
"enum": [
"granted",
"denied"
],
"examples": [
"granted",
"denied"
]
}
},
"required": [
"decision"
],
"additionalProperties": false
},
"mutation": true,
"reads": [
"recording_state"
],
"writes": [
"authorization_status"
],
"semantics": {
"kind": "custom",
"reason": "The operation applies a resolved simulated user authorization decision to an internally managed authorization state.",
"preconditions": {
"recording_state": "idle"
}
},
"errorcodes": {
"PRECONDITION_FAILED": "Capture authorization cannot be requested while a screen recording is active."
}
},
"revoke_capture_authorization": {
"description": "Set authorization_status to revoked. If a recording is active, atomically terminate it, allocate one stable capture ID, and create an interrupted recording record with interruption_reason authorization_revoked. Its end_minute is the current monotonic elapsed simulation minute and duration_minutes is max(end_minute minus start_minute, 0). Revocation while idle creates no record. A successful interruption returns recording_state to idle and resets recording_started_at_minute to zero.",
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"mutation": true,
"reads": [
"recording_state",
"microphone_audio_enabled",
"captures",
"recording_started_at_minute",
"next_capture_number"
],
"writes": [
"authorization_status",
"recording_state",
"captures",
"recording_started_at_minute",
"next_capture_number"
],
"semantics": {
"kind": "custom",
"reason": "Revocation conditionally terminates an active recording and creates interruption metadata using monotonic simulation time."
}
},
"get_recording_state": {
"description": "Return whether screen recording is idle or currently recording.",
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"mutation": false,
"reads": [
"recording_state"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "recording_state",
"response_key": "recording_state",
"preconditions": {}
},
"response": {
"recording_state": {
"type": "string",
"description": "Current recording state: idle or recording."
}
}
},
"get_microphone_audio_enabled": {
"description": "Return whether newly started screen recordings are configured to include simulated microphone audio.",
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"mutation": false,
"reads": [
"microphone_audio_enabled"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "microphone_audio_enabled",
"response_key": "microphone_audio_enabled",
"preconditions": {}
},
"response": {
"microphone_audio_enabled": {
"type": "boolean",
"description": "Whether newly started recordings are configured to include microphone audio."
}
}
},
"set_microphone_audio_enabled": {
"description": "Enable or disable microphone audio for newly started recordings. The setting can change only while recording is idle. Enabling additionally requires microphone_access_granted to be true; disabling does not require microphone authorization. A rejected call leaves the setting unchanged.",
"parameters_schema": {
"type": "object",
"properties": {
"value": {
"type": "boolean",
"description": "Whether newly started recordings should include microphone audio.",
"examples": [
true,
false
]
}
},
"required": [
"value"
],
"additionalProperties": false
},
"mutation": true,
"reads": [
"recording_state",
"microphone_access_granted"
],
"writes": [
"microphone_audio_enabled"
],
"semantics": {
"kind": "set",
"property": "microphone_audio_enabled",
"parameter": "value",
"preconditions": {
"recording_state": "idle"
}
},
"errorcodes": {
"PRECONDITION_FAILED": "The setting cannot change during recording, and enabling it requires microphone authorization from Privacy."
}
},
"get_microphone_access_granted": {
"description": "Return the microphone access state derived from the declared Privacy dependency property microphone_authorized.",
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"mutation": false,
"reads": [
"microphone_access_granted"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "microphone_access_granted",
"response_key": "microphone_access_granted",
"preconditions": {}
},
"response": {
"microphone_access_granted": {
"type": "boolean",
"description": "Whether the declared Privacy dependency currently grants microphone access."
}
}
},
"get_capture_block_reason": {
"description": "Return the current capture block reason derived from protected-content and capture-resource conditions, or none when those conditions permit capture.",
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"mutation": false,
"reads": [
"capture_block_reason"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "capture_block_reason",
"response_key": "capture_block_reason",
"preconditions": {}
},
"response": {
"capture_block_reason": {
"type": "string",
"description": "Current capture block reason: none, protected_content, or resource_conflict."
}
}
},
"get_captures": {
"description": "Return all metadata-only screenshot and completed or interrupted recording records keyed by stable capture ID. This query does not create, delete, or modify records.",
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"mutation": false,
"reads": [
"captures"
],
"writes": [],
"semantics": {
"kind": "read",
"property": "captures",
"response_key": "captures",
"preconditions": {}
},
"response": {
"captures": {
"type": "object",
"description": "All stored metadata-only capture records keyed by stable capture ID."
}
}
},
"take_screenshot": {
"description": "Create one metadata-only screenshot record. Authorization must be granted and capture_block_reason must be none. On success, allocate capture_NNNNNN from next_capture_number and store exactly type screenshot, capture_minute equal to the current monotonic elapsed simulation minute, duration_minutes 0, and result completed. Protected content, a resource conflict, or missing authorization creates no record and does not consume an ID.",
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"mutation": true,
"reads": [
"authorization_status",
"capture_block_reason",
"captures",
"next_capture_number"
],
"writes": [
"captures",
"next_capture_number"
],
"semantics": {
"kind": "custom",
"reason": "A successful screenshot allocates a stable ID and stores metadata containing the current monotonic simulation minute."
},
"response": {
"capture_id": {
"type": "string",
"description": "Stable ID of the newly created screenshot metadata record."
}
},
"errorcodes": {
"NOT_AUTHORIZED": "Screen capture authorization is not granted.",
"PROTECTED_CONTENT": "The current content is protected from capture.",
"RESOURCE_CONFLICT": "A capture resource conflict currently blocks the screenshot."
}
},
"start_recording": {
"description": "Start one screen recording and store the current monotonic elapsed simulation minute in recording_started_at_minute. Authorization must be granted, recording_state must be idle, and capture_block_reason must be none. If microphone audio is enabled, microphone_access_granted must also be true. Repeated starts and all other failed starts leave state unchanged and create no record.",
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"mutation": true,
"reads": [
"authorization_status",
"recording_state",
"microphone_audio_enabled",
"microphone_access_granted",
"capture_block_reason"
],
"writes": [
"recording_state",
"recording_started_at_minute"
],
"semantics": {
"kind": "custom",
"reason": "Starting recording validates multiple conditional authorization and resource interlocks and stores the current monotonic simulation minute."
},
"errorcodes": {
"ALREADY_RECORDING": "A screen recording is already active.",
"NOT_AUTHORIZED": "Screen capture authorization is not granted.",
"MICROPHONE_NOT_AUTHORIZED": "Microphone audio is enabled but Privacy has not granted microphone access.",
"PROTECTED_CONTENT": "The current content is protected from capture.",
"RESOURCE_CONFLICT": "A capture resource conflict currently blocks recording."
}
},
"stop_recording": {
"description": "Normally stop the active screen recording. On success, allocate one stable capture ID and create a recording record with type recording, the stored start_minute, end_minute equal to the current monotonic elapsed simulation minute, duration_minutes equal to max(end_minute minus start_minute, 0), microphone_audio_included equal to the frozen microphone_audio_enabled setting, result completed, and interruption_reason none. Then set recording_state to idle and recording_started_at_minute to zero. A call while idle is rejected and creates no record.",
"parameters_schema": {
"type": "object",
"properties": {},
"required": [],
"additionalProperties": false
},
"mutation": true,
"reads": [
"recording_state",
"microphone_audio_enabled",
"captures",
"recording_started_at_minute",
"next_capture_number"
],
"writes": [
"recording_state",
"captures",
"recording_started_at_minute",
"next_capture_number"
],
"semantics": {
"kind": "custom",
"reason": "Stopping creates a stable completed recording record whose duration is calculated from monotonic simulation time."
},
"response": {
"capture_id": {
"type": "string",
"description": "Stable ID of the newly created completed recording metadata record."
}
},
"errorcodes": {
"NOT_RECORDING": "No screen recording is active."
}
},
"get_capture": {
"description": "Return one existing screenshot or completed or interrupted recording metadata record by stable ID. An unknown ID is rejected without changing the collection.",
"parameters_schema": {
"type": "object",
"properties": {
"capture_id": {
"type": "string",
"description": "Stable ID of an existing capture metadata record.",
"pattern": "^capture_[0-9]{6,}$",
"maxLength": 128,
"examples": [
"capture_000001"
]
}
},
"required": [
"capture_id"
],
"additionalProperties": false
},
"mutation": false,
"reads": [
"captures"
],
"writes": [],
"semantics": {
"kind": "collection_read",
"property": "captures",
"id_parameter": "capture_id",
"response_key": "capture",
"preconditions": {
"captures": {
"contains_key": {
"parameter": "capture_id"
}
}
}
},
"argument_sources": {
"capture_id": {
"property": "captures",
"field": "$key"
}
},
"response": {
"capture": {
"type": "object",
"description": "The metadata-only screenshot or recording record stored under the requested ID."
}
},
"errorcodes": {
"NOT_FOUND": "Capture record ID does not exist."
}
},
"delete_capture": {
"description": "Delete one existing screenshot or completed or interrupted recording metadata record by stable ID while preserving every other record. Active recording state is unaffected. An unknown ID is rejected without changing the collection.",
"parameters_schema": {
"type": "object",
"properties": {
"capture_id": {
"type": "string",
"description": "Stable ID of an existing capture metadata record to delete.",
"pattern": "^capture_[0-9]{6,}$",
"maxLength": 128,
"examples": [
"capture_000001"
]
}
},
"required": [
"capture_id"
],
"additionalProperties": false
},
"mutation": true,
"reads": [
"captures"
],
"writes": [
"captures"
],
"semantics": {
"kind": "collection_delete",
"property": "captures",
"id_parameter": "capture_id",
"preconditions": {
"captures": {
"contains_key": {
"parameter": "capture_id"
}
}
}
},
"argument_sources": {
"capture_id": {
"property": "captures",
"field": "$key"
}
},
"errorcodes": {
"NOT_FOUND": "Capture record ID does not exist."
}
}
},
"disabled": []
},
"events": {
"update": {
"dependency_changed": {
"description": "When declared dependencies change, sets microphone_access_granted exactly equal to the Privacy source property microphone_authorized. It derives capture_block_reason from the system capture-condition source properties as follows: protected_content_active=true produces protected_content; otherwise capture_resource_available=false produces resource_conflict; otherwise it produces none. If recording is active after applying those mappings, an interruption is selected using this strict precedence: authorization_status other than granted produces authorization_revoked; otherwise protected_content_active=true produces protected_content; otherwise capture_resource_available=false produces resource_conflict; otherwise microphone_audio_enabled=true with microphone_authorized=false produces microphone_authorization_revoked; otherwise recording continues. A selected interruption creates exactly one recording record with result interrupted, the selected interruption_reason, the stored start minute, the current monotonic end minute, nonnegative elapsed duration, and the active microphone-audio setting, then returns recording state to idle and clears the stored start minute.",
"effect_properties": [
{
"name": "authorization_status",
"description": "Current local capture authorization used as the highest-priority active-recording validity condition."
},
{
"name": "recording_state",
"description": "Current recording state used to apply interruption only while a recording is active."
},
{
"name": "microphone_audio_enabled",
"description": "Whether the active recording requires continued microphone authorization."
},
{
"name": "microphone_access_granted",
"description": "Derived microphone access state set from the Privacy source property microphone_authorized."
},
{
"name": "capture_block_reason",
"description": "Derived block reason set from protected_content_active and capture_resource_available with protected content taking precedence."
},
{
"name": "captures",
"description": "Metadata collection receiving one interrupted recording record when an active recording loses a required condition."
},
{
"name": "recording_started_at_minute",
"description": "Stored monotonic start minute used to calculate an interrupted recording's duration."
},
{
"name": "next_capture_number",
"description": "Internal sequence used to allocate the interrupted recording record's stable ID."
}
]
}
},
"disabled": []
}
}
}
|