@oursprivacy/platform-sdk 1.12.0 → 1.14.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 (152) hide show
  1. package/CHANGELOG.md +24 -0
  2. package/README.md +35 -0
  3. package/client.d.mts +32 -14
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +32 -14
  6. package/client.d.ts.map +1 -1
  7. package/client.js +26 -4
  8. package/client.js.map +1 -1
  9. package/client.mjs +26 -4
  10. package/client.mjs.map +1 -1
  11. package/core/pagination.d.mts +60 -0
  12. package/core/pagination.d.mts.map +1 -0
  13. package/core/pagination.d.ts +60 -0
  14. package/core/pagination.d.ts.map +1 -0
  15. package/core/pagination.js +101 -0
  16. package/core/pagination.js.map +1 -0
  17. package/core/pagination.mjs +95 -0
  18. package/core/pagination.mjs.map +1 -0
  19. package/index.d.mts +1 -0
  20. package/index.d.mts.map +1 -1
  21. package/index.d.ts +1 -0
  22. package/index.d.ts.map +1 -1
  23. package/index.js +3 -1
  24. package/index.js.map +1 -1
  25. package/index.mjs +1 -0
  26. package/index.mjs.map +1 -1
  27. package/package.json +11 -1
  28. package/pagination.d.mts +2 -0
  29. package/pagination.d.mts.map +1 -0
  30. package/pagination.d.ts +2 -0
  31. package/pagination.d.ts.map +1 -0
  32. package/pagination.js +6 -0
  33. package/pagination.js.map +1 -0
  34. package/pagination.mjs +2 -0
  35. package/pagination.mjs.map +1 -0
  36. package/resources/allowed-events.d.mts +18 -18
  37. package/resources/allowed-events.d.mts.map +1 -1
  38. package/resources/allowed-events.d.ts +18 -18
  39. package/resources/allowed-events.d.ts.map +1 -1
  40. package/resources/allowed-events.js +7 -7
  41. package/resources/allowed-events.js.map +1 -1
  42. package/resources/allowed-events.mjs +7 -7
  43. package/resources/allowed-events.mjs.map +1 -1
  44. package/resources/consent-settings.d.mts +2568 -124
  45. package/resources/consent-settings.d.mts.map +1 -1
  46. package/resources/consent-settings.d.ts +2568 -124
  47. package/resources/consent-settings.d.ts.map +1 -1
  48. package/resources/consent-settings.js +24 -7
  49. package/resources/consent-settings.js.map +1 -1
  50. package/resources/consent-settings.mjs +24 -7
  51. package/resources/consent-settings.mjs.map +1 -1
  52. package/resources/destinations.d.mts +33 -32
  53. package/resources/destinations.d.mts.map +1 -1
  54. package/resources/destinations.d.ts +33 -32
  55. package/resources/destinations.d.ts.map +1 -1
  56. package/resources/destinations.js +8 -7
  57. package/resources/destinations.js.map +1 -1
  58. package/resources/destinations.mjs +8 -7
  59. package/resources/destinations.mjs.map +1 -1
  60. package/resources/experiment-settings.d.mts +277 -0
  61. package/resources/experiment-settings.d.mts.map +1 -0
  62. package/resources/experiment-settings.d.ts +277 -0
  63. package/resources/experiment-settings.d.ts.map +1 -0
  64. package/resources/experiment-settings.js +77 -0
  65. package/resources/experiment-settings.js.map +1 -0
  66. package/resources/experiment-settings.mjs +73 -0
  67. package/resources/experiment-settings.mjs.map +1 -0
  68. package/resources/experiment-variants.d.mts +653 -0
  69. package/resources/experiment-variants.d.mts.map +1 -0
  70. package/resources/experiment-variants.d.ts +653 -0
  71. package/resources/experiment-variants.d.ts.map +1 -0
  72. package/resources/experiment-variants.js +86 -0
  73. package/resources/experiment-variants.js.map +1 -0
  74. package/resources/experiment-variants.mjs +82 -0
  75. package/resources/experiment-variants.mjs.map +1 -0
  76. package/resources/experiments.d.mts +2002 -0
  77. package/resources/experiments.d.mts.map +1 -0
  78. package/resources/experiments.d.ts +2002 -0
  79. package/resources/experiments.d.ts.map +1 -0
  80. package/resources/experiments.js +166 -0
  81. package/resources/experiments.js.map +1 -0
  82. package/resources/experiments.mjs +162 -0
  83. package/resources/experiments.mjs.map +1 -0
  84. package/resources/global-dispatch-centers.d.mts +125 -58
  85. package/resources/global-dispatch-centers.d.mts.map +1 -1
  86. package/resources/global-dispatch-centers.d.ts +125 -58
  87. package/resources/global-dispatch-centers.d.ts.map +1 -1
  88. package/resources/global-dispatch-centers.js +10 -7
  89. package/resources/global-dispatch-centers.js.map +1 -1
  90. package/resources/global-dispatch-centers.mjs +10 -7
  91. package/resources/global-dispatch-centers.mjs.map +1 -1
  92. package/resources/index.d.mts +11 -7
  93. package/resources/index.d.mts.map +1 -1
  94. package/resources/index.d.ts +11 -7
  95. package/resources/index.d.ts.map +1 -1
  96. package/resources/index.js +9 -1
  97. package/resources/index.js.map +1 -1
  98. package/resources/index.mjs +4 -0
  99. package/resources/index.mjs.map +1 -1
  100. package/resources/mappings.d.mts +138 -0
  101. package/resources/mappings.d.mts.map +1 -0
  102. package/resources/mappings.d.ts +138 -0
  103. package/resources/mappings.d.ts.map +1 -0
  104. package/resources/mappings.js +45 -0
  105. package/resources/mappings.js.map +1 -0
  106. package/resources/mappings.mjs +41 -0
  107. package/resources/mappings.mjs.map +1 -0
  108. package/resources/replay-settings.d.mts +48 -48
  109. package/resources/replay-settings.d.mts.map +1 -1
  110. package/resources/replay-settings.d.ts +48 -48
  111. package/resources/replay-settings.d.ts.map +1 -1
  112. package/resources/replay-settings.js +13 -8
  113. package/resources/replay-settings.js.map +1 -1
  114. package/resources/replay-settings.mjs +13 -8
  115. package/resources/replay-settings.mjs.map +1 -1
  116. package/resources/sources.d.mts +64 -27
  117. package/resources/sources.d.mts.map +1 -1
  118. package/resources/sources.d.ts +64 -27
  119. package/resources/sources.d.ts.map +1 -1
  120. package/resources/sources.js +14 -7
  121. package/resources/sources.js.map +1 -1
  122. package/resources/sources.mjs +14 -7
  123. package/resources/sources.mjs.map +1 -1
  124. package/resources/versions.d.mts +742 -16
  125. package/resources/versions.d.mts.map +1 -1
  126. package/resources/versions.d.ts +742 -16
  127. package/resources/versions.d.ts.map +1 -1
  128. package/resources/versions.js +45 -5
  129. package/resources/versions.js.map +1 -1
  130. package/resources/versions.mjs +45 -5
  131. package/resources/versions.mjs.map +1 -1
  132. package/src/client.ts +210 -29
  133. package/src/core/pagination.ts +165 -0
  134. package/src/index.ts +1 -0
  135. package/src/pagination.ts +2 -0
  136. package/src/resources/allowed-events.ts +27 -27
  137. package/src/resources/consent-settings.ts +3036 -244
  138. package/src/resources/destinations.ts +128 -127
  139. package/src/resources/experiment-settings.ts +367 -0
  140. package/src/resources/experiment-variants.ts +868 -0
  141. package/src/resources/experiments.ts +2446 -0
  142. package/src/resources/global-dispatch-centers.ts +155 -65
  143. package/src/resources/index.ts +77 -7
  144. package/src/resources/mappings.ts +236 -0
  145. package/src/resources/replay-settings.ts +67 -59
  146. package/src/resources/sources.ts +116 -71
  147. package/src/resources/versions.ts +1130 -17
  148. package/src/version.ts +1 -1
  149. package/version.d.mts +1 -1
  150. package/version.d.ts +1 -1
  151. package/version.js +1 -1
  152. package/version.mjs +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"global-dispatch-centers.js","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;OAEG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AA1CD,sDA0CC"}
1
+ {"version":3,"file":"global-dispatch-centers.js","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,qBAAsB,SAAQ,sBAAW;IACpD;;;OAGG;IACH,IAAI,CACF,QAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,kCAAkC,EAClC,CAAA,mBAAwC,CAAA,EACxC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF;AAnDD,sDAmDC"}
@@ -1,7 +1,15 @@
1
1
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
2
  import { APIResource } from "../core/resource.mjs";
3
+ import { Cursor } from "../core/pagination.mjs";
3
4
  import { path } from "../internal/utils/path.mjs";
4
5
  export class GlobalDispatchCenters extends APIResource {
6
+ /**
7
+ * List global dispatch centers for this account. Supports cursor pagination via
8
+ * `limit` and `cursor`. Requires scope: globalDispatch:list
9
+ */
10
+ list(query = {}, options) {
11
+ return this._client.getAPIList('/rest/v1/global-dispatch-centers', (Cursor), { query, ...options });
12
+ }
5
13
  /**
6
14
  * Create a new global dispatch center. Requires scope: globalDispatch:create
7
15
  */
@@ -15,17 +23,12 @@ export class GlobalDispatchCenters extends APIResource {
15
23
  return this._client.get(path `/rest/v1/global-dispatch-centers/${id}`, options);
16
24
  }
17
25
  /**
18
- * Update a global dispatch center. Requires scope: globalDispatch:update
26
+ * Partially update a global dispatch center. Only the fields you send are changed.
27
+ * Requires scope: globalDispatch:update
19
28
  */
20
29
  update(id, body, options) {
21
30
  return this._client.patch(path `/rest/v1/global-dispatch-centers/${id}`, { body, ...options });
22
31
  }
23
- /**
24
- * List all global dispatch centers. Requires scope: globalDispatch:list
25
- */
26
- list(options) {
27
- return this._client.get('/rest/v1/global-dispatch-centers', options);
28
- }
29
32
  /**
30
33
  * Delete a global dispatch center. Requires scope: globalDispatch:delete
31
34
  */
@@ -1 +1 @@
1
- {"version":3,"file":"global-dispatch-centers.mjs","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAGf,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;OAEG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,kCAAkC,EAAE,OAAO,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF"}
1
+ {"version":3,"file":"global-dispatch-centers.mjs","sourceRoot":"","sources":["../src/resources/global-dispatch-centers.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,qBAAsB,SAAQ,WAAW;IACpD;;;OAGG;IACH,IAAI,CACF,QAA2D,EAAE,EAC7D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAC5B,kCAAkC,EAClC,CAAA,MAAwC,CAAA,EACxC,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CACtB,CAAC;IACJ,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,kCAAkC,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACrF,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACjF,CAAC;IAED;;;OAGG;IACH,MAAM,CACJ,EAAU,EACV,IAAsC,EACtC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAChG,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,oCAAoC,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACpF,CAAC;CACF"}
@@ -1,8 +1,12 @@
1
- export { AllowedEvents, type AllowedEventCreateResponse, type AllowedEventRetrieveResponse, type AllowedEventListResponse, type AllowedEventDeleteResponse, type AllowedEventCreateParams, } from "./allowed-events.mjs";
2
- export { ConsentSettings, type ConsentSettingCreateResponse, type ConsentSettingRetrieveResponse, type ConsentSettingUpdateResponse, type ConsentSettingListResponse, type ConsentSettingDeleteResponse, type ConsentSettingUpdateParams, } from "./consent-settings.mjs";
3
- export { Destinations, type DestinationCreateResponse, type DestinationRetrieveResponse, type DestinationUpdateResponse, type DestinationListResponse, type DestinationDeleteResponse, type DestinationCreateParams, type DestinationUpdateParams, } from "./destinations.mjs";
4
- export { GlobalDispatchCenters, type GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams, } from "./global-dispatch-centers.mjs";
5
- export { ReplaySettings, type ReplaySettingCreateResponse, type ReplaySettingRetrieveResponse, type ReplaySettingUpdateResponse, type ReplaySettingListResponse, type ReplaySettingDeleteResponse, type ReplaySettingCreateParams, type ReplaySettingUpdateParams, } from "./replay-settings.mjs";
6
- export { Sources, type SourceCreateResponse, type SourceRetrieveResponse, type SourceUpdateResponse, type SourceListResponse, type SourceDeleteResponse, type SourceCreateParams, type SourceUpdateParams, } from "./sources.mjs";
7
- export { Versions, type VersionCreateResponse, type VersionRetrieveResponse, type VersionUpdateResponse, type VersionListResponse, type VersionCreateParams, type VersionUpdateParams, } from "./versions.mjs";
1
+ export { AllowedEvents, type AllowedEventListResponse, type AllowedEventCreateResponse, type AllowedEventRetrieveResponse, type AllowedEventDeleteResponse, type AllowedEventCreateParams, } from "./allowed-events.mjs";
2
+ export { ConsentSettings, type ConsentSettingListResponse, type ConsentSettingCreateResponse, type ConsentSettingRetrieveResponse, type ConsentSettingReplaceResponse, type ConsentSettingUpdateResponse, type ConsentSettingDeleteResponse, type ConsentSettingReplaceParams, type ConsentSettingUpdateParams, } from "./consent-settings.mjs";
3
+ export { Destinations, type DestinationListResponse, type DestinationCreateResponse, type DestinationRetrieveResponse, type DestinationUpdateResponse, type DestinationDeleteResponse, type DestinationCreateParams, type DestinationUpdateParams, } from "./destinations.mjs";
4
+ export { ExperimentSettings, type ExperimentSettingListResponse, type ExperimentSettingCreateResponse, type ExperimentSettingRetrieveResponse, type ExperimentSettingUpdateResponse, type ExperimentSettingDeleteResponse, type ExperimentSettingCreateParams, type ExperimentSettingUpdateParams, } from "./experiment-settings.mjs";
5
+ export { ExperimentVariants, type ExperimentVariantListResponse, type ExperimentVariantCreateResponse, type ExperimentVariantRetrieveResponse, type ExperimentVariantUpdateResponse, type ExperimentVariantDeleteResponse, type ExperimentVariantListParams, type ExperimentVariantCreateParams, type ExperimentVariantUpdateParams, type ExperimentVariantListResponsesCursor, } from "./experiment-variants.mjs";
6
+ export { Experiments, type ExperimentListResponse, type ExperimentCreateResponse, type ExperimentRetrieveResponse, type ExperimentUpdateResponse, type ExperimentDeleteResponse, type ExperimentStartResponse, type ExperimentStopResponse, type ExperimentPauseResponse, type ExperimentResumeResponse, type ExperimentResultsResponse, type ExperimentResultsTimeSeriesResponse, type ExperimentListParams, type ExperimentCreateParams, type ExperimentUpdateParams, type ExperimentStartParams, type ExperimentStopParams, type ExperimentPauseParams, type ExperimentResumeParams, type ExperimentResultsParams, type ExperimentResultsTimeSeriesParams, type ExperimentListResponsesCursor, } from "./experiments.mjs";
7
+ export { GlobalDispatchCenters, type GlobalDispatchCenterListResponse, type GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterListParams, type GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams, type GlobalDispatchCenterListResponsesCursor, } from "./global-dispatch-centers.mjs";
8
+ export { Mappings, type MappingListResponse, type MappingCreateResponse, type MappingRetrieveResponse, type MappingUpdateResponse, type MappingDeleteResponse, type MappingListParams, type MappingCreateParams, type MappingUpdateParams, type MappingListResponsesCursor, } from "./mappings.mjs";
9
+ export { ReplaySettings, type ReplaySettingListResponse, type ReplaySettingCreateResponse, type ReplaySettingRetrieveResponse, type ReplaySettingUpdateResponse, type ReplaySettingDeleteResponse, type ReplaySettingListParams, type ReplaySettingCreateParams, type ReplaySettingUpdateParams, type ReplaySettingListResponsesCursor, } from "./replay-settings.mjs";
10
+ export { Sources, type SourceListResponse, type SourceCreateResponse, type SourceRetrieveResponse, type SourceUpdateResponse, type SourceDeleteResponse, type SourceTokensResponse, type SourceCreateParams, type SourceUpdateParams, } from "./sources.mjs";
11
+ export { Versions, type VersionListResponse, type VersionCreateResponse, type VersionRetrieveResponse, type VersionUpdateResponse, type VersionPublishResponse, type VersionSnapshotResponse, type VersionDiffResponse, type VersionListParams, type VersionCreateParams, type VersionUpdateParams, type VersionListResponsesCursor, } from "./versions.mjs";
8
12
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,eAAe,EACf,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B;OACM,EACL,qBAAqB,EACrB,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,GACtC;OACM,EACL,cAAc,EACd,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,eAAe,EACf,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,GAChC;OACM,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B;OACM,EACL,kBAAkB,EAClB,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,GACnC;OACM,EACL,kBAAkB,EAClB,KAAK,6BAA6B,EAClC,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,+BAA+B,EACpC,KAAK,+BAA+B,EACpC,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,6BAA6B,EAClC,KAAK,oCAAoC,GAC1C;OACM,EACL,WAAW,EACX,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,EAC7B,KAAK,wBAAwB,EAC7B,KAAK,uBAAuB,EAC5B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,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uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,GAChC"}
@@ -1,8 +1,12 @@
1
- export { AllowedEvents, type AllowedEventCreateResponse, type AllowedEventRetrieveResponse, type AllowedEventListResponse, type AllowedEventDeleteResponse, type AllowedEventCreateParams, } from "./allowed-events.js";
2
- export { ConsentSettings, type ConsentSettingCreateResponse, type ConsentSettingRetrieveResponse, type ConsentSettingUpdateResponse, type ConsentSettingListResponse, type ConsentSettingDeleteResponse, type ConsentSettingUpdateParams, } from "./consent-settings.js";
3
- export { Destinations, type DestinationCreateResponse, type DestinationRetrieveResponse, type DestinationUpdateResponse, type DestinationListResponse, type DestinationDeleteResponse, type DestinationCreateParams, type DestinationUpdateParams, } from "./destinations.js";
4
- export { GlobalDispatchCenters, type GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterListResponse, type GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams, } from "./global-dispatch-centers.js";
5
- export { ReplaySettings, type ReplaySettingCreateResponse, type ReplaySettingRetrieveResponse, type ReplaySettingUpdateResponse, type ReplaySettingListResponse, type ReplaySettingDeleteResponse, type ReplaySettingCreateParams, type ReplaySettingUpdateParams, } from "./replay-settings.js";
6
- export { Sources, type SourceCreateResponse, type SourceRetrieveResponse, type SourceUpdateResponse, type SourceListResponse, type SourceDeleteResponse, type SourceCreateParams, type SourceUpdateParams, } from "./sources.js";
7
- export { Versions, type VersionCreateResponse, type VersionRetrieveResponse, type VersionUpdateResponse, type VersionListResponse, type VersionCreateParams, type VersionUpdateParams, } from "./versions.js";
1
+ export { AllowedEvents, type AllowedEventListResponse, type AllowedEventCreateResponse, type AllowedEventRetrieveResponse, type AllowedEventDeleteResponse, type AllowedEventCreateParams, } from "./allowed-events.js";
2
+ export { ConsentSettings, type ConsentSettingListResponse, type ConsentSettingCreateResponse, type ConsentSettingRetrieveResponse, type ConsentSettingReplaceResponse, type ConsentSettingUpdateResponse, type ConsentSettingDeleteResponse, type ConsentSettingReplaceParams, type ConsentSettingUpdateParams, } from "./consent-settings.js";
3
+ export { Destinations, type DestinationListResponse, type DestinationCreateResponse, type DestinationRetrieveResponse, type DestinationUpdateResponse, type DestinationDeleteResponse, type DestinationCreateParams, type DestinationUpdateParams, } from "./destinations.js";
4
+ export { ExperimentSettings, type ExperimentSettingListResponse, type ExperimentSettingCreateResponse, type ExperimentSettingRetrieveResponse, type ExperimentSettingUpdateResponse, type ExperimentSettingDeleteResponse, type ExperimentSettingCreateParams, type ExperimentSettingUpdateParams, } from "./experiment-settings.js";
5
+ export { ExperimentVariants, type ExperimentVariantListResponse, type ExperimentVariantCreateResponse, type ExperimentVariantRetrieveResponse, type ExperimentVariantUpdateResponse, type ExperimentVariantDeleteResponse, type ExperimentVariantListParams, type ExperimentVariantCreateParams, type ExperimentVariantUpdateParams, type ExperimentVariantListResponsesCursor, } from "./experiment-variants.js";
6
+ export { Experiments, type ExperimentListResponse, type ExperimentCreateResponse, type ExperimentRetrieveResponse, type ExperimentUpdateResponse, type ExperimentDeleteResponse, type ExperimentStartResponse, type ExperimentStopResponse, type ExperimentPauseResponse, type ExperimentResumeResponse, type ExperimentResultsResponse, type ExperimentResultsTimeSeriesResponse, type ExperimentListParams, type ExperimentCreateParams, type ExperimentUpdateParams, type ExperimentStartParams, type ExperimentStopParams, type ExperimentPauseParams, type ExperimentResumeParams, type ExperimentResultsParams, type ExperimentResultsTimeSeriesParams, type ExperimentListResponsesCursor, } from "./experiments.js";
7
+ export { GlobalDispatchCenters, type GlobalDispatchCenterListResponse, type GlobalDispatchCenterCreateResponse, type GlobalDispatchCenterRetrieveResponse, type GlobalDispatchCenterUpdateResponse, type GlobalDispatchCenterDeleteResponse, type GlobalDispatchCenterListParams, type GlobalDispatchCenterCreateParams, type GlobalDispatchCenterUpdateParams, type GlobalDispatchCenterListResponsesCursor, } from "./global-dispatch-centers.js";
8
+ export { Mappings, type MappingListResponse, type MappingCreateResponse, type MappingRetrieveResponse, type MappingUpdateResponse, type MappingDeleteResponse, type MappingListParams, type MappingCreateParams, type MappingUpdateParams, type MappingListResponsesCursor, } from "./mappings.js";
9
+ export { ReplaySettings, type ReplaySettingListResponse, type ReplaySettingCreateResponse, type ReplaySettingRetrieveResponse, type ReplaySettingUpdateResponse, type ReplaySettingDeleteResponse, type ReplaySettingListParams, type ReplaySettingCreateParams, type ReplaySettingUpdateParams, type ReplaySettingListResponsesCursor, } from "./replay-settings.js";
10
+ export { Sources, type SourceListResponse, type SourceCreateResponse, type SourceRetrieveResponse, type SourceUpdateResponse, type SourceDeleteResponse, type SourceTokensResponse, type SourceCreateParams, type SourceUpdateParams, } from "./sources.js";
11
+ export { Versions, type VersionListResponse, type VersionCreateResponse, type VersionRetrieveResponse, type VersionUpdateResponse, type VersionPublishResponse, type VersionSnapshotResponse, type VersionDiffResponse, type VersionListParams, type VersionCreateParams, type VersionUpdateParams, type VersionListResponsesCursor, } from "./versions.js";
8
12
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,eAAe,EACf,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,GAChC;OACM,EACL,YAAY,EACZ,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B;OACM,EACL,qBAAqB,EACrB,KAAK,kCAAkC,EACvC,KAAK,oCAAoC,EACzC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,kCAAkC,EACvC,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,GACtC;OACM,EACL,cAAc,EACd,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,GAC/B;OACM,EACL,OAAO,EACP,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,QAAQ,EACR,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,GACzB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"OAEO,EACL,aAAa,EACb,KAAK,wBAAwB,EAC7B,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,0BAA0B,EAC/B,KAAK,wBAAwB,GAC9B;OACM,EACL,eAAe,EACf,KAAK,0BAA0B,EAC/B,KAAK,4BAA4B,EACjC,KAAK,8BAA8B,EACnC,KAAK,6BAA6B,EAClC,KAAK,4BAA4B,EACjC,KAAK,4BAA4B,EACjC,KAAK,2BAA2B,EAChC,KAAK,0BAA0B,GAChC;OACM,EACL,YAAY,EACZ,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,EAC5B,KAAK,uBAAuB,GAC7B;OACM,EAC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EACxB,KAAK,0BAA0B,GAChC;OACM,EACL,cAAc,EACd,KAAK,yBAAyB,EAC9B,KAAK,2BAA2B,EAChC,KAAK,6BAA6B,EAClC,KAAK,2BAA2B,EAChC,KAAK,2BAA2B,EAChC,KAAK,uBAAuB,EAC5B,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,gCAAgC,GACtC;OACM,EACL,OAAO,EACP,KAAK,kBAAkB,EACvB,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,GACxB;OACM,EACL,QAAQ,EACR,KAAK,mBAAmB,EACxB,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,qBAAqB,EAC1B,KAAK,sBAAsB,EAC3B,KAAK,uBAAuB,EAC5B,KAAK,mBAAmB,EACxB,KAAK,iBAAiB,EACtB,KAAK,mBAAmB,EACxB,KAAK,mBAAmB,EACxB,KAAK,0BAA0B,GAChC"}
@@ -1,15 +1,23 @@
1
1
  "use strict";
2
2
  // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
3
  Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.Versions = exports.Sources = exports.ReplaySettings = exports.GlobalDispatchCenters = exports.Destinations = exports.ConsentSettings = exports.AllowedEvents = void 0;
4
+ exports.Versions = exports.Sources = exports.ReplaySettings = exports.Mappings = exports.GlobalDispatchCenters = exports.Experiments = exports.ExperimentVariants = exports.ExperimentSettings = exports.Destinations = exports.ConsentSettings = exports.AllowedEvents = void 0;
5
5
  var allowed_events_1 = require("./allowed-events.js");
6
6
  Object.defineProperty(exports, "AllowedEvents", { enumerable: true, get: function () { return allowed_events_1.AllowedEvents; } });
7
7
  var consent_settings_1 = require("./consent-settings.js");
8
8
  Object.defineProperty(exports, "ConsentSettings", { enumerable: true, get: function () { return consent_settings_1.ConsentSettings; } });
9
9
  var destinations_1 = require("./destinations.js");
10
10
  Object.defineProperty(exports, "Destinations", { enumerable: true, get: function () { return destinations_1.Destinations; } });
11
+ var experiment_settings_1 = require("./experiment-settings.js");
12
+ Object.defineProperty(exports, "ExperimentSettings", { enumerable: true, get: function () { return experiment_settings_1.ExperimentSettings; } });
13
+ var experiment_variants_1 = require("./experiment-variants.js");
14
+ Object.defineProperty(exports, "ExperimentVariants", { enumerable: true, get: function () { return experiment_variants_1.ExperimentVariants; } });
15
+ var experiments_1 = require("./experiments.js");
16
+ Object.defineProperty(exports, "Experiments", { enumerable: true, get: function () { return experiments_1.Experiments; } });
11
17
  var global_dispatch_centers_1 = require("./global-dispatch-centers.js");
12
18
  Object.defineProperty(exports, "GlobalDispatchCenters", { enumerable: true, get: function () { return global_dispatch_centers_1.GlobalDispatchCenters; } });
19
+ var mappings_1 = require("./mappings.js");
20
+ Object.defineProperty(exports, "Mappings", { enumerable: true, get: function () { return mappings_1.Mappings; } });
13
21
  var replay_settings_1 = require("./replay-settings.js");
14
22
  Object.defineProperty(exports, "ReplaySettings", { enumerable: true, get: function () { return replay_settings_1.ReplaySettings; } });
15
23
  var sources_1 = require("./sources.js");
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAO0B;AANxB,+GAAA,aAAa,OAAA;AAOf,0DAQ4B;AAP1B,mHAAA,eAAe,OAAA;AAQjB,kDASwB;AARtB,4GAAA,YAAY,OAAA;AASd,wEASmC;AARjC,gIAAA,qBAAqB,OAAA;AASvB,wDAS2B;AARzB,iHAAA,cAAc,OAAA;AAShB,wCASmB;AARjB,kGAAA,OAAO,OAAA;AAST,0CAQoB;AAPlB,oGAAA,QAAQ,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,sDAO0B;AANxB,+GAAA,aAAa,OAAA;AAOf,0DAU4B;AAT1B,mHAAA,eAAe,OAAA;AAUjB,kDASwB;AARtB,4GAAA,YAAY,OAAA;AASd,gEAS+B;AAR7B,yHAAA,kBAAkB,OAAA;AASpB,gEAW+B;AAV7B,yHAAA,kBAAkB,OAAA;AAWpB,gDAuBuB;AAtBrB,0GAAA,WAAW,OAAA;AAuBb,wEAWmC;AAVjC,gIAAA,qBAAqB,OAAA;AAWvB,0CAWoB;AAVlB,oGAAA,QAAQ,OAAA;AAWV,wDAW2B;AAVzB,iHAAA,cAAc,OAAA;AAWhB,wCAUmB;AATjB,kGAAA,OAAO,OAAA;AAUT,0CAaoB;AAZlB,oGAAA,QAAQ,OAAA"}
@@ -2,7 +2,11 @@
2
2
  export { AllowedEvents, } from "./allowed-events.mjs";
3
3
  export { ConsentSettings, } from "./consent-settings.mjs";
4
4
  export { Destinations, } from "./destinations.mjs";
5
+ export { ExperimentSettings, } from "./experiment-settings.mjs";
6
+ export { ExperimentVariants, } from "./experiment-variants.mjs";
7
+ export { Experiments, } from "./experiments.mjs";
5
8
  export { GlobalDispatchCenters, } from "./global-dispatch-centers.mjs";
9
+ export { Mappings, } from "./mappings.mjs";
6
10
  export { ReplaySettings, } from "./replay-settings.mjs";
7
11
  export { Sources, } from "./sources.mjs";
8
12
  export { Versions, } from "./versions.mjs";
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,aAAa,GAMd;OACM,EACL,eAAe,GAOhB;OACM,EACL,YAAY,GAQb;OACM,EACL,qBAAqB,GAQtB;OACM,EACL,cAAc,GAQf;OACM,EACL,OAAO,GAQR;OACM,EACL,QAAQ,GAOT"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EACL,aAAa,GAMd;OACM,EACL,eAAe,GAShB;OACM,EACL,YAAY,GAQb;OACM,EACL,kBAAkB,GAQnB;OACM,EACL,kBAAkB,GAUnB;OACM,EACL,WAAW,GAsBZ;OACM,EACL,qBAAqB,GAUtB;OACM,EACL,QAAQ,GAUT;OACM,EACL,cAAc,GAUf;OACM,EACL,OAAO,GASR;OACM,EACL,QAAQ,GAYT"}
@@ -0,0 +1,138 @@
1
+ import { APIResource } from "../core/resource.mjs";
2
+ import { APIPromise } from "../core/api-promise.mjs";
3
+ import { Cursor, type CursorParams, PagePromise } from "../core/pagination.mjs";
4
+ import { RequestOptions } from "../internal/request-options.mjs";
5
+ export declare class Mappings extends APIResource {
6
+ /**
7
+ * List mappings for an entity (a source or destination). Requires the `entityId`
8
+ * query parameter. Supports cursor pagination via `limit` and `cursor`. Sorted by
9
+ * `priority` ascending, then by `id` for deterministic pagination. Requires scope:
10
+ * mapping:list
11
+ */
12
+ list(query: MappingListParams, options?: RequestOptions): PagePromise<MappingListResponsesCursor, MappingListResponse>;
13
+ /**
14
+ * Create a new mapping. Requires scope: mapping:create
15
+ */
16
+ create(body: MappingCreateParams, options?: RequestOptions): APIPromise<MappingCreateResponse>;
17
+ /**
18
+ * Find a single mapping by ID. Requires scope: mapping:find
19
+ */
20
+ retrieve(id: string, options?: RequestOptions): APIPromise<MappingRetrieveResponse>;
21
+ /**
22
+ * Partially update a mapping. Only the fields you send are changed. Requires
23
+ * scope: mapping:update
24
+ */
25
+ update(id: string, body: MappingUpdateParams, options?: RequestOptions): APIPromise<MappingUpdateResponse>;
26
+ /**
27
+ * Delete a mapping. Requires scope: mapping:delete
28
+ */
29
+ delete(id: string, options?: RequestOptions): APIPromise<MappingDeleteResponse>;
30
+ }
31
+ export type MappingListResponsesCursor = Cursor<MappingListResponse>;
32
+ export interface MappingListResponse {
33
+ id: string;
34
+ isEnabled: boolean;
35
+ mappings: Array<MappingListResponse.Mapping>;
36
+ destinationId?: string | null;
37
+ isDefaultMapping?: boolean | null;
38
+ name?: string | null;
39
+ priority?: number | null;
40
+ sourceId?: string | null;
41
+ templateId?: string | null;
42
+ templateName?: string | null;
43
+ updatedAt?: string | null;
44
+ }
45
+ export declare namespace MappingListResponse {
46
+ interface Mapping {
47
+ map: string;
48
+ property: string;
49
+ modification?: string | null;
50
+ }
51
+ }
52
+ export interface MappingCreateResponse {
53
+ id: string;
54
+ isEnabled: boolean;
55
+ mappings: Array<MappingCreateResponse.Mapping>;
56
+ destinationId?: string | null;
57
+ isDefaultMapping?: boolean | null;
58
+ name?: string | null;
59
+ priority?: number | null;
60
+ sourceId?: string | null;
61
+ templateId?: string | null;
62
+ templateName?: string | null;
63
+ updatedAt?: string | null;
64
+ }
65
+ export declare namespace MappingCreateResponse {
66
+ interface Mapping {
67
+ map: string;
68
+ property: string;
69
+ modification?: string | null;
70
+ }
71
+ }
72
+ export interface MappingRetrieveResponse {
73
+ id: string;
74
+ isEnabled: boolean;
75
+ mappings: Array<MappingRetrieveResponse.Mapping>;
76
+ destinationId?: string | null;
77
+ isDefaultMapping?: boolean | null;
78
+ name?: string | null;
79
+ priority?: number | null;
80
+ sourceId?: string | null;
81
+ templateId?: string | null;
82
+ templateName?: string | null;
83
+ updatedAt?: string | null;
84
+ }
85
+ export declare namespace MappingRetrieveResponse {
86
+ interface Mapping {
87
+ map: string;
88
+ property: string;
89
+ modification?: string | null;
90
+ }
91
+ }
92
+ export interface MappingUpdateResponse {
93
+ id: string;
94
+ isEnabled: boolean;
95
+ mappings: Array<MappingUpdateResponse.Mapping>;
96
+ destinationId?: string | null;
97
+ isDefaultMapping?: boolean | null;
98
+ name?: string | null;
99
+ priority?: number | null;
100
+ sourceId?: string | null;
101
+ templateId?: string | null;
102
+ templateName?: string | null;
103
+ updatedAt?: string | null;
104
+ }
105
+ export declare namespace MappingUpdateResponse {
106
+ interface Mapping {
107
+ map: string;
108
+ property: string;
109
+ modification?: string | null;
110
+ }
111
+ }
112
+ export type MappingDeleteResponse = boolean;
113
+ export interface MappingListParams extends CursorParams {
114
+ /**
115
+ * Filter mappings by their parent entity id (for example an allowed event id).
116
+ */
117
+ entityId: string;
118
+ }
119
+ export interface MappingCreateParams {
120
+ allowedEventId: string;
121
+ destinationId: string;
122
+ }
123
+ export interface MappingUpdateParams {
124
+ logic?: unknown;
125
+ mappings?: Array<MappingUpdateParams.Mapping>;
126
+ name?: string | null;
127
+ }
128
+ export declare namespace MappingUpdateParams {
129
+ interface Mapping {
130
+ map: string;
131
+ property: string;
132
+ modification?: string | null;
133
+ }
134
+ }
135
+ export declare namespace Mappings {
136
+ export { type MappingListResponse as MappingListResponse, type MappingCreateResponse as MappingCreateResponse, type MappingRetrieveResponse as MappingRetrieveResponse, type MappingUpdateResponse as MappingUpdateResponse, type MappingDeleteResponse as MappingDeleteResponse, type MappingListResponsesCursor as MappingListResponsesCursor, type MappingListParams as MappingListParams, type MappingCreateParams as MappingCreateParams, type MappingUpdateParams as MappingUpdateParams, };
137
+ }
138
+ //# sourceMappingURL=mappings.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappings.d.mts","sourceRoot":"","sources":["../src/resources/mappings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;OAKG;IACH,IAAI,CACF,KAAK,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,mBAAmB,CAAC;IAI/D;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,mBAAmB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,qBAAqB,CAAC;IAI9F;;OAEG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,uBAAuB,CAAC;IAInF;;;OAGG;IACH,MAAM,CAAC,EAAE,EAAE,MAAM,EAAE,I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B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,138 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { APIPromise } from "../core/api-promise.js";
3
+ import { Cursor, type CursorParams, PagePromise } from "../core/pagination.js";
4
+ import { RequestOptions } from "../internal/request-options.js";
5
+ export declare class Mappings extends APIResource {
6
+ /**
7
+ * List mappings for an entity (a source or destination). Requires the `entityId`
8
+ * query parameter. Supports cursor pagination via `limit` and `cursor`. Sorted by
9
+ * `priority` ascending, then by `id` for deterministic pagination. Requires scope:
10
+ * mapping:list
11
+ */
12
+ list(query: MappingListParams, options?: RequestOptions): PagePromise<MappingListResponsesCursor, MappingListResponse>;
13
+ /**
14
+ * Create a new mapping. Requires scope: mapping:create
15
+ */
16
+ create(body: MappingCreateParams, options?: RequestOptions): APIPromise<MappingCreateResponse>;
17
+ /**
18
+ * Find a single mapping by ID. Requires scope: mapping:find
19
+ */
20
+ retrieve(id: string, options?: RequestOptions): APIPromise<MappingRetrieveResponse>;
21
+ /**
22
+ * Partially update a mapping. Only the fields you send are changed. Requires
23
+ * scope: mapping:update
24
+ */
25
+ update(id: string, body: MappingUpdateParams, options?: RequestOptions): APIPromise<MappingUpdateResponse>;
26
+ /**
27
+ * Delete a mapping. Requires scope: mapping:delete
28
+ */
29
+ delete(id: string, options?: RequestOptions): APIPromise<MappingDeleteResponse>;
30
+ }
31
+ export type MappingListResponsesCursor = Cursor<MappingListResponse>;
32
+ export interface MappingListResponse {
33
+ id: string;
34
+ isEnabled: boolean;
35
+ mappings: Array<MappingListResponse.Mapping>;
36
+ destinationId?: string | null;
37
+ isDefaultMapping?: boolean | null;
38
+ name?: string | null;
39
+ priority?: number | null;
40
+ sourceId?: string | null;
41
+ templateId?: string | null;
42
+ templateName?: string | null;
43
+ updatedAt?: string | null;
44
+ }
45
+ export declare namespace MappingListResponse {
46
+ interface Mapping {
47
+ map: string;
48
+ property: string;
49
+ modification?: string | null;
50
+ }
51
+ }
52
+ export interface MappingCreateResponse {
53
+ id: string;
54
+ isEnabled: boolean;
55
+ mappings: Array<MappingCreateResponse.Mapping>;
56
+ destinationId?: string | null;
57
+ isDefaultMapping?: boolean | null;
58
+ name?: string | null;
59
+ priority?: number | null;
60
+ sourceId?: string | null;
61
+ templateId?: string | null;
62
+ templateName?: string | null;
63
+ updatedAt?: string | null;
64
+ }
65
+ export declare namespace MappingCreateResponse {
66
+ interface Mapping {
67
+ map: string;
68
+ property: string;
69
+ modification?: string | null;
70
+ }
71
+ }
72
+ export interface MappingRetrieveResponse {
73
+ id: string;
74
+ isEnabled: boolean;
75
+ mappings: Array<MappingRetrieveResponse.Mapping>;
76
+ destinationId?: string | null;
77
+ isDefaultMapping?: boolean | null;
78
+ name?: string | null;
79
+ priority?: number | null;
80
+ sourceId?: string | null;
81
+ templateId?: string | null;
82
+ templateName?: string | null;
83
+ updatedAt?: string | null;
84
+ }
85
+ export declare namespace MappingRetrieveResponse {
86
+ interface Mapping {
87
+ map: string;
88
+ property: string;
89
+ modification?: string | null;
90
+ }
91
+ }
92
+ export interface MappingUpdateResponse {
93
+ id: string;
94
+ isEnabled: boolean;
95
+ mappings: Array<MappingUpdateResponse.Mapping>;
96
+ destinationId?: string | null;
97
+ isDefaultMapping?: boolean | null;
98
+ name?: string | null;
99
+ priority?: number | null;
100
+ sourceId?: string | null;
101
+ templateId?: string | null;
102
+ templateName?: string | null;
103
+ updatedAt?: string | null;
104
+ }
105
+ export declare namespace MappingUpdateResponse {
106
+ interface Mapping {
107
+ map: string;
108
+ property: string;
109
+ modification?: string | null;
110
+ }
111
+ }
112
+ export type MappingDeleteResponse = boolean;
113
+ export interface MappingListParams extends CursorParams {
114
+ /**
115
+ * Filter mappings by their parent entity id (for example an allowed event id).
116
+ */
117
+ entityId: string;
118
+ }
119
+ export interface MappingCreateParams {
120
+ allowedEventId: string;
121
+ destinationId: string;
122
+ }
123
+ export interface MappingUpdateParams {
124
+ logic?: unknown;
125
+ mappings?: Array<MappingUpdateParams.Mapping>;
126
+ name?: string | null;
127
+ }
128
+ export declare namespace MappingUpdateParams {
129
+ interface Mapping {
130
+ map: string;
131
+ property: string;
132
+ modification?: string | null;
133
+ }
134
+ }
135
+ export declare namespace Mappings {
136
+ export { type MappingListResponse as MappingListResponse, type MappingCreateResponse as MappingCreateResponse, type MappingRetrieveResponse as MappingRetrieveResponse, type MappingUpdateResponse as MappingUpdateResponse, type MappingDeleteResponse as MappingDeleteResponse, type MappingListResponsesCursor as MappingListResponsesCursor, type MappingListParams as MappingListParams, type MappingCreateParams as MappingCreateParams, type MappingUpdateParams as MappingUpdateParams, };
137
+ }
138
+ //# sourceMappingURL=mappings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappings.d.ts","sourceRoot":"","sources":["../src/resources/mappings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,MAAM,EAAE,KAAK,YAAY,EAAE,WAAW,EAAE;OAC1C,EAAE,cAAc,EAAE;AAGzB,qBAAa,QAAS,SAAQ,WAAW;IACvC;;;;;OAKG;IACH,IAAI,CACF,KAAK,EAAE,iBAAiB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,0BAA0B,EAAE,mBAAmB,CAAC;IAI/D;;OAEG;IACH,MAAM,CAAC,IA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AO,CAAC;IAEhB,QAAQ,CAAC,EAAE,KAAK,CAAC,mBAAmB,CAAC,OAAO,CAAC,CAAC;IAE9C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;CACtB;AAED,yBAAiB,mBAAmB,CAAC;IACnC,UAAiB,OAAO;QACtB,GAAG,EAAE,MAAM,CAAC;QAEZ,QAAQ,EAAE,MAAM,CAAC;QAEjB,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC9B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,QAAQ,CAAC;IAChC,OAAO,EACL,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,0BAA0B,IAAI,0BAA0B,EAC7D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,mBAAmB,IAAI,mBAAmB,EAC/C,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;CACH"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Mappings = void 0;
5
+ const resource_1 = require("../core/resource.js");
6
+ const pagination_1 = require("../core/pagination.js");
7
+ const path_1 = require("../internal/utils/path.js");
8
+ class Mappings extends resource_1.APIResource {
9
+ /**
10
+ * List mappings for an entity (a source or destination). Requires the `entityId`
11
+ * query parameter. Supports cursor pagination via `limit` and `cursor`. Sorted by
12
+ * `priority` ascending, then by `id` for deterministic pagination. Requires scope:
13
+ * mapping:list
14
+ */
15
+ list(query, options) {
16
+ return this._client.getAPIList('/rest/v1/mappings', (pagination_1.Cursor), { query, ...options });
17
+ }
18
+ /**
19
+ * Create a new mapping. Requires scope: mapping:create
20
+ */
21
+ create(body, options) {
22
+ return this._client.post('/rest/v1/mappings', { body, ...options });
23
+ }
24
+ /**
25
+ * Find a single mapping by ID. Requires scope: mapping:find
26
+ */
27
+ retrieve(id, options) {
28
+ return this._client.get((0, path_1.path) `/rest/v1/mappings/${id}`, options);
29
+ }
30
+ /**
31
+ * Partially update a mapping. Only the fields you send are changed. Requires
32
+ * scope: mapping:update
33
+ */
34
+ update(id, body, options) {
35
+ return this._client.patch((0, path_1.path) `/rest/v1/mappings/${id}`, { body, ...options });
36
+ }
37
+ /**
38
+ * Delete a mapping. Requires scope: mapping:delete
39
+ */
40
+ delete(id, options) {
41
+ return this._client.delete((0, path_1.path) `/rest/v1/mappings/${id}`, options);
42
+ }
43
+ }
44
+ exports.Mappings = Mappings;
45
+ //# sourceMappingURL=mappings.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappings.js","sourceRoot":"","sources":["../src/resources/mappings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,QAAS,SAAQ,sBAAW;IACvC;;;;;OAKG;IACH,IAAI,CACF,KAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,mBAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF;AA1CD,4BA0CC"}
@@ -0,0 +1,41 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../core/resource.mjs";
3
+ import { Cursor } from "../core/pagination.mjs";
4
+ import { path } from "../internal/utils/path.mjs";
5
+ export class Mappings extends APIResource {
6
+ /**
7
+ * List mappings for an entity (a source or destination). Requires the `entityId`
8
+ * query parameter. Supports cursor pagination via `limit` and `cursor`. Sorted by
9
+ * `priority` ascending, then by `id` for deterministic pagination. Requires scope:
10
+ * mapping:list
11
+ */
12
+ list(query, options) {
13
+ return this._client.getAPIList('/rest/v1/mappings', (Cursor), { query, ...options });
14
+ }
15
+ /**
16
+ * Create a new mapping. Requires scope: mapping:create
17
+ */
18
+ create(body, options) {
19
+ return this._client.post('/rest/v1/mappings', { body, ...options });
20
+ }
21
+ /**
22
+ * Find a single mapping by ID. Requires scope: mapping:find
23
+ */
24
+ retrieve(id, options) {
25
+ return this._client.get(path `/rest/v1/mappings/${id}`, options);
26
+ }
27
+ /**
28
+ * Partially update a mapping. Only the fields you send are changed. Requires
29
+ * scope: mapping:update
30
+ */
31
+ update(id, body, options) {
32
+ return this._client.patch(path `/rest/v1/mappings/${id}`, { body, ...options });
33
+ }
34
+ /**
35
+ * Delete a mapping. Requires scope: mapping:delete
36
+ */
37
+ delete(id, options) {
38
+ return this._client.delete(path `/rest/v1/mappings/${id}`, options);
39
+ }
40
+ }
41
+ //# sourceMappingURL=mappings.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"mappings.mjs","sourceRoot":"","sources":["../src/resources/mappings.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,QAAS,SAAQ,WAAW;IACvC;;;;;OAKG;IACH,IAAI,CACF,KAAwB,EACxB,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,mBAAmB,EAAE,CAAA,MAA2B,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1G,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,IAAyB,EAAE,OAAwB;QACxD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,mBAAmB,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAClE,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,IAAyB,EAAE,OAAwB;QACpE,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,qBAAqB,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACrE,CAAC;CACF"}