@epilot/sdk 2.4.4 → 2.5.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 (182) hide show
  1. package/definitions/app.json +137 -58
  2. package/definitions/customer-portal-runtime.json +1 -1
  3. package/definitions/customer-portal.json +496 -24
  4. package/definitions/entity.json +185 -8
  5. package/definitions/webhooks-runtime.json +1 -1
  6. package/definitions/webhooks.json +134 -4
  7. package/dist/apis/access-token.cjs +6 -6
  8. package/dist/apis/access-token.js +1 -1
  9. package/dist/apis/address-suggestions.cjs +6 -6
  10. package/dist/apis/address-suggestions.js +1 -1
  11. package/dist/apis/address.cjs +6 -6
  12. package/dist/apis/address.js +1 -1
  13. package/dist/apis/ai-agents.cjs +6 -6
  14. package/dist/apis/ai-agents.js +1 -1
  15. package/dist/apis/app.cjs +8 -8
  16. package/dist/apis/app.d.cts +2 -2
  17. package/dist/apis/app.d.ts +2 -2
  18. package/dist/apis/app.js +2 -2
  19. package/dist/apis/audit-logs.cjs +6 -6
  20. package/dist/apis/audit-logs.js +1 -1
  21. package/dist/apis/automation.cjs +6 -6
  22. package/dist/apis/automation.js +1 -1
  23. package/dist/apis/billing.cjs +6 -6
  24. package/dist/apis/billing.js +1 -1
  25. package/dist/apis/blueprint-manifest.cjs +6 -6
  26. package/dist/apis/blueprint-manifest.js +1 -1
  27. package/dist/apis/calendar.cjs +6 -6
  28. package/dist/apis/calendar.js +1 -1
  29. package/dist/apis/configuration-hub.cjs +6 -6
  30. package/dist/apis/configuration-hub.js +1 -1
  31. package/dist/apis/consent.cjs +6 -6
  32. package/dist/apis/consent.js +1 -1
  33. package/dist/apis/customer-portal.cjs +8 -8
  34. package/dist/apis/customer-portal.d.cts +2 -2
  35. package/dist/apis/customer-portal.d.ts +2 -2
  36. package/dist/apis/customer-portal.js +2 -2
  37. package/dist/apis/dashboard.cjs +6 -6
  38. package/dist/apis/dashboard.js +1 -1
  39. package/dist/apis/data-governance.cjs +6 -6
  40. package/dist/apis/data-governance.js +1 -1
  41. package/dist/apis/deduplication.cjs +6 -6
  42. package/dist/apis/deduplication.js +1 -1
  43. package/dist/apis/design.cjs +6 -6
  44. package/dist/apis/design.js +1 -1
  45. package/dist/apis/document.cjs +6 -6
  46. package/dist/apis/document.js +1 -1
  47. package/dist/apis/email-settings.cjs +6 -6
  48. package/dist/apis/email-settings.js +1 -1
  49. package/dist/apis/email-template.cjs +6 -6
  50. package/dist/apis/email-template.js +1 -1
  51. package/dist/apis/entity-mapping.cjs +6 -6
  52. package/dist/apis/entity-mapping.js +1 -1
  53. package/dist/apis/entity.cjs +6 -6
  54. package/dist/apis/entity.d.cts +2 -2
  55. package/dist/apis/entity.d.ts +2 -2
  56. package/dist/apis/entity.js +1 -1
  57. package/dist/apis/environments.cjs +6 -6
  58. package/dist/apis/environments.js +1 -1
  59. package/dist/apis/event-catalog.cjs +6 -6
  60. package/dist/apis/event-catalog.js +1 -1
  61. package/dist/apis/file.cjs +6 -6
  62. package/dist/apis/file.js +1 -1
  63. package/dist/apis/iban.cjs +6 -6
  64. package/dist/apis/iban.js +1 -1
  65. package/dist/apis/integration-toolkit.cjs +6 -6
  66. package/dist/apis/integration-toolkit.js +1 -1
  67. package/dist/apis/journey.cjs +6 -6
  68. package/dist/apis/journey.js +1 -1
  69. package/dist/apis/kanban.cjs +6 -6
  70. package/dist/apis/kanban.js +1 -1
  71. package/dist/apis/message.cjs +6 -6
  72. package/dist/apis/message.js +1 -1
  73. package/dist/apis/metering.cjs +6 -6
  74. package/dist/apis/metering.js +1 -1
  75. package/dist/apis/notes.cjs +6 -6
  76. package/dist/apis/notes.d.cts +2 -2
  77. package/dist/apis/notes.d.ts +2 -2
  78. package/dist/apis/notes.js +1 -1
  79. package/dist/apis/notification.cjs +6 -6
  80. package/dist/apis/notification.js +1 -1
  81. package/dist/apis/organization.cjs +6 -6
  82. package/dist/apis/organization.js +1 -1
  83. package/dist/apis/partner-directory.cjs +6 -6
  84. package/dist/apis/partner-directory.js +1 -1
  85. package/dist/apis/permissions.cjs +6 -6
  86. package/dist/apis/permissions.js +1 -1
  87. package/dist/apis/pricing-tier.cjs +6 -6
  88. package/dist/apis/pricing-tier.js +1 -1
  89. package/dist/apis/pricing.cjs +6 -6
  90. package/dist/apis/pricing.js +1 -1
  91. package/dist/apis/purpose.cjs +6 -6
  92. package/dist/apis/purpose.js +1 -1
  93. package/dist/apis/query.cjs +6 -6
  94. package/dist/apis/query.js +1 -1
  95. package/dist/apis/sandbox.cjs +6 -6
  96. package/dist/apis/sandbox.js +1 -1
  97. package/dist/apis/sharing.cjs +6 -6
  98. package/dist/apis/sharing.js +1 -1
  99. package/dist/apis/submission.cjs +6 -6
  100. package/dist/apis/submission.js +1 -1
  101. package/dist/apis/target.cjs +6 -6
  102. package/dist/apis/target.js +1 -1
  103. package/dist/apis/targeting.cjs +6 -6
  104. package/dist/apis/targeting.js +1 -1
  105. package/dist/apis/template-variables.cjs +6 -6
  106. package/dist/apis/template-variables.js +1 -1
  107. package/dist/apis/user.cjs +6 -6
  108. package/dist/apis/user.js +1 -1
  109. package/dist/apis/validation-rules.cjs +6 -6
  110. package/dist/apis/validation-rules.js +1 -1
  111. package/dist/apis/webhooks.cjs +8 -8
  112. package/dist/apis/webhooks.d.cts +2 -2
  113. package/dist/apis/webhooks.d.ts +2 -2
  114. package/dist/apis/webhooks.js +2 -2
  115. package/dist/apis/workflow-definition.cjs +6 -6
  116. package/dist/apis/workflow-definition.js +1 -1
  117. package/dist/apis/workflow.cjs +6 -6
  118. package/dist/apis/workflow.js +1 -1
  119. package/dist/app-34OBBTA4.js +7 -0
  120. package/dist/app-SSF545U7.cjs +7 -0
  121. package/dist/app-runtime-AFNM67YN.cjs +5 -0
  122. package/dist/{app-runtime-U7RGV7KT.js → app-runtime-DBUXZL6E.js} +1 -1
  123. package/dist/{app.d-u7Dq42kU.d.cts → app.d--5n0FQQ4.d.cts} +377 -11
  124. package/dist/{app.d-u7Dq42kU.d.ts → app.d--5n0FQQ4.d.ts} +377 -11
  125. package/dist/bin/cli.js +1 -1
  126. package/dist/chunk-5OBMZHRL.cjs +14 -0
  127. package/dist/{chunk-CD4OX2U6.cjs → chunk-C7GDYBXX.cjs} +9 -9
  128. package/dist/{chunk-L66IX6GX.cjs → chunk-KMVJYNLB.cjs} +1 -1
  129. package/dist/chunk-KYCVV2XE.cjs +14 -0
  130. package/dist/chunk-RGO3LTAM.js +14 -0
  131. package/dist/{chunk-TSV242UN.js → chunk-WRD2XFHY.js} +9 -9
  132. package/dist/{chunk-LLZYRINH.js → chunk-Z4H2FZ2K.js} +1 -1
  133. package/dist/chunk-Z6HGUGXK.js +14 -0
  134. package/dist/customer-portal-5I7ZGQDU.cjs +7 -0
  135. package/dist/customer-portal-YL2YMPZL.js +7 -0
  136. package/dist/{customer-portal-runtime-PSM55KGU.js → customer-portal-runtime-N4NWQ67M.js} +1 -1
  137. package/dist/{customer-portal-runtime-DULJLR7F.cjs → customer-portal-runtime-OEXTSMSE.cjs} +2 -2
  138. package/dist/{customer-portal.d-DyZ2n2dW.d.cts → customer-portal.d-ChSEioI5.d.cts} +394 -9
  139. package/dist/{customer-portal.d-DyZ2n2dW.d.ts → customer-portal.d-ChSEioI5.d.ts} +394 -9
  140. package/dist/entity-SS36LQO6.cjs +7 -0
  141. package/dist/entity-Z4YWKDVG.js +7 -0
  142. package/dist/{entity.d-BHR9dEon.d.cts → entity.d-fospShiN.d.cts} +234 -169
  143. package/dist/{entity.d-BHR9dEon.d.ts → entity.d-fospShiN.d.ts} +234 -169
  144. package/dist/index.cjs +14 -14
  145. package/dist/index.d.cts +5 -5
  146. package/dist/index.d.ts +5 -5
  147. package/dist/index.js +4 -4
  148. package/dist/{js-yaml-UPZKYVRY.js → js-yaml-DLCVPJ7G.js} +17 -15
  149. package/dist/notes-K2IIFCX3.cjs +7 -0
  150. package/dist/notes-Q7JGS7O3.js +7 -0
  151. package/dist/{notes.d-BC-scR42.d.ts → notes.d-BcV_m5fe.d.cts} +33 -11
  152. package/dist/{notes.d-BC-scR42.d.cts → notes.d-BcV_m5fe.d.ts} +33 -11
  153. package/dist/{pricing-XAET4G7T.cjs → pricing-FODHQFCB.cjs} +1 -1
  154. package/dist/{pricing-G67CH3XH.js → pricing-XRIDVZFC.js} +1 -1
  155. package/dist/webhooks-NZ3TM3AY.cjs +7 -0
  156. package/dist/webhooks-XLBUXXCS.js +7 -0
  157. package/dist/{webhooks-runtime-EBM4M3SU.cjs → webhooks-runtime-QVAFNBDW.cjs} +2 -2
  158. package/dist/{webhooks-runtime-XCQYIGQK.js → webhooks-runtime-UYTPQQVG.js} +1 -1
  159. package/dist/{webhooks.d-pLHIL_io.d.cts → webhooks.d-D79qib9f.d.cts} +115 -5
  160. package/dist/{webhooks.d-pLHIL_io.d.ts → webhooks.d-D79qib9f.d.ts} +115 -5
  161. package/docs/app.md +244 -9
  162. package/docs/customer-portal.md +340 -113
  163. package/docs/entity.md +65 -0
  164. package/docs/notes.md +19 -12
  165. package/docs/pricing.md +3 -1
  166. package/docs/webhooks.md +49 -0
  167. package/package.json +1 -1
  168. package/dist/app-5KSVSKDU.js +0 -7
  169. package/dist/app-PL3IOROO.cjs +0 -7
  170. package/dist/app-runtime-SSNHSBR7.cjs +0 -5
  171. package/dist/chunk-2MMSXUOL.cjs +0 -14
  172. package/dist/chunk-A7AAVJGM.js +0 -14
  173. package/dist/chunk-GVNT76UU.js +0 -14
  174. package/dist/chunk-HHMXS5NC.cjs +0 -14
  175. package/dist/customer-portal-5LMHNBMD.cjs +0 -7
  176. package/dist/customer-portal-RZACUF4N.js +0 -7
  177. package/dist/entity-H6ESUH3Y.js +0 -7
  178. package/dist/entity-ZVDKWQSF.cjs +0 -7
  179. package/dist/notes-3AO5GXIT.js +0 -7
  180. package/dist/notes-MPWOQC5J.cjs +0 -7
  181. package/dist/webhooks-H3RT33BF.cjs +0 -7
  182. package/dist/webhooks-RTOU3MS5.js +0 -7
@@ -5640,14 +5640,12 @@
5640
5640
  "type": "boolean"
5641
5641
  },
5642
5642
  "edit_mode": {
5643
- "type": "string",
5644
- "description": "Controls how updates to this attribute are handled.\n- `direct` (default): update is applied immediately. No changeset created.\n- `external`: update creates a changeset, auto-cleared on matching external update (e.g. ERP inbound sync via ?direct=true).\n- `approval`: update creates a changeset, requires explicit human approval.\n",
5645
- "enum": [
5646
- "direct",
5647
- "external",
5648
- "approval"
5643
+ "allOf": [
5644
+ {
5645
+ "$ref": "#/components/schemas/EditMode"
5646
+ }
5649
5647
  ],
5650
- "default": "direct"
5648
+ "description": "Controls how updates to this attribute are handled. See the `EditMode`\nschema for the per-mode semantics. Defaults to `direct`.\n"
5651
5649
  },
5652
5650
  "edit_mode_config": {
5653
5651
  "description": "Configuration for auto-clear matching on `edit_mode: external` attributes.\n`match_strategy` and `fuzzy_config` are only consulted for `external` mode —\nthey are ignored for `approval` mode, which resolves via explicit\n`:apply` / `:dismiss` endpoints and never auto-clears.\n",
@@ -7581,7 +7579,7 @@
7581
7579
  "readOnly": true,
7582
7580
  "type": "object",
7583
7581
  "nullable": true,
7584
- "description": "Pending attribute changesets for attributes configured with external or approval edit mode.\nRead-only via normal entity PATCH/PUT operations — cannot be set directly.\nUse the changeset management endpoints to apply or dismiss changesets.\n",
7582
+ "description": "Pending attribute changesets for attributes configured with external or approval edit mode.\n\nThe value shape is `Changeset` (`proposed_value`, `created_at`, `edit_mode`, ...)\nand is what `:apply` / `:dismiss` operate on.\n\nRead-only via normal entity PATCH/PUT operations — those handlers strip `_changesets`\nfrom request bodies. Use the changeset management endpoints to mutate this field.\n",
7585
7583
  "additionalProperties": {
7586
7584
  "$ref": "#/components/schemas/Changeset"
7587
7585
  }
@@ -9771,6 +9769,185 @@
9771
9769
  "$ref": "#/components/schemas/Changeset"
9772
9770
  }
9773
9771
  },
9772
+ "MeterReadingChangesetEntry": {
9773
+ "type": "object",
9774
+ "description": "A meter readings changeset entry — service-managed by metering-api.\nStored on `Meter._meter_readings_changeset` array attribute. Each entry mirrors a\nClickHouse meter reading row plus a changeset metadata overlay.\n\nNote: `org_id` is NOT stored on the entry. The entries live on the Meter entity,\nwhich is already org-scoped (`_org`). Round-tripping it would only invite drift;\ndownstream consumers receive the org from the meter / handler context.\n",
9775
+ "required": [
9776
+ "changeset_id",
9777
+ "meter_id",
9778
+ "counter_id",
9779
+ "value",
9780
+ "edit_mode",
9781
+ "created_at"
9782
+ ],
9783
+ "properties": {
9784
+ "value": {
9785
+ "type": "number"
9786
+ },
9787
+ "direction": {
9788
+ "type": "string",
9789
+ "enum": [
9790
+ "feed-in",
9791
+ "feed-out"
9792
+ ]
9793
+ },
9794
+ "timestamp": {
9795
+ "type": "string",
9796
+ "format": "date-time"
9797
+ },
9798
+ "meter_id": {
9799
+ "type": "string",
9800
+ "format": "uuid"
9801
+ },
9802
+ "counter_id": {
9803
+ "type": "string",
9804
+ "format": "uuid"
9805
+ },
9806
+ "source": {
9807
+ "type": "string"
9808
+ },
9809
+ "reason": {
9810
+ "type": "string"
9811
+ },
9812
+ "read_by": {
9813
+ "type": "string"
9814
+ },
9815
+ "status": {
9816
+ "type": "string",
9817
+ "enum": [
9818
+ "valid",
9819
+ "in-validation",
9820
+ "implausible"
9821
+ ]
9822
+ },
9823
+ "external_id": {
9824
+ "type": "string"
9825
+ },
9826
+ "remark": {
9827
+ "type": "string"
9828
+ },
9829
+ "metadata": {
9830
+ "type": "object",
9831
+ "additionalProperties": {
9832
+ "type": "string"
9833
+ }
9834
+ },
9835
+ "changeset_id": {
9836
+ "type": "string",
9837
+ "description": "Unique changeset identifier (UUID v4)."
9838
+ },
9839
+ "edit_mode": {
9840
+ "type": "string",
9841
+ "enum": [
9842
+ "external",
9843
+ "approval"
9844
+ ]
9845
+ },
9846
+ "match_strategy": {
9847
+ "type": "string",
9848
+ "enum": [
9849
+ "exact",
9850
+ "fuzzy"
9851
+ ]
9852
+ },
9853
+ "timestamp_tolerance": {
9854
+ "description": "Slack on `reading.timestamp` when metering-api auto-clear matches an\nincoming reading against this pending changeset.\n\nVariants:\n- `'exact'`: strict millisecond equality.\n- `{ type: 'same-day', timezone? }`: strip the time component and\n compare year-month-day. Optional `timezone` is an IANA name\n (e.g. `'Europe/Berlin'`); the day is bucketed in that zone.\n Defaults to UTC when omitted.\n- `{ type: 'within-seconds', seconds }`: symmetric ±N-second window.\n",
9855
+ "oneOf": [
9856
+ {
9857
+ "type": "string",
9858
+ "enum": [
9859
+ "exact"
9860
+ ]
9861
+ },
9862
+ {
9863
+ "type": "object",
9864
+ "required": [
9865
+ "type"
9866
+ ],
9867
+ "properties": {
9868
+ "type": {
9869
+ "type": "string",
9870
+ "enum": [
9871
+ "same-day"
9872
+ ]
9873
+ },
9874
+ "timezone": {
9875
+ "type": "string",
9876
+ "description": "IANA timezone identifier (e.g. `'Europe/Berlin'`, `'UTC'`).\nWhen omitted, the day is bucketed in UTC.\n"
9877
+ }
9878
+ }
9879
+ },
9880
+ {
9881
+ "type": "object",
9882
+ "required": [
9883
+ "type",
9884
+ "seconds"
9885
+ ],
9886
+ "properties": {
9887
+ "type": {
9888
+ "type": "string",
9889
+ "enum": [
9890
+ "within-seconds"
9891
+ ]
9892
+ },
9893
+ "seconds": {
9894
+ "type": "integer",
9895
+ "minimum": 0,
9896
+ "description": "Tolerance in seconds. e.g. 60 = ±1 minute, 3600 = ±1 hour."
9897
+ }
9898
+ }
9899
+ }
9900
+ ]
9901
+ },
9902
+ "fuzzy_config": {
9903
+ "type": "object",
9904
+ "properties": {
9905
+ "percentage_threshold": {
9906
+ "type": "number"
9907
+ },
9908
+ "absolute_threshold": {
9909
+ "type": "number"
9910
+ }
9911
+ }
9912
+ },
9913
+ "created_at": {
9914
+ "type": "string",
9915
+ "format": "date-time"
9916
+ },
9917
+ "created_by": {
9918
+ "$ref": "#/components/schemas/ChangesetCreator"
9919
+ },
9920
+ "previous": {
9921
+ "type": "object",
9922
+ "properties": {
9923
+ "value": {
9924
+ "type": "number"
9925
+ },
9926
+ "direction": {
9927
+ "type": "string",
9928
+ "enum": [
9929
+ "feed-in",
9930
+ "feed-out"
9931
+ ]
9932
+ },
9933
+ "timestamp": {
9934
+ "type": "string",
9935
+ "format": "date-time"
9936
+ }
9937
+ }
9938
+ }
9939
+ }
9940
+ },
9941
+ "EditMode": {
9942
+ "type": "string",
9943
+ "description": "Controls whether a write goes through immediately or is held as a pending entry\non the parent entity's `_changesets` map.\n\n- `direct`: write applied immediately. No changeset created.\n- `external`: write held as a pending changeset; auto-cleared on a matching direct/ERP write.\n- `approval`: write held as a pending changeset; requires explicit human apply/dismiss.\n\nUsed at two levels: per-attribute (entity-attribute changesets) and per-capability\n(currently the `meter_readings` capability on the Meter schema, gating reading submissions).\n",
9944
+ "enum": [
9945
+ "direct",
9946
+ "external",
9947
+ "approval"
9948
+ ],
9949
+ "default": "direct"
9950
+ },
9774
9951
  "EditModeConfig": {
9775
9952
  "type": "object",
9776
9953
  "description": "Configuration for `edit_mode: external` auto-clear matching.\nFields here (`match_strategy`, `fuzzy_config`) only take effect when\n`edit_mode` is `external`. They are ignored for `edit_mode: approval`,\nwhich never auto-clears and is resolved exclusively via the\n`:apply` / `:dismiss` changeset endpoints.\n",
@@ -1 +1 @@
1
- {"s":"https://webhooks.sls.epilot.io","o":[["getPublicKey","get","/v1/webhooks/.well-known/public-key",[["orgId","q",true]]],["getConfiguredEvents","get","/v1/webhooks/configured-events"],["getConfigs","get","/v1/webhooks/configs",[["eventName","q"]]],["createConfig","post","/v1/webhooks/configs",null,1],["getConfig","get","/v1/webhooks/configs/{configId}",[["configId","p",true]]],["updateConfig","put","/v1/webhooks/configs/{configId}",[["configId","p",true]],1],["deleteConfig","delete","/v1/webhooks/configs/{configId}",[["configId","p",true]]],["triggerWebhook","post","/v1/webhooks/configs/{configId}/trigger",[["sync","q"],["configId","p",true]],1],["getWehookEvents","get","/v1/webhooks/configs/{configId}/events",[["configId","p",true],["status","q"],["cursor","q"]]],["batchReplayEvents","post","/v1/webhooks/configs/{configId}/events/replay-batch",[["configId","p",true]],1],["getEventById","get","/v1/webhooks/configs/{configId}/events/{eventId}",[["configId","p",true],["eventId","p",true]]],["replayEvent","post","/v1/webhooks/configs/{configId}/events/{eventId}/replay",[["configId","p",true],["eventId","p",true]]],["getWebhookExample","post","/v1/webhooks/configs/{configId}/example",[["configId","p",true]],1],["getWebhookEventsV2","post","/v2/webhooks/configs/{configId}/events",[["configId","p",true]],1]],"v":"3.0.0"}
1
+ {"s":"https://webhooks.sls.epilot.io","o":[["getPublicKey","get","/v1/webhooks/.well-known/public-key",[["orgId","q",true]]],["getConfiguredEvents","get","/v1/webhooks/configured-events"],["getConfigs","get","/v1/webhooks/configs",[["eventName","q"]]],["createConfig","post","/v1/webhooks/configs",null,1],["getConfig","get","/v1/webhooks/configs/{configId}",[["configId","p",true]]],["updateConfig","put","/v1/webhooks/configs/{configId}",[["configId","p",true]],1],["deleteConfig","delete","/v1/webhooks/configs/{configId}",[["configId","p",true]]],["testOAuth","post","/v1/webhooks/configs/{configId}/test-oauth",[["configId","p",true]]],["triggerWebhook","post","/v1/webhooks/configs/{configId}/trigger",[["sync","q"],["configId","p",true]],1],["getWehookEvents","get","/v1/webhooks/configs/{configId}/events",[["configId","p",true],["status","q"],["cursor","q"]]],["batchReplayEvents","post","/v1/webhooks/configs/{configId}/events/replay-batch",[["configId","p",true]],1],["getEventById","get","/v1/webhooks/configs/{configId}/events/{eventId}",[["configId","p",true],["eventId","p",true]]],["replayEvent","post","/v1/webhooks/configs/{configId}/events/{eventId}/replay",[["configId","p",true],["eventId","p",true]]],["getWebhookExample","post","/v1/webhooks/configs/{configId}/example",[["configId","p",true]],1],["getWebhookEventsV2","post","/v2/webhooks/configs/{configId}/events",[["configId","p",true]],1]],"v":"3.0.0"}
@@ -355,6 +355,70 @@
355
355
  }
356
356
  }
357
357
  },
358
+ "/v1/webhooks/configs/{configId}/test-oauth": {
359
+ "post": {
360
+ "operationId": "testOAuth",
361
+ "summary": "Test OAuth connection",
362
+ "description": "Tests the OAuth client credentials configuration for a saved webhook by attempting\na token exchange against the configured OAuth endpoint. Returns success with token\nmetadata (e.g. expires_in, token_type) or an error describing why the exchange failed.\nDoes not send the actual webhook.\n",
363
+ "tags": [
364
+ "webhooks"
365
+ ],
366
+ "parameters": [
367
+ {
368
+ "in": "path",
369
+ "name": "configId",
370
+ "schema": {
371
+ "type": "string"
372
+ },
373
+ "required": true,
374
+ "description": "Short uuid to identify the webhook configuration.",
375
+ "example": "7hj28aasgag2gha2"
376
+ }
377
+ ],
378
+ "responses": {
379
+ "200": {
380
+ "description": "OAuth token exchange succeeded",
381
+ "content": {
382
+ "application/json": {
383
+ "schema": {
384
+ "$ref": "#/components/schemas/TestOAuthResponse"
385
+ }
386
+ }
387
+ }
388
+ },
389
+ "400": {
390
+ "description": "Webhook does not use OAuth or configuration is invalid",
391
+ "content": {
392
+ "application/json": {
393
+ "schema": {
394
+ "$ref": "#/components/schemas/ErrorResp"
395
+ }
396
+ }
397
+ }
398
+ },
399
+ "404": {
400
+ "description": "No config found",
401
+ "content": {
402
+ "application/json": {
403
+ "schema": {
404
+ "$ref": "#/components/schemas/ErrorResp"
405
+ }
406
+ }
407
+ }
408
+ },
409
+ "500": {
410
+ "description": "OAuth token exchange failed",
411
+ "content": {
412
+ "application/json": {
413
+ "schema": {
414
+ "$ref": "#/components/schemas/ErrorResp"
415
+ }
416
+ }
417
+ }
418
+ }
419
+ }
420
+ }
421
+ },
358
422
  "/v1/webhooks/configs/{configId}/trigger": {
359
423
  "post": {
360
424
  "operationId": "triggerWebhook",
@@ -1118,7 +1182,9 @@
1118
1182
  "type": "string"
1119
1183
  },
1120
1184
  "password": {
1121
- "type": "string"
1185
+ "type": "string",
1186
+ "nullable": true,
1187
+ "description": "On update: omit to preserve existing, pass null to explicitly clear, pass string to set new value.\n"
1122
1188
  },
1123
1189
  "passwordIsEnvVar": {
1124
1190
  "type": "boolean",
@@ -1137,7 +1203,9 @@
1137
1203
  "type": "string"
1138
1204
  },
1139
1205
  "clientSecret": {
1140
- "type": "string"
1206
+ "type": "string",
1207
+ "nullable": true,
1208
+ "description": "On update: omit to preserve existing, pass null to explicitly clear, pass string to set new value.\n"
1141
1209
  },
1142
1210
  "clientSecretIsEnvVar": {
1143
1211
  "type": "boolean",
@@ -1171,7 +1239,9 @@
1171
1239
  "type": "string"
1172
1240
  },
1173
1241
  "keyValue": {
1174
- "type": "string"
1242
+ "type": "string",
1243
+ "nullable": true,
1244
+ "description": "On update: omit to preserve existing, pass null to explicitly clear, pass string to set new value.\n"
1175
1245
  },
1176
1246
  "keyValueIsEnvVar": {
1177
1247
  "type": "boolean",
@@ -1200,7 +1270,12 @@
1200
1270
  },
1201
1271
  "creationTime": {
1202
1272
  "type": "string",
1203
- "description": "creation timestamp",
1273
+ "description": "Timestamp the webhook was first created. Immutable after creation.",
1274
+ "example": "2021-04-27T12:01:13.000Z"
1275
+ },
1276
+ "updatedTime": {
1277
+ "type": "string",
1278
+ "description": "Timestamp of the most recent update to the webhook. Equals creationTime for never-edited webhooks. May be absent on legacy records written before this field was introduced.",
1204
1279
  "example": "2021-04-27T12:01:13.000Z"
1205
1280
  },
1206
1281
  "httpMethod": {
@@ -1254,6 +1329,28 @@
1254
1329
  "type": "string",
1255
1330
  "description": "JSONata expression to transform the payload"
1256
1331
  },
1332
+ "deliveryMode": {
1333
+ "type": "string",
1334
+ "enum": [
1335
+ "json_base64",
1336
+ "binary_multipart"
1337
+ ],
1338
+ "description": "Controls how file data is delivered to the endpoint. Only relevant when the webhook is triggered by a file event. Absent for non-file-event webhooks."
1339
+ },
1340
+ "multipartConfig": {
1341
+ "type": "object",
1342
+ "description": "Configuration for binary_multipart delivery mode. Specifies the field names used in the multipart form data request.",
1343
+ "properties": {
1344
+ "fileFieldName": {
1345
+ "type": "string",
1346
+ "description": "The name of the form field containing the file binary data."
1347
+ },
1348
+ "metadataFieldName": {
1349
+ "type": "string",
1350
+ "description": "The name of the form field containing the JSON metadata payload."
1351
+ }
1352
+ }
1353
+ },
1257
1354
  "filterConditions": {
1258
1355
  "$ref": "#/components/schemas/WebhookConditionGroup"
1259
1356
  },
@@ -1383,6 +1480,10 @@
1383
1480
  "include_changed_attributes": {
1384
1481
  "type": "boolean"
1385
1482
  },
1483
+ "apply_changesets": {
1484
+ "type": "boolean",
1485
+ "description": "When true, entity fields show proposed changeset values instead of current values"
1486
+ },
1386
1487
  "custom_headers": {
1387
1488
  "$ref": "#/components/schemas/CustomHeader"
1388
1489
  }
@@ -1590,6 +1691,35 @@
1590
1691
  },
1591
1692
  "additionalProperties": true
1592
1693
  },
1694
+ "TestOAuthResponse": {
1695
+ "type": "object",
1696
+ "properties": {
1697
+ "success": {
1698
+ "type": "boolean",
1699
+ "description": "Whether the OAuth token exchange succeeded",
1700
+ "example": true
1701
+ },
1702
+ "expires_in": {
1703
+ "type": "number",
1704
+ "description": "Token validity in seconds as reported by the OAuth provider",
1705
+ "example": 3600
1706
+ },
1707
+ "token_type": {
1708
+ "type": "string",
1709
+ "description": "Token type returned by the OAuth provider",
1710
+ "example": "Bearer"
1711
+ },
1712
+ "message": {
1713
+ "type": "string",
1714
+ "description": "Human-readable result message",
1715
+ "example": "OAuth token exchange successful"
1716
+ }
1717
+ },
1718
+ "required": [
1719
+ "success",
1720
+ "message"
1721
+ ]
1722
+ },
1593
1723
  "BatchReplayRequest": {
1594
1724
  "type": "object",
1595
1725
  "properties": {
@@ -6,25 +6,25 @@ var _chunkOXJOO2YFcjs = require('../chunk-OXJOO2YF.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkCD4OX2U6cjs = require('../chunk-CD4OX2U6.cjs');
9
+ var _chunkC7GDYBXXcjs = require('../chunk-C7GDYBXX.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/access-token.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkOXJOO2YFcjs.require_access_token_runtime.call(void 0, );
15
- return _chunkCD4OX2U6cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkC7GDYBXXcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunkCD4OX2U6cjs.createApiClient.call(void 0, { definition: def, apiName: "accessToken" });
21
+ _instance = _chunkC7GDYBXXcjs.createApiClient.call(void 0, { definition: def, apiName: "accessToken" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunkCD4OX2U6cjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkC7GDYBXXcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunkCD4OX2U6cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "accessToken" }),
27
+ createClient: () => _chunkC7GDYBXXcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "accessToken" }),
28
28
  apiName: "accessToken"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var accessToken = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.accessToken = accessToken; exports.authorize = _chunkCD4OX2U6cjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
38
+ exports.accessToken = accessToken; exports.authorize = _chunkC7GDYBXXcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-TSV242UN.js";
9
+ } from "../chunk-WRD2XFHY.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/access-token.ts
@@ -6,25 +6,25 @@ var _chunkLKRBFBFNcjs = require('../chunk-LKRBFBFN.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkCD4OX2U6cjs = require('../chunk-CD4OX2U6.cjs');
9
+ var _chunkC7GDYBXXcjs = require('../chunk-C7GDYBXX.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/address-suggestions.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkLKRBFBFNcjs.require_address_suggestions_runtime.call(void 0, );
15
- return _chunkCD4OX2U6cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkC7GDYBXXcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunkCD4OX2U6cjs.createApiClient.call(void 0, { definition: def, apiName: "addressSuggestions" });
21
+ _instance = _chunkC7GDYBXXcjs.createApiClient.call(void 0, { definition: def, apiName: "addressSuggestions" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunkCD4OX2U6cjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkC7GDYBXXcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunkCD4OX2U6cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "addressSuggestions" }),
27
+ createClient: () => _chunkC7GDYBXXcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "addressSuggestions" }),
28
28
  apiName: "addressSuggestions"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var addressSuggestions = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.addressSuggestions = addressSuggestions; exports.authorize = _chunkCD4OX2U6cjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
38
+ exports.addressSuggestions = addressSuggestions; exports.authorize = _chunkC7GDYBXXcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-TSV242UN.js";
9
+ } from "../chunk-WRD2XFHY.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/address-suggestions.ts
@@ -6,25 +6,25 @@ var _chunkT67ZXTVGcjs = require('../chunk-T67ZXTVG.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkCD4OX2U6cjs = require('../chunk-CD4OX2U6.cjs');
9
+ var _chunkC7GDYBXXcjs = require('../chunk-C7GDYBXX.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/address.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkT67ZXTVGcjs.require_address_runtime.call(void 0, );
15
- return _chunkCD4OX2U6cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkC7GDYBXXcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunkCD4OX2U6cjs.createApiClient.call(void 0, { definition: def, apiName: "address" });
21
+ _instance = _chunkC7GDYBXXcjs.createApiClient.call(void 0, { definition: def, apiName: "address" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunkCD4OX2U6cjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkC7GDYBXXcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunkCD4OX2U6cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "address" }),
27
+ createClient: () => _chunkC7GDYBXXcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "address" }),
28
28
  apiName: "address"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var address = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.address = address; exports.authorize = _chunkCD4OX2U6cjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
38
+ exports.address = address; exports.authorize = _chunkC7GDYBXXcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-TSV242UN.js";
9
+ } from "../chunk-WRD2XFHY.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/address.ts
@@ -6,25 +6,25 @@ var _chunkFARDEGPHcjs = require('../chunk-FARDEGPH.cjs');
6
6
 
7
7
 
8
8
 
9
- var _chunkCD4OX2U6cjs = require('../chunk-CD4OX2U6.cjs');
9
+ var _chunkC7GDYBXXcjs = require('../chunk-C7GDYBXX.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/ai-agents.ts
13
13
  var loadDefinition = () => {
14
14
  const mod = _chunkFARDEGPHcjs.require_ai_agents_runtime.call(void 0, );
15
- return _chunkCD4OX2U6cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
15
+ return _chunkC7GDYBXXcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunkCD4OX2U6cjs.createApiClient.call(void 0, { definition: def, apiName: "aiAgents" });
21
+ _instance = _chunkC7GDYBXXcjs.createApiClient.call(void 0, { definition: def, apiName: "aiAgents" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunkCD4OX2U6cjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkC7GDYBXXcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunkCD4OX2U6cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "aiAgents" }),
27
+ createClient: () => _chunkC7GDYBXXcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "aiAgents" }),
28
28
  apiName: "aiAgents"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var aiAgents = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.aiAgents = aiAgents; exports.authorize = _chunkCD4OX2U6cjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
38
+ exports.aiAgents = aiAgents; exports.authorize = _chunkC7GDYBXXcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
@@ -6,7 +6,7 @@ import {
6
6
  createApiClient,
7
7
  createApiHandle,
8
8
  expand
9
- } from "../chunk-TSV242UN.js";
9
+ } from "../chunk-WRD2XFHY.js";
10
10
  import "../chunk-YPSWSI3M.js";
11
11
 
12
12
  // src/apis/ai-agents.ts
package/dist/apis/app.cjs CHANGED
@@ -1,30 +1,30 @@
1
1
  "use strict";Object.defineProperty(exports, "__esModule", {value: true}); function _nullishCoalesce(lhs, rhsFn) { if (lhs != null) { return lhs; } else { return rhsFn(); } }
2
2
 
3
- var _chunkL66IX6GXcjs = require('../chunk-L66IX6GX.cjs');
3
+ var _chunkKMVJYNLBcjs = require('../chunk-KMVJYNLB.cjs');
4
4
 
5
5
 
6
6
 
7
7
 
8
8
 
9
- var _chunkCD4OX2U6cjs = require('../chunk-CD4OX2U6.cjs');
9
+ var _chunkC7GDYBXXcjs = require('../chunk-C7GDYBXX.cjs');
10
10
  require('../chunk-NJK5F5TF.cjs');
11
11
 
12
12
  // src/apis/app.ts
13
13
  var loadDefinition = () => {
14
- const mod = _chunkL66IX6GXcjs.require_app_runtime.call(void 0, );
15
- return _chunkCD4OX2U6cjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
14
+ const mod = _chunkKMVJYNLBcjs.require_app_runtime.call(void 0, );
15
+ return _chunkC7GDYBXXcjs.expand.call(void 0, _nullishCoalesce(mod.default, () => ( mod)));
16
16
  };
17
17
  var _instance = null;
18
18
  var resolve = () => {
19
19
  if (!_instance) {
20
20
  const def = loadDefinition();
21
- _instance = _chunkCD4OX2U6cjs.createApiClient.call(void 0, { definition: def, apiName: "app" });
21
+ _instance = _chunkC7GDYBXXcjs.createApiClient.call(void 0, { definition: def, apiName: "app" });
22
22
  }
23
23
  return _instance;
24
24
  };
25
- var _handle = _chunkCD4OX2U6cjs.createApiHandle.call(void 0, {
25
+ var _handle = _chunkC7GDYBXXcjs.createApiHandle.call(void 0, {
26
26
  resolveClient: resolve,
27
- createClient: () => _chunkCD4OX2U6cjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "app" }),
27
+ createClient: () => _chunkC7GDYBXXcjs.createApiClient.call(void 0, { definition: loadDefinition(), apiName: "app" }),
28
28
  apiName: "app"
29
29
  });
30
30
  var getClient = _handle.getClient;
@@ -35,4 +35,4 @@ var app = _handle;
35
35
 
36
36
 
37
37
 
38
- exports.app = app; exports.authorize = _chunkCD4OX2U6cjs.authorize; exports.createClient = createClient; exports.getClient = getClient;
38
+ exports.app = app; exports.authorize = _chunkC7GDYBXXcjs.authorize; exports.createClient = createClient; exports.getClient = getClient;