@fourier-labs/harbour-contracts 0.72.0 → 0.73.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.
@@ -2,79 +2,237 @@
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "$id": "https://schemas.harbour.dev/integration-execute-request.schema.json",
4
4
  "title": "IntegrationExecuteRequest",
5
- "description": "Body of POST /_harbour/integrations/execute (app SDK), forwarded unchanged to the governance development and runtime execute routes. Exactly one declared operation against one declared resource. The identity mode is fixed by the operation for every operation but the declared-mode Slack operations (slack.channel.history, slack.message.post, slack.message.update, slack.message.delete; 0.71.0 widened history), and always enforced from an approved grant; any identity/userId/scope field is rejected by additionalProperties. A declared-mode operation runs as the app (for a post: the IT-approved per-app name from the grant, plus a \"Posted by <app> on Isomorph\" footer) or as the signed-in person (no name, no footer) — the same input either way — and since 0.55.0 the call names which of the app's approved modes it runs under (`mode`): required when IT approved both modes for the app (MODE_REQUIRED otherwise), optional when it approved one (that one is used), and a named mode without an approved grant is refused (MODE_NOT_GRANTED) rather than served under the other, so approval order never decides what a call does. Per-operation input bounds (0.71.0, ADR 0018): slack.channel.history {limit? 1..100, default 15, cursor?, oldest?, latest?}; slack.message.post {text 1..4000 chars, threadId?, format? plain|mrkdwn} and a required idempotencyKey retained across retries of one explicit Send; slack.message.update {messageId, text, format?}; slack.message.delete {messageId}; slack.dm.send {to 1..8 addresses, text, format?} (app mode only) with a required idempotencyKey; slack.user.lookup {email}; gmail.thread.list {limit? 1..50, default 15, q?, labelIds? default [INBOX], pageToken?}; gmail.thread.read {threadId}; gmail.message.read {messageId}; gmail.attachment.read {messageId, attachmentId}; gmail.message.send {to 1..50 addresses (to+cc+bcc <= 50 in total), cc?, bcc?, subject 1..256 chars, text 1..4000 chars, html? <= 64 KiB, attachments? 1..5 of <= 2 MiB each as base64, replyToMessageId?} and a required idempotencyKey like slack.message.post; warehouse.view.read {columns? 1..32, where? 1..16 filters, groupBy? 1..8 columns, aggregates? 1..16, orderBy? 1..8, limit? 1..1000, default 100} (0.70.0: a plain read names columns, an aggregate read names aggregates and optionally groupBy; the cross-field rules — exactly one of columns or aggregates, groupBy needs aggregates, a filter value that fits its op, orderBy naming a returned column, every named column approved — are enforced by governance, not expressible here; ADR 0017). Each operation's then-block is the one statement of its input rules: propertyNames.enum names the fields it accepts, required the ones it needs, and per-field overrides (maximum, default) narrow the shared property. Codegen derives IntegrationExecuteInputRules and validateIntegrationExecuteInput (gen-ts/integration-execute-input-rules.ts, gen-go/integration_execute_input_rules.go) from exactly these blocks, so the governance execute route, the app SDK and the kit's local check refuse the same request with the same message. Transport limits (not expressible here): request <= 16 KiB except a gmail.message.send carrying attachments (governance sizes that route for the attachment bound), total deadline 10 s.",
5
+ "description": "Body of POST /_harbour/integrations/execute (app SDK), forwarded unchanged to the governance development and runtime execute routes. Exactly one declared operation against one declared resource. The identity mode is fixed by the operation for every operation but the declared-mode Slack operations (slack.channel.history, slack.message.post, slack.message.update, slack.message.delete; 0.71.0 widened history), and always enforced from an approved grant; any identity/userId/scope field is rejected by additionalProperties. A declared-mode operation runs as the app (for a post: the IT-approved per-app name from the grant, plus a \"Posted by <app> on Isomorph\" footer) or as the signed-in person (no name, no footer) \u2014 the same input either way \u2014 and since 0.55.0 the call names which of the app's approved modes it runs under (`mode`): required when IT approved both modes for the app (MODE_REQUIRED otherwise), optional when it approved one (that one is used), and a named mode without an approved grant is refused (MODE_NOT_GRANTED) rather than served under the other, so approval order never decides what a call does. Per-operation input bounds (0.71.0, ADR 0018): slack.channel.history {limit? 1..100, default 15, cursor?, oldest?, latest?}; slack.message.post {text 1..4000 chars, threadId?, format? plain|mrkdwn} and a required idempotencyKey retained across retries of one explicit Send; slack.message.update {messageId, text, format?}; slack.message.delete {messageId}; slack.dm.send {to 1..8 addresses, text, format?} (app mode only) with a required idempotencyKey; slack.user.lookup {email}; gmail.thread.list {limit? 1..50, default 15, q?, labelIds? default [INBOX], pageToken?}; gmail.thread.read {threadId}; gmail.message.read {messageId}; gmail.attachment.read {messageId, attachmentId}; gmail.message.send {to 1..50 addresses (to+cc+bcc <= 50 in total), cc?, bcc?, subject 1..256 chars, text 1..4000 chars, html? <= 64 KiB, attachments? 1..5 of <= 2 MiB each as base64, replyToMessageId?} and a required idempotencyKey like slack.message.post; warehouse.view.read {columns? 1..32, where? 1..16 filters, groupBy? 1..8 columns, aggregates? 1..16, orderBy? 1..8, limit? 1..1000, default 100} (0.70.0: a plain read names columns, an aggregate read names aggregates and optionally groupBy; the cross-field rules \u2014 exactly one of columns or aggregates, groupBy needs aggregates, a filter value that fits its op, orderBy naming a returned column, every named column approved \u2014 are enforced by governance, not expressible here; ADR 0017). Each operation's then-block is the one statement of its input rules: propertyNames.enum names the fields it accepts, required the ones it needs, and per-field overrides (maximum, default) narrow the shared property. Codegen derives IntegrationExecuteInputRules and validateIntegrationExecuteInput (gen-ts/integration-execute-input-rules.ts, gen-go/integration_execute_input_rules.go) from exactly these blocks, so the governance execute route, the app SDK and the kit's local check refuse the same request with the same message. Transport limits (not expressible here): request <= 16 KiB except a gmail.message.send carrying attachments (governance sizes that route for the attachment bound), total deadline 10 s.",
6
6
  "type": "object",
7
7
  "additionalProperties": false,
8
- "required": ["connection", "operation", "resource", "input"],
8
+ "required": [
9
+ "connection",
10
+ "operation",
11
+ "input"
12
+ ],
9
13
  "properties": {
10
- "connection": { "$ref": "app-integrations-declaration.schema.json#/definitions/IntegrationAlias" },
11
- "operation": { "$ref": "app-integrations-declaration.schema.json#/definitions/IntegrationOperation" },
12
- "resource": { "$ref": "app-integrations-declaration.schema.json#/definitions/IntegrationAlias" },
14
+ "connection": {
15
+ "$ref": "app-integrations-declaration.schema.json#/definitions/IntegrationAlias"
16
+ },
17
+ "operation": {
18
+ "$ref": "app-integrations-declaration.schema.json#/definitions/IntegrationOperation"
19
+ },
20
+ "resource": {
21
+ "$ref": "app-integrations-declaration.schema.json#/definitions/IntegrationAlias"
22
+ },
13
23
  "input": {
14
24
  "type": "object",
15
25
  "additionalProperties": false,
16
26
  "properties": {
17
- "limit": { "type": "integer", "minimum": 1, "maximum": 1000, "description": "Read operations: how many items to return; the per-operation then-block sets the real ceiling (100 for slack.channel.history, 50 for gmail.thread.list, 1000 for warehouse.view.read) and the default." },
18
- "text": { "type": "string", "minLength": 1, "maxLength": 4000, "description": "slack.message.post / slack.message.update / slack.dm.send / gmail.message.send: the body, 1..4000 characters (plain text, or Slack mrkdwn when `format` says so)." },
19
- "format": { "$ref": "#/definitions/SlackMessageFormat", "description": "slack.message.post / slack.message.update / slack.dm.send (0.71.0): how Slack renders `text`; plain when absent." },
20
- "threadId": { "type": "string", "pattern": "^[A-Za-z0-9._-]{1,64}$", "description": "slack.message.post (0.71.0): the Slack message ts (a slack.channel.history message id) the post replies to, so it lands in that thread. gmail.thread.read: the Gmail thread id a gmail.thread.list result named." },
21
- "messageId": { "type": "string", "pattern": "^[A-Za-z0-9._-]{1,64}$", "description": "gmail.message.read / gmail.attachment.read: the Gmail message id a gmail.thread.list or gmail.thread.read result named. slack.message.update / slack.message.delete (0.71.0): the Slack message ts a post or history result named." },
22
- "attachmentId": { "type": "string", "minLength": 1, "maxLength": 512, "description": "gmail.attachment.read (0.71.0): the attachment id a gmail.message.read or gmail.thread.read result named." },
23
- "cursor": { "type": "string", "minLength": 1, "maxLength": 256, "description": "slack.channel.history (0.71.0): the `nextCursor` of the previous page; absent reads the newest page." },
24
- "oldest": { "type": "string", "minLength": 1, "maxLength": 64, "description": "slack.channel.history (0.71.0): only messages after this Slack ts." },
25
- "latest": { "type": "string", "minLength": 1, "maxLength": 64, "description": "slack.channel.history (0.71.0): only messages before this Slack ts." },
26
- "q": { "type": "string", "minLength": 1, "maxLength": 256, "description": "gmail.thread.list (0.71.0): a Gmail search query (the search-box syntax, e.g. `from:jane newer_than:7d`)." },
27
- "labelIds": { "type": "array", "minItems": 1, "maxItems": 5, "uniqueItems": true, "items": { "type": "string", "minLength": 1, "maxLength": 64 }, "default": ["INBOX"], "description": "gmail.thread.list (0.71.0): the Gmail labels a thread must carry (all of them); INBOX when absent." },
28
- "pageToken": { "type": "string", "minLength": 1, "maxLength": 256, "description": "gmail.thread.list (0.71.0): the `nextPageToken` of the previous page; absent reads the first page." },
29
- "email": { "$ref": "#/definitions/EmailAddress", "description": "slack.user.lookup (0.71.0): the workspace member's email address to resolve to a Slack user id." },
30
- "to": { "$ref": "#/definitions/EmailAddressList", "description": "gmail.message.send: primary recipients. slack.dm.send (0.71.0): the workspace members to message, by email, 1..8; several open one group DM." },
31
- "cc": { "$ref": "#/definitions/EmailAddressList", "description": "gmail.message.send: carbon-copy recipients." },
32
- "bcc": { "$ref": "#/definitions/EmailAddressList", "description": "gmail.message.send: blind-copy recipients." },
33
- "subject": { "type": "string", "minLength": 1, "maxLength": 256, "description": "gmail.message.send: one-line subject (no line breaks)." },
34
- "replyToMessageId": { "type": "string", "pattern": "^[A-Za-z0-9_-]{1,64}$", "description": "gmail.message.send: a Gmail message id (from gmail.thread.list / gmail.message.read) the email replies to; the send joins that thread." },
35
- "html": { "type": "string", "minLength": 1, "maxLength": 65536, "description": "gmail.message.send (0.71.0): an HTML body sent beside `text` (which stays the plain-text alternative), at most 64 KiB." },
27
+ "limit": {
28
+ "type": "integer",
29
+ "minimum": 1,
30
+ "maximum": 1000,
31
+ "description": "Read operations: how many items to return; the per-operation then-block sets the real ceiling (100 for slack.channel.history, 50 for gmail.thread.list, 1000 for warehouse.view.read) and the default."
32
+ },
33
+ "text": {
34
+ "type": "string",
35
+ "minLength": 1,
36
+ "maxLength": 4000,
37
+ "description": "slack.message.post / slack.message.update / slack.dm.send / gmail.message.send: the body, 1..4000 characters (plain text, or Slack mrkdwn when `format` says so)."
38
+ },
39
+ "format": {
40
+ "$ref": "#/definitions/SlackMessageFormat",
41
+ "description": "slack.message.post / slack.message.update / slack.dm.send (0.71.0): how Slack renders `text`; plain when absent."
42
+ },
43
+ "threadId": {
44
+ "type": "string",
45
+ "pattern": "^[A-Za-z0-9._-]{1,64}$",
46
+ "description": "slack.message.post (0.71.0): the Slack message ts (a slack.channel.history message id) the post replies to, so it lands in that thread. gmail.thread.read: the Gmail thread id a gmail.thread.list result named."
47
+ },
48
+ "messageId": {
49
+ "type": "string",
50
+ "pattern": "^[A-Za-z0-9._-]{1,64}$",
51
+ "description": "gmail.message.read / gmail.attachment.read: the Gmail message id a gmail.thread.list or gmail.thread.read result named. slack.message.update / slack.message.delete (0.71.0): the Slack message ts a post or history result named."
52
+ },
53
+ "attachmentId": {
54
+ "type": "string",
55
+ "minLength": 1,
56
+ "maxLength": 512,
57
+ "description": "gmail.attachment.read (0.71.0): the attachment id a gmail.message.read or gmail.thread.read result named."
58
+ },
59
+ "cursor": {
60
+ "type": "string",
61
+ "minLength": 1,
62
+ "maxLength": 256,
63
+ "description": "slack.channel.history (0.71.0): the `nextCursor` of the previous page; absent reads the newest page."
64
+ },
65
+ "oldest": {
66
+ "type": "string",
67
+ "minLength": 1,
68
+ "maxLength": 64,
69
+ "description": "slack.channel.history (0.71.0): only messages after this Slack ts."
70
+ },
71
+ "latest": {
72
+ "type": "string",
73
+ "minLength": 1,
74
+ "maxLength": 64,
75
+ "description": "slack.channel.history (0.71.0): only messages before this Slack ts."
76
+ },
77
+ "q": {
78
+ "type": "string",
79
+ "minLength": 1,
80
+ "maxLength": 256,
81
+ "description": "gmail.thread.list (0.71.0): a Gmail search query (the search-box syntax, e.g. `from:jane newer_than:7d`)."
82
+ },
83
+ "labelIds": {
84
+ "type": "array",
85
+ "minItems": 1,
86
+ "maxItems": 5,
87
+ "uniqueItems": true,
88
+ "items": {
89
+ "type": "string",
90
+ "minLength": 1,
91
+ "maxLength": 64
92
+ },
93
+ "default": [
94
+ "INBOX"
95
+ ],
96
+ "description": "gmail.thread.list (0.71.0): the Gmail labels a thread must carry (all of them); INBOX when absent."
97
+ },
98
+ "pageToken": {
99
+ "type": "string",
100
+ "minLength": 1,
101
+ "maxLength": 256,
102
+ "description": "gmail.thread.list (0.71.0): the `nextPageToken` of the previous page; absent reads the first page."
103
+ },
104
+ "email": {
105
+ "$ref": "#/definitions/EmailAddress",
106
+ "description": "slack.user.lookup (0.71.0): the workspace member's email address to resolve to a Slack user id."
107
+ },
108
+ "to": {
109
+ "$ref": "#/definitions/EmailAddressList",
110
+ "description": "gmail.message.send: primary recipients. slack.dm.send (0.71.0): the workspace members to message, by email, 1..8; several open one group DM."
111
+ },
112
+ "cc": {
113
+ "$ref": "#/definitions/EmailAddressList",
114
+ "description": "gmail.message.send: carbon-copy recipients."
115
+ },
116
+ "bcc": {
117
+ "$ref": "#/definitions/EmailAddressList",
118
+ "description": "gmail.message.send: blind-copy recipients."
119
+ },
120
+ "subject": {
121
+ "type": "string",
122
+ "minLength": 1,
123
+ "maxLength": 256,
124
+ "description": "gmail.message.send: one-line subject (no line breaks)."
125
+ },
126
+ "replyToMessageId": {
127
+ "type": "string",
128
+ "pattern": "^[A-Za-z0-9_-]{1,64}$",
129
+ "description": "gmail.message.send: a Gmail message id (from gmail.thread.list / gmail.message.read) the email replies to; the send joins that thread."
130
+ },
131
+ "html": {
132
+ "type": "string",
133
+ "minLength": 1,
134
+ "maxLength": 65536,
135
+ "description": "gmail.message.send (0.71.0): an HTML body sent beside `text` (which stays the plain-text alternative), at most 64 KiB."
136
+ },
36
137
  "attachments": {
37
138
  "type": "array",
38
139
  "minItems": 1,
39
140
  "maxItems": 5,
40
- "items": { "$ref": "#/definitions/EmailAttachment" },
141
+ "items": {
142
+ "$ref": "#/definitions/EmailAttachment"
143
+ },
41
144
  "description": "gmail.message.send (0.71.0): files to attach, 1..5, each at most 2 MiB (2,796,203 base64 characters)."
42
145
  },
43
146
  "columns": {
44
147
  "type": "array",
45
148
  "minItems": 1,
46
149
  "maxItems": 32,
47
- "items": { "$ref": "app-integrations-declaration.schema.json#/definitions/ColumnName" },
48
- "not": { "allOf": [{ "contains": { "const": "*" } }, { "minItems": 2 }] },
150
+ "items": {
151
+ "$ref": "app-integrations-declaration.schema.json#/definitions/ColumnName"
152
+ },
153
+ "not": {
154
+ "allOf": [
155
+ {
156
+ "contains": {
157
+ "const": "*"
158
+ }
159
+ },
160
+ {
161
+ "minItems": 2
162
+ }
163
+ ]
164
+ },
49
165
  "description": "warehouse.view.read, a plain read: explicit columns, or `*` alone when the app's approved resource grant allows all current and future columns. An aggregate read names aggregates instead."
50
166
  },
51
167
  "where": {
52
168
  "type": "array",
53
169
  "minItems": 1,
54
170
  "maxItems": 16,
55
- "items": { "$ref": "#/definitions/WarehouseFilter" },
171
+ "items": {
172
+ "$ref": "#/definitions/WarehouseFilter"
173
+ },
56
174
  "description": "warehouse.view.read (0.70.0): filters the warehouse applies before it returns, grouping or limits rows. All of them must hold (AND); there is no OR and no LIKE."
57
175
  },
58
176
  "groupBy": {
59
177
  "type": "array",
60
178
  "minItems": 1,
61
179
  "maxItems": 8,
62
- "items": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,62}$" },
180
+ "items": {
181
+ "type": "string",
182
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,62}$"
183
+ },
63
184
  "description": "warehouse.view.read (0.70.0): columns (never `*`) that group the rows; needs aggregates. Each returned row is one group: its groupBy columns, then its aggregate aliases."
64
185
  },
65
186
  "aggregates": {
66
187
  "type": "array",
67
188
  "minItems": 1,
68
189
  "maxItems": 16,
69
- "items": { "$ref": "#/definitions/WarehouseAggregate" },
190
+ "items": {
191
+ "$ref": "#/definitions/WarehouseAggregate"
192
+ },
70
193
  "description": "warehouse.view.read (0.70.0): what an aggregate read computes, over each group or over every matching row when there is no groupBy."
71
194
  },
72
195
  "orderBy": {
73
196
  "type": "array",
74
197
  "minItems": 1,
75
198
  "maxItems": 8,
76
- "items": { "$ref": "#/definitions/WarehouseOrder" },
199
+ "items": {
200
+ "$ref": "#/definitions/WarehouseOrder"
201
+ },
77
202
  "description": "warehouse.view.read (0.70.0): sort keys, first key first. Without orderBy an aggregate read is sorted by its groupBy columns and a plain read is not sorted at all."
203
+ },
204
+ "method": {
205
+ "type": "string",
206
+ "enum": [
207
+ "GET",
208
+ "POST",
209
+ "PUT",
210
+ "PATCH",
211
+ "DELETE",
212
+ "HEAD",
213
+ "OPTIONS"
214
+ ]
215
+ },
216
+ "path": {
217
+ "type": "string",
218
+ "minLength": 0,
219
+ "maxLength": 16384
220
+ },
221
+ "pathParams": {
222
+ "type": "object",
223
+ "additionalProperties": true
224
+ },
225
+ "query": {
226
+ "type": "object",
227
+ "additionalProperties": true
228
+ },
229
+ "headers": {
230
+ "type": "object",
231
+ "additionalProperties": true
232
+ },
233
+ "body": {
234
+ "type": "object",
235
+ "additionalProperties": true
78
236
  }
79
237
  }
80
238
  },
@@ -85,241 +243,699 @@
85
243
  },
86
244
  "mode": {
87
245
  "$ref": "app-integrations-declaration.schema.json#/definitions/IntegrationIdentityMode",
88
- "description": "The declared-mode Slack operations only (slack.message.post since 0.55.0; slack.channel.history, slack.message.update and slack.message.delete since 0.71.0): which of the app's IT-approved modes this call runs under — app (the company's Slack app; a post goes out under the grant's per-app name and the footer) or user (the signed-in person, after their consent; no name, no footer). Required when the app holds approved grants for both modes (else MODE_REQUIRED); may be omitted when it holds one, which is then used. A named mode without an approved grant is refused with MODE_NOT_GRANTED; governance never falls back to the other mode. Every other operation's mode is fixed, so the field is refused there."
246
+ "description": "The declared-mode Slack operations only (slack.message.post since 0.55.0; slack.channel.history, slack.message.update and slack.message.delete since 0.71.0): which of the app's IT-approved modes this call runs under \u2014 app (the company's Slack app; a post goes out under the grant's per-app name and the footer) or user (the signed-in person, after their consent; no name, no footer). Required when the app holds approved grants for both modes (else MODE_REQUIRED); may be omitted when it holds one, which is then used. A named mode without an approved grant is refused with MODE_NOT_GRANTED; governance never falls back to the other mode. Every other operation's mode is fixed, so the field is refused there."
89
247
  }
90
248
  },
91
249
  "allOf": [
92
250
  {
93
- "if": { "properties": { "operation": { "const": "slack.channel.history" } } },
251
+ "if": {
252
+ "properties": {
253
+ "operation": {
254
+ "const": "slack.channel.history"
255
+ }
256
+ }
257
+ },
94
258
  "then": {
95
259
  "x-read-only": true,
96
260
  "x-primary-identity": "user",
97
- "not": { "required": ["idempotencyKey"] },
261
+ "not": {
262
+ "required": [
263
+ "idempotencyKey"
264
+ ]
265
+ },
98
266
  "properties": {
99
- "input": { "propertyNames": { "enum": ["limit", "cursor", "oldest", "latest"] }, "properties": { "limit": { "maximum": 100, "default": 15 } } }
267
+ "input": {
268
+ "propertyNames": {
269
+ "enum": [
270
+ "limit",
271
+ "cursor",
272
+ "oldest",
273
+ "latest"
274
+ ]
275
+ },
276
+ "properties": {
277
+ "limit": {
278
+ "maximum": 100,
279
+ "default": 15
280
+ }
281
+ }
282
+ }
100
283
  }
101
284
  }
102
285
  },
103
286
  {
104
- "if": { "properties": { "operation": { "const": "slack.message.post" } } },
287
+ "if": {
288
+ "properties": {
289
+ "operation": {
290
+ "const": "slack.message.post"
291
+ }
292
+ }
293
+ },
105
294
  "then": {
106
295
  "x-read-only": false,
107
- "required": ["idempotencyKey"],
296
+ "required": [
297
+ "idempotencyKey"
298
+ ],
108
299
  "properties": {
109
- "input": { "propertyNames": { "enum": ["text", "threadId", "format"] }, "required": ["text"] }
300
+ "input": {
301
+ "propertyNames": {
302
+ "enum": [
303
+ "text",
304
+ "threadId",
305
+ "format"
306
+ ]
307
+ },
308
+ "required": [
309
+ "text"
310
+ ]
311
+ }
110
312
  }
111
313
  }
112
314
  },
113
315
  {
114
- "if": { "properties": { "operation": { "const": "slack.message.update" } } },
316
+ "if": {
317
+ "properties": {
318
+ "operation": {
319
+ "const": "slack.message.update"
320
+ }
321
+ }
322
+ },
115
323
  "then": {
116
324
  "x-read-only": false,
117
- "not": { "required": ["idempotencyKey"] },
325
+ "not": {
326
+ "required": [
327
+ "idempotencyKey"
328
+ ]
329
+ },
118
330
  "properties": {
119
- "input": { "propertyNames": { "enum": ["messageId", "text", "format"] }, "required": ["messageId", "text"] }
331
+ "input": {
332
+ "propertyNames": {
333
+ "enum": [
334
+ "messageId",
335
+ "text",
336
+ "format"
337
+ ]
338
+ },
339
+ "required": [
340
+ "messageId",
341
+ "text"
342
+ ]
343
+ }
120
344
  }
121
345
  }
122
346
  },
123
347
  {
124
- "if": { "properties": { "operation": { "const": "slack.message.delete" } } },
348
+ "if": {
349
+ "properties": {
350
+ "operation": {
351
+ "const": "slack.message.delete"
352
+ }
353
+ }
354
+ },
125
355
  "then": {
126
356
  "x-read-only": false,
127
- "not": { "required": ["idempotencyKey"] },
357
+ "not": {
358
+ "required": [
359
+ "idempotencyKey"
360
+ ]
361
+ },
128
362
  "properties": {
129
- "input": { "propertyNames": { "enum": ["messageId"] }, "required": ["messageId"] }
363
+ "input": {
364
+ "propertyNames": {
365
+ "enum": [
366
+ "messageId"
367
+ ]
368
+ },
369
+ "required": [
370
+ "messageId"
371
+ ]
372
+ }
130
373
  }
131
374
  }
132
375
  },
133
376
  {
134
- "if": { "properties": { "operation": { "const": "slack.dm.send" } } },
377
+ "if": {
378
+ "properties": {
379
+ "operation": {
380
+ "const": "slack.dm.send"
381
+ }
382
+ }
383
+ },
135
384
  "then": {
136
385
  "x-read-only": false,
137
- "required": ["idempotencyKey"],
386
+ "required": [
387
+ "idempotencyKey"
388
+ ],
138
389
  "properties": {
139
390
  "mode": false,
140
- "input": { "propertyNames": { "enum": ["to", "text", "format"] }, "required": ["to", "text"], "properties": { "to": { "maxItems": 8 } } }
391
+ "input": {
392
+ "propertyNames": {
393
+ "enum": [
394
+ "to",
395
+ "text",
396
+ "format"
397
+ ]
398
+ },
399
+ "required": [
400
+ "to",
401
+ "text"
402
+ ],
403
+ "properties": {
404
+ "to": {
405
+ "maxItems": 8
406
+ }
407
+ }
408
+ }
141
409
  }
142
410
  }
143
411
  },
144
412
  {
145
- "if": { "properties": { "operation": { "const": "slack.user.lookup" } } },
413
+ "if": {
414
+ "properties": {
415
+ "operation": {
416
+ "const": "slack.user.lookup"
417
+ }
418
+ }
419
+ },
146
420
  "then": {
147
421
  "x-read-only": true,
148
- "not": { "required": ["idempotencyKey"] },
422
+ "not": {
423
+ "required": [
424
+ "idempotencyKey"
425
+ ]
426
+ },
149
427
  "properties": {
150
428
  "mode": false,
151
- "input": { "propertyNames": { "enum": ["email"] }, "required": ["email"] }
429
+ "input": {
430
+ "propertyNames": {
431
+ "enum": [
432
+ "email"
433
+ ]
434
+ },
435
+ "required": [
436
+ "email"
437
+ ]
438
+ }
152
439
  }
153
440
  }
154
441
  },
155
442
  {
156
- "if": { "properties": { "operation": { "const": "warehouse.view.read" } } },
443
+ "if": {
444
+ "properties": {
445
+ "operation": {
446
+ "const": "warehouse.view.read"
447
+ }
448
+ }
449
+ },
157
450
  "then": {
158
451
  "x-read-only": true,
159
- "not": { "required": ["idempotencyKey"] },
452
+ "not": {
453
+ "required": [
454
+ "idempotencyKey"
455
+ ]
456
+ },
160
457
  "properties": {
161
458
  "mode": false,
162
- "input": { "propertyNames": { "enum": ["columns", "where", "groupBy", "aggregates", "orderBy", "limit"] }, "properties": { "limit": { "maximum": 1000, "default": 100 } } }
459
+ "input": {
460
+ "propertyNames": {
461
+ "enum": [
462
+ "columns",
463
+ "where",
464
+ "groupBy",
465
+ "aggregates",
466
+ "orderBy",
467
+ "limit"
468
+ ]
469
+ },
470
+ "properties": {
471
+ "limit": {
472
+ "maximum": 1000,
473
+ "default": 100
474
+ }
475
+ }
476
+ }
163
477
  }
164
478
  }
165
479
  },
166
480
  {
167
- "if": { "properties": { "operation": { "const": "gmail.thread.list" } } },
481
+ "if": {
482
+ "properties": {
483
+ "operation": {
484
+ "const": "gmail.thread.list"
485
+ }
486
+ }
487
+ },
168
488
  "then": {
169
489
  "x-read-only": true,
170
- "not": { "required": ["idempotencyKey"] },
490
+ "not": {
491
+ "required": [
492
+ "idempotencyKey"
493
+ ]
494
+ },
171
495
  "properties": {
172
496
  "mode": false,
173
- "input": { "propertyNames": { "enum": ["limit", "q", "labelIds", "pageToken"] }, "properties": { "limit": { "maximum": 50, "default": 15 } } }
497
+ "input": {
498
+ "propertyNames": {
499
+ "enum": [
500
+ "limit",
501
+ "q",
502
+ "labelIds",
503
+ "pageToken"
504
+ ]
505
+ },
506
+ "properties": {
507
+ "limit": {
508
+ "maximum": 50,
509
+ "default": 15
510
+ }
511
+ }
512
+ }
174
513
  }
175
514
  }
176
515
  },
177
516
  {
178
- "if": { "properties": { "operation": { "const": "gmail.thread.read" } } },
517
+ "if": {
518
+ "properties": {
519
+ "operation": {
520
+ "const": "gmail.thread.read"
521
+ }
522
+ }
523
+ },
179
524
  "then": {
180
525
  "x-read-only": true,
181
- "not": { "required": ["idempotencyKey"] },
526
+ "not": {
527
+ "required": [
528
+ "idempotencyKey"
529
+ ]
530
+ },
182
531
  "properties": {
183
532
  "mode": false,
184
- "input": { "propertyNames": { "enum": ["threadId"] }, "required": ["threadId"] }
533
+ "input": {
534
+ "propertyNames": {
535
+ "enum": [
536
+ "threadId"
537
+ ]
538
+ },
539
+ "required": [
540
+ "threadId"
541
+ ]
542
+ }
185
543
  }
186
544
  }
187
545
  },
188
546
  {
189
- "if": { "properties": { "operation": { "const": "gmail.message.read" } } },
547
+ "if": {
548
+ "properties": {
549
+ "operation": {
550
+ "const": "gmail.message.read"
551
+ }
552
+ }
553
+ },
190
554
  "then": {
191
555
  "x-read-only": true,
192
- "not": { "required": ["idempotencyKey"] },
556
+ "not": {
557
+ "required": [
558
+ "idempotencyKey"
559
+ ]
560
+ },
193
561
  "properties": {
194
562
  "mode": false,
195
- "input": { "propertyNames": { "enum": ["messageId"] }, "required": ["messageId"] }
563
+ "input": {
564
+ "propertyNames": {
565
+ "enum": [
566
+ "messageId"
567
+ ]
568
+ },
569
+ "required": [
570
+ "messageId"
571
+ ]
572
+ }
196
573
  }
197
574
  }
198
575
  },
199
576
  {
200
- "if": { "properties": { "operation": { "const": "gmail.attachment.read" } } },
577
+ "if": {
578
+ "properties": {
579
+ "operation": {
580
+ "const": "gmail.attachment.read"
581
+ }
582
+ }
583
+ },
201
584
  "then": {
202
585
  "x-read-only": true,
203
- "not": { "required": ["idempotencyKey"] },
586
+ "not": {
587
+ "required": [
588
+ "idempotencyKey"
589
+ ]
590
+ },
591
+ "properties": {
592
+ "mode": false,
593
+ "input": {
594
+ "propertyNames": {
595
+ "enum": [
596
+ "messageId",
597
+ "attachmentId"
598
+ ]
599
+ },
600
+ "required": [
601
+ "messageId",
602
+ "attachmentId"
603
+ ]
604
+ }
605
+ }
606
+ }
607
+ },
608
+ {
609
+ "if": {
610
+ "properties": {
611
+ "operation": {
612
+ "const": "gmail.message.send"
613
+ }
614
+ }
615
+ },
616
+ "then": {
617
+ "x-read-only": false,
618
+ "required": [
619
+ "idempotencyKey"
620
+ ],
204
621
  "properties": {
205
622
  "mode": false,
206
- "input": { "propertyNames": { "enum": ["messageId", "attachmentId"] }, "required": ["messageId", "attachmentId"] }
623
+ "input": {
624
+ "propertyNames": {
625
+ "enum": [
626
+ "to",
627
+ "cc",
628
+ "bcc",
629
+ "subject",
630
+ "text",
631
+ "html",
632
+ "attachments",
633
+ "replyToMessageId"
634
+ ]
635
+ },
636
+ "required": [
637
+ "to",
638
+ "subject",
639
+ "text"
640
+ ]
641
+ }
207
642
  }
208
643
  }
209
644
  },
210
645
  {
211
- "if": { "properties": { "operation": { "const": "gmail.message.send" } } },
646
+ "if": {
647
+ "properties": {
648
+ "operation": {
649
+ "const": "service.request"
650
+ }
651
+ }
652
+ },
212
653
  "then": {
213
654
  "x-read-only": false,
214
- "required": ["idempotencyKey"],
215
655
  "properties": {
216
656
  "mode": false,
217
- "input": { "propertyNames": { "enum": ["to", "cc", "bcc", "subject", "text", "html", "attachments", "replyToMessageId"] }, "required": ["to", "subject", "text"] }
657
+ "resource": false,
658
+ "input": {
659
+ "propertyNames": {
660
+ "enum": [
661
+ "method",
662
+ "path",
663
+ "pathParams",
664
+ "query",
665
+ "headers",
666
+ "body"
667
+ ]
668
+ },
669
+ "required": [
670
+ "method",
671
+ "path"
672
+ ]
673
+ }
674
+ },
675
+ "not": {
676
+ "required": [
677
+ "idempotencyKey"
678
+ ]
218
679
  }
680
+ },
681
+ "else": {
682
+ "required": [
683
+ "resource"
684
+ ]
219
685
  }
220
686
  }
221
687
  ],
222
688
  "definitions": {
223
- "EmailAddress": { "type": "string", "minLength": 3, "maxLength": 254, "pattern": "^[^\\s@<>,;\"]+@[^\\s@<>,;\"]+\\.[^\\s@<>,;\"]+$", "description": "One bare email address (no display name)." },
224
- "EmailAddressList": { "type": "array", "minItems": 1, "maxItems": 50, "uniqueItems": true, "items": { "$ref": "#/definitions/EmailAddress" } },
689
+ "EmailAddress": {
690
+ "type": "string",
691
+ "minLength": 3,
692
+ "maxLength": 254,
693
+ "pattern": "^[^\\s@<>,;\"]+@[^\\s@<>,;\"]+\\.[^\\s@<>,;\"]+$",
694
+ "description": "One bare email address (no display name)."
695
+ },
696
+ "EmailAddressList": {
697
+ "type": "array",
698
+ "minItems": 1,
699
+ "maxItems": 50,
700
+ "uniqueItems": true,
701
+ "items": {
702
+ "$ref": "#/definitions/EmailAddress"
703
+ }
704
+ },
225
705
  "SlackMessageFormat": {
226
706
  "type": "string",
227
- "enum": ["plain", "mrkdwn"],
707
+ "enum": [
708
+ "plain",
709
+ "mrkdwn"
710
+ ],
228
711
  "default": "plain",
229
712
  "description": "How Slack renders a message body (0.71.0): plain posts the text verbatim; mrkdwn lets Slack interpret its markup (*bold*, links, lists)."
230
713
  },
231
714
  "EmailAttachment": {
232
715
  "type": "object",
233
716
  "additionalProperties": false,
234
- "required": ["filename", "contentType", "dataBase64"],
717
+ "required": [
718
+ "filename",
719
+ "contentType",
720
+ "dataBase64"
721
+ ],
235
722
  "description": "One file attached to a gmail.message.send (0.71.0), carried inline as base64. At most 2 MiB of bytes, which is 2,796,203 base64 characters.",
236
723
  "properties": {
237
- "filename": { "type": "string", "minLength": 1, "maxLength": 255, "description": "The name the recipient sees." },
238
- "contentType": { "type": "string", "minLength": 1, "maxLength": 128, "description": "The MIME type, e.g. application/pdf." },
239
- "dataBase64": { "type": "string", "minLength": 1, "maxLength": 2796203, "description": "The file bytes, standard base64." }
724
+ "filename": {
725
+ "type": "string",
726
+ "minLength": 1,
727
+ "maxLength": 255,
728
+ "description": "The name the recipient sees."
729
+ },
730
+ "contentType": {
731
+ "type": "string",
732
+ "minLength": 1,
733
+ "maxLength": 128,
734
+ "description": "The MIME type, e.g. application/pdf."
735
+ },
736
+ "dataBase64": {
737
+ "type": "string",
738
+ "minLength": 1,
739
+ "maxLength": 2796203,
740
+ "description": "The file bytes, standard base64."
741
+ }
240
742
  }
241
743
  },
242
744
  "WarehouseFilter": {
243
745
  "type": "object",
244
746
  "additionalProperties": false,
245
- "required": ["column", "op"],
747
+ "required": [
748
+ "column",
749
+ "op"
750
+ ],
246
751
  "description": "One warehouse.view.read filter (0.70.0): <column> <op> <value>. The value is always bound as a query parameter, never written into the SQL. Which value an op takes is a governance rule: isNull/isNotNull take none; in/notIn take a non-empty list of one scalar type; every other op takes one scalar, and a boolean only with eq/ne.",
247
752
  "properties": {
248
- "column": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,62}$", "description": "The filtered column; never `*`." },
249
- "op": { "$ref": "#/definitions/WarehouseFilterOp" },
753
+ "column": {
754
+ "type": "string",
755
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,62}$",
756
+ "description": "The filtered column; never `*`."
757
+ },
758
+ "op": {
759
+ "$ref": "#/definitions/WarehouseFilterOp"
760
+ },
250
761
  "value": {
251
762
  "description": "The value compared with: a string (a date or timestamp is its ISO string), a number, a boolean, or a list of strings or numbers for in/notIn. Never null; use isNull or isNotNull.",
252
763
  "oneOf": [
253
- { "type": "string", "maxLength": 256 },
254
- { "type": "number" },
255
- { "type": "boolean" },
256
- { "type": "array", "minItems": 1, "maxItems": 100, "items": { "oneOf": [{ "type": "string", "maxLength": 256 }, { "type": "number" }] } }
764
+ {
765
+ "type": "string",
766
+ "maxLength": 256
767
+ },
768
+ {
769
+ "type": "number"
770
+ },
771
+ {
772
+ "type": "boolean"
773
+ },
774
+ {
775
+ "type": "array",
776
+ "minItems": 1,
777
+ "maxItems": 100,
778
+ "items": {
779
+ "oneOf": [
780
+ {
781
+ "type": "string",
782
+ "maxLength": 256
783
+ },
784
+ {
785
+ "type": "number"
786
+ }
787
+ ]
788
+ }
789
+ }
257
790
  ]
258
791
  }
259
792
  }
260
793
  },
261
794
  "WarehouseFilterOp": {
262
795
  "type": "string",
263
- "enum": ["eq", "ne", "gt", "gte", "lt", "lte", "in", "notIn", "isNull", "isNotNull"],
796
+ "enum": [
797
+ "eq",
798
+ "ne",
799
+ "gt",
800
+ "gte",
801
+ "lt",
802
+ "lte",
803
+ "in",
804
+ "notIn",
805
+ "isNull",
806
+ "isNotNull"
807
+ ],
264
808
  "description": "A filter comparison: = <> > >= < <= IN, NOT IN, IS NULL, IS NOT NULL. Word-like so every value is a valid generated constant."
265
809
  },
266
810
  "WarehouseAggregate": {
267
811
  "type": "object",
268
812
  "additionalProperties": false,
269
- "required": ["fn", "column", "as"],
813
+ "required": [
814
+ "fn",
815
+ "column",
816
+ "as"
817
+ ],
270
818
  "description": "One computed column of an aggregate warehouse.view.read (0.70.0): fn(column) AS as. `*` is a column only for count (a governance rule). The value follows the read's cell rules, so a 64-bit or decimal result may be a string.",
271
819
  "properties": {
272
- "fn": { "$ref": "#/definitions/WarehouseAggregateFn" },
273
- "column": { "$ref": "app-integrations-declaration.schema.json#/definitions/ColumnName" },
274
- "as": { "type": "string", "pattern": "^[a-z_][a-z0-9_]{0,62}$", "description": "The name the computed value is returned under; unique in the read and never a groupBy column (governance rules)." }
820
+ "fn": {
821
+ "$ref": "#/definitions/WarehouseAggregateFn"
822
+ },
823
+ "column": {
824
+ "$ref": "app-integrations-declaration.schema.json#/definitions/ColumnName"
825
+ },
826
+ "as": {
827
+ "type": "string",
828
+ "pattern": "^[a-z_][a-z0-9_]{0,62}$",
829
+ "description": "The name the computed value is returned under; unique in the read and never a groupBy column (governance rules)."
830
+ }
275
831
  }
276
832
  },
277
833
  "WarehouseAggregateFn": {
278
834
  "type": "string",
279
- "enum": ["count", "sum", "avg", "min", "max"],
835
+ "enum": [
836
+ "count",
837
+ "sum",
838
+ "avg",
839
+ "min",
840
+ "max"
841
+ ],
280
842
  "description": "An aggregate function."
281
843
  },
282
844
  "WarehouseOrder": {
283
845
  "type": "object",
284
846
  "additionalProperties": false,
285
- "required": ["column"],
847
+ "required": [
848
+ "column"
849
+ ],
286
850
  "description": "One warehouse.view.read sort key (0.70.0). A plain read sorts by a selected column (any column when it selects `*`); an aggregate read sorts by a groupBy column or an aggregate alias (governance rules).",
287
851
  "properties": {
288
- "column": { "type": "string", "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,62}$", "description": "A column or an aggregate alias; never `*`." },
289
- "direction": { "$ref": "#/definitions/WarehouseOrderDirection" }
852
+ "column": {
853
+ "type": "string",
854
+ "pattern": "^[A-Za-z_][A-Za-z0-9_]{0,62}$",
855
+ "description": "A column or an aggregate alias; never `*`."
856
+ },
857
+ "direction": {
858
+ "$ref": "#/definitions/WarehouseOrderDirection"
859
+ }
290
860
  }
291
861
  },
292
862
  "WarehouseOrderDirection": {
293
863
  "type": "string",
294
- "enum": ["asc", "desc"],
864
+ "enum": [
865
+ "asc",
866
+ "desc"
867
+ ],
295
868
  "default": "asc",
296
869
  "description": "Sort direction; asc when absent."
297
870
  }
298
871
  },
299
872
  "examples": [
300
- { "connection": "company-slack", "operation": "slack.channel.history", "resource": "team-updates", "input": { "limit": 15 } },
873
+ {
874
+ "connection": "company-slack",
875
+ "operation": "slack.channel.history",
876
+ "resource": "team-updates",
877
+ "input": {
878
+ "limit": 15
879
+ }
880
+ },
301
881
  {
302
882
  "connection": "company-slack",
303
883
  "operation": "slack.message.post",
304
884
  "resource": "team-updates",
305
- "input": { "text": "Weekly update posted." },
885
+ "input": {
886
+ "text": "Weekly update posted."
887
+ },
306
888
  "idempotencyKey": "6f1c2c1e-3a1c-4c3e-9f0e-2b6f7d8a9c10"
307
889
  },
308
- { "connection": "sales-warehouse", "operation": "warehouse.view.read", "resource": "weekly_sales", "input": { "columns": ["week", "total"], "limit": 100 } },
309
- { "connection": "gmail", "operation": "gmail.thread.list", "resource": "inbox", "input": { "limit": 15 } },
310
- { "connection": "gmail", "operation": "gmail.message.read", "resource": "inbox", "input": { "messageId": "18f2c3a4b5d6e7f8" } },
890
+ {
891
+ "connection": "sales-warehouse",
892
+ "operation": "warehouse.view.read",
893
+ "resource": "weekly_sales",
894
+ "input": {
895
+ "columns": [
896
+ "week",
897
+ "total"
898
+ ],
899
+ "limit": 100
900
+ }
901
+ },
902
+ {
903
+ "connection": "gmail",
904
+ "operation": "gmail.thread.list",
905
+ "resource": "inbox",
906
+ "input": {
907
+ "limit": 15
908
+ }
909
+ },
910
+ {
911
+ "connection": "gmail",
912
+ "operation": "gmail.message.read",
913
+ "resource": "inbox",
914
+ "input": {
915
+ "messageId": "18f2c3a4b5d6e7f8"
916
+ }
917
+ },
311
918
  {
312
919
  "connection": "gmail",
313
920
  "operation": "gmail.message.send",
314
921
  "resource": "inbox",
315
- "input": { "to": ["jane@example.com"], "subject": "Weekly report", "text": "Shipped the weekly report.", "replyToMessageId": "18f2c3a4b5d6e7f8" },
922
+ "input": {
923
+ "to": [
924
+ "jane@example.com"
925
+ ],
926
+ "subject": "Weekly report",
927
+ "text": "Shipped the weekly report.",
928
+ "replyToMessageId": "18f2c3a4b5d6e7f8"
929
+ },
316
930
  "idempotencyKey": "6f1c2c1e-3a1c-4c3e-9f0e-2b6f7d8a9c11"
317
931
  },
318
932
  {
319
933
  "connection": "company-slack",
320
934
  "operation": "slack.message.post",
321
935
  "resource": "team-updates",
322
- "input": { "text": "Lunch is at noon." },
936
+ "input": {
937
+ "text": "Lunch is at noon."
938
+ },
323
939
  "idempotencyKey": "6f1c2c1e-3a1c-4c3e-9f0e-2b6f7d8a9c12",
324
940
  "mode": "user"
325
941
  },
@@ -328,12 +944,34 @@
328
944
  "operation": "warehouse.view.read",
329
945
  "resource": "invoices",
330
946
  "input": {
331
- "columns": ["invoice_id", "region_code", "amount_minor"],
947
+ "columns": [
948
+ "invoice_id",
949
+ "region_code",
950
+ "amount_minor"
951
+ ],
332
952
  "where": [
333
- { "column": "status", "op": "eq", "value": "PAID" },
334
- { "column": "invoice_date", "op": "gte", "value": "2026-02-01" },
335
- { "column": "currency", "op": "in", "value": ["USD", "EUR"] },
336
- { "column": "closed_at", "op": "isNull" }
953
+ {
954
+ "column": "status",
955
+ "op": "eq",
956
+ "value": "PAID"
957
+ },
958
+ {
959
+ "column": "invoice_date",
960
+ "op": "gte",
961
+ "value": "2026-02-01"
962
+ },
963
+ {
964
+ "column": "currency",
965
+ "op": "in",
966
+ "value": [
967
+ "USD",
968
+ "EUR"
969
+ ]
970
+ },
971
+ {
972
+ "column": "closed_at",
973
+ "op": "isNull"
974
+ }
337
975
  ],
338
976
  "limit": 500
339
977
  }
@@ -343,13 +981,34 @@
343
981
  "operation": "warehouse.view.read",
344
982
  "resource": "invoices",
345
983
  "input": {
346
- "where": [{ "column": "status", "op": "eq", "value": "PAID" }],
347
- "groupBy": ["region_code"],
984
+ "where": [
985
+ {
986
+ "column": "status",
987
+ "op": "eq",
988
+ "value": "PAID"
989
+ }
990
+ ],
991
+ "groupBy": [
992
+ "region_code"
993
+ ],
348
994
  "aggregates": [
349
- { "fn": "sum", "column": "amount_minor", "as": "total_minor" },
350
- { "fn": "count", "column": "*", "as": "invoices" }
995
+ {
996
+ "fn": "sum",
997
+ "column": "amount_minor",
998
+ "as": "total_minor"
999
+ },
1000
+ {
1001
+ "fn": "count",
1002
+ "column": "*",
1003
+ "as": "invoices"
1004
+ }
1005
+ ],
1006
+ "orderBy": [
1007
+ {
1008
+ "column": "total_minor",
1009
+ "direction": "desc"
1010
+ }
351
1011
  ],
352
- "orderBy": [{ "column": "total_minor", "direction": "desc" }],
353
1012
  "limit": 100
354
1013
  }
355
1014
  },
@@ -357,42 +1016,134 @@
357
1016
  "connection": "company-slack",
358
1017
  "operation": "slack.message.update",
359
1018
  "resource": "team-updates",
360
- "input": { "messageId": "1725840100.000200", "text": "Weekly update posted *(corrected)*.", "format": "mrkdwn" },
1019
+ "input": {
1020
+ "messageId": "1725840100.000200",
1021
+ "text": "Weekly update posted *(corrected)*.",
1022
+ "format": "mrkdwn"
1023
+ },
361
1024
  "mode": "app"
362
1025
  },
363
- { "connection": "company-slack", "operation": "slack.message.delete", "resource": "team-updates", "input": { "messageId": "1725840100.000200" } },
1026
+ {
1027
+ "connection": "company-slack",
1028
+ "operation": "slack.message.delete",
1029
+ "resource": "team-updates",
1030
+ "input": {
1031
+ "messageId": "1725840100.000200"
1032
+ }
1033
+ },
364
1034
  {
365
1035
  "connection": "company-slack",
366
1036
  "operation": "slack.dm.send",
367
1037
  "resource": "workspace",
368
- "input": { "to": ["jane@example.com"], "text": "Your expense report was approved." },
1038
+ "input": {
1039
+ "to": [
1040
+ "jane@example.com"
1041
+ ],
1042
+ "text": "Your expense report was approved."
1043
+ },
369
1044
  "idempotencyKey": "6f1c2c1e-3a1c-4c3e-9f0e-2b6f7d8a9c13"
370
1045
  },
371
- { "connection": "company-slack", "operation": "slack.user.lookup", "resource": "workspace", "input": { "email": "jane@example.com" } },
1046
+ {
1047
+ "connection": "company-slack",
1048
+ "operation": "slack.user.lookup",
1049
+ "resource": "workspace",
1050
+ "input": {
1051
+ "email": "jane@example.com"
1052
+ }
1053
+ },
372
1054
  {
373
1055
  "connection": "company-slack",
374
1056
  "operation": "slack.message.post",
375
1057
  "resource": "team-updates",
376
- "input": { "text": "Thanks, shipped.", "threadId": "1725840000.000100", "format": "plain" },
1058
+ "input": {
1059
+ "text": "Thanks, shipped.",
1060
+ "threadId": "1725840000.000100",
1061
+ "format": "plain"
1062
+ },
377
1063
  "idempotencyKey": "6f1c2c1e-3a1c-4c3e-9f0e-2b6f7d8a9c14",
378
1064
  "mode": "user"
379
1065
  },
380
- { "connection": "company-slack", "operation": "slack.channel.history", "resource": "team-updates", "input": { "limit": 100, "cursor": "bmV4dF90czoxNzI1ODQwMDAwMDAwMTAw", "oldest": "1725750000.000000" }, "mode": "app" },
381
- { "connection": "gmail", "operation": "gmail.thread.list", "resource": "inbox", "input": { "limit": 50, "q": "from:jane@example.com newer_than:7d", "labelIds": ["INBOX", "IMPORTANT"] } },
382
- { "connection": "gmail", "operation": "gmail.thread.read", "resource": "inbox", "input": { "threadId": "18f2c3a4b5d6e7f0" } },
383
- { "connection": "gmail", "operation": "gmail.attachment.read", "resource": "inbox", "input": { "messageId": "18f2c3a4b5d6e7f8", "attachmentId": "ANGjdJ8w9h1Q2k3L4m5N6o7P8q9R0s" } },
1066
+ {
1067
+ "connection": "company-slack",
1068
+ "operation": "slack.channel.history",
1069
+ "resource": "team-updates",
1070
+ "input": {
1071
+ "limit": 100,
1072
+ "cursor": "bmV4dF90czoxNzI1ODQwMDAwMDAwMTAw",
1073
+ "oldest": "1725750000.000000"
1074
+ },
1075
+ "mode": "app"
1076
+ },
1077
+ {
1078
+ "connection": "gmail",
1079
+ "operation": "gmail.thread.list",
1080
+ "resource": "inbox",
1081
+ "input": {
1082
+ "limit": 50,
1083
+ "q": "from:jane@example.com newer_than:7d",
1084
+ "labelIds": [
1085
+ "INBOX",
1086
+ "IMPORTANT"
1087
+ ]
1088
+ }
1089
+ },
1090
+ {
1091
+ "connection": "gmail",
1092
+ "operation": "gmail.thread.read",
1093
+ "resource": "inbox",
1094
+ "input": {
1095
+ "threadId": "18f2c3a4b5d6e7f0"
1096
+ }
1097
+ },
1098
+ {
1099
+ "connection": "gmail",
1100
+ "operation": "gmail.attachment.read",
1101
+ "resource": "inbox",
1102
+ "input": {
1103
+ "messageId": "18f2c3a4b5d6e7f8",
1104
+ "attachmentId": "ANGjdJ8w9h1Q2k3L4m5N6o7P8q9R0s"
1105
+ }
1106
+ },
384
1107
  {
385
1108
  "connection": "gmail",
386
1109
  "operation": "gmail.message.send",
387
1110
  "resource": "inbox",
388
1111
  "input": {
389
- "to": ["jane@example.com"],
1112
+ "to": [
1113
+ "jane@example.com"
1114
+ ],
390
1115
  "subject": "Weekly report",
391
1116
  "text": "The weekly report is attached.",
392
1117
  "html": "<p>The weekly report is <b>attached</b>.</p>",
393
- "attachments": [{ "filename": "weekly-report.pdf", "contentType": "application/pdf", "dataBase64": "JVBERi0xLjQKJcOkw7zDtsOfCg==" }]
1118
+ "attachments": [
1119
+ {
1120
+ "filename": "weekly-report.pdf",
1121
+ "contentType": "application/pdf",
1122
+ "dataBase64": "JVBERi0xLjQKJcOkw7zDtsOfCg=="
1123
+ }
1124
+ ]
394
1125
  },
395
1126
  "idempotencyKey": "6f1c2c1e-3a1c-4c3e-9f0e-2b6f7d8a9c15"
1127
+ },
1128
+ {
1129
+ "connection": "inventory",
1130
+ "operation": "service.request",
1131
+ "input": {
1132
+ "method": "POST",
1133
+ "path": "orders/{id}",
1134
+ "pathParams": {
1135
+ "id": "42"
1136
+ },
1137
+ "query": {
1138
+ "notify": true
1139
+ },
1140
+ "headers": {
1141
+ "X-Trace": "test"
1142
+ },
1143
+ "body": {
1144
+ "text": "approved"
1145
+ }
1146
+ }
396
1147
  }
397
1148
  ]
398
1149
  }