@greatwait/contracts 0.1.0-alpha.2 → 0.1.0-alpha.3
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/dist/authority.d.ts +57 -0
- package/dist/authority.js +35 -0
- package/dist/first-value-journey.d.ts +156 -0
- package/dist/first-value-journey.js +213 -0
- package/dist/identity.d.ts +4 -4
- package/dist/index.d.ts +3 -3
- package/dist/index.js +3 -3
- package/dist/mcp.d.ts +199 -0
- package/dist/mcp.js +214 -0
- package/dist/oauth.js +83 -7
- package/dist/operations.d.ts +155 -1
- package/dist/operations.js +104 -2
- package/generated/v1/examples/context.read.response.json +6 -0
- package/generated/v1/examples/credentials.connection.response.json +16 -0
- package/generated/v1/manifest.json +53 -0
- package/generated/v1/openapi.json +689 -0
- package/generated/v1/policy-matrix.json +14 -0
- package/generated/v1/schemas/context.read.response.json +43 -0
- package/generated/v1/schemas/credentials.connection.response.json +64 -0
- package/generated/v1/snippets/attempts.list.json +1 -0
- package/generated/v1/snippets/attempts.read.json +1 -0
- package/generated/v1/snippets/context.read.json +6 -0
- package/generated/v1/snippets/credentials.connection.json +6 -0
- package/generated/v1/snippets/credentials.create.json +1 -0
- package/generated/v1/snippets/credentials.list.json +1 -0
- package/generated/v1/snippets/credentials.revoke.json +1 -0
- package/generated/v1/snippets/credentials.rotate.json +1 -0
- package/generated/v1/snippets/endpoints.create.json +1 -0
- package/generated/v1/snippets/endpoints.disable.json +1 -0
- package/generated/v1/snippets/endpoints.list.json +1 -0
- package/generated/v1/snippets/endpoints.read.json +1 -0
- package/generated/v1/snippets/endpoints.rotateSigningKey.json +1 -0
- package/generated/v1/snippets/endpoints.update.json +1 -0
- package/generated/v1/snippets/endpoints.verify.json +1 -0
- package/generated/v1/snippets/forecast.read.json +1 -0
- package/generated/v1/snippets/forecast.windows.json +1 -0
- package/generated/v1/snippets/grants.list.json +1 -0
- package/generated/v1/snippets/grants.revoke.json +1 -0
- package/generated/v1/snippets/journey/await-occurrence.json +6 -0
- package/generated/v1/snippets/journey/check-credential.json +6 -0
- package/generated/v1/snippets/journey/check-service.json +6 -0
- package/generated/v1/snippets/journey/clean-up.json +6 -0
- package/generated/v1/snippets/journey/create-destination.json +6 -0
- package/generated/v1/snippets/journey/create-one-shot.json +6 -0
- package/generated/v1/snippets/journey/read-attempt.json +6 -0
- package/generated/v1/snippets/journey/read-schedule.json +6 -0
- package/generated/v1/snippets/journey/replay-one-shot.json +6 -0
- package/generated/v1/snippets/meta.scaffold.json +1 -0
- package/generated/v1/snippets/meta.version.json +1 -0
- package/generated/v1/snippets/occurrences.list.json +1 -0
- package/generated/v1/snippets/occurrences.read.json +1 -0
- package/generated/v1/snippets/occurrences.redeliver.json +1 -0
- package/generated/v1/snippets/projects.create.json +1 -0
- package/generated/v1/snippets/projects.list.json +1 -0
- package/generated/v1/snippets/schedules.archive.json +1 -0
- package/generated/v1/snippets/schedules.cancel.json +1 -0
- package/generated/v1/snippets/schedules.create.json +1 -0
- package/generated/v1/snippets/schedules.list.json +1 -0
- package/generated/v1/snippets/schedules.pause.json +1 -0
- package/generated/v1/snippets/schedules.read.json +1 -0
- package/generated/v1/snippets/schedules.replace.json +1 -0
- package/generated/v1/snippets/schedules.resume.json +1 -0
- package/generated/v1/snippets/sinkdeliveries.list.json +1 -0
- package/generated/v1/snippets/sinkdeliveries.read.json +1 -0
- package/generated/v1/snippets/testsinks.configure.json +1 -0
- package/generated/v1/snippets/testsinks.create.json +1 -0
- package/generated/v1/snippets/testsinks.delete.json +1 -0
- package/generated/v1/snippets/testsinks.list.json +1 -0
- package/generated/v1/snippets/testsinks.read.json +1 -0
- package/generated/v1/snippets/usage.read.json +1 -0
- package/package.json +2 -2
|
@@ -13,6 +13,20 @@
|
|
|
13
13
|
"roles": ["admin", "member"],
|
|
14
14
|
"scopes": ["occurrences:read"]
|
|
15
15
|
},
|
|
16
|
+
{
|
|
17
|
+
"mutates": false,
|
|
18
|
+
"operation": "context.read",
|
|
19
|
+
"principals": ["api-credential", "oauth"],
|
|
20
|
+
"roles": ["admin", "member"],
|
|
21
|
+
"scopes": []
|
|
22
|
+
},
|
|
23
|
+
{
|
|
24
|
+
"mutates": false,
|
|
25
|
+
"operation": "credentials.connection",
|
|
26
|
+
"principals": ["session"],
|
|
27
|
+
"roles": ["admin", "member"],
|
|
28
|
+
"scopes": ["credentials:read"]
|
|
29
|
+
},
|
|
16
30
|
{
|
|
17
31
|
"mutates": true,
|
|
18
32
|
"operation": "credentials.create",
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"environmentKind": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"enum": ["test", "live"]
|
|
8
|
+
},
|
|
9
|
+
"principal": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"enum": ["api-credential", "oauth"]
|
|
12
|
+
},
|
|
13
|
+
"project": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"pattern": "^proj_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
|
|
16
|
+
},
|
|
17
|
+
"scopes": {
|
|
18
|
+
"minItems": 1,
|
|
19
|
+
"type": "array",
|
|
20
|
+
"items": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"enum": [
|
|
23
|
+
"credentials:administer",
|
|
24
|
+
"credentials:read",
|
|
25
|
+
"credentials:write",
|
|
26
|
+
"endpoints:read",
|
|
27
|
+
"endpoints:write",
|
|
28
|
+
"forecast:read",
|
|
29
|
+
"grants:read",
|
|
30
|
+
"grants:write",
|
|
31
|
+
"occurrences:read",
|
|
32
|
+
"occurrences:redeliver",
|
|
33
|
+
"projects:read",
|
|
34
|
+
"projects:write",
|
|
35
|
+
"schedules:read",
|
|
36
|
+
"schedules:write",
|
|
37
|
+
"usage:read"
|
|
38
|
+
]
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"required": ["environmentKind", "principal", "project", "scopes"]
|
|
43
|
+
}
|
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://json-schema.org/draft/2020-12/schema",
|
|
3
|
+
"type": "object",
|
|
4
|
+
"properties": {
|
|
5
|
+
"discovery": {
|
|
6
|
+
"type": "string",
|
|
7
|
+
"format": "uri"
|
|
8
|
+
},
|
|
9
|
+
"displayPrefix": {
|
|
10
|
+
"type": "string",
|
|
11
|
+
"pattern": "^pt_(?:live|test)_[0-9a-z]{8}$"
|
|
12
|
+
},
|
|
13
|
+
"endpoint": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"format": "uri"
|
|
16
|
+
},
|
|
17
|
+
"id": {
|
|
18
|
+
"type": "string",
|
|
19
|
+
"pattern": "^ak_[0-9abcdefghjkmnpqrstvwxyz]{26}$"
|
|
20
|
+
},
|
|
21
|
+
"scopes": {
|
|
22
|
+
"type": "array",
|
|
23
|
+
"items": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"enum": [
|
|
26
|
+
"credentials:administer",
|
|
27
|
+
"credentials:read",
|
|
28
|
+
"credentials:write",
|
|
29
|
+
"endpoints:read",
|
|
30
|
+
"endpoints:write",
|
|
31
|
+
"forecast:read",
|
|
32
|
+
"grants:read",
|
|
33
|
+
"grants:write",
|
|
34
|
+
"occurrences:read",
|
|
35
|
+
"occurrences:redeliver",
|
|
36
|
+
"projects:read",
|
|
37
|
+
"projects:write",
|
|
38
|
+
"schedules:read",
|
|
39
|
+
"schedules:write",
|
|
40
|
+
"usage:read"
|
|
41
|
+
]
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"state": {
|
|
45
|
+
"type": "string",
|
|
46
|
+
"enum": ["usable", "revoked", "expired"]
|
|
47
|
+
},
|
|
48
|
+
"tools": {
|
|
49
|
+
"type": "array",
|
|
50
|
+
"items": {
|
|
51
|
+
"type": "string"
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
},
|
|
55
|
+
"required": [
|
|
56
|
+
"discovery",
|
|
57
|
+
"displayPrefix",
|
|
58
|
+
"endpoint",
|
|
59
|
+
"id",
|
|
60
|
+
"scopes",
|
|
61
|
+
"state",
|
|
62
|
+
"tools"
|
|
63
|
+
]
|
|
64
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/schedules/$GREATWAIT_SCHEDULEID/occurrences/$GREATWAIT_OCCURRENCEID/attempts\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst scheduleId = process.env.GREATWAIT_SCHEDULEID;\nconst occurrenceId = process.env.GREATWAIT_OCCURRENCEID;\n\nconst result = await greatwait.request(\"attempts_list\", scheduleId, occurrenceId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"occurrenceId\": \"$OCCURRENCEID\",\n \"scheduleId\": \"$SCHEDULEID\"\n },\n \"name\": \"attempts_list\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/schedules/$GREATWAIT_SCHEDULEID/occurrences/$GREATWAIT_OCCURRENCEID/attempts/$GREATWAIT_ATTEMPTID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst scheduleId = process.env.GREATWAIT_SCHEDULEID;\nconst occurrenceId = process.env.GREATWAIT_OCCURRENCEID;\nconst attemptId = process.env.GREATWAIT_ATTEMPTID;\n\nconst result = await greatwait.request(\"attempts_read\", scheduleId, occurrenceId, attemptId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"attemptId\": \"$ATTEMPTID\",\n \"occurrenceId\": \"$OCCURRENCEID\",\n \"scheduleId\": \"$SCHEDULEID\"\n },\n \"name\": \"attempts_read\"\n}"
|
|
5
6
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/context\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
4
|
+
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst result = await greatwait.request(\"context_read\");",
|
|
5
|
+
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n// A resource rather than a tool: read it by URI, with no arguments.\n{\n \"uri\": \"greatwait://context\"\n}"
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/credentials/$GREATWAIT_CREDENTIALID/connection\" \\\n --variable %GREATWAIT_SESSION_TOKEN \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_SESSION_TOKEN}}\" \\\n -H 'Greatwait-Project: $GREATWAIT_PROJECT' \\\n -H 'Greatwait-Environment: $GREATWAIT_ENVIRONMENT'",
|
|
3
|
+
"environments": ["test", "live"],
|
|
4
|
+
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst named = (input, init = {}) =>\n fetch(input, {\n ...init,\n headers: {\n ...init.headers,\n \"Greatwait-Project\": process.env.GREATWAIT_PROJECT,\n \"Greatwait-Environment\": process.env.GREATWAIT_ENVIRONMENT,\n },\n });\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_SESSION_TOKEN,\n fetch: named,\n});\n\nconst credentialId = process.env.GREATWAIT_CREDENTIALID;\n\nconst result = await greatwait.request(\"credentials_connection\", credentialId);",
|
|
5
|
+
"mcp": "// credentials.connection is not on the MCP surface.\n// A signed-in member checking a key whose secret is still on screen. MCP carries API credentials and OAuth tokens, neither of which holds a transient secret or a session to bind one to."
|
|
6
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/credentials\" \\\n --variable %GREATWAIT_SESSION_TOKEN \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_SESSION_TOKEN}}\" \\\n -H 'Content-Type: application/json' \\\n --data-binary '{\"environmentKind\":\"test\",\"project\":\"proj_01h8xyz9k2m4n6p8r0t2v4w6y8\",\"scopes\":[\"schedules:write\"]}'",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_SESSION_TOKEN,\n fetch,\n});\n\nconst body = {\n \"environmentKind\": \"test\",\n \"project\": \"proj_01h8xyz9k2m4n6p8r0t2v4w6y8\",\n \"scopes\": [\n \"schedules:write\"\n ]\n};\n\nconst result = await greatwait.request(\"credentials_create\", body);",
|
|
4
5
|
"mcp": "// credentials.create is not on the MCP surface.\n// Issuance is authenticated by a signed-in member. MCP carries API credentials and OAuth tokens, and `POST /v1/credentials` refuses both."
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/credentials\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst result = await greatwait.request(\"credentials_list\");",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {},\n \"name\": \"credentials_list\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X DELETE \"$GREATWAIT_API_URL/v1/credentials/$GREATWAIT_CREDENTIALID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst credentialId = process.env.GREATWAIT_CREDENTIALID;\n\nconst result = await greatwait.request(\"credentials_revoke\", credentialId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"credentialId\": \"$CREDENTIALID\"\n },\n \"name\": \"credentials_revoke\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/credentials/$GREATWAIT_CREDENTIALID/rotate\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\" \\\n -H 'Content-Type: application/json' \\\n --data-binary '{\"overlapSeconds\":3600}'",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst credentialId = process.env.GREATWAIT_CREDENTIALID;\n\nconst body = {\n \"overlapSeconds\": 3600\n};\n\nconst result = await greatwait.request(\"credentials_rotate\", credentialId, body);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"credentialId\": \"$CREDENTIALID\",\n \"overlapSeconds\": 3600\n },\n \"name\": \"credentials_rotate\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/endpoints\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\" \\\n -H 'Content-Type: application/json' \\\n --data-binary '{\"url\":\"https://hooks.example.com/greatwait\"}'",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst body = {\n \"url\": \"https://hooks.example.com/greatwait\"\n};\n\nconst result = await greatwait.request(\"endpoints_create\", body);",
|
|
4
5
|
"mcp": "// endpoints.create is not on the MCP surface.\n// Creation returns a one-time endpoint signing secret, and MCP has no negotiated secure-result channel that can keep it out of ordinary tool history."
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X DELETE \"$GREATWAIT_API_URL/v1/endpoints/$GREATWAIT_ENDPOINTID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst endpointId = process.env.GREATWAIT_ENDPOINTID;\n\nconst result = await greatwait.request(\"endpoints_disable\", endpointId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"endpointId\": \"$ENDPOINTID\"\n },\n \"name\": \"endpoints_disable\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/endpoints\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst result = await greatwait.request(\"endpoints_list\");",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {},\n \"name\": \"endpoints_list\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/endpoints/$GREATWAIT_ENDPOINTID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst endpointId = process.env.GREATWAIT_ENDPOINTID;\n\nconst result = await greatwait.request(\"endpoints_read\", endpointId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"endpointId\": \"$ENDPOINTID\"\n },\n \"name\": \"endpoints_read\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/endpoints/$GREATWAIT_ENDPOINTID/signing-keys/rotate\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\" \\\n -H 'Content-Type: application/json' \\\n --data-binary '{\"overlapSeconds\":3600}'",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst endpointId = process.env.GREATWAIT_ENDPOINTID;\n\nconst body = {\n \"overlapSeconds\": 3600\n};\n\nconst result = await greatwait.request(\"endpoints_rotateSigningKey\", endpointId, body);",
|
|
4
5
|
"mcp": "// endpoints.rotateSigningKey is not on the MCP surface.\n// Rotation returns a one-time endpoint signing secret, and MCP has no negotiated secure-result channel that can keep it out of ordinary tool history."
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X PUT \"$GREATWAIT_API_URL/v1/endpoints/$GREATWAIT_ENDPOINTID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\" \\\n -H 'Content-Type: application/json' \\\n --data-binary '{\"url\":\"https://hooks.example.com/replacement\"}'",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst endpointId = process.env.GREATWAIT_ENDPOINTID;\n\nconst body = {\n \"url\": \"https://hooks.example.com/replacement\"\n};\n\nconst result = await greatwait.request(\"endpoints_update\", endpointId, body);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"endpointId\": \"$ENDPOINTID\",\n \"url\": \"https://hooks.example.com/replacement\"\n },\n \"name\": \"endpoints_update\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/endpoints/$GREATWAIT_ENDPOINTID/verify\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst endpointId = process.env.GREATWAIT_ENDPOINTID;\n\nconst result = await greatwait.request(\"endpoints_verify\", endpointId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"endpointId\": \"$ENDPOINTID\"\n },\n \"name\": \"endpoints_verify\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/forecast\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst result = await greatwait.request(\"forecast_read\");",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {},\n \"name\": \"forecast_read\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/forecast/windows\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst result = await greatwait.request(\"forecast_windows\");",
|
|
4
5
|
"mcp": "// forecast.windows is not on the MCP surface.\n// A transitional shape for the autoscaler migration, scheduled for withdrawal once W6-02 has cut over. forecast.read is the same data in the shape this product publishes, and it is the tool an agent should reach for."
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/grants\" \\\n --variable %GREATWAIT_SESSION_TOKEN \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_SESSION_TOKEN}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_SESSION_TOKEN,\n fetch,\n});\n\nconst result = await greatwait.request(\"grants_list\");",
|
|
4
5
|
"mcp": "// grants.list is not on the MCP surface.\n// A member's own connected applications. MCP carries API credentials and OAuth tokens, and an application holding a grant must not be able to enumerate its rivals — still less disconnect them — so this operation accepts neither."
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X DELETE \"$GREATWAIT_API_URL/v1/grants/$GREATWAIT_GRANTID\" \\\n --variable %GREATWAIT_SESSION_TOKEN \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_SESSION_TOKEN}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_SESSION_TOKEN,\n fetch,\n});\n\nconst grantId = process.env.GREATWAIT_GRANTID;\n\nconst result = await greatwait.request(\"grants_revoke\", grantId);",
|
|
4
5
|
"mcp": "// grants.revoke is not on the MCP surface.\n// Disconnecting an application is the member's own act. MCP carries API credentials and OAuth tokens, and an application able to disconnect a grant could disconnect the ones belonging to every other application the member has connected."
|
|
5
6
|
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/schedules/$GREATWAIT_SCHEDULEID/occurrences/$GREATWAIT_OCCURRENCEID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
4
|
+
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst scheduleId = process.env.GREATWAIT_SCHEDULEID;\nconst occurrenceId = process.env.GREATWAIT_OCCURRENCEID;\n\nconst result = await greatwait.request(\"occurrences_read\", scheduleId, occurrenceId);",
|
|
5
|
+
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"occurrenceId\": \"$OCCURRENCEID\",\n \"scheduleId\": \"$SCHEDULEID\"\n },\n \"name\": \"occurrences_read\"\n}"
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/schedules\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
4
|
+
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst result = await greatwait.request(\"schedules_list\");",
|
|
5
|
+
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {},\n \"name\": \"schedules_list\"\n}"
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/__greatwait/version\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
4
|
+
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n fetch,\n});\n\nconst result = await greatwait.request(\"meta_version\");",
|
|
5
|
+
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n// A resource rather than a tool: read it by URI, with no arguments.\n{\n \"uri\": \"greatwait://meta/version\"\n}"
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"curl": "curl -sS -X DELETE \"$GREATWAIT_API_URL/v1/endpoints/$GREATWAIT_ENDPOINTID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
4
|
+
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst endpointId = process.env.GREATWAIT_ENDPOINTID;\n\nconst result = await greatwait.request(\"endpoints_disable\", endpointId);",
|
|
5
|
+
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"endpointId\": \"$ENDPOINTID\"\n },\n \"name\": \"endpoints_disable\"\n}"
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/endpoints\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\" \\\n -H 'Content-Type: application/json' \\\n --data-binary '{\"url\":\"$GREATWAIT_RECEIVER_URL\"}'",
|
|
3
|
+
"environments": ["test", "live"],
|
|
4
|
+
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst body = {\n \"url\": process.env.GREATWAIT_RECEIVER_URL\n};\n\nconst result = await greatwait.request(\"endpoints_create\", body);",
|
|
5
|
+
"mcp": "// endpoints.create is not on the MCP surface.\n// Creation returns a one-time endpoint signing secret, and MCP has no negotiated secure-result channel that can keep it out of ordinary tool history."
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/schedules\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\" \\\n -H 'Content-Type: application/json' \\\n --data-binary '{\"data\":{\"greeting\":\"first value\"},\"delaySeconds\":30,\"endpoint\":\"$GREATWAIT_ENDPOINTID\"}'",
|
|
3
|
+
"environments": ["test", "live"],
|
|
4
|
+
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst body = {\n \"data\": {\n \"greeting\": \"first value\"\n },\n \"delaySeconds\": 30,\n \"endpoint\": process.env.GREATWAIT_ENDPOINTID\n};\n\nconst result = await greatwait.request(\"schedules_create\", body);",
|
|
5
|
+
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"data\": {\n \"greeting\": \"first value\"\n },\n \"delaySeconds\": 30,\n \"endpoint\": \"$GREATWAIT_ENDPOINTID\"\n },\n \"name\": \"schedules_create\"\n}"
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/schedules/$GREATWAIT_SCHEDULEID/occurrences/$GREATWAIT_OCCURRENCEID/attempts\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
4
|
+
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst scheduleId = process.env.GREATWAIT_SCHEDULEID;\nconst occurrenceId = process.env.GREATWAIT_OCCURRENCEID;\n\nconst result = await greatwait.request(\"attempts_list\", scheduleId, occurrenceId);",
|
|
5
|
+
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"occurrenceId\": \"$OCCURRENCEID\",\n \"scheduleId\": \"$SCHEDULEID\"\n },\n \"name\": \"attempts_list\"\n}"
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/schedules/$GREATWAIT_SCHEDULEID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
4
|
+
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst scheduleId = process.env.GREATWAIT_SCHEDULEID;\n\nconst result = await greatwait.request(\"schedules_read\", scheduleId);",
|
|
5
|
+
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"scheduleId\": \"$SCHEDULEID\"\n },\n \"name\": \"schedules_read\"\n}"
|
|
6
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
{
|
|
2
|
+
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/schedules\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\" \\\n -H 'Content-Type: application/json' \\\n --data-binary '{\"data\":{\"greeting\":\"first value\"},\"delaySeconds\":30,\"endpoint\":\"$GREATWAIT_ENDPOINTID\"}'",
|
|
3
|
+
"environments": ["test", "live"],
|
|
4
|
+
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst body = {\n \"data\": {\n \"greeting\": \"first value\"\n },\n \"delaySeconds\": 30,\n \"endpoint\": process.env.GREATWAIT_ENDPOINTID\n};\n\nconst result = await greatwait.request(\"schedules_create\", body);",
|
|
5
|
+
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"data\": {\n \"greeting\": \"first value\"\n },\n \"delaySeconds\": 30,\n \"endpoint\": \"$GREATWAIT_ENDPOINTID\"\n },\n \"name\": \"schedules_create\"\n}"
|
|
6
|
+
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/_scaffold\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n fetch,\n});\n\nconst result = await greatwait.request(\"meta_scaffold\");",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n// A resource rather than a tool: read it by URI, with no arguments.\n{\n \"uri\": \"greatwait://meta/scaffold\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/__greatwait/version\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n fetch,\n});\n\nconst result = await greatwait.request(\"meta_version\");",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n// A resource rather than a tool: read it by URI, with no arguments.\n{\n \"uri\": \"greatwait://meta/version\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/schedules/$GREATWAIT_SCHEDULEID/occurrences\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst scheduleId = process.env.GREATWAIT_SCHEDULEID;\n\nconst result = await greatwait.request(\"occurrences_list\", scheduleId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"scheduleId\": \"$SCHEDULEID\"\n },\n \"name\": \"occurrences_list\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/schedules/$GREATWAIT_SCHEDULEID/occurrences/$GREATWAIT_OCCURRENCEID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst scheduleId = process.env.GREATWAIT_SCHEDULEID;\nconst occurrenceId = process.env.GREATWAIT_OCCURRENCEID;\n\nconst result = await greatwait.request(\"occurrences_read\", scheduleId, occurrenceId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"occurrenceId\": \"$OCCURRENCEID\",\n \"scheduleId\": \"$SCHEDULEID\"\n },\n \"name\": \"occurrences_read\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/schedules/$GREATWAIT_SCHEDULEID/occurrences/$GREATWAIT_OCCURRENCEID/redeliver\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\" \\\n -H 'Idempotency-Key: $GREATWAIT_IDEMPOTENCY_KEY'",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst scheduleId = process.env.GREATWAIT_SCHEDULEID;\nconst occurrenceId = process.env.GREATWAIT_OCCURRENCEID;\n\nconst result = await greatwait.request(\"occurrences_redeliver\", scheduleId, occurrenceId, { \"Idempotency-Key\": process.env.GREATWAIT_IDEMPOTENCY_KEY });",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"Idempotency-Key\": \"$IDEMPOTENCY_KEY\",\n \"occurrenceId\": \"$OCCURRENCEID\",\n \"scheduleId\": \"$SCHEDULEID\"\n },\n \"name\": \"occurrences_redeliver\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/projects\" \\\n --variable %GREATWAIT_SESSION_TOKEN \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_SESSION_TOKEN}}\" \\\n -H 'Content-Type: application/json' \\\n --data-binary '{\"name\":\"Billing reminders\"}'",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_SESSION_TOKEN,\n fetch,\n});\n\nconst body = {\n \"name\": \"Billing reminders\"\n};\n\nconst result = await greatwait.request(\"projects_create\", body);",
|
|
4
5
|
"mcp": "// projects.create is not on the MCP surface.\n// Creating a project is a signed-in member's act. MCP carries API credentials and OAuth tokens, whose authority already is one project — so this operation accepts neither, and an agent that somehow created one could not act in it."
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/projects\" \\\n --variable %GREATWAIT_SESSION_TOKEN \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_SESSION_TOKEN}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_SESSION_TOKEN,\n fetch,\n});\n\nconst result = await greatwait.request(\"projects_list\");",
|
|
4
5
|
"mcp": "// projects.list is not on the MCP surface.\n// Enumerating an organization's projects is a signed-in member's question. MCP carries API credentials and OAuth tokens, whose authority already is one project, and this operation accepts neither."
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/schedules/$GREATWAIT_SCHEDULEID/archive\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst scheduleId = process.env.GREATWAIT_SCHEDULEID;\n\nconst result = await greatwait.request(\"schedules_archive\", scheduleId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"scheduleId\": \"$SCHEDULEID\"\n },\n \"name\": \"schedules_archive\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X DELETE \"$GREATWAIT_API_URL/v1/schedules/$GREATWAIT_SCHEDULEID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst scheduleId = process.env.GREATWAIT_SCHEDULEID;\n\nconst result = await greatwait.request(\"schedules_cancel\", scheduleId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"scheduleId\": \"$SCHEDULEID\"\n },\n \"name\": \"schedules_cancel\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/schedules\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\" \\\n -H 'Content-Type: application/json' \\\n --data-binary '{\"cron\":\"0 9 * * 1-5\",\"data\":{\"report\":\"daily\"},\"endpoint\":\"ep_01h8xyz9k2m4n6p8r0t2v4w6y8\",\"partitionKey\":\"campaign.spring\",\"timeZone\":\"Europe/London\"}'",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst body = {\n \"cron\": \"0 9 * * 1-5\",\n \"data\": {\n \"report\": \"daily\"\n },\n \"endpoint\": \"ep_01h8xyz9k2m4n6p8r0t2v4w6y8\",\n \"partitionKey\": \"campaign.spring\",\n \"timeZone\": \"Europe/London\"\n};\n\nconst result = await greatwait.request(\"schedules_create\", body);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"cron\": \"0 9 * * 1-5\",\n \"data\": {\n \"report\": \"daily\"\n },\n \"endpoint\": \"ep_01h8xyz9k2m4n6p8r0t2v4w6y8\",\n \"partitionKey\": \"campaign.spring\",\n \"timeZone\": \"Europe/London\"\n },\n \"name\": \"schedules_create\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/schedules\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst result = await greatwait.request(\"schedules_list\");",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {},\n \"name\": \"schedules_list\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/schedules/$GREATWAIT_SCHEDULEID/pause\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst scheduleId = process.env.GREATWAIT_SCHEDULEID;\n\nconst result = await greatwait.request(\"schedules_pause\", scheduleId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"scheduleId\": \"$SCHEDULEID\"\n },\n \"name\": \"schedules_pause\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/schedules/$GREATWAIT_SCHEDULEID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst scheduleId = process.env.GREATWAIT_SCHEDULEID;\n\nconst result = await greatwait.request(\"schedules_read\", scheduleId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"scheduleId\": \"$SCHEDULEID\"\n },\n \"name\": \"schedules_read\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X PUT \"$GREATWAIT_API_URL/v1/schedules/$GREATWAIT_SCHEDULEID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\" \\\n -H 'Content-Type: application/json' \\\n --data-binary '{\"data\":{\"report\":\"weekly\"},\"everySeconds\":86400,\"endpoint\":\"ep_01h8xyz9k2m4n6p8r0t2v4w6y8\",\"partitionKey\":\"campaign.spring\"}'",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst scheduleId = process.env.GREATWAIT_SCHEDULEID;\n\nconst body = {\n \"data\": {\n \"report\": \"weekly\"\n },\n \"everySeconds\": 86400,\n \"endpoint\": \"ep_01h8xyz9k2m4n6p8r0t2v4w6y8\",\n \"partitionKey\": \"campaign.spring\"\n};\n\nconst result = await greatwait.request(\"schedules_replace\", scheduleId, body);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"scheduleId\": \"$SCHEDULEID\",\n \"data\": {\n \"report\": \"weekly\"\n },\n \"everySeconds\": 86400,\n \"endpoint\": \"ep_01h8xyz9k2m4n6p8r0t2v4w6y8\",\n \"partitionKey\": \"campaign.spring\"\n },\n \"name\": \"schedules_replace\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/schedules/$GREATWAIT_SCHEDULEID/resume\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test", "live"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst scheduleId = process.env.GREATWAIT_SCHEDULEID;\n\nconst result = await greatwait.request(\"schedules_resume\", scheduleId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"scheduleId\": \"$SCHEDULEID\"\n },\n \"name\": \"schedules_resume\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/test-sinks/$GREATWAIT_SINKID/deliveries\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst sinkId = process.env.GREATWAIT_SINKID;\n\nconst result = await greatwait.request(\"sinkdeliveries_list\", sinkId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"sinkId\": \"$SINKID\"\n },\n \"name\": \"sinkdeliveries_list\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/test-sinks/$GREATWAIT_SINKID/deliveries/$GREATWAIT_DELIVERYRECORDID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst sinkId = process.env.GREATWAIT_SINKID;\nconst deliveryRecordId = process.env.GREATWAIT_DELIVERYRECORDID;\n\nconst result = await greatwait.request(\"sinkdeliveries_read\", sinkId, deliveryRecordId);",
|
|
4
5
|
"mcp": "// sinkdeliveries.read is not on the MCP surface.\n// The only operation that returns a delivered callback body. An agent handed it would put customer payload into ordinary tool history, which is the disclosure the narrow exception was written to avoid."
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X PUT \"$GREATWAIT_API_URL/v1/test-sinks/$GREATWAIT_SINKID/program\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\" \\\n -H 'Content-Type: application/json' \\\n --data-binary '{\"behavior\":\"timeout\"}'",
|
|
3
|
+
"environments": ["test"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst sinkId = process.env.GREATWAIT_SINKID;\n\nconst body = {\n \"behavior\": \"timeout\"\n};\n\nconst result = await greatwait.request(\"testsinks_configure\", sinkId, body);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"behavior\": \"timeout\",\n \"sinkId\": \"$SINKID\"\n },\n \"name\": \"testsinks_configure\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X POST \"$GREATWAIT_API_URL/v1/test-sinks\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\" \\\n -H 'Content-Type: application/json' \\\n --data-binary '{\"endpoint\":\"ep_01h8xyz9k2m4n6p8r0t2v4w6y8\",\"program\":{\"behavior\":\"server_error\",\"forDeliveries\":2,\"then\":\"success\"}}'",
|
|
3
|
+
"environments": ["test"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst body = {\n \"endpoint\": \"ep_01h8xyz9k2m4n6p8r0t2v4w6y8\",\n \"program\": {\n \"behavior\": \"server_error\",\n \"forDeliveries\": 2,\n \"then\": \"success\"\n }\n};\n\nconst result = await greatwait.request(\"testsinks_create\", body);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"endpoint\": \"ep_01h8xyz9k2m4n6p8r0t2v4w6y8\",\n \"program\": {\n \"behavior\": \"server_error\",\n \"forDeliveries\": 2,\n \"then\": \"success\"\n }\n },\n \"name\": \"testsinks_create\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X DELETE \"$GREATWAIT_API_URL/v1/test-sinks/$GREATWAIT_SINKID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst sinkId = process.env.GREATWAIT_SINKID;\n\nconst result = await greatwait.request(\"testsinks_delete\", sinkId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"sinkId\": \"$SINKID\"\n },\n \"name\": \"testsinks_delete\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/test-sinks\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst result = await greatwait.request(\"testsinks_list\");",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {},\n \"name\": \"testsinks_list\"\n}"
|
|
5
6
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"curl": "curl -sS -X GET \"$GREATWAIT_API_URL/v1/test-sinks/$GREATWAIT_SINKID\" \\\n --variable %GREATWAIT_API_KEY \\\n --expand-header \"Authorization: Bearer {{GREATWAIT_API_KEY}}\"",
|
|
3
|
+
"environments": ["test"],
|
|
3
4
|
"javascript": "import { createGreatwaitClient } from \"@greatwait/api-client\";\n\nconst greatwait = createGreatwaitClient({\n baseUrl: process.env.GREATWAIT_API_URL,\n credential: process.env.GREATWAIT_API_KEY,\n fetch,\n});\n\nconst sinkId = process.env.GREATWAIT_SINKID;\n\nconst result = await greatwait.request(\"testsinks_read\", sinkId);",
|
|
4
5
|
"mcp": "// Any MCP client, against $GREATWAIT_API_URL/mcp.\n{\n \"arguments\": {\n \"sinkId\": \"$SINKID\"\n },\n \"name\": \"testsinks_read\"\n}"
|
|
5
6
|
}
|