@agent-vm/agent-portal-sdk 0.0.148 → 0.0.150

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 (107) 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-phfnKUSF.js → approval-surface-CfbAG-81.js} +4 -4
  35. package/dist/{approval-surface-phfnKUSF.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 +1 -1
  40. package/dist/capability-description-surface/index.js +2 -2
  41. package/dist/capability-description-surface-DKZLjpG4.js +2 -0
  42. package/dist/{capability-descriptor-schema-B_0vLQ3E.js → capability-descriptor-schema-5evBt6Hl.js} +2 -2
  43. package/dist/{capability-descriptor-schema-B_0vLQ3E.js.map → capability-descriptor-schema-5evBt6Hl.js.map} +1 -1
  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-C2axvEYg.d.ts → index-B5Yuf_ir.d.ts} +3 -3
  53. package/dist/{index-C2axvEYg.d.ts.map → index-B5Yuf_ir.d.ts.map} +1 -1
  54. package/dist/{index-ex2lEawY.d.ts → index-BdK9cTP_.d.ts} +29 -7
  55. package/dist/index-BdK9cTP_.d.ts.map +1 -0
  56. package/dist/{index-uDfElZ9U.d.ts → index-ByBEiqZp.d.ts} +177 -93
  57. package/dist/index-ByBEiqZp.d.ts.map +1 -0
  58. package/dist/{index-DTTEu7ZT.d.ts → index-CLHNSgWL.d.ts} +120 -4
  59. package/dist/{index-DTTEu7ZT.d.ts.map → index-CLHNSgWL.d.ts.map} +1 -1
  60. package/dist/{index-C-QFWaH5.d.ts → index-E3B9TETl.d.ts} +11 -1
  61. package/dist/index-E3B9TETl.d.ts.map +1 -0
  62. package/dist/index.d.ts +6 -6
  63. package/dist/index.js +15 -15
  64. package/dist/{json-value-schema-Br5M7d7X.js → json-value-schema-rxMrw9uZ.js} +2 -2
  65. package/dist/{json-value-schema-Br5M7d7X.js.map → json-value-schema-rxMrw9uZ.js.map} +1 -1
  66. package/dist/{namespace-discovery-schema-DwbJHVLu.js → namespace-discovery-schema-BBWRZZnD.js} +2 -2
  67. package/dist/{namespace-discovery-schema-DwbJHVLu.js.map → namespace-discovery-schema-BBWRZZnD.js.map} +1 -1
  68. package/dist/portable-contracts/index.d.ts +1 -1
  69. package/dist/portable-contracts/index.js +2 -2
  70. package/dist/{portable-contracts-CWLiYrVU.js → portable-contracts-D7axGgu1.js} +75 -15
  71. package/dist/portable-contracts-D7axGgu1.js.map +1 -0
  72. package/dist/{portable-refinement-authoring-C1Q92x2G.js → portable-refinement-authoring-oFICWLOo.js} +16 -2
  73. package/dist/portable-refinement-authoring-oFICWLOo.js.map +1 -0
  74. package/dist/{portal-call-request-schema-Cl0kTLaX.js → portal-call-request-schema-B1dbBjmW.js} +4 -4
  75. package/dist/{portal-call-request-schema-Cl0kTLaX.js.map → portal-call-request-schema-B1dbBjmW.js.map} +1 -1
  76. package/dist/{portal-call-result-schema-Mv2Dv1HJ.d.ts → portal-call-result-schema-BEPp8X4z.d.ts} +1003 -427
  77. package/dist/portal-call-result-schema-BEPp8X4z.d.ts.map +1 -0
  78. package/dist/{portal-call-result-schema-DM77S9CA.js → portal-call-result-schema-DVJ6FyTz.js} +24 -8
  79. package/dist/portal-call-result-schema-DVJ6FyTz.js.map +1 -0
  80. package/dist/portal-call-surface/index.d.ts +3 -3
  81. package/dist/portal-call-surface/index.js +4 -4
  82. package/dist/portal-call-surface-BPVX-rjw.js +175 -0
  83. package/dist/portal-call-surface-BPVX-rjw.js.map +1 -0
  84. package/dist/portal-event-surface/index.js +1 -1
  85. package/dist/{portal-event-surface-Bp3rXsBz.js → portal-event-surface-Z76kra2a.js} +2 -2
  86. package/dist/{portal-event-surface-Bp3rXsBz.js.map → portal-event-surface-Z76kra2a.js.map} +1 -1
  87. package/dist/{request-id-schema-Hq_6lSFV.js → request-id-schema-DQ84TX-D.js} +2 -2
  88. package/dist/{request-id-schema-Hq_6lSFV.js.map → request-id-schema-DQ84TX-D.js.map} +1 -1
  89. package/dist/testing/index.d.ts +1 -1
  90. package/dist/testing/index.js +2 -2
  91. package/dist/tool-portal-mcp-client/index.d.ts +1 -1
  92. package/dist/tool-portal-mcp-client/index.js +1 -1
  93. package/dist/tool-portal-mcp-client/node-tool-portal-mcp-transport.d.ts +1 -1
  94. package/dist/{tool-portal-mcp-client-DsDi2iJc.js → tool-portal-mcp-client-DSDLoZ5e.js} +5 -5
  95. package/dist/{tool-portal-mcp-client-DsDi2iJc.js.map → tool-portal-mcp-client-DSDLoZ5e.js.map} +1 -1
  96. package/package.json +2 -2
  97. package/portable-contract-schema-manifest.json +1614 -366
  98. package/dist/capability-description-surface-YqGm-nS_.js +0 -2
  99. package/dist/index-C-QFWaH5.d.ts.map +0 -1
  100. package/dist/index-ex2lEawY.d.ts.map +0 -1
  101. package/dist/index-uDfElZ9U.d.ts.map +0 -1
  102. package/dist/portable-contracts-CWLiYrVU.js.map +0 -1
  103. package/dist/portable-refinement-authoring-C1Q92x2G.js.map +0 -1
  104. package/dist/portal-call-result-schema-DM77S9CA.js.map +0 -1
  105. package/dist/portal-call-result-schema-Mv2Dv1HJ.d.ts.map +0 -1
  106. package/dist/portal-call-surface-B952nh-H.js +0 -84
  107. package/dist/portal-call-surface-B952nh-H.js.map +0 -1
@@ -0,0 +1,66 @@
1
+ {
2
+ "caseId": "managed-google-challenge",
3
+ "schemaId": "portal.call.item-result",
4
+ "tags": ["accepted", "approval", "google"],
5
+ "input": {
6
+ "approvalChallenge": {
7
+ "challengeId": "22222222-2222-4222-8222-222222222222",
8
+ "expiresAt": "2026-09-06T20:00:00.000Z",
9
+ "kind": "managed_google",
10
+ "managedGoogleDisplay": {
11
+ "accountId": "11111111-1111-4111-8111-111111111111",
12
+ "authorizationId": "33333333-3333-4333-8333-333333333333",
13
+ "accountAlias": "Personal mailbox",
14
+ "applicationLabel": "Gmail, Calendar & Contacts",
15
+ "authorizationMetadataRevision": 1
16
+ }
17
+ },
18
+ "error": {
19
+ "code": "approval_required",
20
+ "message": "Approval required",
21
+ "retryable": false
22
+ },
23
+ "id": "google-call",
24
+ "operationId": "operation-1",
25
+ "outcome": {
26
+ "kind": "not-dispatched",
27
+ "certainty": "proven",
28
+ "retryClass": "safe-before-dispatch"
29
+ },
30
+ "owningGeneration": "epoch-1",
31
+ "status": "approval_required"
32
+ },
33
+ "expectation": {
34
+ "kind": "accepted",
35
+ "normalized": {
36
+ "approvalChallenge": {
37
+ "challengeId": "22222222-2222-4222-8222-222222222222",
38
+ "expiresAt": "2026-09-06T20:00:00.000Z",
39
+ "kind": "managed_google",
40
+ "managedGoogleDisplay": {
41
+ "accountId": "11111111-1111-4111-8111-111111111111",
42
+ "authorizationId": "33333333-3333-4333-8333-333333333333",
43
+ "accountAlias": "Personal mailbox",
44
+ "applicationLabel": "Gmail, Calendar & Contacts",
45
+ "authorizationMetadataRevision": 1
46
+ }
47
+ },
48
+ "error": {
49
+ "code": "approval_required",
50
+ "message": "Approval required",
51
+ "retryable": false
52
+ },
53
+ "id": "google-call",
54
+ "operationId": "operation-1",
55
+ "outcome": {
56
+ "kind": "not-dispatched",
57
+ "certainty": "proven",
58
+ "retryClass": "safe-before-dispatch"
59
+ },
60
+ "owningGeneration": "epoch-1",
61
+ "status": "approval_required"
62
+ },
63
+ "canonicalJson": "{\"approvalChallenge\":{\"challengeId\":\"22222222-2222-4222-8222-222222222222\",\"expiresAt\":\"2026-09-06T20:00:00.000Z\",\"kind\":\"managed_google\",\"managedGoogleDisplay\":{\"accountAlias\":\"Personal mailbox\",\"accountId\":\"11111111-1111-4111-8111-111111111111\",\"applicationLabel\":\"Gmail, Calendar & Contacts\",\"authorizationId\":\"33333333-3333-4333-8333-333333333333\",\"authorizationMetadataRevision\":1}},\"error\":{\"code\":\"approval_required\",\"message\":\"Approval required\",\"retryable\":false},\"id\":\"google-call\",\"operationId\":\"operation-1\",\"outcome\":{\"certainty\":\"proven\",\"kind\":\"not-dispatched\",\"retryClass\":\"safe-before-dispatch\"},\"owningGeneration\":\"epoch-1\",\"status\":\"approval_required\"}",
64
+ "refinementIdentities": ["portal.request-id.not-reserved", "portal.result.outcome-algebra"]
65
+ }
66
+ }
@@ -17,6 +17,10 @@
17
17
  "ok": true
18
18
  },
19
19
  "canonicalJson": "{\"items\":[{\"id\":\"describe-1\",\"status\":\"ok\",\"value\":{\"namespaceDiscovery\":[],\"tools\":[]}}],\"ok\":true}",
20
- "refinementIdentities": ["portal.request-id.not-reserved", "portal.result.aggregate-status"]
20
+ "refinementIdentities": [
21
+ "portal.google.discovery-policy",
22
+ "portal.request-id.not-reserved",
23
+ "portal.result.aggregate-status"
24
+ ]
21
25
  }
22
26
  }
@@ -0,0 +1,103 @@
1
+ {
2
+ "caseId": "google-describe-duplicate-availability",
3
+ "schemaId": "portal.describe.result",
4
+ "tags": ["rejected", "discovery", "google"],
5
+ "input": {
6
+ "items": [
7
+ {
8
+ "id": "describe-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
+ "annotations": {},
86
+ "related": []
87
+ }
88
+ ]
89
+ }
90
+ }
91
+ ],
92
+ "ok": true
93
+ },
94
+ "expectation": {
95
+ "kind": "rejected",
96
+ "errorCodes": ["portal.google.discovery-policy"],
97
+ "refinementIdentities": [
98
+ "portal.google.discovery-policy",
99
+ "portal.request-id.not-reserved",
100
+ "portal.result.aggregate-status"
101
+ ]
102
+ }
103
+ }
@@ -0,0 +1,83 @@
1
+ {
2
+ "caseId": "google-describe-duplicate-requirements",
3
+ "schemaId": "portal.describe.result",
4
+ "tags": ["rejected", "discovery", "google"],
5
+ "input": {
6
+ "items": [
7
+ {
8
+ "id": "describe-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
+ "annotations": {},
66
+ "related": []
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,78 @@
1
+ {
2
+ "caseId": "google-describe-unverified-ready",
3
+ "schemaId": "portal.describe.result",
4
+ "tags": ["rejected", "discovery", "google"],
5
+ "input": {
6
+ "items": [
7
+ {
8
+ "id": "describe-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
+ "annotations": {},
61
+ "related": []
62
+ }
63
+ ]
64
+ }
65
+ }
66
+ ],
67
+ "ok": true
68
+ },
69
+ "expectation": {
70
+ "kind": "rejected",
71
+ "errorCodes": ["portal.google.discovery-policy"],
72
+ "refinementIdentities": [
73
+ "portal.google.discovery-policy",
74
+ "portal.request-id.not-reserved",
75
+ "portal.result.aggregate-status"
76
+ ]
77
+ }
78
+ }
@@ -0,0 +1,144 @@
1
+ {
2
+ "caseId": "google-describe-valid",
3
+ "schemaId": "portal.describe.result",
4
+ "tags": ["accepted", "discovery", "google"],
5
+ "input": {
6
+ "items": [
7
+ {
8
+ "id": "describe-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
+ "annotations": {},
62
+ "related": []
63
+ }
64
+ ]
65
+ }
66
+ }
67
+ ],
68
+ "ok": true
69
+ },
70
+ "expectation": {
71
+ "kind": "accepted",
72
+ "normalized": {
73
+ "items": [
74
+ {
75
+ "id": "describe-google",
76
+ "status": "ok",
77
+ "value": {
78
+ "namespaceDiscovery": [],
79
+ "tools": [
80
+ {
81
+ "namespace": "google",
82
+ "name": "gog",
83
+ "toolRef": "google.gog",
84
+ "callDisposition": {
85
+ "kind": "invocation-dependent",
86
+ "describeBeforeCall": true
87
+ },
88
+ "oauthRequirement": {
89
+ "kind": "google-account",
90
+ "accountArgument": "accountId",
91
+ "describeBeforeCall": true,
92
+ "operations": [
93
+ {
94
+ "applicationId": "communications-app",
95
+ "operationId": "gmail.read"
96
+ }
97
+ ]
98
+ },
99
+ "oauthAvailability": {
100
+ "kind": "operation-options",
101
+ "items": [
102
+ {
103
+ "requirement": {
104
+ "applicationId": "communications-app",
105
+ "operationId": "gmail.read"
106
+ },
107
+ "availability": {
108
+ "kind": "accounts",
109
+ "accounts": [
110
+ {
111
+ "accountId": "11111111-1111-4111-8111-111111111111",
112
+ "metadata": {
113
+ "kind": "verified",
114
+ "accountAlias": "Personal mailbox"
115
+ },
116
+ "availability": {
117
+ "kind": "ready",
118
+ "disposition": "ask",
119
+ "overrideRevision": 1,
120
+ "defaultsRevision": "defaults-v1"
121
+ }
122
+ }
123
+ ]
124
+ }
125
+ }
126
+ ]
127
+ },
128
+ "annotations": {},
129
+ "related": []
130
+ }
131
+ ]
132
+ }
133
+ }
134
+ ],
135
+ "ok": true
136
+ },
137
+ "canonicalJson": "{\"items\":[{\"id\":\"describe-google\",\"status\":\"ok\",\"value\":{\"namespaceDiscovery\":[],\"tools\":[{\"annotations\":{},\"callDisposition\":{\"describeBeforeCall\":true,\"kind\":\"invocation-dependent\"},\"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\"}]},\"related\":[],\"toolRef\":\"google.gog\"}]}}],\"ok\":true}",
138
+ "refinementIdentities": [
139
+ "portal.google.discovery-policy",
140
+ "portal.request-id.not-reserved",
141
+ "portal.result.aggregate-status"
142
+ ]
143
+ }
144
+ }
@@ -0,0 +1,109 @@
1
+ {
2
+ "caseId": "google-list-duplicate-availability",
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": "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
+ "namespaces": ["google"]
95
+ }
96
+ }
97
+ ],
98
+ "ok": true
99
+ },
100
+ "expectation": {
101
+ "kind": "rejected",
102
+ "errorCodes": ["portal.google.discovery-policy"],
103
+ "refinementIdentities": [
104
+ "portal.google.discovery-policy",
105
+ "portal.request-id.not-reserved",
106
+ "portal.result.aggregate-status"
107
+ ]
108
+ }
109
+ }
@@ -0,0 +1,89 @@
1
+ {
2
+ "caseId": "google-list-duplicate-requirements",
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
+ "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
+ "namespaces": ["google"]
75
+ }
76
+ }
77
+ ],
78
+ "ok": true
79
+ },
80
+ "expectation": {
81
+ "kind": "rejected",
82
+ "errorCodes": ["portal.google.discovery-policy"],
83
+ "refinementIdentities": [
84
+ "portal.google.discovery-policy",
85
+ "portal.request-id.not-reserved",
86
+ "portal.result.aggregate-status"
87
+ ]
88
+ }
89
+ }