@oursprivacy/platform-sdk 1.11.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 +24 -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 +123 -24
- package/resources/replay-settings.d.mts.map +1 -1
- package/resources/replay-settings.d.ts +123 -24
- package/resources/replay-settings.d.ts.map +1 -1
- package/resources/replay-settings.js +24 -10
- package/resources/replay-settings.js.map +1 -1
- package/resources/replay-settings.mjs +24 -10
- 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 +142 -35
- 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
|
@@ -0,0 +1,230 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
import { APIResource } from '../core/resource';
|
|
4
|
+
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { RequestOptions } from '../internal/request-options';
|
|
6
|
+
import { path } from '../internal/utils/path';
|
|
7
|
+
|
|
8
|
+
export class Mappings extends APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List all mappings for an entity. Requires scope: mapping:list
|
|
11
|
+
*/
|
|
12
|
+
list(query: MappingListParams, options?: RequestOptions): APIPromise<MappingListResponse> {
|
|
13
|
+
return this._client.get('/rest/v1/mappings', { query, ...options });
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
/**
|
|
17
|
+
* Create a new mapping. Requires scope: mapping:create
|
|
18
|
+
*/
|
|
19
|
+
create(body: MappingCreateParams, options?: RequestOptions): APIPromise<MappingCreateResponse> {
|
|
20
|
+
return this._client.post('/rest/v1/mappings', { body, ...options });
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Find a single mapping by ID. Requires scope: mapping:find
|
|
25
|
+
*/
|
|
26
|
+
retrieve(id: string, options?: RequestOptions): APIPromise<MappingRetrieveResponse> {
|
|
27
|
+
return this._client.get(path`/rest/v1/mappings/${id}`, options);
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
/**
|
|
31
|
+
* Partially update a mapping. Only the fields you send are changed. Requires
|
|
32
|
+
* scope: mapping:update
|
|
33
|
+
*/
|
|
34
|
+
update(id: string, body: MappingUpdateParams, options?: RequestOptions): APIPromise<MappingUpdateResponse> {
|
|
35
|
+
return this._client.patch(path`/rest/v1/mappings/${id}`, { body, ...options });
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
/**
|
|
39
|
+
* Delete a mapping. Requires scope: mapping:delete
|
|
40
|
+
*/
|
|
41
|
+
delete(id: string, options?: RequestOptions): APIPromise<MappingDeleteResponse> {
|
|
42
|
+
return this._client.delete(path`/rest/v1/mappings/${id}`, options);
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type MappingListResponse = Array<MappingListResponse.MappingListResponseItem>;
|
|
47
|
+
|
|
48
|
+
export namespace MappingListResponse {
|
|
49
|
+
export interface MappingListResponseItem {
|
|
50
|
+
id: string;
|
|
51
|
+
|
|
52
|
+
isEnabled: boolean;
|
|
53
|
+
|
|
54
|
+
mappings: Array<MappingListResponseItem.Mapping>;
|
|
55
|
+
|
|
56
|
+
destinationId?: string | null;
|
|
57
|
+
|
|
58
|
+
isDefaultMapping?: boolean | null;
|
|
59
|
+
|
|
60
|
+
name?: string | null;
|
|
61
|
+
|
|
62
|
+
priority?: number | null;
|
|
63
|
+
|
|
64
|
+
sourceId?: string | null;
|
|
65
|
+
|
|
66
|
+
templateId?: string | null;
|
|
67
|
+
|
|
68
|
+
templateName?: string | null;
|
|
69
|
+
|
|
70
|
+
updatedAt?: string | null;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export namespace MappingListResponseItem {
|
|
74
|
+
export interface Mapping {
|
|
75
|
+
map: string;
|
|
76
|
+
|
|
77
|
+
property: string;
|
|
78
|
+
|
|
79
|
+
modification?: string | null;
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export interface MappingCreateResponse {
|
|
85
|
+
id: string;
|
|
86
|
+
|
|
87
|
+
isEnabled: boolean;
|
|
88
|
+
|
|
89
|
+
mappings: Array<MappingCreateResponse.Mapping>;
|
|
90
|
+
|
|
91
|
+
destinationId?: string | null;
|
|
92
|
+
|
|
93
|
+
isDefaultMapping?: boolean | null;
|
|
94
|
+
|
|
95
|
+
name?: string | null;
|
|
96
|
+
|
|
97
|
+
priority?: number | null;
|
|
98
|
+
|
|
99
|
+
sourceId?: string | null;
|
|
100
|
+
|
|
101
|
+
templateId?: string | null;
|
|
102
|
+
|
|
103
|
+
templateName?: string | null;
|
|
104
|
+
|
|
105
|
+
updatedAt?: string | null;
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export namespace MappingCreateResponse {
|
|
109
|
+
export interface Mapping {
|
|
110
|
+
map: string;
|
|
111
|
+
|
|
112
|
+
property: string;
|
|
113
|
+
|
|
114
|
+
modification?: string | null;
|
|
115
|
+
}
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export interface MappingRetrieveResponse {
|
|
119
|
+
id: string;
|
|
120
|
+
|
|
121
|
+
isEnabled: boolean;
|
|
122
|
+
|
|
123
|
+
mappings: Array<MappingRetrieveResponse.Mapping>;
|
|
124
|
+
|
|
125
|
+
destinationId?: string | null;
|
|
126
|
+
|
|
127
|
+
isDefaultMapping?: boolean | null;
|
|
128
|
+
|
|
129
|
+
name?: string | null;
|
|
130
|
+
|
|
131
|
+
priority?: number | null;
|
|
132
|
+
|
|
133
|
+
sourceId?: string | null;
|
|
134
|
+
|
|
135
|
+
templateId?: string | null;
|
|
136
|
+
|
|
137
|
+
templateName?: string | null;
|
|
138
|
+
|
|
139
|
+
updatedAt?: string | null;
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export namespace MappingRetrieveResponse {
|
|
143
|
+
export interface Mapping {
|
|
144
|
+
map: string;
|
|
145
|
+
|
|
146
|
+
property: string;
|
|
147
|
+
|
|
148
|
+
modification?: string | null;
|
|
149
|
+
}
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
export interface MappingUpdateResponse {
|
|
153
|
+
id: string;
|
|
154
|
+
|
|
155
|
+
isEnabled: boolean;
|
|
156
|
+
|
|
157
|
+
mappings: Array<MappingUpdateResponse.Mapping>;
|
|
158
|
+
|
|
159
|
+
destinationId?: string | null;
|
|
160
|
+
|
|
161
|
+
isDefaultMapping?: boolean | null;
|
|
162
|
+
|
|
163
|
+
name?: string | null;
|
|
164
|
+
|
|
165
|
+
priority?: number | null;
|
|
166
|
+
|
|
167
|
+
sourceId?: string | null;
|
|
168
|
+
|
|
169
|
+
templateId?: string | null;
|
|
170
|
+
|
|
171
|
+
templateName?: string | null;
|
|
172
|
+
|
|
173
|
+
updatedAt?: string | null;
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export namespace MappingUpdateResponse {
|
|
177
|
+
export interface Mapping {
|
|
178
|
+
map: string;
|
|
179
|
+
|
|
180
|
+
property: string;
|
|
181
|
+
|
|
182
|
+
modification?: string | null;
|
|
183
|
+
}
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export type MappingDeleteResponse = boolean;
|
|
187
|
+
|
|
188
|
+
export interface MappingListParams {
|
|
189
|
+
/**
|
|
190
|
+
* Filter mappings by their parent entity id (for example an allowed event id).
|
|
191
|
+
*/
|
|
192
|
+
entityId: string;
|
|
193
|
+
}
|
|
194
|
+
|
|
195
|
+
export interface MappingCreateParams {
|
|
196
|
+
allowedEventId: string;
|
|
197
|
+
|
|
198
|
+
destinationId: string;
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
export interface MappingUpdateParams {
|
|
202
|
+
logic?: unknown;
|
|
203
|
+
|
|
204
|
+
mappings?: Array<MappingUpdateParams.Mapping>;
|
|
205
|
+
|
|
206
|
+
name?: string | null;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export namespace MappingUpdateParams {
|
|
210
|
+
export interface Mapping {
|
|
211
|
+
map: string;
|
|
212
|
+
|
|
213
|
+
property: string;
|
|
214
|
+
|
|
215
|
+
modification?: string | null;
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
export declare namespace Mappings {
|
|
220
|
+
export {
|
|
221
|
+
type MappingListResponse as MappingListResponse,
|
|
222
|
+
type MappingCreateResponse as MappingCreateResponse,
|
|
223
|
+
type MappingRetrieveResponse as MappingRetrieveResponse,
|
|
224
|
+
type MappingUpdateResponse as MappingUpdateResponse,
|
|
225
|
+
type MappingDeleteResponse as MappingDeleteResponse,
|
|
226
|
+
type MappingListParams as MappingListParams,
|
|
227
|
+
type MappingCreateParams as MappingCreateParams,
|
|
228
|
+
type MappingUpdateParams as MappingUpdateParams,
|
|
229
|
+
};
|
|
230
|
+
}
|
|
@@ -2,26 +2,49 @@
|
|
|
2
2
|
|
|
3
3
|
import { APIResource } from '../core/resource';
|
|
4
4
|
import { APIPromise } from '../core/api-promise';
|
|
5
|
+
import { Cursor, type CursorParams, PagePromise } from '../core/pagination';
|
|
5
6
|
import { RequestOptions } from '../internal/request-options';
|
|
6
7
|
import { path } from '../internal/utils/path';
|
|
7
8
|
|
|
8
9
|
export class ReplaySettings extends APIResource {
|
|
9
10
|
/**
|
|
10
|
-
*
|
|
11
|
+
* List the replay configurations on this account. Supports cursor pagination via
|
|
12
|
+
* `limit` and `cursor`. Replay settings control which domains may capture session
|
|
13
|
+
* replays and where the capture script is hosted. Requires scope:
|
|
14
|
+
* replaySettings:list
|
|
15
|
+
*/
|
|
16
|
+
list(
|
|
17
|
+
query: ReplaySettingListParams | null | undefined = {},
|
|
18
|
+
options?: RequestOptions,
|
|
19
|
+
): PagePromise<ReplaySettingListResponsesCursor, ReplaySettingListResponse> {
|
|
20
|
+
return this._client.getAPIList('/rest/v1/replay-settings', Cursor<ReplaySettingListResponse>, {
|
|
21
|
+
query,
|
|
22
|
+
...options,
|
|
23
|
+
});
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
/**
|
|
27
|
+
* Create the replay configuration for this account. Each account is limited to one
|
|
28
|
+
* replay configuration — calls made when one already exists return HTTP 409 with
|
|
29
|
+
* the reason in the response `error` field. Requires scope: replaySettings:create
|
|
11
30
|
*/
|
|
12
31
|
create(body: ReplaySettingCreateParams, options?: RequestOptions): APIPromise<ReplaySettingCreateResponse> {
|
|
13
32
|
return this._client.post('/rest/v1/replay-settings', { body, ...options });
|
|
14
33
|
}
|
|
15
34
|
|
|
16
35
|
/**
|
|
17
|
-
*
|
|
36
|
+
* Fetch a single replay configuration by ID, including its whitelisted domains and
|
|
37
|
+
* custom domain. Requires scope: replaySettings:find
|
|
18
38
|
*/
|
|
19
39
|
retrieve(id: string, options?: RequestOptions): APIPromise<ReplaySettingRetrieveResponse | null> {
|
|
20
40
|
return this._client.get(path`/rest/v1/replay-settings/${id}`, options);
|
|
21
41
|
}
|
|
22
42
|
|
|
23
43
|
/**
|
|
24
|
-
* Update
|
|
44
|
+
* Update one or more fields on an existing replay configuration. Only the fields
|
|
45
|
+
* you send are changed; omitted fields keep their current value. Note that
|
|
46
|
+
* `whitelistDomains` is replaced wholesale (not merged with the existing list).
|
|
47
|
+
* Requires scope: replaySettings:update
|
|
25
48
|
*/
|
|
26
49
|
update(
|
|
27
50
|
id: string,
|
|
@@ -32,18 +55,57 @@ export class ReplaySettings extends APIResource {
|
|
|
32
55
|
}
|
|
33
56
|
|
|
34
57
|
/**
|
|
35
|
-
*
|
|
58
|
+
* Delete the replay configuration. Capture stops immediately for all whitelisted
|
|
59
|
+
* domains. Requires scope: replaySettings:delete
|
|
36
60
|
*/
|
|
37
|
-
|
|
38
|
-
return this._client.
|
|
61
|
+
delete(id: string, options?: RequestOptions): APIPromise<ReplaySettingDeleteResponse> {
|
|
62
|
+
return this._client.delete(path`/rest/v1/replay-settings/${id}`, options);
|
|
39
63
|
}
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type ReplaySettingListResponsesCursor = Cursor<ReplaySettingListResponse>;
|
|
40
67
|
|
|
68
|
+
export interface ReplaySettingListResponse {
|
|
41
69
|
/**
|
|
42
|
-
*
|
|
70
|
+
* Stable identifier (UUID) for this replay configuration.
|
|
43
71
|
*/
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
72
|
+
id: string;
|
|
73
|
+
|
|
74
|
+
/**
|
|
75
|
+
* ISO-8601 timestamp when this configuration was created.
|
|
76
|
+
*/
|
|
77
|
+
createdAt: string;
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
81
|
+
* be empty.
|
|
82
|
+
*/
|
|
83
|
+
name: string;
|
|
84
|
+
|
|
85
|
+
/**
|
|
86
|
+
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
87
|
+
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
88
|
+
* without losing the configuration.
|
|
89
|
+
*/
|
|
90
|
+
status: 'Disabled' | 'Enabled';
|
|
91
|
+
|
|
92
|
+
/**
|
|
93
|
+
* Optional custom domain (CNAME) for hosting the replay capture script. Leave null
|
|
94
|
+
* to use the default Ours Privacy domain.
|
|
95
|
+
*/
|
|
96
|
+
customDomain?: string | null;
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* ISO-8601 timestamp of the most recent update, or null if never updated.
|
|
100
|
+
*/
|
|
101
|
+
updatedAt?: string | null;
|
|
102
|
+
|
|
103
|
+
/**
|
|
104
|
+
* Hostnames where session replay capture is permitted. Replays initiated from any
|
|
105
|
+
* host not in this list are dropped. PATCH replaces the list — partial updates are
|
|
106
|
+
* not merged.
|
|
107
|
+
*/
|
|
108
|
+
whitelistDomains?: Array<string> | null;
|
|
47
109
|
}
|
|
48
110
|
|
|
49
111
|
export interface ReplaySettingCreateResponse {
|
|
@@ -55,18 +117,45 @@ export interface ReplaySettingCreateResponse {
|
|
|
55
117
|
}
|
|
56
118
|
|
|
57
119
|
export interface ReplaySettingRetrieveResponse {
|
|
120
|
+
/**
|
|
121
|
+
* Stable identifier (UUID) for this replay configuration.
|
|
122
|
+
*/
|
|
58
123
|
id: string;
|
|
59
124
|
|
|
125
|
+
/**
|
|
126
|
+
* ISO-8601 timestamp when this configuration was created.
|
|
127
|
+
*/
|
|
60
128
|
createdAt: string;
|
|
61
129
|
|
|
130
|
+
/**
|
|
131
|
+
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
132
|
+
* be empty.
|
|
133
|
+
*/
|
|
62
134
|
name: string;
|
|
63
135
|
|
|
136
|
+
/**
|
|
137
|
+
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
138
|
+
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
139
|
+
* without losing the configuration.
|
|
140
|
+
*/
|
|
64
141
|
status: 'Disabled' | 'Enabled';
|
|
65
142
|
|
|
143
|
+
/**
|
|
144
|
+
* Optional custom domain (CNAME) for hosting the replay capture script. Leave null
|
|
145
|
+
* to use the default Ours Privacy domain.
|
|
146
|
+
*/
|
|
66
147
|
customDomain?: string | null;
|
|
67
148
|
|
|
149
|
+
/**
|
|
150
|
+
* ISO-8601 timestamp of the most recent update, or null if never updated.
|
|
151
|
+
*/
|
|
68
152
|
updatedAt?: string | null;
|
|
69
153
|
|
|
154
|
+
/**
|
|
155
|
+
* Hostnames where session replay capture is permitted. Replays initiated from any
|
|
156
|
+
* host not in this list are dropped. PATCH replaces the list — partial updates are
|
|
157
|
+
* not merged.
|
|
158
|
+
*/
|
|
70
159
|
whitelistDomains?: Array<string> | null;
|
|
71
160
|
}
|
|
72
161
|
|
|
@@ -78,28 +167,6 @@ export interface ReplaySettingUpdateResponse {
|
|
|
78
167
|
replaySettings?: unknown | null;
|
|
79
168
|
}
|
|
80
169
|
|
|
81
|
-
export interface ReplaySettingListResponse {
|
|
82
|
-
entities: Array<ReplaySettingListResponse.Entity>;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export namespace ReplaySettingListResponse {
|
|
86
|
-
export interface Entity {
|
|
87
|
-
id: string;
|
|
88
|
-
|
|
89
|
-
createdAt: string;
|
|
90
|
-
|
|
91
|
-
name: string;
|
|
92
|
-
|
|
93
|
-
status: 'Disabled' | 'Enabled';
|
|
94
|
-
|
|
95
|
-
customDomain?: string | null;
|
|
96
|
-
|
|
97
|
-
updatedAt?: string | null;
|
|
98
|
-
|
|
99
|
-
whitelistDomains?: Array<string> | null;
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
|
|
103
170
|
export interface ReplaySettingDeleteResponse {
|
|
104
171
|
isSuccess: boolean;
|
|
105
172
|
|
|
@@ -108,33 +175,73 @@ export interface ReplaySettingDeleteResponse {
|
|
|
108
175
|
replaySettings?: unknown | null;
|
|
109
176
|
}
|
|
110
177
|
|
|
178
|
+
export interface ReplaySettingListParams extends CursorParams {}
|
|
179
|
+
|
|
111
180
|
export interface ReplaySettingCreateParams {
|
|
181
|
+
/**
|
|
182
|
+
* Optional custom domain (CNAME) for hosting the replay capture script. Leave null
|
|
183
|
+
* to use the default Ours Privacy domain.
|
|
184
|
+
*/
|
|
112
185
|
customDomain?: string | null;
|
|
113
186
|
|
|
187
|
+
/**
|
|
188
|
+
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
189
|
+
* be empty.
|
|
190
|
+
*/
|
|
114
191
|
name?: string | null;
|
|
115
192
|
|
|
116
|
-
|
|
193
|
+
/**
|
|
194
|
+
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
195
|
+
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
196
|
+
* without losing the configuration.
|
|
197
|
+
*/
|
|
198
|
+
status?: 'Disabled' | 'Enabled' | null;
|
|
117
199
|
|
|
200
|
+
/**
|
|
201
|
+
* Hostnames where session replay capture is permitted. Replays initiated from any
|
|
202
|
+
* host not in this list are dropped. PATCH replaces the list — partial updates are
|
|
203
|
+
* not merged.
|
|
204
|
+
*/
|
|
118
205
|
whitelistDomains?: Array<string> | null;
|
|
119
206
|
}
|
|
120
207
|
|
|
121
208
|
export interface ReplaySettingUpdateParams {
|
|
209
|
+
/**
|
|
210
|
+
* Optional custom domain (CNAME) for hosting the replay capture script. Leave null
|
|
211
|
+
* to use the default Ours Privacy domain.
|
|
212
|
+
*/
|
|
122
213
|
customDomain?: string | null;
|
|
123
214
|
|
|
215
|
+
/**
|
|
216
|
+
* Human-readable label for this replay configuration. Shown in the dashboard. May
|
|
217
|
+
* be empty.
|
|
218
|
+
*/
|
|
124
219
|
name?: string | null;
|
|
125
220
|
|
|
126
|
-
|
|
221
|
+
/**
|
|
222
|
+
* Whether session replay capture is currently active. Set to "Enabled" to start
|
|
223
|
+
* capturing replays from whitelisted domains, or "Disabled" to pause capture
|
|
224
|
+
* without losing the configuration.
|
|
225
|
+
*/
|
|
226
|
+
status?: 'Disabled' | 'Enabled' | null;
|
|
127
227
|
|
|
228
|
+
/**
|
|
229
|
+
* Hostnames where session replay capture is permitted. Replays initiated from any
|
|
230
|
+
* host not in this list are dropped. PATCH replaces the list — partial updates are
|
|
231
|
+
* not merged.
|
|
232
|
+
*/
|
|
128
233
|
whitelistDomains?: Array<string> | null;
|
|
129
234
|
}
|
|
130
235
|
|
|
131
236
|
export declare namespace ReplaySettings {
|
|
132
237
|
export {
|
|
238
|
+
type ReplaySettingListResponse as ReplaySettingListResponse,
|
|
133
239
|
type ReplaySettingCreateResponse as ReplaySettingCreateResponse,
|
|
134
240
|
type ReplaySettingRetrieveResponse as ReplaySettingRetrieveResponse,
|
|
135
241
|
type ReplaySettingUpdateResponse as ReplaySettingUpdateResponse,
|
|
136
|
-
type ReplaySettingListResponse as ReplaySettingListResponse,
|
|
137
242
|
type ReplaySettingDeleteResponse as ReplaySettingDeleteResponse,
|
|
243
|
+
type ReplaySettingListResponsesCursor as ReplaySettingListResponsesCursor,
|
|
244
|
+
type ReplaySettingListParams as ReplaySettingListParams,
|
|
138
245
|
type ReplaySettingCreateParams as ReplaySettingCreateParams,
|
|
139
246
|
type ReplaySettingUpdateParams as ReplaySettingUpdateParams,
|
|
140
247
|
};
|