@objectstack/spec 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/ai/agent-action.zod.d.ts +8 -8
- package/dist/ai/model-registry.zod.d.ts +6 -6
- package/dist/ai/orchestration.zod.d.ts +6 -6
- package/dist/ai/predictive.zod.d.ts +2 -2
- package/dist/ai/rag-pipeline.zod.d.ts +2 -2
- package/dist/api/batch.zod.d.ts +81 -8
- package/dist/api/batch.zod.d.ts.map +1 -1
- package/dist/api/batch.zod.js +14 -1
- package/dist/api/graphql.zod.d.ts +224 -224
- package/dist/api/odata.zod.d.ts +379 -0
- package/dist/api/odata.zod.d.ts.map +1 -1
- package/dist/api/odata.zod.js +14 -1
- package/dist/api/protocol.zod.d.ts +18 -18
- package/dist/api/realtime.zod.d.ts +133 -0
- package/dist/api/realtime.zod.d.ts.map +1 -1
- package/dist/api/realtime.zod.js +14 -1
- package/dist/api/websocket.zod.d.ts +2 -2
- package/dist/auth/config.zod.d.ts +12 -12
- package/dist/auth/identity.zod.d.ts +3 -3
- package/dist/automation/approval.zod.d.ts +16 -16
- package/dist/automation/etl.zod.d.ts +2 -2
- package/dist/automation/sync.zod.d.ts +4 -4
- package/dist/automation/webhook.zod.d.ts +2 -2
- package/dist/automation/workflow.zod.d.ts +28 -28
- package/dist/data/object.zod.d.ts.map +1 -1
- package/dist/data/object.zod.js +3 -1
- package/dist/hub/composer.zod.d.ts +9 -8
- package/dist/hub/composer.zod.d.ts.map +1 -1
- package/dist/hub/marketplace.zod.d.ts +1 -0
- package/dist/hub/marketplace.zod.d.ts.map +1 -1
- package/dist/hub/plugin-registry.zod.d.ts +9 -9
- package/dist/hub/space.zod.d.ts +5 -4
- package/dist/hub/space.zod.d.ts.map +1 -1
- package/dist/integration/connector/database.zod.d.ts +33 -33
- package/dist/integration/connector/file-storage.zod.d.ts +52 -52
- package/dist/integration/connector/message-queue.zod.d.ts +43 -43
- package/dist/integration/connector/saas.zod.d.ts +31 -30
- package/dist/integration/connector/saas.zod.d.ts.map +1 -1
- package/dist/integration/connector.zod.d.ts +34 -34
- package/dist/stack.zod.d.ts +78 -78
- package/dist/system/change-management.zod.d.ts +2 -2
- package/dist/system/collaboration.zod.d.ts +6 -6
- package/dist/system/events.zod.d.ts +2536 -0
- package/dist/system/events.zod.d.ts.map +1 -1
- package/dist/system/events.zod.js +582 -1
- package/dist/system/http-server.zod.d.ts +2 -2
- package/dist/system/index.d.ts +1 -0
- package/dist/system/index.d.ts.map +1 -1
- package/dist/system/index.js +1 -0
- package/dist/system/job.zod.d.ts +3 -2
- package/dist/system/job.zod.d.ts.map +1 -1
- package/dist/system/logging.zod.d.ts +10 -10
- package/dist/system/manifest.zod.d.ts +6 -6
- package/dist/system/message-queue.zod.d.ts +10 -10
- package/dist/system/metadata-loader.zod.d.ts +3 -3
- package/dist/system/notification.zod.d.ts +12 -12
- package/dist/system/plugin-capability.zod.d.ts +6 -6
- package/dist/system/startup-orchestrator.zod.d.ts +2 -2
- package/dist/system/worker.zod.d.ts +1458 -0
- package/dist/system/worker.zod.d.ts.map +1 -0
- package/dist/system/worker.zod.js +479 -0
- package/json-schema/api/BatchConfig.json +51 -0
- package/json-schema/api/ODataConfig.json +132 -0
- package/json-schema/api/RealtimeConfig.json +90 -0
- package/json-schema/data/Object.json +4 -1
- package/json-schema/system/BatchProgress.json +72 -0
- package/json-schema/system/BatchTask.json +63 -0
- package/json-schema/system/DeadLetterQueueEntry.json +137 -0
- package/json-schema/system/Event.json +24 -0
- package/json-schema/system/EventBusConfig.json +552 -0
- package/json-schema/system/EventHandler.json +34 -0
- package/json-schema/system/EventLogEntry.json +153 -0
- package/json-schema/system/EventMessageQueueConfig.json +79 -0
- package/json-schema/system/EventMetadata.json +20 -0
- package/json-schema/system/EventPersistence.json +11 -0
- package/json-schema/system/EventPriority.json +16 -0
- package/json-schema/system/EventQueueConfig.json +67 -0
- package/json-schema/system/EventReplayConfig.json +50 -0
- package/json-schema/system/EventSourcingConfig.json +65 -0
- package/json-schema/system/EventTypeDefinition.json +45 -0
- package/json-schema/system/EventWebhookConfig.json +119 -0
- package/json-schema/system/QueueConfig.json +133 -0
- package/json-schema/system/RealTimeNotificationConfig.json +85 -0
- package/json-schema/system/Task.json +145 -0
- package/json-schema/system/TaskExecutionResult.json +85 -0
- package/json-schema/system/TaskPriority.json +16 -0
- package/json-schema/system/TaskRetryPolicy.json +46 -0
- package/json-schema/system/TaskStatus.json +19 -0
- package/json-schema/system/WorkerConfig.json +188 -0
- package/json-schema/system/WorkerStats.json +90 -0
- package/package.json +9 -1
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/QueueConfig",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"QueueConfig": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"name": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Queue name (snake_case)"
|
|
10
|
+
},
|
|
11
|
+
"concurrency": {
|
|
12
|
+
"type": "integer",
|
|
13
|
+
"minimum": 1,
|
|
14
|
+
"default": 5,
|
|
15
|
+
"description": "Max concurrent task executions"
|
|
16
|
+
},
|
|
17
|
+
"rateLimit": {
|
|
18
|
+
"type": "object",
|
|
19
|
+
"properties": {
|
|
20
|
+
"max": {
|
|
21
|
+
"type": "integer",
|
|
22
|
+
"exclusiveMinimum": 0,
|
|
23
|
+
"description": "Maximum tasks per duration"
|
|
24
|
+
},
|
|
25
|
+
"duration": {
|
|
26
|
+
"type": "integer",
|
|
27
|
+
"exclusiveMinimum": 0,
|
|
28
|
+
"description": "Duration in milliseconds"
|
|
29
|
+
}
|
|
30
|
+
},
|
|
31
|
+
"required": [
|
|
32
|
+
"max",
|
|
33
|
+
"duration"
|
|
34
|
+
],
|
|
35
|
+
"additionalProperties": false,
|
|
36
|
+
"description": "Rate limit configuration"
|
|
37
|
+
},
|
|
38
|
+
"defaultRetryPolicy": {
|
|
39
|
+
"type": "object",
|
|
40
|
+
"properties": {
|
|
41
|
+
"maxRetries": {
|
|
42
|
+
"type": "integer",
|
|
43
|
+
"minimum": 0,
|
|
44
|
+
"default": 3,
|
|
45
|
+
"description": "Maximum retry attempts"
|
|
46
|
+
},
|
|
47
|
+
"backoffStrategy": {
|
|
48
|
+
"type": "string",
|
|
49
|
+
"enum": [
|
|
50
|
+
"fixed",
|
|
51
|
+
"linear",
|
|
52
|
+
"exponential"
|
|
53
|
+
],
|
|
54
|
+
"default": "exponential",
|
|
55
|
+
"description": "Backoff strategy between retries"
|
|
56
|
+
},
|
|
57
|
+
"initialDelayMs": {
|
|
58
|
+
"type": "integer",
|
|
59
|
+
"exclusiveMinimum": 0,
|
|
60
|
+
"default": 1000,
|
|
61
|
+
"description": "Initial retry delay in milliseconds"
|
|
62
|
+
},
|
|
63
|
+
"maxDelayMs": {
|
|
64
|
+
"type": "integer",
|
|
65
|
+
"exclusiveMinimum": 0,
|
|
66
|
+
"default": 60000,
|
|
67
|
+
"description": "Maximum retry delay in milliseconds"
|
|
68
|
+
},
|
|
69
|
+
"backoffMultiplier": {
|
|
70
|
+
"type": "number",
|
|
71
|
+
"exclusiveMinimum": 0,
|
|
72
|
+
"default": 2,
|
|
73
|
+
"description": "Multiplier for exponential backoff"
|
|
74
|
+
}
|
|
75
|
+
},
|
|
76
|
+
"additionalProperties": false,
|
|
77
|
+
"description": "Default retry policy for tasks"
|
|
78
|
+
},
|
|
79
|
+
"deadLetterQueue": {
|
|
80
|
+
"type": "string",
|
|
81
|
+
"description": "Dead letter queue name"
|
|
82
|
+
},
|
|
83
|
+
"priority": {
|
|
84
|
+
"type": "integer",
|
|
85
|
+
"minimum": 0,
|
|
86
|
+
"default": 0,
|
|
87
|
+
"description": "Queue priority (lower = higher priority)"
|
|
88
|
+
},
|
|
89
|
+
"autoScale": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"properties": {
|
|
92
|
+
"enabled": {
|
|
93
|
+
"type": "boolean",
|
|
94
|
+
"default": false,
|
|
95
|
+
"description": "Enable auto-scaling"
|
|
96
|
+
},
|
|
97
|
+
"minWorkers": {
|
|
98
|
+
"type": "integer",
|
|
99
|
+
"minimum": 1,
|
|
100
|
+
"default": 1,
|
|
101
|
+
"description": "Minimum workers"
|
|
102
|
+
},
|
|
103
|
+
"maxWorkers": {
|
|
104
|
+
"type": "integer",
|
|
105
|
+
"minimum": 1,
|
|
106
|
+
"default": 10,
|
|
107
|
+
"description": "Maximum workers"
|
|
108
|
+
},
|
|
109
|
+
"scaleUpThreshold": {
|
|
110
|
+
"type": "integer",
|
|
111
|
+
"exclusiveMinimum": 0,
|
|
112
|
+
"default": 100,
|
|
113
|
+
"description": "Queue size to scale up"
|
|
114
|
+
},
|
|
115
|
+
"scaleDownThreshold": {
|
|
116
|
+
"type": "integer",
|
|
117
|
+
"minimum": 0,
|
|
118
|
+
"default": 10,
|
|
119
|
+
"description": "Queue size to scale down"
|
|
120
|
+
}
|
|
121
|
+
},
|
|
122
|
+
"additionalProperties": false,
|
|
123
|
+
"description": "Auto-scaling configuration"
|
|
124
|
+
}
|
|
125
|
+
},
|
|
126
|
+
"required": [
|
|
127
|
+
"name"
|
|
128
|
+
],
|
|
129
|
+
"additionalProperties": false
|
|
130
|
+
}
|
|
131
|
+
},
|
|
132
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
133
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/RealTimeNotificationConfig",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"RealTimeNotificationConfig": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"enabled": {
|
|
8
|
+
"type": "boolean",
|
|
9
|
+
"default": true,
|
|
10
|
+
"description": "Enable real-time notifications"
|
|
11
|
+
},
|
|
12
|
+
"protocol": {
|
|
13
|
+
"type": "string",
|
|
14
|
+
"enum": [
|
|
15
|
+
"websocket",
|
|
16
|
+
"sse",
|
|
17
|
+
"long-polling"
|
|
18
|
+
],
|
|
19
|
+
"default": "websocket",
|
|
20
|
+
"description": "Real-time protocol"
|
|
21
|
+
},
|
|
22
|
+
"eventPattern": {
|
|
23
|
+
"type": "string",
|
|
24
|
+
"default": "*",
|
|
25
|
+
"description": "Event pattern to broadcast"
|
|
26
|
+
},
|
|
27
|
+
"userFilter": {
|
|
28
|
+
"type": "boolean",
|
|
29
|
+
"default": true,
|
|
30
|
+
"description": "Filter events by user"
|
|
31
|
+
},
|
|
32
|
+
"tenantFilter": {
|
|
33
|
+
"type": "boolean",
|
|
34
|
+
"default": true,
|
|
35
|
+
"description": "Filter events by tenant"
|
|
36
|
+
},
|
|
37
|
+
"channels": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"items": {
|
|
40
|
+
"type": "object",
|
|
41
|
+
"properties": {
|
|
42
|
+
"name": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Channel name"
|
|
45
|
+
},
|
|
46
|
+
"eventPattern": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "Event pattern for channel"
|
|
49
|
+
}
|
|
50
|
+
},
|
|
51
|
+
"required": [
|
|
52
|
+
"name",
|
|
53
|
+
"eventPattern"
|
|
54
|
+
],
|
|
55
|
+
"additionalProperties": false
|
|
56
|
+
},
|
|
57
|
+
"description": "Named channels for event broadcasting"
|
|
58
|
+
},
|
|
59
|
+
"rateLimit": {
|
|
60
|
+
"type": "object",
|
|
61
|
+
"properties": {
|
|
62
|
+
"maxEventsPerSecond": {
|
|
63
|
+
"type": "integer",
|
|
64
|
+
"exclusiveMinimum": 0,
|
|
65
|
+
"description": "Max events per second per client"
|
|
66
|
+
},
|
|
67
|
+
"windowMs": {
|
|
68
|
+
"type": "integer",
|
|
69
|
+
"exclusiveMinimum": 0,
|
|
70
|
+
"default": 1000,
|
|
71
|
+
"description": "Rate limit window"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": [
|
|
75
|
+
"maxEventsPerSecond"
|
|
76
|
+
],
|
|
77
|
+
"additionalProperties": false,
|
|
78
|
+
"description": "Rate limiting configuration"
|
|
79
|
+
}
|
|
80
|
+
},
|
|
81
|
+
"additionalProperties": false
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
85
|
+
}
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/Task",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"Task": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Unique task identifier"
|
|
10
|
+
},
|
|
11
|
+
"type": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"pattern": "^[a-z_][a-z0-9_]*$",
|
|
14
|
+
"description": "Task type (snake_case)"
|
|
15
|
+
},
|
|
16
|
+
"payload": {
|
|
17
|
+
"description": "Task payload data"
|
|
18
|
+
},
|
|
19
|
+
"queue": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"default": "default",
|
|
22
|
+
"description": "Queue name"
|
|
23
|
+
},
|
|
24
|
+
"priority": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"enum": [
|
|
27
|
+
"critical",
|
|
28
|
+
"high",
|
|
29
|
+
"normal",
|
|
30
|
+
"low",
|
|
31
|
+
"background"
|
|
32
|
+
],
|
|
33
|
+
"default": "normal",
|
|
34
|
+
"description": "Task priority level"
|
|
35
|
+
},
|
|
36
|
+
"retryPolicy": {
|
|
37
|
+
"type": "object",
|
|
38
|
+
"properties": {
|
|
39
|
+
"maxRetries": {
|
|
40
|
+
"type": "integer",
|
|
41
|
+
"minimum": 0,
|
|
42
|
+
"default": 3,
|
|
43
|
+
"description": "Maximum retry attempts"
|
|
44
|
+
},
|
|
45
|
+
"backoffStrategy": {
|
|
46
|
+
"type": "string",
|
|
47
|
+
"enum": [
|
|
48
|
+
"fixed",
|
|
49
|
+
"linear",
|
|
50
|
+
"exponential"
|
|
51
|
+
],
|
|
52
|
+
"default": "exponential",
|
|
53
|
+
"description": "Backoff strategy between retries"
|
|
54
|
+
},
|
|
55
|
+
"initialDelayMs": {
|
|
56
|
+
"type": "integer",
|
|
57
|
+
"exclusiveMinimum": 0,
|
|
58
|
+
"default": 1000,
|
|
59
|
+
"description": "Initial retry delay in milliseconds"
|
|
60
|
+
},
|
|
61
|
+
"maxDelayMs": {
|
|
62
|
+
"type": "integer",
|
|
63
|
+
"exclusiveMinimum": 0,
|
|
64
|
+
"default": 60000,
|
|
65
|
+
"description": "Maximum retry delay in milliseconds"
|
|
66
|
+
},
|
|
67
|
+
"backoffMultiplier": {
|
|
68
|
+
"type": "number",
|
|
69
|
+
"exclusiveMinimum": 0,
|
|
70
|
+
"default": 2,
|
|
71
|
+
"description": "Multiplier for exponential backoff"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"additionalProperties": false,
|
|
75
|
+
"description": "Retry policy configuration"
|
|
76
|
+
},
|
|
77
|
+
"timeoutMs": {
|
|
78
|
+
"type": "integer",
|
|
79
|
+
"exclusiveMinimum": 0,
|
|
80
|
+
"description": "Task timeout in milliseconds"
|
|
81
|
+
},
|
|
82
|
+
"scheduledAt": {
|
|
83
|
+
"type": "string",
|
|
84
|
+
"format": "date-time",
|
|
85
|
+
"description": "ISO 8601 datetime to execute task"
|
|
86
|
+
},
|
|
87
|
+
"attempts": {
|
|
88
|
+
"type": "integer",
|
|
89
|
+
"minimum": 0,
|
|
90
|
+
"default": 0,
|
|
91
|
+
"description": "Number of execution attempts"
|
|
92
|
+
},
|
|
93
|
+
"status": {
|
|
94
|
+
"type": "string",
|
|
95
|
+
"enum": [
|
|
96
|
+
"pending",
|
|
97
|
+
"queued",
|
|
98
|
+
"processing",
|
|
99
|
+
"completed",
|
|
100
|
+
"failed",
|
|
101
|
+
"cancelled",
|
|
102
|
+
"timeout",
|
|
103
|
+
"dead"
|
|
104
|
+
],
|
|
105
|
+
"default": "pending",
|
|
106
|
+
"description": "Current task status"
|
|
107
|
+
},
|
|
108
|
+
"metadata": {
|
|
109
|
+
"type": "object",
|
|
110
|
+
"properties": {
|
|
111
|
+
"createdAt": {
|
|
112
|
+
"type": "string",
|
|
113
|
+
"format": "date-time",
|
|
114
|
+
"description": "When task was created"
|
|
115
|
+
},
|
|
116
|
+
"updatedAt": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"format": "date-time",
|
|
119
|
+
"description": "Last update time"
|
|
120
|
+
},
|
|
121
|
+
"createdBy": {
|
|
122
|
+
"type": "string",
|
|
123
|
+
"description": "User who created task"
|
|
124
|
+
},
|
|
125
|
+
"tags": {
|
|
126
|
+
"type": "array",
|
|
127
|
+
"items": {
|
|
128
|
+
"type": "string"
|
|
129
|
+
},
|
|
130
|
+
"description": "Task tags for filtering"
|
|
131
|
+
}
|
|
132
|
+
},
|
|
133
|
+
"additionalProperties": false,
|
|
134
|
+
"description": "Task metadata"
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
"required": [
|
|
138
|
+
"id",
|
|
139
|
+
"type"
|
|
140
|
+
],
|
|
141
|
+
"additionalProperties": false
|
|
142
|
+
}
|
|
143
|
+
},
|
|
144
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
145
|
+
}
|
|
@@ -0,0 +1,85 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/TaskExecutionResult",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"TaskExecutionResult": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"taskId": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Task identifier"
|
|
10
|
+
},
|
|
11
|
+
"status": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"enum": [
|
|
14
|
+
"pending",
|
|
15
|
+
"queued",
|
|
16
|
+
"processing",
|
|
17
|
+
"completed",
|
|
18
|
+
"failed",
|
|
19
|
+
"cancelled",
|
|
20
|
+
"timeout",
|
|
21
|
+
"dead"
|
|
22
|
+
],
|
|
23
|
+
"description": "Execution status"
|
|
24
|
+
},
|
|
25
|
+
"result": {
|
|
26
|
+
"description": "Execution result data"
|
|
27
|
+
},
|
|
28
|
+
"error": {
|
|
29
|
+
"type": "object",
|
|
30
|
+
"properties": {
|
|
31
|
+
"message": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "Error message"
|
|
34
|
+
},
|
|
35
|
+
"stack": {
|
|
36
|
+
"type": "string",
|
|
37
|
+
"description": "Error stack trace"
|
|
38
|
+
},
|
|
39
|
+
"code": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Error code"
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
"required": [
|
|
45
|
+
"message"
|
|
46
|
+
],
|
|
47
|
+
"additionalProperties": false,
|
|
48
|
+
"description": "Error details if failed"
|
|
49
|
+
},
|
|
50
|
+
"durationMs": {
|
|
51
|
+
"type": "integer",
|
|
52
|
+
"description": "Execution duration in milliseconds"
|
|
53
|
+
},
|
|
54
|
+
"startedAt": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"format": "date-time",
|
|
57
|
+
"description": "When execution started"
|
|
58
|
+
},
|
|
59
|
+
"completedAt": {
|
|
60
|
+
"type": "string",
|
|
61
|
+
"format": "date-time",
|
|
62
|
+
"description": "When execution completed"
|
|
63
|
+
},
|
|
64
|
+
"attempt": {
|
|
65
|
+
"type": "integer",
|
|
66
|
+
"minimum": 1,
|
|
67
|
+
"description": "Attempt number (1-indexed)"
|
|
68
|
+
},
|
|
69
|
+
"willRetry": {
|
|
70
|
+
"type": "boolean",
|
|
71
|
+
"description": "Whether task will be retried"
|
|
72
|
+
}
|
|
73
|
+
},
|
|
74
|
+
"required": [
|
|
75
|
+
"taskId",
|
|
76
|
+
"status",
|
|
77
|
+
"startedAt",
|
|
78
|
+
"attempt",
|
|
79
|
+
"willRetry"
|
|
80
|
+
],
|
|
81
|
+
"additionalProperties": false
|
|
82
|
+
}
|
|
83
|
+
},
|
|
84
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
85
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/TaskPriority",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"TaskPriority": {
|
|
5
|
+
"type": "string",
|
|
6
|
+
"enum": [
|
|
7
|
+
"critical",
|
|
8
|
+
"high",
|
|
9
|
+
"normal",
|
|
10
|
+
"low",
|
|
11
|
+
"background"
|
|
12
|
+
]
|
|
13
|
+
}
|
|
14
|
+
},
|
|
15
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
16
|
+
}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/TaskRetryPolicy",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"TaskRetryPolicy": {
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"maxRetries": {
|
|
8
|
+
"type": "integer",
|
|
9
|
+
"minimum": 0,
|
|
10
|
+
"default": 3,
|
|
11
|
+
"description": "Maximum retry attempts"
|
|
12
|
+
},
|
|
13
|
+
"backoffStrategy": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"enum": [
|
|
16
|
+
"fixed",
|
|
17
|
+
"linear",
|
|
18
|
+
"exponential"
|
|
19
|
+
],
|
|
20
|
+
"default": "exponential",
|
|
21
|
+
"description": "Backoff strategy between retries"
|
|
22
|
+
},
|
|
23
|
+
"initialDelayMs": {
|
|
24
|
+
"type": "integer",
|
|
25
|
+
"exclusiveMinimum": 0,
|
|
26
|
+
"default": 1000,
|
|
27
|
+
"description": "Initial retry delay in milliseconds"
|
|
28
|
+
},
|
|
29
|
+
"maxDelayMs": {
|
|
30
|
+
"type": "integer",
|
|
31
|
+
"exclusiveMinimum": 0,
|
|
32
|
+
"default": 60000,
|
|
33
|
+
"description": "Maximum retry delay in milliseconds"
|
|
34
|
+
},
|
|
35
|
+
"backoffMultiplier": {
|
|
36
|
+
"type": "number",
|
|
37
|
+
"exclusiveMinimum": 0,
|
|
38
|
+
"default": 2,
|
|
39
|
+
"description": "Multiplier for exponential backoff"
|
|
40
|
+
}
|
|
41
|
+
},
|
|
42
|
+
"additionalProperties": false
|
|
43
|
+
}
|
|
44
|
+
},
|
|
45
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
46
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$ref": "#/definitions/TaskStatus",
|
|
3
|
+
"definitions": {
|
|
4
|
+
"TaskStatus": {
|
|
5
|
+
"type": "string",
|
|
6
|
+
"enum": [
|
|
7
|
+
"pending",
|
|
8
|
+
"queued",
|
|
9
|
+
"processing",
|
|
10
|
+
"completed",
|
|
11
|
+
"failed",
|
|
12
|
+
"cancelled",
|
|
13
|
+
"timeout",
|
|
14
|
+
"dead"
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"$schema": "http://json-schema.org/draft-07/schema#"
|
|
19
|
+
}
|