@oursprivacy/platform-sdk 1.12.0 → 1.13.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.
- package/CHANGELOG.md +16 -0
- package/README.md +31 -0
- package/client.d.mts +32 -14
- package/client.d.mts.map +1 -1
- package/client.d.ts +32 -14
- package/client.d.ts.map +1 -1
- package/client.js +26 -4
- package/client.js.map +1 -1
- package/client.mjs +26 -4
- package/client.mjs.map +1 -1
- package/core/pagination.d.mts +60 -0
- package/core/pagination.d.mts.map +1 -0
- package/core/pagination.d.ts +60 -0
- package/core/pagination.d.ts.map +1 -0
- package/core/pagination.js +101 -0
- package/core/pagination.js.map +1 -0
- package/core/pagination.mjs +95 -0
- package/core/pagination.mjs.map +1 -0
- package/index.d.mts +1 -0
- package/index.d.mts.map +1 -1
- package/index.d.ts +1 -0
- package/index.d.ts.map +1 -1
- package/index.js +3 -1
- package/index.js.map +1 -1
- package/index.mjs +1 -0
- package/index.mjs.map +1 -1
- package/package.json +11 -1
- package/pagination.d.mts +2 -0
- package/pagination.d.mts.map +1 -0
- package/pagination.d.ts +2 -0
- package/pagination.d.ts.map +1 -0
- package/pagination.js +6 -0
- package/pagination.js.map +1 -0
- package/pagination.mjs +2 -0
- package/pagination.mjs.map +1 -0
- package/resources/allowed-events.d.mts +18 -18
- package/resources/allowed-events.d.mts.map +1 -1
- package/resources/allowed-events.d.ts +18 -18
- package/resources/allowed-events.d.ts.map +1 -1
- package/resources/allowed-events.js +7 -7
- package/resources/allowed-events.js.map +1 -1
- package/resources/allowed-events.mjs +7 -7
- package/resources/allowed-events.mjs.map +1 -1
- package/resources/consent-settings.d.mts +2568 -124
- package/resources/consent-settings.d.mts.map +1 -1
- package/resources/consent-settings.d.ts +2568 -124
- package/resources/consent-settings.d.ts.map +1 -1
- package/resources/consent-settings.js +24 -7
- package/resources/consent-settings.js.map +1 -1
- package/resources/consent-settings.mjs +24 -7
- package/resources/consent-settings.mjs.map +1 -1
- package/resources/destinations.d.mts +33 -32
- package/resources/destinations.d.mts.map +1 -1
- package/resources/destinations.d.ts +33 -32
- package/resources/destinations.d.ts.map +1 -1
- package/resources/destinations.js +8 -7
- package/resources/destinations.js.map +1 -1
- package/resources/destinations.mjs +8 -7
- package/resources/destinations.mjs.map +1 -1
- package/resources/experiment-settings.d.mts +277 -0
- package/resources/experiment-settings.d.mts.map +1 -0
- package/resources/experiment-settings.d.ts +277 -0
- package/resources/experiment-settings.d.ts.map +1 -0
- package/resources/experiment-settings.js +77 -0
- package/resources/experiment-settings.js.map +1 -0
- package/resources/experiment-settings.mjs +73 -0
- package/resources/experiment-settings.mjs.map +1 -0
- package/resources/experiment-variants.d.mts +659 -0
- package/resources/experiment-variants.d.mts.map +1 -0
- package/resources/experiment-variants.d.ts +659 -0
- package/resources/experiment-variants.d.ts.map +1 -0
- package/resources/experiment-variants.js +79 -0
- package/resources/experiment-variants.js.map +1 -0
- package/resources/experiment-variants.mjs +75 -0
- package/resources/experiment-variants.mjs.map +1 -0
- package/resources/experiments.d.mts +2002 -0
- package/resources/experiments.d.mts.map +1 -0
- package/resources/experiments.d.ts +2002 -0
- package/resources/experiments.d.ts.map +1 -0
- package/resources/experiments.js +166 -0
- package/resources/experiments.js.map +1 -0
- package/resources/experiments.mjs +162 -0
- package/resources/experiments.mjs.map +1 -0
- package/resources/global-dispatch-centers.d.mts +125 -58
- package/resources/global-dispatch-centers.d.mts.map +1 -1
- package/resources/global-dispatch-centers.d.ts +125 -58
- package/resources/global-dispatch-centers.d.ts.map +1 -1
- package/resources/global-dispatch-centers.js +10 -7
- package/resources/global-dispatch-centers.js.map +1 -1
- package/resources/global-dispatch-centers.mjs +10 -7
- package/resources/global-dispatch-centers.mjs.map +1 -1
- package/resources/index.d.mts +11 -7
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +11 -7
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +9 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +4 -0
- package/resources/index.mjs.map +1 -1
- package/resources/mappings.d.mts +136 -0
- package/resources/mappings.d.mts.map +1 -0
- package/resources/mappings.d.ts +136 -0
- package/resources/mappings.d.ts.map +1 -0
- package/resources/mappings.js +41 -0
- package/resources/mappings.js.map +1 -0
- package/resources/mappings.mjs +37 -0
- package/resources/mappings.mjs.map +1 -0
- package/resources/replay-settings.d.mts +48 -48
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +48 -48
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +13 -8
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +13 -8
- package/resources/replay-settings.mjs.map +1 -1
- package/resources/sources.d.mts +64 -27
- package/resources/sources.d.mts.map +1 -1
- package/resources/sources.d.ts +64 -27
- package/resources/sources.d.ts.map +1 -1
- package/resources/sources.js +14 -7
- package/resources/sources.js.map +1 -1
- package/resources/sources.mjs +14 -7
- package/resources/sources.mjs.map +1 -1
- package/resources/versions.d.mts +742 -16
- package/resources/versions.d.mts.map +1 -1
- package/resources/versions.d.ts +742 -16
- package/resources/versions.d.ts.map +1 -1
- package/resources/versions.js +45 -5
- package/resources/versions.js.map +1 -1
- package/resources/versions.mjs +45 -5
- package/resources/versions.mjs.map +1 -1
- package/src/client.ts +206 -29
- package/src/core/pagination.ts +165 -0
- package/src/index.ts +1 -0
- package/src/pagination.ts +2 -0
- package/src/resources/allowed-events.ts +27 -27
- package/src/resources/consent-settings.ts +3036 -244
- package/src/resources/destinations.ts +128 -127
- package/src/resources/experiment-settings.ts +367 -0
- package/src/resources/experiment-variants.ts +870 -0
- package/src/resources/experiments.ts +2446 -0
- package/src/resources/global-dispatch-centers.ts +155 -65
- package/src/resources/index.ts +75 -7
- package/src/resources/mappings.ts +230 -0
- package/src/resources/replay-settings.ts +67 -59
- package/src/resources/sources.ts +116 -71
- package/src/resources/versions.ts +1130 -17
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.mjs";
|
|
2
2
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
|
+
import { Cursor, type CursorParams, PagePromise } from "../core/pagination.mjs";
|
|
3
4
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
5
|
export declare class ReplaySettings extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List the replay configurations on this account. Supports cursor pagination via
|
|
8
|
+
* `limit` and `cursor`. Replay settings control which domains may capture session
|
|
9
|
+
* replays and where the capture script is hosted. Requires scope:
|
|
10
|
+
* replaySettings:list
|
|
11
|
+
*/
|
|
12
|
+
list(query?: ReplaySettingListParams | null | undefined, options?: RequestOptions): PagePromise<ReplaySettingListResponsesCursor, ReplaySettingListResponse>;
|
|
5
13
|
/**
|
|
6
14
|
* Create the replay configuration for this account. Each account is limited to one
|
|
7
15
|
* replay configuration — calls made when one already exists return HTTP 409 with
|
|
@@ -20,18 +28,49 @@ export declare class ReplaySettings extends APIResource {
|
|
|
20
28
|
* Requires scope: replaySettings:update
|
|
21
29
|
*/
|
|
22
30
|
update(id: string, body: ReplaySettingUpdateParams, options?: RequestOptions): APIPromise<ReplaySettingUpdateResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* List the replay configurations on this account. Replay settings control which
|
|
25
|
-
* domains may capture session replays and where the capture script is hosted.
|
|
26
|
-
* Requires scope: replaySettings:list
|
|
27
|
-
*/
|
|
28
|
-
list(options?: RequestOptions): APIPromise<ReplaySettingListResponse>;
|
|
29
31
|
/**
|
|
30
32
|
* Delete the replay configuration. Capture stops immediately for all whitelisted
|
|
31
33
|
* domains. Requires scope: replaySettings:delete
|
|
32
34
|
*/
|
|
33
35
|
delete(id: string, options?: RequestOptions): APIPromise<ReplaySettingDeleteResponse>;
|
|
34
36
|
}
|
|
37
|
+
export type ReplaySettingListResponsesCursor = Cursor<ReplaySettingListResponse>;
|
|
38
|
+
export interface ReplaySettingListResponse {
|
|
39
|
+
/**
|
|
40
|
+
* Stable identifier (UUID) for this replay configuration.
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* ISO-8601 timestamp when this configuration was created.
|
|
45
|
+
*/
|
|
46
|
+
createdAt: string;
|
|
47
|
+
/**
|
|
48
|
+
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
49
|
+
* be empty.
|
|
50
|
+
*/
|
|
51
|
+
name: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
54
|
+
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
55
|
+
* without losing the configuration.
|
|
56
|
+
*/
|
|
57
|
+
status: 'Disabled' | 'Enabled';
|
|
58
|
+
/**
|
|
59
|
+
* Optional custom domain (CNAME) for hosting the replay capture script. Leave null
|
|
60
|
+
* to use the default Ours Privacy domain.
|
|
61
|
+
*/
|
|
62
|
+
customDomain?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* ISO-8601 timestamp of the most recent update, or null if never updated.
|
|
65
|
+
*/
|
|
66
|
+
updatedAt?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Hostnames where session replay capture is permitted. Replays initiated from any
|
|
69
|
+
* host not in this list are dropped. PATCH replaces the list — partial updates are
|
|
70
|
+
* not merged.
|
|
71
|
+
*/
|
|
72
|
+
whitelistDomains?: Array<string> | null;
|
|
73
|
+
}
|
|
35
74
|
export interface ReplaySettingCreateResponse {
|
|
36
75
|
isSuccess: boolean;
|
|
37
76
|
cause?: string | null;
|
|
@@ -78,52 +117,13 @@ export interface ReplaySettingUpdateResponse {
|
|
|
78
117
|
cause?: string | null;
|
|
79
118
|
replaySettings?: unknown | null;
|
|
80
119
|
}
|
|
81
|
-
export interface ReplaySettingListResponse {
|
|
82
|
-
entities: Array<ReplaySettingListResponse.Entity>;
|
|
83
|
-
}
|
|
84
|
-
export declare namespace ReplaySettingListResponse {
|
|
85
|
-
interface Entity {
|
|
86
|
-
/**
|
|
87
|
-
* Stable identifier (UUID) for this replay configuration.
|
|
88
|
-
*/
|
|
89
|
-
id: string;
|
|
90
|
-
/**
|
|
91
|
-
* ISO-8601 timestamp when this configuration was created.
|
|
92
|
-
*/
|
|
93
|
-
createdAt: string;
|
|
94
|
-
/**
|
|
95
|
-
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
96
|
-
* be empty.
|
|
97
|
-
*/
|
|
98
|
-
name: string;
|
|
99
|
-
/**
|
|
100
|
-
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
101
|
-
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
102
|
-
* without losing the configuration.
|
|
103
|
-
*/
|
|
104
|
-
status: 'Disabled' | 'Enabled';
|
|
105
|
-
/**
|
|
106
|
-
* Optional custom domain (CNAME) for hosting the replay capture script. Leave null
|
|
107
|
-
* to use the default Ours Privacy domain.
|
|
108
|
-
*/
|
|
109
|
-
customDomain?: string | null;
|
|
110
|
-
/**
|
|
111
|
-
* ISO-8601 timestamp of the most recent update, or null if never updated.
|
|
112
|
-
*/
|
|
113
|
-
updatedAt?: string | null;
|
|
114
|
-
/**
|
|
115
|
-
* Hostnames where session replay capture is permitted. Replays initiated from any
|
|
116
|
-
* host not in this list are dropped. PATCH replaces the list — partial updates are
|
|
117
|
-
* not merged.
|
|
118
|
-
*/
|
|
119
|
-
whitelistDomains?: Array<string> | null;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
120
|
export interface ReplaySettingDeleteResponse {
|
|
123
121
|
isSuccess: boolean;
|
|
124
122
|
cause?: string | null;
|
|
125
123
|
replaySettings?: unknown | null;
|
|
126
124
|
}
|
|
125
|
+
export interface ReplaySettingListParams extends CursorParams {
|
|
126
|
+
}
|
|
127
127
|
export interface ReplaySettingCreateParams {
|
|
128
128
|
/**
|
|
129
129
|
* Optional custom domain (CNAME) for hosting the replay capture script. Leave null
|
|
@@ -173,6 +173,6 @@ export interface ReplaySettingUpdateParams {
|
|
|
173
173
|
whitelistDomains?: Array<string> | null;
|
|
174
174
|
}
|
|
175
175
|
export declare namespace ReplaySettings {
|
|
176
|
-
export { type ReplaySettingCreateResponse as ReplaySettingCreateResponse, type ReplaySettingRetrieveResponse as ReplaySettingRetrieveResponse, type ReplaySettingUpdateResponse as ReplaySettingUpdateResponse, type
|
|
176
|
+
export { type ReplaySettingListResponse as ReplaySettingListResponse, type ReplaySettingCreateResponse as ReplaySettingCreateResponse, type ReplaySettingRetrieveResponse as ReplaySettingRetrieveResponse, type ReplaySettingUpdateResponse as ReplaySettingUpdateResponse, type ReplaySettingDeleteResponse as ReplaySettingDeleteResponse, type ReplaySettingListResponsesCursor as ReplaySettingListResponsesCursor, type ReplaySettingListParams as ReplaySettingListParams, type ReplaySettingCreateParams as ReplaySettingCreateParams, type ReplaySettingUpdateParams as ReplaySettingUpdateParams, };
|
|
177
177
|
}
|
|
178
178
|
//# sourceMappingURL=replay-settings.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-settings.d.mts","sourceRoot":"","sources":["../src/resources/replay-settings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAI1G;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,GAAG,IAAI,CAAC;IAIhG;;;;;OAKG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C
|
|
1
|
+
{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AM,GAAG,IAAI,CAAC;IAErB;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,IAAI,CAAC;IAEvC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACzC;AAED,MAAM,WAAW,yBAAyB;IACxC;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAE7B;;;OAGG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,CAAC;IAErB;;;;OAIG;IACH,MAAM,CAAC,EAAE,UAAU,GAAG,SAAS,GAAG,IAAI,CAAC;IAEvC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -1,7 +1,15 @@
|
|
|
1
1
|
import { APIResource } from "../core/resource.js";
|
|
2
2
|
import { APIPromise } from "../core/api-promise.js";
|
|
3
|
+
import { Cursor, type CursorParams, PagePromise } from "../core/pagination.js";
|
|
3
4
|
import { RequestOptions } from "../internal/request-options.js";
|
|
4
5
|
export declare class ReplaySettings extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List the replay configurations on this account. Supports cursor pagination via
|
|
8
|
+
* `limit` and `cursor`. Replay settings control which domains may capture session
|
|
9
|
+
* replays and where the capture script is hosted. Requires scope:
|
|
10
|
+
* replaySettings:list
|
|
11
|
+
*/
|
|
12
|
+
list(query?: ReplaySettingListParams | null | undefined, options?: RequestOptions): PagePromise<ReplaySettingListResponsesCursor, ReplaySettingListResponse>;
|
|
5
13
|
/**
|
|
6
14
|
* Create the replay configuration for this account. Each account is limited to one
|
|
7
15
|
* replay configuration — calls made when one already exists return HTTP 409 with
|
|
@@ -20,18 +28,49 @@ export declare class ReplaySettings extends APIResource {
|
|
|
20
28
|
* Requires scope: replaySettings:update
|
|
21
29
|
*/
|
|
22
30
|
update(id: string, body: ReplaySettingUpdateParams, options?: RequestOptions): APIPromise<ReplaySettingUpdateResponse>;
|
|
23
|
-
/**
|
|
24
|
-
* List the replay configurations on this account. Replay settings control which
|
|
25
|
-
* domains may capture session replays and where the capture script is hosted.
|
|
26
|
-
* Requires scope: replaySettings:list
|
|
27
|
-
*/
|
|
28
|
-
list(options?: RequestOptions): APIPromise<ReplaySettingListResponse>;
|
|
29
31
|
/**
|
|
30
32
|
* Delete the replay configuration. Capture stops immediately for all whitelisted
|
|
31
33
|
* domains. Requires scope: replaySettings:delete
|
|
32
34
|
*/
|
|
33
35
|
delete(id: string, options?: RequestOptions): APIPromise<ReplaySettingDeleteResponse>;
|
|
34
36
|
}
|
|
37
|
+
export type ReplaySettingListResponsesCursor = Cursor<ReplaySettingListResponse>;
|
|
38
|
+
export interface ReplaySettingListResponse {
|
|
39
|
+
/**
|
|
40
|
+
* Stable identifier (UUID) for this replay configuration.
|
|
41
|
+
*/
|
|
42
|
+
id: string;
|
|
43
|
+
/**
|
|
44
|
+
* ISO-8601 timestamp when this configuration was created.
|
|
45
|
+
*/
|
|
46
|
+
createdAt: string;
|
|
47
|
+
/**
|
|
48
|
+
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
49
|
+
* be empty.
|
|
50
|
+
*/
|
|
51
|
+
name: string;
|
|
52
|
+
/**
|
|
53
|
+
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
54
|
+
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
55
|
+
* without losing the configuration.
|
|
56
|
+
*/
|
|
57
|
+
status: 'Disabled' | 'Enabled';
|
|
58
|
+
/**
|
|
59
|
+
* Optional custom domain (CNAME) for hosting the replay capture script. Leave null
|
|
60
|
+
* to use the default Ours Privacy domain.
|
|
61
|
+
*/
|
|
62
|
+
customDomain?: string | null;
|
|
63
|
+
/**
|
|
64
|
+
* ISO-8601 timestamp of the most recent update, or null if never updated.
|
|
65
|
+
*/
|
|
66
|
+
updatedAt?: string | null;
|
|
67
|
+
/**
|
|
68
|
+
* Hostnames where session replay capture is permitted. Replays initiated from any
|
|
69
|
+
* host not in this list are dropped. PATCH replaces the list — partial updates are
|
|
70
|
+
* not merged.
|
|
71
|
+
*/
|
|
72
|
+
whitelistDomains?: Array<string> | null;
|
|
73
|
+
}
|
|
35
74
|
export interface ReplaySettingCreateResponse {
|
|
36
75
|
isSuccess: boolean;
|
|
37
76
|
cause?: string | null;
|
|
@@ -78,52 +117,13 @@ export interface ReplaySettingUpdateResponse {
|
|
|
78
117
|
cause?: string | null;
|
|
79
118
|
replaySettings?: unknown | null;
|
|
80
119
|
}
|
|
81
|
-
export interface ReplaySettingListResponse {
|
|
82
|
-
entities: Array<ReplaySettingListResponse.Entity>;
|
|
83
|
-
}
|
|
84
|
-
export declare namespace ReplaySettingListResponse {
|
|
85
|
-
interface Entity {
|
|
86
|
-
/**
|
|
87
|
-
* Stable identifier (UUID) for this replay configuration.
|
|
88
|
-
*/
|
|
89
|
-
id: string;
|
|
90
|
-
/**
|
|
91
|
-
* ISO-8601 timestamp when this configuration was created.
|
|
92
|
-
*/
|
|
93
|
-
createdAt: string;
|
|
94
|
-
/**
|
|
95
|
-
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
96
|
-
* be empty.
|
|
97
|
-
*/
|
|
98
|
-
name: string;
|
|
99
|
-
/**
|
|
100
|
-
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
101
|
-
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
102
|
-
* without losing the configuration.
|
|
103
|
-
*/
|
|
104
|
-
status: 'Disabled' | 'Enabled';
|
|
105
|
-
/**
|
|
106
|
-
* Optional custom domain (CNAME) for hosting the replay capture script. Leave null
|
|
107
|
-
* to use the default Ours Privacy domain.
|
|
108
|
-
*/
|
|
109
|
-
customDomain?: string | null;
|
|
110
|
-
/**
|
|
111
|
-
* ISO-8601 timestamp of the most recent update, or null if never updated.
|
|
112
|
-
*/
|
|
113
|
-
updatedAt?: string | null;
|
|
114
|
-
/**
|
|
115
|
-
* Hostnames where session replay capture is permitted. Replays initiated from any
|
|
116
|
-
* host not in this list are dropped. PATCH replaces the list — partial updates are
|
|
117
|
-
* not merged.
|
|
118
|
-
*/
|
|
119
|
-
whitelistDomains?: Array<string> | null;
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
120
|
export interface ReplaySettingDeleteResponse {
|
|
123
121
|
isSuccess: boolean;
|
|
124
122
|
cause?: string | null;
|
|
125
123
|
replaySettings?: unknown | null;
|
|
126
124
|
}
|
|
125
|
+
export interface ReplaySettingListParams extends CursorParams {
|
|
126
|
+
}
|
|
127
127
|
export interface ReplaySettingCreateParams {
|
|
128
128
|
/**
|
|
129
129
|
* Optional custom domain (CNAME) for hosting the replay capture script. Leave null
|
|
@@ -173,6 +173,6 @@ export interface ReplaySettingUpdateParams {
|
|
|
173
173
|
whitelistDomains?: Array<string> | null;
|
|
174
174
|
}
|
|
175
175
|
export declare namespace ReplaySettings {
|
|
176
|
-
export { type ReplaySettingCreateResponse as ReplaySettingCreateResponse, type ReplaySettingRetrieveResponse as ReplaySettingRetrieveResponse, type ReplaySettingUpdateResponse as ReplaySettingUpdateResponse, type
|
|
176
|
+
export { type ReplaySettingListResponse as ReplaySettingListResponse, type ReplaySettingCreateResponse as ReplaySettingCreateResponse, type ReplaySettingRetrieveResponse as ReplaySettingRetrieveResponse, type ReplaySettingUpdateResponse as ReplaySettingUpdateResponse, type ReplaySettingDeleteResponse as ReplaySettingDeleteResponse, type ReplaySettingListResponsesCursor as ReplaySettingListResponsesCursor, type ReplaySettingListParams as ReplaySettingListParams, type ReplaySettingCreateParams as ReplaySettingCreateParams, type ReplaySettingUpdateParams as ReplaySettingUpdateParams, };
|
|
177
177
|
}
|
|
178
178
|
//# sourceMappingURL=replay-settings.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-settings.d.ts","sourceRoot":"","sources":["../src/resources/replay-settings.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,cAAe,SAAQ,WAAW;IAC7C;;;;OAIG;IACH,MAAM,CAAC,IAAI,EAAE,yBAAyB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,2BAA2B,CAAC;IAI1G;;;OAGG;IACH,QAAQ,CAAC,EAAE,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,6BAA6B,GAAG,IAAI,CAAC;IAIhG;;;;;OAKG;IACH,MAAM,CACJ,EAAE,EAAE,MAAM,EACV,IAAI,EAAE,yBAAyB,EAC/B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,2BAA2B,CAAC;IAI1C
|
|
1
|
+
{"version":3,"file":"replay-settings.d.ts","sourceRoot":"","sources":["../src/resources/replay-settings.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,cAAe,SAAQ,WAAW;IAC7C;;;;;OAKG;IACH,IAAI,CACF,KAAK,GAAE,uBAAuB,GAAG,IAAI,GAAG,SAAc,EACtD,OAAO,CAAC,EAAE,cAAc,GACvB,WAAW,CAAC,gCAAgC,EAAE,yBAAy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U,GAAG,SAAS,GAAG,IAAI,CAAC;IAEvC;;;;OAIG;IACH,gBAAgB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,CAAC;CACzC;AAED,MAAM,CAAC,OAAO,WAAW,cAAc,CAAC;IACtC,OAAO,EACL,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,6BAA6B,IAAI,6BAA6B,EACnE,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,GAC5D,CAAC;CACH"}
|
|
@@ -3,8 +3,21 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
4
4
|
exports.ReplaySettings = void 0;
|
|
5
5
|
const resource_1 = require("../core/resource.js");
|
|
6
|
+
const pagination_1 = require("../core/pagination.js");
|
|
6
7
|
const path_1 = require("../internal/utils/path.js");
|
|
7
8
|
class ReplaySettings extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List the replay configurations on this account. Supports cursor pagination via
|
|
11
|
+
* `limit` and `cursor`. Replay settings control which domains may capture session
|
|
12
|
+
* replays and where the capture script is hosted. Requires scope:
|
|
13
|
+
* replaySettings:list
|
|
14
|
+
*/
|
|
15
|
+
list(query = {}, options) {
|
|
16
|
+
return this._client.getAPIList('/rest/v1/replay-settings', (pagination_1.Cursor), {
|
|
17
|
+
query,
|
|
18
|
+
...options,
|
|
19
|
+
});
|
|
20
|
+
}
|
|
8
21
|
/**
|
|
9
22
|
* Create the replay configuration for this account. Each account is limited to one
|
|
10
23
|
* replay configuration — calls made when one already exists return HTTP 409 with
|
|
@@ -29,14 +42,6 @@ class ReplaySettings extends resource_1.APIResource {
|
|
|
29
42
|
update(id, body, options) {
|
|
30
43
|
return this._client.patch((0, path_1.path) `/rest/v1/replay-settings/${id}`, { body, ...options });
|
|
31
44
|
}
|
|
32
|
-
/**
|
|
33
|
-
* List the replay configurations on this account. Replay settings control which
|
|
34
|
-
* domains may capture session replays and where the capture script is hosted.
|
|
35
|
-
* Requires scope: replaySettings:list
|
|
36
|
-
*/
|
|
37
|
-
list(options) {
|
|
38
|
-
return this._client.get('/rest/v1/replay-settings', options);
|
|
39
|
-
}
|
|
40
45
|
/**
|
|
41
46
|
* Delete the replay configuration. Capture stops immediately for all whitelisted
|
|
42
47
|
* domains. Requires scope: replaySettings:delete
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-settings.js","sourceRoot":"","sources":["../src/resources/replay-settings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;
|
|
1
|
+
{"version":3,"file":"replay-settings.js","sourceRoot":"","sources":["../src/resources/replay-settings.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,kDAA+C;AAE/C,sDAA4E;AAE5E,oDAA8C;AAE9C,MAAa,cAAe,SAAQ,sBAAW;IAC7C;;;;;OAKG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,0BAA0B,EAAE,CAAA,mBAAiC,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CACJ,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF;AAvDD,wCAuDC"}
|
|
@@ -1,7 +1,20 @@
|
|
|
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 ReplaySettings extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List the replay configurations on this account. Supports cursor pagination via
|
|
8
|
+
* `limit` and `cursor`. Replay settings control which domains may capture session
|
|
9
|
+
* replays and where the capture script is hosted. Requires scope:
|
|
10
|
+
* replaySettings:list
|
|
11
|
+
*/
|
|
12
|
+
list(query = {}, options) {
|
|
13
|
+
return this._client.getAPIList('/rest/v1/replay-settings', (Cursor), {
|
|
14
|
+
query,
|
|
15
|
+
...options,
|
|
16
|
+
});
|
|
17
|
+
}
|
|
5
18
|
/**
|
|
6
19
|
* Create the replay configuration for this account. Each account is limited to one
|
|
7
20
|
* replay configuration — calls made when one already exists return HTTP 409 with
|
|
@@ -26,14 +39,6 @@ export class ReplaySettings extends APIResource {
|
|
|
26
39
|
update(id, body, options) {
|
|
27
40
|
return this._client.patch(path `/rest/v1/replay-settings/${id}`, { body, ...options });
|
|
28
41
|
}
|
|
29
|
-
/**
|
|
30
|
-
* List the replay configurations on this account. Replay settings control which
|
|
31
|
-
* domains may capture session replays and where the capture script is hosted.
|
|
32
|
-
* Requires scope: replaySettings:list
|
|
33
|
-
*/
|
|
34
|
-
list(options) {
|
|
35
|
-
return this._client.get('/rest/v1/replay-settings', options);
|
|
36
|
-
}
|
|
37
42
|
/**
|
|
38
43
|
* Delete the replay configuration. Capture stops immediately for all whitelisted
|
|
39
44
|
* domains. Requires scope: replaySettings:delete
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"replay-settings.mjs","sourceRoot":"","sources":["../src/resources/replay-settings.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;
|
|
1
|
+
{"version":3,"file":"replay-settings.mjs","sourceRoot":"","sources":["../src/resources/replay-settings.ts"],"names":[],"mappings":"AAAA,sFAAsF;OAE/E,EAAE,WAAW,EAAE;OAEf,EAAE,MAAM,EAAkC;OAE1C,EAAE,IAAI,EAAE;AAEf,MAAM,OAAO,cAAe,SAAQ,WAAW;IAC7C;;;;;OAKG;IACH,IAAI,CACF,QAAoD,EAAE,EACtD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,0BAA0B,EAAE,CAAA,MAAiC,CAAA,EAAE;YAC5F,KAAK;YACL,GAAG,OAAO;SACX,CAAC,CAAC;IACL,CAAC;IAED;;;;OAIG;IACH,MAAM,CAAC,IAA+B,EAAE,OAAwB;QAC9D,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,0BAA0B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC7E,CAAC;IAED;;;OAGG;IACH,QAAQ,CAAC,EAAU,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IACzE,CAAC;IAED;;;;;OAKG;IACH,MAAM,CACJ,EAAU,EACV,IAA+B,EAC/B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,KAAK,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACxF,CAAC;IAED;;;OAGG;IACH,MAAM,CAAC,EAAU,EAAE,OAAwB;QACzC,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,4BAA4B,EAAE,EAAE,EAAE,OAAO,CAAC,CAAC;IAC5E,CAAC;CACF"}
|
package/resources/sources.d.mts
CHANGED
|
@@ -2,6 +2,10 @@ import { APIResource } from "../core/resource.mjs";
|
|
|
2
2
|
import { APIPromise } from "../core/api-promise.mjs";
|
|
3
3
|
import { RequestOptions } from "../internal/request-options.mjs";
|
|
4
4
|
export declare class Sources extends APIResource {
|
|
5
|
+
/**
|
|
6
|
+
* List all sources. Requires scope: source:list
|
|
7
|
+
*/
|
|
8
|
+
list(options?: RequestOptions): APIPromise<SourceListResponse>;
|
|
5
9
|
/**
|
|
6
10
|
* Create a new source. Requires scope: source:create
|
|
7
11
|
*/
|
|
@@ -11,17 +15,45 @@ export declare class Sources extends APIResource {
|
|
|
11
15
|
*/
|
|
12
16
|
retrieve(id: string, options?: RequestOptions): APIPromise<SourceRetrieveResponse>;
|
|
13
17
|
/**
|
|
14
|
-
*
|
|
18
|
+
* Partially update a source. Only the fields you send are changed. Requires scope:
|
|
19
|
+
* source:update
|
|
15
20
|
*/
|
|
16
21
|
update(id: string, body: SourceUpdateParams, options?: RequestOptions): APIPromise<SourceUpdateResponse>;
|
|
17
|
-
/**
|
|
18
|
-
* List all sources. Requires scope: source:list
|
|
19
|
-
*/
|
|
20
|
-
list(options?: RequestOptions): APIPromise<SourceListResponse>;
|
|
21
22
|
/**
|
|
22
23
|
* Delete a source. Requires scope: source:delete
|
|
23
24
|
*/
|
|
24
25
|
delete(id: string, options?: RequestOptions): APIPromise<SourceDeleteResponse>;
|
|
26
|
+
/**
|
|
27
|
+
* Fetch install tokens and snippets for a source. Requires scope: source:view
|
|
28
|
+
*/
|
|
29
|
+
tokens(id: string, options?: RequestOptions): APIPromise<SourceTokensResponse>;
|
|
30
|
+
}
|
|
31
|
+
export interface SourceListResponse {
|
|
32
|
+
entities: Array<SourceListResponse.Entity>;
|
|
33
|
+
}
|
|
34
|
+
export declare namespace SourceListResponse {
|
|
35
|
+
interface Entity {
|
|
36
|
+
id: string;
|
|
37
|
+
createdAt: string;
|
|
38
|
+
status: 'Disabled' | 'Enabled';
|
|
39
|
+
type: 'AlchemerWebhook' | 'AndroidNativeApi' | 'CSharpApi' | 'CalComWebhooks' | 'CalendlyWebhook' | 'CallRail' | 'CallTrackingMetrics' | 'DotNetApi' | 'FacebookLeadAds' | 'FormsortWebhooks' | 'Formstack' | 'GoLangApi' | 'HTTPApiSource' | 'Healthie' | 'HubspotAppActions' | 'HubspotFormWebhook' | 'JotFormWebhooks' | 'KotlinApi' | 'NodejsApi' | 'PHPApi' | 'PixelImage' | 'PythonApi' | 'ReactNativeApi' | 'RedirectSource' | 'RubyApi' | 'SegmentWebPlugin' | 'TypeformWebhooks' | 'WebSource' | 'Webhook' | 'WhatConverts' | 'iOSNativeApi';
|
|
40
|
+
botControlMode?: string | null;
|
|
41
|
+
botScoreThreshold?: number | null;
|
|
42
|
+
excludeRequestContext?: boolean | null;
|
|
43
|
+
name?: string | null;
|
|
44
|
+
probabilisticIdentity?: unknown | null;
|
|
45
|
+
projectAPIKey?: string | null;
|
|
46
|
+
redirectUrl?: string | null;
|
|
47
|
+
selectedAccountId?: string | null;
|
|
48
|
+
/**
|
|
49
|
+
* Optional domain allowlist for source event ingestion. When set, only requests
|
|
50
|
+
* from these domains are accepted for this source. This is separate from
|
|
51
|
+
* experimentation settings `whitelistDomains`, which gates experiment SDK
|
|
52
|
+
* delivery.
|
|
53
|
+
*/
|
|
54
|
+
whitelistDomains?: Array<string> | null;
|
|
55
|
+
whitelistIps?: Array<string> | null;
|
|
56
|
+
}
|
|
25
57
|
}
|
|
26
58
|
export interface SourceCreateResponse {
|
|
27
59
|
id: string;
|
|
@@ -43,6 +75,12 @@ export interface SourceRetrieveResponse {
|
|
|
43
75
|
projectAPIKey?: string | null;
|
|
44
76
|
redirectUrl?: string | null;
|
|
45
77
|
selectedAccountId?: string | null;
|
|
78
|
+
/**
|
|
79
|
+
* Optional domain allowlist for source event ingestion. When set, only requests
|
|
80
|
+
* from these domains are accepted for this source. This is separate from
|
|
81
|
+
* experimentation settings `whitelistDomains`, which gates experiment SDK
|
|
82
|
+
* delivery.
|
|
83
|
+
*/
|
|
46
84
|
whitelistDomains?: Array<string> | null;
|
|
47
85
|
whitelistIps?: Array<string> | null;
|
|
48
86
|
}
|
|
@@ -53,28 +91,27 @@ export interface SourceUpdateResponse {
|
|
|
53
91
|
type: 'AlchemerWebhook' | 'AndroidNativeApi' | 'CSharpApi' | 'CalComWebhooks' | 'CalendlyWebhook' | 'CallRail' | 'CallTrackingMetrics' | 'DotNetApi' | 'FacebookLeadAds' | 'FormsortWebhooks' | 'Formstack' | 'GoLangApi' | 'HTTPApiSource' | 'Healthie' | 'HubspotAppActions' | 'HubspotFormWebhook' | 'JotFormWebhooks' | 'KotlinApi' | 'NodejsApi' | 'PHPApi' | 'PixelImage' | 'PythonApi' | 'ReactNativeApi' | 'RedirectSource' | 'RubyApi' | 'SegmentWebPlugin' | 'TypeformWebhooks' | 'WebSource' | 'Webhook' | 'WhatConverts' | 'iOSNativeApi';
|
|
54
92
|
name?: string | null;
|
|
55
93
|
}
|
|
56
|
-
export interface SourceListResponse {
|
|
57
|
-
entities: Array<SourceListResponse.Entity>;
|
|
58
|
-
}
|
|
59
|
-
export declare namespace SourceListResponse {
|
|
60
|
-
interface Entity {
|
|
61
|
-
id: string;
|
|
62
|
-
createdAt: string;
|
|
63
|
-
status: 'Disabled' | 'Enabled';
|
|
64
|
-
type: 'AlchemerWebhook' | 'AndroidNativeApi' | 'CSharpApi' | 'CalComWebhooks' | 'CalendlyWebhook' | 'CallRail' | 'CallTrackingMetrics' | 'DotNetApi' | 'FacebookLeadAds' | 'FormsortWebhooks' | 'Formstack' | 'GoLangApi' | 'HTTPApiSource' | 'Healthie' | 'HubspotAppActions' | 'HubspotFormWebhook' | 'JotFormWebhooks' | 'KotlinApi' | 'NodejsApi' | 'PHPApi' | 'PixelImage' | 'PythonApi' | 'ReactNativeApi' | 'RedirectSource' | 'RubyApi' | 'SegmentWebPlugin' | 'TypeformWebhooks' | 'WebSource' | 'Webhook' | 'WhatConverts' | 'iOSNativeApi';
|
|
65
|
-
botControlMode?: string | null;
|
|
66
|
-
botScoreThreshold?: number | null;
|
|
67
|
-
excludeRequestContext?: boolean | null;
|
|
68
|
-
name?: string | null;
|
|
69
|
-
probabilisticIdentity?: unknown | null;
|
|
70
|
-
projectAPIKey?: string | null;
|
|
71
|
-
redirectUrl?: string | null;
|
|
72
|
-
selectedAccountId?: string | null;
|
|
73
|
-
whitelistDomains?: Array<string> | null;
|
|
74
|
-
whitelistIps?: Array<string> | null;
|
|
75
|
-
}
|
|
76
|
-
}
|
|
77
94
|
export type SourceDeleteResponse = boolean;
|
|
95
|
+
export interface SourceTokensResponse {
|
|
96
|
+
/**
|
|
97
|
+
* Install token for the source.
|
|
98
|
+
*/
|
|
99
|
+
token: string;
|
|
100
|
+
/**
|
|
101
|
+
* Ready-to-paste install snippet for the production token, including linked
|
|
102
|
+
* runtime tokens for supported modules.
|
|
103
|
+
*/
|
|
104
|
+
installScript: string;
|
|
105
|
+
/**
|
|
106
|
+
* Ready-to-paste install snippet for the test token, suitable for validation
|
|
107
|
+
* before a live install.
|
|
108
|
+
*/
|
|
109
|
+
testInstallScript: string;
|
|
110
|
+
/**
|
|
111
|
+
* Test-mode token derived from `token`.
|
|
112
|
+
*/
|
|
113
|
+
testToken: string;
|
|
114
|
+
}
|
|
78
115
|
export interface SourceCreateParams {
|
|
79
116
|
type: 'AlchemerWebhook' | 'AndroidNativeApi' | 'CSharpApi' | 'CalComWebhooks' | 'CalendlyWebhook' | 'CallRail' | 'CallTrackingMetrics' | 'DotNetApi' | 'FacebookLeadAds' | 'FormsortWebhooks' | 'Formstack' | 'GoLangApi' | 'HTTPApiSource' | 'Healthie' | 'HubspotAppActions' | 'HubspotFormWebhook' | 'JotFormWebhooks' | 'KotlinApi' | 'NodejsApi' | 'PHPApi' | 'PixelImage' | 'PythonApi' | 'ReactNativeApi' | 'RedirectSource' | 'RubyApi' | 'SegmentWebPlugin' | 'TypeformWebhooks' | 'WebSource' | 'Webhook' | 'WhatConverts' | 'iOSNativeApi';
|
|
80
117
|
name?: string | null;
|
|
@@ -93,6 +130,6 @@ export interface SourceUpdateParams {
|
|
|
93
130
|
whitelistIps?: Array<string> | null;
|
|
94
131
|
}
|
|
95
132
|
export declare namespace Sources {
|
|
96
|
-
export { type SourceCreateResponse as SourceCreateResponse, type SourceRetrieveResponse as SourceRetrieveResponse, type SourceUpdateResponse as SourceUpdateResponse, type
|
|
133
|
+
export { type SourceListResponse as SourceListResponse, type SourceCreateResponse as SourceCreateResponse, type SourceRetrieveResponse as SourceRetrieveResponse, type SourceUpdateResponse as SourceUpdateResponse, type SourceDeleteResponse as SourceDeleteResponse, type SourceTokensResponse as SourceTokensResponse, type SourceCreateParams as SourceCreateParams, type SourceUpdateParams as SourceUpdateParams, };
|
|
97
134
|
}
|
|
98
135
|
//# sourceMappingURL=sources.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"sources.d.mts","sourceRoot":"","sources":["../src/resources/sources.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,EAAE,UAAU,EAAE;OACd,EAAE,cAAc,EAAE;AAGzB,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CAAC,IAAI,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAI5F;;OAEG;IACH,QAAQ,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