@yaks/connections 0.0.0-stage → 0.2.36
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/LICENSE +202 -0
- package/README.md +609 -2
- package/_dist/authorize.d.ts +38 -0
- package/_dist/authorize.d.ts.map +1 -0
- package/_dist/authorize_cli.d.ts +12 -0
- package/_dist/authorize_cli.d.ts.map +1 -0
- package/_dist/brokers.d.ts +66 -0
- package/_dist/brokers.d.ts.map +1 -0
- package/_dist/catalog.d.ts +33 -0
- package/_dist/catalog.d.ts.map +1 -0
- package/_dist/cli.d.ts +3 -0
- package/_dist/cli.d.ts.map +1 -0
- package/_dist/clients.d.ts +18 -0
- package/_dist/clients.d.ts.map +1 -0
- package/_dist/connections.d.ts +296 -0
- package/_dist/connections.d.ts.map +1 -0
- package/_dist/effects.d.ts +15 -0
- package/_dist/effects.d.ts.map +1 -0
- package/_dist/field.d.ts +17 -0
- package/_dist/field.d.ts.map +1 -0
- package/_dist/form.d.ts +49 -0
- package/_dist/form.d.ts.map +1 -0
- package/_dist/given.d.ts +10 -0
- package/_dist/given.d.ts.map +1 -0
- package/_dist/graph.d.ts +15 -0
- package/_dist/graph.d.ts.map +1 -0
- package/_dist/history.d.ts +4 -0
- package/_dist/history.d.ts.map +1 -0
- package/_dist/identity.d.ts +9 -0
- package/_dist/identity.d.ts.map +1 -0
- package/_dist/integrations.d.ts +196 -0
- package/_dist/integrations.d.ts.map +1 -0
- package/_dist/loopback.d.ts +7 -0
- package/_dist/loopback.d.ts.map +1 -0
- package/_dist/mcp-retirement.d.ts +33 -0
- package/_dist/mcp-retirement.d.ts.map +1 -0
- package/_dist/mcp.d.ts +179 -0
- package/_dist/mcp.d.ts.map +1 -0
- package/_dist/mod.d.ts +70 -0
- package/_dist/mod.d.ts.map +1 -0
- package/_dist/paste.d.ts +13 -0
- package/_dist/paste.d.ts.map +1 -0
- package/_dist/requests.d.ts +30 -0
- package/_dist/requests.d.ts.map +1 -0
- package/_dist/services.d.ts +25 -0
- package/_dist/services.d.ts.map +1 -0
- package/_dist/sign-in.d.ts +9 -0
- package/_dist/sign-in.d.ts.map +1 -0
- package/_dist/signin-mail.d.ts +12 -0
- package/_dist/signin-mail.d.ts.map +1 -0
- package/_dist/signin.d.ts +19 -0
- package/_dist/signin.d.ts.map +1 -0
- package/_dist/sources.d.ts +61 -0
- package/_dist/sources.d.ts.map +1 -0
- package/_dist/tools.d.ts +3 -0
- package/_dist/tools.d.ts.map +1 -0
- package/_dist/views.d.ts +3 -0
- package/_dist/views.d.ts.map +1 -0
- package/_dist/vocab.d.ts +6 -0
- package/_dist/vocab.d.ts.map +1 -0
- package/_dist/yaks-app.d.ts +29 -0
- package/_dist/yaks-app.d.ts.map +1 -0
- package/anthropic.json +12 -0
- package/auth_command.js +69 -0
- package/auth_command.js.map +1 -0
- package/auth_command.ts +74 -0
- package/authorize.js +89 -0
- package/authorize.js.map +1 -0
- package/authorize.ts +138 -0
- package/authorize_cli.js +167 -0
- package/authorize_cli.js.map +1 -0
- package/authorize_cli.ts +211 -0
- package/brokers.js +318 -0
- package/brokers.js.map +1 -0
- package/brokers.ts +423 -0
- package/canva.json +32 -0
- package/catalog.js +178 -0
- package/catalog.js.map +1 -0
- package/catalog.ts +216 -0
- package/cli.js +30 -0
- package/cli.js.map +1 -0
- package/cli.ts +26 -0
- package/clients.js +34 -0
- package/clients.js.map +1 -0
- package/clients.ts +65 -0
- package/connections.js +1961 -0
- package/connections.js.map +1 -0
- package/connections.ts +2561 -0
- package/deno.json +1 -0
- package/discord-account.json +22 -0
- package/discord-bot.json +20 -0
- package/discord.json +26 -0
- package/effects.js +168 -0
- package/effects.js.map +1 -0
- package/effects.ts +160 -0
- package/elevenlabs.json +18 -0
- package/facebook.json +18 -0
- package/field.js +19 -0
- package/field.js.map +1 -0
- package/field.ts +31 -0
- package/form.js +112 -0
- package/form.js.map +1 -0
- package/form.ts +178 -0
- package/git-config.js +44 -0
- package/git-config.js.map +1 -0
- package/git-config.ts +26 -0
- package/given.js +83 -0
- package/given.js.map +1 -0
- package/given.ts +88 -0
- package/gmail-mailbox.json +29 -0
- package/gmail.json +31 -0
- package/google-calendar.json +31 -0
- package/google-drive.json +31 -0
- package/google-search-console.json +29 -0
- package/graph.js +36 -0
- package/graph.js.map +1 -0
- package/graph.ts +52 -0
- package/history.js +31 -0
- package/history.js.map +1 -0
- package/history.ts +32 -0
- package/identity.js +15 -0
- package/identity.js.map +1 -0
- package/identity.ts +18 -0
- package/integrations.js +493 -0
- package/integrations.js.map +1 -0
- package/integrations.ts +725 -0
- package/loopback.js +72 -0
- package/loopback.js.map +1 -0
- package/loopback.ts +89 -0
- package/lulu.json +32 -0
- package/mcp-retirement.js +133 -0
- package/mcp-retirement.js.map +1 -0
- package/mcp-retirement.ts +200 -0
- package/mcp-signin.js +14 -0
- package/mcp-signin.js.map +1 -0
- package/mcp-signin.ts +13 -0
- package/mcp.js +1036 -0
- package/mcp.js.map +1 -0
- package/mcp.ts +1283 -0
- package/mod.js +70 -0
- package/mod.js.map +1 -0
- package/mod.ts +216 -0
- package/openai-api.json +12 -0
- package/openai.json +25 -0
- package/openrouter.json +14 -0
- package/package.json +89 -4
- package/paste.js +36 -0
- package/paste.js.map +1 -0
- package/paste.ts +55 -0
- package/requests.js +137 -0
- package/requests.js.map +1 -0
- package/requests.ts +200 -0
- package/services.js +84 -0
- package/services.js.map +1 -0
- package/services.ts +111 -0
- package/sign-in.js +36 -0
- package/sign-in.js.map +1 -0
- package/sign-in.ts +53 -0
- package/signin-mail.js +29 -0
- package/signin-mail.js.map +1 -0
- package/signin-mail.ts +56 -0
- package/signin.js +68 -0
- package/signin.js.map +1 -0
- package/signin.ts +109 -0
- package/slack.json +90 -0
- package/sources.js +178 -0
- package/sources.js.map +1 -0
- package/sources.ts +237 -0
- package/tools.js +39 -0
- package/tools.js.map +1 -0
- package/tools.ts +46 -0
- package/views.js +85 -0
- package/views.js.map +1 -0
- package/views.ts +89 -0
- package/visitor-defaults.json +8 -0
- package/vocab.js +17 -0
- package/vocab.js.map +1 -0
- package/vocab.json +863 -0
- package/vocab.ts +18 -0
- package/voipms.json +32 -0
- package/yaks-app.js +159 -0
- package/yaks-app.js.map +1 -0
- package/yaks-app.ts +177 -0
- package/youtube.json +26 -0
package/vocab.json
ADDED
|
@@ -0,0 +1,863 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$id": "urn:uuid:76f26eaf-3e3e-4bdc-b84c-f3aa1729ff76",
|
|
3
|
+
"$vocabulary": {
|
|
4
|
+
"https://yak.sh/vocab/core": true,
|
|
5
|
+
"https://yak.sh/vocab/id": true,
|
|
6
|
+
"https://yak.sh/vocab/edge": true
|
|
7
|
+
},
|
|
8
|
+
"title": "connections",
|
|
9
|
+
"$defs": {
|
|
10
|
+
"integration": {
|
|
11
|
+
"$id": "urn:uuid:ee4229da-b654-4785-b09e-ccef920733ab",
|
|
12
|
+
"component": true,
|
|
13
|
+
"type": "object",
|
|
14
|
+
"description": "an outside service, as data: where a person signs in to it and where its codes are exchanged, for one reached by OAuth, the hosts its credential may be sent to, and how a page shows it. A built one is installed by the host from @yaks/connections' own seed data, and marked built; any other is a custom one, owned by the space or person that made it",
|
|
15
|
+
"properties": {
|
|
16
|
+
"name": {
|
|
17
|
+
"$id": "urn:uuid:4647d493-9ffb-4b7d-ad02-8497acc8b759",
|
|
18
|
+
"type": "string",
|
|
19
|
+
"identity": true,
|
|
20
|
+
"description": "what a connection names it by; the entity id is derived from it, so one name is one integration"
|
|
21
|
+
},
|
|
22
|
+
"title": {
|
|
23
|
+
"$id": "urn:uuid:bbc2eec5-b543-43bb-b97c-2eb43d494b45",
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "what a person calls it, written as its maker writes it: OpenRouter, Google Calendar"
|
|
26
|
+
},
|
|
27
|
+
"tagline": {
|
|
28
|
+
"$id": "urn:uuid:26a23068-272b-4edd-a569-eb5db5be8719",
|
|
29
|
+
"type": "string",
|
|
30
|
+
"description": "one line saying what it is, written for a person"
|
|
31
|
+
},
|
|
32
|
+
"site": {
|
|
33
|
+
"$id": "urn:uuid:6adf5cd0-8c74-4dc4-9151-7e23b812e49b",
|
|
34
|
+
"type": "string",
|
|
35
|
+
"format": "uri",
|
|
36
|
+
"description": "its address on the web"
|
|
37
|
+
},
|
|
38
|
+
"logo": {
|
|
39
|
+
"$id": "urn:uuid:15c9f3f5-690c-4b4c-8089-83c74be93293",
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "its mark, as an SVG document; a page draws it as an image, never as markup"
|
|
42
|
+
},
|
|
43
|
+
"authorize": {
|
|
44
|
+
"$id": "urn:uuid:532dad69-a243-4907-9a91-8b7ee33bae67",
|
|
45
|
+
"type": "string",
|
|
46
|
+
"description": "where a person grants access, for an integration reached by OAuth"
|
|
47
|
+
},
|
|
48
|
+
"token": {
|
|
49
|
+
"$id": "urn:uuid:b7de4443-e967-493c-a43e-83fb8aafaa3a",
|
|
50
|
+
"type": "string",
|
|
51
|
+
"description": "where codes and refresh tokens are exchanged; an integration with none is a pasted key"
|
|
52
|
+
},
|
|
53
|
+
"scopes": {
|
|
54
|
+
"$id": "urn:uuid:50426dd8-209c-4651-981d-b7fa392e9526",
|
|
55
|
+
"type": "array",
|
|
56
|
+
"items": {
|
|
57
|
+
"type": "string"
|
|
58
|
+
},
|
|
59
|
+
"description": "what a connection asks for when nothing narrower was needed"
|
|
60
|
+
},
|
|
61
|
+
"scope_separator": {
|
|
62
|
+
"$id": "urn:uuid:bec544d7-450b-426a-b940-269167642252",
|
|
63
|
+
"type": "string",
|
|
64
|
+
"enum": [" ", ","],
|
|
65
|
+
"description": "the delimiter for a provider's requested and granted OAuth scopes"
|
|
66
|
+
},
|
|
67
|
+
"pkce": {
|
|
68
|
+
"$id": "urn:uuid:2a9c816c-8a95-4641-aeb1-880c88d851ec",
|
|
69
|
+
"type": "boolean",
|
|
70
|
+
"description": "whether the OAuth provider accepts PKCE for this client, true by default"
|
|
71
|
+
},
|
|
72
|
+
"params": {
|
|
73
|
+
"$id": "urn:uuid:852cab27-f1b7-42f0-ac2b-de6cd9cc0519",
|
|
74
|
+
"type": "object",
|
|
75
|
+
"description": "extra parameters the authorize link carries, such as Google's access_type"
|
|
76
|
+
},
|
|
77
|
+
"auth": {
|
|
78
|
+
"$id": "urn:uuid:1bc75468-151f-4b5f-9eaf-9a735f5ef2ae",
|
|
79
|
+
"type": "string",
|
|
80
|
+
"enum": [
|
|
81
|
+
"basic",
|
|
82
|
+
"post"
|
|
83
|
+
],
|
|
84
|
+
"description": "how the client authenticates at the token endpoint (default basic)"
|
|
85
|
+
},
|
|
86
|
+
"refresh_encoding": {
|
|
87
|
+
"$id": "urn:uuid:82fc4452-9b99-4da7-94ee-78dbabfef144",
|
|
88
|
+
"type": "string",
|
|
89
|
+
"enum": [
|
|
90
|
+
"form",
|
|
91
|
+
"json"
|
|
92
|
+
],
|
|
93
|
+
"description": "how the token endpoint receives refresh grants (default form)"
|
|
94
|
+
},
|
|
95
|
+
"answers": {
|
|
96
|
+
"$id": "urn:uuid:2db45aa6-5ffe-4fc6-a80c-586a5e452f50",
|
|
97
|
+
"type": "string",
|
|
98
|
+
"enum": [
|
|
99
|
+
"tokens",
|
|
100
|
+
"key"
|
|
101
|
+
],
|
|
102
|
+
"description": "what the token endpoint answers: tokens (the default), or an API key, as OpenRouter's PKCE exchange does"
|
|
103
|
+
},
|
|
104
|
+
"resource": {
|
|
105
|
+
"$id": "urn:uuid:3af1d48e-7c19-44e5-8830-5818be8b8aaf",
|
|
106
|
+
"type": "string",
|
|
107
|
+
"description": "the resource a grant is for (RFC 8707), sent with the sign-in link and every exchange, as an MCP server asks"
|
|
108
|
+
},
|
|
109
|
+
"issuer": {
|
|
110
|
+
"$id": "urn:uuid:e11b0cb2-9e74-4d5a-83ff-09c873ab8e7d",
|
|
111
|
+
"type": "string",
|
|
112
|
+
"description": "the issuer every sign-in return must name (RFC 9207), for a service that says it names one"
|
|
113
|
+
},
|
|
114
|
+
"client": {
|
|
115
|
+
"$id": "urn:uuid:904f63f3-c5e5-48f4-9133-14b35b0335f4",
|
|
116
|
+
"type": "string",
|
|
117
|
+
"description": "the OAuth client it signs in as, by name: kept once as the secret `oauth_client <name>`, and shared by every integration naming it. Only a built integration signs in as a client a built one names"
|
|
118
|
+
},
|
|
119
|
+
"client_id": {
|
|
120
|
+
"$id": "urn:uuid:96f45c90-f000-4bda-b161-7acb0ffe60c4",
|
|
121
|
+
"type": "string",
|
|
122
|
+
"description": "a public OAuth client's id, shipped with a built integration"
|
|
123
|
+
},
|
|
124
|
+
"broker": {
|
|
125
|
+
"$id": "urn:uuid:f1939f88-569e-42a2-b797-0e7cbd02af61",
|
|
126
|
+
"type": "object",
|
|
127
|
+
"required": [
|
|
128
|
+
"name",
|
|
129
|
+
"integration"
|
|
130
|
+
],
|
|
131
|
+
"properties": {
|
|
132
|
+
"name": {
|
|
133
|
+
"type": "string",
|
|
134
|
+
"description": "the broker, by the name @yaks/connections implements it under: nango"
|
|
135
|
+
},
|
|
136
|
+
"integration": {
|
|
137
|
+
"type": "string",
|
|
138
|
+
"description": "what the broker calls this integration: Nango's google-mail"
|
|
139
|
+
},
|
|
140
|
+
"managed": {
|
|
141
|
+
"type": "boolean",
|
|
142
|
+
"description": "create the broker's managed OAuth configuration when needed and request the integration and connection scopes at sign-in"
|
|
143
|
+
},
|
|
144
|
+
"scoped": {
|
|
145
|
+
"type": "boolean",
|
|
146
|
+
"description": "use the integration's broker configuration suffixed by the owner's eid, and verify the listed scopes and the account before keeping the grant"
|
|
147
|
+
}
|
|
148
|
+
},
|
|
149
|
+
"description": "the broker new connections through it are made through: a service that signs a person in through its own app and hands back a fresh access token, which still goes only to `hosts`. None is direct. Changing it moves no connection: each keeps the broker it was made through"
|
|
150
|
+
},
|
|
151
|
+
"visitors": {
|
|
152
|
+
"$id": "urn:uuid:7d809385-4898-46e9-98dc-36c5a069f55b",
|
|
153
|
+
"type": "string",
|
|
154
|
+
"enum": ["never", "off", "on"],
|
|
155
|
+
"description": "whether app visitors may use a shared connection through this integration. Never forbids it, off allows an owner to enable it, and on enables it until an owner turns it off"
|
|
156
|
+
},
|
|
157
|
+
"hosts": {
|
|
158
|
+
"$id": "urn:uuid:c09942a8-5981-43ae-bb30-49e9e37a77cb",
|
|
159
|
+
"type": "array",
|
|
160
|
+
"items": {
|
|
161
|
+
"type": "string"
|
|
162
|
+
},
|
|
163
|
+
"description": "the API hosts a connection's credential may be sent to, and no others. None is sent nowhere: a custom key kept before anyone uses it, whose owner names its hosts once"
|
|
164
|
+
},
|
|
165
|
+
"credentialed": {
|
|
166
|
+
"$id": "urn:uuid:5cc98aec-1856-4438-8c22-c2082a79327d",
|
|
167
|
+
"type": "boolean",
|
|
168
|
+
"description": "a credential was saved through this integration"
|
|
169
|
+
},
|
|
170
|
+
"api": {
|
|
171
|
+
"$id": "urn:uuid:208e7558-aa4a-4473-a6c8-5792dd31a02c",
|
|
172
|
+
"type": "object",
|
|
173
|
+
"required": [
|
|
174
|
+
"base"
|
|
175
|
+
],
|
|
176
|
+
"properties": {
|
|
177
|
+
"base": {
|
|
178
|
+
"type": "string",
|
|
179
|
+
"format": "uri",
|
|
180
|
+
"description": "the address its API's paths are under, on one of `hosts`: Google Calendar's https://www.googleapis.com/calendar/v3"
|
|
181
|
+
},
|
|
182
|
+
"docs": {
|
|
183
|
+
"type": "string",
|
|
184
|
+
"format": "uri",
|
|
185
|
+
"description": "the API's reference, which says every endpoint under `base`"
|
|
186
|
+
},
|
|
187
|
+
"reads": {
|
|
188
|
+
"type": "array",
|
|
189
|
+
"items": { "type": "string" },
|
|
190
|
+
"description": "read operations using a method other than GET, such as POST /query"
|
|
191
|
+
}
|
|
192
|
+
},
|
|
193
|
+
"description": "its API, for an agent calling it as a connection: where its paths are and where they are documented. None is reached at its first host"
|
|
194
|
+
},
|
|
195
|
+
"methods": {
|
|
196
|
+
"$id": "urn:uuid:dc2a3bb4-e4f2-4ff1-8ec8-1707a6c39aaf",
|
|
197
|
+
"type": "array",
|
|
198
|
+
"items": {
|
|
199
|
+
"type": "string"
|
|
200
|
+
},
|
|
201
|
+
"description": "the only API methods a connection through it may ask for, where the service names one in each request (voip.ms's `method`): a person's own voip.ms account reads its numbers, texts, and sets where a number's texts go, and has no method that cancels or reroutes a number. None limits nothing"
|
|
202
|
+
},
|
|
203
|
+
"fields": {
|
|
204
|
+
"$id": "urn:uuid:a76a534f-c66c-493e-a2b3-e7de7428ee1f",
|
|
205
|
+
"type": "array",
|
|
206
|
+
"items": {
|
|
207
|
+
"type": "object",
|
|
208
|
+
"required": [
|
|
209
|
+
"name",
|
|
210
|
+
"label"
|
|
211
|
+
],
|
|
212
|
+
"properties": {
|
|
213
|
+
"name": {
|
|
214
|
+
"type": "string",
|
|
215
|
+
"pattern": "^[a-z][a-z0-9_]*$",
|
|
216
|
+
"description": "what an app reads it by: env.<BINDING>_<NAME> in capitals, and the field of the connection's secret it is kept as"
|
|
217
|
+
},
|
|
218
|
+
"label": {
|
|
219
|
+
"type": "string",
|
|
220
|
+
"description": "what the connections page asks for it by, written for a person: Access key ID, API password"
|
|
221
|
+
},
|
|
222
|
+
"shown": {
|
|
223
|
+
"type": "boolean",
|
|
224
|
+
"description": "typed in the open rather than masked, as a username or a region is"
|
|
225
|
+
},
|
|
226
|
+
"example": {
|
|
227
|
+
"type": "string",
|
|
228
|
+
"description": "what it looks like, shown in the box it is typed in: an access key ID's AKIA••••••••"
|
|
229
|
+
}
|
|
230
|
+
}
|
|
231
|
+
},
|
|
232
|
+
"description": "what a person gives to connect a pasted-key integration, each asked for by its label: S3's access key ID, secret key and region. Kept together as the connection's secret, each with its own sentinel. None is one key; it is set when the integration is made and never changes"
|
|
233
|
+
},
|
|
234
|
+
"signature": {
|
|
235
|
+
"$id": "urn:uuid:0f1e787a-b9c9-41cd-bced-0104e58d6c12",
|
|
236
|
+
"type": [
|
|
237
|
+
"string",
|
|
238
|
+
"object"
|
|
239
|
+
],
|
|
240
|
+
"description": "how the service signs the webhooks it sends (@yaks/hook's Scheme)"
|
|
241
|
+
},
|
|
242
|
+
"testing": {
|
|
243
|
+
"$id": "urn:uuid:a0c68929-fef4-4552-8fa6-e03e1f339e98",
|
|
244
|
+
"type": "boolean",
|
|
245
|
+
"description": "still in the service's testing mode, where only the people it lists may sign in: a page offers it only where asked to by name"
|
|
246
|
+
},
|
|
247
|
+
"built": {
|
|
248
|
+
"$id": "urn:uuid:b6a89ac2-1427-451f-b6a9-6860cb1779f2",
|
|
249
|
+
"type": "boolean",
|
|
250
|
+
"stamped": true,
|
|
251
|
+
"description": "installed by the host: from @yaks/connections' own seed data, or from a broker's catalog once someone connects a service it lists. Only the host writes it, so no space can mark an integration built or sign in as a built one's client"
|
|
252
|
+
},
|
|
253
|
+
"userinfo": {
|
|
254
|
+
"$id": "urn:uuid:2c72148f-45db-43e9-bbe6-f36beb562946",
|
|
255
|
+
"type": "string",
|
|
256
|
+
"format": "uri",
|
|
257
|
+
"description": "OpenID endpoint naming the signed-in account when the token answer has no id_token"
|
|
258
|
+
},
|
|
259
|
+
"account": {
|
|
260
|
+
"$id": "urn:uuid:fb6fd8ea-4c08-4011-b1ad-c95d69443202",
|
|
261
|
+
"type": "string",
|
|
262
|
+
"description": "the field of the token endpoint's answer naming the account, as a dotted path, where it is not an email address",
|
|
263
|
+
"examples": ["guild.id"]
|
|
264
|
+
},
|
|
265
|
+
"account_title": {
|
|
266
|
+
"$id": "urn:uuid:26eb9975-eb46-4cd9-b9d7-0615b551a8f1",
|
|
267
|
+
"type": "string",
|
|
268
|
+
"description": "the field of the same answer naming that account for people, as a dotted path, where `account` is an id",
|
|
269
|
+
"examples": ["guild.name"]
|
|
270
|
+
},
|
|
271
|
+
"links": {
|
|
272
|
+
"$id": "urn:uuid:d9b8c083-7401-455f-8c39-1f5e99acfb32",
|
|
273
|
+
"type": "string",
|
|
274
|
+
"description": "another integration naming the person who signs in through this one, by name, whose own connection the same sign-in makes",
|
|
275
|
+
"examples": ["discord-account"]
|
|
276
|
+
},
|
|
277
|
+
"personal": {
|
|
278
|
+
"$id": "urn:uuid:9d8a826e-22ff-41fc-849a-794209b948b7",
|
|
279
|
+
"type": "boolean",
|
|
280
|
+
"description": "a person's own account at the service, such as their Discord user, which says who they are there: a connection through it belongs to whoever connects it, never to the space they connect it from"
|
|
281
|
+
},
|
|
282
|
+
"chat": {
|
|
283
|
+
"$id": "urn:uuid:940f36eb-8500-464b-b05e-4d8a530d9cf3",
|
|
284
|
+
"type": "string",
|
|
285
|
+
"description": "the chat platform its connections talk through (@yaks/chat), by name: connecting it lets the Operator and the space's apps hear and answer there",
|
|
286
|
+
"examples": ["discord"]
|
|
287
|
+
},
|
|
288
|
+
"chat_grant": {
|
|
289
|
+
"$id": "urn:uuid:ddec435d-ba95-41d2-862d-648299d5948f",
|
|
290
|
+
"type": "boolean",
|
|
291
|
+
"description": "the OAuth grant is the bot credential for this installation, as with a Slack workspace"
|
|
292
|
+
},
|
|
293
|
+
"instructions": {
|
|
294
|
+
"$id": "urn:uuid:a9b69dd5-e3e3-4e34-9bef-9deadba025ab",
|
|
295
|
+
"type": "string",
|
|
296
|
+
"description": "how a person gets the credential, in markdown, written for them and for the agent helping them: where to sign up, which page issues the key, what to paste. Shown beside every connection it is needed for"
|
|
297
|
+
},
|
|
298
|
+
"example": {
|
|
299
|
+
"$id": "urn:uuid:c0c50db9-630b-4a67-9a04-320bc097be52",
|
|
300
|
+
"type": "string",
|
|
301
|
+
"description": "what its one key looks like, shown in the box it is pasted in: ElevenLabs' sk_••••••••, Stripe's rk_live_••••••••. None shows a row of dots"
|
|
302
|
+
},
|
|
303
|
+
"mcp": {
|
|
304
|
+
"$id": "urn:uuid:9d4f1c66-edea-4d1f-ac3c-2e5485d12174",
|
|
305
|
+
"type": "string",
|
|
306
|
+
"format": "uri",
|
|
307
|
+
"description": "the address of the service's own hosted MCP server, which a person connects by signing in to their account there rather than pasting a key: ElevenLabs' https://api.elevenlabs.io/v1/mcp. Connecting it adds the server in the space (mcp_connect), and its tools reach the person's Operator and the apps they allow. None offers no sign-in"
|
|
308
|
+
},
|
|
309
|
+
"check": {
|
|
310
|
+
"$id": "urn:uuid:d354be3c-48d4-4400-8c1a-177bbb4800d7",
|
|
311
|
+
"type": "string",
|
|
312
|
+
"description": "a call that answers 2xx once its credential works, a method and an https address on one of its hosts: GET https://api.cloudflare.com/client/v4/user/tokens/verify. Its owner may change it; none checks nothing"
|
|
313
|
+
},
|
|
314
|
+
"owner": {
|
|
315
|
+
"$id": "urn:uuid:f386e0d5-7812-4ee1-bc4b-1624b97b26d3",
|
|
316
|
+
"type": "string",
|
|
317
|
+
"ref": "entity",
|
|
318
|
+
"death": "detach",
|
|
319
|
+
"description": "the space or person that made a custom integration: only its owner may change the integration's title, tagline, site or instructions, and nobody may change its hosts once they are named. A built integration has none, and is the host's"
|
|
320
|
+
},
|
|
321
|
+
"description": {
|
|
322
|
+
"$id": "urn:uuid:dd50eab9-63be-468e-ad2f-7f1ae8502ce1",
|
|
323
|
+
"type": "string",
|
|
324
|
+
"description": "one paragraph describing the service itself and who it helps"
|
|
325
|
+
},
|
|
326
|
+
"details": {
|
|
327
|
+
"$id": "urn:uuid:3849ec47-90f3-47b8-adab-efa1ac9e817d",
|
|
328
|
+
"type": "string",
|
|
329
|
+
"description": "what connecting this integration unlocks, the service data it accesses and its limitations"
|
|
330
|
+
},
|
|
331
|
+
"docs": {
|
|
332
|
+
"$id": "urn:uuid:fa5e4b33-3db1-47c3-8c1a-86e666598917",
|
|
333
|
+
"type": "string",
|
|
334
|
+
"format": "uri",
|
|
335
|
+
"description": "the service integration documentation a person can read before connecting"
|
|
336
|
+
},
|
|
337
|
+
"connects": {
|
|
338
|
+
"$id": "urn:uuid:85b29525-66d6-4ef3-a144-93367ede2843",
|
|
339
|
+
"type": "string",
|
|
340
|
+
"enum": [
|
|
341
|
+
"key",
|
|
342
|
+
"signin",
|
|
343
|
+
"client"
|
|
344
|
+
],
|
|
345
|
+
"description": "how a person connects: a pasted API key or credential fields, an OAuth sign-in, or an OAuth client of their own"
|
|
346
|
+
},
|
|
347
|
+
"categories": {
|
|
348
|
+
"$id": "urn:uuid:a2076f0a-5fd7-48d1-8983-0e93d0ec0a6f",
|
|
349
|
+
"type": "array",
|
|
350
|
+
"items": {
|
|
351
|
+
"type": "string"
|
|
352
|
+
},
|
|
353
|
+
"description": "the kinds of service this catalog integration belongs to, such as crm or productivity"
|
|
354
|
+
},
|
|
355
|
+
"image": {
|
|
356
|
+
"$id": "urn:uuid:b93ce951-9b1c-4e00-8531-fc19b58837bc",
|
|
357
|
+
"type": "string",
|
|
358
|
+
"format": "uri",
|
|
359
|
+
"description": "the address of a catalog logo, or the content address of a custom icon in the host blob store"
|
|
360
|
+
},
|
|
361
|
+
"service": {
|
|
362
|
+
"$id": "urn:uuid:99203d03-ed08-4f96-8d39-ede91f9682d2",
|
|
363
|
+
"type": "object",
|
|
364
|
+
"description": "a hosted app service, whose operations are the service-marked commands in its current release declaration",
|
|
365
|
+
"required": [
|
|
366
|
+
"app"
|
|
367
|
+
],
|
|
368
|
+
"properties": {
|
|
369
|
+
"app": {
|
|
370
|
+
"type": "string",
|
|
371
|
+
"ref": "entity",
|
|
372
|
+
"death": "keep",
|
|
373
|
+
"description": "the stable app identity; a rename changes no connection or order"
|
|
374
|
+
}
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
}
|
|
378
|
+
},
|
|
379
|
+
"connection": {
|
|
380
|
+
"$id": "urn:uuid:cc3f01c3-ecdd-4e80-b543-6d7d5d08edb7",
|
|
381
|
+
"component": true,
|
|
382
|
+
"type": "object",
|
|
383
|
+
"description": "one link between a space or a person and an outside service, through an integration. The entity is also the secret its credential is kept as: the graph holds the handle, the vault the key or the tokens",
|
|
384
|
+
"properties": {
|
|
385
|
+
"integration": {
|
|
386
|
+
"$id": "urn:uuid:151f3795-aede-40bc-822f-bba6525d491a",
|
|
387
|
+
"type": "string",
|
|
388
|
+
"description": "the integration it goes through, by name"
|
|
389
|
+
},
|
|
390
|
+
"owner": {
|
|
391
|
+
"$id": "urn:uuid:7be90ebb-136f-4423-ae9f-b42e0b78b7ad",
|
|
392
|
+
"type": "string",
|
|
393
|
+
"ref": "entity",
|
|
394
|
+
"death": "cascade",
|
|
395
|
+
"description": "the space or the person it belongs to; it is deleted with them, and its credential with it"
|
|
396
|
+
},
|
|
397
|
+
"account": {
|
|
398
|
+
"$id": "urn:uuid:dd9c54a5-de76-44fd-87f6-57a880a350b0",
|
|
399
|
+
"type": "string",
|
|
400
|
+
"description": "which account at the outside service, as the person would recognize it"
|
|
401
|
+
},
|
|
402
|
+
"title": {
|
|
403
|
+
"$id": "urn:uuid:cff07e30-e4bf-4c6d-8ac6-7758135f028c",
|
|
404
|
+
"type": "string",
|
|
405
|
+
"description": "what people call that account, where `account` is an id: a Discord server's name"
|
|
406
|
+
},
|
|
407
|
+
"scopes": {
|
|
408
|
+
"$id": "urn:uuid:7598603e-dc6e-4a28-9343-a6c4bc6a990e",
|
|
409
|
+
"type": "array",
|
|
410
|
+
"items": {
|
|
411
|
+
"type": "string"
|
|
412
|
+
},
|
|
413
|
+
"description": "what it was granted, or what the app that needs it asked for"
|
|
414
|
+
},
|
|
415
|
+
"status": {
|
|
416
|
+
"$id": "urn:uuid:eb228eb0-0a60-4e29-a8c1-62303cbaa8a5",
|
|
417
|
+
"type": "string",
|
|
418
|
+
"enum": [
|
|
419
|
+
"needed",
|
|
420
|
+
"connected",
|
|
421
|
+
"broken"
|
|
422
|
+
],
|
|
423
|
+
"description": "needed: no credential yet; connected: one is kept; broken: the service refused it"
|
|
424
|
+
},
|
|
425
|
+
"broker": {
|
|
426
|
+
"$id": "urn:uuid:48393555-9e98-4eab-a827-13be1b11f659",
|
|
427
|
+
"type": "string",
|
|
428
|
+
"description": "the broker it was made through, by name; none is made directly. It keeps working through it whatever its integration names later"
|
|
429
|
+
},
|
|
430
|
+
"keep": {
|
|
431
|
+
"$id": "urn:uuid:c5aeae2d-dc29-4a68-91ad-e7c4d93e4d85",
|
|
432
|
+
"type": "array",
|
|
433
|
+
"items": {
|
|
434
|
+
"type": "object",
|
|
435
|
+
"required": [
|
|
436
|
+
"via",
|
|
437
|
+
"at"
|
|
438
|
+
],
|
|
439
|
+
"properties": {
|
|
440
|
+
"via": {
|
|
441
|
+
"type": "string",
|
|
442
|
+
"description": "the keeper, by the name the host lends it under (@yaks/host/keepers): 1password, worker"
|
|
443
|
+
},
|
|
444
|
+
"at": {
|
|
445
|
+
"type": "string",
|
|
446
|
+
"description": "the keeper's own address for the key: a 1Password vault and item, a Worker and its secret's name"
|
|
447
|
+
}
|
|
448
|
+
}
|
|
449
|
+
},
|
|
450
|
+
"description": "where else its key is kept once it is given, besides the graph's own vault: each a keeper the host lends and that keeper's place for it. Each is handed the key whenever a new one is given (connection_given)"
|
|
451
|
+
}
|
|
452
|
+
}
|
|
453
|
+
},
|
|
454
|
+
"reconnecting": {
|
|
455
|
+
"$id": "urn:uuid:1a5530c2-9805-40e4-851a-847c88df329a",
|
|
456
|
+
"component": true,
|
|
457
|
+
"type": "object",
|
|
458
|
+
"description": "a mark on a connection a person began signing in to again at its broker, which never sends them back: whoever reads the connection settles it once the broker holds the new grant, and the mark goes. One left over an hour is dropped",
|
|
459
|
+
"properties": {
|
|
460
|
+
"at": {
|
|
461
|
+
"$id": "urn:uuid:fa1138cc-326d-4f68-9147-ff6ed60ee4bb",
|
|
462
|
+
"type": "string",
|
|
463
|
+
"format": "date-time",
|
|
464
|
+
"stamped": true,
|
|
465
|
+
"description": "when the sign-in again began"
|
|
466
|
+
},
|
|
467
|
+
"by": {
|
|
468
|
+
"$id": "urn:uuid:4430bbe1-6289-4ab7-9f76-9c1621e29d5f",
|
|
469
|
+
"type": "string",
|
|
470
|
+
"ref": "entity",
|
|
471
|
+
"death": "keep",
|
|
472
|
+
"stamped": true,
|
|
473
|
+
"description": "who began it"
|
|
474
|
+
}
|
|
475
|
+
}
|
|
476
|
+
},
|
|
477
|
+
"approving": {
|
|
478
|
+
"$id": "urn:uuid:93377e61-7da4-4a2f-9b09-a003aee87468",
|
|
479
|
+
"component": true,
|
|
480
|
+
"type": "object",
|
|
481
|
+
"description": "a mark on a connection whose sign-in finished at its broker under an account other than the address of the person who began it: the grant is held there, attaching nothing, until that account confirms it by the link mailed to it, or declines. One unanswered for a day is forgotten at the broker",
|
|
482
|
+
"properties": {
|
|
483
|
+
"id": {
|
|
484
|
+
"$id": "urn:uuid:99e0176f-aa3c-418a-89e9-b191f69bf9d2",
|
|
485
|
+
"type": "string",
|
|
486
|
+
"description": "the broker's own id for the held grant"
|
|
487
|
+
},
|
|
488
|
+
"account": {
|
|
489
|
+
"$id": "urn:uuid:f6d5c74a-9c8f-482f-b7ef-63be2cff73b0",
|
|
490
|
+
"type": "string",
|
|
491
|
+
"description": "the account that approved at the service, which is asked to confirm; empty where the service named none"
|
|
492
|
+
},
|
|
493
|
+
"began": {
|
|
494
|
+
"$id": "urn:uuid:5612104d-ecf0-4431-abfa-65f91d2fafdc",
|
|
495
|
+
"type": "string",
|
|
496
|
+
"description": "the verified address of the person who began the connect"
|
|
497
|
+
},
|
|
498
|
+
"at": {
|
|
499
|
+
"$id": "urn:uuid:c24ff8a4-9e88-426f-a462-476c29aa58ac",
|
|
500
|
+
"type": "string",
|
|
501
|
+
"format": "date-time",
|
|
502
|
+
"description": "when the grant was held"
|
|
503
|
+
}
|
|
504
|
+
}
|
|
505
|
+
},
|
|
506
|
+
"uses": {
|
|
507
|
+
"$id": "urn:uuid:ead2830f-a3ac-4811-b42a-53da5916adc3",
|
|
508
|
+
"component": true,
|
|
509
|
+
"type": "object",
|
|
510
|
+
"edge": true,
|
|
511
|
+
"reversed": "used by",
|
|
512
|
+
"properties": {
|
|
513
|
+
"anyone": {
|
|
514
|
+
"$id": "urn:uuid:71dcca0a-3c10-4942-8f03-1a7f5315e6eb",
|
|
515
|
+
"type": "boolean",
|
|
516
|
+
"description": "anyone may call out through it, signed in or not, as a public widget does; otherwise only a caller holding a level on the app"
|
|
517
|
+
},
|
|
518
|
+
"each": {
|
|
519
|
+
"$id": "urn:uuid:143a4f82-6fe8-47cc-942f-cff473e42905",
|
|
520
|
+
"type": "boolean",
|
|
521
|
+
"description": "each person who uses the app connects their own, and only the person who owns the connection calls out through it: set on the app's ask, the needed connection its space holds, and on the link to every person's own"
|
|
522
|
+
},
|
|
523
|
+
"binding": {
|
|
524
|
+
"$id": "urn:uuid:79c487aa-efb5-477f-b774-a63fcc4222d4",
|
|
525
|
+
"type": "string",
|
|
526
|
+
"description": "the name the app's code reads it by, env.NAME in a worker: the sentinel for its credential, or the credential itself where the link is direct"
|
|
527
|
+
},
|
|
528
|
+
"separate": {
|
|
529
|
+
"$id": "urn:uuid:06770ac8-3ecb-4bdc-81c6-24b39060dfad",
|
|
530
|
+
"type": "boolean",
|
|
531
|
+
"description": "the app asks for a separate shared credential through this integration by binding"
|
|
532
|
+
},
|
|
533
|
+
"direct": {
|
|
534
|
+
"$id": "urn:uuid:d0f18f49-31b2-4dc0-8efb-0c6dc5cd8855",
|
|
535
|
+
"type": "boolean",
|
|
536
|
+
"description": "the app's code is handed the credential itself rather than a sentinel, for a key it must transform before sending (a signature, Basic auth); only a pasted key may be"
|
|
537
|
+
},
|
|
538
|
+
"cap": {
|
|
539
|
+
"$id": "urn:uuid:c79a417b-65ec-4899-bb98-84aee9b6661e",
|
|
540
|
+
"type": "number",
|
|
541
|
+
"stamped": true,
|
|
542
|
+
"description": "the most calls per month that may go out through it (@yaks/egress `calls`); past it the egress refuses them until the month turns. None is no limit. Only the host sets it, never the app it caps"
|
|
543
|
+
},
|
|
544
|
+
"lends": {
|
|
545
|
+
"$id": "urn:uuid:8e56cee6-bbee-4637-b941-d636a953c710",
|
|
546
|
+
"type": "number",
|
|
547
|
+
"description": "on an app's link to a connection its own space keeps: the connection is lent to every copy installed from the app, which borrows it rather than asking for its own, and this is the cap each copy's link borrows it under, in calls per month. None lends it to no copy. The space owner's act, and only a sentinel every caller shares is lent: never a direct key, nor a link where each person connects their own"
|
|
548
|
+
},
|
|
549
|
+
"lender": {
|
|
550
|
+
"$id": "urn:uuid:12beda06-9115-4fd1-8c69-7677e4adb778",
|
|
551
|
+
"type": "string",
|
|
552
|
+
"ref": "entity",
|
|
553
|
+
"death": "keep",
|
|
554
|
+
"stamped": true,
|
|
555
|
+
"description": "on a copy's link to a connection it borrows rather than holds: the app whose lend it borrows it through. The copy's space connects a key of its own to stop borrowing, and the lender stops lending to it, either way leaving the lender's connection as it was. Only the host writes it, when the copy is installed or updated"
|
|
556
|
+
}
|
|
557
|
+
},
|
|
558
|
+
"description": "the relation on a link: this app calls out through that connection"
|
|
559
|
+
},
|
|
560
|
+
"asks": {
|
|
561
|
+
"$id": "urn:uuid:d0c8fc00-5f34-41e2-b62a-a72388fe0967",
|
|
562
|
+
"component": true,
|
|
563
|
+
"type": "object",
|
|
564
|
+
"edge": true,
|
|
565
|
+
"reversed": "asked by",
|
|
566
|
+
"properties": {},
|
|
567
|
+
"description": "the relation on a link from a task to the connection it asks a person for: the task shows the box the key is pasted in while the connection is needed, and is completed once the key is given, kept and checked"
|
|
568
|
+
},
|
|
569
|
+
"connection_need": {
|
|
570
|
+
"tool": true,
|
|
571
|
+
"destructive": false,
|
|
572
|
+
"noun": "connection",
|
|
573
|
+
"verb": "need",
|
|
574
|
+
"title": "Say an app needs a connection",
|
|
575
|
+
"description": "Say that an app or a task needs an outside service: an integration by name, and the scopes it asks for. It makes a connection with no credential, owned by a space or a person, which shows them what to connect; no key or token ever passes through this tool. For a service with no built integration, name it and give the hosts its key may be sent to, and a custom integration is made for it, owned by the asking space; give it instructions too, markdown for a person and their agent saying how to get the key (where to sign up, which page issues it, what to paste), and a title, tagline and site. Its owner asking again with any of those changes them. The owner may correct its hosts until a credential has been saved. If the hosts were left empty, the owner may still name them once afterward. Give fields when creating a custom integration that needs more than one value, such as a username and password. An existing integration supplies its own fields. A built integration also supplies its own hosts and description. With each, every person who uses the app connects their own instead, and the owner connects nothing. An app that already uses a connection through that integration is answered with it. With separate: true, the binding identifies a separate shared connection through that integration. Returns the applied bundles: JSON objects with entity ids and the components written, followed by the integration the connection goes through, its instructions among it, to walk the person through getting the key. Asked for a task, the task shows the person the box the key is pasted in, and is completed once the key is given, kept where keep says and checked.",
|
|
576
|
+
"input": {
|
|
577
|
+
"app": {
|
|
578
|
+
"type": "string",
|
|
579
|
+
"ref": "entity",
|
|
580
|
+
"description": "the app that needs it, by id or name; none when a person connects it first, or a task asks for it"
|
|
581
|
+
},
|
|
582
|
+
"owner": {
|
|
583
|
+
"type": "string",
|
|
584
|
+
"ref": "entity",
|
|
585
|
+
"description": "the space or person who will connect it, by id or name"
|
|
586
|
+
},
|
|
587
|
+
"integration": {
|
|
588
|
+
"type": "string",
|
|
589
|
+
"description": "the integration's name"
|
|
590
|
+
},
|
|
591
|
+
"scopes": {
|
|
592
|
+
"type": "array",
|
|
593
|
+
"items": {
|
|
594
|
+
"type": "string"
|
|
595
|
+
},
|
|
596
|
+
"description": "what the app asks for; omit for the integration's own"
|
|
597
|
+
},
|
|
598
|
+
"hosts": {
|
|
599
|
+
"type": "array",
|
|
600
|
+
"items": {
|
|
601
|
+
"type": "string"
|
|
602
|
+
},
|
|
603
|
+
"description": "for a custom connection, the hosts that may receive its credential. The owner may correct them until a credential is saved; hosts left empty may still be named once afterward"
|
|
604
|
+
},
|
|
605
|
+
"fields": {
|
|
606
|
+
"type": "array",
|
|
607
|
+
"items": {
|
|
608
|
+
"type": "object",
|
|
609
|
+
"required": [
|
|
610
|
+
"name",
|
|
611
|
+
"label"
|
|
612
|
+
],
|
|
613
|
+
"properties": {
|
|
614
|
+
"name": {
|
|
615
|
+
"type": "string",
|
|
616
|
+
"pattern": "^[a-z][a-z0-9_]*$",
|
|
617
|
+
"description": "what an app reads it by: env.<BINDING>_<NAME> in capitals, and the field of the connection's secret it is kept as"
|
|
618
|
+
},
|
|
619
|
+
"label": {
|
|
620
|
+
"type": "string",
|
|
621
|
+
"description": "what the connections page asks for it by, written for a person: Access key ID, API password"
|
|
622
|
+
},
|
|
623
|
+
"shown": {
|
|
624
|
+
"type": "boolean",
|
|
625
|
+
"description": "typed in the open rather than masked, as a username or a region is"
|
|
626
|
+
},
|
|
627
|
+
"example": {
|
|
628
|
+
"type": "string",
|
|
629
|
+
"description": "what it looks like, shown in the box it is typed in: an access key ID's AKIA••••••••"
|
|
630
|
+
}
|
|
631
|
+
}
|
|
632
|
+
},
|
|
633
|
+
"description": "the fields for a custom connection, such as Username and Password for a website sign-in, or an access key ID, secret key, and region for an API. The app reads each as env.<BINDING>_<NAME>. Omit for one API key"
|
|
634
|
+
},
|
|
635
|
+
"each": {
|
|
636
|
+
"type": "boolean",
|
|
637
|
+
"description": "each person who uses the app connects their own account, rather than the owner connecting one for everyone. The host draws the Connect button for them, each person's connection shows in their own dashboard, and only they call out through it"
|
|
638
|
+
},
|
|
639
|
+
"binding": {
|
|
640
|
+
"type": "string",
|
|
641
|
+
"description": "the name the app's code reads it by (env.NAME); omit for the integration's name in capitals"
|
|
642
|
+
},
|
|
643
|
+
"separate": {
|
|
644
|
+
"type": "boolean",
|
|
645
|
+
"description": "ask for a separate shared connection under the given binding, even if the app already uses this integration under another binding"
|
|
646
|
+
},
|
|
647
|
+
"direct": {
|
|
648
|
+
"type": "boolean",
|
|
649
|
+
"description": "hand the app's code the key itself rather than a sentinel, for a key it must sign with; only for a pasted key"
|
|
650
|
+
},
|
|
651
|
+
"instructions": {
|
|
652
|
+
"type": "string",
|
|
653
|
+
"description": "for a custom integration: how a person gets its key, in markdown, written for them and the agent helping them"
|
|
654
|
+
},
|
|
655
|
+
"example": {
|
|
656
|
+
"type": "string",
|
|
657
|
+
"description": "for a custom integration with one key: what the key looks like, shown in the box it is pasted in, its own prefix then dots: rk_live_••••••••"
|
|
658
|
+
},
|
|
659
|
+
"title": {
|
|
660
|
+
"type": "string",
|
|
661
|
+
"description": "for a custom integration: what a person calls the service, as its maker writes it"
|
|
662
|
+
},
|
|
663
|
+
"tagline": {
|
|
664
|
+
"type": "string",
|
|
665
|
+
"description": "for a custom integration: one line saying what the service is"
|
|
666
|
+
},
|
|
667
|
+
"site": {
|
|
668
|
+
"type": "string",
|
|
669
|
+
"description": "for a custom integration: the service's https address on the web"
|
|
670
|
+
},
|
|
671
|
+
"image": {
|
|
672
|
+
"type": "string",
|
|
673
|
+
"description": "for a custom integration: a public HTTPS icon URL, fetched and stored by yaks.app; omit to use the site icon"
|
|
674
|
+
},
|
|
675
|
+
"task": {
|
|
676
|
+
"type": "string",
|
|
677
|
+
"ref": "entity",
|
|
678
|
+
"description": "the task that asks the person for the key, by id: it shows the box the key is pasted in, and is completed once the key works. The key never enters the task's text or an agent's context"
|
|
679
|
+
},
|
|
680
|
+
"keep": {
|
|
681
|
+
"type": "array",
|
|
682
|
+
"items": {
|
|
683
|
+
"type": "object",
|
|
684
|
+
"required": [
|
|
685
|
+
"via",
|
|
686
|
+
"at"
|
|
687
|
+
],
|
|
688
|
+
"properties": {
|
|
689
|
+
"via": {
|
|
690
|
+
"type": "string",
|
|
691
|
+
"description": "the keeper, by the name the host lends it under (@yaks/host/keepers): 1password, worker"
|
|
692
|
+
},
|
|
693
|
+
"at": {
|
|
694
|
+
"type": "string",
|
|
695
|
+
"description": "the keeper's own address for the key: a 1Password vault and item, a Worker and its secret's name"
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
},
|
|
699
|
+
"description": "where else the key goes once it is given, besides the graph's own vault, each a keeper the host lends (via) and its place there (at): {via: 1password, at: \"Vault/Item\"}, {via: worker, at: \"script/SECRET_NAME\"}"
|
|
700
|
+
},
|
|
701
|
+
"check": {
|
|
702
|
+
"type": "string",
|
|
703
|
+
"description": "for a custom integration: a call that answers 2xx once the key works, a method and an https address on one of its hosts: GET https://api.example.com/v1/me"
|
|
704
|
+
}
|
|
705
|
+
},
|
|
706
|
+
"required": [
|
|
707
|
+
"owner",
|
|
708
|
+
"integration"
|
|
709
|
+
],
|
|
710
|
+
"positional": [
|
|
711
|
+
"integration"
|
|
712
|
+
]
|
|
713
|
+
},
|
|
714
|
+
"connection_list": {
|
|
715
|
+
"tool": true,
|
|
716
|
+
"noun": "connection",
|
|
717
|
+
"verb": "list",
|
|
718
|
+
"title": "List connections",
|
|
719
|
+
"description": "The connections a space or a person owns, each with its integration, account, scopes and status (needed, connected or broken), the links from each app that uses one, and the integrations they go through, with each one's instructions for getting its key. A handle is shown where a credential is kept; the credential itself never is. Returns bundles: JSON objects with entity ids and component fields.",
|
|
720
|
+
"input": {
|
|
721
|
+
"owner": {
|
|
722
|
+
"type": "string",
|
|
723
|
+
"ref": "entity",
|
|
724
|
+
"description": "the space or person, by id or name"
|
|
725
|
+
}
|
|
726
|
+
},
|
|
727
|
+
"required": [
|
|
728
|
+
"owner"
|
|
729
|
+
],
|
|
730
|
+
"readOnly": true,
|
|
731
|
+
"positional": [
|
|
732
|
+
"owner"
|
|
733
|
+
]
|
|
734
|
+
},
|
|
735
|
+
"integration_install": {
|
|
736
|
+
"effect": true,
|
|
737
|
+
"start": true,
|
|
738
|
+
"description": "install the integrations this package builds whenever a process starts working the effects; a graph already holding them as shipped is read once and written nothing"
|
|
739
|
+
},
|
|
740
|
+
"connection_given": {
|
|
741
|
+
"effect": true,
|
|
742
|
+
"removed": [
|
|
743
|
+
"provisional"
|
|
744
|
+
],
|
|
745
|
+
"target": ".connection.status=connected",
|
|
746
|
+
"description": "once a connection's new credential is sealed in the vault: hand it to each keeper its keep names, call its integration's check, and complete each task that asks for it. A keeper that fails or a check that refuses the key leaves the run failed and the task open"
|
|
747
|
+
},
|
|
748
|
+
"connection_hold_lapse": {
|
|
749
|
+
"effect": true,
|
|
750
|
+
"created": [
|
|
751
|
+
"approving"
|
|
752
|
+
],
|
|
753
|
+
"changed": [
|
|
754
|
+
"approving.at"
|
|
755
|
+
],
|
|
756
|
+
"tries": 24,
|
|
757
|
+
"description": "owed with every brokered grant held for the account that approved it: it waits until the hold is a day old, then forgets the grant at the broker and clears the mark, whether or not anyone read the connection. A broker that does not answer is tried again an hour later"
|
|
758
|
+
},
|
|
759
|
+
"credential_purge": {
|
|
760
|
+
"$id": "urn:uuid:69fc6c93-6cba-45bb-84e6-ee598b32e35c",
|
|
761
|
+
"component": true,
|
|
762
|
+
"type": "object",
|
|
763
|
+
"description": "permanent erasure of a saved broker credential, with enough to forget its grant after the credential itself has gone",
|
|
764
|
+
"additionalProperties": false,
|
|
765
|
+
"required": ["connection", "version", "broker", "integration", "id"],
|
|
766
|
+
"properties": {
|
|
767
|
+
"connection": {
|
|
768
|
+
"$id": "urn:uuid:3e9f4446-fb4b-4285-b8a6-7b9ca5efd7fc",
|
|
769
|
+
"type": "string",
|
|
770
|
+
"ref": "entity",
|
|
771
|
+
"death": "keep",
|
|
772
|
+
"stamped": true
|
|
773
|
+
},
|
|
774
|
+
"version": {
|
|
775
|
+
"$id": "urn:uuid:911ae677-73bb-4f7c-95e7-f4637d3b82b6",
|
|
776
|
+
"type": "string",
|
|
777
|
+
"stamped": true
|
|
778
|
+
},
|
|
779
|
+
"broker": {
|
|
780
|
+
"$id": "urn:uuid:25041569-c88c-4949-940f-4515431d1e70",
|
|
781
|
+
"type": "string",
|
|
782
|
+
"stamped": true
|
|
783
|
+
},
|
|
784
|
+
"integration": {
|
|
785
|
+
"$id": "urn:uuid:efbbb94a-61e6-4b37-ba72-ea4b0ff21a85",
|
|
786
|
+
"type": "string",
|
|
787
|
+
"stamped": true
|
|
788
|
+
},
|
|
789
|
+
"id": {
|
|
790
|
+
"$id": "urn:uuid:e6b5a9e5-0e66-4f38-9353-f9b9d3fa643c",
|
|
791
|
+
"type": "string",
|
|
792
|
+
"stamped": true
|
|
793
|
+
}
|
|
794
|
+
}
|
|
795
|
+
},
|
|
796
|
+
"credential_purged": {
|
|
797
|
+
"effect": true,
|
|
798
|
+
"created": ["credential_purge"],
|
|
799
|
+
"tries": 24,
|
|
800
|
+
"description": "erase the selected saved credential and forget its grant when neither a live connection nor another saved version can still use it"
|
|
801
|
+
},
|
|
802
|
+
"connection_owner_gone": {
|
|
803
|
+
"effect": true,
|
|
804
|
+
"removed": ["space", "person"],
|
|
805
|
+
"tries": 24,
|
|
806
|
+
"description": "owed by permanent space or account erasure: forget grants kept for restoring its previously disconnected connections"
|
|
807
|
+
},
|
|
808
|
+
"connection_gone": {
|
|
809
|
+
"effect": true,
|
|
810
|
+
"removed": [
|
|
811
|
+
"connection"
|
|
812
|
+
],
|
|
813
|
+
"tries": 24,
|
|
814
|
+
"description": "owed with every connection that dies, by a disconnect or with the space or person that owned it: forgets at the broker every grant it holds for the connection, the one held for an approver among them, but the grant the connection kept while it can still be restored, that is while its owner stands and the vault retains its credential. Nothing for a connection brought back since. A broker that does not answer is tried again an hour later"
|
|
815
|
+
},
|
|
816
|
+
"connection_holds": {
|
|
817
|
+
"effect": true,
|
|
818
|
+
"start": true,
|
|
819
|
+
"description": "whenever a process starts working the effects, owe connection_hold_lapse for each grant held for its approver, so a hold written before that effect was declared lapses as a new one does"
|
|
820
|
+
}
|
|
821
|
+
},
|
|
822
|
+
"kinds": {
|
|
823
|
+
"integration": {
|
|
824
|
+
"$id": "urn:uuid:ee4229da-b654-4785-b09e-ccef920733ab",
|
|
825
|
+
"description": "an outside service, as data: where a person signs in to it and where its codes are exchanged, for one reached by OAuth, the hosts its credential may be sent to, and how a page shows it. A built one is installed by the host from @yaks/connections' own seed data, and marked built; any other is a custom one, owned by the space or person that made it",
|
|
826
|
+
"examples": [
|
|
827
|
+
{
|
|
828
|
+
"integration": {
|
|
829
|
+
"name": "github",
|
|
830
|
+
"title": "GitHub",
|
|
831
|
+
"authorize": "https://github.com/login/oauth/authorize",
|
|
832
|
+
"token": "https://github.com/login/oauth/access_token",
|
|
833
|
+
"scopes": [
|
|
834
|
+
"repo"
|
|
835
|
+
],
|
|
836
|
+
"hosts": [
|
|
837
|
+
"api.github.com"
|
|
838
|
+
]
|
|
839
|
+
}
|
|
840
|
+
}
|
|
841
|
+
]
|
|
842
|
+
},
|
|
843
|
+
"connection": {
|
|
844
|
+
"$id": "urn:uuid:cc3f01c3-ecdd-4e80-b543-6d7d5d08edb7",
|
|
845
|
+
"description": "one link between a space or a person and an outside service, through an integration. The entity is also the secret its credential is kept as: the graph holds the handle, the vault the key or the tokens",
|
|
846
|
+
"with": {
|
|
847
|
+
"secret": true
|
|
848
|
+
},
|
|
849
|
+
"examples": [
|
|
850
|
+
{
|
|
851
|
+
"connection": {
|
|
852
|
+
"integration": "github",
|
|
853
|
+
"owner": "e5f6a7b8-c9d0-4e1f-a2b3-c4d5e6f7a8b9",
|
|
854
|
+
"status": "needed"
|
|
855
|
+
},
|
|
856
|
+
"secret": {
|
|
857
|
+
"name": "github"
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
]
|
|
861
|
+
}
|
|
862
|
+
}
|
|
863
|
+
}
|