@epilot/sdk 2.18.11 → 2.18.13

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 (137) hide show
  1. package/definitions/app-runtime.json +1 -1
  2. package/definitions/app.json +170 -38
  3. package/definitions/integration-toolkit.json +54 -42
  4. package/dist/apis/access-token.cjs +6 -6
  5. package/dist/apis/access-token.js +1 -1
  6. package/dist/apis/address-suggestions.cjs +6 -6
  7. package/dist/apis/address-suggestions.js +1 -1
  8. package/dist/apis/address.cjs +6 -6
  9. package/dist/apis/address.js +1 -1
  10. package/dist/apis/ai-agents.cjs +6 -6
  11. package/dist/apis/ai-agents.js +1 -1
  12. package/dist/apis/app.cjs +8 -8
  13. package/dist/apis/app.d.cts +2 -2
  14. package/dist/apis/app.d.ts +2 -2
  15. package/dist/apis/app.js +2 -2
  16. package/dist/apis/audit-logs.cjs +6 -6
  17. package/dist/apis/audit-logs.js +1 -1
  18. package/dist/apis/automation.cjs +6 -6
  19. package/dist/apis/automation.js +1 -1
  20. package/dist/apis/billing.cjs +6 -6
  21. package/dist/apis/billing.js +1 -1
  22. package/dist/apis/blueprint-manifest.cjs +6 -6
  23. package/dist/apis/blueprint-manifest.js +1 -1
  24. package/dist/apis/calendar.cjs +6 -6
  25. package/dist/apis/calendar.js +1 -1
  26. package/dist/apis/configuration-hub.cjs +6 -6
  27. package/dist/apis/configuration-hub.js +1 -1
  28. package/dist/apis/consent.cjs +6 -6
  29. package/dist/apis/consent.js +1 -1
  30. package/dist/apis/customer-portal.cjs +6 -6
  31. package/dist/apis/customer-portal.js +1 -1
  32. package/dist/apis/dashboard.cjs +6 -6
  33. package/dist/apis/dashboard.js +1 -1
  34. package/dist/apis/data-governance.cjs +6 -6
  35. package/dist/apis/data-governance.js +1 -1
  36. package/dist/apis/deduplication.cjs +6 -6
  37. package/dist/apis/deduplication.js +1 -1
  38. package/dist/apis/design.cjs +6 -6
  39. package/dist/apis/design.js +1 -1
  40. package/dist/apis/document.cjs +6 -6
  41. package/dist/apis/document.js +1 -1
  42. package/dist/apis/email-settings.cjs +6 -6
  43. package/dist/apis/email-settings.js +1 -1
  44. package/dist/apis/email-template.cjs +6 -6
  45. package/dist/apis/email-template.js +1 -1
  46. package/dist/apis/entity-mapping.cjs +6 -6
  47. package/dist/apis/entity-mapping.js +1 -1
  48. package/dist/apis/entity.cjs +6 -6
  49. package/dist/apis/entity.js +1 -1
  50. package/dist/apis/environments.cjs +6 -6
  51. package/dist/apis/environments.js +1 -1
  52. package/dist/apis/event-catalog.cjs +6 -6
  53. package/dist/apis/event-catalog.js +1 -1
  54. package/dist/apis/file.cjs +6 -6
  55. package/dist/apis/file.js +1 -1
  56. package/dist/apis/iban.cjs +6 -6
  57. package/dist/apis/iban.js +1 -1
  58. package/dist/apis/integration-toolkit.cjs +6 -6
  59. package/dist/apis/integration-toolkit.d.cts +2 -2
  60. package/dist/apis/integration-toolkit.d.ts +2 -2
  61. package/dist/apis/integration-toolkit.js +1 -1
  62. package/dist/apis/journey.cjs +6 -6
  63. package/dist/apis/journey.js +1 -1
  64. package/dist/apis/kanban.cjs +6 -6
  65. package/dist/apis/kanban.js +1 -1
  66. package/dist/apis/message.cjs +6 -6
  67. package/dist/apis/message.js +1 -1
  68. package/dist/apis/metering.cjs +6 -6
  69. package/dist/apis/metering.js +1 -1
  70. package/dist/apis/notes.cjs +6 -6
  71. package/dist/apis/notes.js +1 -1
  72. package/dist/apis/notification.cjs +6 -6
  73. package/dist/apis/notification.js +1 -1
  74. package/dist/apis/organization.cjs +6 -6
  75. package/dist/apis/organization.js +1 -1
  76. package/dist/apis/partner-directory.cjs +6 -6
  77. package/dist/apis/partner-directory.js +1 -1
  78. package/dist/apis/permissions.cjs +6 -6
  79. package/dist/apis/permissions.js +1 -1
  80. package/dist/apis/pricing-tier.cjs +6 -6
  81. package/dist/apis/pricing-tier.js +1 -1
  82. package/dist/apis/pricing.cjs +6 -6
  83. package/dist/apis/pricing.js +1 -1
  84. package/dist/apis/purpose.cjs +6 -6
  85. package/dist/apis/purpose.js +1 -1
  86. package/dist/apis/query.cjs +6 -6
  87. package/dist/apis/query.js +1 -1
  88. package/dist/apis/sandbox.cjs +6 -6
  89. package/dist/apis/sandbox.js +1 -1
  90. package/dist/apis/sharing.cjs +6 -6
  91. package/dist/apis/sharing.js +1 -1
  92. package/dist/apis/snapshot.cjs +6 -6
  93. package/dist/apis/snapshot.js +1 -1
  94. package/dist/apis/submission.cjs +6 -6
  95. package/dist/apis/submission.js +1 -1
  96. package/dist/apis/target.cjs +6 -6
  97. package/dist/apis/target.js +1 -1
  98. package/dist/apis/targeting.cjs +6 -6
  99. package/dist/apis/targeting.js +1 -1
  100. package/dist/apis/template-variables.cjs +6 -6
  101. package/dist/apis/template-variables.js +1 -1
  102. package/dist/apis/user.cjs +6 -6
  103. package/dist/apis/user.js +1 -1
  104. package/dist/apis/validation-rules.cjs +6 -6
  105. package/dist/apis/validation-rules.js +1 -1
  106. package/dist/apis/webhooks.cjs +6 -6
  107. package/dist/apis/webhooks.js +1 -1
  108. package/dist/apis/workflow-definition.cjs +6 -6
  109. package/dist/apis/workflow-definition.js +1 -1
  110. package/dist/apis/workflow.cjs +6 -6
  111. package/dist/apis/workflow.js +1 -1
  112. package/dist/app-A7P5LKNL.cjs +7 -0
  113. package/dist/app-EEEBOCVZ.js +7 -0
  114. package/dist/app-runtime-AAQHTC7F.cjs +5 -0
  115. package/dist/{app-runtime-6T473MHJ.js → app-runtime-NBGFHFT2.js} +1 -1
  116. package/dist/{app.d-B5s8GfqF.d.cts → app.d-vPrbhe5h.d.cts} +202 -39
  117. package/dist/{app.d-B5s8GfqF.d.ts → app.d-vPrbhe5h.d.ts} +202 -39
  118. package/dist/{chunk-MIHMEO7K.js → chunk-2UWWI6AM.js} +3 -3
  119. package/dist/{chunk-324JJ7CA.cjs → chunk-O2ELDNPK.cjs} +3 -3
  120. package/dist/{chunk-ZEOU24C3.js → chunk-TNRT33VQ.js} +1 -1
  121. package/dist/{chunk-W6BCTQLU.cjs → chunk-XHVIF7AC.cjs} +1 -1
  122. package/dist/index.cjs +10 -10
  123. package/dist/index.d.cts +2 -2
  124. package/dist/index.d.ts +2 -2
  125. package/dist/index.js +2 -2
  126. package/dist/integration-toolkit-RIBZBI2Y.js +7 -0
  127. package/dist/integration-toolkit-RPWD4MAN.cjs +7 -0
  128. package/dist/{integration-toolkit.d-D5LjhCQB.d.cts → integration-toolkit.d-pP-3dBPT.d.cts} +50 -39
  129. package/dist/{integration-toolkit.d-D5LjhCQB.d.ts → integration-toolkit.d-pP-3dBPT.d.ts} +50 -39
  130. package/docs/app.md +375 -106
  131. package/docs/integration-toolkit.md +130 -73
  132. package/package.json +1 -1
  133. package/dist/app-5GFMQJQP.cjs +0 -7
  134. package/dist/app-YY2NCNQ2.js +0 -7
  135. package/dist/app-runtime-2QBLB4AK.cjs +0 -5
  136. package/dist/integration-toolkit-OSK5M75F.js +0 -7
  137. package/dist/integration-toolkit-W5IENOJW.cjs +0 -7
package/docs/app.md CHANGED
@@ -75,6 +75,7 @@ const { data } = await appClient.getPublicFacingComponent(...)
75
75
  - [`OptionsRef`](#optionsref)
76
76
  - [`S3Reference`](#s3reference)
77
77
  - [`ComponentType`](#componenttype)
78
+ - [`FunctionDefinition`](#functiondefinition)
78
79
  - [`Author`](#author)
79
80
  - [`NotificationConfig`](#notificationconfig)
80
81
  - [`NotificationEvent`](#notificationevent)
@@ -90,7 +91,6 @@ const { data } = await appClient.getPublicFacingComponent(...)
90
91
  - [`CustomFlowActionComponent`](#customflowactioncomponent)
91
92
  - [`BaseCustomActionConfig`](#basecustomactionconfig)
92
93
  - [`ExternalIntegrationCustomActionConfig`](#externalintegrationcustomactionconfig)
93
- - [`SandboxCustomActionConfig`](#sandboxcustomactionconfig)
94
94
  - [`CustomFlowConfig`](#customflowconfig)
95
95
  - [`ExternalProductCatalogComponent`](#externalproductcatalogcomponent)
96
96
  - [`ExternalProductCatalogConfig`](#externalproductcatalogconfig)
@@ -127,6 +127,7 @@ const { data } = await appClient.getPublicFacingComponent(...)
127
127
  - [`Pricing`](#pricing)
128
128
  - [`Audit`](#audit)
129
129
  - [`Review`](#review)
130
+ - [`InternalReview`](#internalreview)
130
131
  - [`ConfigurationMetadata`](#configurationmetadata)
131
132
  - [`ConfigurationVersion`](#configurationversion)
132
133
  - [`ApiProxyConfig`](#apiproxyconfig)
@@ -404,6 +405,21 @@ const { data } = await client.getPublicConfiguration({
404
405
  "configuration": {}
405
406
  }
406
407
  ],
408
+ "functions": [
409
+ {
410
+ "name": "string",
411
+ "type": "workflow",
412
+ "label": {},
413
+ "description": {},
414
+ "code": "string",
415
+ "schedule": "rate(30 minutes)",
416
+ "schedule_timezone": "Europe/Berlin",
417
+ "schedule_overlap": "skip",
418
+ "secrets": ["string"],
419
+ "wait_for_callback": true,
420
+ "surfaces": {}
421
+ }
422
+ ],
407
423
  "is_beta": true,
408
424
  "deprecated_at": "string",
409
425
  "version": "string",
@@ -425,6 +441,7 @@ const { data } = await client.getPublicConfiguration({
425
441
  "app_id": "string",
426
442
  "owner_org_id": "string",
427
443
  "components": [],
444
+ "functions": [],
428
445
  "visibility": "private",
429
446
  "public": false,
430
447
  "pending": false,
@@ -501,20 +518,22 @@ const { data } = await client.getConfiguration({
501
518
  "components": [
502
519
  {
503
520
  "component_type": "CUSTOM_JOURNEY_BLOCK",
504
- "configuration": {
505
- "override_dev_mode": {
506
- "override_url": "http://localhost:3000"
507
- },
508
- "component_url": "https://cdn.apps.com/123/v1.0.0/bundle.js",
509
- "component_tag": "string",
510
- "component_args": [
511
- {
512
- "type": "text"
513
- }
514
- ],
515
- "component_size": 0,
516
- "component_mapping": {}
517
- }
521
+ "configuration": {}
522
+ }
523
+ ],
524
+ "functions": [
525
+ {
526
+ "name": "string",
527
+ "type": "workflow",
528
+ "label": {},
529
+ "description": {},
530
+ "code": "string",
531
+ "schedule": "rate(30 minutes)",
532
+ "schedule_timezone": "Europe/Berlin",
533
+ "schedule_overlap": "skip",
534
+ "secrets": ["string"],
535
+ "wait_for_callback": true,
536
+ "surfaces": {}
518
537
  }
519
538
  ],
520
539
  "visibility": "private",
@@ -528,10 +547,7 @@ const { data } = await client.getConfiguration({
528
547
  "role": {
529
548
  "id": "string",
530
549
  "grants": [
531
- {
532
- "action": "string",
533
- "resource": "string"
534
- }
550
+ {}
535
551
  ]
536
552
  },
537
553
  "blueprint_ref": {
@@ -876,6 +892,33 @@ const { data } = await client.listVersions({
876
892
  }
877
893
  }
878
894
  ],
895
+ "functions": [
896
+ {
897
+ "name": "string",
898
+ "type": "workflow",
899
+ "label": {
900
+ "en": "string",
901
+ "de": "string"
902
+ },
903
+ "description": {
904
+ "en": "string",
905
+ "de": "string"
906
+ },
907
+ "code": "string",
908
+ "schedule": "rate(30 minutes)",
909
+ "schedule_timezone": "Europe/Berlin",
910
+ "schedule_overlap": "skip",
911
+ "secrets": ["string"],
912
+ "wait_for_callback": true,
913
+ "surfaces": {
914
+ "flow_action_config": {
915
+ "app_url": "string",
916
+ "zip_url": "string",
917
+ "override_url": "string"
918
+ }
919
+ }
920
+ }
921
+ ],
879
922
  "visibility": "private",
880
923
  "public": false,
881
924
  "pending": false,
@@ -976,20 +1019,22 @@ const { data } = await client.getVersion({
976
1019
  "components": [
977
1020
  {
978
1021
  "component_type": "CUSTOM_JOURNEY_BLOCK",
979
- "configuration": {
980
- "override_dev_mode": {
981
- "override_url": "http://localhost:3000"
982
- },
983
- "component_url": "https://cdn.apps.com/123/v1.0.0/bundle.js",
984
- "component_tag": "string",
985
- "component_args": [
986
- {
987
- "type": "text"
988
- }
989
- ],
990
- "component_size": 0,
991
- "component_mapping": {}
992
- }
1022
+ "configuration": {}
1023
+ }
1024
+ ],
1025
+ "functions": [
1026
+ {
1027
+ "name": "string",
1028
+ "type": "workflow",
1029
+ "label": {},
1030
+ "description": {},
1031
+ "code": "string",
1032
+ "schedule": "rate(30 minutes)",
1033
+ "schedule_timezone": "Europe/Berlin",
1034
+ "schedule_overlap": "skip",
1035
+ "secrets": ["string"],
1036
+ "wait_for_callback": true,
1037
+ "surfaces": {}
993
1038
  }
994
1039
  ],
995
1040
  "visibility": "private",
@@ -1003,10 +1048,7 @@ const { data } = await client.getVersion({
1003
1048
  "role": {
1004
1049
  "id": "string",
1005
1050
  "grants": [
1006
- {
1007
- "action": "string",
1008
- "resource": "string"
1009
- }
1051
+ {}
1010
1052
  ]
1011
1053
  },
1012
1054
  "blueprint_ref": {
@@ -1064,6 +1106,33 @@ const { data } = await client.patchVersion(
1064
1106
  action: 'string',
1065
1107
  resource: 'string'
1066
1108
  }
1109
+ ],
1110
+ functions: [
1111
+ {
1112
+ name: 'string',
1113
+ type: 'workflow',
1114
+ label: {
1115
+ en: 'string',
1116
+ de: 'string'
1117
+ },
1118
+ description: {
1119
+ en: 'string',
1120
+ de: 'string'
1121
+ },
1122
+ code: 'string',
1123
+ schedule: 'rate(30 minutes)',
1124
+ schedule_timezone: 'Europe/Berlin',
1125
+ schedule_overlap: 'skip',
1126
+ secrets: ['string'],
1127
+ wait_for_callback: true,
1128
+ surfaces: {
1129
+ flow_action_config: {
1130
+ app_url: 'string',
1131
+ zip_url: 'string',
1132
+ override_url: 'string'
1133
+ }
1134
+ }
1135
+ }
1067
1136
  ]
1068
1137
  },
1069
1138
  )
@@ -1345,6 +1414,33 @@ const { data } = await client.listInstallations({
1345
1414
  }
1346
1415
  }
1347
1416
  ],
1417
+ "functions": [
1418
+ {
1419
+ "name": "string",
1420
+ "type": "workflow",
1421
+ "label": {
1422
+ "en": "string",
1423
+ "de": "string"
1424
+ },
1425
+ "description": {
1426
+ "en": "string",
1427
+ "de": "string"
1428
+ },
1429
+ "code": "string",
1430
+ "schedule": "rate(30 minutes)",
1431
+ "schedule_timezone": "Europe/Berlin",
1432
+ "schedule_overlap": "skip",
1433
+ "secrets": ["string"],
1434
+ "wait_for_callback": true,
1435
+ "surfaces": {
1436
+ "flow_action_config": {
1437
+ "app_url": "string",
1438
+ "zip_url": "string",
1439
+ "override_url": "string"
1440
+ }
1441
+ }
1442
+ }
1443
+ ],
1348
1444
  "installed_version": "string",
1349
1445
  "role": "string",
1350
1446
  "blueprint_ref": {
@@ -1426,6 +1522,33 @@ const { data } = await client.getInstallation({
1426
1522
  }
1427
1523
  }
1428
1524
  ],
1525
+ "functions": [
1526
+ {
1527
+ "name": "string",
1528
+ "type": "workflow",
1529
+ "label": {
1530
+ "en": "string",
1531
+ "de": "string"
1532
+ },
1533
+ "description": {
1534
+ "en": "string",
1535
+ "de": "string"
1536
+ },
1537
+ "code": "string",
1538
+ "schedule": "rate(30 minutes)",
1539
+ "schedule_timezone": "Europe/Berlin",
1540
+ "schedule_overlap": "skip",
1541
+ "secrets": ["string"],
1542
+ "wait_for_callback": true,
1543
+ "surfaces": {
1544
+ "flow_action_config": {
1545
+ "app_url": "string",
1546
+ "zip_url": "string",
1547
+ "override_url": "string"
1548
+ }
1549
+ }
1550
+ }
1551
+ ],
1429
1552
  "installed_version": "string",
1430
1553
  "role": "string",
1431
1554
  "blueprint_ref": {
@@ -1517,6 +1640,33 @@ const { data } = await client.install(
1517
1640
  }
1518
1641
  }
1519
1642
  ],
1643
+ "functions": [
1644
+ {
1645
+ "name": "string",
1646
+ "type": "workflow",
1647
+ "label": {
1648
+ "en": "string",
1649
+ "de": "string"
1650
+ },
1651
+ "description": {
1652
+ "en": "string",
1653
+ "de": "string"
1654
+ },
1655
+ "code": "string",
1656
+ "schedule": "rate(30 minutes)",
1657
+ "schedule_timezone": "Europe/Berlin",
1658
+ "schedule_overlap": "skip",
1659
+ "secrets": ["string"],
1660
+ "wait_for_callback": true,
1661
+ "surfaces": {
1662
+ "flow_action_config": {
1663
+ "app_url": "string",
1664
+ "zip_url": "string",
1665
+ "override_url": "string"
1666
+ }
1667
+ }
1668
+ }
1669
+ ],
1520
1670
  "installed_version": "string",
1521
1671
  "role": "string",
1522
1672
  "blueprint_ref": {
@@ -1637,6 +1787,33 @@ const { data } = await client.promoteVersion({
1637
1787
  }
1638
1788
  }
1639
1789
  ],
1790
+ "functions": [
1791
+ {
1792
+ "name": "string",
1793
+ "type": "workflow",
1794
+ "label": {
1795
+ "en": "string",
1796
+ "de": "string"
1797
+ },
1798
+ "description": {
1799
+ "en": "string",
1800
+ "de": "string"
1801
+ },
1802
+ "code": "string",
1803
+ "schedule": "rate(30 minutes)",
1804
+ "schedule_timezone": "Europe/Berlin",
1805
+ "schedule_overlap": "skip",
1806
+ "secrets": ["string"],
1807
+ "wait_for_callback": true,
1808
+ "surfaces": {
1809
+ "flow_action_config": {
1810
+ "app_url": "string",
1811
+ "zip_url": "string",
1812
+ "override_url": "string"
1813
+ }
1814
+ }
1815
+ }
1816
+ ],
1640
1817
  "installed_version": "string",
1641
1818
  "role": "string",
1642
1819
  "blueprint_ref": {
@@ -1699,6 +1876,7 @@ const { data } = await client.publicProxyGet({
1699
1876
  appId: 'example',
1700
1877
  proxyName: 'example',
1701
1878
  path: 'example',
1879
+ query: 'example',
1702
1880
  })
1703
1881
  ```
1704
1882
 
@@ -1716,6 +1894,7 @@ const { data } = await client.publicProxyPost(
1716
1894
  appId: 'example',
1717
1895
  proxyName: 'example',
1718
1896
  path: 'example',
1897
+ query: 'example',
1719
1898
  },
1720
1899
  {},
1721
1900
  )
@@ -1735,6 +1914,7 @@ const { data } = await client.publicProxyPut(
1735
1914
  appId: 'example',
1736
1915
  proxyName: 'example',
1737
1916
  path: 'example',
1917
+ query: 'example',
1738
1918
  },
1739
1919
  {},
1740
1920
  )
@@ -1754,6 +1934,7 @@ const { data } = await client.publicProxyPatch(
1754
1934
  appId: 'example',
1755
1935
  proxyName: 'example',
1756
1936
  path: 'example',
1937
+ query: 'example',
1757
1938
  },
1758
1939
  {},
1759
1940
  )
@@ -1772,6 +1953,7 @@ const { data } = await client.publicProxyDelete({
1772
1953
  appId: 'example',
1773
1954
  proxyName: 'example',
1774
1955
  path: 'example',
1956
+ query: 'example',
1775
1957
  })
1776
1958
  ```
1777
1959
 
@@ -1865,7 +2047,40 @@ type S3Reference = {
1865
2047
  Type of app component
1866
2048
 
1867
2049
  ```ts
1868
- type ComponentType = "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY"
2050
+ type ComponentType = "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY" | "APP_FUNCTION"
2051
+ ```
2052
+
2053
+ ### `FunctionDefinition`
2054
+
2055
+ A named server-side function belonging to the app. Runs in the epilot code-execution sandbox with an installation-scoped app token. Functions with a schedule are executed automatically once per installation.
2056
+
2057
+
2058
+ ```ts
2059
+ type FunctionDefinition = {
2060
+ name: string
2061
+ type: "workflow" | "scheduled"
2062
+ label?: {
2063
+ en?: string
2064
+ de: string
2065
+ }
2066
+ description?: {
2067
+ en?: string
2068
+ de: string
2069
+ }
2070
+ code: string
2071
+ schedule?: string
2072
+ schedule_timezone?: string
2073
+ schedule_overlap?: "skip"
2074
+ secrets?: string[]
2075
+ wait_for_callback?: boolean
2076
+ surfaces?: {
2077
+ flow_action_config?: {
2078
+ app_url?: { ... }
2079
+ zip_url?: { ... }
2080
+ override_url?: { ... }
2081
+ }
2082
+ }
2083
+ }
1869
2084
  ```
1870
2085
 
1871
2086
  ### `Author`
@@ -1967,7 +2182,7 @@ type ApiProxyComponent = {
1967
2182
  configuration: {
1968
2183
  name: string
1969
2184
  target: string
1970
- auth_type: "header" | "bearer" | "oauth2" | "none"
2185
+ auth_type: "header" | "bearer" | "basic" | "oauth2" | "none"
1971
2186
  auth_header?: string
1972
2187
  token_url?: string // uri
1973
2188
  headers?: Record<string, string>
@@ -2092,14 +2307,6 @@ type CustomFlowActionComponent = {
2092
2307
  url?: { ... }
2093
2308
  headers?: { ... }
2094
2309
  }
2095
- } | {
2096
- name?: string
2097
- description?: string
2098
- wait_for_callback?: boolean
2099
- type: "sandbox"
2100
- sandbox_settings?: {
2101
- code?: { ... }
2102
- }
2103
2310
  }
2104
2311
  surfaces?: {
2105
2312
  flow_action_config?: {
@@ -2136,21 +2343,10 @@ type ExternalIntegrationCustomActionConfig = {
2136
2343
  }
2137
2344
  ```
2138
2345
 
2139
- ### `SandboxCustomActionConfig`
2346
+ ### `CustomFlowConfig`
2140
2347
 
2141
- ```ts
2142
- type SandboxCustomActionConfig = {
2143
- name?: string
2144
- description?: string
2145
- wait_for_callback?: boolean
2146
- type: "sandbox"
2147
- sandbox_settings?: {
2148
- code?: string
2149
- }
2150
- }
2151
- ```
2348
+ Configuration of an external-integration flow action. Sandboxed code belongs in the app's `functions` (type `workflow`) instead — workflow functions are selectable directly in the flow builder without a component.
2152
2349
 
2153
- ### `CustomFlowConfig`
2154
2350
 
2155
2351
  ```ts
2156
2352
  type CustomFlowConfig = {
@@ -2162,14 +2358,6 @@ type CustomFlowConfig = {
2162
2358
  url?: string
2163
2359
  headers?: Record<string, unknown>
2164
2360
  }
2165
- } | {
2166
- name?: string
2167
- description?: string
2168
- wait_for_callback?: boolean
2169
- type: "sandbox"
2170
- sandbox_settings?: {
2171
- code?: string
2172
- }
2173
2361
  }
2174
2362
  ```
2175
2363
 
@@ -3270,6 +3458,26 @@ type Review = {
3270
3458
  }
3271
3459
  ```
3272
3460
 
3461
+ ### `InternalReview`
3462
+
3463
+ Review entry including app ownership info, used by internal admin endpoints
3464
+
3465
+ ```ts
3466
+ type InternalReview = {
3467
+ version?: string
3468
+ review_status?: "approved" | "rejected" | "pending"
3469
+ requested_at?: string
3470
+ requested_by?: string
3471
+ technical_contact?: string
3472
+ marketing_contact?: string
3473
+ demo_url?: string
3474
+ app_id?: string
3475
+ org_id?: string
3476
+ reviewed_by?: string
3477
+ reviewed_at?: string
3478
+ }
3479
+ ```
3480
+
3273
3481
  ### `ConfigurationMetadata`
3274
3482
 
3275
3483
  Basic metadata about your app configuration which does not get versioned
@@ -3344,6 +3552,27 @@ type ConfigurationVersion = {
3344
3552
  }>
3345
3553
  surfaces?: object
3346
3554
  }>
3555
+ functions?: Array<{
3556
+ name: string
3557
+ type: "workflow" | "scheduled"
3558
+ label?: {
3559
+ en?: { ... }
3560
+ de: { ... }
3561
+ }
3562
+ description?: {
3563
+ en?: { ... }
3564
+ de: { ... }
3565
+ }
3566
+ code: string
3567
+ schedule?: string
3568
+ schedule_timezone?: string
3569
+ schedule_overlap?: "skip"
3570
+ secrets?: string[]
3571
+ wait_for_callback?: boolean
3572
+ surfaces?: {
3573
+ flow_action_config?: { ... }
3574
+ }
3575
+ }>
3347
3576
  visibility?: "public" | "private"
3348
3577
  public?: boolean
3349
3578
  pending?: boolean
@@ -3383,7 +3612,7 @@ Configuration for an API proxy component
3383
3612
  type ApiProxyConfig = {
3384
3613
  name: string
3385
3614
  target: string
3386
- auth_type: "header" | "bearer" | "oauth2" | "none"
3615
+ auth_type: "header" | "bearer" | "basic" | "oauth2" | "none"
3387
3616
  auth_header?: string
3388
3617
  token_url?: string // uri
3389
3618
  headers?: Record<string, string>
@@ -3452,6 +3681,27 @@ type Installation = {
3452
3681
  }>
3453
3682
  surfaces?: object
3454
3683
  }>
3684
+ functions?: Array<{
3685
+ name: string
3686
+ type: "workflow" | "scheduled"
3687
+ label?: {
3688
+ en?: { ... }
3689
+ de: { ... }
3690
+ }
3691
+ description?: {
3692
+ en?: { ... }
3693
+ de: { ... }
3694
+ }
3695
+ code: string
3696
+ schedule?: string
3697
+ schedule_timezone?: string
3698
+ schedule_overlap?: "skip"
3699
+ secrets?: string[]
3700
+ wait_for_callback?: boolean
3701
+ surfaces?: {
3702
+ flow_action_config?: { ... }
3703
+ }
3704
+ }>
3455
3705
  installed_version: string
3456
3706
  role?: string
3457
3707
  blueprint_ref?: {
@@ -3518,6 +3768,27 @@ type PublicConfiguration = {
3518
3768
  }>
3519
3769
  surfaces?: object
3520
3770
  }>
3771
+ functions?: Array<{
3772
+ name: string
3773
+ type: "workflow" | "scheduled"
3774
+ label?: {
3775
+ en?: { ... }
3776
+ de: { ... }
3777
+ }
3778
+ description?: {
3779
+ en?: { ... }
3780
+ de: { ... }
3781
+ }
3782
+ code: string
3783
+ schedule?: string
3784
+ schedule_timezone?: string
3785
+ schedule_overlap?: "skip"
3786
+ secrets?: string[]
3787
+ wait_for_callback?: boolean
3788
+ surfaces?: {
3789
+ flow_action_config?: { ... }
3790
+ }
3791
+ }>
3521
3792
  is_beta?: boolean
3522
3793
  deprecated_at?: string
3523
3794
  version: string
@@ -3545,32 +3816,15 @@ type PublicConfiguration = {
3545
3816
  options?: { ... }
3546
3817
  surfaces?: { ... }
3547
3818
  }>
3548
- visibility?: "public" | "private"
3549
- public?: boolean
3550
- pending?: boolean
3551
- version: string
3552
- is_beta?: boolean
3553
- deprecated_at?: string
3554
- changelog?: string
3555
- review_status?: "approved" | "rejected" | "pending"
3556
- role?: {
3557
- id?: { ... }
3558
- grants?: { ... }
3559
- }
3560
- blueprint_ref?: {
3561
- manifest_id?: { ... }
3562
- job_id?: { ... }
3563
- source_blueprint_file?: { ... }
3564
- }
3565
- version_audit: {
3566
- created_at?: { ... }
3567
- created_by?: { ... }
3568
- updated_at?: { ... }
3569
- updated_by?: { ... }
3570
- versioned_at?: { ... }
3571
- versioned_by?: { ... }
3572
- }
3573
- }>
3819
+ functions?: Array<{
3820
+ name: { ... }
3821
+ type: { ... }
3822
+ label?: { ... }
3823
+ description?: { ... }
3824
+ code: { ... }
3825
+ schedule?: { ... }
3826
+ schedule_timezone?: { ... }
3827
+ // ...
3574
3828
  }
3575
3829
  ```
3576
3830
 
@@ -3637,6 +3891,27 @@ type Configuration = {
3637
3891
  }>
3638
3892
  surfaces?: object
3639
3893
  }>
3894
+ functions?: Array<{
3895
+ name: string
3896
+ type: "workflow" | "scheduled"
3897
+ label?: {
3898
+ en?: { ... }
3899
+ de: { ... }
3900
+ }
3901
+ description?: {
3902
+ en?: { ... }
3903
+ de: { ... }
3904
+ }
3905
+ code: string
3906
+ schedule?: string
3907
+ schedule_timezone?: string
3908
+ schedule_overlap?: "skip"
3909
+ secrets?: string[]
3910
+ wait_for_callback?: boolean
3911
+ surfaces?: {
3912
+ flow_action_config?: { ... }
3913
+ }
3914
+ }>
3640
3915
  visibility?: "public" | "private"
3641
3916
  public?: boolean
3642
3917
  pending?: boolean
@@ -3658,13 +3933,7 @@ type Configuration = {
3658
3933
  source_blueprint_file?: string
3659
3934
  }
3660
3935
  version_audit: {
3661
- created_at?: string
3662
- created_by?: string
3663
- updated_at?: string
3664
- updated_by?: string
3665
- versioned_at?: string
3666
- versioned_by?: string
3667
- }
3936
+ // ...
3668
3937
  }
3669
3938
  ```
3670
3939
 
@@ -3700,7 +3969,7 @@ type BatchEventRequest = {
3700
3969
  timestamp?: string
3701
3970
  correlation_id?: string
3702
3971
  event_type: "ERROR" | "WARNING" | "INFO"
3703
- source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY"
3972
+ source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY" | "APP_FUNCTION"
3704
3973
  actor: {
3705
3974
  org_id?: { ... }
3706
3975
  user_id?: { ... }
@@ -3732,7 +4001,7 @@ type AppEventData = {
3732
4001
  timestamp?: string
3733
4002
  correlation_id?: string
3734
4003
  event_type: "ERROR" | "WARNING" | "INFO"
3735
- source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY"
4004
+ source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY" | "APP_FUNCTION"
3736
4005
  actor: {
3737
4006
  org_id?: string
3738
4007
  user_id?: string
@@ -3752,7 +4021,7 @@ type EventsQuery = {
3752
4021
  preset?: "1h" | "6h" | "24h" | "7d" | "30d"
3753
4022
  }
3754
4023
  filters?: {
3755
- source?: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY"[]
4024
+ source?: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY" | "APP_FUNCTION"[]
3756
4025
  component_id?: string[]
3757
4026
  event_type?: "ERROR" | "WARNING" | "INFO"[]
3758
4027
  correlation_id?: string
@@ -3844,7 +4113,7 @@ type RawEvents = {
3844
4113
  timestamp?: string
3845
4114
  correlation_id?: string
3846
4115
  event_type: "ERROR" | "WARNING" | "INFO"
3847
- source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY"
4116
+ source: "CUSTOM_JOURNEY_BLOCK" | "CUSTOM_PORTAL_BLOCK" | "PORTAL_EXTENSION" | "CUSTOM_FLOW_ACTION" | "ERP_INFORM_TOOLKIT" | "CUSTOM_CAPABILITY" | "EXTERNAL_PRODUCT_CATALOG" | "CUSTOM_PAGE" | "API_PROXY" | "APP_FUNCTION"
3848
4117
  actor: {
3849
4118
  org_id?: { ... }
3850
4119
  user_id?: { ... }