@anna-ai/app-schema 0.33.0 → 0.34.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/README.md CHANGED
@@ -1,4 +1,4 @@
1
- # @anna-ai/app-schema (v0.33.0)
1
+ # @anna-ai/app-schema (v0.34.0)
2
2
 
3
3
  Versioned schema bundle for the Anna App platform. Generated by
4
4
  `scripts/export_app_schema.py` in matrix-nexus; do not edit by hand.
@@ -22,5 +22,5 @@
22
22
  "tool"
23
23
  ],
24
24
  "title": "CapabilityDeclarationVocabulary",
25
- "version": "0.33.0"
25
+ "version": "0.34.0"
26
26
  }
@@ -1 +1 @@
1
- 0.33.0
1
+ 0.34.0
@@ -39,5 +39,5 @@
39
39
  ],
40
40
  "title": "AnnaAppEvent",
41
41
  "type": "object",
42
- "version": "0.33.0"
42
+ "version": "0.34.0"
43
43
  }
@@ -907,6 +907,168 @@
907
907
  "no_auth": false,
908
908
  "stub": false
909
909
  },
910
+ {
911
+ "handler": "_h_not_implemented",
912
+ "method": "list",
913
+ "namespace": "share",
914
+ "no_auth": false,
915
+ "params_schema": {
916
+ "additionalProperties": false,
917
+ "description": "List this (user, app)'s non-revoked publications.",
918
+ "properties": {
919
+ "cursor": {
920
+ "type": [
921
+ "string",
922
+ "null"
923
+ ]
924
+ },
925
+ "limit": {
926
+ "maximum": 100,
927
+ "minimum": 1,
928
+ "type": "integer"
929
+ }
930
+ },
931
+ "type": "object"
932
+ },
933
+ "stub": true
934
+ },
935
+ {
936
+ "handler": "_h_not_implemented",
937
+ "method": "publish",
938
+ "namespace": "share",
939
+ "no_auth": false,
940
+ "params_schema": {
941
+ "additionalProperties": false,
942
+ "description": "Publish rendered static files as a platform-hosted long-lived public URL. Requires manifest ui.host_api.share = true.",
943
+ "properties": {
944
+ "description": {
945
+ "maxLength": 500,
946
+ "type": [
947
+ "string",
948
+ "null"
949
+ ]
950
+ },
951
+ "entry": {
952
+ "description": "Entry document — must be in `paths`, text/html.",
953
+ "minLength": 1,
954
+ "type": "string"
955
+ },
956
+ "expires_at": {
957
+ "description": "ISO 8601 expiry; omit/null = never expires.",
958
+ "type": [
959
+ "string",
960
+ "null"
961
+ ]
962
+ },
963
+ "path_map": {
964
+ "description": "Optional explicit {aps_path: relative_path} mapping. Default: longest common directory prefix is stripped.",
965
+ "type": [
966
+ "object",
967
+ "null"
968
+ ]
969
+ },
970
+ "paths": {
971
+ "description": "APS object paths (scope=app self) to snapshot into the public share. Must be finalized objects.",
972
+ "items": {
973
+ "minLength": 1,
974
+ "type": "string"
975
+ },
976
+ "maxItems": 200,
977
+ "minItems": 1,
978
+ "type": "array"
979
+ },
980
+ "pub_id": {
981
+ "description": "Existing publication id → republish (URL unchanged, version += 1). Omit for a new publication.",
982
+ "type": [
983
+ "string",
984
+ "null"
985
+ ]
986
+ },
987
+ "thumbnail_path": {
988
+ "description": "OG image — must be in `paths` (png/jpeg/webp).",
989
+ "type": [
990
+ "string",
991
+ "null"
992
+ ]
993
+ },
994
+ "title": {
995
+ "maxLength": 200,
996
+ "minLength": 1,
997
+ "type": "string"
998
+ }
999
+ },
1000
+ "required": [
1001
+ "paths",
1002
+ "entry",
1003
+ "title"
1004
+ ],
1005
+ "type": "object"
1006
+ },
1007
+ "stub": true
1008
+ },
1009
+ {
1010
+ "handler": "_h_not_implemented",
1011
+ "method": "revoke",
1012
+ "namespace": "share",
1013
+ "no_auth": false,
1014
+ "params_schema": {
1015
+ "additionalProperties": false,
1016
+ "description": "Revoke a publication — the public URL turns into a tombstone immediately (CDN residue <= 5 min); quota bytes are released.",
1017
+ "properties": {
1018
+ "pub_id": {
1019
+ "minLength": 1,
1020
+ "type": "string"
1021
+ }
1022
+ },
1023
+ "required": [
1024
+ "pub_id"
1025
+ ],
1026
+ "type": "object"
1027
+ },
1028
+ "stub": true
1029
+ },
1030
+ {
1031
+ "handler": "_h_not_implemented",
1032
+ "method": "update",
1033
+ "namespace": "share",
1034
+ "no_auth": false,
1035
+ "params_schema": {
1036
+ "additionalProperties": false,
1037
+ "description": "Update publication metadata without touching the snapshot.",
1038
+ "properties": {
1039
+ "description": {
1040
+ "maxLength": 500,
1041
+ "type": [
1042
+ "string",
1043
+ "null"
1044
+ ]
1045
+ },
1046
+ "expires_at": {
1047
+ "description": "ISO 8601; null clears the expiry.",
1048
+ "type": [
1049
+ "string",
1050
+ "null"
1051
+ ]
1052
+ },
1053
+ "pub_id": {
1054
+ "minLength": 1,
1055
+ "type": "string"
1056
+ },
1057
+ "title": {
1058
+ "maxLength": 200,
1059
+ "type": [
1060
+ "string",
1061
+ "null"
1062
+ ]
1063
+ }
1064
+ },
1065
+ "required": [
1066
+ "pub_id"
1067
+ ],
1068
+ "type": "object"
1069
+ },
1070
+ "stub": true
1071
+ },
910
1072
  {
911
1073
  "handler": "_h_storage_delete",
912
1074
  "method": "delete",
@@ -1271,5 +1433,5 @@
1271
1433
  }
1272
1434
  ],
1273
1435
  "title": "HostApiMethodTable",
1274
- "version": "0.33.0"
1436
+ "version": "0.34.0"
1275
1437
  }
@@ -179,6 +179,11 @@
179
179
  },
180
180
  "title": "Credentials",
181
181
  "type": "array"
182
+ },
183
+ "share": {
184
+ "default": false,
185
+ "title": "Share",
186
+ "type": "boolean"
182
187
  }
183
188
  },
184
189
  "title": "UiHostApiSpec",
@@ -57,6 +57,11 @@
57
57
  },
58
58
  "title": "Credentials",
59
59
  "type": "array"
60
+ },
61
+ "share": {
62
+ "default": false,
63
+ "title": "Share",
64
+ "type": "boolean"
60
65
  }
61
66
  },
62
67
  "title": "UiHostApiSpec",
package/package.json CHANGED
@@ -23,5 +23,5 @@
23
23
  "publishConfig": {
24
24
  "access": "public"
25
25
  },
26
- "version": "0.33.0"
26
+ "version": "0.34.0"
27
27
  }