@dork-labs/connector-providers 0.115.0 → 0.117.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/composio/authentication-config-policy.d.ts.map +1 -1
- package/dist/composio/authentication-config-policy.js +11 -3
- package/dist/composio/authentication-config-policy.js.map +1 -1
- package/dist/composio/authentication-configuration.d.ts.map +1 -1
- package/dist/composio/authentication-configuration.js +7 -1
- package/dist/composio/authentication-configuration.js.map +1 -1
- package/dist/composio/file-input.d.ts +15 -0
- package/dist/composio/file-input.d.ts.map +1 -0
- package/dist/composio/file-input.js +91 -0
- package/dist/composio/file-input.js.map +1 -0
- package/dist/composio/sdk-client.d.ts.map +1 -1
- package/dist/composio/sdk-client.js +2 -12
- package/dist/composio/sdk-client.js.map +1 -1
- package/dist/connection-copy.d.ts +185 -0
- package/dist/connection-copy.d.ts.map +1 -0
- package/dist/connection-copy.js +357 -0
- package/dist/connection-copy.js.map +1 -0
- package/dist/connector-arguments.d.ts +18 -0
- package/dist/connector-arguments.d.ts.map +1 -1
- package/dist/connector-arguments.js +36 -0
- package/dist/connector-arguments.js.map +1 -1
- package/dist/connector-event-schemas.d.ts +4 -4
- package/dist/connector-schemas.d.ts +1 -176
- package/dist/connector-schemas.d.ts.map +1 -1
- package/dist/connector-schemas.js +1 -356
- package/dist/connector-schemas.js.map +1 -1
- package/package.json +4 -4
|
@@ -0,0 +1,357 @@
|
|
|
1
|
+
const READINESS_ASK_ON_CONNECTIONS = 'on the Connections page in the DorkOS app';
|
|
2
|
+
/** What an agent reads about an account the person disconnected. */
|
|
3
|
+
export const CONNECTION_GONE_AGENT_COPY = 'The person disconnected this account. Ask them to connect it again if you need it.';
|
|
4
|
+
/**
|
|
5
|
+
* Every line readiness says, in one place: the server's readiness function is
|
|
6
|
+
* its one reader (tests read it too, so a mock never copies a string). Owner
|
|
7
|
+
* lines sit under the app's name, so they say "it". Agent lines say what the
|
|
8
|
+
* person must do.
|
|
9
|
+
*/
|
|
10
|
+
export const CONNECTION_READINESS_COPY = {
|
|
11
|
+
usable: {
|
|
12
|
+
owner: 'Agents can use it.',
|
|
13
|
+
agent: 'You can use this account.',
|
|
14
|
+
},
|
|
15
|
+
off_for_this_chat: {
|
|
16
|
+
owner: 'Turned off for this chat.',
|
|
17
|
+
agent: 'The person turned this account off for this chat, so you can’t use it here. Don’t ask for it again in this chat.',
|
|
18
|
+
},
|
|
19
|
+
// Linking this computer again with the same DorkOS account can continue its
|
|
20
|
+
// earlier link, and so bring the account back (DOR-2521); never promised.
|
|
21
|
+
dorkos_account_unlinked: {
|
|
22
|
+
owner: 'It was connected through your DorkOS account, which isn’t linked anymore. Linking this computer again with the same ' +
|
|
23
|
+
'DorkOS account can bring it back, unless its earlier link was removed from that account. Otherwise, connect it again.',
|
|
24
|
+
agent: 'It was connected through the person’s DorkOS account, which isn’t linked anymore. Linking this computer again with the ' +
|
|
25
|
+
'same DorkOS account (Settings › DorkOS account in the DorkOS app) can bring it back, unless its earlier link was removed from ' +
|
|
26
|
+
'that account. A different account, or a link made on another computer, does not bring it back: then ask the person to ' +
|
|
27
|
+
`connect this app again ${READINESS_ASK_ON_CONNECTIONS}.`,
|
|
28
|
+
},
|
|
29
|
+
dorkos_account_unavailable: {
|
|
30
|
+
owner: 'Your DorkOS account can’t reach it right now, so agents can’t use it.',
|
|
31
|
+
agent: 'It was connected through the person’s DorkOS account, which can’t reach apps right now. Try again later. The person doesn’t need to do anything.',
|
|
32
|
+
},
|
|
33
|
+
own_key_unavailable: {
|
|
34
|
+
owner: 'The key it was connected through isn’t set up or didn’t answer. Fix the key to use it.',
|
|
35
|
+
agent: 'It was connected through the person’s own key, which isn’t set up or didn’t answer when DorkOS last checked it. ' +
|
|
36
|
+
'Ask the person to fix the key in Settings › Connections in the DorkOS app.',
|
|
37
|
+
},
|
|
38
|
+
way_unreachable: {
|
|
39
|
+
owner: 'DorkOS can’t reach the service it was connected through, so agents can’t use it.',
|
|
40
|
+
agent: 'DorkOS can’t reach the service this account was connected through. Asking for access won’t help.',
|
|
41
|
+
},
|
|
42
|
+
own_key_cannot_run_actions: {
|
|
43
|
+
owner: 'Agents can’t use it: your key can sign in to apps but can’t run their actions. Change it to a project key.',
|
|
44
|
+
agent: 'The person’s own key can sign in to apps but can’t run their actions. Ask the person to change it to a project key in Settings › Connections in the DorkOS app.',
|
|
45
|
+
},
|
|
46
|
+
cannot_run_actions: {
|
|
47
|
+
owner: 'Agents can’t use apps connected this way yet.',
|
|
48
|
+
agent: 'Agents can’t use apps connected the way this one was. Asking for access won’t help.',
|
|
49
|
+
},
|
|
50
|
+
paused: {
|
|
51
|
+
owner: 'Paused. Agents can’t use it until you resume it.',
|
|
52
|
+
agent: `The person paused this account. Ask them to resume it ${READINESS_ASK_ON_CONNECTIONS}.`,
|
|
53
|
+
},
|
|
54
|
+
signing_in: {
|
|
55
|
+
owner: 'Finish signing in again. Agents can’t use it until you do.',
|
|
56
|
+
agent: `The person is signing in to this account again. Ask them to finish signing in ${READINESS_ASK_ON_CONNECTIONS}.`,
|
|
57
|
+
},
|
|
58
|
+
signed_out: {
|
|
59
|
+
owner: 'Signed out. Agents can’t use it until you sign in again.',
|
|
60
|
+
agent: `The sign-in for this account ended. Ask the person to sign in again ${READINESS_ASK_ON_CONNECTIONS}.`,
|
|
61
|
+
},
|
|
62
|
+
sign_in_unfinished: {
|
|
63
|
+
owner: 'Sign-in didn’t finish. Agents can’t use it until you sign in again.',
|
|
64
|
+
agent: `The sign-in for this account didn’t finish. Ask the person to sign in again ${READINESS_ASK_ON_CONNECTIONS}.`,
|
|
65
|
+
},
|
|
66
|
+
needs_review: {
|
|
67
|
+
owner: 'How DorkOS reaches it changed, so check who can use it. Agents can’t use it until you do.',
|
|
68
|
+
agent: `How DorkOS reaches this account changed, so the person needs to confirm who can use it before agents can use it again. Ask them to check it ${READINESS_ASK_ON_CONNECTIONS}.`,
|
|
69
|
+
},
|
|
70
|
+
access_update_failed: {
|
|
71
|
+
owner: 'A change to who can use it didn’t go through. Check who can use it.',
|
|
72
|
+
agent: `A change to who can use this account didn’t go through. Ask the person to check it ${READINESS_ASK_ON_CONNECTIONS}.`,
|
|
73
|
+
},
|
|
74
|
+
access_updating: {
|
|
75
|
+
owner: 'Updating who can use it…',
|
|
76
|
+
agent: 'DorkOS is still updating who can use this account. Try again in a few minutes. The person doesn’t need to do anything.',
|
|
77
|
+
},
|
|
78
|
+
disconnected: {
|
|
79
|
+
owner: 'Disconnected. Agents can’t use it.',
|
|
80
|
+
agent: CONNECTION_GONE_AGENT_COPY,
|
|
81
|
+
},
|
|
82
|
+
disconnect_finishing: {
|
|
83
|
+
owner: 'Disconnected. Agents can’t use it. DorkOS is still removing its access at the service.',
|
|
84
|
+
agent: CONNECTION_GONE_AGENT_COPY,
|
|
85
|
+
},
|
|
86
|
+
gone_at_service: {
|
|
87
|
+
owner: 'Your DorkOS account no longer has this connection, so agents can’t use it. Connect it again to use it. To be sure its old access ended, remove it in that app’s own account settings.',
|
|
88
|
+
agent: 'The person’s DorkOS account no longer has this connection. Ask the person to connect it again if you need it.',
|
|
89
|
+
},
|
|
90
|
+
};
|
|
91
|
+
/**
|
|
92
|
+
* The owner's line for a disconnect DorkOS can't finish right now, by why it
|
|
93
|
+
* can't: the one thing the person can do, or where they can finish it
|
|
94
|
+
* themselves.
|
|
95
|
+
*
|
|
96
|
+
* @param cause - Why it can't finish.
|
|
97
|
+
*/
|
|
98
|
+
export function disconnectStuckOwnerLine(cause) {
|
|
99
|
+
const lead = 'Disconnected. Agents can’t use it.';
|
|
100
|
+
const ownSettings = 'To be sure its access ended, remove it in that app’s own account settings.';
|
|
101
|
+
switch (cause) {
|
|
102
|
+
case 'own_key_unavailable':
|
|
103
|
+
return `${lead} DorkOS can’t finish removing its access at the service until the key it was connected through works again. Add that same key again and DorkOS finishes it on its own.`;
|
|
104
|
+
case 'dorkos_account_unlinked':
|
|
105
|
+
return `${lead} DorkOS can’t finish removing its access at the service, because your DorkOS account isn’t linked anymore. Link this computer to the same DorkOS account again and DorkOS finishes it on its own. ${ownSettings}`;
|
|
106
|
+
case 'unconfirmed':
|
|
107
|
+
return `${lead} DorkOS couldn’t confirm its access ended at the service. ${ownSettings}`;
|
|
108
|
+
case 'dorkos_account_unavailable':
|
|
109
|
+
case 'unreachable':
|
|
110
|
+
return `${lead} DorkOS can’t reach the service to finish removing its access. ${ownSettings}`;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
/**
|
|
114
|
+
* The words for an account whose own key didn't answer for a reason that may
|
|
115
|
+
* pass (a timeout, an outage): DorkOS checks it again on its own.
|
|
116
|
+
*/
|
|
117
|
+
export const WAY_RECHECK_COPY = {
|
|
118
|
+
owner: 'The key it was connected through didn’t answer. DorkOS checks it again on its own.',
|
|
119
|
+
agent: 'The way this account was connected through didn’t answer. DorkOS checks it again on its own, so try again in a few minutes. The person doesn’t need to do anything.',
|
|
120
|
+
};
|
|
121
|
+
/**
|
|
122
|
+
* The words for an account whose way DorkOS is checking right now, or will
|
|
123
|
+
* check again on its own before long: nothing for anyone to press yet.
|
|
124
|
+
*/
|
|
125
|
+
export const WAY_CHECKING_COPY = {
|
|
126
|
+
owner: 'DorkOS is checking how it reaches it. This takes a moment.',
|
|
127
|
+
agent: 'DorkOS is checking how it reaches this account. Try again in a few minutes. The person doesn’t need to do anything.',
|
|
128
|
+
};
|
|
129
|
+
/**
|
|
130
|
+
* Pages where a person can end an app's access to their account themselves,
|
|
131
|
+
* by the account's service. Only pages known to hold that setting are listed;
|
|
132
|
+
* an app missing here gets the plain line with no link.
|
|
133
|
+
*/
|
|
134
|
+
const SERVICE_ACCESS_PAGES = {
|
|
135
|
+
google: { service: 'Google', url: 'https://myaccount.google.com/connections' },
|
|
136
|
+
github: { service: 'GitHub', url: 'https://github.com/settings/applications' },
|
|
137
|
+
dropbox: { service: 'Dropbox', url: 'https://www.dropbox.com/account/connected_apps' },
|
|
138
|
+
};
|
|
139
|
+
/** Which account service each app signs in through, for the apps whose page is known. */
|
|
140
|
+
const SERVICE_OF_APP = {
|
|
141
|
+
gmail: 'google',
|
|
142
|
+
googlecalendar: 'google',
|
|
143
|
+
googledocs: 'google',
|
|
144
|
+
googlesheets: 'google',
|
|
145
|
+
googledrive: 'google',
|
|
146
|
+
github: 'github',
|
|
147
|
+
dropbox: 'dropbox',
|
|
148
|
+
};
|
|
149
|
+
/**
|
|
150
|
+
* Where the person can end DorkOS's access to one app's account themselves,
|
|
151
|
+
* when that page is known.
|
|
152
|
+
*
|
|
153
|
+
* @param toolkit - The app's slug, e.g. `'gmail'`.
|
|
154
|
+
*/
|
|
155
|
+
export function serviceAccessPageFor(toolkit) {
|
|
156
|
+
const service = SERVICE_OF_APP[toolkit];
|
|
157
|
+
return service === undefined ? undefined : SERVICE_ACCESS_PAGES[service];
|
|
158
|
+
}
|
|
159
|
+
/**
|
|
160
|
+
* What an agent is told to do about an account nothing fixes from here: tell
|
|
161
|
+
* the person. Added only when no concrete fix sentence follows.
|
|
162
|
+
*/
|
|
163
|
+
export const TELL_THE_PERSON_AGENT_COPY = 'Tell the person.';
|
|
164
|
+
/**
|
|
165
|
+
* The words added when an account connected a way that can't be used offers
|
|
166
|
+
* connecting it again, because another way works.
|
|
167
|
+
*/
|
|
168
|
+
export const CONNECT_ANOTHER_WAY_COPY = {
|
|
169
|
+
owner: 'Connect it again another way to use it.',
|
|
170
|
+
agent: 'Ask the person to connect it again another way on the Connections page in the DorkOS app.',
|
|
171
|
+
};
|
|
172
|
+
/**
|
|
173
|
+
* The words added when the owner can turn an app back on for one chat. The
|
|
174
|
+
* agent line is unchanged: an agent never reads the owner's chat view, and it
|
|
175
|
+
* should not ask for an app the person turned off.
|
|
176
|
+
*/
|
|
177
|
+
export const TURN_ON_FOR_THIS_CHAT_COPY = {
|
|
178
|
+
owner: 'Turn it on to let this agent use it here again.',
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* Why a way can't do something at all, in the words a person or agent reads
|
|
182
|
+
* wherever the way's abilities are shown (the connect dialog, the access
|
|
183
|
+
* review, an agent's tool result). Each way's code states its limits with
|
|
184
|
+
* these lines, never its own.
|
|
185
|
+
*/
|
|
186
|
+
export const WAY_CAPABILITY_COPY = {
|
|
187
|
+
/** The way signs in to apps but can't run their actions. */
|
|
188
|
+
cannotRunActions: 'Agents can’t use apps connected this way yet.',
|
|
189
|
+
/** The way can't say which actions an app offers. */
|
|
190
|
+
cannotListActions: 'DorkOS can’t list what an app can do when it’s connected this way.',
|
|
191
|
+
/** The way can't deliver notifications from apps. */
|
|
192
|
+
noNotifications: 'Notifications aren’t available for apps connected this way.',
|
|
193
|
+
/** A person's own Composio key is an account key, which can't run actions. */
|
|
194
|
+
accountKeyCannotRunActions: 'This key can sign in to apps but can’t run their actions. Change it to a project key from your Composio dashboard.',
|
|
195
|
+
};
|
|
196
|
+
/**
|
|
197
|
+
* Why a waiting approval or request was cancelled because the access behind
|
|
198
|
+
* it ended. A person reads it on the approval or request; an agent reads it
|
|
199
|
+
* as the answer to what it was waiting for.
|
|
200
|
+
*/
|
|
201
|
+
export const ACCESS_ENDED_COPY = {
|
|
202
|
+
/** The account was disconnected. */
|
|
203
|
+
connection_removed: 'The account was disconnected, so this was cancelled.',
|
|
204
|
+
/** The agent was removed. */
|
|
205
|
+
agent_removed: 'The agent was removed, so this was cancelled.',
|
|
206
|
+
/** The agent's access to the account was taken away. */
|
|
207
|
+
agent_connection_removed: 'The agent’s access to this account was removed, so this was cancelled.',
|
|
208
|
+
};
|
|
209
|
+
/**
|
|
210
|
+
* What a person reads under one of their own keys when DorkOS's last check of
|
|
211
|
+
* it failed. The service's own error text goes to the log, never here.
|
|
212
|
+
*/
|
|
213
|
+
export const KEY_CHECK_COPY = {
|
|
214
|
+
/** The service turned the key down (it answered 401 or 403). */
|
|
215
|
+
refused: 'The service turned this key down. Check it’s the right key, then save it again.',
|
|
216
|
+
/** The check failed a way that can pass, and DorkOS has a re-check scheduled. */
|
|
217
|
+
checkingAgain: 'DorkOS couldn’t check this key just now. It checks again on its own.',
|
|
218
|
+
/** The check failed and DorkOS has stopped checking on its own. */
|
|
219
|
+
stoppedChecking: 'DorkOS couldn’t check this key and has stopped trying on its own. Save it again to check it now.',
|
|
220
|
+
/**
|
|
221
|
+
* Nothing answered at the service's address (a name that doesn't resolve, a
|
|
222
|
+
* refused connection, a 404 on the base address).
|
|
223
|
+
*
|
|
224
|
+
* @param type - The way's type: `'nango'` names the person's own server.
|
|
225
|
+
* @param recheckScheduled - Whether DorkOS will check it again on its own.
|
|
226
|
+
*/
|
|
227
|
+
unreachable(type, recheckScheduled) {
|
|
228
|
+
const lead = type === 'nango'
|
|
229
|
+
? 'DorkOS couldn’t reach your Nango server.'
|
|
230
|
+
: 'DorkOS couldn’t reach Composio.';
|
|
231
|
+
if (recheckScheduled)
|
|
232
|
+
return `${lead} It checks again on its own.`;
|
|
233
|
+
return type === 'nango'
|
|
234
|
+
? `${lead} Check that it’s running and its address is right, then save the key again.`
|
|
235
|
+
: `${lead} Check your internet connection, then save the key again.`;
|
|
236
|
+
},
|
|
237
|
+
};
|
|
238
|
+
/**
|
|
239
|
+
* What a person reads when a change to who can use an account can't be sent
|
|
240
|
+
* because this computer's DorkOS account link is gone.
|
|
241
|
+
*/
|
|
242
|
+
export const LINK_NEEDED_TO_CHANGE_ACCESS_COPY = 'DorkOS can’t change who uses this account until this computer is linked to your DorkOS account again. Link it in Settings › DorkOS account, then try again.';
|
|
243
|
+
/**
|
|
244
|
+
* What a person reads when a sign-in can't start or doesn't finish. The
|
|
245
|
+
* server's sign-in flow is the one writer; the connect dialog shows the line.
|
|
246
|
+
*/
|
|
247
|
+
export const SIGN_IN_COPY = {
|
|
248
|
+
/** The way changed, or stopped answering, while the person was signing in. */
|
|
249
|
+
wayChanged: 'The way DorkOS reaches this app changed or stopped working while you were signing in. Start again.',
|
|
250
|
+
/** The way isn't set up, or isn't working, so a sign-in can't start. */
|
|
251
|
+
wayUnavailable: 'The way DorkOS reaches this app isn’t set up or isn’t working right now. Check it in Settings › Connections, then try again.',
|
|
252
|
+
/** The service said the sign-in didn't finish. */
|
|
253
|
+
failed: 'Sign-in didn’t finish. Try again.',
|
|
254
|
+
/** The service that handles sign-in isn't set up to connect this app. */
|
|
255
|
+
serviceNotReady: 'This app can’t be connected yet. This isn’t something you can fix here.',
|
|
256
|
+
/** This computer has to be linked to its DorkOS account before sign-in can start. */
|
|
257
|
+
accountLinkRequired: 'Link this computer to your DorkOS account, then connect again.',
|
|
258
|
+
/** The service hit a brief, transient failure trying to start sign-in. */
|
|
259
|
+
serviceUnavailable: 'Nothing was connected. Try again in a few minutes.',
|
|
260
|
+
};
|
|
261
|
+
/** The service behind each way, by the way's type: what its key or server is called. */
|
|
262
|
+
const SERVICE_NAMES = {
|
|
263
|
+
'dorkos-managed': 'DorkOS',
|
|
264
|
+
composio: 'Composio',
|
|
265
|
+
nango: 'Nango',
|
|
266
|
+
mcp: 'MCP',
|
|
267
|
+
'test-connector': 'Test connector',
|
|
268
|
+
};
|
|
269
|
+
/**
|
|
270
|
+
* How a person knows each way DorkOS reaches apps, by the way's type. Every
|
|
271
|
+
* surface that names a way (Settings › Connections, "How it's connected", the
|
|
272
|
+
* connect dialog, the catalog's warnings, an agent's recommendation) reads it
|
|
273
|
+
* from here, and the server works it out from the stored type when it reads a
|
|
274
|
+
* way, so a stored raw name never reaches anyone.
|
|
275
|
+
*/
|
|
276
|
+
const WAY_NAMES = {
|
|
277
|
+
'dorkos-managed': 'Your DorkOS account',
|
|
278
|
+
composio: 'Your Composio key',
|
|
279
|
+
nango: 'Your Nango server',
|
|
280
|
+
// Raw MCP talks straight to the app's own server, never one the person runs.
|
|
281
|
+
mcp: 'The app’s own MCP server',
|
|
282
|
+
'test-connector': 'Your test key',
|
|
283
|
+
};
|
|
284
|
+
/** "Composio" from `composio`; an unknown type is title-cased. */
|
|
285
|
+
function titleCase(type) {
|
|
286
|
+
return type.charAt(0).toUpperCase() + type.slice(1);
|
|
287
|
+
}
|
|
288
|
+
/**
|
|
289
|
+
* The name of the service behind a way, for a key's own label ("Composio
|
|
290
|
+
* project key", "Nango API key"). An unknown type is title-cased.
|
|
291
|
+
*
|
|
292
|
+
* @param type - The way's type, e.g. `'composio'`.
|
|
293
|
+
*/
|
|
294
|
+
export function connectionServiceName(type) {
|
|
295
|
+
return SERVICE_NAMES[type] ?? titleCase(type);
|
|
296
|
+
}
|
|
297
|
+
/**
|
|
298
|
+
* The plain name of one way DorkOS reaches apps. An unknown type is named as
|
|
299
|
+
* one of the person's own keys rather than shown as a raw slug.
|
|
300
|
+
*
|
|
301
|
+
* @param type - The way's type, e.g. `'composio'` or `'dorkos-managed'`.
|
|
302
|
+
*/
|
|
303
|
+
export function connectionWayName(type) {
|
|
304
|
+
return WAY_NAMES[type] ?? `Your ${titleCase(type)} key`;
|
|
305
|
+
}
|
|
306
|
+
/**
|
|
307
|
+
* The one line about who pays for an app's use, or `null` when nobody bills
|
|
308
|
+
* for it: a self-hosted Nango server or an MCP server is the person's own, so
|
|
309
|
+
* there is no bill to name. Only the DorkOS-account way and a person's own
|
|
310
|
+
* Composio key have one.
|
|
311
|
+
*
|
|
312
|
+
* @param route - The way's payer and where its sign-ins are kept.
|
|
313
|
+
*/
|
|
314
|
+
export function connectionUsageLine(route) {
|
|
315
|
+
if (route.payer === 'dorkos_managed')
|
|
316
|
+
return 'Your DorkOS account covers its use.';
|
|
317
|
+
// Composio keeps the sign-in (managed custody) on a person's own key.
|
|
318
|
+
if (route.custody === 'managed')
|
|
319
|
+
return 'Any usage charges go to your own Composio account.';
|
|
320
|
+
return null;
|
|
321
|
+
}
|
|
322
|
+
/**
|
|
323
|
+
* Plain words for what one app action can do, shown in place of its stored
|
|
324
|
+
* class. `destructive` is "High risk", never "Delete": the service marks
|
|
325
|
+
* sending, sharing, forwarding and actions it hasn't sorted as destructive
|
|
326
|
+
* too, so all the words can promise is that it needs more care.
|
|
327
|
+
*/
|
|
328
|
+
export const OPERATION_CLASSIFICATION_LABELS = {
|
|
329
|
+
read: 'Read',
|
|
330
|
+
write: 'Write',
|
|
331
|
+
destructive: 'High risk',
|
|
332
|
+
};
|
|
333
|
+
/**
|
|
334
|
+
* What a set of action kinds lets an agent do, in words: `read`,
|
|
335
|
+
* `read and write`, `read, write and high-risk actions`. Never "delete": the
|
|
336
|
+
* service marks sending and sharing destructive too. The app and the server's
|
|
337
|
+
* Activity entries both read it here.
|
|
338
|
+
*
|
|
339
|
+
* @param classifications - The kinds of the granted actions.
|
|
340
|
+
*/
|
|
341
|
+
export function connectionAccessWords(classifications) {
|
|
342
|
+
const words = ['read', 'write', 'destructive']
|
|
343
|
+
.filter((kind) => classifications.includes(kind))
|
|
344
|
+
.map((kind) => (kind === 'destructive' ? 'high-risk actions' : kind));
|
|
345
|
+
if (words.length <= 1)
|
|
346
|
+
return words[0] ?? '';
|
|
347
|
+
return `${words.slice(0, -1).join(', ')} and ${words.at(-1)}`;
|
|
348
|
+
}
|
|
349
|
+
/** Plain words for a connected account's sign-in state, shown in place of its stored value. */
|
|
350
|
+
export const CONNECTION_STATUS_LABELS = {
|
|
351
|
+
active: 'Connected',
|
|
352
|
+
expired: 'Signed out',
|
|
353
|
+
revoked: 'Disconnected',
|
|
354
|
+
pending: 'Signing in',
|
|
355
|
+
paused: 'Paused',
|
|
356
|
+
};
|
|
357
|
+
//# sourceMappingURL=connection-copy.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"connection-copy.js","sourceRoot":"","sources":["../src/connection-copy.ts"],"names":[],"mappings":"AAkBA,MAAM,4BAA4B,GAAG,2CAA2C,CAAC;AACjF,oEAAoE;AACpE,MAAM,CAAC,MAAM,0BAA0B,GACrC,oFAAoF,CAAC;AAEvF;;;;;GAKG;AACH,MAAM,CAAC,MAAM,yBAAyB,GAElC;IACF,MAAM,EAAE;QACN,KAAK,EAAE,oBAAoB;QAC3B,KAAK,EAAE,2BAA2B;KACnC;IACD,iBAAiB,EAAE;QACjB,KAAK,EAAE,2BAA2B;QAClC,KAAK,EACH,kHA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AI,CAAC;QAAE,OAAO,KAAK,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC;IAC7C,OAAO,GAAG,KAAK,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,KAAK,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC;AAChE,CAAC;AAED,+FAA+F;AAC/F,MAAM,CAAC,MAAM,wBAAwB,GAEjC;IACF,MAAM,EAAE,WAAW;IACnB,OAAO,EAAE,YAAY;IACrB,OAAO,EAAE,cAAc;IACvB,OAAO,EAAE,YAAY;IACrB,MAAM,EAAE,QAAQ;CACjB,CAAC"}
|
|
@@ -46,4 +46,22 @@ export declare function connectorValidationSchema(providerSchema: Record<string,
|
|
|
46
46
|
* @returns Whether the value is acceptable, and if not, the first field at fault.
|
|
47
47
|
*/
|
|
48
48
|
export declare function checkConnectorArguments(providerSchema: Record<string, unknown>, value: unknown): ConnectorArgumentsCheck;
|
|
49
|
+
/**
|
|
50
|
+
* `arguments` with every top-level `null` removed where it only meant "not
|
|
51
|
+
* set": the key is an optional property the schema declares, and that
|
|
52
|
+
* property's own schema does not accept `null`.
|
|
53
|
+
*
|
|
54
|
+
* Agents often send `"attachment": null` for an optional field they are not
|
|
55
|
+
* using. The provider schema says nothing about `null` there, so a strict check
|
|
56
|
+
* would refuse the whole call. This runs BEFORE the check and before anything
|
|
57
|
+
* is bound into the authority digest, so the object that is checked, approved,
|
|
58
|
+
* audited and sent is the cleaned one, and the "exactly as sent" rule above
|
|
59
|
+
* still holds for it. A `null` the schema does accept, or one on a required
|
|
60
|
+
* field, is left alone for the check to judge.
|
|
61
|
+
*
|
|
62
|
+
* @param providerSchema - The operation's input schema, as stored; anything but an object removes nothing.
|
|
63
|
+
* @param value - The arguments the agent sent.
|
|
64
|
+
* @returns The same object when nothing was removed, otherwise a copy without those keys.
|
|
65
|
+
*/
|
|
66
|
+
export declare function withoutOptionalNulls(providerSchema: unknown, value: Record<string, unknown>): Record<string, unknown>;
|
|
49
67
|
//# sourceMappingURL=connector-arguments.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-arguments.d.ts","sourceRoot":"","sources":["../src/connector-arguments.ts"],"names":[],"mappings":"AA0EA,+DAA+D;AAC/D,MAAM,MAAM,uBAAuB,GAC/B;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAA;CAAE;AACvB;;;;GAIG;GACD;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;AAChF,qEAAqE;GACnE;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAiCjE;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CACvC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAKzB;AAUD;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CACrC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvC,KAAK,EAAE,OAAO,GACb,uBAAuB,CAmBzB"}
|
|
1
|
+
{"version":3,"file":"connector-arguments.d.ts","sourceRoot":"","sources":["../src/connector-arguments.ts"],"names":[],"mappings":"AA0EA,+DAA+D;AAC/D,MAAM,MAAM,uBAAuB,GAC/B;IAAE,QAAQ,CAAC,EAAE,EAAE,IAAI,CAAA;CAAE;AACvB;;;;GAIG;GACD;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,UAAU,CAAC;IAAC,QAAQ,CAAC,OAAO,CAAC,EAAE,MAAM,CAAA;CAAE;AAChF,qEAAqE;GACnE;IAAE,QAAQ,CAAC,EAAE,EAAE,KAAK,CAAC;IAAC,QAAQ,CAAC,MAAM,EAAE,mBAAmB,CAAA;CAAE,CAAC;AAiCjE;;;;;;;;;;;;;;GAcG;AACH,wBAAgB,yBAAyB,CACvC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GACtC,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAKzB;AAUD;;;;;;;;;;;GAWG;AACH,wBAAgB,uBAAuB,CACrC,cAAc,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,EACvC,KAAK,EAAE,OAAO,GACb,uBAAuB,CAmBzB;AAED;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,oBAAoB,CAClC,cAAc,EAAE,OAAO,EACvB,KAAK,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAC7B,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAoBzB"}
|
|
@@ -158,4 +158,40 @@ export function checkConnectorArguments(providerSchema, value) {
|
|
|
158
158
|
? { ok: true }
|
|
159
159
|
: { ok: false, reason: 'mismatch' };
|
|
160
160
|
}
|
|
161
|
+
/**
|
|
162
|
+
* `arguments` with every top-level `null` removed where it only meant "not
|
|
163
|
+
* set": the key is an optional property the schema declares, and that
|
|
164
|
+
* property's own schema does not accept `null`.
|
|
165
|
+
*
|
|
166
|
+
* Agents often send `"attachment": null` for an optional field they are not
|
|
167
|
+
* using. The provider schema says nothing about `null` there, so a strict check
|
|
168
|
+
* would refuse the whole call. This runs BEFORE the check and before anything
|
|
169
|
+
* is bound into the authority digest, so the object that is checked, approved,
|
|
170
|
+
* audited and sent is the cleaned one, and the "exactly as sent" rule above
|
|
171
|
+
* still holds for it. A `null` the schema does accept, or one on a required
|
|
172
|
+
* field, is left alone for the check to judge.
|
|
173
|
+
*
|
|
174
|
+
* @param providerSchema - The operation's input schema, as stored; anything but an object removes nothing.
|
|
175
|
+
* @param value - The arguments the agent sent.
|
|
176
|
+
* @returns The same object when nothing was removed, otherwise a copy without those keys.
|
|
177
|
+
*/
|
|
178
|
+
export function withoutOptionalNulls(providerSchema, value) {
|
|
179
|
+
if (!isRecord(providerSchema))
|
|
180
|
+
return value;
|
|
181
|
+
const properties = isRecord(providerSchema.properties) ? providerSchema.properties : {};
|
|
182
|
+
const required = new Set(Array.isArray(providerSchema.required) ? providerSchema.required.map(String) : []);
|
|
183
|
+
const removable = Object.keys(value).filter((name) => {
|
|
184
|
+
if (value[name] !== null || required.has(name) || !Object.hasOwn(properties, name)) {
|
|
185
|
+
return false;
|
|
186
|
+
}
|
|
187
|
+
const property = properties[name];
|
|
188
|
+
if (!isRecord(property))
|
|
189
|
+
return false;
|
|
190
|
+
const nullable = checkConnectorArguments({ type: 'object', properties: { [name]: property } }, { [name]: null });
|
|
191
|
+
return !nullable.ok;
|
|
192
|
+
});
|
|
193
|
+
if (removable.length === 0)
|
|
194
|
+
return value;
|
|
195
|
+
return Object.fromEntries(Object.entries(value).filter(([name]) => !removable.includes(name)));
|
|
196
|
+
}
|
|
161
197
|
//# sourceMappingURL=connector-arguments.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"connector-arguments.js","sourceRoot":"","sources":["../src/connector-arguments.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;GA2BG;AACH,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AACxB,OAAO,EAAE,eAAe,EAAE,MAAM,uBAAuB,CAAC;AAExD,0FAA0F;AAC1F,MAAM,kBAAkB,GAAG,GAAG,CAAC;AAE/B,6CAA6C;AAC7C,MAAM,yBAAyB,GAAG;IAChC,iBAAiB;IACjB,sBAAsB;IACtB,UAAU;IACV,MAAM;IACN,IAAI;IACJ,OAAO;IACP,KAAK;IACL,eAAe;IACf,MAAM;IACN,kBAAkB;IAClB,uBAAuB;CACf,CAAC;AAEX,oDAAoD;AACpD,MAAM,uBAAuB,GAAG,CAAC,OAAO,E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,CAAC,QAAQ,CAAC;YAAE,OAAO,KAAK,CAAC;QACtC,MAAM,QAAQ,GAAG,uBAAuB,CACtC,EAAE,IAAI,EAAE,QAAQ,EAAE,UAAU,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE,QAAQ,EAAE,EAAE,EACpD,EAAE,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CACjB,CAAC;QACF,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC;IACtB,CAAC,CAAC,CAAC;IACH,IAAI,SAAS,CAAC,MAAM,KAAK,CAAC;QAAE,OAAO,KAAK,CAAC;IACzC,OAAO,MAAM,CAAC,WAAW,CAAC,MAAM,CAAC,OAAO,CAAC,KAAK,CAAC,CAAC,MAAM,CAAC,CAAC,CAAC,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,SAAS,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACjG,CAAC"}
|
|
@@ -207,8 +207,8 @@ export declare const ConnectionEventDefinitionPageSchema: z.ZodObject<{
|
|
|
207
207
|
*/
|
|
208
208
|
export declare const ConnectionEventDeliveryProblemSchema: z.ZodEnum<{
|
|
209
209
|
cancelled: "cancelled";
|
|
210
|
-
unreachable: "unreachable";
|
|
211
210
|
expired: "expired";
|
|
211
|
+
unreachable: "unreachable";
|
|
212
212
|
refused: "refused";
|
|
213
213
|
changed: "changed";
|
|
214
214
|
unknown_outcome: "unknown_outcome";
|
|
@@ -229,8 +229,8 @@ export declare const ConnectionEventLastDeliverySchema: z.ZodObject<{
|
|
|
229
229
|
receivedAt: z.ZodString;
|
|
230
230
|
problem: z.ZodNullable<z.ZodEnum<{
|
|
231
231
|
cancelled: "cancelled";
|
|
232
|
-
unreachable: "unreachable";
|
|
233
232
|
expired: "expired";
|
|
233
|
+
unreachable: "unreachable";
|
|
234
234
|
refused: "refused";
|
|
235
235
|
changed: "changed";
|
|
236
236
|
unknown_outcome: "unknown_outcome";
|
|
@@ -284,8 +284,8 @@ export declare const ConnectionEventSubscriptionSchema: z.ZodObject<{
|
|
|
284
284
|
receivedAt: z.ZodString;
|
|
285
285
|
problem: z.ZodNullable<z.ZodEnum<{
|
|
286
286
|
cancelled: "cancelled";
|
|
287
|
-
unreachable: "unreachable";
|
|
288
287
|
expired: "expired";
|
|
288
|
+
unreachable: "unreachable";
|
|
289
289
|
refused: "refused";
|
|
290
290
|
changed: "changed";
|
|
291
291
|
unknown_outcome: "unknown_outcome";
|
|
@@ -376,8 +376,8 @@ export declare const ConnectionEventSubscriptionPageSchema: z.ZodObject<{
|
|
|
376
376
|
receivedAt: z.ZodString;
|
|
377
377
|
problem: z.ZodNullable<z.ZodEnum<{
|
|
378
378
|
cancelled: "cancelled";
|
|
379
|
-
unreachable: "unreachable";
|
|
380
379
|
expired: "expired";
|
|
380
|
+
unreachable: "unreachable";
|
|
381
381
|
refused: "refused";
|
|
382
382
|
changed: "changed";
|
|
383
383
|
unknown_outcome: "unknown_outcome";
|