@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
|
@@ -1248,8 +1248,8 @@ export declare const AgentActionSequenceSchema: z.ZodObject<{
|
|
|
1248
1248
|
successMessage?: string | undefined;
|
|
1249
1249
|
confirmationMessage?: string | undefined;
|
|
1250
1250
|
}[];
|
|
1251
|
-
atomic: boolean;
|
|
1252
1251
|
stopOnError: boolean;
|
|
1252
|
+
atomic: boolean;
|
|
1253
1253
|
id?: string | undefined;
|
|
1254
1254
|
metadata?: {
|
|
1255
1255
|
intent?: string | undefined;
|
|
@@ -1340,8 +1340,8 @@ export declare const AgentActionSequenceSchema: z.ZodObject<{
|
|
|
1340
1340
|
confidence?: number | undefined;
|
|
1341
1341
|
agentName?: string | undefined;
|
|
1342
1342
|
} | undefined;
|
|
1343
|
-
atomic?: boolean | undefined;
|
|
1344
1343
|
stopOnError?: boolean | undefined;
|
|
1344
|
+
atomic?: boolean | undefined;
|
|
1345
1345
|
}>;
|
|
1346
1346
|
export type AgentActionSequence = z.infer<typeof AgentActionSequenceSchema>;
|
|
1347
1347
|
/**
|
|
@@ -1394,7 +1394,7 @@ export declare const AgentActionResultSchema: z.ZodObject<{
|
|
|
1394
1394
|
endTime?: string | undefined;
|
|
1395
1395
|
}>>;
|
|
1396
1396
|
}, "strip", z.ZodTypeAny, {
|
|
1397
|
-
status: "error" | "success" | "
|
|
1397
|
+
status: "error" | "success" | "pending" | "cancelled";
|
|
1398
1398
|
actionId: string;
|
|
1399
1399
|
error?: {
|
|
1400
1400
|
message: string;
|
|
@@ -1408,7 +1408,7 @@ export declare const AgentActionResultSchema: z.ZodObject<{
|
|
|
1408
1408
|
endTime?: string | undefined;
|
|
1409
1409
|
} | undefined;
|
|
1410
1410
|
}, {
|
|
1411
|
-
status: "error" | "success" | "
|
|
1411
|
+
status: "error" | "success" | "pending" | "cancelled";
|
|
1412
1412
|
actionId: string;
|
|
1413
1413
|
error?: {
|
|
1414
1414
|
message: string;
|
|
@@ -1485,7 +1485,7 @@ export declare const AgentActionSequenceResultSchema: z.ZodObject<{
|
|
|
1485
1485
|
endTime?: string | undefined;
|
|
1486
1486
|
}>>;
|
|
1487
1487
|
}, "strip", z.ZodTypeAny, {
|
|
1488
|
-
status: "error" | "success" | "
|
|
1488
|
+
status: "error" | "success" | "pending" | "cancelled";
|
|
1489
1489
|
actionId: string;
|
|
1490
1490
|
error?: {
|
|
1491
1491
|
message: string;
|
|
@@ -1499,7 +1499,7 @@ export declare const AgentActionSequenceResultSchema: z.ZodObject<{
|
|
|
1499
1499
|
endTime?: string | undefined;
|
|
1500
1500
|
} | undefined;
|
|
1501
1501
|
}, {
|
|
1502
|
-
status: "error" | "success" | "
|
|
1502
|
+
status: "error" | "success" | "pending" | "cancelled";
|
|
1503
1503
|
actionId: string;
|
|
1504
1504
|
error?: {
|
|
1505
1505
|
message: string;
|
|
@@ -1557,7 +1557,7 @@ export declare const AgentActionSequenceResultSchema: z.ZodObject<{
|
|
|
1557
1557
|
successful: number;
|
|
1558
1558
|
};
|
|
1559
1559
|
results: {
|
|
1560
|
-
status: "error" | "success" | "
|
|
1560
|
+
status: "error" | "success" | "pending" | "cancelled";
|
|
1561
1561
|
actionId: string;
|
|
1562
1562
|
error?: {
|
|
1563
1563
|
message: string;
|
|
@@ -1586,7 +1586,7 @@ export declare const AgentActionSequenceResultSchema: z.ZodObject<{
|
|
|
1586
1586
|
successful: number;
|
|
1587
1587
|
};
|
|
1588
1588
|
results: {
|
|
1589
|
-
status: "error" | "success" | "
|
|
1589
|
+
status: "error" | "success" | "pending" | "cancelled";
|
|
1590
1590
|
actionId: string;
|
|
1591
1591
|
error?: {
|
|
1592
1592
|
message: string;
|
|
@@ -645,7 +645,7 @@ export declare const ModelRegistryEntrySchema: z.ZodObject<{
|
|
|
645
645
|
lastChecked?: string | undefined;
|
|
646
646
|
}>>;
|
|
647
647
|
}, "strip", z.ZodTypeAny, {
|
|
648
|
-
status: "active" | "disabled" | "
|
|
648
|
+
status: "active" | "disabled" | "deprecated" | "experimental";
|
|
649
649
|
priority: number;
|
|
650
650
|
model: {
|
|
651
651
|
provider: "custom" | "local" | "google" | "openai" | "azure_openai" | "anthropic" | "cohere" | "huggingface";
|
|
@@ -729,7 +729,7 @@ export declare const ModelRegistryEntrySchema: z.ZodObject<{
|
|
|
729
729
|
} | undefined;
|
|
730
730
|
recommendedFor?: string[] | undefined;
|
|
731
731
|
};
|
|
732
|
-
status?: "active" | "disabled" | "
|
|
732
|
+
status?: "active" | "disabled" | "deprecated" | "experimental" | undefined;
|
|
733
733
|
priority?: number | undefined;
|
|
734
734
|
healthCheck?: {
|
|
735
735
|
status?: "unknown" | "healthy" | "unhealthy" | undefined;
|
|
@@ -927,7 +927,7 @@ export declare const ModelRegistrySchema: z.ZodObject<{
|
|
|
927
927
|
lastChecked?: string | undefined;
|
|
928
928
|
}>>;
|
|
929
929
|
}, "strip", z.ZodTypeAny, {
|
|
930
|
-
status: "active" | "disabled" | "
|
|
930
|
+
status: "active" | "disabled" | "deprecated" | "experimental";
|
|
931
931
|
priority: number;
|
|
932
932
|
model: {
|
|
933
933
|
provider: "custom" | "local" | "google" | "openai" | "azure_openai" | "anthropic" | "cohere" | "huggingface";
|
|
@@ -1011,7 +1011,7 @@ export declare const ModelRegistrySchema: z.ZodObject<{
|
|
|
1011
1011
|
} | undefined;
|
|
1012
1012
|
recommendedFor?: string[] | undefined;
|
|
1013
1013
|
};
|
|
1014
|
-
status?: "active" | "disabled" | "
|
|
1014
|
+
status?: "active" | "disabled" | "deprecated" | "experimental" | undefined;
|
|
1015
1015
|
priority?: number | undefined;
|
|
1016
1016
|
healthCheck?: {
|
|
1017
1017
|
status?: "unknown" | "healthy" | "unhealthy" | undefined;
|
|
@@ -1177,7 +1177,7 @@ export declare const ModelRegistrySchema: z.ZodObject<{
|
|
|
1177
1177
|
}, "strip", z.ZodTypeAny, {
|
|
1178
1178
|
name: string;
|
|
1179
1179
|
models: Record<string, {
|
|
1180
|
-
status: "active" | "disabled" | "
|
|
1180
|
+
status: "active" | "disabled" | "deprecated" | "experimental";
|
|
1181
1181
|
priority: number;
|
|
1182
1182
|
model: {
|
|
1183
1183
|
provider: "custom" | "local" | "google" | "openai" | "azure_openai" | "anthropic" | "cohere" | "huggingface";
|
|
@@ -1302,7 +1302,7 @@ export declare const ModelRegistrySchema: z.ZodObject<{
|
|
|
1302
1302
|
} | undefined;
|
|
1303
1303
|
recommendedFor?: string[] | undefined;
|
|
1304
1304
|
};
|
|
1305
|
-
status?: "active" | "disabled" | "
|
|
1305
|
+
status?: "active" | "disabled" | "deprecated" | "experimental" | undefined;
|
|
1306
1306
|
priority?: number | undefined;
|
|
1307
1307
|
healthCheck?: {
|
|
1308
1308
|
status?: "unknown" | "healthy" | "unhealthy" | undefined;
|
|
@@ -344,9 +344,9 @@ export declare const AIOrchestrationSchema: z.ZodObject<{
|
|
|
344
344
|
version: string;
|
|
345
345
|
priority: "normal" | "critical" | "high" | "low";
|
|
346
346
|
objectName: string;
|
|
347
|
+
stopOnError: boolean;
|
|
347
348
|
enableLogging: boolean;
|
|
348
349
|
trigger: "batch" | "webhook" | "manual" | "scheduled" | "record_created" | "record_updated" | "field_changed";
|
|
349
|
-
stopOnError: boolean;
|
|
350
350
|
aiTasks: {
|
|
351
351
|
type: "extract" | "classify" | "summarize" | "generate" | "predict" | "translate" | "sentiment" | "entity_recognition" | "anomaly_detection" | "recommendation";
|
|
352
352
|
name: string;
|
|
@@ -447,9 +447,9 @@ export declare const AIOrchestrationSchema: z.ZodObject<{
|
|
|
447
447
|
dayOfWeek?: number | undefined;
|
|
448
448
|
dayOfMonth?: number | undefined;
|
|
449
449
|
} | undefined;
|
|
450
|
-
enableLogging?: boolean | undefined;
|
|
451
450
|
updatedAt?: string | undefined;
|
|
452
451
|
stopOnError?: boolean | undefined;
|
|
452
|
+
enableLogging?: boolean | undefined;
|
|
453
453
|
fieldConditions?: {
|
|
454
454
|
field: string;
|
|
455
455
|
value?: any;
|
|
@@ -518,19 +518,19 @@ export declare const AIOrchestrationExecutionResultSchema: z.ZodObject<{
|
|
|
518
518
|
status: "success" | "failed" | "skipped";
|
|
519
519
|
taskName: string;
|
|
520
520
|
error?: string | undefined;
|
|
521
|
+
taskId?: string | undefined;
|
|
521
522
|
output?: any;
|
|
522
523
|
tokensUsed?: number | undefined;
|
|
523
524
|
executionTime?: number | undefined;
|
|
524
|
-
taskId?: string | undefined;
|
|
525
525
|
modelUsed?: string | undefined;
|
|
526
526
|
}, {
|
|
527
527
|
status: "success" | "failed" | "skipped";
|
|
528
528
|
taskName: string;
|
|
529
529
|
error?: string | undefined;
|
|
530
|
+
taskId?: string | undefined;
|
|
530
531
|
output?: any;
|
|
531
532
|
tokensUsed?: number | undefined;
|
|
532
533
|
executionTime?: number | undefined;
|
|
533
|
-
taskId?: string | undefined;
|
|
534
534
|
modelUsed?: string | undefined;
|
|
535
535
|
}>, "many">>;
|
|
536
536
|
tokens: z.ZodOptional<z.ZodObject<{
|
|
@@ -571,10 +571,10 @@ export declare const AIOrchestrationExecutionResultSchema: z.ZodObject<{
|
|
|
571
571
|
status: "success" | "failed" | "skipped";
|
|
572
572
|
taskName: string;
|
|
573
573
|
error?: string | undefined;
|
|
574
|
+
taskId?: string | undefined;
|
|
574
575
|
output?: any;
|
|
575
576
|
tokensUsed?: number | undefined;
|
|
576
577
|
executionTime?: number | undefined;
|
|
577
|
-
taskId?: string | undefined;
|
|
578
578
|
modelUsed?: string | undefined;
|
|
579
579
|
}[] | undefined;
|
|
580
580
|
}, {
|
|
@@ -598,10 +598,10 @@ export declare const AIOrchestrationExecutionResultSchema: z.ZodObject<{
|
|
|
598
598
|
status: "success" | "failed" | "skipped";
|
|
599
599
|
taskName: string;
|
|
600
600
|
error?: string | undefined;
|
|
601
|
+
taskId?: string | undefined;
|
|
601
602
|
output?: any;
|
|
602
603
|
tokensUsed?: number | undefined;
|
|
603
604
|
executionTime?: number | undefined;
|
|
604
|
-
taskId?: string | undefined;
|
|
605
605
|
modelUsed?: string | undefined;
|
|
606
606
|
}[] | undefined;
|
|
607
607
|
}>;
|
|
@@ -516,6 +516,7 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
516
516
|
createdAt?: string | undefined;
|
|
517
517
|
category?: string | undefined;
|
|
518
518
|
owner?: string | undefined;
|
|
519
|
+
updatedAt?: string | undefined;
|
|
519
520
|
permissions?: string[] | undefined;
|
|
520
521
|
metrics?: {
|
|
521
522
|
custom?: Record<string, number> | undefined;
|
|
@@ -533,7 +534,6 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
533
534
|
mape?: number | undefined;
|
|
534
535
|
smape?: number | undefined;
|
|
535
536
|
} | undefined;
|
|
536
|
-
updatedAt?: string | undefined;
|
|
537
537
|
hyperparameters?: {
|
|
538
538
|
custom?: Record<string, any> | undefined;
|
|
539
539
|
batchSize?: number | undefined;
|
|
@@ -600,6 +600,7 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
600
600
|
createdAt?: string | undefined;
|
|
601
601
|
category?: string | undefined;
|
|
602
602
|
owner?: string | undefined;
|
|
603
|
+
updatedAt?: string | undefined;
|
|
603
604
|
permissions?: string[] | undefined;
|
|
604
605
|
metrics?: {
|
|
605
606
|
custom?: Record<string, number> | undefined;
|
|
@@ -617,7 +618,6 @@ export declare const PredictiveModelSchema: z.ZodObject<{
|
|
|
617
618
|
mape?: number | undefined;
|
|
618
619
|
smape?: number | undefined;
|
|
619
620
|
} | undefined;
|
|
620
|
-
updatedAt?: string | undefined;
|
|
621
621
|
hyperparameters?: {
|
|
622
622
|
custom?: Record<string, any> | undefined;
|
|
623
623
|
batchSize?: number | undefined;
|
|
@@ -833,8 +833,8 @@ export declare const RAGQueryRequestSchema: z.ZodObject<{
|
|
|
833
833
|
includeSources: z.ZodDefault<z.ZodBoolean>;
|
|
834
834
|
}, "strip", z.ZodTypeAny, {
|
|
835
835
|
query: string;
|
|
836
|
-
pipelineName: string;
|
|
837
836
|
includeMetadata: boolean;
|
|
837
|
+
pipelineName: string;
|
|
838
838
|
includeSources: boolean;
|
|
839
839
|
topK?: number | undefined;
|
|
840
840
|
metadataFilters?: Record<string, any> | undefined;
|
|
@@ -845,13 +845,13 @@ export declare const RAGQueryRequestSchema: z.ZodObject<{
|
|
|
845
845
|
}, {
|
|
846
846
|
query: string;
|
|
847
847
|
pipelineName: string;
|
|
848
|
+
includeMetadata?: boolean | undefined;
|
|
848
849
|
topK?: number | undefined;
|
|
849
850
|
metadataFilters?: Record<string, any> | undefined;
|
|
850
851
|
conversationHistory?: {
|
|
851
852
|
role: "user" | "system" | "assistant";
|
|
852
853
|
content: string;
|
|
853
854
|
}[] | undefined;
|
|
854
|
-
includeMetadata?: boolean | undefined;
|
|
855
855
|
includeSources?: boolean | undefined;
|
|
856
856
|
}>;
|
|
857
857
|
/**
|
package/dist/api/batch.zod.d.ts
CHANGED
|
@@ -369,6 +369,7 @@ export declare const BatchUpdateResponseSchema: z.ZodObject<{
|
|
|
369
369
|
total: number;
|
|
370
370
|
success: boolean;
|
|
371
371
|
failed: number;
|
|
372
|
+
succeeded: number;
|
|
372
373
|
results: {
|
|
373
374
|
success: boolean;
|
|
374
375
|
index?: number | undefined;
|
|
@@ -380,7 +381,6 @@ export declare const BatchUpdateResponseSchema: z.ZodObject<{
|
|
|
380
381
|
details?: any;
|
|
381
382
|
}[] | undefined;
|
|
382
383
|
}[];
|
|
383
|
-
succeeded: number;
|
|
384
384
|
error?: {
|
|
385
385
|
message: string;
|
|
386
386
|
code: string;
|
|
@@ -397,6 +397,7 @@ export declare const BatchUpdateResponseSchema: z.ZodObject<{
|
|
|
397
397
|
total: number;
|
|
398
398
|
success: boolean;
|
|
399
399
|
failed: number;
|
|
400
|
+
succeeded: number;
|
|
400
401
|
results: {
|
|
401
402
|
success: boolean;
|
|
402
403
|
index?: number | undefined;
|
|
@@ -408,7 +409,6 @@ export declare const BatchUpdateResponseSchema: z.ZodObject<{
|
|
|
408
409
|
details?: any;
|
|
409
410
|
}[] | undefined;
|
|
410
411
|
}[];
|
|
411
|
-
succeeded: number;
|
|
412
412
|
error?: {
|
|
413
413
|
message: string;
|
|
414
414
|
code: string;
|
|
@@ -613,6 +613,7 @@ export declare const BatchApiContracts: {
|
|
|
613
613
|
total: number;
|
|
614
614
|
success: boolean;
|
|
615
615
|
failed: number;
|
|
616
|
+
succeeded: number;
|
|
616
617
|
results: {
|
|
617
618
|
success: boolean;
|
|
618
619
|
index?: number | undefined;
|
|
@@ -624,7 +625,6 @@ export declare const BatchApiContracts: {
|
|
|
624
625
|
details?: any;
|
|
625
626
|
}[] | undefined;
|
|
626
627
|
}[];
|
|
627
|
-
succeeded: number;
|
|
628
628
|
error?: {
|
|
629
629
|
message: string;
|
|
630
630
|
code: string;
|
|
@@ -641,6 +641,7 @@ export declare const BatchApiContracts: {
|
|
|
641
641
|
total: number;
|
|
642
642
|
success: boolean;
|
|
643
643
|
failed: number;
|
|
644
|
+
succeeded: number;
|
|
644
645
|
results: {
|
|
645
646
|
success: boolean;
|
|
646
647
|
index?: number | undefined;
|
|
@@ -652,7 +653,6 @@ export declare const BatchApiContracts: {
|
|
|
652
653
|
details?: any;
|
|
653
654
|
}[] | undefined;
|
|
654
655
|
}[];
|
|
655
|
-
succeeded: number;
|
|
656
656
|
error?: {
|
|
657
657
|
message: string;
|
|
658
658
|
code: string;
|
|
@@ -802,6 +802,7 @@ export declare const BatchApiContracts: {
|
|
|
802
802
|
total: number;
|
|
803
803
|
success: boolean;
|
|
804
804
|
failed: number;
|
|
805
|
+
succeeded: number;
|
|
805
806
|
results: {
|
|
806
807
|
success: boolean;
|
|
807
808
|
index?: number | undefined;
|
|
@@ -813,7 +814,6 @@ export declare const BatchApiContracts: {
|
|
|
813
814
|
details?: any;
|
|
814
815
|
}[] | undefined;
|
|
815
816
|
}[];
|
|
816
|
-
succeeded: number;
|
|
817
817
|
error?: {
|
|
818
818
|
message: string;
|
|
819
819
|
code: string;
|
|
@@ -830,6 +830,7 @@ export declare const BatchApiContracts: {
|
|
|
830
830
|
total: number;
|
|
831
831
|
success: boolean;
|
|
832
832
|
failed: number;
|
|
833
|
+
succeeded: number;
|
|
833
834
|
results: {
|
|
834
835
|
success: boolean;
|
|
835
836
|
index?: number | undefined;
|
|
@@ -841,7 +842,6 @@ export declare const BatchApiContracts: {
|
|
|
841
842
|
details?: any;
|
|
842
843
|
}[] | undefined;
|
|
843
844
|
}[];
|
|
844
|
-
succeeded: number;
|
|
845
845
|
error?: {
|
|
846
846
|
message: string;
|
|
847
847
|
code: string;
|
|
@@ -971,6 +971,7 @@ export declare const BatchApiContracts: {
|
|
|
971
971
|
total: number;
|
|
972
972
|
success: boolean;
|
|
973
973
|
failed: number;
|
|
974
|
+
succeeded: number;
|
|
974
975
|
results: {
|
|
975
976
|
success: boolean;
|
|
976
977
|
index?: number | undefined;
|
|
@@ -982,7 +983,6 @@ export declare const BatchApiContracts: {
|
|
|
982
983
|
details?: any;
|
|
983
984
|
}[] | undefined;
|
|
984
985
|
}[];
|
|
985
|
-
succeeded: number;
|
|
986
986
|
error?: {
|
|
987
987
|
message: string;
|
|
988
988
|
code: string;
|
|
@@ -999,6 +999,7 @@ export declare const BatchApiContracts: {
|
|
|
999
999
|
total: number;
|
|
1000
1000
|
success: boolean;
|
|
1001
1001
|
failed: number;
|
|
1002
|
+
succeeded: number;
|
|
1002
1003
|
results: {
|
|
1003
1004
|
success: boolean;
|
|
1004
1005
|
index?: number | undefined;
|
|
@@ -1010,7 +1011,6 @@ export declare const BatchApiContracts: {
|
|
|
1010
1011
|
details?: any;
|
|
1011
1012
|
}[] | undefined;
|
|
1012
1013
|
}[];
|
|
1013
|
-
succeeded: number;
|
|
1014
1014
|
error?: {
|
|
1015
1015
|
message: string;
|
|
1016
1016
|
code: string;
|
|
@@ -1026,4 +1026,77 @@ export declare const BatchApiContracts: {
|
|
|
1026
1026
|
}>;
|
|
1027
1027
|
};
|
|
1028
1028
|
};
|
|
1029
|
+
/**
|
|
1030
|
+
* Batch Configuration Schema
|
|
1031
|
+
*
|
|
1032
|
+
* Configuration for enabling batch operations API.
|
|
1033
|
+
*/
|
|
1034
|
+
export declare const BatchConfigSchema: z.ZodObject<{
|
|
1035
|
+
/** Enable batch operations */
|
|
1036
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1037
|
+
/** Maximum records per batch */
|
|
1038
|
+
maxRecordsPerBatch: z.ZodDefault<z.ZodNumber>;
|
|
1039
|
+
/** Default options */
|
|
1040
|
+
defaultOptions: z.ZodOptional<z.ZodObject<{
|
|
1041
|
+
atomic: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1042
|
+
returnRecords: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1043
|
+
continueOnError: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1044
|
+
validateOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1045
|
+
}, "strip", z.ZodTypeAny, {
|
|
1046
|
+
atomic: boolean;
|
|
1047
|
+
continueOnError: boolean;
|
|
1048
|
+
validateOnly: boolean;
|
|
1049
|
+
returnRecords: boolean;
|
|
1050
|
+
}, {
|
|
1051
|
+
atomic?: boolean | undefined;
|
|
1052
|
+
continueOnError?: boolean | undefined;
|
|
1053
|
+
validateOnly?: boolean | undefined;
|
|
1054
|
+
returnRecords?: boolean | undefined;
|
|
1055
|
+
}>>;
|
|
1056
|
+
}, "passthrough", z.ZodTypeAny, z.objectOutputType<{
|
|
1057
|
+
/** Enable batch operations */
|
|
1058
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1059
|
+
/** Maximum records per batch */
|
|
1060
|
+
maxRecordsPerBatch: z.ZodDefault<z.ZodNumber>;
|
|
1061
|
+
/** Default options */
|
|
1062
|
+
defaultOptions: z.ZodOptional<z.ZodObject<{
|
|
1063
|
+
atomic: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1064
|
+
returnRecords: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1065
|
+
continueOnError: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1066
|
+
validateOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1067
|
+
}, "strip", z.ZodTypeAny, {
|
|
1068
|
+
atomic: boolean;
|
|
1069
|
+
continueOnError: boolean;
|
|
1070
|
+
validateOnly: boolean;
|
|
1071
|
+
returnRecords: boolean;
|
|
1072
|
+
}, {
|
|
1073
|
+
atomic?: boolean | undefined;
|
|
1074
|
+
continueOnError?: boolean | undefined;
|
|
1075
|
+
validateOnly?: boolean | undefined;
|
|
1076
|
+
returnRecords?: boolean | undefined;
|
|
1077
|
+
}>>;
|
|
1078
|
+
}, z.ZodTypeAny, "passthrough">, z.objectInputType<{
|
|
1079
|
+
/** Enable batch operations */
|
|
1080
|
+
enabled: z.ZodDefault<z.ZodBoolean>;
|
|
1081
|
+
/** Maximum records per batch */
|
|
1082
|
+
maxRecordsPerBatch: z.ZodDefault<z.ZodNumber>;
|
|
1083
|
+
/** Default options */
|
|
1084
|
+
defaultOptions: z.ZodOptional<z.ZodObject<{
|
|
1085
|
+
atomic: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1086
|
+
returnRecords: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1087
|
+
continueOnError: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1088
|
+
validateOnly: z.ZodDefault<z.ZodOptional<z.ZodBoolean>>;
|
|
1089
|
+
}, "strip", z.ZodTypeAny, {
|
|
1090
|
+
atomic: boolean;
|
|
1091
|
+
continueOnError: boolean;
|
|
1092
|
+
validateOnly: boolean;
|
|
1093
|
+
returnRecords: boolean;
|
|
1094
|
+
}, {
|
|
1095
|
+
atomic?: boolean | undefined;
|
|
1096
|
+
continueOnError?: boolean | undefined;
|
|
1097
|
+
validateOnly?: boolean | undefined;
|
|
1098
|
+
returnRecords?: boolean | undefined;
|
|
1099
|
+
}>>;
|
|
1100
|
+
}, z.ZodTypeAny, "passthrough">>;
|
|
1101
|
+
export type BatchConfig = z.infer<typeof BatchConfigSchema>;
|
|
1029
1102
|
//# sourceMappingURL=batch.zod.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"batch.zod.d.ts","sourceRoot":"","sources":["../../src/api/batch.zod.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAC;AAGxB;;;;;;;;;;;;;GAaG;AAMH;;;GAGG;AACH,eAAO,MAAM,kBAAkB,qDAK7B,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAMpE;;;GAGG;AACH,eAAO,MAAM,iBAAiB;;;;;;;;;;;;EAI5B,CAAC;AAEH,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC;AAE5D;;;GAGG;AACH,eAAO,MAAM,kBAAkB;;;;;;;;;;;;;;;EAK7B,CAAC;AAEH,MAAM,MAAM,YAAY,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,kBAAkB,CAAC,CAAC;AAE9D;;;;;;;;;;;;;;;;;GAiBG;AACH,eAAO,MAAM,wBAAwB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAInC,CAAC;AAEH,MAAM,MAAM,kBAAkB,GAAG,CAAC,CAAC,KAAK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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAa7B,CAAC;AAEF;;;;GAIG;AACH,eAAO,MAAM,iBAAiB;IAC5B,8BAA8B;;IAG9B,gCAAgC;;IAGhC,sBAAsB;;;;;;;;;;;;;;;;;;IANtB,8BAA8B;;IAG9B,gCAAgC;;IAGhC,sBAAsB;;;;;;;;;;;;;;;;;;IANtB,8BAA8B;;IAG9B,gCAAgC;;IAGhC,sBAAsB;;;;;;;;;;;;;;;;;gCAER,CAAC;AAEjB,MAAM,MAAM,WAAW,GAAG,CAAC,CAAC,KAAK,CAAC,OAAO,iBAAiB,CAAC,CAAC"}
|
package/dist/api/batch.zod.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.BatchApiContracts = exports.DeleteManyRequestSchema = exports.BatchUpdateResponseSchema = exports.BatchOperationResultSchema = exports.UpdateManyRequestSchema = exports.BatchUpdateRequestSchema = exports.BatchOptionsSchema = exports.BatchRecordSchema = exports.BatchOperationType = void 0;
|
|
3
|
+
exports.BatchConfigSchema = exports.BatchApiContracts = exports.DeleteManyRequestSchema = exports.BatchUpdateResponseSchema = exports.BatchOperationResultSchema = exports.UpdateManyRequestSchema = exports.BatchUpdateRequestSchema = exports.BatchOptionsSchema = exports.BatchRecordSchema = exports.BatchOperationType = void 0;
|
|
4
4
|
const zod_1 = require("zod");
|
|
5
5
|
const contract_zod_1 = require("./contract.zod");
|
|
6
6
|
/**
|
|
@@ -194,3 +194,16 @@ exports.BatchApiContracts = {
|
|
|
194
194
|
output: exports.BatchUpdateResponseSchema,
|
|
195
195
|
},
|
|
196
196
|
};
|
|
197
|
+
/**
|
|
198
|
+
* Batch Configuration Schema
|
|
199
|
+
*
|
|
200
|
+
* Configuration for enabling batch operations API.
|
|
201
|
+
*/
|
|
202
|
+
exports.BatchConfigSchema = zod_1.z.object({
|
|
203
|
+
/** Enable batch operations */
|
|
204
|
+
enabled: zod_1.z.boolean().default(true).describe('Enable batch operations'),
|
|
205
|
+
/** Maximum records per batch */
|
|
206
|
+
maxRecordsPerBatch: zod_1.z.number().int().min(1).max(1000).default(200).describe('Maximum records per batch'),
|
|
207
|
+
/** Default options */
|
|
208
|
+
defaultOptions: exports.BatchOptionsSchema.optional().describe('Default batch options'),
|
|
209
|
+
}).passthrough(); // Allow additional properties
|