picked 0.0.101 → 0.0.102-next.2
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/docs/reference/dashboard/workflow-test-runs.md +40 -17
- package/docs/reference/management-api/schema/action.md +67 -79
- package/docs/reference/management-api/schema/analytics-session.md +77 -94
- package/docs/reference/management-api/schema/analytics.md +16 -14
- package/docs/reference/management-api/schema/api-key.md +43 -51
- package/docs/reference/management-api/schema/auth.md +271 -404
- package/docs/reference/management-api/schema/cms-fields.md +348 -245
- package/docs/reference/management-api/schema/cms-models.md +369 -378
- package/docs/reference/management-api/schema/common.md +69 -130
- package/docs/reference/management-api/schema/condition.md +63 -74
- package/docs/reference/management-api/schema/design-system.md +59 -51
- package/docs/reference/management-api/schema/experience.md +388 -364
- package/docs/reference/management-api/schema/external-api.md +153 -171
- package/docs/reference/management-api/schema/feature.md +85 -103
- package/docs/reference/management-api/schema/feedback.md +27 -31
- package/docs/reference/management-api/schema/field.md +117 -135
- package/docs/reference/management-api/schema/index.md +184 -184
- package/docs/reference/management-api/schema/integration.md +72 -78
- package/docs/reference/management-api/schema/label.md +81 -137
- package/docs/reference/management-api/schema/lead.md +80 -119
- package/docs/reference/management-api/schema/mcp-server.md +73 -71
- package/docs/reference/management-api/schema/metric.md +6 -9
- package/docs/reference/management-api/schema/operation.md +17 -26
- package/docs/reference/management-api/schema/organization.md +198 -220
- package/docs/reference/management-api/schema/project.md +177 -186
- package/docs/reference/management-api/schema/report.md +69 -65
- package/docs/reference/management-api/schema/saved-view.md +71 -71
- package/docs/reference/management-api/schema/shopify.md +331 -204
- package/docs/reference/management-api/schema/step.md +72 -80
- package/docs/reference/management-api/schema/tenant-branding.md +48 -70
- package/docs/reference/management-api/schema/workbench.md +54 -66
- package/docs/reference/management-api/schema/workflow-run.md +66 -79
- package/docs/reference/management-api/schema/workflow.md +310 -353
- package/docs/reference/management-api/schema/workspace-version.md +212 -261
- package/docs/reference/management-api/schema/workspace.md +275 -328
- package/package.json +4 -4
|
@@ -6,13 +6,14 @@ generated: true
|
|
|
6
6
|
|
|
7
7
|
# Mcp server schema
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
See [Management API schema](/reference/management-api/schema) for every domain, the endpoint and authentication.
|
|
10
10
|
|
|
11
11
|
## Queries
|
|
12
12
|
|
|
13
13
|
### `mcpServer`
|
|
14
14
|
|
|
15
|
-
|
|
15
|
+
Reads an MCP server. Null when no server has the ID.
|
|
16
|
+
Scope: `ORGANIZATION_INTEGRATIONS_READ`.
|
|
16
17
|
|
|
17
18
|
```graphql
|
|
18
19
|
mcpServer(input: McpServerInput!): McpServer @auth
|
|
@@ -22,7 +23,8 @@ mcpServer(input: McpServerInput!): McpServer @auth
|
|
|
22
23
|
|
|
23
24
|
### `mcpServerRegister`
|
|
24
25
|
|
|
25
|
-
|
|
26
|
+
Registers a third-party MCP server to a project.
|
|
27
|
+
Scope: `ORGANIZATION_INTEGRATIONS_CREATE`.
|
|
26
28
|
|
|
27
29
|
```graphql
|
|
28
30
|
mcpServerRegister(input: McpServerRegisterInput!): McpServerRegisterPayload! @auth(only: USER)
|
|
@@ -30,7 +32,8 @@ mcpServerRegister(input: McpServerRegisterInput!): McpServerRegisterPayload! @au
|
|
|
30
32
|
|
|
31
33
|
### `mcpServerUpdate`
|
|
32
34
|
|
|
33
|
-
|
|
35
|
+
Renames an MCP server.
|
|
36
|
+
Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`.
|
|
34
37
|
|
|
35
38
|
```graphql
|
|
36
39
|
mcpServerUpdate(input: McpServerUpdateInput!): McpServerUpdatePayload! @auth(only: USER)
|
|
@@ -38,7 +41,8 @@ mcpServerUpdate(input: McpServerUpdateInput!): McpServerUpdatePayload! @auth(onl
|
|
|
38
41
|
|
|
39
42
|
### `mcpServerUrlSet`
|
|
40
43
|
|
|
41
|
-
|
|
44
|
+
Replaces an MCP server's URL. The result shows only `urlDisplay`.
|
|
45
|
+
Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`.
|
|
42
46
|
|
|
43
47
|
```graphql
|
|
44
48
|
mcpServerUrlSet(input: McpServerUrlSetInput!): McpServerUrlSetPayload! @auth(only: USER)
|
|
@@ -46,7 +50,8 @@ mcpServerUrlSet(input: McpServerUrlSetInput!): McpServerUrlSetPayload! @auth(onl
|
|
|
46
50
|
|
|
47
51
|
### `mcpServerAuthHeaderSet`
|
|
48
52
|
|
|
49
|
-
|
|
53
|
+
Sets or replaces the auth header sent to an MCP server.
|
|
54
|
+
Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`.
|
|
50
55
|
|
|
51
56
|
```graphql
|
|
52
57
|
mcpServerAuthHeaderSet(input: McpServerAuthHeaderSetInput!): McpServerAuthHeaderSetPayload! @auth(only: USER)
|
|
@@ -54,7 +59,8 @@ mcpServerAuthHeaderSet(input: McpServerAuthHeaderSetInput!): McpServerAuthHeader
|
|
|
54
59
|
|
|
55
60
|
### `mcpServerAuthHeaderClear`
|
|
56
61
|
|
|
57
|
-
|
|
62
|
+
Removes an MCP server's auth header. Succeeds when the server has none.
|
|
63
|
+
Scope: `ORGANIZATION_INTEGRATIONS_UPDATE`.
|
|
58
64
|
|
|
59
65
|
```graphql
|
|
60
66
|
mcpServerAuthHeaderClear(input: McpServerAuthHeaderClearInput!): McpServerAuthHeaderClearPayload! @auth(only: USER)
|
|
@@ -62,7 +68,9 @@ mcpServerAuthHeaderClear(input: McpServerAuthHeaderClearInput!): McpServerAuthHe
|
|
|
62
68
|
|
|
63
69
|
### `mcpServerDelete`
|
|
64
70
|
|
|
65
|
-
|
|
71
|
+
Deletes an MCP server with its stored URL and auth header. Cannot be undone; an unknown ID returns
|
|
72
|
+
`NOT_FOUND`.
|
|
73
|
+
Scope: `ORGANIZATION_INTEGRATIONS_DELETE`.
|
|
66
74
|
|
|
67
75
|
```graphql
|
|
68
76
|
mcpServerDelete(input: McpServerDeleteInput!): McpServerDeletePayload! @auth
|
|
@@ -74,26 +82,28 @@ mcpServerDelete(input: McpServerDeleteInput!): McpServerDeletePayload! @auth
|
|
|
74
82
|
|
|
75
83
|
```graphql
|
|
76
84
|
"""
|
|
77
|
-
A third-party
|
|
85
|
+
A third-party Model Context Protocol server registered to a project. The API stores its full URL
|
|
86
|
+
and auth header value encrypted and never returns them.
|
|
78
87
|
"""
|
|
79
88
|
type McpServer {
|
|
80
|
-
"""
|
|
89
|
+
"""The ID of the MCP server."""
|
|
81
90
|
id: ID!
|
|
82
|
-
"""ID of the project
|
|
91
|
+
"""The ID of the project the server belongs to."""
|
|
83
92
|
projectId: ID!
|
|
84
|
-
"""
|
|
93
|
+
"""The name of the server."""
|
|
85
94
|
name: String!
|
|
86
95
|
"""
|
|
87
|
-
|
|
96
|
+
The server's URL with every query value replaced by `***` and the fragment removed, such as
|
|
97
|
+
`https://example.com/mcp?token=***`.
|
|
88
98
|
"""
|
|
89
99
|
urlDisplay: String!
|
|
90
|
-
"""The auth header
|
|
100
|
+
"""The name of the auth header. Null when none is set."""
|
|
91
101
|
authHeaderName: String
|
|
92
|
-
"""
|
|
102
|
+
"""Whether an auth header value is set."""
|
|
93
103
|
hasAuthHeaderValue: Boolean!
|
|
94
|
-
"""When
|
|
104
|
+
"""When the server was registered."""
|
|
95
105
|
createdAt: DateTime!
|
|
96
|
-
"""When
|
|
106
|
+
"""When the server last changed."""
|
|
97
107
|
updatedAt: DateTime!
|
|
98
108
|
}
|
|
99
109
|
```
|
|
@@ -101,9 +111,9 @@ type McpServer {
|
|
|
101
111
|
### `McpServerEdge`
|
|
102
112
|
|
|
103
113
|
```graphql
|
|
104
|
-
"""
|
|
114
|
+
"""An MCP server in a page of results."""
|
|
105
115
|
type McpServerEdge {
|
|
106
|
-
"""
|
|
116
|
+
"""The cursor of this edge."""
|
|
107
117
|
cursor: String!
|
|
108
118
|
"""The MCP server."""
|
|
109
119
|
node: McpServer!
|
|
@@ -113,13 +123,13 @@ type McpServerEdge {
|
|
|
113
123
|
### `McpServerConnection`
|
|
114
124
|
|
|
115
125
|
```graphql
|
|
116
|
-
"""
|
|
126
|
+
"""A page of MCP servers."""
|
|
117
127
|
type McpServerConnection {
|
|
118
|
-
"""
|
|
128
|
+
"""The edges in this page."""
|
|
119
129
|
edges: [McpServerEdge!]!
|
|
120
|
-
"""
|
|
130
|
+
"""Where this page sits in the list."""
|
|
121
131
|
pageInfo: PageInfo!
|
|
122
|
-
"""
|
|
132
|
+
"""The total number of MCP servers in the project."""
|
|
123
133
|
totalCount: Int!
|
|
124
134
|
}
|
|
125
135
|
```
|
|
@@ -127,13 +137,16 @@ type McpServerConnection {
|
|
|
127
137
|
### `McpAuthHeaderInput`
|
|
128
138
|
|
|
129
139
|
```graphql
|
|
130
|
-
"""
|
|
131
|
-
A single auth header to send when calling a registered MCP server. The value is encrypted at rest and only ever decrypted server-side.
|
|
132
|
-
"""
|
|
140
|
+
"""The auth header sent with every request to an MCP server."""
|
|
133
141
|
input McpAuthHeaderInput {
|
|
134
|
-
"""
|
|
142
|
+
"""
|
|
143
|
+
The header name. Defaults to `authorization`. At most 64 characters, with no spaces or separators,
|
|
144
|
+
and not a header the transport sets, such as `Host` or `Cookie`.
|
|
145
|
+
"""
|
|
135
146
|
name: String
|
|
136
|
-
"""
|
|
147
|
+
"""
|
|
148
|
+
The header value, stored encrypted. At most 4096 bytes after trimming, with no control characters.
|
|
149
|
+
"""
|
|
137
150
|
value: String!
|
|
138
151
|
}
|
|
139
152
|
```
|
|
@@ -141,9 +154,9 @@ input McpAuthHeaderInput {
|
|
|
141
154
|
### `McpServerInput`
|
|
142
155
|
|
|
143
156
|
```graphql
|
|
144
|
-
"""
|
|
157
|
+
"""The input of `mcpServer`."""
|
|
145
158
|
input McpServerInput {
|
|
146
|
-
"""ID of the MCP server
|
|
159
|
+
"""The ID of the MCP server."""
|
|
147
160
|
id: ID!
|
|
148
161
|
}
|
|
149
162
|
```
|
|
@@ -151,21 +164,18 @@ input McpServerInput {
|
|
|
151
164
|
### `McpServerRegisterInput`
|
|
152
165
|
|
|
153
166
|
```graphql
|
|
154
|
-
"""
|
|
155
|
-
Input for `mcpServerRegister`. The full URL is encrypted on commit; subsequent reads return only the display URL (scheme + host + pathname).
|
|
156
|
-
"""
|
|
167
|
+
"""The input of `mcpServerRegister`."""
|
|
157
168
|
input McpServerRegisterInput {
|
|
158
|
-
"""
|
|
159
|
-
Project the MCP server should be registered to. The organisation is derived server-side from the project.
|
|
160
|
-
"""
|
|
169
|
+
"""The ID of the project to register the server to."""
|
|
161
170
|
projectId: ID!
|
|
162
|
-
"""
|
|
171
|
+
"""The name of the server. Must not be blank."""
|
|
163
172
|
name: String!
|
|
164
173
|
"""
|
|
165
|
-
|
|
174
|
+
The server's URL, stored encrypted, so its query may carry secrets. Must use `http` or `https` on
|
|
175
|
+
the default port, carry no user info, and resolve to a public address.
|
|
166
176
|
"""
|
|
167
177
|
url: String!
|
|
168
|
-
"""
|
|
178
|
+
"""The auth header to send. Null for none."""
|
|
169
179
|
authHeader: McpAuthHeaderInput
|
|
170
180
|
}
|
|
171
181
|
```
|
|
@@ -173,13 +183,11 @@ input McpServerRegisterInput {
|
|
|
173
183
|
### `McpServerUpdateInput`
|
|
174
184
|
|
|
175
185
|
```graphql
|
|
176
|
-
"""
|
|
177
|
-
Input for `mcpServerUpdate`. Name-only — URL rotation goes through `mcpServerUrlSet`; header lifecycle is managed via `mcpServerAuthHeaderSet` / `mcpServerAuthHeaderClear`.
|
|
178
|
-
"""
|
|
186
|
+
"""The input of `mcpServerUpdate`. Every field is required."""
|
|
179
187
|
input McpServerUpdateInput {
|
|
180
|
-
"""ID of the MCP server
|
|
188
|
+
"""The ID of the MCP server."""
|
|
181
189
|
id: ID!
|
|
182
|
-
"""
|
|
190
|
+
"""The new name. Must not be blank."""
|
|
183
191
|
name: String!
|
|
184
192
|
}
|
|
185
193
|
```
|
|
@@ -187,15 +195,11 @@ input McpServerUpdateInput {
|
|
|
187
195
|
### `McpServerUrlSetInput`
|
|
188
196
|
|
|
189
197
|
```graphql
|
|
190
|
-
"""
|
|
191
|
-
Input for `mcpServerUrlSet`. Rotates the full URL atomically and updates the display URL.
|
|
192
|
-
"""
|
|
198
|
+
"""The input of `mcpServerUrlSet`."""
|
|
193
199
|
input McpServerUrlSetInput {
|
|
194
|
-
"""ID of the MCP server."""
|
|
200
|
+
"""The ID of the MCP server."""
|
|
195
201
|
id: ID!
|
|
196
|
-
"""
|
|
197
|
-
New full URL (may contain query-param secrets); validated server-side for scheme and host.
|
|
198
|
-
"""
|
|
202
|
+
"""The new URL, held to the rules of `McpServerRegisterInput.url`."""
|
|
199
203
|
url: String!
|
|
200
204
|
}
|
|
201
205
|
```
|
|
@@ -203,15 +207,15 @@ input McpServerUrlSetInput {
|
|
|
203
207
|
### `McpServerAuthHeaderSetInput`
|
|
204
208
|
|
|
205
209
|
```graphql
|
|
206
|
-
"""
|
|
207
|
-
Input for `mcpServerAuthHeaderSet`. Creates or replaces the auth header value.
|
|
208
|
-
"""
|
|
210
|
+
"""The input of `mcpServerAuthHeaderSet`."""
|
|
209
211
|
input McpServerAuthHeaderSetInput {
|
|
210
|
-
"""ID of the MCP server."""
|
|
212
|
+
"""The ID of the MCP server."""
|
|
211
213
|
id: ID!
|
|
212
|
-
"""
|
|
214
|
+
"""
|
|
215
|
+
The header name, held to the rules of `McpAuthHeaderInput.name`. Defaults to `authorization`.
|
|
216
|
+
"""
|
|
213
217
|
name: String
|
|
214
|
-
"""
|
|
218
|
+
"""The header value, held to the rules of `McpAuthHeaderInput.value`."""
|
|
215
219
|
value: String!
|
|
216
220
|
}
|
|
217
221
|
```
|
|
@@ -219,11 +223,9 @@ input McpServerAuthHeaderSetInput {
|
|
|
219
223
|
### `McpServerAuthHeaderClearInput`
|
|
220
224
|
|
|
221
225
|
```graphql
|
|
222
|
-
"""
|
|
223
|
-
Input for `mcpServerAuthHeaderClear`. Idempotent: clearing a server that has no header is a no-op success.
|
|
224
|
-
"""
|
|
226
|
+
"""The input of `mcpServerAuthHeaderClear`."""
|
|
225
227
|
input McpServerAuthHeaderClearInput {
|
|
226
|
-
"""ID of the MCP server."""
|
|
228
|
+
"""The ID of the MCP server."""
|
|
227
229
|
id: ID!
|
|
228
230
|
}
|
|
229
231
|
```
|
|
@@ -231,9 +233,9 @@ input McpServerAuthHeaderClearInput {
|
|
|
231
233
|
### `McpServerDeleteInput`
|
|
232
234
|
|
|
233
235
|
```graphql
|
|
234
|
-
"""
|
|
236
|
+
"""The input of `mcpServerDelete`."""
|
|
235
237
|
input McpServerDeleteInput {
|
|
236
|
-
"""ID of the MCP server
|
|
238
|
+
"""The ID of the MCP server."""
|
|
237
239
|
id: ID!
|
|
238
240
|
}
|
|
239
241
|
```
|
|
@@ -241,9 +243,9 @@ input McpServerDeleteInput {
|
|
|
241
243
|
### `McpServerRegisterPayload`
|
|
242
244
|
|
|
243
245
|
```graphql
|
|
244
|
-
"""
|
|
246
|
+
"""The result of `mcpServerRegister`."""
|
|
245
247
|
type McpServerRegisterPayload {
|
|
246
|
-
"""The
|
|
248
|
+
"""The registered MCP server."""
|
|
247
249
|
mcpServer: McpServer
|
|
248
250
|
}
|
|
249
251
|
```
|
|
@@ -251,7 +253,7 @@ type McpServerRegisterPayload {
|
|
|
251
253
|
### `McpServerUpdatePayload`
|
|
252
254
|
|
|
253
255
|
```graphql
|
|
254
|
-
"""
|
|
256
|
+
"""The result of `mcpServerUpdate`."""
|
|
255
257
|
type McpServerUpdatePayload {
|
|
256
258
|
"""The updated MCP server."""
|
|
257
259
|
mcpServer: McpServer
|
|
@@ -261,7 +263,7 @@ type McpServerUpdatePayload {
|
|
|
261
263
|
### `McpServerUrlSetPayload`
|
|
262
264
|
|
|
263
265
|
```graphql
|
|
264
|
-
"""
|
|
266
|
+
"""The result of `mcpServerUrlSet`."""
|
|
265
267
|
type McpServerUrlSetPayload {
|
|
266
268
|
"""The updated MCP server."""
|
|
267
269
|
mcpServer: McpServer
|
|
@@ -271,7 +273,7 @@ type McpServerUrlSetPayload {
|
|
|
271
273
|
### `McpServerAuthHeaderSetPayload`
|
|
272
274
|
|
|
273
275
|
```graphql
|
|
274
|
-
"""
|
|
276
|
+
"""The result of `mcpServerAuthHeaderSet`."""
|
|
275
277
|
type McpServerAuthHeaderSetPayload {
|
|
276
278
|
"""The updated MCP server."""
|
|
277
279
|
mcpServer: McpServer
|
|
@@ -281,7 +283,7 @@ type McpServerAuthHeaderSetPayload {
|
|
|
281
283
|
### `McpServerAuthHeaderClearPayload`
|
|
282
284
|
|
|
283
285
|
```graphql
|
|
284
|
-
"""
|
|
286
|
+
"""The result of `mcpServerAuthHeaderClear`."""
|
|
285
287
|
type McpServerAuthHeaderClearPayload {
|
|
286
288
|
"""The updated MCP server."""
|
|
287
289
|
mcpServer: McpServer
|
|
@@ -291,9 +293,9 @@ type McpServerAuthHeaderClearPayload {
|
|
|
291
293
|
### `McpServerDeletePayload`
|
|
292
294
|
|
|
293
295
|
```graphql
|
|
294
|
-
"""
|
|
296
|
+
"""The result of `mcpServerDelete`."""
|
|
295
297
|
type McpServerDeletePayload {
|
|
296
|
-
"""
|
|
298
|
+
"""Whether the server was deleted."""
|
|
297
299
|
success: Boolean!
|
|
298
300
|
}
|
|
299
301
|
```
|
|
@@ -6,7 +6,7 @@ generated: true
|
|
|
6
6
|
|
|
7
7
|
# Metric schema
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
See [Management API schema](/reference/management-api/schema) for every domain, the endpoint and authentication.
|
|
10
10
|
|
|
11
11
|
## Types
|
|
12
12
|
|
|
@@ -33,7 +33,7 @@ enum MetricTimeUnit {
|
|
|
33
33
|
```graphql
|
|
34
34
|
"""A length of time as a whole number of units."""
|
|
35
35
|
input MetricDurationInput {
|
|
36
|
-
"""
|
|
36
|
+
"""The number of units. At least 1."""
|
|
37
37
|
amount: Int!
|
|
38
38
|
"""The unit."""
|
|
39
39
|
unit: MetricTimeUnit!
|
|
@@ -85,9 +85,7 @@ input MetricWindowInput {
|
|
|
85
85
|
### `MetricWindow`
|
|
86
86
|
|
|
87
87
|
```graphql
|
|
88
|
-
"""
|
|
89
|
-
The concrete span a metric covered after its window was resolved. Label a chart with it.
|
|
90
|
-
"""
|
|
88
|
+
"""The span of time a metric covered, after its window was resolved."""
|
|
91
89
|
type MetricWindow {
|
|
92
90
|
"""Start of the window, inclusive."""
|
|
93
91
|
from: DateTime!
|
|
@@ -102,8 +100,7 @@ type MetricWindow {
|
|
|
102
100
|
|
|
103
101
|
```graphql
|
|
104
102
|
"""
|
|
105
|
-
Something countable over time
|
|
106
|
-
`timeseries` for a chart.
|
|
103
|
+
Something countable over time, read as a total or as a timeseries.
|
|
107
104
|
|
|
108
105
|
`window` defaults to the window of the resource the metric hangs off, such
|
|
109
106
|
as the `window` given to `Project.leads`; a metric with neither fails. A
|
|
@@ -152,7 +149,7 @@ type MetricTotal {
|
|
|
152
149
|
otherwise. At most 10 groups; the rest fold into one group whose `key` is null.
|
|
153
150
|
"""
|
|
154
151
|
groups: [MetricGroupValue!]!
|
|
155
|
-
"""
|
|
152
|
+
"""Whether the values are estimates rather than exact counts."""
|
|
156
153
|
approximate: Boolean!
|
|
157
154
|
"""The newest data the values reflect."""
|
|
158
155
|
freshAsOf: DateTime!
|
|
@@ -199,7 +196,7 @@ type Timeseries {
|
|
|
199
196
|
whose `key` is null.
|
|
200
197
|
"""
|
|
201
198
|
series: [TimeseriesSeries!]!
|
|
202
|
-
"""
|
|
199
|
+
"""Whether the values are estimates rather than exact counts."""
|
|
203
200
|
approximate: Boolean!
|
|
204
201
|
"""The newest data the values reflect."""
|
|
205
202
|
freshAsOf: DateTime!
|
|
@@ -6,7 +6,7 @@ generated: true
|
|
|
6
6
|
|
|
7
7
|
# Operation schema
|
|
8
8
|
|
|
9
|
-
|
|
9
|
+
See [Management API schema](/reference/management-api/schema) for every domain, the endpoint and authentication.
|
|
10
10
|
|
|
11
11
|
## Types
|
|
12
12
|
|
|
@@ -19,7 +19,7 @@ enum OperationType {
|
|
|
19
19
|
CREATED
|
|
20
20
|
"""The resource was changed."""
|
|
21
21
|
UPDATED
|
|
22
|
-
"""The resource was
|
|
22
|
+
"""The resource was deleted."""
|
|
23
23
|
DELETED
|
|
24
24
|
}
|
|
25
25
|
```
|
|
@@ -28,12 +28,11 @@ enum OperationType {
|
|
|
28
28
|
|
|
29
29
|
```graphql
|
|
30
30
|
"""
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
`reverse: true`, the latest operation first. A cursor belongs to the order it was issued under: change `sortKey` or `reverse` only from the first page.
|
|
31
|
+
The orders a list of operations can be sorted in. `reverse: true`, the default, puts the latest
|
|
32
|
+
first. A cursor belongs to the order it was issued under.
|
|
34
33
|
"""
|
|
35
34
|
enum OperationSortKeys {
|
|
36
|
-
"""
|
|
35
|
+
"""By `occurredAt`."""
|
|
37
36
|
OCCURRED_AT
|
|
38
37
|
}
|
|
39
38
|
```
|
|
@@ -42,22 +41,18 @@ enum OperationSortKeys {
|
|
|
42
41
|
|
|
43
42
|
```graphql
|
|
44
43
|
"""
|
|
45
|
-
One entry in the log of what was done to a resource.
|
|
46
|
-
|
|
47
|
-
Every resource that is logged has its own implementing type carrying the
|
|
48
|
-
resource itself — `LeadOperation.lead`, `LabelOperation.label` — and this
|
|
49
|
-
interface carries what they share. `task` is the workflow run task that
|
|
50
|
-
performed the operation, or null when a person or an integration did.
|
|
44
|
+
One entry in the log of what was done to a resource, such as a lead or a label. Each resource has
|
|
45
|
+
its own operation type that carries the resource.
|
|
51
46
|
"""
|
|
52
47
|
interface Operation {
|
|
53
|
-
"""
|
|
48
|
+
"""The ID of the operation."""
|
|
54
49
|
id: ID!
|
|
55
50
|
"""What was done to the resource."""
|
|
56
51
|
type: OperationType!
|
|
57
52
|
"""When the operation happened."""
|
|
58
53
|
occurredAt: DateTime!
|
|
59
54
|
"""
|
|
60
|
-
The workflow run task that performed the operation
|
|
55
|
+
The workflow run task that performed the operation. Null when a person or an API key did.
|
|
61
56
|
"""
|
|
62
57
|
task: WorkflowTask
|
|
63
58
|
}
|
|
@@ -66,19 +61,15 @@ interface Operation {
|
|
|
66
61
|
### `OperationConnection`
|
|
67
62
|
|
|
68
63
|
```graphql
|
|
69
|
-
"""
|
|
70
|
-
Relay-style connection of operations of any resource, in the order asked.
|
|
71
|
-
"""
|
|
64
|
+
"""A page of operations."""
|
|
72
65
|
type OperationConnection {
|
|
73
|
-
"""
|
|
66
|
+
"""The edges in this page."""
|
|
74
67
|
edges: [OperationEdge!]!
|
|
75
|
-
"""
|
|
76
|
-
Flat list of operations, equivalent to `edges[].node`. Convenience accessor.
|
|
77
|
-
"""
|
|
68
|
+
"""The items in this page."""
|
|
78
69
|
nodes: [Operation!]!
|
|
79
|
-
"""
|
|
70
|
+
"""Where this page sits in the list."""
|
|
80
71
|
pageInfo: PageInfo!
|
|
81
|
-
"""
|
|
72
|
+
"""The number of items across all pages."""
|
|
82
73
|
totalCount: Int!
|
|
83
74
|
}
|
|
84
75
|
```
|
|
@@ -86,11 +77,11 @@ type OperationConnection {
|
|
|
86
77
|
### `OperationEdge`
|
|
87
78
|
|
|
88
79
|
```graphql
|
|
89
|
-
"""
|
|
80
|
+
"""An operation in a page of results."""
|
|
90
81
|
type OperationEdge {
|
|
91
|
-
"""
|
|
82
|
+
"""The cursor of this edge."""
|
|
92
83
|
cursor: String!
|
|
93
|
-
"""The
|
|
84
|
+
"""The item."""
|
|
94
85
|
node: Operation!
|
|
95
86
|
}
|
|
96
87
|
```
|