@objectstack/spec 0.4.2 → 0.6.0

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 (34) hide show
  1. package/dist/api/index.d.ts +1 -0
  2. package/dist/api/index.d.ts.map +1 -1
  3. package/dist/api/index.js +1 -0
  4. package/dist/api/protocol.d.ts +65 -0
  5. package/dist/api/protocol.d.ts.map +1 -0
  6. package/dist/api/protocol.js +8 -0
  7. package/dist/automation/connector.zod.d.ts +2 -2
  8. package/dist/automation/sync.zod.d.ts +4 -4
  9. package/dist/data/mapping.zod.d.ts +2 -2
  10. package/dist/hub/marketplace.zod.d.ts +2 -2
  11. package/dist/stack.zod.d.ts +392 -0
  12. package/dist/stack.zod.d.ts.map +1 -1
  13. package/dist/stack.zod.js +4 -0
  14. package/dist/system/data-engine.zod.d.ts +59 -0
  15. package/dist/system/data-engine.zod.d.ts.map +1 -0
  16. package/dist/system/data-engine.zod.js +38 -0
  17. package/dist/system/index.d.ts +1 -0
  18. package/dist/system/index.d.ts.map +1 -1
  19. package/dist/system/index.js +2 -0
  20. package/dist/system/plugin.zod.d.ts +2563 -2883
  21. package/dist/system/plugin.zod.d.ts.map +1 -1
  22. package/dist/system/plugin.zod.js +46 -213
  23. package/json-schema/system/DataEngineFilter.json +11 -0
  24. package/json-schema/system/DataEngineQueryOptions.json +48 -0
  25. package/json-schema/system/Plugin.json +14 -2
  26. package/json-schema/system/PluginContext.json +22 -38
  27. package/package.json +1 -1
  28. package/json-schema/system/I18nContext.json +0 -12
  29. package/json-schema/system/Logger.json +0 -25
  30. package/json-schema/system/ObjectQLClient.json +0 -12
  31. package/json-schema/system/Router.json +0 -12
  32. package/json-schema/system/Scheduler.json +0 -12
  33. package/json-schema/system/ScopedStorage.json +0 -12
  34. package/json-schema/system/SystemAPI.json +0 -12
@@ -12,4 +12,5 @@ export * from './discovery.zod';
12
12
  export * from './realtime.zod';
13
13
  export * from './router.zod';
14
14
  export * from './odata.zod';
15
+ export * from './protocol';
15
16
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/api/index.ts"],"names":[],"mappings":"AAAA;;;;;;;GAOG;AAEH,cAAc,gBAAgB,CAAC;AAC/B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAE5B,cAAc,YAAY,CAAC"}
package/dist/api/index.js CHANGED
@@ -28,3 +28,4 @@ __exportStar(require("./discovery.zod"), exports);
28
28
  __exportStar(require("./realtime.zod"), exports);
29
29
  __exportStar(require("./router.zod"), exports);
30
30
  __exportStar(require("./odata.zod"), exports);
31
+ __exportStar(require("./protocol"), exports);
@@ -0,0 +1,65 @@
1
+ /**
2
+ * ObjectStack Protocol Interface
3
+ *
4
+ * Defines the high-level contract for interacting with the ObjectStack metadata and data.
5
+ * Used by API adapters (HTTP, WebSocket, etc) to fetch data/metadata without knowing the engine internals.
6
+ */
7
+ export interface IObjectStackProtocol {
8
+ /**
9
+ * Get API discovery information (versions, capabilities)
10
+ */
11
+ getDiscovery(): any;
12
+ /**
13
+ * Get available metadata types (object, plugin, etc)
14
+ */
15
+ getMetaTypes(): string[];
16
+ /**
17
+ * Get all items of a specific metadata type
18
+ * @param type - Metadata type name
19
+ */
20
+ getMetaItems(type: string): any[];
21
+ /**
22
+ * Get a specific metadata item
23
+ * @param type - Metadata type name
24
+ * @param name - Item name
25
+ */
26
+ getMetaItem(type: string, name: string): any;
27
+ /**
28
+ * Get UI view definition
29
+ * @param object - Object name
30
+ * @param type - View type
31
+ */
32
+ getUiView(object: string, type: 'list' | 'form'): any;
33
+ /**
34
+ * Find data records
35
+ * @param object - Object name
36
+ * @param query - Query parameters (filter, sort, select, etc)
37
+ */
38
+ findData(object: string, query: any): Promise<any>;
39
+ /**
40
+ * Get single data record by ID
41
+ * @param object - Object name
42
+ * @param id - Record ID
43
+ */
44
+ getData(object: string, id: string): Promise<any>;
45
+ /**
46
+ * Create a data record
47
+ * @param object - Object name
48
+ * @param data - Record data
49
+ */
50
+ createData(object: string, data: any): Promise<any>;
51
+ /**
52
+ * Update a data record
53
+ * @param object - Object name
54
+ * @param id - Record ID
55
+ * @param data - Update data
56
+ */
57
+ updateData(object: string, id: string, data: any): Promise<any>;
58
+ /**
59
+ * Delete a data record
60
+ * @param object - Object name
61
+ * @param id - Record ID
62
+ */
63
+ deleteData(object: string, id: string): Promise<any>;
64
+ }
65
+ //# sourceMappingURL=protocol.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"protocol.d.ts","sourceRoot":"","sources":["../../src/api/protocol.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,MAAM,WAAW,oBAAoB;IACjC;;OAEG;IACH,YAAY,IAAI,GAAG,CAAC;IAEpB;;OAEG;IACH,YAAY,IAAI,MAAM,EAAE,CAAC;IAEzB;;;OAGG;IACH,YAAY,CAAC,IAAI,EAAE,MAAM,GAAG,GAAG,EAAE,CAAC;IAElC;;;;OAIG;IACH,WAAW,CAAC,IAAI,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,GAAG,CAAC;IAE7C;;;;OAIG;IACH,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,MAAM,GAAG,MAAM,GAAG,GAAG,CAAC;IAEtD;;;;OAIG;IACH,QAAQ,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAEnD;;;;OAIG;IACH,OAAO,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAElD;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAEpD;;;;;OAKG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;IAEhE;;;;OAIG;IACH,UAAU,CAAC,MAAM,EAAE,MAAM,EAAE,EAAE,EAAE,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC;CACxD"}
@@ -0,0 +1,8 @@
1
+ "use strict";
2
+ /**
3
+ * ObjectStack Protocol Interface
4
+ *
5
+ * Defines the high-level contract for interacting with the ObjectStack metadata and data.
6
+ * Used by API adapters (HTTP, WebSocket, etc) to fetch data/metadata without knowing the engine internals.
7
+ */
8
+ Object.defineProperty(exports, "__esModule", { value: true });
@@ -1071,13 +1071,13 @@ export declare const ConnectorSchema: z.ZodObject<{
1071
1071
  documentation?: string | undefined;
1072
1072
  license?: string | undefined;
1073
1073
  metadata?: Record<string, any> | undefined;
1074
+ homepage?: string | undefined;
1074
1075
  baseUrl?: string | undefined;
1075
1076
  rateLimit?: {
1076
1077
  requestsPerMinute?: number | undefined;
1077
1078
  requestsPerSecond?: number | undefined;
1078
1079
  requestsPerHour?: number | undefined;
1079
1080
  } | undefined;
1080
- homepage?: string | undefined;
1081
1081
  operations?: {
1082
1082
  type: "delete" | "search" | "read" | "write" | "action" | "trigger";
1083
1083
  name: string;
@@ -1146,13 +1146,13 @@ export declare const ConnectorSchema: z.ZodObject<{
1146
1146
  documentation?: string | undefined;
1147
1147
  license?: string | undefined;
1148
1148
  metadata?: Record<string, any> | undefined;
1149
+ homepage?: string | undefined;
1149
1150
  baseUrl?: string | undefined;
1150
1151
  rateLimit?: {
1151
1152
  requestsPerMinute?: number | undefined;
1152
1153
  requestsPerSecond?: number | undefined;
1153
1154
  requestsPerHour?: number | undefined;
1154
1155
  } | undefined;
1155
- homepage?: string | undefined;
1156
1156
  verified?: boolean | undefined;
1157
1157
  operations?: {
1158
1158
  type: "delete" | "search" | "read" | "write" | "action" | "trigger";
@@ -502,11 +502,11 @@ export declare const DataSyncConfigSchema: z.ZodObject<{
502
502
  notifyOnError: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
503
503
  }, "strip", z.ZodTypeAny, {
504
504
  onValidationError: "log" | "skip" | "fail";
505
- onSyncError: "retry" | "skip" | "fail";
505
+ onSyncError: "skip" | "retry" | "fail";
506
506
  notifyOnError?: string[] | undefined;
507
507
  }, {
508
508
  onValidationError?: "log" | "skip" | "fail" | undefined;
509
- onSyncError?: "retry" | "skip" | "fail" | undefined;
509
+ onSyncError?: "skip" | "retry" | "fail" | undefined;
510
510
  notifyOnError?: string[] | undefined;
511
511
  }>>;
512
512
  /**
@@ -603,7 +603,7 @@ export declare const DataSyncConfigSchema: z.ZodObject<{
603
603
  changeTrackingField?: string | undefined;
604
604
  errorHandling?: {
605
605
  onValidationError: "log" | "skip" | "fail";
606
- onSyncError: "retry" | "skip" | "fail";
606
+ onSyncError: "skip" | "retry" | "fail";
607
607
  notifyOnError?: string[] | undefined;
608
608
  } | undefined;
609
609
  optimization?: {
@@ -665,7 +665,7 @@ export declare const DataSyncConfigSchema: z.ZodObject<{
665
665
  changeTrackingField?: string | undefined;
666
666
  errorHandling?: {
667
667
  onValidationError?: "log" | "skip" | "fail" | undefined;
668
- onSyncError?: "retry" | "skip" | "fail" | undefined;
668
+ onSyncError?: "skip" | "retry" | "fail" | undefined;
669
669
  notifyOnError?: string[] | undefined;
670
670
  } | undefined;
671
671
  optimization?: {
@@ -382,7 +382,7 @@ export declare const MappingSchema: z.ZodObject<{
382
382
  separator?: string | undefined;
383
383
  } | undefined;
384
384
  }[];
385
- errorPolicy: "abort" | "retry" | "skip";
385
+ errorPolicy: "abort" | "skip" | "retry";
386
386
  label?: string | undefined;
387
387
  upsertKey?: string[] | undefined;
388
388
  extractQuery?: {
@@ -487,7 +487,7 @@ export declare const MappingSchema: z.ZodObject<{
487
487
  field?: string | undefined;
488
488
  }[] | undefined;
489
489
  } | undefined;
490
- errorPolicy?: "abort" | "retry" | "skip" | undefined;
490
+ errorPolicy?: "abort" | "skip" | "retry" | undefined;
491
491
  }>;
492
492
  export type Mapping = z.infer<typeof MappingSchema>;
493
493
  export type FieldMapping = z.infer<typeof FieldMappingSchema>;
@@ -145,8 +145,8 @@ export declare const MarketplacePluginSchema: z.ZodObject<{
145
145
  url?: string | undefined;
146
146
  } | undefined;
147
147
  screenshots?: string[] | undefined;
148
- readme?: string | undefined;
149
148
  homepage?: string | undefined;
149
+ readme?: string | undefined;
150
150
  repository?: string | undefined;
151
151
  bugs?: string | undefined;
152
152
  downloads?: number | undefined;
@@ -172,8 +172,8 @@ export declare const MarketplacePluginSchema: z.ZodObject<{
172
172
  url?: string | undefined;
173
173
  } | undefined;
174
174
  screenshots?: string[] | undefined;
175
- readme?: string | undefined;
176
175
  homepage?: string | undefined;
176
+ readme?: string | undefined;
177
177
  repository?: string | undefined;
178
178
  bugs?: string | undefined;
179
179
  downloads?: number | undefined;
@@ -6480,6 +6480,127 @@ export declare const ObjectStackDefinitionSchema: z.ZodObject<{
6480
6480
  isProfile?: boolean | undefined;
6481
6481
  systemPermissions?: string[] | undefined;
6482
6482
  }>, "many">>;
6483
+ /**
6484
+ * ObjectAPI: API Layer
6485
+ */
6486
+ apis: z.ZodOptional<z.ZodArray<z.ZodObject<{
6487
+ name: z.ZodString;
6488
+ path: z.ZodString;
6489
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
6490
+ summary: z.ZodOptional<z.ZodString>;
6491
+ description: z.ZodOptional<z.ZodString>;
6492
+ type: z.ZodEnum<["flow", "script", "object_operation", "proxy"]>;
6493
+ target: z.ZodString;
6494
+ objectParams: z.ZodOptional<z.ZodObject<{
6495
+ object: z.ZodOptional<z.ZodString>;
6496
+ operation: z.ZodOptional<z.ZodEnum<["find", "get", "create", "update", "delete"]>>;
6497
+ }, "strip", z.ZodTypeAny, {
6498
+ object?: string | undefined;
6499
+ operation?: "find" | "update" | "delete" | "get" | "create" | undefined;
6500
+ }, {
6501
+ object?: string | undefined;
6502
+ operation?: "find" | "update" | "delete" | "get" | "create" | undefined;
6503
+ }>>;
6504
+ inputMapping: z.ZodOptional<z.ZodArray<z.ZodObject<{
6505
+ source: z.ZodString;
6506
+ target: z.ZodString;
6507
+ transform: z.ZodOptional<z.ZodString>;
6508
+ }, "strip", z.ZodTypeAny, {
6509
+ target: string;
6510
+ source: string;
6511
+ transform?: string | undefined;
6512
+ }, {
6513
+ target: string;
6514
+ source: string;
6515
+ transform?: string | undefined;
6516
+ }>, "many">>;
6517
+ outputMapping: z.ZodOptional<z.ZodArray<z.ZodObject<{
6518
+ source: z.ZodString;
6519
+ target: z.ZodString;
6520
+ transform: z.ZodOptional<z.ZodString>;
6521
+ }, "strip", z.ZodTypeAny, {
6522
+ target: string;
6523
+ source: string;
6524
+ transform?: string | undefined;
6525
+ }, {
6526
+ target: string;
6527
+ source: string;
6528
+ transform?: string | undefined;
6529
+ }>, "many">>;
6530
+ authRequired: z.ZodDefault<z.ZodBoolean>;
6531
+ rateLimit: z.ZodOptional<z.ZodObject<{
6532
+ enabled: z.ZodDefault<z.ZodBoolean>;
6533
+ windowMs: z.ZodDefault<z.ZodNumber>;
6534
+ maxRequests: z.ZodDefault<z.ZodNumber>;
6535
+ }, "strip", z.ZodTypeAny, {
6536
+ enabled: boolean;
6537
+ windowMs: number;
6538
+ maxRequests: number;
6539
+ }, {
6540
+ enabled?: boolean | undefined;
6541
+ windowMs?: number | undefined;
6542
+ maxRequests?: number | undefined;
6543
+ }>>;
6544
+ cacheTtl: z.ZodOptional<z.ZodNumber>;
6545
+ }, "strip", z.ZodTypeAny, {
6546
+ path: string;
6547
+ type: "script" | "flow" | "object_operation" | "proxy";
6548
+ name: string;
6549
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
6550
+ target: string;
6551
+ authRequired: boolean;
6552
+ summary?: string | undefined;
6553
+ description?: string | undefined;
6554
+ rateLimit?: {
6555
+ enabled: boolean;
6556
+ windowMs: number;
6557
+ maxRequests: number;
6558
+ } | undefined;
6559
+ objectParams?: {
6560
+ object?: string | undefined;
6561
+ operation?: "find" | "update" | "delete" | "get" | "create" | undefined;
6562
+ } | undefined;
6563
+ inputMapping?: {
6564
+ target: string;
6565
+ source: string;
6566
+ transform?: string | undefined;
6567
+ }[] | undefined;
6568
+ outputMapping?: {
6569
+ target: string;
6570
+ source: string;
6571
+ transform?: string | undefined;
6572
+ }[] | undefined;
6573
+ cacheTtl?: number | undefined;
6574
+ }, {
6575
+ path: string;
6576
+ type: "script" | "flow" | "object_operation" | "proxy";
6577
+ name: string;
6578
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
6579
+ target: string;
6580
+ summary?: string | undefined;
6581
+ description?: string | undefined;
6582
+ rateLimit?: {
6583
+ enabled?: boolean | undefined;
6584
+ windowMs?: number | undefined;
6585
+ maxRequests?: number | undefined;
6586
+ } | undefined;
6587
+ objectParams?: {
6588
+ object?: string | undefined;
6589
+ operation?: "find" | "update" | "delete" | "get" | "create" | undefined;
6590
+ } | undefined;
6591
+ inputMapping?: {
6592
+ target: string;
6593
+ source: string;
6594
+ transform?: string | undefined;
6595
+ }[] | undefined;
6596
+ outputMapping?: {
6597
+ target: string;
6598
+ source: string;
6599
+ transform?: string | undefined;
6600
+ }[] | undefined;
6601
+ authRequired?: boolean | undefined;
6602
+ cacheTtl?: number | undefined;
6603
+ }>, "many">>;
6483
6604
  /**
6484
6605
  * ObjectAI: Artificial Intelligence Layer
6485
6606
  */
@@ -6771,6 +6892,36 @@ export declare const ObjectStackDefinitionSchema: z.ZodObject<{
6771
6892
  apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
6772
6893
  } | undefined;
6773
6894
  }[] | undefined;
6895
+ apis?: {
6896
+ path: string;
6897
+ type: "script" | "flow" | "object_operation" | "proxy";
6898
+ name: string;
6899
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
6900
+ target: string;
6901
+ authRequired: boolean;
6902
+ summary?: string | undefined;
6903
+ description?: string | undefined;
6904
+ rateLimit?: {
6905
+ enabled: boolean;
6906
+ windowMs: number;
6907
+ maxRequests: number;
6908
+ } | undefined;
6909
+ objectParams?: {
6910
+ object?: string | undefined;
6911
+ operation?: "find" | "update" | "delete" | "get" | "create" | undefined;
6912
+ } | undefined;
6913
+ inputMapping?: {
6914
+ target: string;
6915
+ source: string;
6916
+ transform?: string | undefined;
6917
+ }[] | undefined;
6918
+ outputMapping?: {
6919
+ target: string;
6920
+ source: string;
6921
+ transform?: string | undefined;
6922
+ }[] | undefined;
6923
+ cacheTtl?: number | undefined;
6924
+ }[] | undefined;
6774
6925
  actions?: {
6775
6926
  type: "url" | "script" | "api" | "modal" | "flow";
6776
6927
  label: string;
@@ -7842,6 +7993,36 @@ export declare const ObjectStackDefinitionSchema: z.ZodObject<{
7842
7993
  clone?: boolean | undefined;
7843
7994
  } | undefined;
7844
7995
  }[] | undefined;
7996
+ apis?: {
7997
+ path: string;
7998
+ type: "script" | "flow" | "object_operation" | "proxy";
7999
+ name: string;
8000
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
8001
+ target: string;
8002
+ summary?: string | undefined;
8003
+ description?: string | undefined;
8004
+ rateLimit?: {
8005
+ enabled?: boolean | undefined;
8006
+ windowMs?: number | undefined;
8007
+ maxRequests?: number | undefined;
8008
+ } | undefined;
8009
+ objectParams?: {
8010
+ object?: string | undefined;
8011
+ operation?: "find" | "update" | "delete" | "get" | "create" | undefined;
8012
+ } | undefined;
8013
+ inputMapping?: {
8014
+ target: string;
8015
+ source: string;
8016
+ transform?: string | undefined;
8017
+ }[] | undefined;
8018
+ outputMapping?: {
8019
+ target: string;
8020
+ source: string;
8021
+ transform?: string | undefined;
8022
+ }[] | undefined;
8023
+ authRequired?: boolean | undefined;
8024
+ cacheTtl?: number | undefined;
8025
+ }[] | undefined;
7845
8026
  actions?: {
7846
8027
  label: string;
7847
8028
  name: string;
@@ -15186,6 +15367,127 @@ export declare const ObjectStackSchema: z.ZodObject<{
15186
15367
  isProfile?: boolean | undefined;
15187
15368
  systemPermissions?: string[] | undefined;
15188
15369
  }>, "many">>;
15370
+ /**
15371
+ * ObjectAPI: API Layer
15372
+ */
15373
+ apis: z.ZodOptional<z.ZodArray<z.ZodObject<{
15374
+ name: z.ZodString;
15375
+ path: z.ZodString;
15376
+ method: z.ZodEnum<["GET", "POST", "PUT", "DELETE", "PATCH", "HEAD", "OPTIONS"]>;
15377
+ summary: z.ZodOptional<z.ZodString>;
15378
+ description: z.ZodOptional<z.ZodString>;
15379
+ type: z.ZodEnum<["flow", "script", "object_operation", "proxy"]>;
15380
+ target: z.ZodString;
15381
+ objectParams: z.ZodOptional<z.ZodObject<{
15382
+ object: z.ZodOptional<z.ZodString>;
15383
+ operation: z.ZodOptional<z.ZodEnum<["find", "get", "create", "update", "delete"]>>;
15384
+ }, "strip", z.ZodTypeAny, {
15385
+ object?: string | undefined;
15386
+ operation?: "find" | "update" | "delete" | "get" | "create" | undefined;
15387
+ }, {
15388
+ object?: string | undefined;
15389
+ operation?: "find" | "update" | "delete" | "get" | "create" | undefined;
15390
+ }>>;
15391
+ inputMapping: z.ZodOptional<z.ZodArray<z.ZodObject<{
15392
+ source: z.ZodString;
15393
+ target: z.ZodString;
15394
+ transform: z.ZodOptional<z.ZodString>;
15395
+ }, "strip", z.ZodTypeAny, {
15396
+ target: string;
15397
+ source: string;
15398
+ transform?: string | undefined;
15399
+ }, {
15400
+ target: string;
15401
+ source: string;
15402
+ transform?: string | undefined;
15403
+ }>, "many">>;
15404
+ outputMapping: z.ZodOptional<z.ZodArray<z.ZodObject<{
15405
+ source: z.ZodString;
15406
+ target: z.ZodString;
15407
+ transform: z.ZodOptional<z.ZodString>;
15408
+ }, "strip", z.ZodTypeAny, {
15409
+ target: string;
15410
+ source: string;
15411
+ transform?: string | undefined;
15412
+ }, {
15413
+ target: string;
15414
+ source: string;
15415
+ transform?: string | undefined;
15416
+ }>, "many">>;
15417
+ authRequired: z.ZodDefault<z.ZodBoolean>;
15418
+ rateLimit: z.ZodOptional<z.ZodObject<{
15419
+ enabled: z.ZodDefault<z.ZodBoolean>;
15420
+ windowMs: z.ZodDefault<z.ZodNumber>;
15421
+ maxRequests: z.ZodDefault<z.ZodNumber>;
15422
+ }, "strip", z.ZodTypeAny, {
15423
+ enabled: boolean;
15424
+ windowMs: number;
15425
+ maxRequests: number;
15426
+ }, {
15427
+ enabled?: boolean | undefined;
15428
+ windowMs?: number | undefined;
15429
+ maxRequests?: number | undefined;
15430
+ }>>;
15431
+ cacheTtl: z.ZodOptional<z.ZodNumber>;
15432
+ }, "strip", z.ZodTypeAny, {
15433
+ path: string;
15434
+ type: "script" | "flow" | "object_operation" | "proxy";
15435
+ name: string;
15436
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
15437
+ target: string;
15438
+ authRequired: boolean;
15439
+ summary?: string | undefined;
15440
+ description?: string | undefined;
15441
+ rateLimit?: {
15442
+ enabled: boolean;
15443
+ windowMs: number;
15444
+ maxRequests: number;
15445
+ } | undefined;
15446
+ objectParams?: {
15447
+ object?: string | undefined;
15448
+ operation?: "find" | "update" | "delete" | "get" | "create" | undefined;
15449
+ } | undefined;
15450
+ inputMapping?: {
15451
+ target: string;
15452
+ source: string;
15453
+ transform?: string | undefined;
15454
+ }[] | undefined;
15455
+ outputMapping?: {
15456
+ target: string;
15457
+ source: string;
15458
+ transform?: string | undefined;
15459
+ }[] | undefined;
15460
+ cacheTtl?: number | undefined;
15461
+ }, {
15462
+ path: string;
15463
+ type: "script" | "flow" | "object_operation" | "proxy";
15464
+ name: string;
15465
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
15466
+ target: string;
15467
+ summary?: string | undefined;
15468
+ description?: string | undefined;
15469
+ rateLimit?: {
15470
+ enabled?: boolean | undefined;
15471
+ windowMs?: number | undefined;
15472
+ maxRequests?: number | undefined;
15473
+ } | undefined;
15474
+ objectParams?: {
15475
+ object?: string | undefined;
15476
+ operation?: "find" | "update" | "delete" | "get" | "create" | undefined;
15477
+ } | undefined;
15478
+ inputMapping?: {
15479
+ target: string;
15480
+ source: string;
15481
+ transform?: string | undefined;
15482
+ }[] | undefined;
15483
+ outputMapping?: {
15484
+ target: string;
15485
+ source: string;
15486
+ transform?: string | undefined;
15487
+ }[] | undefined;
15488
+ authRequired?: boolean | undefined;
15489
+ cacheTtl?: number | undefined;
15490
+ }>, "many">>;
15189
15491
  /**
15190
15492
  * ObjectAI: Artificial Intelligence Layer
15191
15493
  */
@@ -15477,6 +15779,36 @@ export declare const ObjectStackSchema: z.ZodObject<{
15477
15779
  apiMethods?: ("update" | "delete" | "get" | "list" | "create" | "upsert" | "bulk" | "aggregate" | "history" | "search" | "restore" | "purge" | "import" | "export")[] | undefined;
15478
15780
  } | undefined;
15479
15781
  }[] | undefined;
15782
+ apis?: {
15783
+ path: string;
15784
+ type: "script" | "flow" | "object_operation" | "proxy";
15785
+ name: string;
15786
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
15787
+ target: string;
15788
+ authRequired: boolean;
15789
+ summary?: string | undefined;
15790
+ description?: string | undefined;
15791
+ rateLimit?: {
15792
+ enabled: boolean;
15793
+ windowMs: number;
15794
+ maxRequests: number;
15795
+ } | undefined;
15796
+ objectParams?: {
15797
+ object?: string | undefined;
15798
+ operation?: "find" | "update" | "delete" | "get" | "create" | undefined;
15799
+ } | undefined;
15800
+ inputMapping?: {
15801
+ target: string;
15802
+ source: string;
15803
+ transform?: string | undefined;
15804
+ }[] | undefined;
15805
+ outputMapping?: {
15806
+ target: string;
15807
+ source: string;
15808
+ transform?: string | undefined;
15809
+ }[] | undefined;
15810
+ cacheTtl?: number | undefined;
15811
+ }[] | undefined;
15480
15812
  actions?: {
15481
15813
  type: "url" | "script" | "api" | "modal" | "flow";
15482
15814
  label: string;
@@ -16548,6 +16880,36 @@ export declare const ObjectStackSchema: z.ZodObject<{
16548
16880
  clone?: boolean | undefined;
16549
16881
  } | undefined;
16550
16882
  }[] | undefined;
16883
+ apis?: {
16884
+ path: string;
16885
+ type: "script" | "flow" | "object_operation" | "proxy";
16886
+ name: string;
16887
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
16888
+ target: string;
16889
+ summary?: string | undefined;
16890
+ description?: string | undefined;
16891
+ rateLimit?: {
16892
+ enabled?: boolean | undefined;
16893
+ windowMs?: number | undefined;
16894
+ maxRequests?: number | undefined;
16895
+ } | undefined;
16896
+ objectParams?: {
16897
+ object?: string | undefined;
16898
+ operation?: "find" | "update" | "delete" | "get" | "create" | undefined;
16899
+ } | undefined;
16900
+ inputMapping?: {
16901
+ target: string;
16902
+ source: string;
16903
+ transform?: string | undefined;
16904
+ }[] | undefined;
16905
+ outputMapping?: {
16906
+ target: string;
16907
+ source: string;
16908
+ transform?: string | undefined;
16909
+ }[] | undefined;
16910
+ authRequired?: boolean | undefined;
16911
+ cacheTtl?: number | undefined;
16912
+ }[] | undefined;
16551
16913
  actions?: {
16552
16914
  label: string;
16553
16915
  name: string;
@@ -17625,6 +17987,36 @@ export declare const defineStack: (config: z.input<typeof ObjectStackDefinitionS
17625
17987
  clone?: boolean | undefined;
17626
17988
  } | undefined;
17627
17989
  }[] | undefined;
17990
+ apis?: {
17991
+ path: string;
17992
+ type: "script" | "flow" | "object_operation" | "proxy";
17993
+ name: string;
17994
+ method: "GET" | "POST" | "PUT" | "PATCH" | "DELETE" | "HEAD" | "OPTIONS";
17995
+ target: string;
17996
+ summary?: string | undefined;
17997
+ description?: string | undefined;
17998
+ rateLimit?: {
17999
+ enabled?: boolean | undefined;
18000
+ windowMs?: number | undefined;
18001
+ maxRequests?: number | undefined;
18002
+ } | undefined;
18003
+ objectParams?: {
18004
+ object?: string | undefined;
18005
+ operation?: "find" | "update" | "delete" | "get" | "create" | undefined;
18006
+ } | undefined;
18007
+ inputMapping?: {
18008
+ target: string;
18009
+ source: string;
18010
+ transform?: string | undefined;
18011
+ }[] | undefined;
18012
+ outputMapping?: {
18013
+ target: string;
18014
+ source: string;
18015
+ transform?: string | undefined;
18016
+ }[] | undefined;
18017
+ authRequired?: boolean | undefined;
18018
+ cacheTtl?: number | undefined;
18019
+ }[] | undefined;
17628
18020
  actions?: {
17629
18021
  label: string;
17630
18022
  name: string;