@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.
Files changed (91) hide show
  1. package/dist/ai/agent-action.zod.d.ts +8 -8
  2. package/dist/ai/model-registry.zod.d.ts +6 -6
  3. package/dist/ai/orchestration.zod.d.ts +6 -6
  4. package/dist/ai/predictive.zod.d.ts +2 -2
  5. package/dist/ai/rag-pipeline.zod.d.ts +2 -2
  6. package/dist/api/batch.zod.d.ts +81 -8
  7. package/dist/api/batch.zod.d.ts.map +1 -1
  8. package/dist/api/batch.zod.js +14 -1
  9. package/dist/api/graphql.zod.d.ts +224 -224
  10. package/dist/api/odata.zod.d.ts +379 -0
  11. package/dist/api/odata.zod.d.ts.map +1 -1
  12. package/dist/api/odata.zod.js +14 -1
  13. package/dist/api/protocol.zod.d.ts +18 -18
  14. package/dist/api/realtime.zod.d.ts +133 -0
  15. package/dist/api/realtime.zod.d.ts.map +1 -1
  16. package/dist/api/realtime.zod.js +14 -1
  17. package/dist/api/websocket.zod.d.ts +2 -2
  18. package/dist/auth/config.zod.d.ts +12 -12
  19. package/dist/auth/identity.zod.d.ts +3 -3
  20. package/dist/automation/approval.zod.d.ts +16 -16
  21. package/dist/automation/etl.zod.d.ts +2 -2
  22. package/dist/automation/sync.zod.d.ts +4 -4
  23. package/dist/automation/webhook.zod.d.ts +2 -2
  24. package/dist/automation/workflow.zod.d.ts +28 -28
  25. package/dist/data/object.zod.d.ts.map +1 -1
  26. package/dist/data/object.zod.js +3 -1
  27. package/dist/hub/composer.zod.d.ts +9 -8
  28. package/dist/hub/composer.zod.d.ts.map +1 -1
  29. package/dist/hub/marketplace.zod.d.ts +1 -0
  30. package/dist/hub/marketplace.zod.d.ts.map +1 -1
  31. package/dist/hub/plugin-registry.zod.d.ts +9 -9
  32. package/dist/hub/space.zod.d.ts +5 -4
  33. package/dist/hub/space.zod.d.ts.map +1 -1
  34. package/dist/integration/connector/database.zod.d.ts +33 -33
  35. package/dist/integration/connector/file-storage.zod.d.ts +52 -52
  36. package/dist/integration/connector/message-queue.zod.d.ts +43 -43
  37. package/dist/integration/connector/saas.zod.d.ts +31 -30
  38. package/dist/integration/connector/saas.zod.d.ts.map +1 -1
  39. package/dist/integration/connector.zod.d.ts +34 -34
  40. package/dist/stack.zod.d.ts +78 -78
  41. package/dist/system/change-management.zod.d.ts +2 -2
  42. package/dist/system/collaboration.zod.d.ts +6 -6
  43. package/dist/system/events.zod.d.ts +2536 -0
  44. package/dist/system/events.zod.d.ts.map +1 -1
  45. package/dist/system/events.zod.js +582 -1
  46. package/dist/system/http-server.zod.d.ts +2 -2
  47. package/dist/system/index.d.ts +1 -0
  48. package/dist/system/index.d.ts.map +1 -1
  49. package/dist/system/index.js +1 -0
  50. package/dist/system/job.zod.d.ts +3 -2
  51. package/dist/system/job.zod.d.ts.map +1 -1
  52. package/dist/system/logging.zod.d.ts +10 -10
  53. package/dist/system/manifest.zod.d.ts +6 -6
  54. package/dist/system/message-queue.zod.d.ts +10 -10
  55. package/dist/system/metadata-loader.zod.d.ts +3 -3
  56. package/dist/system/notification.zod.d.ts +12 -12
  57. package/dist/system/plugin-capability.zod.d.ts +6 -6
  58. package/dist/system/startup-orchestrator.zod.d.ts +2 -2
  59. package/dist/system/worker.zod.d.ts +1458 -0
  60. package/dist/system/worker.zod.d.ts.map +1 -0
  61. package/dist/system/worker.zod.js +479 -0
  62. package/json-schema/api/BatchConfig.json +51 -0
  63. package/json-schema/api/ODataConfig.json +132 -0
  64. package/json-schema/api/RealtimeConfig.json +90 -0
  65. package/json-schema/data/Object.json +4 -1
  66. package/json-schema/system/BatchProgress.json +72 -0
  67. package/json-schema/system/BatchTask.json +63 -0
  68. package/json-schema/system/DeadLetterQueueEntry.json +137 -0
  69. package/json-schema/system/Event.json +24 -0
  70. package/json-schema/system/EventBusConfig.json +552 -0
  71. package/json-schema/system/EventHandler.json +34 -0
  72. package/json-schema/system/EventLogEntry.json +153 -0
  73. package/json-schema/system/EventMessageQueueConfig.json +79 -0
  74. package/json-schema/system/EventMetadata.json +20 -0
  75. package/json-schema/system/EventPersistence.json +11 -0
  76. package/json-schema/system/EventPriority.json +16 -0
  77. package/json-schema/system/EventQueueConfig.json +67 -0
  78. package/json-schema/system/EventReplayConfig.json +50 -0
  79. package/json-schema/system/EventSourcingConfig.json +65 -0
  80. package/json-schema/system/EventTypeDefinition.json +45 -0
  81. package/json-schema/system/EventWebhookConfig.json +119 -0
  82. package/json-schema/system/QueueConfig.json +133 -0
  83. package/json-schema/system/RealTimeNotificationConfig.json +85 -0
  84. package/json-schema/system/Task.json +145 -0
  85. package/json-schema/system/TaskExecutionResult.json +85 -0
  86. package/json-schema/system/TaskPriority.json +16 -0
  87. package/json-schema/system/TaskRetryPolicy.json +46 -0
  88. package/json-schema/system/TaskStatus.json +19 -0
  89. package/json-schema/system/WorkerConfig.json +188 -0
  90. package/json-schema/system/WorkerStats.json +90 -0
  91. package/package.json +9 -1
@@ -0,0 +1,188 @@
1
+ {
2
+ "$ref": "#/definitions/WorkerConfig",
3
+ "definitions": {
4
+ "WorkerConfig": {
5
+ "type": "object",
6
+ "properties": {
7
+ "name": {
8
+ "type": "string",
9
+ "description": "Worker name"
10
+ },
11
+ "queues": {
12
+ "type": "array",
13
+ "items": {
14
+ "type": "string"
15
+ },
16
+ "minItems": 1,
17
+ "description": "Queue names to process"
18
+ },
19
+ "queueConfigs": {
20
+ "type": "array",
21
+ "items": {
22
+ "type": "object",
23
+ "properties": {
24
+ "name": {
25
+ "type": "string",
26
+ "description": "Queue name (snake_case)"
27
+ },
28
+ "concurrency": {
29
+ "type": "integer",
30
+ "minimum": 1,
31
+ "default": 5,
32
+ "description": "Max concurrent task executions"
33
+ },
34
+ "rateLimit": {
35
+ "type": "object",
36
+ "properties": {
37
+ "max": {
38
+ "type": "integer",
39
+ "exclusiveMinimum": 0,
40
+ "description": "Maximum tasks per duration"
41
+ },
42
+ "duration": {
43
+ "type": "integer",
44
+ "exclusiveMinimum": 0,
45
+ "description": "Duration in milliseconds"
46
+ }
47
+ },
48
+ "required": [
49
+ "max",
50
+ "duration"
51
+ ],
52
+ "additionalProperties": false,
53
+ "description": "Rate limit configuration"
54
+ },
55
+ "defaultRetryPolicy": {
56
+ "type": "object",
57
+ "properties": {
58
+ "maxRetries": {
59
+ "type": "integer",
60
+ "minimum": 0,
61
+ "default": 3,
62
+ "description": "Maximum retry attempts"
63
+ },
64
+ "backoffStrategy": {
65
+ "type": "string",
66
+ "enum": [
67
+ "fixed",
68
+ "linear",
69
+ "exponential"
70
+ ],
71
+ "default": "exponential",
72
+ "description": "Backoff strategy between retries"
73
+ },
74
+ "initialDelayMs": {
75
+ "type": "integer",
76
+ "exclusiveMinimum": 0,
77
+ "default": 1000,
78
+ "description": "Initial retry delay in milliseconds"
79
+ },
80
+ "maxDelayMs": {
81
+ "type": "integer",
82
+ "exclusiveMinimum": 0,
83
+ "default": 60000,
84
+ "description": "Maximum retry delay in milliseconds"
85
+ },
86
+ "backoffMultiplier": {
87
+ "type": "number",
88
+ "exclusiveMinimum": 0,
89
+ "default": 2,
90
+ "description": "Multiplier for exponential backoff"
91
+ }
92
+ },
93
+ "additionalProperties": false,
94
+ "description": "Default retry policy for tasks"
95
+ },
96
+ "deadLetterQueue": {
97
+ "type": "string",
98
+ "description": "Dead letter queue name"
99
+ },
100
+ "priority": {
101
+ "type": "integer",
102
+ "minimum": 0,
103
+ "default": 0,
104
+ "description": "Queue priority (lower = higher priority)"
105
+ },
106
+ "autoScale": {
107
+ "type": "object",
108
+ "properties": {
109
+ "enabled": {
110
+ "type": "boolean",
111
+ "default": false,
112
+ "description": "Enable auto-scaling"
113
+ },
114
+ "minWorkers": {
115
+ "type": "integer",
116
+ "minimum": 1,
117
+ "default": 1,
118
+ "description": "Minimum workers"
119
+ },
120
+ "maxWorkers": {
121
+ "type": "integer",
122
+ "minimum": 1,
123
+ "default": 10,
124
+ "description": "Maximum workers"
125
+ },
126
+ "scaleUpThreshold": {
127
+ "type": "integer",
128
+ "exclusiveMinimum": 0,
129
+ "default": 100,
130
+ "description": "Queue size to scale up"
131
+ },
132
+ "scaleDownThreshold": {
133
+ "type": "integer",
134
+ "minimum": 0,
135
+ "default": 10,
136
+ "description": "Queue size to scale down"
137
+ }
138
+ },
139
+ "additionalProperties": false,
140
+ "description": "Auto-scaling configuration"
141
+ }
142
+ },
143
+ "required": [
144
+ "name"
145
+ ],
146
+ "additionalProperties": false
147
+ },
148
+ "description": "Queue configurations"
149
+ },
150
+ "pollIntervalMs": {
151
+ "type": "integer",
152
+ "exclusiveMinimum": 0,
153
+ "default": 1000,
154
+ "description": "Queue polling interval in milliseconds"
155
+ },
156
+ "visibilityTimeoutMs": {
157
+ "type": "integer",
158
+ "exclusiveMinimum": 0,
159
+ "default": 30000,
160
+ "description": "How long a task is invisible after being claimed"
161
+ },
162
+ "defaultTimeoutMs": {
163
+ "type": "integer",
164
+ "exclusiveMinimum": 0,
165
+ "default": 300000,
166
+ "description": "Default task timeout in milliseconds"
167
+ },
168
+ "shutdownTimeoutMs": {
169
+ "type": "integer",
170
+ "exclusiveMinimum": 0,
171
+ "default": 30000,
172
+ "description": "Graceful shutdown timeout in milliseconds"
173
+ },
174
+ "handlers": {
175
+ "type": "object",
176
+ "additionalProperties": true,
177
+ "description": "Task type handlers"
178
+ }
179
+ },
180
+ "required": [
181
+ "name",
182
+ "queues"
183
+ ],
184
+ "additionalProperties": false
185
+ }
186
+ },
187
+ "$schema": "http://json-schema.org/draft-07/schema#"
188
+ }
@@ -0,0 +1,90 @@
1
+ {
2
+ "$ref": "#/definitions/WorkerStats",
3
+ "definitions": {
4
+ "WorkerStats": {
5
+ "type": "object",
6
+ "properties": {
7
+ "workerName": {
8
+ "type": "string",
9
+ "description": "Worker name"
10
+ },
11
+ "totalProcessed": {
12
+ "type": "integer",
13
+ "minimum": 0,
14
+ "description": "Total tasks processed"
15
+ },
16
+ "succeeded": {
17
+ "type": "integer",
18
+ "minimum": 0,
19
+ "description": "Successful tasks"
20
+ },
21
+ "failed": {
22
+ "type": "integer",
23
+ "minimum": 0,
24
+ "description": "Failed tasks"
25
+ },
26
+ "active": {
27
+ "type": "integer",
28
+ "minimum": 0,
29
+ "description": "Currently active tasks"
30
+ },
31
+ "avgExecutionMs": {
32
+ "type": "number",
33
+ "minimum": 0,
34
+ "description": "Average execution time in milliseconds"
35
+ },
36
+ "uptimeMs": {
37
+ "type": "integer",
38
+ "minimum": 0,
39
+ "description": "Worker uptime in milliseconds"
40
+ },
41
+ "queues": {
42
+ "type": "object",
43
+ "additionalProperties": {
44
+ "type": "object",
45
+ "properties": {
46
+ "pending": {
47
+ "type": "integer",
48
+ "minimum": 0,
49
+ "description": "Pending tasks"
50
+ },
51
+ "active": {
52
+ "type": "integer",
53
+ "minimum": 0,
54
+ "description": "Active tasks"
55
+ },
56
+ "completed": {
57
+ "type": "integer",
58
+ "minimum": 0,
59
+ "description": "Completed tasks"
60
+ },
61
+ "failed": {
62
+ "type": "integer",
63
+ "minimum": 0,
64
+ "description": "Failed tasks"
65
+ }
66
+ },
67
+ "required": [
68
+ "pending",
69
+ "active",
70
+ "completed",
71
+ "failed"
72
+ ],
73
+ "additionalProperties": false
74
+ },
75
+ "description": "Per-queue statistics"
76
+ }
77
+ },
78
+ "required": [
79
+ "workerName",
80
+ "totalProcessed",
81
+ "succeeded",
82
+ "failed",
83
+ "active",
84
+ "uptimeMs"
85
+ ],
86
+ "additionalProperties": false
87
+ }
88
+ },
89
+ "$schema": "http://json-schema.org/draft-07/schema#"
90
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@objectstack/spec",
3
- "version": "0.7.1",
3
+ "version": "0.7.2",
4
4
  "description": "ObjectStack Protocol & Specification - TypeScript Interfaces, JSON Schemas, and Convention Configurations",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",
@@ -52,6 +52,14 @@
52
52
  "./contracts": {
53
53
  "types": "./dist/contracts/index.d.ts",
54
54
  "default": "./dist/contracts/index.js"
55
+ },
56
+ "./integration": {
57
+ "types": "./dist/integration/index.d.ts",
58
+ "default": "./dist/integration/index.js"
59
+ },
60
+ "./permission": {
61
+ "types": "./dist/permission/index.d.ts",
62
+ "default": "./dist/permission/index.js"
55
63
  }
56
64
  },
57
65
  "files": [