@oursprivacy/platform-sdk 1.21.0 → 1.22.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 (61) hide show
  1. package/CHANGELOG.md +10 -0
  2. package/client.d.mts +6 -12
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +6 -12
  5. package/client.d.ts.map +1 -1
  6. package/client.js +2 -8
  7. package/client.js.map +1 -1
  8. package/client.mjs +2 -8
  9. package/client.mjs.map +1 -1
  10. package/package.json +1 -1
  11. package/resources/destinations.d.mts +78 -5
  12. package/resources/destinations.d.mts.map +1 -1
  13. package/resources/destinations.d.ts +78 -5
  14. package/resources/destinations.d.ts.map +1 -1
  15. package/resources/destinations.js +11 -0
  16. package/resources/destinations.js.map +1 -1
  17. package/resources/destinations.mjs +11 -0
  18. package/resources/destinations.mjs.map +1 -1
  19. package/resources/index.d.mts +2 -4
  20. package/resources/index.d.mts.map +1 -1
  21. package/resources/index.d.ts +2 -4
  22. package/resources/index.d.ts.map +1 -1
  23. package/resources/index.js +1 -5
  24. package/resources/index.js.map +1 -1
  25. package/resources/index.mjs +0 -2
  26. package/resources/index.mjs.map +1 -1
  27. package/resources/mappings.d.mts +188 -1
  28. package/resources/mappings.d.mts.map +1 -1
  29. package/resources/mappings.d.ts +188 -1
  30. package/resources/mappings.d.ts.map +1 -1
  31. package/resources/mappings.js +41 -0
  32. package/resources/mappings.js.map +1 -1
  33. package/resources/mappings.mjs +41 -0
  34. package/resources/mappings.mjs.map +1 -1
  35. package/src/client.ts +19 -33
  36. package/src/resources/destinations.ts +189 -4
  37. package/src/resources/index.ts +6 -10
  38. package/src/resources/mappings.ts +343 -0
  39. package/src/version.ts +1 -1
  40. package/version.d.mts +1 -1
  41. package/version.d.ts +1 -1
  42. package/version.js +1 -1
  43. package/version.mjs +1 -1
  44. package/resources/destination-types.d.mts +0 -146
  45. package/resources/destination-types.d.mts.map +0 -1
  46. package/resources/destination-types.d.ts +0 -146
  47. package/resources/destination-types.d.ts.map +0 -1
  48. package/resources/destination-types.js +0 -28
  49. package/resources/destination-types.js.map +0 -1
  50. package/resources/destination-types.mjs +0 -24
  51. package/resources/destination-types.mjs.map +0 -1
  52. package/resources/mapping-templates.d.mts +0 -101
  53. package/resources/mapping-templates.d.mts.map +0 -1
  54. package/resources/mapping-templates.d.ts +0 -101
  55. package/resources/mapping-templates.d.ts.map +0 -1
  56. package/resources/mapping-templates.js +0 -22
  57. package/resources/mapping-templates.js.map +0 -1
  58. package/resources/mapping-templates.mjs +0 -18
  59. package/resources/mapping-templates.mjs.map +0 -1
  60. package/src/resources/destination-types.ts +0 -373
  61. package/src/resources/mapping-templates.ts +0 -203
@@ -1,146 +0,0 @@
1
- import { APIResource } from "../core/resource.js";
2
- import { APIPromise } from "../core/api-promise.js";
3
- import { RequestOptions } from "../internal/request-options.js";
4
- export declare class DestinationTypes extends APIResource {
5
- /**
6
- * Lists every destination type the platform supports, with its human-readable
7
- * label, capability flags (oauth, listsAccounts, supportsRenamedEvents), and the
8
- * settings descriptor used to configure a destination of that type.
9
- * Account-agnostic — the response is the same for every API key. Requires scope:
10
- * destination:list
11
- */
12
- list(options?: RequestOptions): APIPromise<DestinationTypeListResponse>;
13
- /**
14
- * Fetch the descriptor for a single destination type by its identifier (e.g.
15
- * `Klaviyo`, `Facebook`, `GoogleDataManagerEventIngest`). Returns 404 if the
16
- * identifier is unknown. Requires scope: destination:list
17
- */
18
- retrieve(id: string, options?: RequestOptions): APIPromise<DestinationTypeRetrieveResponse>;
19
- }
20
- export interface DestinationTypeListResponse {
21
- entities: Array<DestinationTypeListResponse.Entity>;
22
- }
23
- export declare namespace DestinationTypeListResponse {
24
- interface Entity {
25
- id: 'Audiohook' | 'BasisPostback' | 'OursSyntheticData' | 'FullContact' | 'ZoomInfo' | 'TheTradeDesk' | 'Braze' | 'LiveIntent' | 'ConvertABTestingEvent' | 'Customerio' | 'BingAds' | 'BingAdsWeb' | 'HTTPDestination' | 'Woopra' | 'HTTPCustomRequest' | 'Google' | 'GoogleAdsServerContainer' | 'G4Analytics' | 'GA4ServerProxy' | 'GA4MeasurementProtocol' | 'GoogleAds360' | 'Facebook' | 'Mixpanel' | 'Amplitude' | 'TikTok' | 'Reddit' | 'Podscribe' | 'Pinterest' | 'Mailchimp' | 'AWSKinesis' | 'AWSLambda' | 'GooglePubSub' | 'LinkedInAdsCAPI' | 'ActiveCampaignApi' | 'StackAdaptAPI' | 'Hubspot' | 'Klaviyo' | 'XAds' | 'QuoraAds' | 'SnapchatAdsCapi' | 'Partnerize' | 'NextdoorAds' | 'Tatari' | 'Viant' | 'Impact' | 'Spotify' | 'Taboola' | 'AmazonDSP' | 'AppLovin' | 'IHeartMediaMagellan' | 'Vibe' | 'GoogleDataManagerEventIngest' | 'Zendesk' | 'Iterable' | 'ArtsAI' | 'QuantcastCAPI' | 'FloodlightSGTM' | 'VWO' | 'Attentive' | 'Admitad' | 'Plausible' | 'PostHog' | 'RokuCAPI' | 'Everflow' | 'BeeswaxPostback' | 'AdobeAnalytics';
26
- capabilities: Entity.Capabilities;
27
- label: string;
28
- settings: Array<Entity.UnionMember0 | Entity.UnionMember1 | Entity.UnionMember2 | Entity.UnionMember3 | Entity.UnionMember4>;
29
- status: 'deprecated' | 'ga';
30
- }
31
- namespace Entity {
32
- interface Capabilities {
33
- listsAccounts: boolean;
34
- oauth: boolean;
35
- supportsRenamedEvents: boolean;
36
- }
37
- interface UnionMember0 {
38
- key: string;
39
- /**
40
- * Informational display message only. Do not send this key in POST or PATCH
41
- * settings.
42
- */
43
- label: string;
44
- type: 'Alert';
45
- }
46
- interface UnionMember1 {
47
- key: string;
48
- label: string;
49
- options: Array<UnionMember1.Option>;
50
- type: 'Select';
51
- required?: boolean | null;
52
- sublabel?: string | null;
53
- }
54
- namespace UnionMember1 {
55
- interface Option {
56
- label: string;
57
- value: string;
58
- }
59
- }
60
- interface UnionMember2 {
61
- key: string;
62
- label: string;
63
- type: 'Switch';
64
- defaultValue?: boolean | null;
65
- required?: boolean | null;
66
- sublabel?: string | null;
67
- }
68
- interface UnionMember3 {
69
- key: string;
70
- label: string;
71
- type: 'GenericOauth';
72
- sublabel?: string | null;
73
- }
74
- interface UnionMember4 {
75
- key: string;
76
- label: string;
77
- placeholder: string;
78
- type: 'Text' | 'Secret';
79
- required?: boolean | null;
80
- sublabel?: string | null;
81
- }
82
- }
83
- }
84
- export interface DestinationTypeRetrieveResponse {
85
- id: 'Audiohook' | 'BasisPostback' | 'OursSyntheticData' | 'FullContact' | 'ZoomInfo' | 'TheTradeDesk' | 'Braze' | 'LiveIntent' | 'ConvertABTestingEvent' | 'Customerio' | 'BingAds' | 'BingAdsWeb' | 'HTTPDestination' | 'Woopra' | 'HTTPCustomRequest' | 'Google' | 'GoogleAdsServerContainer' | 'G4Analytics' | 'GA4ServerProxy' | 'GA4MeasurementProtocol' | 'GoogleAds360' | 'Facebook' | 'Mixpanel' | 'Amplitude' | 'TikTok' | 'Reddit' | 'Podscribe' | 'Pinterest' | 'Mailchimp' | 'AWSKinesis' | 'AWSLambda' | 'GooglePubSub' | 'LinkedInAdsCAPI' | 'ActiveCampaignApi' | 'StackAdaptAPI' | 'Hubspot' | 'Klaviyo' | 'XAds' | 'QuoraAds' | 'SnapchatAdsCapi' | 'Partnerize' | 'NextdoorAds' | 'Tatari' | 'Viant' | 'Impact' | 'Spotify' | 'Taboola' | 'AmazonDSP' | 'AppLovin' | 'IHeartMediaMagellan' | 'Vibe' | 'GoogleDataManagerEventIngest' | 'Zendesk' | 'Iterable' | 'ArtsAI' | 'QuantcastCAPI' | 'FloodlightSGTM' | 'VWO' | 'Attentive' | 'Admitad' | 'Plausible' | 'PostHog' | 'RokuCAPI' | 'Everflow' | 'BeeswaxPostback' | 'AdobeAnalytics';
86
- capabilities: DestinationTypeRetrieveResponse.Capabilities;
87
- label: string;
88
- settings: Array<DestinationTypeRetrieveResponse.UnionMember0 | DestinationTypeRetrieveResponse.UnionMember1 | DestinationTypeRetrieveResponse.UnionMember2 | DestinationTypeRetrieveResponse.UnionMember3 | DestinationTypeRetrieveResponse.UnionMember4>;
89
- status: 'deprecated' | 'ga';
90
- }
91
- export declare namespace DestinationTypeRetrieveResponse {
92
- interface Capabilities {
93
- listsAccounts: boolean;
94
- oauth: boolean;
95
- supportsRenamedEvents: boolean;
96
- }
97
- interface UnionMember0 {
98
- key: string;
99
- /**
100
- * Informational display message only. Do not send this key in POST or PATCH
101
- * settings.
102
- */
103
- label: string;
104
- type: 'Alert';
105
- }
106
- interface UnionMember1 {
107
- key: string;
108
- label: string;
109
- options: Array<UnionMember1.Option>;
110
- type: 'Select';
111
- required?: boolean | null;
112
- sublabel?: string | null;
113
- }
114
- namespace UnionMember1 {
115
- interface Option {
116
- label: string;
117
- value: string;
118
- }
119
- }
120
- interface UnionMember2 {
121
- key: string;
122
- label: string;
123
- type: 'Switch';
124
- defaultValue?: boolean | null;
125
- required?: boolean | null;
126
- sublabel?: string | null;
127
- }
128
- interface UnionMember3 {
129
- key: string;
130
- label: string;
131
- type: 'GenericOauth';
132
- sublabel?: string | null;
133
- }
134
- interface UnionMember4 {
135
- key: string;
136
- label: string;
137
- placeholder: string;
138
- type: 'Text' | 'Secret';
139
- required?: boolean | null;
140
- sublabel?: string | null;
141
- }
142
- }
143
- export declare namespace DestinationTypes {
144
- export { type DestinationTypeListResponse as DestinationTypeListResponse, type DestinationTypeRetrieveResponse as DestinationTypeRetrieveResponse, };
145
- }
146
- //# sourceMappingURL=destination-types.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"destination-types.d.ts","sourceRoot":"","sources":["../src/resources/destination-types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAG7D,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAA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CAAC;QAErB,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B;IAED,UAAiB,YAAY;QAC3B,GAAG,EAAE,MAAM,CAAC;QAEZ,KAAK,EAAE,MAAM,CAAC;QAEd,WAAW,EAAE,MAAM,CAAC;QAEpB,IAAI,EAAE,MAAM,GAAG,QAAQ,CAAC;QAExB,QAAQ,CAAC,EAAE,OAAO,GAAG,IAAI,CAAC;QAE1B,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC1B;CACF;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,+BAA+B,IAAI,+BAA+B,GACxE,CAAC;CACH"}
@@ -1,28 +0,0 @@
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.DestinationTypes = void 0;
5
- const resource_1 = require("../core/resource.js");
6
- const path_1 = require("../internal/utils/path.js");
7
- class DestinationTypes extends resource_1.APIResource {
8
- /**
9
- * Lists every destination type the platform supports, with its human-readable
10
- * label, capability flags (oauth, listsAccounts, supportsRenamedEvents), and the
11
- * settings descriptor used to configure a destination of that type.
12
- * Account-agnostic — the response is the same for every API key. Requires scope:
13
- * destination:list
14
- */
15
- list(options) {
16
- return this._client.get('/rest/v1/destination-types', options);
17
- }
18
- /**
19
- * Fetch the descriptor for a single destination type by its identifier (e.g.
20
- * `Klaviyo`, `Facebook`, `GoogleDataManagerEventIngest`). Returns 404 if the
21
- * identifier is unknown. Requires scope: destination:list
22
- */
23
- retrieve(id, options) {
24
- return this._client.get((0, path_1.path) `/rest/v1/destination-types/${id}`, options);
25
- }
26
- }
27
- exports.DestinationTypes = DestinationTypes;
28
- //# sourceMappingURL=destination-types.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"destination-types.js","sourceRoot":"","sources":["../src/resources/destination-types.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAG/C,oDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;OAMG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,8BAA8B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF;AApBD,4CAoBC"}
@@ -1,24 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../core/resource.mjs";
3
- import { path } from "../internal/utils/path.mjs";
4
- export class DestinationTypes extends APIResource {
5
- /**
6
- * Lists every destination type the platform supports, with its human-readable
7
- * label, capability flags (oauth, listsAccounts, supportsRenamedEvents), and the
8
- * settings descriptor used to configure a destination of that type.
9
- * Account-agnostic — the response is the same for every API key. Requires scope:
10
- * destination:list
11
- */
12
- list(options) {
13
- return this._client.get('/rest/v1/destination-types', options);
14
- }
15
- /**
16
- * Fetch the descriptor for a single destination type by its identifier (e.g.
17
- * `Klaviyo`, `Facebook`, `GoogleDataManagerEventIngest`). Returns 404 if the
18
- * identifier is unknown. Requires scope: destination:list
19
- */
20
- retrieve(id, options) {
21
- return this._client.get(path `/rest/v1/destination-types/${id}`, options);
22
- }
23
- }
24
- //# sourceMappingURL=destination-types.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"destination-types.mjs","sourceRoot":"","sources":["../src/resources/destination-types.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAG/C,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;OAMG;IACH,IAAI,CAAC,OAAwB;QAC3B,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,OAAO,CAAC,CAAC;IACjE,CAAC;IAED;;;;OAIG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,8BAA8B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC3E,CAAC;CACF"}
@@ -1,101 +0,0 @@
1
- import { APIResource } from "../core/resource.mjs";
2
- import { APIPromise } from "../core/api-promise.mjs";
3
- import { RequestOptions } from "../internal/request-options.mjs";
4
- export declare class MappingTemplates extends APIResource {
5
- /**
6
- * Discover every mapping template available for a destination or source, with full
7
- * property descriptors inlined. Use the returned `id` as `templateId` when calling
8
- * `POST /rest/v1/mappings` (template fat-create variant), and use each entry under
9
- * `mappings[]` to learn the valid `property`, `kind`, `modificationOptions`, and
10
- * any enforced `options`. The `isDefault: true` entry is the destination's
11
- * built-in default template (the one stored at `MAPPER#{destinationId}` when
12
- * configured via `PUT /rest/v1/default-mappings/{destinationId}`). Requires scope:
13
- * mapping:find
14
- */
15
- list(query: MappingTemplateListParams, options?: RequestOptions): APIPromise<MappingTemplateListResponse>;
16
- }
17
- export interface MappingTemplateListResponse {
18
- entities: Array<MappingTemplateListResponse.Entity>;
19
- }
20
- export declare namespace MappingTemplateListResponse {
21
- interface Entity {
22
- /**
23
- * Template identifier — pass to `POST /rest/v1/mappings` as `templateId`.
24
- */
25
- id: string;
26
- /**
27
- * True for the destination's built-in default template (the one stored at
28
- * `MAPPER#{destinationId}` when configured). Sources only have one template; it is
29
- * always default.
30
- */
31
- isDefault: boolean;
32
- mappings: Array<Entity.Mapping>;
33
- name: string;
34
- description?: string | null;
35
- }
36
- namespace Entity {
37
- interface Mapping {
38
- /**
39
- * Long-form description / tooltip for this property.
40
- */
41
- description: string | null;
42
- isPII: boolean;
43
- /**
44
- * Type information for SDK validation (Text, Integer, Email, Url, IP, Object,
45
- * KnownObject, Date, DateTime, Array, Boolean, JSON).
46
- */
47
- kind: 'Array' | 'Boolean' | 'Date' | 'DateTime' | 'Email' | 'IP' | 'Integer' | 'JSON' | 'KnownObject' | 'Object' | 'Text' | 'Url';
48
- /**
49
- * Human-readable label (e.g. "Email", "Event Name").
50
- */
51
- label: string;
52
- /**
53
- * The template default source expression, e.g. `{{visitor.email}}`.
54
- */
55
- map: string;
56
- /**
57
- * The value to send as `mappings[].property` when creating or patching a mapping.
58
- */
59
- property: string;
60
- required: boolean;
61
- /**
62
- * The template default modification (hashing / case / URL truncation).
63
- */
64
- modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
65
- /**
66
- * Suggested modification options for this property. Not a whitelist.
67
- */
68
- modificationOptions?: Array<'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase'> | null;
69
- /**
70
- * When set, the ONLY valid `map` values for this property. Typically used for
71
- * enum-shaped destinations.
72
- */
73
- options?: Array<Mapping.Option> | null;
74
- /**
75
- * Non-binding suggestions for the `map` value (e.g. common event names a customer
76
- * might want to use).
77
- */
78
- suggestedOptions?: Array<Mapping.SuggestedOption> | null;
79
- }
80
- namespace Mapping {
81
- interface Option {
82
- label: string;
83
- value: string;
84
- }
85
- interface SuggestedOption {
86
- label: string;
87
- value: string;
88
- }
89
- }
90
- }
91
- }
92
- export interface MappingTemplateListParams {
93
- /**
94
- * Destination or source id. Required.
95
- */
96
- entityId: string;
97
- }
98
- export declare namespace MappingTemplates {
99
- export { type MappingTemplateListResponse as MappingTemplateListResponse, type MappingTemplateListParams as MappingTemplateListParams, };
100
- }
101
- //# sourceMappingURL=mapping-templates.d.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mapping-templates.d.mts","sourceRoot":"","sources":["../src/resources/mapping-templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAE7D,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;OASG;IACH,IAAI,CAAC,KAAK,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;CAG1G;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,KAAK,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC;CACrD;AAED,yBAAiB,2BAA2B,CAAC;IAC3C,UAAiB,MAAM;QACrB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;;;WAIG;QACH,SAAS,EAAE,OAAO,CAAC;QAEnB,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC;QAEhC,IAAI,EAAE,MAAM,CAAC;QAEb,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;KAC7B;IAED,UAAiB,MAAM,CA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AET;;;eAGG;YACH,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;YAEvC;;;eAGG;YACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;SAC1D;QAED,UAAiB,OAAO,CAAC;YACvB,UAAiB,MAAM;gBACrB,KAAK,EAAE,MAAM,CAAC;gBAEd,KAAK,EAAE,MAAM,CAAC;aACf;YAED,UAAiB,eAAe;gBAC9B,KAAK,EAAE,MAAM,CAAC;gBAEd,KAAK,EAAE,MAAM,CAAC;aACf;SACF;KACF;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -1,101 +0,0 @@
1
- import { APIResource } from "../core/resource.js";
2
- import { APIPromise } from "../core/api-promise.js";
3
- import { RequestOptions } from "../internal/request-options.js";
4
- export declare class MappingTemplates extends APIResource {
5
- /**
6
- * Discover every mapping template available for a destination or source, with full
7
- * property descriptors inlined. Use the returned `id` as `templateId` when calling
8
- * `POST /rest/v1/mappings` (template fat-create variant), and use each entry under
9
- * `mappings[]` to learn the valid `property`, `kind`, `modificationOptions`, and
10
- * any enforced `options`. The `isDefault: true` entry is the destination's
11
- * built-in default template (the one stored at `MAPPER#{destinationId}` when
12
- * configured via `PUT /rest/v1/default-mappings/{destinationId}`). Requires scope:
13
- * mapping:find
14
- */
15
- list(query: MappingTemplateListParams, options?: RequestOptions): APIPromise<MappingTemplateListResponse>;
16
- }
17
- export interface MappingTemplateListResponse {
18
- entities: Array<MappingTemplateListResponse.Entity>;
19
- }
20
- export declare namespace MappingTemplateListResponse {
21
- interface Entity {
22
- /**
23
- * Template identifier — pass to `POST /rest/v1/mappings` as `templateId`.
24
- */
25
- id: string;
26
- /**
27
- * True for the destination's built-in default template (the one stored at
28
- * `MAPPER#{destinationId}` when configured). Sources only have one template; it is
29
- * always default.
30
- */
31
- isDefault: boolean;
32
- mappings: Array<Entity.Mapping>;
33
- name: string;
34
- description?: string | null;
35
- }
36
- namespace Entity {
37
- interface Mapping {
38
- /**
39
- * Long-form description / tooltip for this property.
40
- */
41
- description: string | null;
42
- isPII: boolean;
43
- /**
44
- * Type information for SDK validation (Text, Integer, Email, Url, IP, Object,
45
- * KnownObject, Date, DateTime, Array, Boolean, JSON).
46
- */
47
- kind: 'Array' | 'Boolean' | 'Date' | 'DateTime' | 'Email' | 'IP' | 'Integer' | 'JSON' | 'KnownObject' | 'Object' | 'Text' | 'Url';
48
- /**
49
- * Human-readable label (e.g. "Email", "Event Name").
50
- */
51
- label: string;
52
- /**
53
- * The template default source expression, e.g. `{{visitor.email}}`.
54
- */
55
- map: string;
56
- /**
57
- * The value to send as `mappings[].property` when creating or patching a mapping.
58
- */
59
- property: string;
60
- required: boolean;
61
- /**
62
- * The template default modification (hashing / case / URL truncation).
63
- */
64
- modification?: 'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase' | null;
65
- /**
66
- * Suggested modification options for this property. Not a whitelist.
67
- */
68
- modificationOptions?: Array<'CamelCase' | 'DmaIP' | 'DomainOnly' | 'DomainPathOnly' | 'DomainPathUTMs' | 'DomainUTMs' | 'FakeDomain' | 'FakeDomainRealPath' | 'FakeIP' | 'FullUrl' | 'Hash' | 'HashMD5' | 'HashedCountry' | 'HashedDateOfBirth' | 'HashedGender' | 'HashedNormalized' | 'HashedNormalizedNoSpecialChars' | 'HashedPhone' | 'HashedState' | 'HashedZip' | 'KebabCase' | 'LowerCase' | 'None' | 'Null' | 'Redacted' | 'RegionalIP' | 'SnakeCase' | 'StartCase' | 'UpperCase'> | null;
69
- /**
70
- * When set, the ONLY valid `map` values for this property. Typically used for
71
- * enum-shaped destinations.
72
- */
73
- options?: Array<Mapping.Option> | null;
74
- /**
75
- * Non-binding suggestions for the `map` value (e.g. common event names a customer
76
- * might want to use).
77
- */
78
- suggestedOptions?: Array<Mapping.SuggestedOption> | null;
79
- }
80
- namespace Mapping {
81
- interface Option {
82
- label: string;
83
- value: string;
84
- }
85
- interface SuggestedOption {
86
- label: string;
87
- value: string;
88
- }
89
- }
90
- }
91
- }
92
- export interface MappingTemplateListParams {
93
- /**
94
- * Destination or source id. Required.
95
- */
96
- entityId: string;
97
- }
98
- export declare namespace MappingTemplates {
99
- export { type MappingTemplateListResponse as MappingTemplateListResponse, type MappingTemplateListParams as MappingTemplateListParams, };
100
- }
101
- //# sourceMappingURL=mapping-templates.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mapping-templates.d.ts","sourceRoot":"","sources":["../src/resources/mapping-templates.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,4BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,+BAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,uCAAoC;AAE7D,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;OASG;IACH,IAAI,CAAC,KAAK,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;CAG1G;AAED,MAAM,WAAW,2BAA2B;IAC1C,QAAQ,EAAE,KAAK,CAAC,2BAA2B,CAAC,MAAM,CAAC,CAAC;CACrD;AAED,yBA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AY,GACZ,YAAY,GACZ,oBAAoB,GACpB,QAAQ,GACR,SAAS,GACT,MAAM,GACN,SAAS,GACT,eAAe,GACf,mBAAmB,GACnB,cAAc,GACd,kBAAkB,GAClB,gCAAgC,GAChC,aAAa,GACb,aAAa,GACb,WAAW,GACX,WAAW,GACX,WAAW,GACX,MAAM,GACN,MAAM,GACN,UAAU,GACV,YAAY,GACZ,WAAW,GACX,WAAW,GACX,WAAW,CACd,GAAG,IAAI,CAAC;YAET;;;eAGG;YACH,OAAO,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;YAEvC;;;eAGG;YACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,OAAO,CAAC,eAAe,CAAC,GAAG,IAAI,CAAC;SAC1D;QAED,UAAiB,OAAO,CAAC;YACvB,UAAiB,MAAM;gBACrB,KAAK,EAAE,MAAM,CAAC;gBAEd,KAAK,EAAE,MAAM,CAAC;aACf;YAED,UAAiB,eAAe;gBAC9B,KAAK,EAAE,MAAM,CAAC;gBAEd,KAAK,EAAE,MAAM,CAAC;aACf;SACF;KACF;CACF;AAED,MAAM,WAAW,yBAAyB;IACxC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,gBAAgB,CAAC;IACxC,OAAO,EACL,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
@@ -1,22 +0,0 @@
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.MappingTemplates = void 0;
5
- const resource_1 = require("../core/resource.js");
6
- class MappingTemplates extends resource_1.APIResource {
7
- /**
8
- * Discover every mapping template available for a destination or source, with full
9
- * property descriptors inlined. Use the returned `id` as `templateId` when calling
10
- * `POST /rest/v1/mappings` (template fat-create variant), and use each entry under
11
- * `mappings[]` to learn the valid `property`, `kind`, `modificationOptions`, and
12
- * any enforced `options`. The `isDefault: true` entry is the destination's
13
- * built-in default template (the one stored at `MAPPER#{destinationId}` when
14
- * configured via `PUT /rest/v1/default-mappings/{destinationId}`). Requires scope:
15
- * mapping:find
16
- */
17
- list(query, options) {
18
- return this._client.get('/rest/v1/mapping-templates', { query, ...options });
19
- }
20
- }
21
- exports.MappingTemplates = MappingTemplates;
22
- //# sourceMappingURL=mapping-templates.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mapping-templates.js","sourceRoot":"","sources":["../src/resources/mapping-templates.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAI/C,MAAa,gBAAiB,SAAQ,sBAAW;IAC/C;;;;;;;;;OASG;IACH,IAAI,CAAC,KAAgC,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF;AAdD,4CAcC"}
@@ -1,18 +0,0 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
- import { APIResource } from "../core/resource.mjs";
3
- export class MappingTemplates extends APIResource {
4
- /**
5
- * Discover every mapping template available for a destination or source, with full
6
- * property descriptors inlined. Use the returned `id` as `templateId` when calling
7
- * `POST /rest/v1/mappings` (template fat-create variant), and use each entry under
8
- * `mappings[]` to learn the valid `property`, `kind`, `modificationOptions`, and
9
- * any enforced `options`. The `isDefault: true` entry is the destination's
10
- * built-in default template (the one stored at `MAPPER#{destinationId}` when
11
- * configured via `PUT /rest/v1/default-mappings/{destinationId}`). Requires scope:
12
- * mapping:find
13
- */
14
- list(query, options) {
15
- return this._client.get('/rest/v1/mapping-templates', { query, ...options });
16
- }
17
- }
18
- //# sourceMappingURL=mapping-templates.mjs.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"mapping-templates.mjs","sourceRoot":"","sources":["../src/resources/mapping-templates.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,MAAM,OAAO,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;;;;OASG;IACH,IAAI,CAAC,KAAgC,EAAE,OAAwB;QAC7D,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,4BAA4B,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/E,CAAC;CACF"}