@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
@@ -72,6 +72,51 @@ export class Mappings extends APIResource {
72
72
  reorder(body: MappingReorderParams, options?: RequestOptions): APIPromise<MappingReorderResponse> {
73
73
  return this._client.post('/rest/v1/mappings/reorder', { body, ...options });
74
74
  }
75
+
76
+ /**
77
+ * Discover every mapping template available for a destination or source, with full
78
+ * property descriptors inlined. Use the returned `id` as `templateId` when calling
79
+ * `POST /rest/v1/mappings` (template fat-create variant), and use each entry under
80
+ * `mappings[]` to learn the valid `property`, `kind`, `modificationOptions`, and
81
+ * any enforced `options`. The `isDefault: true` entry is the destination's
82
+ * built-in default template (the one stored at `MAPPER#{destinationId}` when
83
+ * configured via `PUT /rest/v1/default-mappings/{destinationId}`). Requires scope:
84
+ * mapping:find
85
+ */
86
+ templates(query: MappingTemplatesParams, options?: RequestOptions): APIPromise<MappingTemplatesResponse> {
87
+ return this._client.get('/rest/v1/mappings/templates', { query, ...options });
88
+ }
89
+
90
+ /**
91
+ * Lists the platform-provided variables that any mapping `value` can reference
92
+ * (e.g. `event.email`, `event.request_context.ip`, `visitor.id`). Account-agnostic
93
+ * discovery — use these paths as the right-hand side of a mapping field. Requires
94
+ * scope: variables:find-default
95
+ */
96
+ defaultVariables(options?: RequestOptions): APIPromise<MappingDefaultVariablesResponse> {
97
+ return this._client.get('/rest/v1/mappings/default-variables', options);
98
+ }
99
+
100
+ /**
101
+ * Lists the custom variables observed in this account’s recent event stream (last
102
+ * 14 days). These are dot-paths under `event.event_properties.*` that callers can
103
+ * target in mapping `value` fields. The result is cached for 10 minutes; an empty
104
+ * list means no custom properties have been seen yet for this account. Requires
105
+ * scope: variables:find-custom
106
+ */
107
+ customVariables(options?: RequestOptions): APIPromise<MappingCustomVariablesResponse> {
108
+ return this._client.get('/rest/v1/mappings/custom-variables', options);
109
+ }
110
+
111
+ /**
112
+ * Lists every value accepted on a mapping field’s `modification` property, with a
113
+ * human-readable label and one-sentence description. Account-agnostic. Use this
114
+ * alongside `GET /rest/v1/mapping-templates` to render a labelled modification
115
+ * picker without hardcoding the enum. Requires scope: variables:find-default
116
+ */
117
+ modifications(options?: RequestOptions): APIPromise<MappingModificationsResponse> {
118
+ return this._client.get('/rest/v1/mappings/modifications', options);
119
+ }
75
120
  }
76
121
 
77
122
  export type MappingListResponsesCursor = Cursor<MappingListResponse>;
@@ -449,6 +494,292 @@ export namespace MappingReorderResponse {
449
494
  }
450
495
  }
451
496
 
497
+ export interface MappingTemplatesResponse {
498
+ entities: Array<MappingTemplatesResponse.Entity>;
499
+ }
500
+
501
+ export namespace MappingTemplatesResponse {
502
+ export interface Entity {
503
+ /**
504
+ * Template identifier — pass to `POST /rest/v1/mappings` as `templateId`.
505
+ */
506
+ id: string;
507
+
508
+ /**
509
+ * True for the destination's built-in default template (the one stored at
510
+ * `MAPPER#{destinationId}` when configured). Sources only have one template; it is
511
+ * always default.
512
+ */
513
+ isDefault: boolean;
514
+
515
+ mappings: Array<Entity.Mapping>;
516
+
517
+ name: string;
518
+
519
+ description?: string | null;
520
+ }
521
+
522
+ export namespace Entity {
523
+ export interface Mapping {
524
+ /**
525
+ * Long-form description / tooltip for this property.
526
+ */
527
+ description: string | null;
528
+
529
+ isPII: boolean;
530
+
531
+ /**
532
+ * Type information for SDK validation (Text, Integer, Email, Url, IP, Object,
533
+ * KnownObject, Date, DateTime, Array, Boolean, JSON).
534
+ */
535
+ kind:
536
+ | 'Array'
537
+ | 'Boolean'
538
+ | 'Date'
539
+ | 'DateTime'
540
+ | 'Email'
541
+ | 'IP'
542
+ | 'Integer'
543
+ | 'JSON'
544
+ | 'KnownObject'
545
+ | 'Object'
546
+ | 'Text'
547
+ | 'Url';
548
+
549
+ /**
550
+ * Human-readable label (e.g. "Email", "Event Name").
551
+ */
552
+ label: string;
553
+
554
+ /**
555
+ * The template default source expression, e.g. `{{visitor.email}}`.
556
+ */
557
+ map: string;
558
+
559
+ /**
560
+ * The value to send as `mappings[].property` when creating or patching a mapping.
561
+ */
562
+ property: string;
563
+
564
+ required: boolean;
565
+
566
+ /**
567
+ * The template default modification (hashing / case / URL truncation).
568
+ */
569
+ modification?:
570
+ | 'CamelCase'
571
+ | 'DmaIP'
572
+ | 'DomainOnly'
573
+ | 'DomainPathOnly'
574
+ | 'DomainPathUTMs'
575
+ | 'DomainUTMs'
576
+ | 'FakeDomain'
577
+ | 'FakeDomainRealPath'
578
+ | 'FakeIP'
579
+ | 'FullUrl'
580
+ | 'Hash'
581
+ | 'HashMD5'
582
+ | 'HashedCountry'
583
+ | 'HashedDateOfBirth'
584
+ | 'HashedGender'
585
+ | 'HashedNormalized'
586
+ | 'HashedNormalizedNoSpecialChars'
587
+ | 'HashedPhone'
588
+ | 'HashedState'
589
+ | 'HashedZip'
590
+ | 'KebabCase'
591
+ | 'LowerCase'
592
+ | 'None'
593
+ | 'Null'
594
+ | 'Redacted'
595
+ | 'RegionalIP'
596
+ | 'SnakeCase'
597
+ | 'StartCase'
598
+ | 'UpperCase'
599
+ | null;
600
+
601
+ /**
602
+ * Suggested modification options for this property. Not a whitelist.
603
+ */
604
+ modificationOptions?: Array<
605
+ | 'CamelCase'
606
+ | 'DmaIP'
607
+ | 'DomainOnly'
608
+ | 'DomainPathOnly'
609
+ | 'DomainPathUTMs'
610
+ | 'DomainUTMs'
611
+ | 'FakeDomain'
612
+ | 'FakeDomainRealPath'
613
+ | 'FakeIP'
614
+ | 'FullUrl'
615
+ | 'Hash'
616
+ | 'HashMD5'
617
+ | 'HashedCountry'
618
+ | 'HashedDateOfBirth'
619
+ | 'HashedGender'
620
+ | 'HashedNormalized'
621
+ | 'HashedNormalizedNoSpecialChars'
622
+ | 'HashedPhone'
623
+ | 'HashedState'
624
+ | 'HashedZip'
625
+ | 'KebabCase'
626
+ | 'LowerCase'
627
+ | 'None'
628
+ | 'Null'
629
+ | 'Redacted'
630
+ | 'RegionalIP'
631
+ | 'SnakeCase'
632
+ | 'StartCase'
633
+ | 'UpperCase'
634
+ > | null;
635
+
636
+ /**
637
+ * When set, the ONLY valid `map` values for this property. Typically used for
638
+ * enum-shaped destinations.
639
+ */
640
+ options?: Array<Mapping.Option> | null;
641
+
642
+ /**
643
+ * Non-binding suggestions for the `map` value (e.g. common event names a customer
644
+ * might want to use).
645
+ */
646
+ suggestedOptions?: Array<Mapping.SuggestedOption> | null;
647
+ }
648
+
649
+ export namespace Mapping {
650
+ export interface Option {
651
+ label: string;
652
+
653
+ value: string;
654
+ }
655
+
656
+ export interface SuggestedOption {
657
+ label: string;
658
+
659
+ value: string;
660
+ }
661
+ }
662
+ }
663
+ }
664
+
665
+ export interface MappingDefaultVariablesResponse {
666
+ entities: Array<MappingDefaultVariablesResponse.Entity>;
667
+ }
668
+
669
+ export namespace MappingDefaultVariablesResponse {
670
+ export interface Entity {
671
+ /**
672
+ * Sample values observed for this path (empty for unsampled defaults).
673
+ */
674
+ examples: Array<string>;
675
+
676
+ /**
677
+ * Human-readable display name.
678
+ */
679
+ name: string;
680
+
681
+ /**
682
+ * Dot-path used in mapping `value` fields (e.g. `event.email`).
683
+ */
684
+ path: string;
685
+
686
+ /**
687
+ * Relative popularity rank. Higher means more frequently set across events.
688
+ */
689
+ popularity: number;
690
+
691
+ /**
692
+ * Optional long-form context shown in the variable dictionary drawer.
693
+ */
694
+ advancedInfo?: string | null;
695
+ }
696
+ }
697
+
698
+ export interface MappingCustomVariablesResponse {
699
+ entities: Array<MappingCustomVariablesResponse.Entity>;
700
+ }
701
+
702
+ export namespace MappingCustomVariablesResponse {
703
+ export interface Entity {
704
+ /**
705
+ * Sample values observed for this path (empty for unsampled defaults).
706
+ */
707
+ examples: Array<string>;
708
+
709
+ /**
710
+ * Human-readable display name.
711
+ */
712
+ name: string;
713
+
714
+ /**
715
+ * Dot-path used in mapping `value` fields (e.g. `event.email`).
716
+ */
717
+ path: string;
718
+
719
+ /**
720
+ * Relative popularity rank. Higher means more frequently set across events.
721
+ */
722
+ popularity: number;
723
+
724
+ /**
725
+ * Optional long-form context shown in the variable dictionary drawer.
726
+ */
727
+ advancedInfo?: string | null;
728
+ }
729
+ }
730
+
731
+ export interface MappingModificationsResponse {
732
+ entities: Array<MappingModificationsResponse.Entity>;
733
+ }
734
+
735
+ export namespace MappingModificationsResponse {
736
+ export interface Entity {
737
+ /**
738
+ * One-sentence explanation of what the modification does to the mapped value.
739
+ */
740
+ description: string;
741
+
742
+ /**
743
+ * Short human-readable name (suitable for picker labels).
744
+ */
745
+ label: string;
746
+
747
+ /**
748
+ * Enum value to send on `modification` fields when authoring a mapping.
749
+ */
750
+ value:
751
+ | 'CamelCase'
752
+ | 'DmaIP'
753
+ | 'DomainOnly'
754
+ | 'DomainPathOnly'
755
+ | 'DomainPathUTMs'
756
+ | 'DomainUTMs'
757
+ | 'FakeDomain'
758
+ | 'FakeDomainRealPath'
759
+ | 'FakeIP'
760
+ | 'FullUrl'
761
+ | 'Hash'
762
+ | 'HashMD5'
763
+ | 'HashedCountry'
764
+ | 'HashedDateOfBirth'
765
+ | 'HashedGender'
766
+ | 'HashedNormalized'
767
+ | 'HashedNormalizedNoSpecialChars'
768
+ | 'HashedPhone'
769
+ | 'HashedState'
770
+ | 'HashedZip'
771
+ | 'KebabCase'
772
+ | 'LowerCase'
773
+ | 'None'
774
+ | 'Null'
775
+ | 'Redacted'
776
+ | 'RegionalIP'
777
+ | 'SnakeCase'
778
+ | 'StartCase'
779
+ | 'UpperCase';
780
+ }
781
+ }
782
+
452
783
  export interface MappingListParams extends CursorParams {
453
784
  /**
454
785
  * Filter mappings by their parent entity id. Must be a destination id or source
@@ -759,6 +1090,13 @@ export interface MappingReorderParams {
759
1090
  uuids: Array<string>;
760
1091
  }
761
1092
 
1093
+ export interface MappingTemplatesParams {
1094
+ /**
1095
+ * Destination or source id. Required.
1096
+ */
1097
+ entityId: string;
1098
+ }
1099
+
762
1100
  export declare namespace Mappings {
763
1101
  export {
764
1102
  type MappingListResponse as MappingListResponse,
@@ -767,10 +1105,15 @@ export declare namespace Mappings {
767
1105
  type MappingUpdateResponse as MappingUpdateResponse,
768
1106
  type MappingDeleteResponse as MappingDeleteResponse,
769
1107
  type MappingReorderResponse as MappingReorderResponse,
1108
+ type MappingTemplatesResponse as MappingTemplatesResponse,
1109
+ type MappingDefaultVariablesResponse as MappingDefaultVariablesResponse,
1110
+ type MappingCustomVariablesResponse as MappingCustomVariablesResponse,
1111
+ type MappingModificationsResponse as MappingModificationsResponse,
770
1112
  type MappingListResponsesCursor as MappingListResponsesCursor,
771
1113
  type MappingListParams as MappingListParams,
772
1114
  type MappingCreateParams as MappingCreateParams,
773
1115
  type MappingUpdateParams as MappingUpdateParams,
774
1116
  type MappingReorderParams as MappingReorderParams,
1117
+ type MappingTemplatesParams as MappingTemplatesParams,
775
1118
  };
776
1119
  }
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '1.21.0'; // x-release-please-version
1
+ export const VERSION = '1.22.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.21.0";
1
+ export declare const VERSION = "1.22.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "1.21.0";
1
+ export declare const VERSION = "1.22.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '1.21.0'; // x-release-please-version
4
+ exports.VERSION = '1.22.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '1.21.0'; // x-release-please-version
1
+ export const VERSION = '1.22.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map
@@ -1,146 +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 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.mts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"destination-types.d.mts","sourceRoot":"","sources":["../src/resources/destination-types.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAC/C,OAAO,EAAE,UAAU,EAAE,gCAA4B;AACjD,OAAO,EAAE,cAAc,EAAE,wCAAoC;AAG7D,qBAAa,gBAAiB,SAAQ,WAAW;IAC/C;;;;;;OAMG;IACH,IAAI,CAAC,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAIvE;;;;OAIG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,+BAA+B,CAAC;CAG5F;AAED,M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