mtmsdk 0.0.47 → 0.0.49
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/gomtmapi/@tanstack/react-query.gen.d.ts +2 -80
- package/dist/gomtmapi/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/gomtmapi/@tanstack/react-query.gen.js +2 -176
- package/dist/gomtmapi/@tanstack/react-query.gen.js.map +1 -1
- package/dist/gomtmapi/index.d.ts +2 -2
- package/dist/gomtmapi/index.d.ts.map +1 -1
- package/dist/gomtmapi/index.js +1 -1
- package/dist/gomtmapi/index.js.map +1 -1
- package/dist/gomtmapi/schemas.gen.d.ts +14 -328
- package/dist/gomtmapi/schemas.gen.d.ts.map +1 -1
- package/dist/gomtmapi/schemas.gen.js +14 -341
- package/dist/gomtmapi/schemas.gen.js.map +1 -1
- package/dist/gomtmapi/sdk.gen.d.ts +2 -80
- package/dist/gomtmapi/sdk.gen.d.ts.map +1 -1
- package/dist/gomtmapi/sdk.gen.js +1 -135
- package/dist/gomtmapi/sdk.gen.js.map +1 -1
- package/dist/gomtmapi/types.gen.d.ts +10 -437
- package/dist/gomtmapi/types.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.d.ts +8 -308
- package/dist/gomtmapi/zod.gen.d.ts.map +1 -1
- package/dist/gomtmapi/zod.gen.js +4 -232
- package/dist/gomtmapi/zod.gen.js.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts +1 -29
- package/dist/mtgate_api/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/mtgate_api/@tanstack/react-query.gen.js +1 -17
- package/dist/mtgate_api/@tanstack/react-query.gen.js.map +1 -1
- package/dist/mtgate_api/index.d.ts +2 -2
- package/dist/mtgate_api/index.d.ts.map +1 -1
- package/dist/mtgate_api/index.js +1 -1
- package/dist/mtgate_api/index.js.map +1 -1
- package/dist/mtgate_api/sdk.gen.d.ts +1 -5
- package/dist/mtgate_api/sdk.gen.d.ts.map +1 -1
- package/dist/mtgate_api/sdk.gen.js +0 -4
- package/dist/mtgate_api/sdk.gen.js.map +1 -1
- package/dist/mtgate_api/types.gen.d.ts +0 -6
- package/dist/mtgate_api/types.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.d.ts +0 -5
- package/dist/mtgate_api/zod.gen.d.ts.map +1 -1
- package/dist/mtgate_api/zod.gen.js +0 -5
- package/dist/mtgate_api/zod.gen.js.map +1 -1
- package/dist/mtmai_api/index.d.ts +2 -2
- package/dist/mtmai_api/index.d.ts.map +1 -1
- package/dist/mtmai_api/index.js +1 -1
- package/dist/mtmai_api/index.js.map +1 -1
- package/dist/mtmai_api/zod.gen.d.ts +96 -96
- package/dist/openclaw/client-info.d.ts +0 -18
- package/dist/openclaw/client-info.d.ts.map +1 -1
- package/dist/openclaw/client-info.js +0 -6
- package/dist/openclaw/client-info.js.map +1 -1
- package/dist/openclaw/device-auth-utils.d.ts +3 -4
- package/dist/openclaw/device-auth-utils.d.ts.map +1 -1
- package/dist/openclaw/device-auth-utils.js +4 -8
- package/dist/openclaw/device-auth-utils.js.map +1 -1
- package/dist/openclaw/device-auth.d.ts.map +1 -1
- package/dist/openclaw/device-auth.js +5 -2
- package/dist/openclaw/device-auth.js.map +1 -1
- package/dist/openclaw/device-identity.js +2 -2
- package/dist/openclaw/device-identity.js.map +1 -1
- package/dist/openclaw/gateway.d.ts +19 -5
- package/dist/openclaw/gateway.d.ts.map +1 -1
- package/dist/openclaw/gateway.js +75 -37
- package/dist/openclaw/gateway.js.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.d.ts +36 -8
- package/dist/sbmng/@tanstack/react-query.gen.d.ts.map +1 -1
- package/dist/sbmng/@tanstack/react-query.gen.js +22 -6
- package/dist/sbmng/@tanstack/react-query.gen.js.map +1 -1
- package/dist/sbmng/index.d.ts +2 -2
- package/dist/sbmng/index.d.ts.map +1 -1
- package/dist/sbmng/index.js +1 -1
- package/dist/sbmng/index.js.map +1 -1
- package/dist/sbmng/schemas.gen.d.ts +97 -34
- package/dist/sbmng/schemas.gen.d.ts.map +1 -1
- package/dist/sbmng/schemas.gen.js +120 -49
- package/dist/sbmng/schemas.gen.js.map +1 -1
- package/dist/sbmng/sdk.gen.d.ts +7 -3
- package/dist/sbmng/sdk.gen.d.ts.map +1 -1
- package/dist/sbmng/sdk.gen.js +11 -3
- package/dist/sbmng/sdk.gen.js.map +1 -1
- package/dist/sbmng/types.gen.d.ts +82 -30
- package/dist/sbmng/types.gen.d.ts.map +1 -1
- package/dist/supabase/schema/index.d.ts +0 -8
- package/dist/supabase/schema/index.d.ts.map +1 -1
- package/dist/supabase/schema/index.js +0 -5
- package/dist/supabase/schema/index.js.map +1 -1
- package/dist/supabase/supabase-client.d.ts +900 -719
- package/dist/supabase/supabase-client.d.ts.map +1 -1
- package/dist/supabase/supabase.d.ts +1836 -1474
- package/dist/supabase/supabase.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-query.d.ts.map +1 -1
- package/dist/supabase/use-sb-query/use-rpc-query.js +2 -1
- package/dist/supabase/use-sb-query/use-rpc-query.js.map +1 -1
- package/dist/types/database.schemas.d.ts +999 -920
- package/dist/types/database.schemas.d.ts.map +1 -1
- package/dist/types/database.schemas.js +739 -435
- package/dist/types/database.schemas.js.map +1 -1
- package/dist/types/database.types.d.ts +919 -736
- package/dist/types/database.types.d.ts.map +1 -1
- package/dist/types/database.types.js +18 -2
- package/dist/types/database.types.js.map +1 -1
- package/dist/types/index.d.ts +35 -3
- package/dist/types/index.d.ts.map +1 -1
- package/dist/types/index.js +4 -1
- package/dist/types/index.js.map +1 -1
- package/package.json +4 -3
- package/src/gomtmapi/@tanstack/react-query.gen.ts +3 -185
- package/src/gomtmapi/index.ts +2 -2
- package/src/gomtmapi/schemas.gen.ts +14 -356
- package/src/gomtmapi/sdk.gen.ts +2 -144
- package/src/gomtmapi/types.gen.ts +10 -492
- package/src/gomtmapi/zod.gen.ts +4 -263
- package/src/mtgate_api/@tanstack/react-query.gen.ts +2 -20
- package/src/mtgate_api/index.ts +2 -2
- package/src/mtgate_api/sdk.gen.ts +1 -6
- package/src/mtgate_api/types.gen.ts +0 -7
- package/src/mtgate_api/zod.gen.ts +0 -6
- package/src/mtmai_api/index.ts +2 -2
- package/src/openclaw/client-info.ts +0 -9
- package/src/openclaw/device-auth-utils.ts +7 -12
- package/src/openclaw/device-auth.ts +5 -2
- package/src/openclaw/device-identity.ts +2 -2
- package/src/openclaw/gateway.ts +96 -50
- package/src/sbmng/@tanstack/react-query.gen.ts +25 -7
- package/src/sbmng/index.ts +2 -2
- package/src/sbmng/schemas.gen.ts +121 -49
- package/src/sbmng/sdk.gen.ts +13 -4
- package/src/sbmng/types.gen.ts +87 -30
- package/src/supabase/schema/index.ts +0 -5
- package/src/supabase/use-sb-query/use-rpc-query.ts +2 -1
- package/src/types/database.schemas.ts +948 -598
- package/src/types/database.types.ts +864 -674
- package/src/types/index.ts +20 -4
- package/dist/api_hatchet/@tanstack/react-query.gen.d.ts +0 -3017
- package/dist/api_hatchet/@tanstack/react-query.gen.d.ts.map +0 -1
- package/dist/api_hatchet/@tanstack/react-query.gen.js +0 -2776
- package/dist/api_hatchet/@tanstack/react-query.gen.js.map +0 -1
- package/dist/api_hatchet/client/client.gen.d.ts +0 -3
- package/dist/api_hatchet/client/client.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/client.gen.js +0 -236
- package/dist/api_hatchet/client/client.gen.js.map +0 -1
- package/dist/api_hatchet/client/index.d.ts +0 -9
- package/dist/api_hatchet/client/index.d.ts.map +0 -1
- package/dist/api_hatchet/client/index.js +0 -7
- package/dist/api_hatchet/client/index.js.map +0 -1
- package/dist/api_hatchet/client/types.gen.d.ts +0 -118
- package/dist/api_hatchet/client/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/types.gen.js +0 -3
- package/dist/api_hatchet/client/types.gen.js.map +0 -1
- package/dist/api_hatchet/client/utils.gen.d.ts +0 -34
- package/dist/api_hatchet/client/utils.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client/utils.gen.js +0 -232
- package/dist/api_hatchet/client/utils.gen.js.map +0 -1
- package/dist/api_hatchet/client.gen.d.ts +0 -13
- package/dist/api_hatchet/client.gen.d.ts.map +0 -1
- package/dist/api_hatchet/client.gen.js +0 -4
- package/dist/api_hatchet/client.gen.js.map +0 -1
- package/dist/api_hatchet/core/auth.gen.d.ts +0 -19
- package/dist/api_hatchet/core/auth.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/auth.gen.js +0 -15
- package/dist/api_hatchet/core/auth.gen.js.map +0 -1
- package/dist/api_hatchet/core/bodySerializer.gen.d.ts +0 -26
- package/dist/api_hatchet/core/bodySerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/bodySerializer.gen.js +0 -58
- package/dist/api_hatchet/core/bodySerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/params.gen.d.ts +0 -44
- package/dist/api_hatchet/core/params.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/params.gen.js +0 -101
- package/dist/api_hatchet/core/params.gen.js.map +0 -1
- package/dist/api_hatchet/core/pathSerializer.gen.d.ts +0 -34
- package/dist/api_hatchet/core/pathSerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/pathSerializer.gen.js +0 -115
- package/dist/api_hatchet/core/pathSerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts +0 -19
- package/dist/api_hatchet/core/queryKeySerializer.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/queryKeySerializer.gen.js +0 -100
- package/dist/api_hatchet/core/queryKeySerializer.gen.js.map +0 -1
- package/dist/api_hatchet/core/serverSentEvents.gen.d.ts +0 -72
- package/dist/api_hatchet/core/serverSentEvents.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/serverSentEvents.gen.js +0 -138
- package/dist/api_hatchet/core/serverSentEvents.gen.js.map +0 -1
- package/dist/api_hatchet/core/types.gen.d.ts +0 -79
- package/dist/api_hatchet/core/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/types.gen.js +0 -3
- package/dist/api_hatchet/core/types.gen.js.map +0 -1
- package/dist/api_hatchet/core/utils.gen.d.ts +0 -20
- package/dist/api_hatchet/core/utils.gen.d.ts.map +0 -1
- package/dist/api_hatchet/core/utils.gen.js +0 -88
- package/dist/api_hatchet/core/utils.gen.js.map +0 -1
- package/dist/api_hatchet/index.d.ts +0 -3
- package/dist/api_hatchet/index.d.ts.map +0 -1
- package/dist/api_hatchet/index.js +0 -4
- package/dist/api_hatchet/index.js.map +0 -1
- package/dist/api_hatchet/schemas.gen.d.ts +0 -4068
- package/dist/api_hatchet/schemas.gen.d.ts.map +0 -1
- package/dist/api_hatchet/schemas.gen.js +0 -4743
- package/dist/api_hatchet/schemas.gen.js.map +0 -1
- package/dist/api_hatchet/sdk.gen.d.ts +0 -784
- package/dist/api_hatchet/sdk.gen.d.ts.map +0 -1
- package/dist/api_hatchet/sdk.gen.js +0 -1849
- package/dist/api_hatchet/sdk.gen.js.map +0 -1
- package/dist/api_hatchet/types.gen.d.ts +0 -6861
- package/dist/api_hatchet/types.gen.d.ts.map +0 -1
- package/dist/api_hatchet/types.gen.js +0 -209
- package/dist/api_hatchet/types.gen.js.map +0 -1
- package/dist/api_hatchet/zod.gen.d.ts +0 -10429
- package/dist/api_hatchet/zod.gen.d.ts.map +0 -1
- package/dist/api_hatchet/zod.gen.js +0 -2766
- package/dist/api_hatchet/zod.gen.js.map +0 -1
- package/dist/openclaw/uuid.d.ts +0 -6
- package/dist/openclaw/uuid.d.ts.map +0 -1
- package/dist/openclaw/uuid.js +0 -39
- package/dist/openclaw/uuid.js.map +0 -1
- package/dist/types/rpc.schemas.d.ts +0 -52
- package/dist/types/rpc.schemas.d.ts.map +0 -1
- package/dist/types/rpc.schemas.js +0 -108
- package/dist/types/rpc.schemas.js.map +0 -1
- package/src/api_hatchet/@tanstack/react-query.gen.ts +0 -3025
- package/src/api_hatchet/client/client.gen.ts +0 -311
- package/src/api_hatchet/client/index.ts +0 -25
- package/src/api_hatchet/client/types.gen.ts +0 -241
- package/src/api_hatchet/client/utils.gen.ts +0 -332
- package/src/api_hatchet/client.gen.ts +0 -16
- package/src/api_hatchet/core/auth.gen.ts +0 -42
- package/src/api_hatchet/core/bodySerializer.gen.ts +0 -100
- package/src/api_hatchet/core/params.gen.ts +0 -176
- package/src/api_hatchet/core/pathSerializer.gen.ts +0 -181
- package/src/api_hatchet/core/queryKeySerializer.gen.ts +0 -136
- package/src/api_hatchet/core/serverSentEvents.gen.ts +0 -266
- package/src/api_hatchet/core/types.gen.ts +0 -118
- package/src/api_hatchet/core/utils.gen.ts +0 -143
- package/src/api_hatchet/index.ts +0 -4
- package/src/api_hatchet/schemas.gen.ts +0 -4961
- package/src/api_hatchet/sdk.gen.ts +0 -1994
- package/src/api_hatchet/types.gen.ts +0 -7688
- package/src/api_hatchet/zod.gen.ts +0 -3230
- package/src/openclaw/uuid.ts +0 -48
- package/src/types/rpc.schemas.ts +0 -142
|
@@ -1,4743 +0,0 @@
|
|
|
1
|
-
// This file is auto-generated by @hey-api/openapi-ts
|
|
2
|
-
export const APIResourceMetaSchema = {
|
|
3
|
-
type: 'object',
|
|
4
|
-
properties: {
|
|
5
|
-
id: {
|
|
6
|
-
type: 'string',
|
|
7
|
-
description: 'the id of this resource, in UUID format',
|
|
8
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
9
|
-
minLength: 0,
|
|
10
|
-
maxLength: 36
|
|
11
|
-
},
|
|
12
|
-
createdAt: {
|
|
13
|
-
type: 'string',
|
|
14
|
-
description: 'the time that this resource was created',
|
|
15
|
-
format: 'date-time',
|
|
16
|
-
example: '2022-12-13T15:06:48.888358-05:00'
|
|
17
|
-
},
|
|
18
|
-
updatedAt: {
|
|
19
|
-
type: 'string',
|
|
20
|
-
description: 'the time that this resource was last updated',
|
|
21
|
-
format: 'date-time',
|
|
22
|
-
example: '2022-12-13T15:06:48.888358-05:00'
|
|
23
|
-
}
|
|
24
|
-
},
|
|
25
|
-
required: [
|
|
26
|
-
'id',
|
|
27
|
-
'createdAt',
|
|
28
|
-
'updatedAt'
|
|
29
|
-
]
|
|
30
|
-
};
|
|
31
|
-
export const V1TaskSummarySchema = {
|
|
32
|
-
properties: {
|
|
33
|
-
metadata: {
|
|
34
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
35
|
-
},
|
|
36
|
-
actionId: {
|
|
37
|
-
type: 'string',
|
|
38
|
-
description: 'The action ID of the task.'
|
|
39
|
-
},
|
|
40
|
-
retryCount: {
|
|
41
|
-
type: 'integer',
|
|
42
|
-
description: 'The number of retries of the task.'
|
|
43
|
-
},
|
|
44
|
-
attempt: {
|
|
45
|
-
type: 'integer',
|
|
46
|
-
description: 'The attempt number of the task.'
|
|
47
|
-
},
|
|
48
|
-
additionalMetadata: {
|
|
49
|
-
type: 'object',
|
|
50
|
-
description: 'Additional metadata for the task run.'
|
|
51
|
-
},
|
|
52
|
-
children: {
|
|
53
|
-
type: 'array',
|
|
54
|
-
items: {
|
|
55
|
-
$ref: '#/components/schemas/V1TaskSummary'
|
|
56
|
-
},
|
|
57
|
-
description: 'The list of children tasks'
|
|
58
|
-
},
|
|
59
|
-
createdAt: {
|
|
60
|
-
type: 'string',
|
|
61
|
-
format: 'date-time',
|
|
62
|
-
description: 'The timestamp the task was created.'
|
|
63
|
-
},
|
|
64
|
-
displayName: {
|
|
65
|
-
type: 'string',
|
|
66
|
-
description: 'The display name of the task run.'
|
|
67
|
-
},
|
|
68
|
-
duration: {
|
|
69
|
-
type: 'integer',
|
|
70
|
-
description: 'The duration of the task run, in milliseconds.'
|
|
71
|
-
},
|
|
72
|
-
errorMessage: {
|
|
73
|
-
type: 'string',
|
|
74
|
-
description: 'The error message of the task run (for the latest run)'
|
|
75
|
-
},
|
|
76
|
-
finishedAt: {
|
|
77
|
-
type: 'string',
|
|
78
|
-
format: 'date-time',
|
|
79
|
-
description: 'The timestamp the task run finished.'
|
|
80
|
-
},
|
|
81
|
-
input: {
|
|
82
|
-
type: 'object',
|
|
83
|
-
'x-go-type': 'openapi.NonNullableJSON',
|
|
84
|
-
'x-go-type-import': {
|
|
85
|
-
path: 'github.com/hatchet-dev/hatchet/api/v1/server/oas',
|
|
86
|
-
name: 'NonNullableJSON'
|
|
87
|
-
},
|
|
88
|
-
'x-nullable': false,
|
|
89
|
-
description: 'The input of the task run.'
|
|
90
|
-
},
|
|
91
|
-
numSpawnedChildren: {
|
|
92
|
-
type: 'integer',
|
|
93
|
-
description: 'The number of spawned children tasks'
|
|
94
|
-
},
|
|
95
|
-
output: {
|
|
96
|
-
type: 'object',
|
|
97
|
-
'x-go-type': 'openapi.NonNullableJSON',
|
|
98
|
-
'x-go-type-import': {
|
|
99
|
-
path: 'github.com/hatchet-dev/hatchet/api/v1/server/oas',
|
|
100
|
-
name: 'NonNullableJSON'
|
|
101
|
-
},
|
|
102
|
-
'x-nullable': false,
|
|
103
|
-
description: 'The output of the task run (for the latest run)'
|
|
104
|
-
},
|
|
105
|
-
status: {
|
|
106
|
-
$ref: '#/components/schemas/V1TaskStatus'
|
|
107
|
-
},
|
|
108
|
-
startedAt: {
|
|
109
|
-
type: 'string',
|
|
110
|
-
format: 'date-time',
|
|
111
|
-
description: 'The timestamp the task run started.'
|
|
112
|
-
},
|
|
113
|
-
stepId: {
|
|
114
|
-
type: 'string',
|
|
115
|
-
description: 'The step ID of the task.',
|
|
116
|
-
format: 'uuid',
|
|
117
|
-
minLength: 36,
|
|
118
|
-
maxLength: 36
|
|
119
|
-
},
|
|
120
|
-
taskExternalId: {
|
|
121
|
-
type: 'string',
|
|
122
|
-
description: 'The external ID of the task.',
|
|
123
|
-
format: 'uuid',
|
|
124
|
-
minLength: 36,
|
|
125
|
-
maxLength: 36
|
|
126
|
-
},
|
|
127
|
-
taskId: {
|
|
128
|
-
type: 'integer',
|
|
129
|
-
description: 'The ID of the task.'
|
|
130
|
-
},
|
|
131
|
-
taskInsertedAt: {
|
|
132
|
-
type: 'string',
|
|
133
|
-
format: 'date-time',
|
|
134
|
-
description: 'The timestamp the task was inserted.'
|
|
135
|
-
},
|
|
136
|
-
tenantId: {
|
|
137
|
-
type: 'string',
|
|
138
|
-
description: 'The ID of the tenant.',
|
|
139
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
140
|
-
minLength: 36,
|
|
141
|
-
maxLength: 36,
|
|
142
|
-
format: 'uuid'
|
|
143
|
-
},
|
|
144
|
-
type: {
|
|
145
|
-
$ref: '#/components/schemas/V1WorkflowType',
|
|
146
|
-
description: 'The type of the workflow (whether it\'s a DAG or a task)'
|
|
147
|
-
},
|
|
148
|
-
workflowId: {
|
|
149
|
-
type: 'string',
|
|
150
|
-
format: 'uuid'
|
|
151
|
-
},
|
|
152
|
-
workflowName: {
|
|
153
|
-
type: 'string'
|
|
154
|
-
},
|
|
155
|
-
workflowRunExternalId: {
|
|
156
|
-
type: 'string',
|
|
157
|
-
format: 'uuid',
|
|
158
|
-
description: 'The external ID of the workflow run'
|
|
159
|
-
},
|
|
160
|
-
workflowVersionId: {
|
|
161
|
-
type: 'string',
|
|
162
|
-
format: 'uuid',
|
|
163
|
-
description: 'The version ID of the workflow'
|
|
164
|
-
},
|
|
165
|
-
workflowConfig: {
|
|
166
|
-
type: 'object'
|
|
167
|
-
},
|
|
168
|
-
parentTaskExternalId: {
|
|
169
|
-
type: 'string',
|
|
170
|
-
description: 'The external ID of the parent task.',
|
|
171
|
-
format: 'uuid'
|
|
172
|
-
}
|
|
173
|
-
},
|
|
174
|
-
required: [
|
|
175
|
-
'metadata',
|
|
176
|
-
'createdAt',
|
|
177
|
-
'displayName',
|
|
178
|
-
'id',
|
|
179
|
-
'input',
|
|
180
|
-
'numSpawnedChildren',
|
|
181
|
-
'output',
|
|
182
|
-
'status',
|
|
183
|
-
'taskExternalId',
|
|
184
|
-
'taskId',
|
|
185
|
-
'taskInsertedAt',
|
|
186
|
-
'tenantId',
|
|
187
|
-
'type',
|
|
188
|
-
'workflowId',
|
|
189
|
-
'workflowRunExternalId'
|
|
190
|
-
]
|
|
191
|
-
};
|
|
192
|
-
export const V1TaskStatusSchema = {
|
|
193
|
-
type: 'string',
|
|
194
|
-
enum: [
|
|
195
|
-
'QUEUED',
|
|
196
|
-
'RUNNING',
|
|
197
|
-
'COMPLETED',
|
|
198
|
-
'CANCELLED',
|
|
199
|
-
'FAILED'
|
|
200
|
-
]
|
|
201
|
-
};
|
|
202
|
-
export const V1WorkflowTypeSchema = {
|
|
203
|
-
type: 'string',
|
|
204
|
-
enum: [
|
|
205
|
-
'DAG',
|
|
206
|
-
'TASK'
|
|
207
|
-
]
|
|
208
|
-
};
|
|
209
|
-
export const APIErrorSchema = {
|
|
210
|
-
type: 'object',
|
|
211
|
-
properties: {
|
|
212
|
-
code: {
|
|
213
|
-
type: 'integer',
|
|
214
|
-
description: 'a custom Hatchet error code',
|
|
215
|
-
format: 'uint64',
|
|
216
|
-
example: 1400
|
|
217
|
-
},
|
|
218
|
-
field: {
|
|
219
|
-
type: 'string',
|
|
220
|
-
description: 'the field that this error is associated with, if applicable',
|
|
221
|
-
example: 'name'
|
|
222
|
-
},
|
|
223
|
-
description: {
|
|
224
|
-
type: 'string',
|
|
225
|
-
description: 'a description for this error',
|
|
226
|
-
example: 'A descriptive error message'
|
|
227
|
-
},
|
|
228
|
-
docs_link: {
|
|
229
|
-
type: 'string',
|
|
230
|
-
description: 'a link to the documentation for this error, if it exists',
|
|
231
|
-
example: 'github.com/hatchet-dev/hatchet'
|
|
232
|
-
}
|
|
233
|
-
},
|
|
234
|
-
required: [
|
|
235
|
-
'description'
|
|
236
|
-
]
|
|
237
|
-
};
|
|
238
|
-
export const APIErrorsSchema = {
|
|
239
|
-
type: 'object',
|
|
240
|
-
properties: {
|
|
241
|
-
errors: {
|
|
242
|
-
type: 'array',
|
|
243
|
-
items: {
|
|
244
|
-
$ref: '#/components/schemas/APIError'
|
|
245
|
-
}
|
|
246
|
-
}
|
|
247
|
-
},
|
|
248
|
-
required: [
|
|
249
|
-
'errors'
|
|
250
|
-
]
|
|
251
|
-
};
|
|
252
|
-
export const PaginationResponseSchema = {
|
|
253
|
-
type: 'object',
|
|
254
|
-
properties: {
|
|
255
|
-
current_page: {
|
|
256
|
-
type: 'integer',
|
|
257
|
-
description: 'the current page',
|
|
258
|
-
format: 'int64',
|
|
259
|
-
example: 2
|
|
260
|
-
},
|
|
261
|
-
next_page: {
|
|
262
|
-
type: 'integer',
|
|
263
|
-
description: 'the next page',
|
|
264
|
-
format: 'int64',
|
|
265
|
-
example: 3
|
|
266
|
-
},
|
|
267
|
-
num_pages: {
|
|
268
|
-
type: 'integer',
|
|
269
|
-
description: 'the total number of pages for listing',
|
|
270
|
-
format: 'int64',
|
|
271
|
-
example: 10
|
|
272
|
-
}
|
|
273
|
-
},
|
|
274
|
-
example: {
|
|
275
|
-
next_page: 3,
|
|
276
|
-
num_pages: 10,
|
|
277
|
-
current_page: 2
|
|
278
|
-
}
|
|
279
|
-
};
|
|
280
|
-
export const V1TaskEventTypeSchema = {
|
|
281
|
-
type: 'string',
|
|
282
|
-
enum: [
|
|
283
|
-
'REQUEUED_NO_WORKER',
|
|
284
|
-
'REQUEUED_RATE_LIMIT',
|
|
285
|
-
'SCHEDULING_TIMED_OUT',
|
|
286
|
-
'ASSIGNED',
|
|
287
|
-
'STARTED',
|
|
288
|
-
'FINISHED',
|
|
289
|
-
'FAILED',
|
|
290
|
-
'RETRYING',
|
|
291
|
-
'CANCELLED',
|
|
292
|
-
'TIMED_OUT',
|
|
293
|
-
'REASSIGNED',
|
|
294
|
-
'SLOT_RELEASED',
|
|
295
|
-
'TIMEOUT_REFRESHED',
|
|
296
|
-
'RETRIED_BY_USER',
|
|
297
|
-
'SENT_TO_WORKER',
|
|
298
|
-
'RATE_LIMIT_ERROR',
|
|
299
|
-
'ACKNOWLEDGED',
|
|
300
|
-
'CREATED',
|
|
301
|
-
'QUEUED',
|
|
302
|
-
'SKIPPED'
|
|
303
|
-
]
|
|
304
|
-
};
|
|
305
|
-
export const V1TaskEventSchema = {
|
|
306
|
-
type: 'object',
|
|
307
|
-
properties: {
|
|
308
|
-
id: {
|
|
309
|
-
type: 'integer'
|
|
310
|
-
},
|
|
311
|
-
taskId: {
|
|
312
|
-
type: 'string',
|
|
313
|
-
format: 'uuid'
|
|
314
|
-
},
|
|
315
|
-
timestamp: {
|
|
316
|
-
type: 'string',
|
|
317
|
-
format: 'date-time'
|
|
318
|
-
},
|
|
319
|
-
eventType: {
|
|
320
|
-
$ref: '#/components/schemas/V1TaskEventType'
|
|
321
|
-
},
|
|
322
|
-
message: {
|
|
323
|
-
type: 'string'
|
|
324
|
-
},
|
|
325
|
-
errorMessage: {
|
|
326
|
-
type: 'string'
|
|
327
|
-
},
|
|
328
|
-
output: {
|
|
329
|
-
type: 'string'
|
|
330
|
-
},
|
|
331
|
-
workerId: {
|
|
332
|
-
type: 'string',
|
|
333
|
-
format: 'uuid'
|
|
334
|
-
},
|
|
335
|
-
taskDisplayName: {
|
|
336
|
-
type: 'string'
|
|
337
|
-
},
|
|
338
|
-
retryCount: {
|
|
339
|
-
type: 'integer',
|
|
340
|
-
description: 'The number of retries of the task.'
|
|
341
|
-
},
|
|
342
|
-
attempt: {
|
|
343
|
-
type: 'integer',
|
|
344
|
-
description: 'The attempt number of the task.'
|
|
345
|
-
}
|
|
346
|
-
},
|
|
347
|
-
required: [
|
|
348
|
-
'id',
|
|
349
|
-
'taskId',
|
|
350
|
-
'timestamp',
|
|
351
|
-
'eventType',
|
|
352
|
-
'message'
|
|
353
|
-
]
|
|
354
|
-
};
|
|
355
|
-
export const V1TaskEventListSchema = {
|
|
356
|
-
properties: {
|
|
357
|
-
pagination: {
|
|
358
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
359
|
-
},
|
|
360
|
-
rows: {
|
|
361
|
-
items: {
|
|
362
|
-
$ref: '#/components/schemas/V1TaskEvent'
|
|
363
|
-
},
|
|
364
|
-
type: 'array'
|
|
365
|
-
}
|
|
366
|
-
}
|
|
367
|
-
};
|
|
368
|
-
export const V1LogLineLevelSchema = {
|
|
369
|
-
type: 'string',
|
|
370
|
-
enum: [
|
|
371
|
-
'DEBUG',
|
|
372
|
-
'INFO',
|
|
373
|
-
'WARN',
|
|
374
|
-
'ERROR'
|
|
375
|
-
]
|
|
376
|
-
};
|
|
377
|
-
export const V1LogLineSchema = {
|
|
378
|
-
properties: {
|
|
379
|
-
createdAt: {
|
|
380
|
-
type: 'string',
|
|
381
|
-
format: 'date-time',
|
|
382
|
-
description: 'The creation date of the log line.'
|
|
383
|
-
},
|
|
384
|
-
message: {
|
|
385
|
-
type: 'string',
|
|
386
|
-
description: 'The log message.'
|
|
387
|
-
},
|
|
388
|
-
metadata: {
|
|
389
|
-
type: 'object',
|
|
390
|
-
description: 'The log metadata.'
|
|
391
|
-
},
|
|
392
|
-
retryCount: {
|
|
393
|
-
type: 'integer',
|
|
394
|
-
description: 'The retry count of the log line.'
|
|
395
|
-
},
|
|
396
|
-
attempt: {
|
|
397
|
-
type: 'integer',
|
|
398
|
-
description: 'The attempt number of the log line.'
|
|
399
|
-
},
|
|
400
|
-
level: {
|
|
401
|
-
$ref: '#/components/schemas/V1LogLineLevel',
|
|
402
|
-
description: 'The log level.'
|
|
403
|
-
}
|
|
404
|
-
},
|
|
405
|
-
required: [
|
|
406
|
-
'createdAt',
|
|
407
|
-
'message',
|
|
408
|
-
'metadata'
|
|
409
|
-
]
|
|
410
|
-
};
|
|
411
|
-
export const V1LogLineListSchema = {
|
|
412
|
-
properties: {
|
|
413
|
-
pagination: {
|
|
414
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
415
|
-
},
|
|
416
|
-
rows: {
|
|
417
|
-
items: {
|
|
418
|
-
$ref: '#/components/schemas/V1LogLine'
|
|
419
|
-
},
|
|
420
|
-
type: 'array'
|
|
421
|
-
}
|
|
422
|
-
}
|
|
423
|
-
};
|
|
424
|
-
export const V1TaskFilterSchema = {
|
|
425
|
-
type: 'object',
|
|
426
|
-
properties: {
|
|
427
|
-
since: {
|
|
428
|
-
type: 'string',
|
|
429
|
-
format: 'date-time'
|
|
430
|
-
},
|
|
431
|
-
until: {
|
|
432
|
-
type: 'string',
|
|
433
|
-
format: 'date-time'
|
|
434
|
-
},
|
|
435
|
-
statuses: {
|
|
436
|
-
type: 'array',
|
|
437
|
-
items: {
|
|
438
|
-
$ref: '#/components/schemas/V1TaskStatus'
|
|
439
|
-
}
|
|
440
|
-
},
|
|
441
|
-
workflowIds: {
|
|
442
|
-
type: 'array',
|
|
443
|
-
items: {
|
|
444
|
-
type: 'string',
|
|
445
|
-
format: 'uuid'
|
|
446
|
-
}
|
|
447
|
-
},
|
|
448
|
-
additionalMetadata: {
|
|
449
|
-
type: 'array',
|
|
450
|
-
items: {
|
|
451
|
-
type: 'string'
|
|
452
|
-
}
|
|
453
|
-
}
|
|
454
|
-
},
|
|
455
|
-
required: [
|
|
456
|
-
'since'
|
|
457
|
-
]
|
|
458
|
-
};
|
|
459
|
-
export const V1CancelTaskRequestSchema = {
|
|
460
|
-
type: 'object',
|
|
461
|
-
properties: {
|
|
462
|
-
externalIds: {
|
|
463
|
-
type: 'array',
|
|
464
|
-
description: 'A list of external IDs, which can refer to either task or workflow run external IDs',
|
|
465
|
-
items: {
|
|
466
|
-
type: 'string',
|
|
467
|
-
format: 'uuid',
|
|
468
|
-
minLength: 36,
|
|
469
|
-
maxLength: 36
|
|
470
|
-
}
|
|
471
|
-
},
|
|
472
|
-
filter: {
|
|
473
|
-
$ref: '#/components/schemas/V1TaskFilter'
|
|
474
|
-
}
|
|
475
|
-
}
|
|
476
|
-
};
|
|
477
|
-
export const V1CancelledTasksSchema = {
|
|
478
|
-
properties: {
|
|
479
|
-
ids: {
|
|
480
|
-
type: 'array',
|
|
481
|
-
description: 'The list of task external ids that were cancelled',
|
|
482
|
-
items: {
|
|
483
|
-
type: 'string',
|
|
484
|
-
format: 'uuid',
|
|
485
|
-
minLength: 36,
|
|
486
|
-
maxLength: 36
|
|
487
|
-
}
|
|
488
|
-
}
|
|
489
|
-
}
|
|
490
|
-
};
|
|
491
|
-
export const V1ReplayTaskRequestSchema = {
|
|
492
|
-
type: 'object',
|
|
493
|
-
properties: {
|
|
494
|
-
externalIds: {
|
|
495
|
-
type: 'array',
|
|
496
|
-
description: 'A list of external IDs, which can refer to either task or workflow run external IDs',
|
|
497
|
-
items: {
|
|
498
|
-
type: 'string',
|
|
499
|
-
format: 'uuid',
|
|
500
|
-
minLength: 36,
|
|
501
|
-
maxLength: 36
|
|
502
|
-
}
|
|
503
|
-
},
|
|
504
|
-
filter: {
|
|
505
|
-
$ref: '#/components/schemas/V1TaskFilter'
|
|
506
|
-
}
|
|
507
|
-
}
|
|
508
|
-
};
|
|
509
|
-
export const V1ReplayedTasksSchema = {
|
|
510
|
-
properties: {
|
|
511
|
-
ids: {
|
|
512
|
-
type: 'array',
|
|
513
|
-
description: 'The list of task external ids that were replayed',
|
|
514
|
-
items: {
|
|
515
|
-
type: 'string',
|
|
516
|
-
format: 'uuid',
|
|
517
|
-
minLength: 36,
|
|
518
|
-
maxLength: 36
|
|
519
|
-
}
|
|
520
|
-
}
|
|
521
|
-
}
|
|
522
|
-
};
|
|
523
|
-
export const V1DagChildrenSchema = {
|
|
524
|
-
type: 'object',
|
|
525
|
-
properties: {
|
|
526
|
-
dagId: {
|
|
527
|
-
type: 'string',
|
|
528
|
-
format: 'uuid'
|
|
529
|
-
},
|
|
530
|
-
children: {
|
|
531
|
-
type: 'array',
|
|
532
|
-
items: {
|
|
533
|
-
$ref: '#/components/schemas/V1TaskSummary'
|
|
534
|
-
}
|
|
535
|
-
}
|
|
536
|
-
}
|
|
537
|
-
};
|
|
538
|
-
export const V1TaskSummaryListSchema = {
|
|
539
|
-
type: 'object',
|
|
540
|
-
properties: {
|
|
541
|
-
pagination: {
|
|
542
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
543
|
-
},
|
|
544
|
-
rows: {
|
|
545
|
-
type: 'array',
|
|
546
|
-
items: {
|
|
547
|
-
$ref: '#/components/schemas/V1TaskSummary'
|
|
548
|
-
},
|
|
549
|
-
description: 'The list of tasks'
|
|
550
|
-
}
|
|
551
|
-
},
|
|
552
|
-
required: [
|
|
553
|
-
'pagination',
|
|
554
|
-
'rows'
|
|
555
|
-
]
|
|
556
|
-
};
|
|
557
|
-
export const V1WorkflowRunDisplayNameSchema = {
|
|
558
|
-
properties: {
|
|
559
|
-
metadata: {
|
|
560
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
561
|
-
},
|
|
562
|
-
displayName: {
|
|
563
|
-
type: 'string'
|
|
564
|
-
}
|
|
565
|
-
},
|
|
566
|
-
required: [
|
|
567
|
-
'metadata',
|
|
568
|
-
'displayName'
|
|
569
|
-
]
|
|
570
|
-
};
|
|
571
|
-
export const V1WorkflowRunDisplayNameListSchema = {
|
|
572
|
-
type: 'object',
|
|
573
|
-
properties: {
|
|
574
|
-
pagination: {
|
|
575
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
576
|
-
},
|
|
577
|
-
rows: {
|
|
578
|
-
type: 'array',
|
|
579
|
-
items: {
|
|
580
|
-
$ref: '#/components/schemas/V1WorkflowRunDisplayName'
|
|
581
|
-
},
|
|
582
|
-
description: 'The list of display names'
|
|
583
|
-
}
|
|
584
|
-
},
|
|
585
|
-
required: [
|
|
586
|
-
'pagination',
|
|
587
|
-
'rows'
|
|
588
|
-
]
|
|
589
|
-
};
|
|
590
|
-
export const V1WorkflowRunExternalIdListSchema = {
|
|
591
|
-
type: 'array',
|
|
592
|
-
items: {
|
|
593
|
-
type: 'string',
|
|
594
|
-
format: 'uuid',
|
|
595
|
-
minLength: 36,
|
|
596
|
-
maxLength: 36
|
|
597
|
-
},
|
|
598
|
-
description: 'The list of external IDs'
|
|
599
|
-
};
|
|
600
|
-
export const V1TriggerWorkflowRunRequestSchema = {
|
|
601
|
-
properties: {
|
|
602
|
-
workflowName: {
|
|
603
|
-
type: 'string',
|
|
604
|
-
description: 'The name of the workflow.'
|
|
605
|
-
},
|
|
606
|
-
input: {
|
|
607
|
-
type: 'object'
|
|
608
|
-
},
|
|
609
|
-
additionalMetadata: {
|
|
610
|
-
type: 'object'
|
|
611
|
-
},
|
|
612
|
-
priority: {
|
|
613
|
-
type: 'integer',
|
|
614
|
-
description: 'The priority of the workflow run.'
|
|
615
|
-
}
|
|
616
|
-
},
|
|
617
|
-
required: [
|
|
618
|
-
'workflowName',
|
|
619
|
-
'input'
|
|
620
|
-
]
|
|
621
|
-
};
|
|
622
|
-
export const V1WorkflowRunSchema = {
|
|
623
|
-
properties: {
|
|
624
|
-
metadata: {
|
|
625
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
626
|
-
},
|
|
627
|
-
status: {
|
|
628
|
-
$ref: '#/components/schemas/V1TaskStatus'
|
|
629
|
-
},
|
|
630
|
-
startedAt: {
|
|
631
|
-
type: 'string',
|
|
632
|
-
format: 'date-time',
|
|
633
|
-
description: 'The timestamp the task run started.'
|
|
634
|
-
},
|
|
635
|
-
finishedAt: {
|
|
636
|
-
type: 'string',
|
|
637
|
-
format: 'date-time',
|
|
638
|
-
description: 'The timestamp the task run finished.'
|
|
639
|
-
},
|
|
640
|
-
duration: {
|
|
641
|
-
type: 'integer',
|
|
642
|
-
description: 'The duration of the task run, in milliseconds.'
|
|
643
|
-
},
|
|
644
|
-
tenantId: {
|
|
645
|
-
type: 'string',
|
|
646
|
-
description: 'The ID of the tenant.',
|
|
647
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
648
|
-
minLength: 36,
|
|
649
|
-
maxLength: 36,
|
|
650
|
-
format: 'uuid'
|
|
651
|
-
},
|
|
652
|
-
additionalMetadata: {
|
|
653
|
-
type: 'object',
|
|
654
|
-
description: 'Additional metadata for the task run.'
|
|
655
|
-
},
|
|
656
|
-
displayName: {
|
|
657
|
-
type: 'string',
|
|
658
|
-
description: 'The display name of the task run.'
|
|
659
|
-
},
|
|
660
|
-
workflowId: {
|
|
661
|
-
type: 'string',
|
|
662
|
-
format: 'uuid'
|
|
663
|
-
},
|
|
664
|
-
output: {
|
|
665
|
-
type: 'object',
|
|
666
|
-
'x-go-type': 'openapi.NonNullableJSON',
|
|
667
|
-
'x-go-type-import': {
|
|
668
|
-
path: 'github.com/hatchet-dev/hatchet/api/v1/server/oas',
|
|
669
|
-
name: 'NonNullableJSON'
|
|
670
|
-
},
|
|
671
|
-
'x-nullable': false,
|
|
672
|
-
description: 'The output of the task run (for the latest run)'
|
|
673
|
-
},
|
|
674
|
-
errorMessage: {
|
|
675
|
-
type: 'string',
|
|
676
|
-
description: 'The error message of the task run (for the latest run)'
|
|
677
|
-
},
|
|
678
|
-
workflowVersionId: {
|
|
679
|
-
type: 'string',
|
|
680
|
-
format: 'uuid',
|
|
681
|
-
description: 'The ID of the workflow version.'
|
|
682
|
-
},
|
|
683
|
-
input: {
|
|
684
|
-
type: 'object',
|
|
685
|
-
'x-go-type': 'openapi.NonNullableJSON',
|
|
686
|
-
'x-go-type-import': {
|
|
687
|
-
path: 'github.com/hatchet-dev/hatchet/api/v1/server/oas',
|
|
688
|
-
name: 'NonNullableJSON'
|
|
689
|
-
},
|
|
690
|
-
'x-nullable': false,
|
|
691
|
-
description: 'The input of the task run.'
|
|
692
|
-
},
|
|
693
|
-
createdAt: {
|
|
694
|
-
type: 'string',
|
|
695
|
-
format: 'date-time',
|
|
696
|
-
description: 'The timestamp the task run was created.'
|
|
697
|
-
},
|
|
698
|
-
parentTaskExternalId: {
|
|
699
|
-
type: 'string',
|
|
700
|
-
format: 'uuid',
|
|
701
|
-
minLength: 36,
|
|
702
|
-
maxLength: 36
|
|
703
|
-
}
|
|
704
|
-
},
|
|
705
|
-
required: [
|
|
706
|
-
'metadata',
|
|
707
|
-
'id',
|
|
708
|
-
'status',
|
|
709
|
-
'tenantId',
|
|
710
|
-
'displayName',
|
|
711
|
-
'workflowId',
|
|
712
|
-
'output',
|
|
713
|
-
'input'
|
|
714
|
-
]
|
|
715
|
-
};
|
|
716
|
-
export const WorkflowRunShapeItemForWorkflowRunDetailsSchema = {
|
|
717
|
-
type: 'object',
|
|
718
|
-
properties: {
|
|
719
|
-
taskExternalId: {
|
|
720
|
-
type: 'string',
|
|
721
|
-
format: 'uuid',
|
|
722
|
-
minLength: 36,
|
|
723
|
-
maxLength: 36
|
|
724
|
-
},
|
|
725
|
-
stepId: {
|
|
726
|
-
type: 'string',
|
|
727
|
-
format: 'uuid',
|
|
728
|
-
minLength: 36,
|
|
729
|
-
maxLength: 36
|
|
730
|
-
},
|
|
731
|
-
childrenStepIds: {
|
|
732
|
-
type: 'array',
|
|
733
|
-
items: {
|
|
734
|
-
type: 'string',
|
|
735
|
-
format: 'uuid',
|
|
736
|
-
minLength: 36,
|
|
737
|
-
maxLength: 36
|
|
738
|
-
}
|
|
739
|
-
},
|
|
740
|
-
taskName: {
|
|
741
|
-
type: 'string'
|
|
742
|
-
}
|
|
743
|
-
},
|
|
744
|
-
required: [
|
|
745
|
-
'taskExternalId',
|
|
746
|
-
'stepId',
|
|
747
|
-
'childrenStepIds',
|
|
748
|
-
'taskName'
|
|
749
|
-
]
|
|
750
|
-
};
|
|
751
|
-
export const WorkflowRunShapeForWorkflowRunDetailsSchema = {
|
|
752
|
-
type: 'array',
|
|
753
|
-
items: {
|
|
754
|
-
$ref: '#/components/schemas/WorkflowRunShapeItemForWorkflowRunDetails'
|
|
755
|
-
}
|
|
756
|
-
};
|
|
757
|
-
export const V1WorkflowRunDetailsSchema = {
|
|
758
|
-
properties: {
|
|
759
|
-
run: {
|
|
760
|
-
$ref: '#/components/schemas/V1WorkflowRun'
|
|
761
|
-
},
|
|
762
|
-
taskEvents: {
|
|
763
|
-
type: 'array',
|
|
764
|
-
items: {
|
|
765
|
-
$ref: '#/components/schemas/V1TaskEvent'
|
|
766
|
-
},
|
|
767
|
-
description: 'The list of task events for the workflow run'
|
|
768
|
-
},
|
|
769
|
-
shape: {
|
|
770
|
-
$ref: '#/components/schemas/WorkflowRunShapeForWorkflowRunDetails'
|
|
771
|
-
},
|
|
772
|
-
tasks: {
|
|
773
|
-
type: 'array',
|
|
774
|
-
items: {
|
|
775
|
-
$ref: '#/components/schemas/V1TaskSummary'
|
|
776
|
-
}
|
|
777
|
-
},
|
|
778
|
-
workflowConfig: {
|
|
779
|
-
type: 'object'
|
|
780
|
-
}
|
|
781
|
-
},
|
|
782
|
-
required: [
|
|
783
|
-
'run',
|
|
784
|
-
'taskEvents',
|
|
785
|
-
'shape',
|
|
786
|
-
'tasks'
|
|
787
|
-
]
|
|
788
|
-
};
|
|
789
|
-
export const V1TaskTimingSchema = {
|
|
790
|
-
properties: {
|
|
791
|
-
metadata: {
|
|
792
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
793
|
-
},
|
|
794
|
-
depth: {
|
|
795
|
-
type: 'integer',
|
|
796
|
-
description: 'The depth of the task in the waterfall.'
|
|
797
|
-
},
|
|
798
|
-
status: {
|
|
799
|
-
$ref: '#/components/schemas/V1TaskStatus'
|
|
800
|
-
},
|
|
801
|
-
taskDisplayName: {
|
|
802
|
-
type: 'string',
|
|
803
|
-
description: 'The display name of the task run.'
|
|
804
|
-
},
|
|
805
|
-
taskExternalId: {
|
|
806
|
-
type: 'string',
|
|
807
|
-
description: 'The external ID of the task.',
|
|
808
|
-
format: 'uuid',
|
|
809
|
-
minLength: 36,
|
|
810
|
-
maxLength: 36
|
|
811
|
-
},
|
|
812
|
-
taskId: {
|
|
813
|
-
type: 'integer',
|
|
814
|
-
description: 'The ID of the task.'
|
|
815
|
-
},
|
|
816
|
-
taskInsertedAt: {
|
|
817
|
-
type: 'string',
|
|
818
|
-
format: 'date-time',
|
|
819
|
-
description: 'The timestamp the task was inserted.'
|
|
820
|
-
},
|
|
821
|
-
tenantId: {
|
|
822
|
-
type: 'string',
|
|
823
|
-
description: 'The ID of the tenant.',
|
|
824
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
825
|
-
minLength: 36,
|
|
826
|
-
maxLength: 36,
|
|
827
|
-
format: 'uuid'
|
|
828
|
-
},
|
|
829
|
-
parentTaskExternalId: {
|
|
830
|
-
type: 'string',
|
|
831
|
-
description: 'The external ID of the parent task.',
|
|
832
|
-
format: 'uuid',
|
|
833
|
-
minLength: 36,
|
|
834
|
-
maxLength: 36
|
|
835
|
-
},
|
|
836
|
-
queuedAt: {
|
|
837
|
-
type: 'string',
|
|
838
|
-
format: 'date-time',
|
|
839
|
-
description: 'The timestamp the task run was queued.'
|
|
840
|
-
},
|
|
841
|
-
startedAt: {
|
|
842
|
-
type: 'string',
|
|
843
|
-
format: 'date-time',
|
|
844
|
-
description: 'The timestamp the task run started.'
|
|
845
|
-
},
|
|
846
|
-
finishedAt: {
|
|
847
|
-
type: 'string',
|
|
848
|
-
format: 'date-time',
|
|
849
|
-
description: 'The timestamp the task run finished.'
|
|
850
|
-
},
|
|
851
|
-
workflowRunId: {
|
|
852
|
-
type: 'string',
|
|
853
|
-
format: 'uuid',
|
|
854
|
-
description: 'The external ID of the workflow run.'
|
|
855
|
-
},
|
|
856
|
-
retryCount: {
|
|
857
|
-
type: 'integer',
|
|
858
|
-
description: 'The number of retries of the task.'
|
|
859
|
-
},
|
|
860
|
-
attempt: {
|
|
861
|
-
type: 'integer',
|
|
862
|
-
description: 'The attempt number of the task.'
|
|
863
|
-
}
|
|
864
|
-
},
|
|
865
|
-
required: [
|
|
866
|
-
'metadata',
|
|
867
|
-
'depth',
|
|
868
|
-
'status',
|
|
869
|
-
'taskDisplayName',
|
|
870
|
-
'taskExternalId',
|
|
871
|
-
'taskId',
|
|
872
|
-
'taskInsertedAt',
|
|
873
|
-
'tenantId'
|
|
874
|
-
]
|
|
875
|
-
};
|
|
876
|
-
export const V1TaskTimingListSchema = {
|
|
877
|
-
type: 'object',
|
|
878
|
-
properties: {
|
|
879
|
-
pagination: {
|
|
880
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
881
|
-
},
|
|
882
|
-
rows: {
|
|
883
|
-
type: 'array',
|
|
884
|
-
items: {
|
|
885
|
-
$ref: '#/components/schemas/V1TaskTiming'
|
|
886
|
-
},
|
|
887
|
-
description: 'The list of task timings'
|
|
888
|
-
}
|
|
889
|
-
},
|
|
890
|
-
required: [
|
|
891
|
-
'pagination',
|
|
892
|
-
'rows'
|
|
893
|
-
]
|
|
894
|
-
};
|
|
895
|
-
export const V1TaskRunMetricSchema = {
|
|
896
|
-
type: 'object',
|
|
897
|
-
properties: {
|
|
898
|
-
status: {
|
|
899
|
-
$ref: '#/components/schemas/V1TaskStatus'
|
|
900
|
-
},
|
|
901
|
-
count: {
|
|
902
|
-
type: 'integer'
|
|
903
|
-
}
|
|
904
|
-
},
|
|
905
|
-
required: [
|
|
906
|
-
'status',
|
|
907
|
-
'count'
|
|
908
|
-
]
|
|
909
|
-
};
|
|
910
|
-
export const V1TaskRunMetricsSchema = {
|
|
911
|
-
type: 'array',
|
|
912
|
-
items: {
|
|
913
|
-
$ref: '#/components/schemas/V1TaskRunMetric'
|
|
914
|
-
}
|
|
915
|
-
};
|
|
916
|
-
export const V1TaskPointMetricSchema = {
|
|
917
|
-
type: 'object',
|
|
918
|
-
properties: {
|
|
919
|
-
time: {
|
|
920
|
-
type: 'string',
|
|
921
|
-
format: 'date-time'
|
|
922
|
-
},
|
|
923
|
-
SUCCEEDED: {
|
|
924
|
-
type: 'integer'
|
|
925
|
-
},
|
|
926
|
-
FAILED: {
|
|
927
|
-
type: 'integer'
|
|
928
|
-
}
|
|
929
|
-
},
|
|
930
|
-
required: [
|
|
931
|
-
'time',
|
|
932
|
-
'SUCCEEDED',
|
|
933
|
-
'FAILED'
|
|
934
|
-
]
|
|
935
|
-
};
|
|
936
|
-
export const V1TaskPointMetricsSchema = {
|
|
937
|
-
type: 'object',
|
|
938
|
-
properties: {
|
|
939
|
-
results: {
|
|
940
|
-
type: 'array',
|
|
941
|
-
items: {
|
|
942
|
-
$ref: '#/components/schemas/V1TaskPointMetric'
|
|
943
|
-
}
|
|
944
|
-
}
|
|
945
|
-
}
|
|
946
|
-
};
|
|
947
|
-
export const EventKeySchema = {
|
|
948
|
-
type: 'string',
|
|
949
|
-
description: 'The key for the event.'
|
|
950
|
-
};
|
|
951
|
-
export const TenantVersionSchema = {
|
|
952
|
-
enum: [
|
|
953
|
-
'V0',
|
|
954
|
-
'V1'
|
|
955
|
-
],
|
|
956
|
-
type: 'string'
|
|
957
|
-
};
|
|
958
|
-
export const TenantUIVersionSchema = {
|
|
959
|
-
enum: [
|
|
960
|
-
'V0',
|
|
961
|
-
'V1'
|
|
962
|
-
],
|
|
963
|
-
type: 'string'
|
|
964
|
-
};
|
|
965
|
-
export const TenantEnvironmentSchema = {
|
|
966
|
-
enum: [
|
|
967
|
-
'local',
|
|
968
|
-
'development',
|
|
969
|
-
'production'
|
|
970
|
-
],
|
|
971
|
-
type: 'string'
|
|
972
|
-
};
|
|
973
|
-
export const TenantSchema = {
|
|
974
|
-
properties: {
|
|
975
|
-
metadata: {
|
|
976
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
977
|
-
},
|
|
978
|
-
name: {
|
|
979
|
-
type: 'string',
|
|
980
|
-
description: 'The name of the tenant.'
|
|
981
|
-
},
|
|
982
|
-
slug: {
|
|
983
|
-
type: 'string',
|
|
984
|
-
description: 'The slug of the tenant.'
|
|
985
|
-
},
|
|
986
|
-
analyticsOptOut: {
|
|
987
|
-
type: 'boolean',
|
|
988
|
-
description: 'Whether the tenant has opted out of analytics.'
|
|
989
|
-
},
|
|
990
|
-
alertMemberEmails: {
|
|
991
|
-
type: 'boolean',
|
|
992
|
-
description: 'Whether to alert tenant members.'
|
|
993
|
-
},
|
|
994
|
-
version: {
|
|
995
|
-
$ref: '#/components/schemas/TenantVersion',
|
|
996
|
-
description: 'The version of the tenant.'
|
|
997
|
-
},
|
|
998
|
-
uiVersion: {
|
|
999
|
-
$ref: '#/components/schemas/TenantUIVersion',
|
|
1000
|
-
description: 'The UI of the tenant.'
|
|
1001
|
-
},
|
|
1002
|
-
environment: {
|
|
1003
|
-
$ref: '#/components/schemas/TenantEnvironment',
|
|
1004
|
-
description: 'The environment type of the tenant.'
|
|
1005
|
-
}
|
|
1006
|
-
},
|
|
1007
|
-
required: [
|
|
1008
|
-
'metadata',
|
|
1009
|
-
'name',
|
|
1010
|
-
'slug',
|
|
1011
|
-
'version'
|
|
1012
|
-
],
|
|
1013
|
-
type: 'object'
|
|
1014
|
-
};
|
|
1015
|
-
export const V1EventWorkflowRunSummarySchema = {
|
|
1016
|
-
properties: {
|
|
1017
|
-
running: {
|
|
1018
|
-
type: 'integer',
|
|
1019
|
-
format: 'int64',
|
|
1020
|
-
description: 'The number of running runs.'
|
|
1021
|
-
},
|
|
1022
|
-
queued: {
|
|
1023
|
-
type: 'integer',
|
|
1024
|
-
format: 'int64',
|
|
1025
|
-
description: 'The number of queued runs.'
|
|
1026
|
-
},
|
|
1027
|
-
succeeded: {
|
|
1028
|
-
type: 'integer',
|
|
1029
|
-
format: 'int64',
|
|
1030
|
-
description: 'The number of succeeded runs.'
|
|
1031
|
-
},
|
|
1032
|
-
failed: {
|
|
1033
|
-
type: 'integer',
|
|
1034
|
-
format: 'int64',
|
|
1035
|
-
description: 'The number of failed runs.'
|
|
1036
|
-
},
|
|
1037
|
-
cancelled: {
|
|
1038
|
-
type: 'integer',
|
|
1039
|
-
format: 'int64',
|
|
1040
|
-
description: 'The number of cancelled runs.'
|
|
1041
|
-
}
|
|
1042
|
-
},
|
|
1043
|
-
required: [
|
|
1044
|
-
'running',
|
|
1045
|
-
'queued',
|
|
1046
|
-
'succeeded',
|
|
1047
|
-
'failed',
|
|
1048
|
-
'cancelled'
|
|
1049
|
-
]
|
|
1050
|
-
};
|
|
1051
|
-
export const V1EventTriggeredRunSchema = {
|
|
1052
|
-
type: 'object',
|
|
1053
|
-
properties: {
|
|
1054
|
-
workflowRunId: {
|
|
1055
|
-
type: 'string',
|
|
1056
|
-
format: 'uuid',
|
|
1057
|
-
description: 'The external ID of the triggered run.',
|
|
1058
|
-
minLength: 36,
|
|
1059
|
-
maxLength: 36
|
|
1060
|
-
},
|
|
1061
|
-
filterId: {
|
|
1062
|
-
type: 'string',
|
|
1063
|
-
format: 'uuid',
|
|
1064
|
-
description: 'The ID of the filter that triggered the run, if applicable.'
|
|
1065
|
-
}
|
|
1066
|
-
},
|
|
1067
|
-
required: [
|
|
1068
|
-
'workflowRunId'
|
|
1069
|
-
]
|
|
1070
|
-
};
|
|
1071
|
-
export const V1EventSchema = {
|
|
1072
|
-
properties: {
|
|
1073
|
-
metadata: {
|
|
1074
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
1075
|
-
},
|
|
1076
|
-
key: {
|
|
1077
|
-
type: 'string',
|
|
1078
|
-
description: 'The key for the event.'
|
|
1079
|
-
},
|
|
1080
|
-
tenant: {
|
|
1081
|
-
$ref: '#/components/schemas/Tenant',
|
|
1082
|
-
description: 'The tenant associated with this event.'
|
|
1083
|
-
},
|
|
1084
|
-
tenantId: {
|
|
1085
|
-
type: 'string',
|
|
1086
|
-
description: 'The ID of the tenant associated with this event.'
|
|
1087
|
-
},
|
|
1088
|
-
workflowRunSummary: {
|
|
1089
|
-
$ref: '#/components/schemas/V1EventWorkflowRunSummary',
|
|
1090
|
-
description: 'The workflow run summary for this event.'
|
|
1091
|
-
},
|
|
1092
|
-
additionalMetadata: {
|
|
1093
|
-
type: 'object',
|
|
1094
|
-
description: 'Additional metadata for the event.'
|
|
1095
|
-
},
|
|
1096
|
-
payload: {
|
|
1097
|
-
type: 'object',
|
|
1098
|
-
description: 'The payload of the event, which can be any JSON-serializable object.'
|
|
1099
|
-
},
|
|
1100
|
-
scope: {
|
|
1101
|
-
type: 'string',
|
|
1102
|
-
description: 'The scope of the event, which can be used to filter or categorize events.'
|
|
1103
|
-
},
|
|
1104
|
-
seenAt: {
|
|
1105
|
-
type: 'string',
|
|
1106
|
-
format: 'date-time',
|
|
1107
|
-
description: 'The timestamp when the event was seen.'
|
|
1108
|
-
},
|
|
1109
|
-
triggeredRuns: {
|
|
1110
|
-
description: 'The external IDs of the runs that were triggered by this event.',
|
|
1111
|
-
type: 'array',
|
|
1112
|
-
items: {
|
|
1113
|
-
$ref: '#/components/schemas/V1EventTriggeredRun'
|
|
1114
|
-
}
|
|
1115
|
-
},
|
|
1116
|
-
triggeringWebhookName: {
|
|
1117
|
-
type: 'string',
|
|
1118
|
-
description: 'The name of the webhook that triggered this event, if applicable.'
|
|
1119
|
-
}
|
|
1120
|
-
},
|
|
1121
|
-
required: [
|
|
1122
|
-
'metadata',
|
|
1123
|
-
'key',
|
|
1124
|
-
'tenantId',
|
|
1125
|
-
'workflowRunSummary'
|
|
1126
|
-
]
|
|
1127
|
-
};
|
|
1128
|
-
export const V1EventListSchema = {
|
|
1129
|
-
properties: {
|
|
1130
|
-
pagination: {
|
|
1131
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
1132
|
-
},
|
|
1133
|
-
rows: {
|
|
1134
|
-
items: {
|
|
1135
|
-
$ref: '#/components/schemas/V1Event'
|
|
1136
|
-
},
|
|
1137
|
-
type: 'array'
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
};
|
|
1141
|
-
export const EventKeyListSchema = {
|
|
1142
|
-
properties: {
|
|
1143
|
-
pagination: {
|
|
1144
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
1145
|
-
},
|
|
1146
|
-
rows: {
|
|
1147
|
-
items: {
|
|
1148
|
-
$ref: '#/components/schemas/EventKey'
|
|
1149
|
-
},
|
|
1150
|
-
type: 'array'
|
|
1151
|
-
}
|
|
1152
|
-
}
|
|
1153
|
-
};
|
|
1154
|
-
export const V1FilterSchema = {
|
|
1155
|
-
properties: {
|
|
1156
|
-
metadata: {
|
|
1157
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
1158
|
-
},
|
|
1159
|
-
tenantId: {
|
|
1160
|
-
type: 'string',
|
|
1161
|
-
description: 'The ID of the tenant associated with this filter.'
|
|
1162
|
-
},
|
|
1163
|
-
workflowId: {
|
|
1164
|
-
type: 'string',
|
|
1165
|
-
format: 'uuid',
|
|
1166
|
-
minLength: 36,
|
|
1167
|
-
maxLength: 36,
|
|
1168
|
-
description: 'The workflow id associated with this filter.'
|
|
1169
|
-
},
|
|
1170
|
-
scope: {
|
|
1171
|
-
type: 'string',
|
|
1172
|
-
description: 'The scope associated with this filter. Used for subsetting candidate filters at evaluation time'
|
|
1173
|
-
},
|
|
1174
|
-
expression: {
|
|
1175
|
-
type: 'string',
|
|
1176
|
-
description: 'The expression associated with this filter.'
|
|
1177
|
-
},
|
|
1178
|
-
payload: {
|
|
1179
|
-
type: 'object',
|
|
1180
|
-
description: 'Additional payload data associated with the filter'
|
|
1181
|
-
},
|
|
1182
|
-
isDeclarative: {
|
|
1183
|
-
type: 'boolean',
|
|
1184
|
-
description: 'Whether the filter is declarative (true) or programmatic (false)'
|
|
1185
|
-
}
|
|
1186
|
-
},
|
|
1187
|
-
required: [
|
|
1188
|
-
'metadata',
|
|
1189
|
-
'tenantId',
|
|
1190
|
-
'workflowId',
|
|
1191
|
-
'scope',
|
|
1192
|
-
'expression',
|
|
1193
|
-
'payload'
|
|
1194
|
-
]
|
|
1195
|
-
};
|
|
1196
|
-
export const V1FilterListSchema = {
|
|
1197
|
-
type: 'object',
|
|
1198
|
-
properties: {
|
|
1199
|
-
pagination: {
|
|
1200
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
1201
|
-
},
|
|
1202
|
-
rows: {
|
|
1203
|
-
type: 'array',
|
|
1204
|
-
items: {
|
|
1205
|
-
$ref: '#/components/schemas/V1Filter'
|
|
1206
|
-
}
|
|
1207
|
-
}
|
|
1208
|
-
}
|
|
1209
|
-
};
|
|
1210
|
-
export const V1CreateFilterRequestSchema = {
|
|
1211
|
-
type: 'object',
|
|
1212
|
-
properties: {
|
|
1213
|
-
workflowId: {
|
|
1214
|
-
type: 'string',
|
|
1215
|
-
format: 'uuid',
|
|
1216
|
-
minLength: 36,
|
|
1217
|
-
maxLength: 36,
|
|
1218
|
-
description: 'The workflow id'
|
|
1219
|
-
},
|
|
1220
|
-
expression: {
|
|
1221
|
-
type: 'string',
|
|
1222
|
-
description: 'The expression for the filter'
|
|
1223
|
-
},
|
|
1224
|
-
scope: {
|
|
1225
|
-
type: 'string',
|
|
1226
|
-
description: 'The scope associated with this filter. Used for subsetting candidate filters at evaluation time'
|
|
1227
|
-
},
|
|
1228
|
-
payload: {
|
|
1229
|
-
type: 'object',
|
|
1230
|
-
description: 'The payload for the filter'
|
|
1231
|
-
}
|
|
1232
|
-
},
|
|
1233
|
-
required: [
|
|
1234
|
-
'workflowId',
|
|
1235
|
-
'scope',
|
|
1236
|
-
'expression'
|
|
1237
|
-
]
|
|
1238
|
-
};
|
|
1239
|
-
export const V1UpdateFilterRequestSchema = {
|
|
1240
|
-
type: 'object',
|
|
1241
|
-
properties: {
|
|
1242
|
-
expression: {
|
|
1243
|
-
type: 'string',
|
|
1244
|
-
description: 'The expression for the filter'
|
|
1245
|
-
},
|
|
1246
|
-
scope: {
|
|
1247
|
-
type: 'string',
|
|
1248
|
-
description: 'The scope associated with this filter. Used for subsetting candidate filters at evaluation time'
|
|
1249
|
-
},
|
|
1250
|
-
payload: {
|
|
1251
|
-
type: 'object',
|
|
1252
|
-
description: 'The payload for the filter'
|
|
1253
|
-
}
|
|
1254
|
-
}
|
|
1255
|
-
};
|
|
1256
|
-
export const V1WebhookSourceNameSchema = {
|
|
1257
|
-
type: 'string',
|
|
1258
|
-
enum: [
|
|
1259
|
-
'GENERIC',
|
|
1260
|
-
'GITHUB',
|
|
1261
|
-
'STRIPE',
|
|
1262
|
-
'SLACK',
|
|
1263
|
-
'LINEAR'
|
|
1264
|
-
]
|
|
1265
|
-
};
|
|
1266
|
-
export const V1WebhookAuthTypeSchema = {
|
|
1267
|
-
type: 'string',
|
|
1268
|
-
enum: [
|
|
1269
|
-
'BASIC',
|
|
1270
|
-
'API_KEY',
|
|
1271
|
-
'HMAC'
|
|
1272
|
-
]
|
|
1273
|
-
};
|
|
1274
|
-
export const V1WebhookSchema = {
|
|
1275
|
-
properties: {
|
|
1276
|
-
metadata: {
|
|
1277
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
1278
|
-
},
|
|
1279
|
-
tenantId: {
|
|
1280
|
-
type: 'string',
|
|
1281
|
-
description: 'The ID of the tenant associated with this webhook.'
|
|
1282
|
-
},
|
|
1283
|
-
name: {
|
|
1284
|
-
type: 'string',
|
|
1285
|
-
description: 'The name of the webhook'
|
|
1286
|
-
},
|
|
1287
|
-
sourceName: {
|
|
1288
|
-
$ref: '#/components/schemas/V1WebhookSourceName',
|
|
1289
|
-
description: 'The name of the source for this webhook'
|
|
1290
|
-
},
|
|
1291
|
-
eventKeyExpression: {
|
|
1292
|
-
type: 'string',
|
|
1293
|
-
description: 'The CEL expression to use for the event key. This is used to create the event key from the webhook payload.'
|
|
1294
|
-
},
|
|
1295
|
-
authType: {
|
|
1296
|
-
$ref: '#/components/schemas/V1WebhookAuthType',
|
|
1297
|
-
description: 'The type of authentication to use for the webhook'
|
|
1298
|
-
}
|
|
1299
|
-
},
|
|
1300
|
-
required: [
|
|
1301
|
-
'metadata',
|
|
1302
|
-
'tenantId',
|
|
1303
|
-
'name',
|
|
1304
|
-
'sourceName',
|
|
1305
|
-
'eventKeyExpression',
|
|
1306
|
-
'authType'
|
|
1307
|
-
]
|
|
1308
|
-
};
|
|
1309
|
-
export const V1WebhookListSchema = {
|
|
1310
|
-
type: 'object',
|
|
1311
|
-
properties: {
|
|
1312
|
-
pagination: {
|
|
1313
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
1314
|
-
},
|
|
1315
|
-
rows: {
|
|
1316
|
-
type: 'array',
|
|
1317
|
-
items: {
|
|
1318
|
-
$ref: '#/components/schemas/V1Webhook'
|
|
1319
|
-
}
|
|
1320
|
-
}
|
|
1321
|
-
}
|
|
1322
|
-
};
|
|
1323
|
-
export const V1CreateWebhookRequestBaseSchema = {
|
|
1324
|
-
type: 'object',
|
|
1325
|
-
properties: {
|
|
1326
|
-
sourceName: {
|
|
1327
|
-
$ref: '#/components/schemas/V1WebhookSourceName',
|
|
1328
|
-
description: 'The name of the source for this webhook'
|
|
1329
|
-
},
|
|
1330
|
-
name: {
|
|
1331
|
-
type: 'string',
|
|
1332
|
-
description: 'The name of the webhook'
|
|
1333
|
-
},
|
|
1334
|
-
eventKeyExpression: {
|
|
1335
|
-
type: 'string',
|
|
1336
|
-
description: 'The CEL expression to use for the event key. This is used to create the event key from the webhook payload.'
|
|
1337
|
-
}
|
|
1338
|
-
},
|
|
1339
|
-
required: [
|
|
1340
|
-
'name',
|
|
1341
|
-
'sourceName',
|
|
1342
|
-
'eventKeyExpression'
|
|
1343
|
-
]
|
|
1344
|
-
};
|
|
1345
|
-
export const V1WebhookBasicAuthSchema = {
|
|
1346
|
-
type: 'object',
|
|
1347
|
-
properties: {
|
|
1348
|
-
username: {
|
|
1349
|
-
type: 'string',
|
|
1350
|
-
description: 'The username for basic auth'
|
|
1351
|
-
},
|
|
1352
|
-
password: {
|
|
1353
|
-
type: 'string',
|
|
1354
|
-
description: 'The password for basic auth'
|
|
1355
|
-
}
|
|
1356
|
-
},
|
|
1357
|
-
required: [
|
|
1358
|
-
'username',
|
|
1359
|
-
'password'
|
|
1360
|
-
]
|
|
1361
|
-
};
|
|
1362
|
-
export const V1CreateWebhookRequestBasicAuthSchema = {
|
|
1363
|
-
allOf: [
|
|
1364
|
-
{
|
|
1365
|
-
$ref: '#/components/schemas/V1CreateWebhookRequestBase'
|
|
1366
|
-
},
|
|
1367
|
-
{
|
|
1368
|
-
type: 'object',
|
|
1369
|
-
properties: {
|
|
1370
|
-
authType: {
|
|
1371
|
-
type: 'string',
|
|
1372
|
-
enum: [
|
|
1373
|
-
'BASIC'
|
|
1374
|
-
],
|
|
1375
|
-
description: 'The type of authentication to use for the webhook'
|
|
1376
|
-
},
|
|
1377
|
-
auth: {
|
|
1378
|
-
$ref: '#/components/schemas/V1WebhookBasicAuth'
|
|
1379
|
-
}
|
|
1380
|
-
},
|
|
1381
|
-
required: [
|
|
1382
|
-
'authType',
|
|
1383
|
-
'auth'
|
|
1384
|
-
]
|
|
1385
|
-
}
|
|
1386
|
-
]
|
|
1387
|
-
};
|
|
1388
|
-
export const V1WebhookAPIKeyAuthSchema = {
|
|
1389
|
-
type: 'object',
|
|
1390
|
-
properties: {
|
|
1391
|
-
headerName: {
|
|
1392
|
-
type: 'string',
|
|
1393
|
-
description: 'The name of the header to use for the API key'
|
|
1394
|
-
},
|
|
1395
|
-
apiKey: {
|
|
1396
|
-
type: 'string',
|
|
1397
|
-
description: 'The API key to use for authentication'
|
|
1398
|
-
}
|
|
1399
|
-
},
|
|
1400
|
-
required: [
|
|
1401
|
-
'headerName',
|
|
1402
|
-
'apiKey'
|
|
1403
|
-
]
|
|
1404
|
-
};
|
|
1405
|
-
export const V1CreateWebhookRequestAPIKeySchema = {
|
|
1406
|
-
allOf: [
|
|
1407
|
-
{
|
|
1408
|
-
$ref: '#/components/schemas/V1CreateWebhookRequestBase'
|
|
1409
|
-
},
|
|
1410
|
-
{
|
|
1411
|
-
type: 'object',
|
|
1412
|
-
properties: {
|
|
1413
|
-
authType: {
|
|
1414
|
-
type: 'string',
|
|
1415
|
-
enum: [
|
|
1416
|
-
'API_KEY'
|
|
1417
|
-
],
|
|
1418
|
-
description: 'The type of authentication to use for the webhook'
|
|
1419
|
-
},
|
|
1420
|
-
auth: {
|
|
1421
|
-
$ref: '#/components/schemas/V1WebhookAPIKeyAuth'
|
|
1422
|
-
}
|
|
1423
|
-
},
|
|
1424
|
-
required: [
|
|
1425
|
-
'authType',
|
|
1426
|
-
'auth'
|
|
1427
|
-
]
|
|
1428
|
-
}
|
|
1429
|
-
]
|
|
1430
|
-
};
|
|
1431
|
-
export const V1WebhookHMACAlgorithmSchema = {
|
|
1432
|
-
type: 'string',
|
|
1433
|
-
enum: [
|
|
1434
|
-
'SHA1',
|
|
1435
|
-
'SHA256',
|
|
1436
|
-
'SHA512',
|
|
1437
|
-
'MD5'
|
|
1438
|
-
]
|
|
1439
|
-
};
|
|
1440
|
-
export const V1WebhookHMACEncodingSchema = {
|
|
1441
|
-
type: 'string',
|
|
1442
|
-
enum: [
|
|
1443
|
-
'HEX',
|
|
1444
|
-
'BASE64',
|
|
1445
|
-
'BASE64URL'
|
|
1446
|
-
]
|
|
1447
|
-
};
|
|
1448
|
-
export const V1WebhookHMACAuthSchema = {
|
|
1449
|
-
type: 'object',
|
|
1450
|
-
properties: {
|
|
1451
|
-
algorithm: {
|
|
1452
|
-
$ref: '#/components/schemas/V1WebhookHMACAlgorithm',
|
|
1453
|
-
description: 'The HMAC algorithm to use for the webhook'
|
|
1454
|
-
},
|
|
1455
|
-
encoding: {
|
|
1456
|
-
$ref: '#/components/schemas/V1WebhookHMACEncoding',
|
|
1457
|
-
description: 'The encoding to use for the HMAC signature'
|
|
1458
|
-
},
|
|
1459
|
-
signatureHeaderName: {
|
|
1460
|
-
type: 'string',
|
|
1461
|
-
description: 'The name of the header to use for the HMAC signature'
|
|
1462
|
-
},
|
|
1463
|
-
signingSecret: {
|
|
1464
|
-
type: 'string',
|
|
1465
|
-
description: 'The secret key used to sign the HMAC signature'
|
|
1466
|
-
}
|
|
1467
|
-
},
|
|
1468
|
-
required: [
|
|
1469
|
-
'algorithm',
|
|
1470
|
-
'encoding',
|
|
1471
|
-
'signatureHeaderName',
|
|
1472
|
-
'signingSecret'
|
|
1473
|
-
]
|
|
1474
|
-
};
|
|
1475
|
-
export const V1CreateWebhookRequestHMACSchema = {
|
|
1476
|
-
allOf: [
|
|
1477
|
-
{
|
|
1478
|
-
$ref: '#/components/schemas/V1CreateWebhookRequestBase'
|
|
1479
|
-
},
|
|
1480
|
-
{
|
|
1481
|
-
type: 'object',
|
|
1482
|
-
properties: {
|
|
1483
|
-
authType: {
|
|
1484
|
-
type: 'string',
|
|
1485
|
-
enum: [
|
|
1486
|
-
'HMAC'
|
|
1487
|
-
],
|
|
1488
|
-
description: 'The type of authentication to use for the webhook'
|
|
1489
|
-
},
|
|
1490
|
-
auth: {
|
|
1491
|
-
$ref: '#/components/schemas/V1WebhookHMACAuth'
|
|
1492
|
-
}
|
|
1493
|
-
},
|
|
1494
|
-
required: [
|
|
1495
|
-
'authType',
|
|
1496
|
-
'auth'
|
|
1497
|
-
]
|
|
1498
|
-
}
|
|
1499
|
-
]
|
|
1500
|
-
};
|
|
1501
|
-
export const V1CreateWebhookRequestSchema = {
|
|
1502
|
-
oneOf: [
|
|
1503
|
-
{
|
|
1504
|
-
$ref: '#/components/schemas/V1CreateWebhookRequestBasicAuth'
|
|
1505
|
-
},
|
|
1506
|
-
{
|
|
1507
|
-
$ref: '#/components/schemas/V1CreateWebhookRequestAPIKey'
|
|
1508
|
-
},
|
|
1509
|
-
{
|
|
1510
|
-
$ref: '#/components/schemas/V1CreateWebhookRequestHMAC'
|
|
1511
|
-
}
|
|
1512
|
-
]
|
|
1513
|
-
};
|
|
1514
|
-
export const V1UpdateWebhookRequestSchema = {
|
|
1515
|
-
type: 'object',
|
|
1516
|
-
properties: {
|
|
1517
|
-
eventKeyExpression: {
|
|
1518
|
-
type: 'string',
|
|
1519
|
-
description: 'The CEL expression to use for the event key. This is used to create the event key from the webhook payload.'
|
|
1520
|
-
}
|
|
1521
|
-
},
|
|
1522
|
-
required: [
|
|
1523
|
-
'eventKeyExpression'
|
|
1524
|
-
]
|
|
1525
|
-
};
|
|
1526
|
-
export const V1CELDebugRequestSchema = {
|
|
1527
|
-
type: 'object',
|
|
1528
|
-
properties: {
|
|
1529
|
-
expression: {
|
|
1530
|
-
type: 'string',
|
|
1531
|
-
description: 'The CEL expression to evaluate'
|
|
1532
|
-
},
|
|
1533
|
-
input: {
|
|
1534
|
-
type: 'object',
|
|
1535
|
-
description: 'The input, which simulates the workflow run input'
|
|
1536
|
-
},
|
|
1537
|
-
filterPayload: {
|
|
1538
|
-
type: 'object',
|
|
1539
|
-
description: 'The filter payload, which simulates a payload set on a previous-created filter'
|
|
1540
|
-
},
|
|
1541
|
-
additionalMetadata: {
|
|
1542
|
-
type: 'object',
|
|
1543
|
-
description: 'Additional metadata, which simulates metadata that could be sent with an event or a workflow run'
|
|
1544
|
-
}
|
|
1545
|
-
},
|
|
1546
|
-
required: [
|
|
1547
|
-
'expression',
|
|
1548
|
-
'input'
|
|
1549
|
-
]
|
|
1550
|
-
};
|
|
1551
|
-
export const V1CELDebugResponseStatusSchema = {
|
|
1552
|
-
type: 'string',
|
|
1553
|
-
description: 'The status of the CEL evaluation',
|
|
1554
|
-
enum: [
|
|
1555
|
-
'SUCCESS',
|
|
1556
|
-
'ERROR'
|
|
1557
|
-
]
|
|
1558
|
-
};
|
|
1559
|
-
export const V1CELDebugResponseSchema = {
|
|
1560
|
-
type: 'object',
|
|
1561
|
-
properties: {
|
|
1562
|
-
status: {
|
|
1563
|
-
$ref: '#/components/schemas/V1CELDebugResponseStatus'
|
|
1564
|
-
},
|
|
1565
|
-
output: {
|
|
1566
|
-
type: 'boolean',
|
|
1567
|
-
description: 'The result of the CEL expression evaluation, if successful'
|
|
1568
|
-
},
|
|
1569
|
-
error: {
|
|
1570
|
-
type: 'string',
|
|
1571
|
-
description: 'The error message if the evaluation failed'
|
|
1572
|
-
}
|
|
1573
|
-
},
|
|
1574
|
-
required: [
|
|
1575
|
-
'status'
|
|
1576
|
-
]
|
|
1577
|
-
};
|
|
1578
|
-
export const APIMetaAuthSchema = {
|
|
1579
|
-
type: 'object',
|
|
1580
|
-
properties: {
|
|
1581
|
-
schemes: {
|
|
1582
|
-
items: {
|
|
1583
|
-
type: 'string'
|
|
1584
|
-
},
|
|
1585
|
-
type: 'array',
|
|
1586
|
-
description: 'the supported types of authentication',
|
|
1587
|
-
example: [
|
|
1588
|
-
'basic',
|
|
1589
|
-
'google'
|
|
1590
|
-
]
|
|
1591
|
-
}
|
|
1592
|
-
}
|
|
1593
|
-
};
|
|
1594
|
-
export const APIMetaPosthogSchema = {
|
|
1595
|
-
type: 'object',
|
|
1596
|
-
properties: {
|
|
1597
|
-
apiKey: {
|
|
1598
|
-
type: 'string',
|
|
1599
|
-
description: 'the PostHog API key',
|
|
1600
|
-
example: 'phk_1234567890abcdef'
|
|
1601
|
-
},
|
|
1602
|
-
apiHost: {
|
|
1603
|
-
type: 'string',
|
|
1604
|
-
description: 'the PostHog API host',
|
|
1605
|
-
example: 'https://posthog.example.com'
|
|
1606
|
-
}
|
|
1607
|
-
}
|
|
1608
|
-
};
|
|
1609
|
-
export const APIMetaSchema = {
|
|
1610
|
-
type: 'object',
|
|
1611
|
-
properties: {
|
|
1612
|
-
auth: {
|
|
1613
|
-
$ref: '#/components/schemas/APIMetaAuth'
|
|
1614
|
-
},
|
|
1615
|
-
pylonAppId: {
|
|
1616
|
-
type: 'string',
|
|
1617
|
-
description: 'the Pylon app ID for usepylon.com chat support',
|
|
1618
|
-
example: '12345678-1234-1234-1234-123456789012'
|
|
1619
|
-
},
|
|
1620
|
-
posthog: {
|
|
1621
|
-
$ref: '#/components/schemas/APIMetaPosthog'
|
|
1622
|
-
},
|
|
1623
|
-
allowSignup: {
|
|
1624
|
-
type: 'boolean',
|
|
1625
|
-
description: 'whether or not users can sign up for this instance',
|
|
1626
|
-
example: true
|
|
1627
|
-
},
|
|
1628
|
-
allowInvites: {
|
|
1629
|
-
type: 'boolean',
|
|
1630
|
-
description: 'whether or not users can invite other users to this instance',
|
|
1631
|
-
example: true
|
|
1632
|
-
},
|
|
1633
|
-
allowCreateTenant: {
|
|
1634
|
-
type: 'boolean',
|
|
1635
|
-
description: 'whether or not users can create new tenants',
|
|
1636
|
-
example: true
|
|
1637
|
-
},
|
|
1638
|
-
allowChangePassword: {
|
|
1639
|
-
type: 'boolean',
|
|
1640
|
-
description: 'whether or not users can change their password',
|
|
1641
|
-
example: true
|
|
1642
|
-
}
|
|
1643
|
-
}
|
|
1644
|
-
};
|
|
1645
|
-
export const APIMetaIntegrationSchema = {
|
|
1646
|
-
type: 'object',
|
|
1647
|
-
properties: {
|
|
1648
|
-
name: {
|
|
1649
|
-
type: 'string',
|
|
1650
|
-
description: 'the name of the integration',
|
|
1651
|
-
example: 'github'
|
|
1652
|
-
},
|
|
1653
|
-
enabled: {
|
|
1654
|
-
type: 'boolean',
|
|
1655
|
-
description: 'whether this integration is enabled on the instance'
|
|
1656
|
-
}
|
|
1657
|
-
},
|
|
1658
|
-
required: [
|
|
1659
|
-
'name',
|
|
1660
|
-
'enabled'
|
|
1661
|
-
]
|
|
1662
|
-
};
|
|
1663
|
-
export const ListAPIMetaIntegrationSchema = {
|
|
1664
|
-
type: 'array',
|
|
1665
|
-
items: {
|
|
1666
|
-
$ref: '#/components/schemas/APIMetaIntegration'
|
|
1667
|
-
}
|
|
1668
|
-
};
|
|
1669
|
-
export const UserLoginRequestSchema = {
|
|
1670
|
-
properties: {
|
|
1671
|
-
email: {
|
|
1672
|
-
type: 'string',
|
|
1673
|
-
format: 'email',
|
|
1674
|
-
description: 'The email address of the user.',
|
|
1675
|
-
'x-oapi-codegen-extra-tags': {
|
|
1676
|
-
validate: 'required,email'
|
|
1677
|
-
}
|
|
1678
|
-
},
|
|
1679
|
-
password: {
|
|
1680
|
-
type: 'string',
|
|
1681
|
-
description: 'The password of the user.',
|
|
1682
|
-
'x-oapi-codegen-extra-tags': {
|
|
1683
|
-
validate: 'required,password'
|
|
1684
|
-
}
|
|
1685
|
-
}
|
|
1686
|
-
},
|
|
1687
|
-
required: [
|
|
1688
|
-
'email',
|
|
1689
|
-
'password'
|
|
1690
|
-
],
|
|
1691
|
-
type: 'object'
|
|
1692
|
-
};
|
|
1693
|
-
export const UserSchema = {
|
|
1694
|
-
properties: {
|
|
1695
|
-
metadata: {
|
|
1696
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
1697
|
-
},
|
|
1698
|
-
name: {
|
|
1699
|
-
type: 'string',
|
|
1700
|
-
description: 'The display name of the user.'
|
|
1701
|
-
},
|
|
1702
|
-
email: {
|
|
1703
|
-
type: 'string',
|
|
1704
|
-
format: 'email',
|
|
1705
|
-
description: 'The email address of the user.'
|
|
1706
|
-
},
|
|
1707
|
-
emailVerified: {
|
|
1708
|
-
type: 'boolean',
|
|
1709
|
-
description: 'Whether the user has verified their email address.'
|
|
1710
|
-
},
|
|
1711
|
-
hasPassword: {
|
|
1712
|
-
type: 'boolean',
|
|
1713
|
-
description: 'Whether the user has a password set.'
|
|
1714
|
-
},
|
|
1715
|
-
emailHash: {
|
|
1716
|
-
type: 'string',
|
|
1717
|
-
description: 'A hash of the user\'s email address for use with Pylon Support Chat'
|
|
1718
|
-
}
|
|
1719
|
-
},
|
|
1720
|
-
required: [
|
|
1721
|
-
'metadata',
|
|
1722
|
-
'email',
|
|
1723
|
-
'emailVerified'
|
|
1724
|
-
],
|
|
1725
|
-
type: 'object'
|
|
1726
|
-
};
|
|
1727
|
-
export const SNSIntegrationSchema = {
|
|
1728
|
-
type: 'object',
|
|
1729
|
-
properties: {
|
|
1730
|
-
metadata: {
|
|
1731
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
1732
|
-
},
|
|
1733
|
-
tenantId: {
|
|
1734
|
-
type: 'string',
|
|
1735
|
-
format: 'uuid',
|
|
1736
|
-
description: 'The unique identifier for the tenant that the SNS integration belongs to.'
|
|
1737
|
-
},
|
|
1738
|
-
topicArn: {
|
|
1739
|
-
type: 'string',
|
|
1740
|
-
description: 'The Amazon Resource Name (ARN) of the SNS topic.'
|
|
1741
|
-
},
|
|
1742
|
-
ingestUrl: {
|
|
1743
|
-
type: 'string',
|
|
1744
|
-
description: 'The URL to send SNS messages to.'
|
|
1745
|
-
}
|
|
1746
|
-
},
|
|
1747
|
-
required: [
|
|
1748
|
-
'metadata',
|
|
1749
|
-
'tenantId',
|
|
1750
|
-
'topicArn'
|
|
1751
|
-
]
|
|
1752
|
-
};
|
|
1753
|
-
export const ListSNSIntegrationsSchema = {
|
|
1754
|
-
type: 'object',
|
|
1755
|
-
properties: {
|
|
1756
|
-
pagination: {
|
|
1757
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
1758
|
-
},
|
|
1759
|
-
rows: {
|
|
1760
|
-
type: 'array',
|
|
1761
|
-
items: {
|
|
1762
|
-
$ref: '#/components/schemas/SNSIntegration'
|
|
1763
|
-
}
|
|
1764
|
-
}
|
|
1765
|
-
},
|
|
1766
|
-
required: [
|
|
1767
|
-
'pagination',
|
|
1768
|
-
'rows'
|
|
1769
|
-
]
|
|
1770
|
-
};
|
|
1771
|
-
export const CreateSNSIntegrationRequestSchema = {
|
|
1772
|
-
properties: {
|
|
1773
|
-
topicArn: {
|
|
1774
|
-
type: 'string',
|
|
1775
|
-
description: 'The Amazon Resource Name (ARN) of the SNS topic.',
|
|
1776
|
-
'x-oapi-codegen-extra-tags': {
|
|
1777
|
-
validate: 'required,min=1,max=256'
|
|
1778
|
-
}
|
|
1779
|
-
}
|
|
1780
|
-
},
|
|
1781
|
-
required: [
|
|
1782
|
-
'topicArn'
|
|
1783
|
-
],
|
|
1784
|
-
type: 'object'
|
|
1785
|
-
};
|
|
1786
|
-
export const TenantAlertEmailGroupSchema = {
|
|
1787
|
-
properties: {
|
|
1788
|
-
metadata: {
|
|
1789
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
1790
|
-
},
|
|
1791
|
-
emails: {
|
|
1792
|
-
type: 'array',
|
|
1793
|
-
items: {
|
|
1794
|
-
type: 'string'
|
|
1795
|
-
},
|
|
1796
|
-
description: 'A list of emails for users'
|
|
1797
|
-
}
|
|
1798
|
-
},
|
|
1799
|
-
required: [
|
|
1800
|
-
'metadata',
|
|
1801
|
-
'emails'
|
|
1802
|
-
],
|
|
1803
|
-
type: 'object'
|
|
1804
|
-
};
|
|
1805
|
-
export const TenantAlertEmailGroupListSchema = {
|
|
1806
|
-
properties: {
|
|
1807
|
-
pagination: {
|
|
1808
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
1809
|
-
},
|
|
1810
|
-
rows: {
|
|
1811
|
-
items: {
|
|
1812
|
-
$ref: '#/components/schemas/TenantAlertEmailGroup'
|
|
1813
|
-
},
|
|
1814
|
-
type: 'array',
|
|
1815
|
-
'x-go-name': 'Rows'
|
|
1816
|
-
}
|
|
1817
|
-
}
|
|
1818
|
-
};
|
|
1819
|
-
export const CreateTenantAlertEmailGroupRequestSchema = {
|
|
1820
|
-
properties: {
|
|
1821
|
-
emails: {
|
|
1822
|
-
type: 'array',
|
|
1823
|
-
items: {
|
|
1824
|
-
type: 'string'
|
|
1825
|
-
},
|
|
1826
|
-
description: 'A list of emails for users',
|
|
1827
|
-
'x-oapi-codegen-extra-tags': {
|
|
1828
|
-
validate: 'required,dive,email'
|
|
1829
|
-
}
|
|
1830
|
-
}
|
|
1831
|
-
},
|
|
1832
|
-
required: [
|
|
1833
|
-
'emails'
|
|
1834
|
-
],
|
|
1835
|
-
type: 'object'
|
|
1836
|
-
};
|
|
1837
|
-
export const TenantResourceSchema = {
|
|
1838
|
-
enum: [
|
|
1839
|
-
'WORKER',
|
|
1840
|
-
'WORKER_SLOT',
|
|
1841
|
-
'EVENT',
|
|
1842
|
-
'WORKFLOW_RUN',
|
|
1843
|
-
'TASK_RUN',
|
|
1844
|
-
'CRON',
|
|
1845
|
-
'SCHEDULE',
|
|
1846
|
-
'INCOMING_WEBHOOK'
|
|
1847
|
-
],
|
|
1848
|
-
type: 'string'
|
|
1849
|
-
};
|
|
1850
|
-
export const TenantResourceLimitSchema = {
|
|
1851
|
-
properties: {
|
|
1852
|
-
metadata: {
|
|
1853
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
1854
|
-
},
|
|
1855
|
-
resource: {
|
|
1856
|
-
$ref: '#/components/schemas/TenantResource',
|
|
1857
|
-
description: 'The resource associated with this limit.'
|
|
1858
|
-
},
|
|
1859
|
-
limitValue: {
|
|
1860
|
-
type: 'integer',
|
|
1861
|
-
description: 'The limit associated with this limit.'
|
|
1862
|
-
},
|
|
1863
|
-
alarmValue: {
|
|
1864
|
-
type: 'integer',
|
|
1865
|
-
description: 'The alarm value associated with this limit to warn of approaching limit value.'
|
|
1866
|
-
},
|
|
1867
|
-
value: {
|
|
1868
|
-
type: 'integer',
|
|
1869
|
-
description: 'The current value associated with this limit.'
|
|
1870
|
-
},
|
|
1871
|
-
window: {
|
|
1872
|
-
type: 'string',
|
|
1873
|
-
description: 'The meter window for the limit. (i.e. 1 day, 1 week, 1 month)'
|
|
1874
|
-
},
|
|
1875
|
-
lastRefill: {
|
|
1876
|
-
type: 'string',
|
|
1877
|
-
description: 'The last time the limit was refilled.',
|
|
1878
|
-
format: 'date-time'
|
|
1879
|
-
}
|
|
1880
|
-
},
|
|
1881
|
-
required: [
|
|
1882
|
-
'metadata',
|
|
1883
|
-
'tenantId',
|
|
1884
|
-
'resource',
|
|
1885
|
-
'limitValue',
|
|
1886
|
-
'value'
|
|
1887
|
-
],
|
|
1888
|
-
type: 'object'
|
|
1889
|
-
};
|
|
1890
|
-
export const TenantResourcePolicySchema = {
|
|
1891
|
-
properties: {
|
|
1892
|
-
limits: {
|
|
1893
|
-
type: 'array',
|
|
1894
|
-
items: {
|
|
1895
|
-
$ref: '#/components/schemas/TenantResourceLimit'
|
|
1896
|
-
},
|
|
1897
|
-
description: 'A list of resource limits for the tenant.'
|
|
1898
|
-
}
|
|
1899
|
-
},
|
|
1900
|
-
required: [
|
|
1901
|
-
'limits'
|
|
1902
|
-
],
|
|
1903
|
-
type: 'object'
|
|
1904
|
-
};
|
|
1905
|
-
export const UpdateTenantAlertEmailGroupRequestSchema = {
|
|
1906
|
-
properties: {
|
|
1907
|
-
emails: {
|
|
1908
|
-
type: 'array',
|
|
1909
|
-
items: {
|
|
1910
|
-
type: 'string'
|
|
1911
|
-
},
|
|
1912
|
-
description: 'A list of emails for users',
|
|
1913
|
-
'x-oapi-codegen-extra-tags': {
|
|
1914
|
-
validate: 'required,dive,email'
|
|
1915
|
-
}
|
|
1916
|
-
}
|
|
1917
|
-
},
|
|
1918
|
-
required: [
|
|
1919
|
-
'emails'
|
|
1920
|
-
],
|
|
1921
|
-
type: 'object'
|
|
1922
|
-
};
|
|
1923
|
-
export const SlackWebhookSchema = {
|
|
1924
|
-
type: 'object',
|
|
1925
|
-
properties: {
|
|
1926
|
-
metadata: {
|
|
1927
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
1928
|
-
},
|
|
1929
|
-
tenantId: {
|
|
1930
|
-
type: 'string',
|
|
1931
|
-
format: 'uuid',
|
|
1932
|
-
description: 'The unique identifier for the tenant that the SNS integration belongs to.'
|
|
1933
|
-
},
|
|
1934
|
-
teamName: {
|
|
1935
|
-
type: 'string',
|
|
1936
|
-
description: 'The team name associated with this slack webhook.'
|
|
1937
|
-
},
|
|
1938
|
-
teamId: {
|
|
1939
|
-
type: 'string',
|
|
1940
|
-
description: 'The team id associated with this slack webhook.'
|
|
1941
|
-
},
|
|
1942
|
-
channelName: {
|
|
1943
|
-
type: 'string',
|
|
1944
|
-
description: 'The channel name associated with this slack webhook.'
|
|
1945
|
-
},
|
|
1946
|
-
channelId: {
|
|
1947
|
-
type: 'string',
|
|
1948
|
-
description: 'The channel id associated with this slack webhook.'
|
|
1949
|
-
}
|
|
1950
|
-
},
|
|
1951
|
-
required: [
|
|
1952
|
-
'metadata',
|
|
1953
|
-
'tenantId',
|
|
1954
|
-
'teamName',
|
|
1955
|
-
'teamId',
|
|
1956
|
-
'channelName',
|
|
1957
|
-
'channelId'
|
|
1958
|
-
]
|
|
1959
|
-
};
|
|
1960
|
-
export const ListSlackWebhooksSchema = {
|
|
1961
|
-
type: 'object',
|
|
1962
|
-
properties: {
|
|
1963
|
-
pagination: {
|
|
1964
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
1965
|
-
},
|
|
1966
|
-
rows: {
|
|
1967
|
-
type: 'array',
|
|
1968
|
-
items: {
|
|
1969
|
-
$ref: '#/components/schemas/SlackWebhook'
|
|
1970
|
-
}
|
|
1971
|
-
}
|
|
1972
|
-
},
|
|
1973
|
-
required: [
|
|
1974
|
-
'pagination',
|
|
1975
|
-
'rows'
|
|
1976
|
-
]
|
|
1977
|
-
};
|
|
1978
|
-
export const UserChangePasswordRequestSchema = {
|
|
1979
|
-
properties: {
|
|
1980
|
-
password: {
|
|
1981
|
-
type: 'string',
|
|
1982
|
-
description: 'The password of the user.',
|
|
1983
|
-
'x-oapi-codegen-extra-tags': {
|
|
1984
|
-
validate: 'required,password'
|
|
1985
|
-
}
|
|
1986
|
-
},
|
|
1987
|
-
newPassword: {
|
|
1988
|
-
type: 'string',
|
|
1989
|
-
description: 'The new password for the user.',
|
|
1990
|
-
'x-oapi-codegen-extra-tags': {
|
|
1991
|
-
validate: 'required,password'
|
|
1992
|
-
}
|
|
1993
|
-
}
|
|
1994
|
-
},
|
|
1995
|
-
required: [
|
|
1996
|
-
'password',
|
|
1997
|
-
'newPassword'
|
|
1998
|
-
],
|
|
1999
|
-
type: 'object'
|
|
2000
|
-
};
|
|
2001
|
-
export const UserRegisterRequestSchema = {
|
|
2002
|
-
properties: {
|
|
2003
|
-
name: {
|
|
2004
|
-
type: 'string',
|
|
2005
|
-
description: 'The name of the user.'
|
|
2006
|
-
},
|
|
2007
|
-
email: {
|
|
2008
|
-
type: 'string',
|
|
2009
|
-
format: 'email',
|
|
2010
|
-
description: 'The email address of the user.',
|
|
2011
|
-
'x-oapi-codegen-extra-tags': {
|
|
2012
|
-
validate: 'required,email'
|
|
2013
|
-
}
|
|
2014
|
-
},
|
|
2015
|
-
password: {
|
|
2016
|
-
type: 'string',
|
|
2017
|
-
description: 'The password of the user.',
|
|
2018
|
-
'x-oapi-codegen-extra-tags': {
|
|
2019
|
-
validate: 'required,password'
|
|
2020
|
-
}
|
|
2021
|
-
}
|
|
2022
|
-
},
|
|
2023
|
-
required: [
|
|
2024
|
-
'name',
|
|
2025
|
-
'email',
|
|
2026
|
-
'password'
|
|
2027
|
-
],
|
|
2028
|
-
type: 'object'
|
|
2029
|
-
};
|
|
2030
|
-
export const UserTenantPublicSchema = {
|
|
2031
|
-
properties: {
|
|
2032
|
-
email: {
|
|
2033
|
-
type: 'string',
|
|
2034
|
-
format: 'email',
|
|
2035
|
-
description: 'The email address of the user.'
|
|
2036
|
-
},
|
|
2037
|
-
name: {
|
|
2038
|
-
type: 'string',
|
|
2039
|
-
description: 'The display name of the user.'
|
|
2040
|
-
}
|
|
2041
|
-
},
|
|
2042
|
-
required: [
|
|
2043
|
-
'email'
|
|
2044
|
-
],
|
|
2045
|
-
type: 'object'
|
|
2046
|
-
};
|
|
2047
|
-
export const TenantMemberRoleSchema = {
|
|
2048
|
-
enum: [
|
|
2049
|
-
'OWNER',
|
|
2050
|
-
'ADMIN',
|
|
2051
|
-
'MEMBER'
|
|
2052
|
-
],
|
|
2053
|
-
type: 'string'
|
|
2054
|
-
};
|
|
2055
|
-
export const TenantMemberSchema = {
|
|
2056
|
-
properties: {
|
|
2057
|
-
metadata: {
|
|
2058
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
2059
|
-
},
|
|
2060
|
-
user: {
|
|
2061
|
-
$ref: '#/components/schemas/UserTenantPublic',
|
|
2062
|
-
description: 'The user associated with this tenant member.'
|
|
2063
|
-
},
|
|
2064
|
-
role: {
|
|
2065
|
-
$ref: '#/components/schemas/TenantMemberRole',
|
|
2066
|
-
description: 'The role of the user in the tenant.'
|
|
2067
|
-
},
|
|
2068
|
-
tenant: {
|
|
2069
|
-
$ref: '#/components/schemas/Tenant',
|
|
2070
|
-
description: 'The tenant associated with this tenant member.'
|
|
2071
|
-
}
|
|
2072
|
-
},
|
|
2073
|
-
required: [
|
|
2074
|
-
'metadata',
|
|
2075
|
-
'user',
|
|
2076
|
-
'role'
|
|
2077
|
-
],
|
|
2078
|
-
type: 'object'
|
|
2079
|
-
};
|
|
2080
|
-
export const UserTenantMembershipsListSchema = {
|
|
2081
|
-
properties: {
|
|
2082
|
-
pagination: {
|
|
2083
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
2084
|
-
},
|
|
2085
|
-
rows: {
|
|
2086
|
-
items: {
|
|
2087
|
-
$ref: '#/components/schemas/TenantMember'
|
|
2088
|
-
},
|
|
2089
|
-
type: 'array',
|
|
2090
|
-
'x-go-name': 'Rows'
|
|
2091
|
-
}
|
|
2092
|
-
}
|
|
2093
|
-
};
|
|
2094
|
-
export const TenantInviteSchema = {
|
|
2095
|
-
properties: {
|
|
2096
|
-
metadata: {
|
|
2097
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
2098
|
-
},
|
|
2099
|
-
email: {
|
|
2100
|
-
type: 'string',
|
|
2101
|
-
description: 'The email of the user to invite.'
|
|
2102
|
-
},
|
|
2103
|
-
role: {
|
|
2104
|
-
$ref: '#/components/schemas/TenantMemberRole',
|
|
2105
|
-
description: 'The role of the user in the tenant.'
|
|
2106
|
-
},
|
|
2107
|
-
tenantId: {
|
|
2108
|
-
type: 'string',
|
|
2109
|
-
description: 'The tenant id associated with this tenant invite.'
|
|
2110
|
-
},
|
|
2111
|
-
tenantName: {
|
|
2112
|
-
type: 'string',
|
|
2113
|
-
description: 'The tenant name for the tenant.'
|
|
2114
|
-
},
|
|
2115
|
-
expires: {
|
|
2116
|
-
type: 'string',
|
|
2117
|
-
description: 'The time that this invite expires.',
|
|
2118
|
-
format: 'date-time'
|
|
2119
|
-
}
|
|
2120
|
-
},
|
|
2121
|
-
required: [
|
|
2122
|
-
'metadata',
|
|
2123
|
-
'email',
|
|
2124
|
-
'role',
|
|
2125
|
-
'expires',
|
|
2126
|
-
'tenantId'
|
|
2127
|
-
],
|
|
2128
|
-
type: 'object'
|
|
2129
|
-
};
|
|
2130
|
-
export const TenantInviteListSchema = {
|
|
2131
|
-
properties: {
|
|
2132
|
-
pagination: {
|
|
2133
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
2134
|
-
},
|
|
2135
|
-
rows: {
|
|
2136
|
-
items: {
|
|
2137
|
-
$ref: '#/components/schemas/TenantInvite'
|
|
2138
|
-
},
|
|
2139
|
-
type: 'array',
|
|
2140
|
-
'x-go-name': 'Rows'
|
|
2141
|
-
}
|
|
2142
|
-
}
|
|
2143
|
-
};
|
|
2144
|
-
export const AcceptInviteRequestSchema = {
|
|
2145
|
-
properties: {
|
|
2146
|
-
invite: {
|
|
2147
|
-
type: 'string',
|
|
2148
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
2149
|
-
minLength: 36,
|
|
2150
|
-
maxLength: 36,
|
|
2151
|
-
'x-oapi-codegen-extra-tags': {
|
|
2152
|
-
validate: 'required,uuid'
|
|
2153
|
-
}
|
|
2154
|
-
}
|
|
2155
|
-
},
|
|
2156
|
-
required: [
|
|
2157
|
-
'invite'
|
|
2158
|
-
],
|
|
2159
|
-
type: 'object'
|
|
2160
|
-
};
|
|
2161
|
-
export const RejectInviteRequestSchema = {
|
|
2162
|
-
properties: {
|
|
2163
|
-
invite: {
|
|
2164
|
-
type: 'string',
|
|
2165
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
2166
|
-
minLength: 36,
|
|
2167
|
-
maxLength: 36,
|
|
2168
|
-
'x-oapi-codegen-extra-tags': {
|
|
2169
|
-
validate: 'required,uuid'
|
|
2170
|
-
}
|
|
2171
|
-
}
|
|
2172
|
-
},
|
|
2173
|
-
required: [
|
|
2174
|
-
'invite'
|
|
2175
|
-
],
|
|
2176
|
-
type: 'object'
|
|
2177
|
-
};
|
|
2178
|
-
export const CreateTenantRequestSchema = {
|
|
2179
|
-
properties: {
|
|
2180
|
-
name: {
|
|
2181
|
-
type: 'string',
|
|
2182
|
-
description: 'The name of the tenant.',
|
|
2183
|
-
'x-oapi-codegen-extra-tags': {
|
|
2184
|
-
validate: 'required'
|
|
2185
|
-
}
|
|
2186
|
-
},
|
|
2187
|
-
slug: {
|
|
2188
|
-
type: 'string',
|
|
2189
|
-
description: 'The slug of the tenant.',
|
|
2190
|
-
'x-oapi-codegen-extra-tags': {
|
|
2191
|
-
validate: 'required,hatchetName'
|
|
2192
|
-
}
|
|
2193
|
-
},
|
|
2194
|
-
uiVersion: {
|
|
2195
|
-
$ref: '#/components/schemas/TenantUIVersion',
|
|
2196
|
-
description: 'The UI version of the tenant. Defaults to V0.'
|
|
2197
|
-
},
|
|
2198
|
-
engineVersion: {
|
|
2199
|
-
$ref: '#/components/schemas/TenantVersion',
|
|
2200
|
-
description: 'The engine version of the tenant. Defaults to V0.'
|
|
2201
|
-
},
|
|
2202
|
-
environment: {
|
|
2203
|
-
$ref: '#/components/schemas/TenantEnvironment',
|
|
2204
|
-
description: 'The environment type of the tenant.'
|
|
2205
|
-
},
|
|
2206
|
-
onboardingData: {
|
|
2207
|
-
type: 'object',
|
|
2208
|
-
description: 'Additional onboarding data to store with the tenant.',
|
|
2209
|
-
additionalProperties: true
|
|
2210
|
-
}
|
|
2211
|
-
},
|
|
2212
|
-
required: [
|
|
2213
|
-
'name',
|
|
2214
|
-
'slug'
|
|
2215
|
-
],
|
|
2216
|
-
type: 'object'
|
|
2217
|
-
};
|
|
2218
|
-
export const UpdateTenantRequestSchema = {
|
|
2219
|
-
properties: {
|
|
2220
|
-
name: {
|
|
2221
|
-
type: 'string',
|
|
2222
|
-
description: 'The name of the tenant.'
|
|
2223
|
-
},
|
|
2224
|
-
analyticsOptOut: {
|
|
2225
|
-
type: 'boolean',
|
|
2226
|
-
description: 'Whether the tenant has opted out of analytics.'
|
|
2227
|
-
},
|
|
2228
|
-
alertMemberEmails: {
|
|
2229
|
-
type: 'boolean',
|
|
2230
|
-
description: 'Whether to alert tenant members.'
|
|
2231
|
-
},
|
|
2232
|
-
enableWorkflowRunFailureAlerts: {
|
|
2233
|
-
type: 'boolean',
|
|
2234
|
-
description: 'Whether to send alerts when workflow runs fail.'
|
|
2235
|
-
},
|
|
2236
|
-
enableExpiringTokenAlerts: {
|
|
2237
|
-
type: 'boolean',
|
|
2238
|
-
description: 'Whether to enable alerts when tokens are approaching expiration.'
|
|
2239
|
-
},
|
|
2240
|
-
enableTenantResourceLimitAlerts: {
|
|
2241
|
-
type: 'boolean',
|
|
2242
|
-
description: 'Whether to enable alerts when tenant resources are approaching limits.'
|
|
2243
|
-
},
|
|
2244
|
-
maxAlertingFrequency: {
|
|
2245
|
-
type: 'string',
|
|
2246
|
-
description: 'The max frequency at which to alert.',
|
|
2247
|
-
'x-oapi-codegen-extra-tags': {
|
|
2248
|
-
validate: 'omitnil,duration'
|
|
2249
|
-
}
|
|
2250
|
-
},
|
|
2251
|
-
version: {
|
|
2252
|
-
$ref: '#/components/schemas/TenantVersion',
|
|
2253
|
-
description: 'The version of the tenant.'
|
|
2254
|
-
},
|
|
2255
|
-
uiVersion: {
|
|
2256
|
-
$ref: '#/components/schemas/TenantUIVersion',
|
|
2257
|
-
description: 'The UI of the tenant.'
|
|
2258
|
-
}
|
|
2259
|
-
},
|
|
2260
|
-
type: 'object'
|
|
2261
|
-
};
|
|
2262
|
-
export const TenantAlertingSettingsSchema = {
|
|
2263
|
-
properties: {
|
|
2264
|
-
metadata: {
|
|
2265
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
2266
|
-
},
|
|
2267
|
-
alertMemberEmails: {
|
|
2268
|
-
type: 'boolean',
|
|
2269
|
-
description: 'Whether to alert tenant members.'
|
|
2270
|
-
},
|
|
2271
|
-
enableWorkflowRunFailureAlerts: {
|
|
2272
|
-
type: 'boolean',
|
|
2273
|
-
description: 'Whether to send alerts when workflow runs fail.'
|
|
2274
|
-
},
|
|
2275
|
-
enableExpiringTokenAlerts: {
|
|
2276
|
-
type: 'boolean',
|
|
2277
|
-
description: 'Whether to enable alerts when tokens are approaching expiration.'
|
|
2278
|
-
},
|
|
2279
|
-
enableTenantResourceLimitAlerts: {
|
|
2280
|
-
type: 'boolean',
|
|
2281
|
-
description: 'Whether to enable alerts when tenant resources are approaching limits.'
|
|
2282
|
-
},
|
|
2283
|
-
maxAlertingFrequency: {
|
|
2284
|
-
type: 'string',
|
|
2285
|
-
description: 'The max frequency at which to alert.'
|
|
2286
|
-
},
|
|
2287
|
-
lastAlertedAt: {
|
|
2288
|
-
type: 'string',
|
|
2289
|
-
description: 'The last time an alert was sent.',
|
|
2290
|
-
format: 'date-time'
|
|
2291
|
-
}
|
|
2292
|
-
},
|
|
2293
|
-
required: [
|
|
2294
|
-
'metadata',
|
|
2295
|
-
'maxAlertingFrequency'
|
|
2296
|
-
],
|
|
2297
|
-
type: 'object'
|
|
2298
|
-
};
|
|
2299
|
-
export const CreateTenantInviteRequestSchema = {
|
|
2300
|
-
properties: {
|
|
2301
|
-
email: {
|
|
2302
|
-
type: 'string',
|
|
2303
|
-
description: 'The email of the user to invite.',
|
|
2304
|
-
'x-oapi-codegen-extra-tags': {
|
|
2305
|
-
validate: 'required,email'
|
|
2306
|
-
}
|
|
2307
|
-
},
|
|
2308
|
-
role: {
|
|
2309
|
-
$ref: '#/components/schemas/TenantMemberRole',
|
|
2310
|
-
description: 'The role of the user in the tenant.',
|
|
2311
|
-
'x-oapi-codegen-extra-tags': {
|
|
2312
|
-
validate: 'required'
|
|
2313
|
-
}
|
|
2314
|
-
}
|
|
2315
|
-
},
|
|
2316
|
-
required: [
|
|
2317
|
-
'email',
|
|
2318
|
-
'role'
|
|
2319
|
-
],
|
|
2320
|
-
type: 'object'
|
|
2321
|
-
};
|
|
2322
|
-
export const UpdateTenantInviteRequestSchema = {
|
|
2323
|
-
properties: {
|
|
2324
|
-
role: {
|
|
2325
|
-
$ref: '#/components/schemas/TenantMemberRole',
|
|
2326
|
-
description: 'The role of the user in the tenant.',
|
|
2327
|
-
'x-oapi-codegen-extra-tags': {
|
|
2328
|
-
validate: 'required'
|
|
2329
|
-
}
|
|
2330
|
-
}
|
|
2331
|
-
},
|
|
2332
|
-
required: [
|
|
2333
|
-
'role'
|
|
2334
|
-
],
|
|
2335
|
-
type: 'object'
|
|
2336
|
-
};
|
|
2337
|
-
export const APITokenSchema = {
|
|
2338
|
-
type: 'object',
|
|
2339
|
-
properties: {
|
|
2340
|
-
metadata: {
|
|
2341
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
2342
|
-
},
|
|
2343
|
-
name: {
|
|
2344
|
-
type: 'string',
|
|
2345
|
-
description: 'The name of the API token.',
|
|
2346
|
-
maxLength: 255
|
|
2347
|
-
},
|
|
2348
|
-
expiresAt: {
|
|
2349
|
-
type: 'string',
|
|
2350
|
-
format: 'date-time',
|
|
2351
|
-
description: 'When the API token expires.'
|
|
2352
|
-
}
|
|
2353
|
-
},
|
|
2354
|
-
required: [
|
|
2355
|
-
'metadata',
|
|
2356
|
-
'name',
|
|
2357
|
-
'expiresAt'
|
|
2358
|
-
]
|
|
2359
|
-
};
|
|
2360
|
-
export const ListAPITokensResponseSchema = {
|
|
2361
|
-
properties: {
|
|
2362
|
-
pagination: {
|
|
2363
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
2364
|
-
},
|
|
2365
|
-
rows: {
|
|
2366
|
-
items: {
|
|
2367
|
-
$ref: '#/components/schemas/APIToken'
|
|
2368
|
-
},
|
|
2369
|
-
type: 'array'
|
|
2370
|
-
}
|
|
2371
|
-
}
|
|
2372
|
-
};
|
|
2373
|
-
export const CreateAPITokenRequestSchema = {
|
|
2374
|
-
type: 'object',
|
|
2375
|
-
properties: {
|
|
2376
|
-
name: {
|
|
2377
|
-
type: 'string',
|
|
2378
|
-
description: 'A name for the API token.',
|
|
2379
|
-
maxLength: 255
|
|
2380
|
-
},
|
|
2381
|
-
expiresIn: {
|
|
2382
|
-
type: 'string',
|
|
2383
|
-
description: 'The duration for which the token is valid.',
|
|
2384
|
-
'x-oapi-codegen-extra-tags': {
|
|
2385
|
-
validate: 'omitnil,duration'
|
|
2386
|
-
}
|
|
2387
|
-
}
|
|
2388
|
-
},
|
|
2389
|
-
required: [
|
|
2390
|
-
'name'
|
|
2391
|
-
]
|
|
2392
|
-
};
|
|
2393
|
-
export const CreateAPITokenResponseSchema = {
|
|
2394
|
-
type: 'object',
|
|
2395
|
-
properties: {
|
|
2396
|
-
token: {
|
|
2397
|
-
type: 'string',
|
|
2398
|
-
description: 'The API token.'
|
|
2399
|
-
}
|
|
2400
|
-
},
|
|
2401
|
-
required: [
|
|
2402
|
-
'token'
|
|
2403
|
-
]
|
|
2404
|
-
};
|
|
2405
|
-
export const WorkflowIDSchema = {
|
|
2406
|
-
type: 'string',
|
|
2407
|
-
description: 'A workflow ID.'
|
|
2408
|
-
};
|
|
2409
|
-
export const QueueMetricsSchema = {
|
|
2410
|
-
type: 'object',
|
|
2411
|
-
properties: {
|
|
2412
|
-
numQueued: {
|
|
2413
|
-
type: 'integer',
|
|
2414
|
-
description: 'The number of items in the queue.'
|
|
2415
|
-
},
|
|
2416
|
-
numRunning: {
|
|
2417
|
-
type: 'integer',
|
|
2418
|
-
description: 'The number of items running.'
|
|
2419
|
-
},
|
|
2420
|
-
numPending: {
|
|
2421
|
-
type: 'integer',
|
|
2422
|
-
description: 'The number of items pending.'
|
|
2423
|
-
}
|
|
2424
|
-
},
|
|
2425
|
-
required: [
|
|
2426
|
-
'numQueued',
|
|
2427
|
-
'numRunning',
|
|
2428
|
-
'numPending'
|
|
2429
|
-
]
|
|
2430
|
-
};
|
|
2431
|
-
export const TenantQueueMetricsSchema = {
|
|
2432
|
-
properties: {
|
|
2433
|
-
total: {
|
|
2434
|
-
$ref: '#/components/schemas/QueueMetrics',
|
|
2435
|
-
description: 'The total queue metrics.'
|
|
2436
|
-
},
|
|
2437
|
-
workflow: {
|
|
2438
|
-
type: 'object',
|
|
2439
|
-
additionalProperties: {
|
|
2440
|
-
$ref: '#/components/schemas/QueueMetrics'
|
|
2441
|
-
}
|
|
2442
|
-
},
|
|
2443
|
-
queues: {
|
|
2444
|
-
type: 'object',
|
|
2445
|
-
additionalProperties: {
|
|
2446
|
-
type: 'integer'
|
|
2447
|
-
}
|
|
2448
|
-
}
|
|
2449
|
-
}
|
|
2450
|
-
};
|
|
2451
|
-
export const TenantStepRunQueueMetricsSchema = {
|
|
2452
|
-
properties: {
|
|
2453
|
-
queues: {
|
|
2454
|
-
type: 'object'
|
|
2455
|
-
}
|
|
2456
|
-
}
|
|
2457
|
-
};
|
|
2458
|
-
export const WorkflowRunStatusSchema = {
|
|
2459
|
-
type: 'string',
|
|
2460
|
-
enum: [
|
|
2461
|
-
'PENDING',
|
|
2462
|
-
'RUNNING',
|
|
2463
|
-
'SUCCEEDED',
|
|
2464
|
-
'FAILED',
|
|
2465
|
-
'CANCELLED',
|
|
2466
|
-
'QUEUED',
|
|
2467
|
-
'BACKOFF'
|
|
2468
|
-
]
|
|
2469
|
-
};
|
|
2470
|
-
export const WorkflowRunStatusListSchema = {
|
|
2471
|
-
type: 'array',
|
|
2472
|
-
items: {
|
|
2473
|
-
$ref: '#/components/schemas/WorkflowRunStatus'
|
|
2474
|
-
}
|
|
2475
|
-
};
|
|
2476
|
-
export const EventSearchSchema = {
|
|
2477
|
-
type: 'string'
|
|
2478
|
-
};
|
|
2479
|
-
export const EventOrderByFieldSchema = {
|
|
2480
|
-
type: 'string',
|
|
2481
|
-
enum: [
|
|
2482
|
-
'createdAt'
|
|
2483
|
-
]
|
|
2484
|
-
};
|
|
2485
|
-
export const EventOrderByDirectionSchema = {
|
|
2486
|
-
type: 'string',
|
|
2487
|
-
enum: [
|
|
2488
|
-
'asc',
|
|
2489
|
-
'desc'
|
|
2490
|
-
]
|
|
2491
|
-
};
|
|
2492
|
-
export const EventWorkflowRunSummarySchema = {
|
|
2493
|
-
properties: {
|
|
2494
|
-
pending: {
|
|
2495
|
-
type: 'integer',
|
|
2496
|
-
format: 'int64',
|
|
2497
|
-
description: 'The number of pending runs.'
|
|
2498
|
-
},
|
|
2499
|
-
running: {
|
|
2500
|
-
type: 'integer',
|
|
2501
|
-
format: 'int64',
|
|
2502
|
-
description: 'The number of running runs.'
|
|
2503
|
-
},
|
|
2504
|
-
queued: {
|
|
2505
|
-
type: 'integer',
|
|
2506
|
-
format: 'int64',
|
|
2507
|
-
description: 'The number of queued runs.'
|
|
2508
|
-
},
|
|
2509
|
-
succeeded: {
|
|
2510
|
-
type: 'integer',
|
|
2511
|
-
format: 'int64',
|
|
2512
|
-
description: 'The number of succeeded runs.'
|
|
2513
|
-
},
|
|
2514
|
-
failed: {
|
|
2515
|
-
type: 'integer',
|
|
2516
|
-
format: 'int64',
|
|
2517
|
-
description: 'The number of failed runs.'
|
|
2518
|
-
},
|
|
2519
|
-
cancelled: {
|
|
2520
|
-
type: 'integer',
|
|
2521
|
-
format: 'int64',
|
|
2522
|
-
description: 'The number of cancelled runs.'
|
|
2523
|
-
}
|
|
2524
|
-
}
|
|
2525
|
-
};
|
|
2526
|
-
export const EventSchema = {
|
|
2527
|
-
properties: {
|
|
2528
|
-
metadata: {
|
|
2529
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
2530
|
-
},
|
|
2531
|
-
key: {
|
|
2532
|
-
type: 'string',
|
|
2533
|
-
description: 'The key for the event.'
|
|
2534
|
-
},
|
|
2535
|
-
tenant: {
|
|
2536
|
-
$ref: '#/components/schemas/Tenant',
|
|
2537
|
-
description: 'The tenant associated with this event.'
|
|
2538
|
-
},
|
|
2539
|
-
tenantId: {
|
|
2540
|
-
type: 'string',
|
|
2541
|
-
description: 'The ID of the tenant associated with this event.'
|
|
2542
|
-
},
|
|
2543
|
-
workflowRunSummary: {
|
|
2544
|
-
$ref: '#/components/schemas/EventWorkflowRunSummary',
|
|
2545
|
-
description: 'The workflow run summary for this event.'
|
|
2546
|
-
},
|
|
2547
|
-
additionalMetadata: {
|
|
2548
|
-
type: 'object',
|
|
2549
|
-
description: 'Additional metadata for the event.'
|
|
2550
|
-
}
|
|
2551
|
-
},
|
|
2552
|
-
required: [
|
|
2553
|
-
'metadata',
|
|
2554
|
-
'key',
|
|
2555
|
-
'tenantId'
|
|
2556
|
-
]
|
|
2557
|
-
};
|
|
2558
|
-
export const EventListSchema = {
|
|
2559
|
-
properties: {
|
|
2560
|
-
pagination: {
|
|
2561
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
2562
|
-
},
|
|
2563
|
-
rows: {
|
|
2564
|
-
items: {
|
|
2565
|
-
$ref: '#/components/schemas/Event'
|
|
2566
|
-
},
|
|
2567
|
-
type: 'array'
|
|
2568
|
-
}
|
|
2569
|
-
}
|
|
2570
|
-
};
|
|
2571
|
-
export const CreateEventRequestSchema = {
|
|
2572
|
-
properties: {
|
|
2573
|
-
key: {
|
|
2574
|
-
type: 'string',
|
|
2575
|
-
description: 'The key for the event.'
|
|
2576
|
-
},
|
|
2577
|
-
data: {
|
|
2578
|
-
type: 'object',
|
|
2579
|
-
description: 'The data for the event.'
|
|
2580
|
-
},
|
|
2581
|
-
additionalMetadata: {
|
|
2582
|
-
type: 'object',
|
|
2583
|
-
description: 'Additional metadata for the event.'
|
|
2584
|
-
},
|
|
2585
|
-
priority: {
|
|
2586
|
-
type: 'integer',
|
|
2587
|
-
description: 'The priority of the event.',
|
|
2588
|
-
format: 'int32'
|
|
2589
|
-
},
|
|
2590
|
-
scope: {
|
|
2591
|
-
type: 'string',
|
|
2592
|
-
description: 'The scope for event filtering.'
|
|
2593
|
-
}
|
|
2594
|
-
},
|
|
2595
|
-
required: [
|
|
2596
|
-
'key',
|
|
2597
|
-
'data'
|
|
2598
|
-
]
|
|
2599
|
-
};
|
|
2600
|
-
export const BulkCreateEventRequestSchema = {
|
|
2601
|
-
properties: {
|
|
2602
|
-
events: {
|
|
2603
|
-
type: 'array',
|
|
2604
|
-
items: {
|
|
2605
|
-
$ref: '#/components/schemas/CreateEventRequest'
|
|
2606
|
-
}
|
|
2607
|
-
}
|
|
2608
|
-
},
|
|
2609
|
-
required: [
|
|
2610
|
-
'events'
|
|
2611
|
-
]
|
|
2612
|
-
};
|
|
2613
|
-
export const EventsSchema = {
|
|
2614
|
-
properties: {
|
|
2615
|
-
metadata: {
|
|
2616
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
2617
|
-
},
|
|
2618
|
-
events: {
|
|
2619
|
-
type: 'array',
|
|
2620
|
-
items: {
|
|
2621
|
-
$ref: '#/components/schemas/Event'
|
|
2622
|
-
},
|
|
2623
|
-
description: 'The events.'
|
|
2624
|
-
}
|
|
2625
|
-
},
|
|
2626
|
-
required: [
|
|
2627
|
-
'metadata',
|
|
2628
|
-
'events'
|
|
2629
|
-
]
|
|
2630
|
-
};
|
|
2631
|
-
export const ReplayEventRequestSchema = {
|
|
2632
|
-
properties: {
|
|
2633
|
-
eventIds: {
|
|
2634
|
-
type: 'array',
|
|
2635
|
-
items: {
|
|
2636
|
-
type: 'string',
|
|
2637
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
2638
|
-
minLength: 36,
|
|
2639
|
-
maxLength: 36,
|
|
2640
|
-
format: 'uuid'
|
|
2641
|
-
}
|
|
2642
|
-
}
|
|
2643
|
-
},
|
|
2644
|
-
required: [
|
|
2645
|
-
'eventIds'
|
|
2646
|
-
]
|
|
2647
|
-
};
|
|
2648
|
-
export const CancelEventRequestSchema = {
|
|
2649
|
-
properties: {
|
|
2650
|
-
eventIds: {
|
|
2651
|
-
type: 'array',
|
|
2652
|
-
items: {
|
|
2653
|
-
type: 'string',
|
|
2654
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
2655
|
-
minLength: 36,
|
|
2656
|
-
maxLength: 36,
|
|
2657
|
-
format: 'uuid'
|
|
2658
|
-
}
|
|
2659
|
-
}
|
|
2660
|
-
},
|
|
2661
|
-
required: [
|
|
2662
|
-
'eventIds'
|
|
2663
|
-
]
|
|
2664
|
-
};
|
|
2665
|
-
export const RateLimitOrderByFieldSchema = {
|
|
2666
|
-
type: 'string',
|
|
2667
|
-
enum: [
|
|
2668
|
-
'key',
|
|
2669
|
-
'value',
|
|
2670
|
-
'limitValue'
|
|
2671
|
-
]
|
|
2672
|
-
};
|
|
2673
|
-
export const RateLimitOrderByDirectionSchema = {
|
|
2674
|
-
type: 'string',
|
|
2675
|
-
enum: [
|
|
2676
|
-
'asc',
|
|
2677
|
-
'desc'
|
|
2678
|
-
]
|
|
2679
|
-
};
|
|
2680
|
-
export const RateLimitSchema = {
|
|
2681
|
-
properties: {
|
|
2682
|
-
key: {
|
|
2683
|
-
type: 'string',
|
|
2684
|
-
description: 'The key for the rate limit.'
|
|
2685
|
-
},
|
|
2686
|
-
tenantId: {
|
|
2687
|
-
type: 'string',
|
|
2688
|
-
description: 'The ID of the tenant associated with this rate limit.'
|
|
2689
|
-
},
|
|
2690
|
-
limitValue: {
|
|
2691
|
-
type: 'integer',
|
|
2692
|
-
description: 'The maximum number of requests allowed within the window.'
|
|
2693
|
-
},
|
|
2694
|
-
value: {
|
|
2695
|
-
type: 'integer',
|
|
2696
|
-
description: 'The current number of requests made within the window.'
|
|
2697
|
-
},
|
|
2698
|
-
window: {
|
|
2699
|
-
type: 'string',
|
|
2700
|
-
description: 'The window of time in which the limitValue is enforced.'
|
|
2701
|
-
},
|
|
2702
|
-
lastRefill: {
|
|
2703
|
-
type: 'string',
|
|
2704
|
-
format: 'date-time',
|
|
2705
|
-
example: '2022-12-13T15:06:48.888358-05:00',
|
|
2706
|
-
description: 'The last time the rate limit was refilled.'
|
|
2707
|
-
}
|
|
2708
|
-
},
|
|
2709
|
-
required: [
|
|
2710
|
-
'key',
|
|
2711
|
-
'tenantId',
|
|
2712
|
-
'limitValue',
|
|
2713
|
-
'value',
|
|
2714
|
-
'window',
|
|
2715
|
-
'lastRefill'
|
|
2716
|
-
]
|
|
2717
|
-
};
|
|
2718
|
-
export const RateLimitListSchema = {
|
|
2719
|
-
properties: {
|
|
2720
|
-
pagination: {
|
|
2721
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
2722
|
-
},
|
|
2723
|
-
rows: {
|
|
2724
|
-
items: {
|
|
2725
|
-
$ref: '#/components/schemas/RateLimit'
|
|
2726
|
-
},
|
|
2727
|
-
type: 'array'
|
|
2728
|
-
}
|
|
2729
|
-
}
|
|
2730
|
-
};
|
|
2731
|
-
export const TenantMemberListSchema = {
|
|
2732
|
-
properties: {
|
|
2733
|
-
pagination: {
|
|
2734
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
2735
|
-
},
|
|
2736
|
-
rows: {
|
|
2737
|
-
items: {
|
|
2738
|
-
$ref: '#/components/schemas/TenantMember'
|
|
2739
|
-
},
|
|
2740
|
-
type: 'array',
|
|
2741
|
-
'x-go-name': 'Rows'
|
|
2742
|
-
}
|
|
2743
|
-
}
|
|
2744
|
-
};
|
|
2745
|
-
export const UpdateTenantMemberRequestSchema = {
|
|
2746
|
-
properties: {
|
|
2747
|
-
role: {
|
|
2748
|
-
$ref: '#/components/schemas/TenantMemberRole',
|
|
2749
|
-
description: 'The role of the user in the tenant.',
|
|
2750
|
-
'x-oapi-codegen-extra-tags': {
|
|
2751
|
-
validate: 'required'
|
|
2752
|
-
}
|
|
2753
|
-
}
|
|
2754
|
-
},
|
|
2755
|
-
required: [
|
|
2756
|
-
'role'
|
|
2757
|
-
],
|
|
2758
|
-
type: 'object'
|
|
2759
|
-
};
|
|
2760
|
-
export const EventDataSchema = {
|
|
2761
|
-
properties: {
|
|
2762
|
-
data: {
|
|
2763
|
-
type: 'string',
|
|
2764
|
-
description: 'The data for the event (JSON bytes).'
|
|
2765
|
-
}
|
|
2766
|
-
},
|
|
2767
|
-
required: [
|
|
2768
|
-
'data'
|
|
2769
|
-
]
|
|
2770
|
-
};
|
|
2771
|
-
export const WorkflowSchema = {
|
|
2772
|
-
properties: {
|
|
2773
|
-
metadata: {
|
|
2774
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
2775
|
-
},
|
|
2776
|
-
name: {
|
|
2777
|
-
type: 'string',
|
|
2778
|
-
description: 'The name of the workflow.'
|
|
2779
|
-
},
|
|
2780
|
-
description: {
|
|
2781
|
-
type: 'string',
|
|
2782
|
-
description: 'The description of the workflow.'
|
|
2783
|
-
},
|
|
2784
|
-
isPaused: {
|
|
2785
|
-
type: 'boolean',
|
|
2786
|
-
description: 'Whether the workflow is paused.'
|
|
2787
|
-
},
|
|
2788
|
-
versions: {
|
|
2789
|
-
type: 'array',
|
|
2790
|
-
items: {
|
|
2791
|
-
$ref: '#/components/schemas/WorkflowVersionMeta'
|
|
2792
|
-
}
|
|
2793
|
-
},
|
|
2794
|
-
tags: {
|
|
2795
|
-
type: 'array',
|
|
2796
|
-
items: {
|
|
2797
|
-
$ref: '#/components/schemas/WorkflowTag'
|
|
2798
|
-
},
|
|
2799
|
-
description: 'The tags of the workflow.'
|
|
2800
|
-
},
|
|
2801
|
-
jobs: {
|
|
2802
|
-
type: 'array',
|
|
2803
|
-
items: {
|
|
2804
|
-
$ref: '#/components/schemas/Job'
|
|
2805
|
-
},
|
|
2806
|
-
description: 'The jobs of the workflow.'
|
|
2807
|
-
},
|
|
2808
|
-
tenantId: {
|
|
2809
|
-
type: 'string',
|
|
2810
|
-
description: 'The tenant id of the workflow.'
|
|
2811
|
-
}
|
|
2812
|
-
},
|
|
2813
|
-
required: [
|
|
2814
|
-
'metadata',
|
|
2815
|
-
'name',
|
|
2816
|
-
'tenantId'
|
|
2817
|
-
],
|
|
2818
|
-
type: 'object'
|
|
2819
|
-
};
|
|
2820
|
-
export const WorkflowVersionMetaSchema = {
|
|
2821
|
-
type: 'object',
|
|
2822
|
-
properties: {
|
|
2823
|
-
metadata: {
|
|
2824
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
2825
|
-
},
|
|
2826
|
-
version: {
|
|
2827
|
-
type: 'string',
|
|
2828
|
-
description: 'The version of the workflow.'
|
|
2829
|
-
},
|
|
2830
|
-
order: {
|
|
2831
|
-
type: 'integer',
|
|
2832
|
-
format: 'int32'
|
|
2833
|
-
},
|
|
2834
|
-
workflowId: {
|
|
2835
|
-
type: 'string'
|
|
2836
|
-
},
|
|
2837
|
-
workflow: {
|
|
2838
|
-
$ref: '#/components/schemas/Workflow'
|
|
2839
|
-
}
|
|
2840
|
-
},
|
|
2841
|
-
required: [
|
|
2842
|
-
'metadata',
|
|
2843
|
-
'version',
|
|
2844
|
-
'order',
|
|
2845
|
-
'workflowId'
|
|
2846
|
-
]
|
|
2847
|
-
};
|
|
2848
|
-
export const WorkflowTagSchema = {
|
|
2849
|
-
type: 'object',
|
|
2850
|
-
properties: {
|
|
2851
|
-
name: {
|
|
2852
|
-
type: 'string',
|
|
2853
|
-
description: 'The name of the workflow.'
|
|
2854
|
-
},
|
|
2855
|
-
color: {
|
|
2856
|
-
type: 'string',
|
|
2857
|
-
description: 'The description of the workflow.'
|
|
2858
|
-
}
|
|
2859
|
-
},
|
|
2860
|
-
required: [
|
|
2861
|
-
'name',
|
|
2862
|
-
'color'
|
|
2863
|
-
]
|
|
2864
|
-
};
|
|
2865
|
-
export const StepSchema = {
|
|
2866
|
-
type: 'object',
|
|
2867
|
-
properties: {
|
|
2868
|
-
metadata: {
|
|
2869
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
2870
|
-
},
|
|
2871
|
-
readableId: {
|
|
2872
|
-
type: 'string',
|
|
2873
|
-
description: 'The readable id of the step.'
|
|
2874
|
-
},
|
|
2875
|
-
tenantId: {
|
|
2876
|
-
type: 'string'
|
|
2877
|
-
},
|
|
2878
|
-
jobId: {
|
|
2879
|
-
type: 'string'
|
|
2880
|
-
},
|
|
2881
|
-
action: {
|
|
2882
|
-
type: 'string'
|
|
2883
|
-
},
|
|
2884
|
-
timeout: {
|
|
2885
|
-
type: 'string',
|
|
2886
|
-
description: 'The timeout of the step.'
|
|
2887
|
-
},
|
|
2888
|
-
children: {
|
|
2889
|
-
type: 'array',
|
|
2890
|
-
items: {
|
|
2891
|
-
type: 'string'
|
|
2892
|
-
}
|
|
2893
|
-
},
|
|
2894
|
-
parents: {
|
|
2895
|
-
type: 'array',
|
|
2896
|
-
items: {
|
|
2897
|
-
type: 'string'
|
|
2898
|
-
}
|
|
2899
|
-
}
|
|
2900
|
-
},
|
|
2901
|
-
required: [
|
|
2902
|
-
'metadata',
|
|
2903
|
-
'readableId',
|
|
2904
|
-
'tenantId',
|
|
2905
|
-
'jobId',
|
|
2906
|
-
'action',
|
|
2907
|
-
'nextId'
|
|
2908
|
-
]
|
|
2909
|
-
};
|
|
2910
|
-
export const JobSchema = {
|
|
2911
|
-
type: 'object',
|
|
2912
|
-
properties: {
|
|
2913
|
-
metadata: {
|
|
2914
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
2915
|
-
},
|
|
2916
|
-
tenantId: {
|
|
2917
|
-
type: 'string'
|
|
2918
|
-
},
|
|
2919
|
-
versionId: {
|
|
2920
|
-
type: 'string'
|
|
2921
|
-
},
|
|
2922
|
-
name: {
|
|
2923
|
-
type: 'string'
|
|
2924
|
-
},
|
|
2925
|
-
description: {
|
|
2926
|
-
type: 'string',
|
|
2927
|
-
description: 'The description of the job.'
|
|
2928
|
-
},
|
|
2929
|
-
steps: {
|
|
2930
|
-
type: 'array',
|
|
2931
|
-
items: {
|
|
2932
|
-
$ref: '#/components/schemas/Step'
|
|
2933
|
-
}
|
|
2934
|
-
},
|
|
2935
|
-
timeout: {
|
|
2936
|
-
type: 'string',
|
|
2937
|
-
description: 'The timeout of the job.'
|
|
2938
|
-
}
|
|
2939
|
-
},
|
|
2940
|
-
required: [
|
|
2941
|
-
'metadata',
|
|
2942
|
-
'tenantId',
|
|
2943
|
-
'versionId',
|
|
2944
|
-
'name',
|
|
2945
|
-
'steps'
|
|
2946
|
-
]
|
|
2947
|
-
};
|
|
2948
|
-
export const WorkflowListSchema = {
|
|
2949
|
-
type: 'object',
|
|
2950
|
-
properties: {
|
|
2951
|
-
metadata: {
|
|
2952
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
2953
|
-
},
|
|
2954
|
-
rows: {
|
|
2955
|
-
type: 'array',
|
|
2956
|
-
items: {
|
|
2957
|
-
$ref: '#/components/schemas/Workflow'
|
|
2958
|
-
}
|
|
2959
|
-
},
|
|
2960
|
-
pagination: {
|
|
2961
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
2962
|
-
}
|
|
2963
|
-
}
|
|
2964
|
-
};
|
|
2965
|
-
export const ScheduleWorkflowRunRequestSchema = {
|
|
2966
|
-
properties: {
|
|
2967
|
-
input: {
|
|
2968
|
-
type: 'object'
|
|
2969
|
-
},
|
|
2970
|
-
additionalMetadata: {
|
|
2971
|
-
type: 'object'
|
|
2972
|
-
},
|
|
2973
|
-
triggerAt: {
|
|
2974
|
-
type: 'string',
|
|
2975
|
-
format: 'date-time'
|
|
2976
|
-
},
|
|
2977
|
-
priority: {
|
|
2978
|
-
type: 'integer',
|
|
2979
|
-
minimum: 1,
|
|
2980
|
-
maximum: 3,
|
|
2981
|
-
format: 'int32'
|
|
2982
|
-
}
|
|
2983
|
-
},
|
|
2984
|
-
required: [
|
|
2985
|
-
'input',
|
|
2986
|
-
'additionalMetadata',
|
|
2987
|
-
'triggerAt'
|
|
2988
|
-
]
|
|
2989
|
-
};
|
|
2990
|
-
export const ScheduledWorkflowsMethodSchema = {
|
|
2991
|
-
type: 'string',
|
|
2992
|
-
enum: [
|
|
2993
|
-
'DEFAULT',
|
|
2994
|
-
'API'
|
|
2995
|
-
]
|
|
2996
|
-
};
|
|
2997
|
-
export const ScheduledWorkflowsSchema = {
|
|
2998
|
-
type: 'object',
|
|
2999
|
-
properties: {
|
|
3000
|
-
metadata: {
|
|
3001
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
3002
|
-
},
|
|
3003
|
-
tenantId: {
|
|
3004
|
-
type: 'string'
|
|
3005
|
-
},
|
|
3006
|
-
workflowVersionId: {
|
|
3007
|
-
type: 'string'
|
|
3008
|
-
},
|
|
3009
|
-
workflowId: {
|
|
3010
|
-
type: 'string'
|
|
3011
|
-
},
|
|
3012
|
-
workflowName: {
|
|
3013
|
-
type: 'string'
|
|
3014
|
-
},
|
|
3015
|
-
triggerAt: {
|
|
3016
|
-
type: 'string',
|
|
3017
|
-
format: 'date-time'
|
|
3018
|
-
},
|
|
3019
|
-
input: {
|
|
3020
|
-
type: 'object',
|
|
3021
|
-
additionalProperties: true
|
|
3022
|
-
},
|
|
3023
|
-
additionalMetadata: {
|
|
3024
|
-
type: 'object',
|
|
3025
|
-
additionalProperties: true
|
|
3026
|
-
},
|
|
3027
|
-
workflowRunCreatedAt: {
|
|
3028
|
-
type: 'string',
|
|
3029
|
-
format: 'date-time'
|
|
3030
|
-
},
|
|
3031
|
-
workflowRunName: {
|
|
3032
|
-
type: 'string'
|
|
3033
|
-
},
|
|
3034
|
-
workflowRunStatus: {
|
|
3035
|
-
$ref: '#/components/schemas/WorkflowRunStatus'
|
|
3036
|
-
},
|
|
3037
|
-
workflowRunId: {
|
|
3038
|
-
type: 'string',
|
|
3039
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
3040
|
-
minLength: 36,
|
|
3041
|
-
maxLength: 36,
|
|
3042
|
-
format: 'uuid'
|
|
3043
|
-
},
|
|
3044
|
-
method: {
|
|
3045
|
-
$ref: '#/components/schemas/ScheduledWorkflowsMethod'
|
|
3046
|
-
},
|
|
3047
|
-
priority: {
|
|
3048
|
-
type: 'integer',
|
|
3049
|
-
minimum: 1,
|
|
3050
|
-
maximum: 3,
|
|
3051
|
-
format: 'int32'
|
|
3052
|
-
}
|
|
3053
|
-
},
|
|
3054
|
-
required: [
|
|
3055
|
-
'metadata',
|
|
3056
|
-
'tenantId',
|
|
3057
|
-
'workflowVersionId',
|
|
3058
|
-
'workflowName',
|
|
3059
|
-
'workflowId',
|
|
3060
|
-
'triggerAt',
|
|
3061
|
-
'method'
|
|
3062
|
-
]
|
|
3063
|
-
};
|
|
3064
|
-
export const ScheduledWorkflowsOrderByFieldSchema = {
|
|
3065
|
-
type: 'string',
|
|
3066
|
-
enum: [
|
|
3067
|
-
'triggerAt',
|
|
3068
|
-
'createdAt'
|
|
3069
|
-
]
|
|
3070
|
-
};
|
|
3071
|
-
export const WorkflowRunOrderByDirectionSchema = {
|
|
3072
|
-
type: 'string',
|
|
3073
|
-
enum: [
|
|
3074
|
-
'ASC',
|
|
3075
|
-
'DESC'
|
|
3076
|
-
]
|
|
3077
|
-
};
|
|
3078
|
-
export const ScheduledRunStatusSchema = {
|
|
3079
|
-
type: 'string',
|
|
3080
|
-
enum: [
|
|
3081
|
-
'PENDING',
|
|
3082
|
-
'RUNNING',
|
|
3083
|
-
'SUCCEEDED',
|
|
3084
|
-
'FAILED',
|
|
3085
|
-
'CANCELLED',
|
|
3086
|
-
'QUEUED',
|
|
3087
|
-
'SCHEDULED'
|
|
3088
|
-
]
|
|
3089
|
-
};
|
|
3090
|
-
export const ScheduledWorkflowsListSchema = {
|
|
3091
|
-
type: 'object',
|
|
3092
|
-
properties: {
|
|
3093
|
-
rows: {
|
|
3094
|
-
type: 'array',
|
|
3095
|
-
items: {
|
|
3096
|
-
$ref: '#/components/schemas/ScheduledWorkflows'
|
|
3097
|
-
}
|
|
3098
|
-
},
|
|
3099
|
-
pagination: {
|
|
3100
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
3101
|
-
}
|
|
3102
|
-
}
|
|
3103
|
-
};
|
|
3104
|
-
export const CreateCronWorkflowTriggerRequestSchema = {
|
|
3105
|
-
properties: {
|
|
3106
|
-
input: {
|
|
3107
|
-
type: 'object'
|
|
3108
|
-
},
|
|
3109
|
-
additionalMetadata: {
|
|
3110
|
-
type: 'object'
|
|
3111
|
-
},
|
|
3112
|
-
cronName: {
|
|
3113
|
-
type: 'string'
|
|
3114
|
-
},
|
|
3115
|
-
cronExpression: {
|
|
3116
|
-
type: 'string'
|
|
3117
|
-
},
|
|
3118
|
-
priority: {
|
|
3119
|
-
type: 'integer',
|
|
3120
|
-
minimum: 1,
|
|
3121
|
-
maximum: 3,
|
|
3122
|
-
format: 'int32'
|
|
3123
|
-
}
|
|
3124
|
-
},
|
|
3125
|
-
required: [
|
|
3126
|
-
'input',
|
|
3127
|
-
'additionalMetadata',
|
|
3128
|
-
'cronName',
|
|
3129
|
-
'cronExpression'
|
|
3130
|
-
]
|
|
3131
|
-
};
|
|
3132
|
-
export const CronWorkflowsMethodSchema = {
|
|
3133
|
-
type: 'string',
|
|
3134
|
-
enum: [
|
|
3135
|
-
'DEFAULT',
|
|
3136
|
-
'API'
|
|
3137
|
-
]
|
|
3138
|
-
};
|
|
3139
|
-
export const CronWorkflowsSchema = {
|
|
3140
|
-
type: 'object',
|
|
3141
|
-
properties: {
|
|
3142
|
-
metadata: {
|
|
3143
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
3144
|
-
},
|
|
3145
|
-
tenantId: {
|
|
3146
|
-
type: 'string'
|
|
3147
|
-
},
|
|
3148
|
-
workflowVersionId: {
|
|
3149
|
-
type: 'string'
|
|
3150
|
-
},
|
|
3151
|
-
workflowId: {
|
|
3152
|
-
type: 'string'
|
|
3153
|
-
},
|
|
3154
|
-
workflowName: {
|
|
3155
|
-
type: 'string'
|
|
3156
|
-
},
|
|
3157
|
-
cron: {
|
|
3158
|
-
type: 'string'
|
|
3159
|
-
},
|
|
3160
|
-
name: {
|
|
3161
|
-
type: 'string'
|
|
3162
|
-
},
|
|
3163
|
-
input: {
|
|
3164
|
-
type: 'object',
|
|
3165
|
-
additionalProperties: true
|
|
3166
|
-
},
|
|
3167
|
-
additionalMetadata: {
|
|
3168
|
-
type: 'object',
|
|
3169
|
-
additionalProperties: true
|
|
3170
|
-
},
|
|
3171
|
-
enabled: {
|
|
3172
|
-
type: 'boolean'
|
|
3173
|
-
},
|
|
3174
|
-
method: {
|
|
3175
|
-
$ref: '#/components/schemas/CronWorkflowsMethod'
|
|
3176
|
-
},
|
|
3177
|
-
priority: {
|
|
3178
|
-
type: 'integer',
|
|
3179
|
-
minimum: 1,
|
|
3180
|
-
maximum: 3,
|
|
3181
|
-
format: 'int32'
|
|
3182
|
-
}
|
|
3183
|
-
},
|
|
3184
|
-
required: [
|
|
3185
|
-
'metadata',
|
|
3186
|
-
'tenantId',
|
|
3187
|
-
'workflowVersionId',
|
|
3188
|
-
'workflowName',
|
|
3189
|
-
'workflowId',
|
|
3190
|
-
'cron',
|
|
3191
|
-
'enabled',
|
|
3192
|
-
'method'
|
|
3193
|
-
]
|
|
3194
|
-
};
|
|
3195
|
-
export const CronWorkflowsOrderByFieldSchema = {
|
|
3196
|
-
type: 'string',
|
|
3197
|
-
enum: [
|
|
3198
|
-
'name',
|
|
3199
|
-
'createdAt'
|
|
3200
|
-
]
|
|
3201
|
-
};
|
|
3202
|
-
export const CronWorkflowsListSchema = {
|
|
3203
|
-
type: 'object',
|
|
3204
|
-
properties: {
|
|
3205
|
-
rows: {
|
|
3206
|
-
type: 'array',
|
|
3207
|
-
items: {
|
|
3208
|
-
$ref: '#/components/schemas/CronWorkflows'
|
|
3209
|
-
}
|
|
3210
|
-
},
|
|
3211
|
-
pagination: {
|
|
3212
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
3213
|
-
}
|
|
3214
|
-
}
|
|
3215
|
-
};
|
|
3216
|
-
export const UpdateCronWorkflowTriggerRequestSchema = {
|
|
3217
|
-
properties: {
|
|
3218
|
-
enabled: {
|
|
3219
|
-
type: 'boolean'
|
|
3220
|
-
}
|
|
3221
|
-
}
|
|
3222
|
-
};
|
|
3223
|
-
export const WorkflowRunsCancelRequestSchema = {
|
|
3224
|
-
type: 'object',
|
|
3225
|
-
properties: {
|
|
3226
|
-
workflowRunIds: {
|
|
3227
|
-
type: 'array',
|
|
3228
|
-
items: {
|
|
3229
|
-
type: 'string',
|
|
3230
|
-
format: 'uuid',
|
|
3231
|
-
minLength: 36,
|
|
3232
|
-
maxLength: 36
|
|
3233
|
-
}
|
|
3234
|
-
}
|
|
3235
|
-
},
|
|
3236
|
-
required: [
|
|
3237
|
-
'workflowRunIds'
|
|
3238
|
-
]
|
|
3239
|
-
};
|
|
3240
|
-
export const WorkflowUpdateRequestSchema = {
|
|
3241
|
-
type: 'object',
|
|
3242
|
-
properties: {
|
|
3243
|
-
isPaused: {
|
|
3244
|
-
type: 'boolean',
|
|
3245
|
-
description: 'Whether the workflow is paused.'
|
|
3246
|
-
}
|
|
3247
|
-
}
|
|
3248
|
-
};
|
|
3249
|
-
export const ConcurrencyLimitStrategySchema = {
|
|
3250
|
-
type: 'string',
|
|
3251
|
-
enum: [
|
|
3252
|
-
'CANCEL_IN_PROGRESS',
|
|
3253
|
-
'DROP_NEWEST',
|
|
3254
|
-
'QUEUE_NEWEST',
|
|
3255
|
-
'GROUP_ROUND_ROBIN'
|
|
3256
|
-
]
|
|
3257
|
-
};
|
|
3258
|
-
export const WorkflowConcurrencySchema = {
|
|
3259
|
-
type: 'object',
|
|
3260
|
-
properties: {
|
|
3261
|
-
maxRuns: {
|
|
3262
|
-
type: 'integer',
|
|
3263
|
-
format: 'int32',
|
|
3264
|
-
description: 'The maximum number of concurrent workflow runs.'
|
|
3265
|
-
},
|
|
3266
|
-
limitStrategy: {
|
|
3267
|
-
$ref: '#/components/schemas/ConcurrencyLimitStrategy',
|
|
3268
|
-
description: 'The strategy to use when the concurrency limit is reached.'
|
|
3269
|
-
},
|
|
3270
|
-
getConcurrencyGroup: {
|
|
3271
|
-
type: 'string',
|
|
3272
|
-
description: 'An action which gets the concurrency group for the WorkflowRun.'
|
|
3273
|
-
}
|
|
3274
|
-
},
|
|
3275
|
-
required: [
|
|
3276
|
-
'maxRuns',
|
|
3277
|
-
'limitStrategy',
|
|
3278
|
-
'getConcurrencyGroup'
|
|
3279
|
-
]
|
|
3280
|
-
};
|
|
3281
|
-
export const WorkflowTriggerEventRefSchema = {
|
|
3282
|
-
type: 'object',
|
|
3283
|
-
properties: {
|
|
3284
|
-
parent_id: {
|
|
3285
|
-
type: 'string'
|
|
3286
|
-
},
|
|
3287
|
-
event_key: {
|
|
3288
|
-
type: 'string'
|
|
3289
|
-
}
|
|
3290
|
-
}
|
|
3291
|
-
};
|
|
3292
|
-
export const WorkflowTriggerCronRefSchema = {
|
|
3293
|
-
type: 'object',
|
|
3294
|
-
properties: {
|
|
3295
|
-
parent_id: {
|
|
3296
|
-
type: 'string'
|
|
3297
|
-
},
|
|
3298
|
-
cron: {
|
|
3299
|
-
type: 'string'
|
|
3300
|
-
}
|
|
3301
|
-
}
|
|
3302
|
-
};
|
|
3303
|
-
export const WorkflowTriggersSchema = {
|
|
3304
|
-
type: 'object',
|
|
3305
|
-
properties: {
|
|
3306
|
-
metadata: {
|
|
3307
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
3308
|
-
},
|
|
3309
|
-
workflow_version_id: {
|
|
3310
|
-
type: 'string'
|
|
3311
|
-
},
|
|
3312
|
-
tenant_id: {
|
|
3313
|
-
type: 'string'
|
|
3314
|
-
},
|
|
3315
|
-
events: {
|
|
3316
|
-
type: 'array',
|
|
3317
|
-
items: {
|
|
3318
|
-
$ref: '#/components/schemas/WorkflowTriggerEventRef'
|
|
3319
|
-
}
|
|
3320
|
-
},
|
|
3321
|
-
crons: {
|
|
3322
|
-
type: 'array',
|
|
3323
|
-
items: {
|
|
3324
|
-
$ref: '#/components/schemas/WorkflowTriggerCronRef'
|
|
3325
|
-
}
|
|
3326
|
-
}
|
|
3327
|
-
}
|
|
3328
|
-
};
|
|
3329
|
-
export const WorkflowVersionSchema = {
|
|
3330
|
-
type: 'object',
|
|
3331
|
-
properties: {
|
|
3332
|
-
metadata: {
|
|
3333
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
3334
|
-
},
|
|
3335
|
-
version: {
|
|
3336
|
-
type: 'string',
|
|
3337
|
-
description: 'The version of the workflow.'
|
|
3338
|
-
},
|
|
3339
|
-
order: {
|
|
3340
|
-
type: 'integer',
|
|
3341
|
-
format: 'int32'
|
|
3342
|
-
},
|
|
3343
|
-
workflowId: {
|
|
3344
|
-
type: 'string'
|
|
3345
|
-
},
|
|
3346
|
-
sticky: {
|
|
3347
|
-
type: 'string',
|
|
3348
|
-
description: 'The sticky strategy of the workflow.'
|
|
3349
|
-
},
|
|
3350
|
-
defaultPriority: {
|
|
3351
|
-
type: 'integer',
|
|
3352
|
-
format: 'int32',
|
|
3353
|
-
description: 'The default priority of the workflow.'
|
|
3354
|
-
},
|
|
3355
|
-
workflow: {
|
|
3356
|
-
$ref: '#/components/schemas/Workflow'
|
|
3357
|
-
},
|
|
3358
|
-
concurrency: {
|
|
3359
|
-
$ref: '#/components/schemas/WorkflowConcurrency'
|
|
3360
|
-
},
|
|
3361
|
-
triggers: {
|
|
3362
|
-
$ref: '#/components/schemas/WorkflowTriggers'
|
|
3363
|
-
},
|
|
3364
|
-
scheduleTimeout: {
|
|
3365
|
-
type: 'string'
|
|
3366
|
-
},
|
|
3367
|
-
jobs: {
|
|
3368
|
-
type: 'array',
|
|
3369
|
-
items: {
|
|
3370
|
-
$ref: '#/components/schemas/Job'
|
|
3371
|
-
}
|
|
3372
|
-
},
|
|
3373
|
-
workflowConfig: {
|
|
3374
|
-
type: 'object'
|
|
3375
|
-
}
|
|
3376
|
-
},
|
|
3377
|
-
required: [
|
|
3378
|
-
'metadata',
|
|
3379
|
-
'version',
|
|
3380
|
-
'order',
|
|
3381
|
-
'workflowId'
|
|
3382
|
-
]
|
|
3383
|
-
};
|
|
3384
|
-
export const TriggerWorkflowRunRequestSchema = {
|
|
3385
|
-
properties: {
|
|
3386
|
-
input: {
|
|
3387
|
-
type: 'object'
|
|
3388
|
-
},
|
|
3389
|
-
additionalMetadata: {
|
|
3390
|
-
type: 'object'
|
|
3391
|
-
}
|
|
3392
|
-
},
|
|
3393
|
-
required: [
|
|
3394
|
-
'input'
|
|
3395
|
-
]
|
|
3396
|
-
};
|
|
3397
|
-
export const WorkflowRunSchema = {
|
|
3398
|
-
type: 'object',
|
|
3399
|
-
properties: {
|
|
3400
|
-
metadata: {
|
|
3401
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
3402
|
-
},
|
|
3403
|
-
tenantId: {
|
|
3404
|
-
type: 'string'
|
|
3405
|
-
},
|
|
3406
|
-
workflowVersionId: {
|
|
3407
|
-
type: 'string'
|
|
3408
|
-
},
|
|
3409
|
-
workflowVersion: {
|
|
3410
|
-
$ref: '#/components/schemas/WorkflowVersion'
|
|
3411
|
-
},
|
|
3412
|
-
status: {
|
|
3413
|
-
$ref: '#/components/schemas/WorkflowRunStatus'
|
|
3414
|
-
},
|
|
3415
|
-
displayName: {
|
|
3416
|
-
type: 'string'
|
|
3417
|
-
},
|
|
3418
|
-
jobRuns: {
|
|
3419
|
-
type: 'array',
|
|
3420
|
-
items: {
|
|
3421
|
-
$ref: '#/components/schemas/JobRun'
|
|
3422
|
-
}
|
|
3423
|
-
},
|
|
3424
|
-
triggeredBy: {
|
|
3425
|
-
$ref: '#/components/schemas/WorkflowRunTriggeredBy'
|
|
3426
|
-
},
|
|
3427
|
-
input: {
|
|
3428
|
-
type: 'object',
|
|
3429
|
-
additionalProperties: true
|
|
3430
|
-
},
|
|
3431
|
-
error: {
|
|
3432
|
-
type: 'string'
|
|
3433
|
-
},
|
|
3434
|
-
startedAt: {
|
|
3435
|
-
type: 'string',
|
|
3436
|
-
format: 'date-time'
|
|
3437
|
-
},
|
|
3438
|
-
finishedAt: {
|
|
3439
|
-
type: 'string',
|
|
3440
|
-
format: 'date-time'
|
|
3441
|
-
},
|
|
3442
|
-
duration: {
|
|
3443
|
-
type: 'integer',
|
|
3444
|
-
example: 1000
|
|
3445
|
-
},
|
|
3446
|
-
parentId: {
|
|
3447
|
-
type: 'string',
|
|
3448
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
3449
|
-
minLength: 36,
|
|
3450
|
-
maxLength: 36,
|
|
3451
|
-
format: 'uuid'
|
|
3452
|
-
},
|
|
3453
|
-
parentStepRunId: {
|
|
3454
|
-
type: 'string',
|
|
3455
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
3456
|
-
minLength: 36,
|
|
3457
|
-
maxLength: 36,
|
|
3458
|
-
format: 'uuid'
|
|
3459
|
-
},
|
|
3460
|
-
additionalMetadata: {
|
|
3461
|
-
type: 'object',
|
|
3462
|
-
additionalProperties: true
|
|
3463
|
-
}
|
|
3464
|
-
},
|
|
3465
|
-
required: [
|
|
3466
|
-
'metadata',
|
|
3467
|
-
'tenantId',
|
|
3468
|
-
'workflowVersionId',
|
|
3469
|
-
'status',
|
|
3470
|
-
'triggeredBy'
|
|
3471
|
-
]
|
|
3472
|
-
};
|
|
3473
|
-
export const JobRunSchema = {
|
|
3474
|
-
type: 'object',
|
|
3475
|
-
properties: {
|
|
3476
|
-
metadata: {
|
|
3477
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
3478
|
-
},
|
|
3479
|
-
tenantId: {
|
|
3480
|
-
type: 'string'
|
|
3481
|
-
},
|
|
3482
|
-
workflowRunId: {
|
|
3483
|
-
type: 'string'
|
|
3484
|
-
},
|
|
3485
|
-
workflowRun: {
|
|
3486
|
-
$ref: '#/components/schemas/WorkflowRun'
|
|
3487
|
-
},
|
|
3488
|
-
jobId: {
|
|
3489
|
-
type: 'string'
|
|
3490
|
-
},
|
|
3491
|
-
job: {
|
|
3492
|
-
$ref: '#/components/schemas/Job'
|
|
3493
|
-
},
|
|
3494
|
-
tickerId: {
|
|
3495
|
-
type: 'string'
|
|
3496
|
-
},
|
|
3497
|
-
stepRuns: {
|
|
3498
|
-
type: 'array',
|
|
3499
|
-
items: {
|
|
3500
|
-
$ref: '#/components/schemas/StepRun'
|
|
3501
|
-
}
|
|
3502
|
-
},
|
|
3503
|
-
status: {
|
|
3504
|
-
$ref: '#/components/schemas/JobRunStatus'
|
|
3505
|
-
},
|
|
3506
|
-
result: {
|
|
3507
|
-
type: 'object'
|
|
3508
|
-
},
|
|
3509
|
-
startedAt: {
|
|
3510
|
-
type: 'string',
|
|
3511
|
-
format: 'date-time'
|
|
3512
|
-
},
|
|
3513
|
-
finishedAt: {
|
|
3514
|
-
type: 'string',
|
|
3515
|
-
format: 'date-time'
|
|
3516
|
-
},
|
|
3517
|
-
timeoutAt: {
|
|
3518
|
-
type: 'string',
|
|
3519
|
-
format: 'date-time'
|
|
3520
|
-
},
|
|
3521
|
-
cancelledAt: {
|
|
3522
|
-
type: 'string',
|
|
3523
|
-
format: 'date-time'
|
|
3524
|
-
},
|
|
3525
|
-
cancelledReason: {
|
|
3526
|
-
type: 'string'
|
|
3527
|
-
},
|
|
3528
|
-
cancelledError: {
|
|
3529
|
-
type: 'string'
|
|
3530
|
-
}
|
|
3531
|
-
},
|
|
3532
|
-
required: [
|
|
3533
|
-
'metadata',
|
|
3534
|
-
'tenantId',
|
|
3535
|
-
'workflowRunId',
|
|
3536
|
-
'jobId',
|
|
3537
|
-
'status'
|
|
3538
|
-
]
|
|
3539
|
-
};
|
|
3540
|
-
export const StepRunStatusSchema = {
|
|
3541
|
-
type: 'string',
|
|
3542
|
-
enum: [
|
|
3543
|
-
'PENDING',
|
|
3544
|
-
'PENDING_ASSIGNMENT',
|
|
3545
|
-
'ASSIGNED',
|
|
3546
|
-
'RUNNING',
|
|
3547
|
-
'SUCCEEDED',
|
|
3548
|
-
'FAILED',
|
|
3549
|
-
'CANCELLED',
|
|
3550
|
-
'CANCELLING',
|
|
3551
|
-
'BACKOFF'
|
|
3552
|
-
]
|
|
3553
|
-
};
|
|
3554
|
-
export const StepRunSchema = {
|
|
3555
|
-
type: 'object',
|
|
3556
|
-
properties: {
|
|
3557
|
-
metadata: {
|
|
3558
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
3559
|
-
},
|
|
3560
|
-
tenantId: {
|
|
3561
|
-
type: 'string'
|
|
3562
|
-
},
|
|
3563
|
-
jobRunId: {
|
|
3564
|
-
type: 'string'
|
|
3565
|
-
},
|
|
3566
|
-
jobRun: {
|
|
3567
|
-
$ref: '#/components/schemas/JobRun'
|
|
3568
|
-
},
|
|
3569
|
-
stepId: {
|
|
3570
|
-
type: 'string'
|
|
3571
|
-
},
|
|
3572
|
-
step: {
|
|
3573
|
-
$ref: '#/components/schemas/Step'
|
|
3574
|
-
},
|
|
3575
|
-
childWorkflowsCount: {
|
|
3576
|
-
type: 'integer'
|
|
3577
|
-
},
|
|
3578
|
-
parents: {
|
|
3579
|
-
type: 'array',
|
|
3580
|
-
items: {
|
|
3581
|
-
type: 'string'
|
|
3582
|
-
}
|
|
3583
|
-
},
|
|
3584
|
-
childWorkflowRuns: {
|
|
3585
|
-
type: 'array',
|
|
3586
|
-
items: {
|
|
3587
|
-
type: 'string'
|
|
3588
|
-
}
|
|
3589
|
-
},
|
|
3590
|
-
workerId: {
|
|
3591
|
-
type: 'string'
|
|
3592
|
-
},
|
|
3593
|
-
input: {
|
|
3594
|
-
type: 'string'
|
|
3595
|
-
},
|
|
3596
|
-
output: {
|
|
3597
|
-
type: 'string'
|
|
3598
|
-
},
|
|
3599
|
-
status: {
|
|
3600
|
-
$ref: '#/components/schemas/StepRunStatus'
|
|
3601
|
-
},
|
|
3602
|
-
requeueAfter: {
|
|
3603
|
-
type: 'string',
|
|
3604
|
-
format: 'date-time'
|
|
3605
|
-
},
|
|
3606
|
-
result: {
|
|
3607
|
-
type: 'object'
|
|
3608
|
-
},
|
|
3609
|
-
error: {
|
|
3610
|
-
type: 'string'
|
|
3611
|
-
},
|
|
3612
|
-
startedAt: {
|
|
3613
|
-
type: 'string',
|
|
3614
|
-
format: 'date-time'
|
|
3615
|
-
},
|
|
3616
|
-
startedAtEpoch: {
|
|
3617
|
-
type: 'integer'
|
|
3618
|
-
},
|
|
3619
|
-
finishedAt: {
|
|
3620
|
-
type: 'string',
|
|
3621
|
-
format: 'date-time'
|
|
3622
|
-
},
|
|
3623
|
-
finishedAtEpoch: {
|
|
3624
|
-
type: 'integer'
|
|
3625
|
-
},
|
|
3626
|
-
timeoutAt: {
|
|
3627
|
-
type: 'string',
|
|
3628
|
-
format: 'date-time'
|
|
3629
|
-
},
|
|
3630
|
-
timeoutAtEpoch: {
|
|
3631
|
-
type: 'integer'
|
|
3632
|
-
},
|
|
3633
|
-
cancelledAt: {
|
|
3634
|
-
type: 'string',
|
|
3635
|
-
format: 'date-time'
|
|
3636
|
-
},
|
|
3637
|
-
cancelledAtEpoch: {
|
|
3638
|
-
type: 'integer'
|
|
3639
|
-
},
|
|
3640
|
-
cancelledReason: {
|
|
3641
|
-
type: 'string'
|
|
3642
|
-
},
|
|
3643
|
-
cancelledError: {
|
|
3644
|
-
type: 'string'
|
|
3645
|
-
}
|
|
3646
|
-
},
|
|
3647
|
-
required: [
|
|
3648
|
-
'metadata',
|
|
3649
|
-
'tenantId',
|
|
3650
|
-
'jobRunId',
|
|
3651
|
-
'stepId',
|
|
3652
|
-
'status'
|
|
3653
|
-
]
|
|
3654
|
-
};
|
|
3655
|
-
export const JobRunStatusSchema = {
|
|
3656
|
-
type: 'string',
|
|
3657
|
-
enum: [
|
|
3658
|
-
'PENDING',
|
|
3659
|
-
'RUNNING',
|
|
3660
|
-
'SUCCEEDED',
|
|
3661
|
-
'FAILED',
|
|
3662
|
-
'CANCELLED',
|
|
3663
|
-
'BACKOFF'
|
|
3664
|
-
]
|
|
3665
|
-
};
|
|
3666
|
-
export const WorkflowRunTriggeredBySchema = {
|
|
3667
|
-
type: 'object',
|
|
3668
|
-
properties: {
|
|
3669
|
-
metadata: {
|
|
3670
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
3671
|
-
},
|
|
3672
|
-
parentWorkflowRunId: {
|
|
3673
|
-
type: 'string'
|
|
3674
|
-
},
|
|
3675
|
-
eventId: {
|
|
3676
|
-
type: 'string'
|
|
3677
|
-
},
|
|
3678
|
-
cronParentId: {
|
|
3679
|
-
type: 'string'
|
|
3680
|
-
},
|
|
3681
|
-
cronSchedule: {
|
|
3682
|
-
type: 'string'
|
|
3683
|
-
}
|
|
3684
|
-
},
|
|
3685
|
-
required: [
|
|
3686
|
-
'metadata'
|
|
3687
|
-
]
|
|
3688
|
-
};
|
|
3689
|
-
export const WorkflowMetricsSchema = {
|
|
3690
|
-
type: 'object',
|
|
3691
|
-
properties: {
|
|
3692
|
-
groupKeyRunsCount: {
|
|
3693
|
-
type: 'integer',
|
|
3694
|
-
description: 'The number of runs for a specific group key (passed via filter)'
|
|
3695
|
-
},
|
|
3696
|
-
groupKeyCount: {
|
|
3697
|
-
type: 'integer',
|
|
3698
|
-
description: 'The total number of concurrency group keys.'
|
|
3699
|
-
}
|
|
3700
|
-
}
|
|
3701
|
-
};
|
|
3702
|
-
export const LogLineLevelSchema = {
|
|
3703
|
-
type: 'string',
|
|
3704
|
-
enum: [
|
|
3705
|
-
'DEBUG',
|
|
3706
|
-
'INFO',
|
|
3707
|
-
'WARN',
|
|
3708
|
-
'ERROR'
|
|
3709
|
-
]
|
|
3710
|
-
};
|
|
3711
|
-
export const LogLineLevelFieldSchema = {
|
|
3712
|
-
type: 'array',
|
|
3713
|
-
items: {
|
|
3714
|
-
$ref: '#/components/schemas/LogLineLevel'
|
|
3715
|
-
}
|
|
3716
|
-
};
|
|
3717
|
-
export const LogLineSearchSchema = {
|
|
3718
|
-
type: 'string'
|
|
3719
|
-
};
|
|
3720
|
-
export const LogLineOrderByFieldSchema = {
|
|
3721
|
-
type: 'string',
|
|
3722
|
-
enum: [
|
|
3723
|
-
'createdAt'
|
|
3724
|
-
]
|
|
3725
|
-
};
|
|
3726
|
-
export const LogLineOrderByDirectionSchema = {
|
|
3727
|
-
type: 'string',
|
|
3728
|
-
enum: [
|
|
3729
|
-
'asc',
|
|
3730
|
-
'desc'
|
|
3731
|
-
]
|
|
3732
|
-
};
|
|
3733
|
-
export const LogLineSchema = {
|
|
3734
|
-
properties: {
|
|
3735
|
-
createdAt: {
|
|
3736
|
-
type: 'string',
|
|
3737
|
-
format: 'date-time',
|
|
3738
|
-
description: 'The creation date of the log line.'
|
|
3739
|
-
},
|
|
3740
|
-
message: {
|
|
3741
|
-
type: 'string',
|
|
3742
|
-
description: 'The log message.'
|
|
3743
|
-
},
|
|
3744
|
-
metadata: {
|
|
3745
|
-
type: 'object',
|
|
3746
|
-
description: 'The log metadata.'
|
|
3747
|
-
}
|
|
3748
|
-
},
|
|
3749
|
-
required: [
|
|
3750
|
-
'createdAt',
|
|
3751
|
-
'message',
|
|
3752
|
-
'metadata'
|
|
3753
|
-
]
|
|
3754
|
-
};
|
|
3755
|
-
export const LogLineListSchema = {
|
|
3756
|
-
properties: {
|
|
3757
|
-
pagination: {
|
|
3758
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
3759
|
-
},
|
|
3760
|
-
rows: {
|
|
3761
|
-
items: {
|
|
3762
|
-
$ref: '#/components/schemas/LogLine'
|
|
3763
|
-
},
|
|
3764
|
-
type: 'array'
|
|
3765
|
-
}
|
|
3766
|
-
}
|
|
3767
|
-
};
|
|
3768
|
-
export const StepRunEventReasonSchema = {
|
|
3769
|
-
type: 'string',
|
|
3770
|
-
enum: [
|
|
3771
|
-
'REQUEUED_NO_WORKER',
|
|
3772
|
-
'REQUEUED_RATE_LIMIT',
|
|
3773
|
-
'SCHEDULING_TIMED_OUT',
|
|
3774
|
-
'ASSIGNED',
|
|
3775
|
-
'STARTED',
|
|
3776
|
-
'ACKNOWLEDGED',
|
|
3777
|
-
'FINISHED',
|
|
3778
|
-
'FAILED',
|
|
3779
|
-
'RETRYING',
|
|
3780
|
-
'CANCELLED',
|
|
3781
|
-
'TIMEOUT_REFRESHED',
|
|
3782
|
-
'REASSIGNED',
|
|
3783
|
-
'TIMED_OUT',
|
|
3784
|
-
'SLOT_RELEASED',
|
|
3785
|
-
'RETRIED_BY_USER',
|
|
3786
|
-
'WORKFLOW_RUN_GROUP_KEY_SUCCEEDED',
|
|
3787
|
-
'WORKFLOW_RUN_GROUP_KEY_FAILED'
|
|
3788
|
-
]
|
|
3789
|
-
};
|
|
3790
|
-
export const StepRunEventSeveritySchema = {
|
|
3791
|
-
type: 'string',
|
|
3792
|
-
enum: [
|
|
3793
|
-
'INFO',
|
|
3794
|
-
'WARNING',
|
|
3795
|
-
'CRITICAL'
|
|
3796
|
-
]
|
|
3797
|
-
};
|
|
3798
|
-
export const StepRunEventSchema = {
|
|
3799
|
-
type: 'object',
|
|
3800
|
-
properties: {
|
|
3801
|
-
id: {
|
|
3802
|
-
type: 'integer'
|
|
3803
|
-
},
|
|
3804
|
-
timeFirstSeen: {
|
|
3805
|
-
type: 'string',
|
|
3806
|
-
format: 'date-time'
|
|
3807
|
-
},
|
|
3808
|
-
timeLastSeen: {
|
|
3809
|
-
type: 'string',
|
|
3810
|
-
format: 'date-time'
|
|
3811
|
-
},
|
|
3812
|
-
stepRunId: {
|
|
3813
|
-
type: 'string'
|
|
3814
|
-
},
|
|
3815
|
-
workflowRunId: {
|
|
3816
|
-
type: 'string'
|
|
3817
|
-
},
|
|
3818
|
-
reason: {
|
|
3819
|
-
$ref: '#/components/schemas/StepRunEventReason'
|
|
3820
|
-
},
|
|
3821
|
-
severity: {
|
|
3822
|
-
$ref: '#/components/schemas/StepRunEventSeverity'
|
|
3823
|
-
},
|
|
3824
|
-
message: {
|
|
3825
|
-
type: 'string'
|
|
3826
|
-
},
|
|
3827
|
-
count: {
|
|
3828
|
-
type: 'integer'
|
|
3829
|
-
},
|
|
3830
|
-
data: {
|
|
3831
|
-
type: 'object'
|
|
3832
|
-
}
|
|
3833
|
-
},
|
|
3834
|
-
required: [
|
|
3835
|
-
'id',
|
|
3836
|
-
'timeFirstSeen',
|
|
3837
|
-
'timeLastSeen',
|
|
3838
|
-
'reason',
|
|
3839
|
-
'severity',
|
|
3840
|
-
'message',
|
|
3841
|
-
'count'
|
|
3842
|
-
]
|
|
3843
|
-
};
|
|
3844
|
-
export const StepRunEventListSchema = {
|
|
3845
|
-
properties: {
|
|
3846
|
-
pagination: {
|
|
3847
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
3848
|
-
},
|
|
3849
|
-
rows: {
|
|
3850
|
-
items: {
|
|
3851
|
-
$ref: '#/components/schemas/StepRunEvent'
|
|
3852
|
-
},
|
|
3853
|
-
type: 'array'
|
|
3854
|
-
}
|
|
3855
|
-
}
|
|
3856
|
-
};
|
|
3857
|
-
export const StepRunArchiveSchema = {
|
|
3858
|
-
type: 'object',
|
|
3859
|
-
properties: {
|
|
3860
|
-
stepRunId: {
|
|
3861
|
-
type: 'string'
|
|
3862
|
-
},
|
|
3863
|
-
order: {
|
|
3864
|
-
type: 'integer'
|
|
3865
|
-
},
|
|
3866
|
-
input: {
|
|
3867
|
-
type: 'string'
|
|
3868
|
-
},
|
|
3869
|
-
output: {
|
|
3870
|
-
type: 'string'
|
|
3871
|
-
},
|
|
3872
|
-
startedAt: {
|
|
3873
|
-
type: 'string',
|
|
3874
|
-
format: 'date-time'
|
|
3875
|
-
},
|
|
3876
|
-
error: {
|
|
3877
|
-
type: 'string'
|
|
3878
|
-
},
|
|
3879
|
-
retryCount: {
|
|
3880
|
-
type: 'integer'
|
|
3881
|
-
},
|
|
3882
|
-
createdAt: {
|
|
3883
|
-
type: 'string',
|
|
3884
|
-
format: 'date-time'
|
|
3885
|
-
},
|
|
3886
|
-
startedAtEpoch: {
|
|
3887
|
-
type: 'integer'
|
|
3888
|
-
},
|
|
3889
|
-
finishedAt: {
|
|
3890
|
-
type: 'string',
|
|
3891
|
-
format: 'date-time'
|
|
3892
|
-
},
|
|
3893
|
-
finishedAtEpoch: {
|
|
3894
|
-
type: 'integer'
|
|
3895
|
-
},
|
|
3896
|
-
timeoutAt: {
|
|
3897
|
-
type: 'string',
|
|
3898
|
-
format: 'date-time'
|
|
3899
|
-
},
|
|
3900
|
-
timeoutAtEpoch: {
|
|
3901
|
-
type: 'integer'
|
|
3902
|
-
},
|
|
3903
|
-
cancelledAt: {
|
|
3904
|
-
type: 'string',
|
|
3905
|
-
format: 'date-time'
|
|
3906
|
-
},
|
|
3907
|
-
cancelledAtEpoch: {
|
|
3908
|
-
type: 'integer'
|
|
3909
|
-
},
|
|
3910
|
-
cancelledReason: {
|
|
3911
|
-
type: 'string'
|
|
3912
|
-
},
|
|
3913
|
-
cancelledError: {
|
|
3914
|
-
type: 'string'
|
|
3915
|
-
}
|
|
3916
|
-
},
|
|
3917
|
-
required: [
|
|
3918
|
-
'stepRunId',
|
|
3919
|
-
'retryCount',
|
|
3920
|
-
'order',
|
|
3921
|
-
'createdAt'
|
|
3922
|
-
]
|
|
3923
|
-
};
|
|
3924
|
-
export const StepRunArchiveListSchema = {
|
|
3925
|
-
properties: {
|
|
3926
|
-
pagination: {
|
|
3927
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
3928
|
-
},
|
|
3929
|
-
rows: {
|
|
3930
|
-
items: {
|
|
3931
|
-
$ref: '#/components/schemas/StepRunArchive'
|
|
3932
|
-
},
|
|
3933
|
-
type: 'array'
|
|
3934
|
-
}
|
|
3935
|
-
}
|
|
3936
|
-
};
|
|
3937
|
-
export const WorkflowWorkersCountSchema = {
|
|
3938
|
-
type: 'object',
|
|
3939
|
-
properties: {
|
|
3940
|
-
freeSlotCount: {
|
|
3941
|
-
type: 'integer'
|
|
3942
|
-
},
|
|
3943
|
-
maxSlotCount: {
|
|
3944
|
-
type: 'integer'
|
|
3945
|
-
},
|
|
3946
|
-
workflowRunId: {
|
|
3947
|
-
type: 'string'
|
|
3948
|
-
}
|
|
3949
|
-
},
|
|
3950
|
-
required: [
|
|
3951
|
-
'count'
|
|
3952
|
-
]
|
|
3953
|
-
};
|
|
3954
|
-
export const WorkflowKindSchema = {
|
|
3955
|
-
type: 'string',
|
|
3956
|
-
enum: [
|
|
3957
|
-
'FUNCTION',
|
|
3958
|
-
'DURABLE',
|
|
3959
|
-
'DAG'
|
|
3960
|
-
]
|
|
3961
|
-
};
|
|
3962
|
-
export const WorkflowKindListSchema = {
|
|
3963
|
-
type: 'array',
|
|
3964
|
-
items: {
|
|
3965
|
-
$ref: '#/components/schemas/WorkflowKind'
|
|
3966
|
-
}
|
|
3967
|
-
};
|
|
3968
|
-
export const WorkflowRunOrderByFieldSchema = {
|
|
3969
|
-
type: 'string',
|
|
3970
|
-
enum: [
|
|
3971
|
-
'createdAt',
|
|
3972
|
-
'startedAt',
|
|
3973
|
-
'finishedAt',
|
|
3974
|
-
'duration'
|
|
3975
|
-
]
|
|
3976
|
-
};
|
|
3977
|
-
export const WorkflowRunListSchema = {
|
|
3978
|
-
type: 'object',
|
|
3979
|
-
properties: {
|
|
3980
|
-
rows: {
|
|
3981
|
-
type: 'array',
|
|
3982
|
-
items: {
|
|
3983
|
-
$ref: '#/components/schemas/WorkflowRun'
|
|
3984
|
-
}
|
|
3985
|
-
},
|
|
3986
|
-
pagination: {
|
|
3987
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
3988
|
-
}
|
|
3989
|
-
}
|
|
3990
|
-
};
|
|
3991
|
-
export const ReplayWorkflowRunsRequestSchema = {
|
|
3992
|
-
properties: {
|
|
3993
|
-
workflowRunIds: {
|
|
3994
|
-
type: 'array',
|
|
3995
|
-
maxLength: 500,
|
|
3996
|
-
items: {
|
|
3997
|
-
type: 'string',
|
|
3998
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
3999
|
-
minLength: 36,
|
|
4000
|
-
maxLength: 36,
|
|
4001
|
-
format: 'uuid'
|
|
4002
|
-
}
|
|
4003
|
-
}
|
|
4004
|
-
},
|
|
4005
|
-
required: [
|
|
4006
|
-
'workflowRunIds'
|
|
4007
|
-
]
|
|
4008
|
-
};
|
|
4009
|
-
export const ReplayWorkflowRunsResponseSchema = {
|
|
4010
|
-
properties: {
|
|
4011
|
-
workflowRuns: {
|
|
4012
|
-
type: 'array',
|
|
4013
|
-
items: {
|
|
4014
|
-
$ref: '#/components/schemas/WorkflowRun'
|
|
4015
|
-
}
|
|
4016
|
-
}
|
|
4017
|
-
},
|
|
4018
|
-
required: [
|
|
4019
|
-
'workflowRuns'
|
|
4020
|
-
]
|
|
4021
|
-
};
|
|
4022
|
-
export const WorkflowRunsMetricsCountsSchema = {
|
|
4023
|
-
type: 'object',
|
|
4024
|
-
properties: {
|
|
4025
|
-
PENDING: {
|
|
4026
|
-
type: 'integer'
|
|
4027
|
-
},
|
|
4028
|
-
RUNNING: {
|
|
4029
|
-
type: 'integer'
|
|
4030
|
-
},
|
|
4031
|
-
SUCCEEDED: {
|
|
4032
|
-
type: 'integer'
|
|
4033
|
-
},
|
|
4034
|
-
FAILED: {
|
|
4035
|
-
type: 'integer'
|
|
4036
|
-
},
|
|
4037
|
-
QUEUED: {
|
|
4038
|
-
type: 'integer'
|
|
4039
|
-
},
|
|
4040
|
-
CANCELLED: {
|
|
4041
|
-
type: 'integer'
|
|
4042
|
-
}
|
|
4043
|
-
}
|
|
4044
|
-
};
|
|
4045
|
-
export const WorkflowRunsMetricsSchema = {
|
|
4046
|
-
type: 'object',
|
|
4047
|
-
properties: {
|
|
4048
|
-
counts: {
|
|
4049
|
-
type: 'object',
|
|
4050
|
-
$ref: '#/components/schemas/WorkflowRunsMetricsCounts'
|
|
4051
|
-
}
|
|
4052
|
-
}
|
|
4053
|
-
};
|
|
4054
|
-
export const WorkflowRunShapeSchema = {
|
|
4055
|
-
type: 'object',
|
|
4056
|
-
properties: {
|
|
4057
|
-
metadata: {
|
|
4058
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
4059
|
-
},
|
|
4060
|
-
tenantId: {
|
|
4061
|
-
type: 'string'
|
|
4062
|
-
},
|
|
4063
|
-
workflowId: {
|
|
4064
|
-
type: 'string'
|
|
4065
|
-
},
|
|
4066
|
-
workflowVersionId: {
|
|
4067
|
-
type: 'string'
|
|
4068
|
-
},
|
|
4069
|
-
workflowVersion: {
|
|
4070
|
-
$ref: '#/components/schemas/WorkflowVersion'
|
|
4071
|
-
},
|
|
4072
|
-
status: {
|
|
4073
|
-
$ref: '#/components/schemas/WorkflowRunStatus'
|
|
4074
|
-
},
|
|
4075
|
-
displayName: {
|
|
4076
|
-
type: 'string'
|
|
4077
|
-
},
|
|
4078
|
-
jobRuns: {
|
|
4079
|
-
type: 'array',
|
|
4080
|
-
items: {
|
|
4081
|
-
$ref: '#/components/schemas/JobRun'
|
|
4082
|
-
}
|
|
4083
|
-
},
|
|
4084
|
-
triggeredBy: {
|
|
4085
|
-
$ref: '#/components/schemas/WorkflowRunTriggeredBy'
|
|
4086
|
-
},
|
|
4087
|
-
input: {
|
|
4088
|
-
type: 'object',
|
|
4089
|
-
additionalProperties: true
|
|
4090
|
-
},
|
|
4091
|
-
error: {
|
|
4092
|
-
type: 'string'
|
|
4093
|
-
},
|
|
4094
|
-
startedAt: {
|
|
4095
|
-
type: 'string',
|
|
4096
|
-
format: 'date-time'
|
|
4097
|
-
},
|
|
4098
|
-
finishedAt: {
|
|
4099
|
-
type: 'string',
|
|
4100
|
-
format: 'date-time'
|
|
4101
|
-
},
|
|
4102
|
-
duration: {
|
|
4103
|
-
type: 'integer',
|
|
4104
|
-
example: 1000
|
|
4105
|
-
},
|
|
4106
|
-
parentId: {
|
|
4107
|
-
type: 'string',
|
|
4108
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
4109
|
-
minLength: 36,
|
|
4110
|
-
maxLength: 36,
|
|
4111
|
-
format: 'uuid'
|
|
4112
|
-
},
|
|
4113
|
-
parentStepRunId: {
|
|
4114
|
-
type: 'string',
|
|
4115
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
4116
|
-
minLength: 36,
|
|
4117
|
-
maxLength: 36,
|
|
4118
|
-
format: 'uuid'
|
|
4119
|
-
},
|
|
4120
|
-
additionalMetadata: {
|
|
4121
|
-
type: 'object',
|
|
4122
|
-
additionalProperties: true
|
|
4123
|
-
}
|
|
4124
|
-
},
|
|
4125
|
-
required: [
|
|
4126
|
-
'metadata',
|
|
4127
|
-
'tenantId',
|
|
4128
|
-
'workflowVersionId',
|
|
4129
|
-
'status',
|
|
4130
|
-
'triggeredBy'
|
|
4131
|
-
]
|
|
4132
|
-
};
|
|
4133
|
-
export const RerunStepRunRequestSchema = {
|
|
4134
|
-
properties: {
|
|
4135
|
-
input: {
|
|
4136
|
-
type: 'object'
|
|
4137
|
-
}
|
|
4138
|
-
},
|
|
4139
|
-
required: [
|
|
4140
|
-
'input'
|
|
4141
|
-
]
|
|
4142
|
-
};
|
|
4143
|
-
export const WorkerTypeSchema = {
|
|
4144
|
-
type: 'string',
|
|
4145
|
-
enum: [
|
|
4146
|
-
'SELFHOSTED',
|
|
4147
|
-
'MANAGED',
|
|
4148
|
-
'WEBHOOK'
|
|
4149
|
-
]
|
|
4150
|
-
};
|
|
4151
|
-
export const RegisteredWorkflowSchema = {
|
|
4152
|
-
type: 'object',
|
|
4153
|
-
properties: {
|
|
4154
|
-
id: {
|
|
4155
|
-
type: 'string',
|
|
4156
|
-
description: 'The workflow id registered on this worker.',
|
|
4157
|
-
format: 'uuid'
|
|
4158
|
-
},
|
|
4159
|
-
name: {
|
|
4160
|
-
type: 'string',
|
|
4161
|
-
description: 'The name of the workflow registered on this worker.'
|
|
4162
|
-
}
|
|
4163
|
-
},
|
|
4164
|
-
required: [
|
|
4165
|
-
'id',
|
|
4166
|
-
'name'
|
|
4167
|
-
]
|
|
4168
|
-
};
|
|
4169
|
-
export const SemaphoreSlotsSchema = {
|
|
4170
|
-
properties: {
|
|
4171
|
-
stepRunId: {
|
|
4172
|
-
type: 'string',
|
|
4173
|
-
description: 'The step run id.',
|
|
4174
|
-
format: 'uuid'
|
|
4175
|
-
},
|
|
4176
|
-
actionId: {
|
|
4177
|
-
type: 'string',
|
|
4178
|
-
description: 'The action id.'
|
|
4179
|
-
},
|
|
4180
|
-
startedAt: {
|
|
4181
|
-
type: 'string',
|
|
4182
|
-
description: 'The time this slot was started.',
|
|
4183
|
-
format: 'date-time'
|
|
4184
|
-
},
|
|
4185
|
-
timeoutAt: {
|
|
4186
|
-
type: 'string',
|
|
4187
|
-
description: 'The time this slot will timeout.',
|
|
4188
|
-
format: 'date-time'
|
|
4189
|
-
},
|
|
4190
|
-
workflowRunId: {
|
|
4191
|
-
type: 'string',
|
|
4192
|
-
description: 'The workflow run id.',
|
|
4193
|
-
format: 'uuid'
|
|
4194
|
-
},
|
|
4195
|
-
status: {
|
|
4196
|
-
$ref: '#/components/schemas/StepRunStatus'
|
|
4197
|
-
}
|
|
4198
|
-
},
|
|
4199
|
-
required: [
|
|
4200
|
-
'stepRunId',
|
|
4201
|
-
'actionId',
|
|
4202
|
-
'workflowRunId'
|
|
4203
|
-
]
|
|
4204
|
-
};
|
|
4205
|
-
export const RecentStepRunsSchema = {
|
|
4206
|
-
properties: {
|
|
4207
|
-
metadata: {
|
|
4208
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
4209
|
-
},
|
|
4210
|
-
actionId: {
|
|
4211
|
-
type: 'string',
|
|
4212
|
-
description: 'The action id.'
|
|
4213
|
-
},
|
|
4214
|
-
status: {
|
|
4215
|
-
$ref: '#/components/schemas/StepRunStatus'
|
|
4216
|
-
},
|
|
4217
|
-
startedAt: {
|
|
4218
|
-
type: 'string',
|
|
4219
|
-
format: 'date-time'
|
|
4220
|
-
},
|
|
4221
|
-
finishedAt: {
|
|
4222
|
-
type: 'string',
|
|
4223
|
-
format: 'date-time'
|
|
4224
|
-
},
|
|
4225
|
-
cancelledAt: {
|
|
4226
|
-
type: 'string',
|
|
4227
|
-
format: 'date-time'
|
|
4228
|
-
},
|
|
4229
|
-
workflowRunId: {
|
|
4230
|
-
type: 'string',
|
|
4231
|
-
format: 'uuid'
|
|
4232
|
-
}
|
|
4233
|
-
},
|
|
4234
|
-
required: [
|
|
4235
|
-
'actionId',
|
|
4236
|
-
'metadata',
|
|
4237
|
-
'status',
|
|
4238
|
-
'workflowRunId'
|
|
4239
|
-
],
|
|
4240
|
-
type: 'object'
|
|
4241
|
-
};
|
|
4242
|
-
export const WorkerLabelSchema = {
|
|
4243
|
-
properties: {
|
|
4244
|
-
metadata: {
|
|
4245
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
4246
|
-
},
|
|
4247
|
-
key: {
|
|
4248
|
-
type: 'string',
|
|
4249
|
-
description: 'The key of the label.'
|
|
4250
|
-
},
|
|
4251
|
-
value: {
|
|
4252
|
-
type: 'string',
|
|
4253
|
-
description: 'The value of the label.'
|
|
4254
|
-
}
|
|
4255
|
-
},
|
|
4256
|
-
required: [
|
|
4257
|
-
'metadata',
|
|
4258
|
-
'key'
|
|
4259
|
-
],
|
|
4260
|
-
type: 'object'
|
|
4261
|
-
};
|
|
4262
|
-
export const WorkerRuntimeSDKsSchema = {
|
|
4263
|
-
type: 'string',
|
|
4264
|
-
enum: [
|
|
4265
|
-
'GOLANG',
|
|
4266
|
-
'PYTHON',
|
|
4267
|
-
'TYPESCRIPT'
|
|
4268
|
-
]
|
|
4269
|
-
};
|
|
4270
|
-
export const WorkerRuntimeInfoSchema = {
|
|
4271
|
-
properties: {
|
|
4272
|
-
sdkVersion: {
|
|
4273
|
-
type: 'string'
|
|
4274
|
-
},
|
|
4275
|
-
language: {
|
|
4276
|
-
$ref: '#/components/schemas/WorkerRuntimeSDKs'
|
|
4277
|
-
},
|
|
4278
|
-
languageVersion: {
|
|
4279
|
-
type: 'string'
|
|
4280
|
-
},
|
|
4281
|
-
os: {
|
|
4282
|
-
type: 'string'
|
|
4283
|
-
},
|
|
4284
|
-
runtimeExtra: {
|
|
4285
|
-
type: 'string'
|
|
4286
|
-
}
|
|
4287
|
-
}
|
|
4288
|
-
};
|
|
4289
|
-
export const WorkerSchema = {
|
|
4290
|
-
properties: {
|
|
4291
|
-
metadata: {
|
|
4292
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
4293
|
-
},
|
|
4294
|
-
name: {
|
|
4295
|
-
type: 'string',
|
|
4296
|
-
description: 'The name of the worker.'
|
|
4297
|
-
},
|
|
4298
|
-
type: {
|
|
4299
|
-
$ref: '#/components/schemas/WorkerType'
|
|
4300
|
-
},
|
|
4301
|
-
lastHeartbeatAt: {
|
|
4302
|
-
type: 'string',
|
|
4303
|
-
description: 'The time this worker last sent a heartbeat.',
|
|
4304
|
-
format: 'date-time',
|
|
4305
|
-
example: '2022-12-13T15:06:48.888358-05:00'
|
|
4306
|
-
},
|
|
4307
|
-
lastListenerEstablished: {
|
|
4308
|
-
type: 'string',
|
|
4309
|
-
description: 'The time this worker last sent a heartbeat.',
|
|
4310
|
-
format: 'date-time',
|
|
4311
|
-
example: '2022-12-13T15:06:48.888358-05:00'
|
|
4312
|
-
},
|
|
4313
|
-
actions: {
|
|
4314
|
-
type: 'array',
|
|
4315
|
-
description: 'The actions this worker can perform.',
|
|
4316
|
-
items: {
|
|
4317
|
-
type: 'string'
|
|
4318
|
-
}
|
|
4319
|
-
},
|
|
4320
|
-
registeredWorkflows: {
|
|
4321
|
-
type: 'array',
|
|
4322
|
-
description: 'The workflow ids registered on this worker.',
|
|
4323
|
-
items: {
|
|
4324
|
-
$ref: '#/components/schemas/RegisteredWorkflow'
|
|
4325
|
-
}
|
|
4326
|
-
},
|
|
4327
|
-
slots: {
|
|
4328
|
-
type: 'array',
|
|
4329
|
-
description: 'The semaphore slot state for the worker.',
|
|
4330
|
-
items: {
|
|
4331
|
-
$ref: '#/components/schemas/SemaphoreSlots'
|
|
4332
|
-
}
|
|
4333
|
-
},
|
|
4334
|
-
recentStepRuns: {
|
|
4335
|
-
type: 'array',
|
|
4336
|
-
description: 'The recent step runs for the worker.',
|
|
4337
|
-
items: {
|
|
4338
|
-
$ref: '#/components/schemas/RecentStepRuns'
|
|
4339
|
-
}
|
|
4340
|
-
},
|
|
4341
|
-
status: {
|
|
4342
|
-
type: 'string',
|
|
4343
|
-
description: 'The status of the worker.',
|
|
4344
|
-
enum: [
|
|
4345
|
-
'ACTIVE',
|
|
4346
|
-
'INACTIVE',
|
|
4347
|
-
'PAUSED'
|
|
4348
|
-
]
|
|
4349
|
-
},
|
|
4350
|
-
maxRuns: {
|
|
4351
|
-
type: 'integer',
|
|
4352
|
-
description: 'The maximum number of runs this worker can execute concurrently.'
|
|
4353
|
-
},
|
|
4354
|
-
availableRuns: {
|
|
4355
|
-
type: 'integer',
|
|
4356
|
-
description: 'The number of runs this worker can execute concurrently.'
|
|
4357
|
-
},
|
|
4358
|
-
dispatcherId: {
|
|
4359
|
-
type: 'string',
|
|
4360
|
-
description: 'the id of the assigned dispatcher, in UUID format',
|
|
4361
|
-
example: 'bb214807-246e-43a5-a25d-41761d1cff9e',
|
|
4362
|
-
minLength: 36,
|
|
4363
|
-
maxLength: 36,
|
|
4364
|
-
format: 'uuid'
|
|
4365
|
-
},
|
|
4366
|
-
labels: {
|
|
4367
|
-
type: 'array',
|
|
4368
|
-
description: 'The current label state of the worker.',
|
|
4369
|
-
items: {
|
|
4370
|
-
$ref: '#/components/schemas/WorkerLabel'
|
|
4371
|
-
}
|
|
4372
|
-
},
|
|
4373
|
-
webhookUrl: {
|
|
4374
|
-
type: 'string',
|
|
4375
|
-
description: 'The webhook URL for the worker.'
|
|
4376
|
-
},
|
|
4377
|
-
webhookId: {
|
|
4378
|
-
type: 'string',
|
|
4379
|
-
description: 'The webhook ID for the worker.',
|
|
4380
|
-
format: 'uuid'
|
|
4381
|
-
},
|
|
4382
|
-
runtimeInfo: {
|
|
4383
|
-
$ref: '#/components/schemas/WorkerRuntimeInfo'
|
|
4384
|
-
}
|
|
4385
|
-
},
|
|
4386
|
-
required: [
|
|
4387
|
-
'metadata',
|
|
4388
|
-
'name',
|
|
4389
|
-
'type'
|
|
4390
|
-
],
|
|
4391
|
-
type: 'object'
|
|
4392
|
-
};
|
|
4393
|
-
export const WorkerListSchema = {
|
|
4394
|
-
properties: {
|
|
4395
|
-
pagination: {
|
|
4396
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
4397
|
-
},
|
|
4398
|
-
rows: {
|
|
4399
|
-
items: {
|
|
4400
|
-
$ref: '#/components/schemas/Worker'
|
|
4401
|
-
},
|
|
4402
|
-
type: 'array'
|
|
4403
|
-
}
|
|
4404
|
-
}
|
|
4405
|
-
};
|
|
4406
|
-
export const UpdateWorkerRequestSchema = {
|
|
4407
|
-
properties: {
|
|
4408
|
-
isPaused: {
|
|
4409
|
-
type: 'boolean',
|
|
4410
|
-
description: 'Whether the worker is paused and cannot accept new runs.'
|
|
4411
|
-
}
|
|
4412
|
-
},
|
|
4413
|
-
type: 'object'
|
|
4414
|
-
};
|
|
4415
|
-
export const WebhookWorkerSchema = {
|
|
4416
|
-
properties: {
|
|
4417
|
-
metadata: {
|
|
4418
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
4419
|
-
},
|
|
4420
|
-
name: {
|
|
4421
|
-
type: 'string',
|
|
4422
|
-
description: 'The name of the webhook worker.'
|
|
4423
|
-
},
|
|
4424
|
-
url: {
|
|
4425
|
-
type: 'string',
|
|
4426
|
-
description: 'The webhook url.'
|
|
4427
|
-
}
|
|
4428
|
-
},
|
|
4429
|
-
required: [
|
|
4430
|
-
'metadata',
|
|
4431
|
-
'name',
|
|
4432
|
-
'url'
|
|
4433
|
-
],
|
|
4434
|
-
type: 'object'
|
|
4435
|
-
};
|
|
4436
|
-
export const WebhookWorkerListResponseSchema = {
|
|
4437
|
-
properties: {
|
|
4438
|
-
pagination: {
|
|
4439
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
4440
|
-
},
|
|
4441
|
-
rows: {
|
|
4442
|
-
items: {
|
|
4443
|
-
$ref: '#/components/schemas/WebhookWorker'
|
|
4444
|
-
},
|
|
4445
|
-
type: 'array'
|
|
4446
|
-
}
|
|
4447
|
-
},
|
|
4448
|
-
type: 'object'
|
|
4449
|
-
};
|
|
4450
|
-
export const WebhookWorkerCreateRequestSchema = {
|
|
4451
|
-
properties: {
|
|
4452
|
-
name: {
|
|
4453
|
-
type: 'string',
|
|
4454
|
-
description: 'The name of the webhook worker.'
|
|
4455
|
-
},
|
|
4456
|
-
url: {
|
|
4457
|
-
type: 'string',
|
|
4458
|
-
description: 'The webhook url.'
|
|
4459
|
-
},
|
|
4460
|
-
secret: {
|
|
4461
|
-
type: 'string',
|
|
4462
|
-
description: 'The secret key for validation. If not provided, a random secret will be generated.',
|
|
4463
|
-
minLength: 32
|
|
4464
|
-
}
|
|
4465
|
-
},
|
|
4466
|
-
required: [
|
|
4467
|
-
'name',
|
|
4468
|
-
'url'
|
|
4469
|
-
],
|
|
4470
|
-
type: 'object'
|
|
4471
|
-
};
|
|
4472
|
-
export const WebhookWorkerCreatedSchema = {
|
|
4473
|
-
properties: {
|
|
4474
|
-
metadata: {
|
|
4475
|
-
$ref: '#/components/schemas/APIResourceMeta'
|
|
4476
|
-
},
|
|
4477
|
-
name: {
|
|
4478
|
-
type: 'string',
|
|
4479
|
-
description: 'The name of the webhook worker.'
|
|
4480
|
-
},
|
|
4481
|
-
url: {
|
|
4482
|
-
type: 'string',
|
|
4483
|
-
description: 'The webhook url.'
|
|
4484
|
-
},
|
|
4485
|
-
secret: {
|
|
4486
|
-
type: 'string',
|
|
4487
|
-
description: 'The secret key for validation.'
|
|
4488
|
-
}
|
|
4489
|
-
},
|
|
4490
|
-
required: [
|
|
4491
|
-
'metadata',
|
|
4492
|
-
'name',
|
|
4493
|
-
'url',
|
|
4494
|
-
'secret'
|
|
4495
|
-
],
|
|
4496
|
-
type: 'object'
|
|
4497
|
-
};
|
|
4498
|
-
export const WebhookWorkerRequestMethodSchema = {
|
|
4499
|
-
enum: [
|
|
4500
|
-
'GET',
|
|
4501
|
-
'POST',
|
|
4502
|
-
'PUT'
|
|
4503
|
-
]
|
|
4504
|
-
};
|
|
4505
|
-
export const WebhookWorkerRequestSchema = {
|
|
4506
|
-
properties: {
|
|
4507
|
-
created_at: {
|
|
4508
|
-
type: 'string',
|
|
4509
|
-
format: 'date-time',
|
|
4510
|
-
description: 'The date and time the request was created.'
|
|
4511
|
-
},
|
|
4512
|
-
method: {
|
|
4513
|
-
$ref: '#/components/schemas/WebhookWorkerRequestMethod',
|
|
4514
|
-
description: 'The HTTP method used for the request.'
|
|
4515
|
-
},
|
|
4516
|
-
statusCode: {
|
|
4517
|
-
type: 'integer',
|
|
4518
|
-
description: 'The HTTP status code of the response.'
|
|
4519
|
-
}
|
|
4520
|
-
},
|
|
4521
|
-
required: [
|
|
4522
|
-
'created_at',
|
|
4523
|
-
'method',
|
|
4524
|
-
'statusCode'
|
|
4525
|
-
],
|
|
4526
|
-
type: 'object'
|
|
4527
|
-
};
|
|
4528
|
-
export const WebhookWorkerRequestListResponseSchema = {
|
|
4529
|
-
properties: {
|
|
4530
|
-
requests: {
|
|
4531
|
-
type: 'array',
|
|
4532
|
-
items: {
|
|
4533
|
-
$ref: '#/components/schemas/WebhookWorkerRequest'
|
|
4534
|
-
},
|
|
4535
|
-
description: 'The list of webhook requests.'
|
|
4536
|
-
}
|
|
4537
|
-
},
|
|
4538
|
-
type: 'object'
|
|
4539
|
-
};
|
|
4540
|
-
export const ConcurrencyStatSchema = {
|
|
4541
|
-
properties: {
|
|
4542
|
-
expression: {
|
|
4543
|
-
type: 'string'
|
|
4544
|
-
},
|
|
4545
|
-
type: {
|
|
4546
|
-
type: 'string'
|
|
4547
|
-
},
|
|
4548
|
-
keys: {
|
|
4549
|
-
type: 'object',
|
|
4550
|
-
additionalProperties: {
|
|
4551
|
-
type: 'integer',
|
|
4552
|
-
format: 'int64'
|
|
4553
|
-
}
|
|
4554
|
-
}
|
|
4555
|
-
},
|
|
4556
|
-
type: 'object'
|
|
4557
|
-
};
|
|
4558
|
-
export const TaskStatusStatSchema = {
|
|
4559
|
-
properties: {
|
|
4560
|
-
total: {
|
|
4561
|
-
type: 'integer',
|
|
4562
|
-
format: 'int64'
|
|
4563
|
-
},
|
|
4564
|
-
queues: {
|
|
4565
|
-
type: 'object',
|
|
4566
|
-
additionalProperties: {
|
|
4567
|
-
type: 'integer',
|
|
4568
|
-
format: 'int64'
|
|
4569
|
-
}
|
|
4570
|
-
},
|
|
4571
|
-
concurrency: {
|
|
4572
|
-
type: 'array',
|
|
4573
|
-
items: {
|
|
4574
|
-
$ref: '#/components/schemas/ConcurrencyStat'
|
|
4575
|
-
}
|
|
4576
|
-
}
|
|
4577
|
-
},
|
|
4578
|
-
type: 'object'
|
|
4579
|
-
};
|
|
4580
|
-
export const TaskStatSchema = {
|
|
4581
|
-
properties: {
|
|
4582
|
-
queued: {
|
|
4583
|
-
$ref: '#/components/schemas/TaskStatusStat'
|
|
4584
|
-
},
|
|
4585
|
-
running: {
|
|
4586
|
-
$ref: '#/components/schemas/TaskStatusStat'
|
|
4587
|
-
}
|
|
4588
|
-
},
|
|
4589
|
-
type: 'object'
|
|
4590
|
-
};
|
|
4591
|
-
export const TaskStatsSchema = {
|
|
4592
|
-
type: 'object',
|
|
4593
|
-
additionalProperties: {
|
|
4594
|
-
$ref: '#/components/schemas/TaskStat'
|
|
4595
|
-
}
|
|
4596
|
-
};
|
|
4597
|
-
export const TenantListSchema = {
|
|
4598
|
-
properties: {
|
|
4599
|
-
pagination: {
|
|
4600
|
-
$ref: '#/components/schemas/PaginationResponse'
|
|
4601
|
-
},
|
|
4602
|
-
rows: {
|
|
4603
|
-
items: {
|
|
4604
|
-
$ref: '#/components/schemas/Tenant'
|
|
4605
|
-
},
|
|
4606
|
-
type: 'array',
|
|
4607
|
-
'x-go-name': 'Rows'
|
|
4608
|
-
}
|
|
4609
|
-
}
|
|
4610
|
-
};
|
|
4611
|
-
export const WorkflowVersionDefinitionSchema = {
|
|
4612
|
-
type: 'object',
|
|
4613
|
-
properties: {
|
|
4614
|
-
rawDefinition: {
|
|
4615
|
-
type: 'string',
|
|
4616
|
-
description: 'The raw YAML definition of the workflow.'
|
|
4617
|
-
}
|
|
4618
|
-
},
|
|
4619
|
-
required: [
|
|
4620
|
-
'rawDefinition'
|
|
4621
|
-
]
|
|
4622
|
-
};
|
|
4623
|
-
export const CreatePullRequestFromStepRunSchema = {
|
|
4624
|
-
properties: {
|
|
4625
|
-
branchName: {
|
|
4626
|
-
type: 'string'
|
|
4627
|
-
}
|
|
4628
|
-
},
|
|
4629
|
-
required: [
|
|
4630
|
-
'branchName'
|
|
4631
|
-
]
|
|
4632
|
-
};
|
|
4633
|
-
export const StepRunDiffSchema = {
|
|
4634
|
-
properties: {
|
|
4635
|
-
key: {
|
|
4636
|
-
type: 'string'
|
|
4637
|
-
},
|
|
4638
|
-
original: {
|
|
4639
|
-
type: 'string'
|
|
4640
|
-
},
|
|
4641
|
-
modified: {
|
|
4642
|
-
type: 'string'
|
|
4643
|
-
}
|
|
4644
|
-
},
|
|
4645
|
-
required: [
|
|
4646
|
-
'key',
|
|
4647
|
-
'original',
|
|
4648
|
-
'modified'
|
|
4649
|
-
]
|
|
4650
|
-
};
|
|
4651
|
-
export const GetStepRunDiffResponseSchema = {
|
|
4652
|
-
properties: {
|
|
4653
|
-
diffs: {
|
|
4654
|
-
type: 'array',
|
|
4655
|
-
items: {
|
|
4656
|
-
$ref: '#/components/schemas/StepRunDiff'
|
|
4657
|
-
}
|
|
4658
|
-
}
|
|
4659
|
-
},
|
|
4660
|
-
required: [
|
|
4661
|
-
'diffs'
|
|
4662
|
-
]
|
|
4663
|
-
};
|
|
4664
|
-
export const PullRequestStateSchema = {
|
|
4665
|
-
type: 'string',
|
|
4666
|
-
enum: [
|
|
4667
|
-
'open',
|
|
4668
|
-
'closed'
|
|
4669
|
-
]
|
|
4670
|
-
};
|
|
4671
|
-
export const PullRequestSchema = {
|
|
4672
|
-
properties: {
|
|
4673
|
-
repositoryOwner: {
|
|
4674
|
-
type: 'string'
|
|
4675
|
-
},
|
|
4676
|
-
repositoryName: {
|
|
4677
|
-
type: 'string'
|
|
4678
|
-
},
|
|
4679
|
-
pullRequestID: {
|
|
4680
|
-
type: 'integer'
|
|
4681
|
-
},
|
|
4682
|
-
pullRequestTitle: {
|
|
4683
|
-
type: 'string'
|
|
4684
|
-
},
|
|
4685
|
-
pullRequestNumber: {
|
|
4686
|
-
type: 'integer'
|
|
4687
|
-
},
|
|
4688
|
-
pullRequestHeadBranch: {
|
|
4689
|
-
type: 'string'
|
|
4690
|
-
},
|
|
4691
|
-
pullRequestBaseBranch: {
|
|
4692
|
-
type: 'string'
|
|
4693
|
-
},
|
|
4694
|
-
pullRequestState: {
|
|
4695
|
-
$ref: '#/components/schemas/PullRequestState'
|
|
4696
|
-
}
|
|
4697
|
-
},
|
|
4698
|
-
required: [
|
|
4699
|
-
'repositoryOwner',
|
|
4700
|
-
'repositoryName',
|
|
4701
|
-
'pullRequestID',
|
|
4702
|
-
'pullRequestTitle',
|
|
4703
|
-
'pullRequestNumber',
|
|
4704
|
-
'pullRequestHeadBranch',
|
|
4705
|
-
'pullRequestBaseBranch',
|
|
4706
|
-
'pullRequestState'
|
|
4707
|
-
]
|
|
4708
|
-
};
|
|
4709
|
-
export const ListPullRequestsResponseSchema = {
|
|
4710
|
-
properties: {
|
|
4711
|
-
pullRequests: {
|
|
4712
|
-
type: 'array',
|
|
4713
|
-
items: {
|
|
4714
|
-
$ref: '#/components/schemas/PullRequest'
|
|
4715
|
-
}
|
|
4716
|
-
}
|
|
4717
|
-
},
|
|
4718
|
-
required: [
|
|
4719
|
-
'pullRequests'
|
|
4720
|
-
]
|
|
4721
|
-
};
|
|
4722
|
-
export const WebhookWorkerCreateResponseSchema = {
|
|
4723
|
-
properties: {
|
|
4724
|
-
worker: {
|
|
4725
|
-
$ref: '#/components/schemas/WebhookWorkerCreated'
|
|
4726
|
-
}
|
|
4727
|
-
},
|
|
4728
|
-
type: 'object'
|
|
4729
|
-
};
|
|
4730
|
-
export const V1TaskRunStatusSchema = {
|
|
4731
|
-
type: 'string',
|
|
4732
|
-
enum: [
|
|
4733
|
-
'PENDING',
|
|
4734
|
-
'RUNNING',
|
|
4735
|
-
'COMPLETED',
|
|
4736
|
-
'FAILED',
|
|
4737
|
-
'CANCELLED'
|
|
4738
|
-
]
|
|
4739
|
-
};
|
|
4740
|
-
export const BulkCreateEventResponseSchema = {
|
|
4741
|
-
$ref: '#/components/schemas/Events'
|
|
4742
|
-
};
|
|
4743
|
-
//# sourceMappingURL=schemas.gen.js.map
|