@agent-vm/agent-portal-sdk 0.0.147 → 0.0.149

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.
Files changed (112) hide show
  1. package/contract-fixtures/portable-contracts/approval/managed-google-challenge.fixture.json +66 -0
  2. package/contract-fixtures/portable-contracts/discovery/describe-result.fixture.json +5 -1
  3. package/contract-fixtures/portable-contracts/discovery/google-describe-duplicate-availability.fixture.json +103 -0
  4. package/contract-fixtures/portable-contracts/discovery/google-describe-duplicate-requirements.fixture.json +83 -0
  5. package/contract-fixtures/portable-contracts/discovery/google-describe-unverified-ready.fixture.json +78 -0
  6. package/contract-fixtures/portable-contracts/discovery/google-describe-valid.fixture.json +144 -0
  7. package/contract-fixtures/portable-contracts/discovery/google-list-duplicate-availability.fixture.json +109 -0
  8. package/contract-fixtures/portable-contracts/discovery/google-list-duplicate-requirements.fixture.json +89 -0
  9. package/contract-fixtures/portable-contracts/discovery/google-list-unverified-ready.fixture.json +84 -0
  10. package/contract-fixtures/portable-contracts/discovery/google-list-valid.fixture.json +156 -0
  11. package/contract-fixtures/portable-contracts/discovery/google-search-duplicate-availability.fixture.json +108 -0
  12. package/contract-fixtures/portable-contracts/discovery/google-search-duplicate-requirements.fixture.json +88 -0
  13. package/contract-fixtures/portable-contracts/discovery/google-search-unverified-ready.fixture.json +83 -0
  14. package/contract-fixtures/portable-contracts/discovery/google-search-valid.fixture.json +154 -0
  15. package/contract-fixtures/portable-contracts/discovery/list-result.fixture.json +5 -1
  16. package/contract-fixtures/portable-contracts/discovery/search-result.fixture.json +5 -1
  17. package/contract-fixtures/portable-contracts/files/attachment-cleaned-result.fixture.json +16 -0
  18. package/contract-fixtures/portable-contracts/files/attachment-parent-path-rejected.fixture.json +17 -0
  19. package/contract-fixtures/portable-contracts/files/attachment-public-request.fixture.json +26 -0
  20. package/contract-fixtures/portable-contracts/files/attachment-public-result.fixture.json +26 -0
  21. package/contract-fixtures/portable-contracts/files/attachment-recipient-rejected.fixture.json +19 -0
  22. package/contract-fixtures/portable-contracts/files/attachment-settle-request.fixture.json +20 -0
  23. package/contract-fixtures/portable-contracts/files/attachment-stage-request.fixture.json +26 -0
  24. package/contract-fixtures/portable-contracts/files/attachment-staged-result.fixture.json +24 -0
  25. package/contract-fixtures/portable-contracts/files/file-list-request.fixture.json +14 -0
  26. package/contract-fixtures/portable-contracts/files/file-listed-result.fixture.json +21 -0
  27. package/contract-fixtures/portable-contracts/files/file-materialized-result.fixture.json +17 -0
  28. package/contract-fixtures/portable-contracts/files/file-request-root-rejected.fixture.json +15 -0
  29. package/contract-fixtures/portable-contracts/files/file-result-payload-rejected.fixture.json +18 -0
  30. package/contract-fixtures/portable-contracts/outcomes/completed-file-delivery-partial.fixture.json +84 -0
  31. package/contract-fixtures/portable-contracts/outcomes/invalid-retryable-file-delivery.fixture.json +40 -0
  32. package/dist/approval-surface/index.d.ts +1 -1
  33. package/dist/approval-surface/index.js +1 -1
  34. package/dist/{approval-surface-Cqk_hAtN.js → approval-surface-CfbAG-81.js} +4 -4
  35. package/dist/{approval-surface-Cqk_hAtN.js.map → approval-surface-CfbAG-81.js.map} +1 -1
  36. package/dist/artifact-surface/index.js +1 -1
  37. package/dist/{artifact-surface-CHEu4tDd.js → artifact-surface-Db5KQOA0.js} +2 -2
  38. package/dist/{artifact-surface-CHEu4tDd.js.map → artifact-surface-Db5KQOA0.js.map} +1 -1
  39. package/dist/capability-description-surface/index.d.ts +2 -2
  40. package/dist/capability-description-surface/index.js +3 -3
  41. package/dist/capability-description-surface-DKZLjpG4.js +2 -0
  42. package/dist/{capability-descriptor-schema-v9tj7yKr.js → capability-descriptor-schema-5evBt6Hl.js} +39 -3
  43. package/dist/capability-descriptor-schema-5evBt6Hl.js.map +1 -0
  44. package/dist/cli/tool-portal.js +5 -5
  45. package/dist/contracts/index.js +1 -1
  46. package/dist/{contracts-X9wWs2lP.js → contracts-K6l783Yb.js} +5 -5
  47. package/dist/{contracts-X9wWs2lP.js.map → contracts-K6l783Yb.js.map} +1 -1
  48. package/dist/gateway-runtime-client/index.d.ts +5 -3
  49. package/dist/gateway-runtime-client/index.d.ts.map +1 -1
  50. package/dist/gateway-runtime-client/index.js +13 -6
  51. package/dist/gateway-runtime-client/index.js.map +1 -1
  52. package/dist/{index-DV6xiWeS.d.ts → index-BSG2bf1j.d.ts} +3 -3
  53. package/dist/{index-DV6xiWeS.d.ts.map → index-BSG2bf1j.d.ts.map} +1 -1
  54. package/dist/{index-ciLRJYVb.d.ts → index-Ba_G25p_.d.ts} +37 -37
  55. package/dist/{index-ciLRJYVb.d.ts.map → index-Ba_G25p_.d.ts.map} +1 -1
  56. package/dist/index-ByBEiqZp.d.ts +388 -0
  57. package/dist/index-ByBEiqZp.d.ts.map +1 -0
  58. package/dist/{index-D4UDHMft.d.ts → index-C5NsqQls.d.ts} +31 -9
  59. package/dist/index-C5NsqQls.d.ts.map +1 -0
  60. package/dist/{index-3aVlpTwE.d.ts → index-C8gs_YWX.d.ts} +134 -18
  61. package/dist/{index-3aVlpTwE.d.ts.map → index-C8gs_YWX.d.ts.map} +1 -1
  62. package/dist/{index-C-QFWaH5.d.ts → index-E3B9TETl.d.ts} +11 -1
  63. package/dist/index-E3B9TETl.d.ts.map +1 -0
  64. package/dist/index.d.ts +7 -7
  65. package/dist/index.js +15 -15
  66. package/dist/{json-value-schema-Br5M7d7X.js → json-value-schema-rxMrw9uZ.js} +2 -2
  67. package/dist/{json-value-schema-Br5M7d7X.js.map → json-value-schema-rxMrw9uZ.js.map} +1 -1
  68. package/dist/{namespace-discovery-schema-DwbJHVLu.js → namespace-discovery-schema-BBWRZZnD.js} +2 -2
  69. package/dist/{namespace-discovery-schema-DwbJHVLu.js.map → namespace-discovery-schema-BBWRZZnD.js.map} +1 -1
  70. package/dist/portable-contracts/index.d.ts +1 -1
  71. package/dist/portable-contracts/index.js +2 -2
  72. package/dist/{portable-contracts-BJEMMNwI.js → portable-contracts-D7axGgu1.js} +75 -15
  73. package/dist/portable-contracts-D7axGgu1.js.map +1 -0
  74. package/dist/{portable-refinement-authoring-C1Q92x2G.js → portable-refinement-authoring-oFICWLOo.js} +16 -2
  75. package/dist/portable-refinement-authoring-oFICWLOo.js.map +1 -0
  76. package/dist/{portal-call-request-schema-Cl0kTLaX.js → portal-call-request-schema-B1dbBjmW.js} +4 -4
  77. package/dist/{portal-call-request-schema-Cl0kTLaX.js.map → portal-call-request-schema-B1dbBjmW.js.map} +1 -1
  78. package/dist/{portal-call-result-schema-CFnKfcvZ.d.ts → portal-call-result-schema-CjfCOa84.d.ts} +1561 -313
  79. package/dist/portal-call-result-schema-CjfCOa84.d.ts.map +1 -0
  80. package/dist/{portal-call-result-schema-B25_rzZZ.js → portal-call-result-schema-DVJ6FyTz.js} +24 -8
  81. package/dist/portal-call-result-schema-DVJ6FyTz.js.map +1 -0
  82. package/dist/portal-call-surface/index.d.ts +3 -3
  83. package/dist/portal-call-surface/index.js +4 -4
  84. package/dist/portal-call-surface-BPVX-rjw.js +175 -0
  85. package/dist/portal-call-surface-BPVX-rjw.js.map +1 -0
  86. package/dist/portal-event-surface/index.d.ts +1 -1
  87. package/dist/portal-event-surface/index.js +1 -1
  88. package/dist/{portal-event-surface-Bp3rXsBz.js → portal-event-surface-Z76kra2a.js} +2 -2
  89. package/dist/{portal-event-surface-Bp3rXsBz.js.map → portal-event-surface-Z76kra2a.js.map} +1 -1
  90. package/dist/{request-id-schema-Hq_6lSFV.js → request-id-schema-DQ84TX-D.js} +2 -2
  91. package/dist/{request-id-schema-Hq_6lSFV.js.map → request-id-schema-DQ84TX-D.js.map} +1 -1
  92. package/dist/testing/index.d.ts +1 -1
  93. package/dist/testing/index.js +2 -2
  94. package/dist/tool-portal-mcp-client/index.d.ts +1 -1
  95. package/dist/tool-portal-mcp-client/index.js +1 -1
  96. package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts +1 -1
  97. package/dist/{tool-portal-mcp-client-DZoloMod.js → tool-portal-mcp-client-DSDLoZ5e.js} +5 -5
  98. package/dist/{tool-portal-mcp-client-DZoloMod.js.map → tool-portal-mcp-client-DSDLoZ5e.js.map} +1 -1
  99. package/package.json +3 -2
  100. package/portable-contract-schema-manifest.json +1868 -79
  101. package/dist/capability-description-surface-CplIb93y.js +0 -2
  102. package/dist/capability-descriptor-schema-v9tj7yKr.js.map +0 -1
  103. package/dist/index-C-QFWaH5.d.ts.map +0 -1
  104. package/dist/index-D4UDHMft.d.ts.map +0 -1
  105. package/dist/index-m4Mlc5zK.d.ts +0 -142
  106. package/dist/index-m4Mlc5zK.d.ts.map +0 -1
  107. package/dist/portable-contracts-BJEMMNwI.js.map +0 -1
  108. package/dist/portable-refinement-authoring-C1Q92x2G.js.map +0 -1
  109. package/dist/portal-call-result-schema-B25_rzZZ.js.map +0 -1
  110. package/dist/portal-call-result-schema-CFnKfcvZ.d.ts.map +0 -1
  111. package/dist/portal-call-surface-qykVz_8k.js +0 -84
  112. package/dist/portal-call-surface-qykVz_8k.js.map +0 -1
@@ -0,0 +1,84 @@
1
+ {
2
+ "caseId": "google-list-unverified-ready",
3
+ "schemaId": "portal.list.result",
4
+ "tags": ["rejected", "discovery", "google"],
5
+ "input": {
6
+ "items": [
7
+ {
8
+ "id": "list-google",
9
+ "status": "ok",
10
+ "value": {
11
+ "namespaceDiscovery": [],
12
+ "tools": [
13
+ {
14
+ "namespace": "google",
15
+ "name": "gog",
16
+ "toolRef": "google.gog",
17
+ "callDisposition": {
18
+ "kind": "invocation-dependent",
19
+ "describeBeforeCall": true
20
+ },
21
+ "oauthRequirement": {
22
+ "kind": "google-account",
23
+ "accountArgument": "accountId",
24
+ "describeBeforeCall": true,
25
+ "operations": [
26
+ {
27
+ "applicationId": "communications-app",
28
+ "operationId": "gmail.read"
29
+ }
30
+ ]
31
+ },
32
+ "oauthAvailability": {
33
+ "kind": "operation-options",
34
+ "items": [
35
+ {
36
+ "requirement": {
37
+ "applicationId": "communications-app",
38
+ "operationId": "gmail.read"
39
+ },
40
+ "availability": {
41
+ "kind": "accounts",
42
+ "accounts": [
43
+ {
44
+ "accountId": "11111111-1111-4111-8111-111111111111",
45
+ "metadata": {
46
+ "kind": "unavailable"
47
+ },
48
+ "availability": {
49
+ "kind": "ready",
50
+ "disposition": "ask",
51
+ "overrideRevision": 1,
52
+ "defaultsRevision": "defaults-v1"
53
+ }
54
+ }
55
+ ]
56
+ }
57
+ }
58
+ ]
59
+ },
60
+ "input": {
61
+ "optional": [],
62
+ "propertyCount": 1,
63
+ "required": ["accountId"],
64
+ "type": "object"
65
+ },
66
+ "safety": {}
67
+ }
68
+ ],
69
+ "namespaces": ["google"]
70
+ }
71
+ }
72
+ ],
73
+ "ok": true
74
+ },
75
+ "expectation": {
76
+ "kind": "rejected",
77
+ "errorCodes": ["portal.google.discovery-policy"],
78
+ "refinementIdentities": [
79
+ "portal.google.discovery-policy",
80
+ "portal.request-id.not-reserved",
81
+ "portal.result.aggregate-status"
82
+ ]
83
+ }
84
+ }
@@ -0,0 +1,156 @@
1
+ {
2
+ "caseId": "google-list-valid",
3
+ "schemaId": "portal.list.result",
4
+ "tags": ["accepted", "discovery", "google"],
5
+ "input": {
6
+ "items": [
7
+ {
8
+ "id": "list-google",
9
+ "status": "ok",
10
+ "value": {
11
+ "namespaceDiscovery": [],
12
+ "tools": [
13
+ {
14
+ "namespace": "google",
15
+ "name": "gog",
16
+ "toolRef": "google.gog",
17
+ "callDisposition": {
18
+ "kind": "invocation-dependent",
19
+ "describeBeforeCall": true
20
+ },
21
+ "oauthRequirement": {
22
+ "kind": "google-account",
23
+ "accountArgument": "accountId",
24
+ "describeBeforeCall": true,
25
+ "operations": [
26
+ {
27
+ "applicationId": "communications-app",
28
+ "operationId": "gmail.read"
29
+ }
30
+ ]
31
+ },
32
+ "oauthAvailability": {
33
+ "kind": "operation-options",
34
+ "items": [
35
+ {
36
+ "requirement": {
37
+ "applicationId": "communications-app",
38
+ "operationId": "gmail.read"
39
+ },
40
+ "availability": {
41
+ "kind": "accounts",
42
+ "accounts": [
43
+ {
44
+ "accountId": "11111111-1111-4111-8111-111111111111",
45
+ "metadata": {
46
+ "kind": "verified",
47
+ "accountAlias": "Personal mailbox"
48
+ },
49
+ "availability": {
50
+ "kind": "ready",
51
+ "disposition": "ask",
52
+ "overrideRevision": 1,
53
+ "defaultsRevision": "defaults-v1"
54
+ }
55
+ }
56
+ ]
57
+ }
58
+ }
59
+ ]
60
+ },
61
+ "input": {
62
+ "optional": [],
63
+ "propertyCount": 1,
64
+ "required": ["accountId"],
65
+ "type": "object"
66
+ },
67
+ "safety": {}
68
+ }
69
+ ],
70
+ "namespaces": ["google"]
71
+ }
72
+ }
73
+ ],
74
+ "ok": true
75
+ },
76
+ "expectation": {
77
+ "kind": "accepted",
78
+ "normalized": {
79
+ "items": [
80
+ {
81
+ "id": "list-google",
82
+ "status": "ok",
83
+ "value": {
84
+ "namespaceDiscovery": [],
85
+ "tools": [
86
+ {
87
+ "namespace": "google",
88
+ "name": "gog",
89
+ "toolRef": "google.gog",
90
+ "callDisposition": {
91
+ "kind": "invocation-dependent",
92
+ "describeBeforeCall": true
93
+ },
94
+ "oauthRequirement": {
95
+ "kind": "google-account",
96
+ "accountArgument": "accountId",
97
+ "describeBeforeCall": true,
98
+ "operations": [
99
+ {
100
+ "applicationId": "communications-app",
101
+ "operationId": "gmail.read"
102
+ }
103
+ ]
104
+ },
105
+ "oauthAvailability": {
106
+ "kind": "operation-options",
107
+ "items": [
108
+ {
109
+ "requirement": {
110
+ "applicationId": "communications-app",
111
+ "operationId": "gmail.read"
112
+ },
113
+ "availability": {
114
+ "kind": "accounts",
115
+ "accounts": [
116
+ {
117
+ "accountId": "11111111-1111-4111-8111-111111111111",
118
+ "metadata": {
119
+ "kind": "verified",
120
+ "accountAlias": "Personal mailbox"
121
+ },
122
+ "availability": {
123
+ "kind": "ready",
124
+ "disposition": "ask",
125
+ "overrideRevision": 1,
126
+ "defaultsRevision": "defaults-v1"
127
+ }
128
+ }
129
+ ]
130
+ }
131
+ }
132
+ ]
133
+ },
134
+ "input": {
135
+ "optional": [],
136
+ "propertyCount": 1,
137
+ "required": ["accountId"],
138
+ "type": "object"
139
+ },
140
+ "safety": {}
141
+ }
142
+ ],
143
+ "namespaces": ["google"]
144
+ }
145
+ }
146
+ ],
147
+ "ok": true
148
+ },
149
+ "canonicalJson": "{\"items\":[{\"id\":\"list-google\",\"status\":\"ok\",\"value\":{\"namespaceDiscovery\":[],\"namespaces\":[\"google\"],\"tools\":[{\"callDisposition\":{\"describeBeforeCall\":true,\"kind\":\"invocation-dependent\"},\"input\":{\"optional\":[],\"propertyCount\":1,\"required\":[\"accountId\"],\"type\":\"object\"},\"name\":\"gog\",\"namespace\":\"google\",\"oauthAvailability\":{\"items\":[{\"availability\":{\"accounts\":[{\"accountId\":\"11111111-1111-4111-8111-111111111111\",\"availability\":{\"defaultsRevision\":\"defaults-v1\",\"disposition\":\"ask\",\"kind\":\"ready\",\"overrideRevision\":1},\"metadata\":{\"accountAlias\":\"Personal mailbox\",\"kind\":\"verified\"}}],\"kind\":\"accounts\"},\"requirement\":{\"applicationId\":\"communications-app\",\"operationId\":\"gmail.read\"}}],\"kind\":\"operation-options\"},\"oauthRequirement\":{\"accountArgument\":\"accountId\",\"describeBeforeCall\":true,\"kind\":\"google-account\",\"operations\":[{\"applicationId\":\"communications-app\",\"operationId\":\"gmail.read\"}]},\"safety\":{},\"toolRef\":\"google.gog\"}]}}],\"ok\":true}",
150
+ "refinementIdentities": [
151
+ "portal.google.discovery-policy",
152
+ "portal.request-id.not-reserved",
153
+ "portal.result.aggregate-status"
154
+ ]
155
+ }
156
+ }
@@ -0,0 +1,108 @@
1
+ {
2
+ "caseId": "google-search-duplicate-availability",
3
+ "schemaId": "portal.search.result",
4
+ "tags": ["rejected", "discovery", "google"],
5
+ "input": {
6
+ "items": [
7
+ {
8
+ "id": "search-google",
9
+ "status": "ok",
10
+ "value": {
11
+ "namespaceDiscovery": [],
12
+ "tools": [
13
+ {
14
+ "namespace": "google",
15
+ "name": "gog",
16
+ "toolRef": "google.gog",
17
+ "callDisposition": {
18
+ "kind": "invocation-dependent",
19
+ "describeBeforeCall": true
20
+ },
21
+ "oauthRequirement": {
22
+ "kind": "google-account",
23
+ "accountArgument": "accountId",
24
+ "describeBeforeCall": true,
25
+ "operations": [
26
+ {
27
+ "applicationId": "communications-app",
28
+ "operationId": "gmail.read"
29
+ }
30
+ ]
31
+ },
32
+ "oauthAvailability": {
33
+ "kind": "operation-options",
34
+ "items": [
35
+ {
36
+ "requirement": {
37
+ "applicationId": "communications-app",
38
+ "operationId": "gmail.read"
39
+ },
40
+ "availability": {
41
+ "kind": "accounts",
42
+ "accounts": [
43
+ {
44
+ "accountId": "11111111-1111-4111-8111-111111111111",
45
+ "metadata": {
46
+ "kind": "verified",
47
+ "accountAlias": "Personal mailbox"
48
+ },
49
+ "availability": {
50
+ "kind": "ready",
51
+ "disposition": "ask",
52
+ "overrideRevision": 1,
53
+ "defaultsRevision": "defaults-v1"
54
+ }
55
+ }
56
+ ]
57
+ }
58
+ },
59
+ {
60
+ "requirement": {
61
+ "applicationId": "communications-app",
62
+ "operationId": "gmail.read"
63
+ },
64
+ "availability": {
65
+ "kind": "accounts",
66
+ "accounts": [
67
+ {
68
+ "accountId": "11111111-1111-4111-8111-111111111111",
69
+ "metadata": {
70
+ "kind": "verified",
71
+ "accountAlias": "Personal mailbox"
72
+ },
73
+ "availability": {
74
+ "kind": "ready",
75
+ "disposition": "ask",
76
+ "overrideRevision": 1,
77
+ "defaultsRevision": "defaults-v1"
78
+ }
79
+ }
80
+ ]
81
+ }
82
+ }
83
+ ]
84
+ },
85
+ "input": {
86
+ "optional": [],
87
+ "propertyCount": 1,
88
+ "required": ["accountId"],
89
+ "type": "object"
90
+ },
91
+ "safety": {}
92
+ }
93
+ ]
94
+ }
95
+ }
96
+ ],
97
+ "ok": true
98
+ },
99
+ "expectation": {
100
+ "kind": "rejected",
101
+ "errorCodes": ["portal.google.discovery-policy"],
102
+ "refinementIdentities": [
103
+ "portal.google.discovery-policy",
104
+ "portal.request-id.not-reserved",
105
+ "portal.result.aggregate-status"
106
+ ]
107
+ }
108
+ }
@@ -0,0 +1,88 @@
1
+ {
2
+ "caseId": "google-search-duplicate-requirements",
3
+ "schemaId": "portal.search.result",
4
+ "tags": ["rejected", "discovery", "google"],
5
+ "input": {
6
+ "items": [
7
+ {
8
+ "id": "search-google",
9
+ "status": "ok",
10
+ "value": {
11
+ "namespaceDiscovery": [],
12
+ "tools": [
13
+ {
14
+ "namespace": "google",
15
+ "name": "gog",
16
+ "toolRef": "google.gog",
17
+ "callDisposition": {
18
+ "kind": "invocation-dependent",
19
+ "describeBeforeCall": true
20
+ },
21
+ "oauthRequirement": {
22
+ "kind": "google-account",
23
+ "accountArgument": "accountId",
24
+ "describeBeforeCall": true,
25
+ "operations": [
26
+ {
27
+ "applicationId": "communications-app",
28
+ "operationId": "gmail.read"
29
+ },
30
+ {
31
+ "applicationId": "communications-app",
32
+ "operationId": "gmail.read"
33
+ }
34
+ ]
35
+ },
36
+ "oauthAvailability": {
37
+ "kind": "operation-options",
38
+ "items": [
39
+ {
40
+ "requirement": {
41
+ "applicationId": "communications-app",
42
+ "operationId": "gmail.read"
43
+ },
44
+ "availability": {
45
+ "kind": "accounts",
46
+ "accounts": [
47
+ {
48
+ "accountId": "11111111-1111-4111-8111-111111111111",
49
+ "metadata": {
50
+ "kind": "verified",
51
+ "accountAlias": "Personal mailbox"
52
+ },
53
+ "availability": {
54
+ "kind": "ready",
55
+ "disposition": "ask",
56
+ "overrideRevision": 1,
57
+ "defaultsRevision": "defaults-v1"
58
+ }
59
+ }
60
+ ]
61
+ }
62
+ }
63
+ ]
64
+ },
65
+ "input": {
66
+ "optional": [],
67
+ "propertyCount": 1,
68
+ "required": ["accountId"],
69
+ "type": "object"
70
+ },
71
+ "safety": {}
72
+ }
73
+ ]
74
+ }
75
+ }
76
+ ],
77
+ "ok": true
78
+ },
79
+ "expectation": {
80
+ "kind": "rejected",
81
+ "errorCodes": ["portal.google.discovery-policy"],
82
+ "refinementIdentities": [
83
+ "portal.google.discovery-policy",
84
+ "portal.request-id.not-reserved",
85
+ "portal.result.aggregate-status"
86
+ ]
87
+ }
88
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "caseId": "google-search-unverified-ready",
3
+ "schemaId": "portal.search.result",
4
+ "tags": ["rejected", "discovery", "google"],
5
+ "input": {
6
+ "items": [
7
+ {
8
+ "id": "search-google",
9
+ "status": "ok",
10
+ "value": {
11
+ "namespaceDiscovery": [],
12
+ "tools": [
13
+ {
14
+ "namespace": "google",
15
+ "name": "gog",
16
+ "toolRef": "google.gog",
17
+ "callDisposition": {
18
+ "kind": "invocation-dependent",
19
+ "describeBeforeCall": true
20
+ },
21
+ "oauthRequirement": {
22
+ "kind": "google-account",
23
+ "accountArgument": "accountId",
24
+ "describeBeforeCall": true,
25
+ "operations": [
26
+ {
27
+ "applicationId": "communications-app",
28
+ "operationId": "gmail.read"
29
+ }
30
+ ]
31
+ },
32
+ "oauthAvailability": {
33
+ "kind": "operation-options",
34
+ "items": [
35
+ {
36
+ "requirement": {
37
+ "applicationId": "communications-app",
38
+ "operationId": "gmail.read"
39
+ },
40
+ "availability": {
41
+ "kind": "accounts",
42
+ "accounts": [
43
+ {
44
+ "accountId": "11111111-1111-4111-8111-111111111111",
45
+ "metadata": {
46
+ "kind": "unavailable"
47
+ },
48
+ "availability": {
49
+ "kind": "ready",
50
+ "disposition": "ask",
51
+ "overrideRevision": 1,
52
+ "defaultsRevision": "defaults-v1"
53
+ }
54
+ }
55
+ ]
56
+ }
57
+ }
58
+ ]
59
+ },
60
+ "input": {
61
+ "optional": [],
62
+ "propertyCount": 1,
63
+ "required": ["accountId"],
64
+ "type": "object"
65
+ },
66
+ "safety": {}
67
+ }
68
+ ]
69
+ }
70
+ }
71
+ ],
72
+ "ok": true
73
+ },
74
+ "expectation": {
75
+ "kind": "rejected",
76
+ "errorCodes": ["portal.google.discovery-policy"],
77
+ "refinementIdentities": [
78
+ "portal.google.discovery-policy",
79
+ "portal.request-id.not-reserved",
80
+ "portal.result.aggregate-status"
81
+ ]
82
+ }
83
+ }
@@ -0,0 +1,154 @@
1
+ {
2
+ "caseId": "google-search-valid",
3
+ "schemaId": "portal.search.result",
4
+ "tags": ["accepted", "discovery", "google"],
5
+ "input": {
6
+ "items": [
7
+ {
8
+ "id": "search-google",
9
+ "status": "ok",
10
+ "value": {
11
+ "namespaceDiscovery": [],
12
+ "tools": [
13
+ {
14
+ "namespace": "google",
15
+ "name": "gog",
16
+ "toolRef": "google.gog",
17
+ "callDisposition": {
18
+ "kind": "invocation-dependent",
19
+ "describeBeforeCall": true
20
+ },
21
+ "oauthRequirement": {
22
+ "kind": "google-account",
23
+ "accountArgument": "accountId",
24
+ "describeBeforeCall": true,
25
+ "operations": [
26
+ {
27
+ "applicationId": "communications-app",
28
+ "operationId": "gmail.read"
29
+ }
30
+ ]
31
+ },
32
+ "oauthAvailability": {
33
+ "kind": "operation-options",
34
+ "items": [
35
+ {
36
+ "requirement": {
37
+ "applicationId": "communications-app",
38
+ "operationId": "gmail.read"
39
+ },
40
+ "availability": {
41
+ "kind": "accounts",
42
+ "accounts": [
43
+ {
44
+ "accountId": "11111111-1111-4111-8111-111111111111",
45
+ "metadata": {
46
+ "kind": "verified",
47
+ "accountAlias": "Personal mailbox"
48
+ },
49
+ "availability": {
50
+ "kind": "ready",
51
+ "disposition": "ask",
52
+ "overrideRevision": 1,
53
+ "defaultsRevision": "defaults-v1"
54
+ }
55
+ }
56
+ ]
57
+ }
58
+ }
59
+ ]
60
+ },
61
+ "input": {
62
+ "optional": [],
63
+ "propertyCount": 1,
64
+ "required": ["accountId"],
65
+ "type": "object"
66
+ },
67
+ "safety": {}
68
+ }
69
+ ]
70
+ }
71
+ }
72
+ ],
73
+ "ok": true
74
+ },
75
+ "expectation": {
76
+ "kind": "accepted",
77
+ "normalized": {
78
+ "items": [
79
+ {
80
+ "id": "search-google",
81
+ "status": "ok",
82
+ "value": {
83
+ "namespaceDiscovery": [],
84
+ "tools": [
85
+ {
86
+ "namespace": "google",
87
+ "name": "gog",
88
+ "toolRef": "google.gog",
89
+ "callDisposition": {
90
+ "kind": "invocation-dependent",
91
+ "describeBeforeCall": true
92
+ },
93
+ "oauthRequirement": {
94
+ "kind": "google-account",
95
+ "accountArgument": "accountId",
96
+ "describeBeforeCall": true,
97
+ "operations": [
98
+ {
99
+ "applicationId": "communications-app",
100
+ "operationId": "gmail.read"
101
+ }
102
+ ]
103
+ },
104
+ "oauthAvailability": {
105
+ "kind": "operation-options",
106
+ "items": [
107
+ {
108
+ "requirement": {
109
+ "applicationId": "communications-app",
110
+ "operationId": "gmail.read"
111
+ },
112
+ "availability": {
113
+ "kind": "accounts",
114
+ "accounts": [
115
+ {
116
+ "accountId": "11111111-1111-4111-8111-111111111111",
117
+ "metadata": {
118
+ "kind": "verified",
119
+ "accountAlias": "Personal mailbox"
120
+ },
121
+ "availability": {
122
+ "kind": "ready",
123
+ "disposition": "ask",
124
+ "overrideRevision": 1,
125
+ "defaultsRevision": "defaults-v1"
126
+ }
127
+ }
128
+ ]
129
+ }
130
+ }
131
+ ]
132
+ },
133
+ "input": {
134
+ "optional": [],
135
+ "propertyCount": 1,
136
+ "required": ["accountId"],
137
+ "type": "object"
138
+ },
139
+ "safety": {}
140
+ }
141
+ ]
142
+ }
143
+ }
144
+ ],
145
+ "ok": true
146
+ },
147
+ "canonicalJson": "{\"items\":[{\"id\":\"search-google\",\"status\":\"ok\",\"value\":{\"namespaceDiscovery\":[],\"tools\":[{\"callDisposition\":{\"describeBeforeCall\":true,\"kind\":\"invocation-dependent\"},\"input\":{\"optional\":[],\"propertyCount\":1,\"required\":[\"accountId\"],\"type\":\"object\"},\"name\":\"gog\",\"namespace\":\"google\",\"oauthAvailability\":{\"items\":[{\"availability\":{\"accounts\":[{\"accountId\":\"11111111-1111-4111-8111-111111111111\",\"availability\":{\"defaultsRevision\":\"defaults-v1\",\"disposition\":\"ask\",\"kind\":\"ready\",\"overrideRevision\":1},\"metadata\":{\"accountAlias\":\"Personal mailbox\",\"kind\":\"verified\"}}],\"kind\":\"accounts\"},\"requirement\":{\"applicationId\":\"communications-app\",\"operationId\":\"gmail.read\"}}],\"kind\":\"operation-options\"},\"oauthRequirement\":{\"accountArgument\":\"accountId\",\"describeBeforeCall\":true,\"kind\":\"google-account\",\"operations\":[{\"applicationId\":\"communications-app\",\"operationId\":\"gmail.read\"}]},\"safety\":{},\"toolRef\":\"google.gog\"}]}}],\"ok\":true}",
148
+ "refinementIdentities": [
149
+ "portal.google.discovery-policy",
150
+ "portal.request-id.not-reserved",
151
+ "portal.result.aggregate-status"
152
+ ]
153
+ }
154
+ }
@@ -25,6 +25,10 @@
25
25
  "ok": true
26
26
  },
27
27
  "canonicalJson": "{\"items\":[{\"id\":\"list-1\",\"status\":\"ok\",\"value\":{\"namespaceDiscovery\":[],\"namespaces\":[],\"tools\":[]}}],\"ok\":true}",
28
- "refinementIdentities": ["portal.request-id.not-reserved", "portal.result.aggregate-status"]
28
+ "refinementIdentities": [
29
+ "portal.google.discovery-policy",
30
+ "portal.request-id.not-reserved",
31
+ "portal.result.aggregate-status"
32
+ ]
29
33
  }
30
34
  }