@trycourier/courier 7.11.0 → 7.19.2
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 +123 -0
- package/README.md +1 -0
- package/client.d.mts +10 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +10 -4
- package/client.d.ts.map +1 -1
- package/client.js +15 -1
- package/client.js.map +1 -1
- package/client.mjs +15 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/audiences.d.mts +5 -2
- package/resources/audiences.d.mts.map +1 -1
- package/resources/audiences.d.ts +5 -2
- package/resources/audiences.d.ts.map +1 -1
- package/resources/brands.d.mts +35 -2
- package/resources/brands.d.mts.map +1 -1
- package/resources/brands.d.ts +35 -2
- package/resources/brands.d.ts.map +1 -1
- package/resources/brands.js +34 -1
- package/resources/brands.js.map +1 -1
- package/resources/brands.mjs +34 -1
- package/resources/brands.mjs.map +1 -1
- package/resources/digests/digests.d.mts +94 -0
- package/resources/digests/digests.d.mts.map +1 -0
- package/resources/digests/digests.d.ts +94 -0
- package/resources/digests/digests.d.ts.map +1 -0
- package/resources/digests/digests.js +17 -0
- package/resources/digests/digests.js.map +1 -0
- package/resources/digests/digests.mjs +12 -0
- package/resources/digests/digests.mjs.map +1 -0
- package/resources/digests/index.d.mts +3 -0
- package/resources/digests/index.d.mts.map +1 -0
- package/resources/digests/index.d.ts +3 -0
- package/resources/digests/index.d.ts.map +1 -0
- package/resources/digests/index.js +9 -0
- package/resources/digests/index.js.map +1 -0
- package/resources/digests/index.mjs +4 -0
- package/resources/digests/index.mjs.map +1 -0
- package/resources/digests/schedules.d.mts +32 -0
- package/resources/digests/schedules.d.mts.map +1 -0
- package/resources/digests/schedules.d.ts +32 -0
- package/resources/digests/schedules.d.ts.map +1 -0
- package/resources/digests/schedules.js +29 -0
- package/resources/digests/schedules.js.map +1 -0
- package/resources/digests/schedules.mjs +25 -0
- package/resources/digests/schedules.mjs.map +1 -0
- package/resources/digests.d.mts +2 -0
- package/resources/digests.d.mts.map +1 -0
- package/resources/digests.d.ts +2 -0
- package/resources/digests.d.ts.map +1 -0
- package/resources/digests.js +6 -0
- package/resources/digests.js.map +1 -0
- package/resources/digests.mjs +3 -0
- package/resources/digests.mjs.map +1 -0
- package/resources/index.d.mts +4 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +4 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +5 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +2 -0
- package/resources/index.mjs.map +1 -1
- package/resources/journeys/index.d.mts +2 -2
- package/resources/journeys/index.d.mts.map +1 -1
- package/resources/journeys/index.d.ts +2 -2
- package/resources/journeys/index.d.ts.map +1 -1
- package/resources/journeys/index.js.map +1 -1
- package/resources/journeys/index.mjs.map +1 -1
- package/resources/journeys/journeys.d.mts +198 -7
- package/resources/journeys/journeys.d.mts.map +1 -1
- package/resources/journeys/journeys.d.ts +198 -7
- package/resources/journeys/journeys.d.ts.map +1 -1
- package/resources/journeys/journeys.js +18 -0
- package/resources/journeys/journeys.js.map +1 -1
- package/resources/journeys/journeys.mjs +18 -0
- package/resources/journeys/journeys.mjs.map +1 -1
- package/resources/journeys/templates.d.mts +120 -1
- package/resources/journeys/templates.d.mts.map +1 -1
- package/resources/journeys/templates.d.ts +120 -1
- package/resources/journeys/templates.d.ts.map +1 -1
- package/resources/journeys/templates.js +71 -0
- package/resources/journeys/templates.js.map +1 -1
- package/resources/journeys/templates.mjs +71 -0
- package/resources/journeys/templates.mjs.map +1 -1
- package/resources/messages.d.mts +16 -1
- package/resources/messages.d.mts.map +1 -1
- package/resources/messages.d.ts +16 -1
- package/resources/messages.d.ts.map +1 -1
- package/resources/messages.js +10 -0
- package/resources/messages.js.map +1 -1
- package/resources/messages.mjs +10 -0
- package/resources/messages.mjs.map +1 -1
- package/resources/notifications/checks.d.mts +3 -3
- package/resources/notifications/checks.d.ts +3 -3
- package/resources/notifications/checks.js +3 -3
- package/resources/notifications/checks.mjs +3 -3
- package/resources/notifications/notifications.d.mts +7 -3
- package/resources/notifications/notifications.d.mts.map +1 -1
- package/resources/notifications/notifications.d.ts +7 -3
- package/resources/notifications/notifications.d.ts.map +1 -1
- package/resources/notifications/notifications.js +7 -3
- package/resources/notifications/notifications.js.map +1 -1
- package/resources/notifications/notifications.mjs +7 -3
- package/resources/notifications/notifications.mjs.map +1 -1
- package/resources/shared.d.mts +6 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +6 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/users/index.d.mts +1 -1
- package/resources/users/index.d.mts.map +1 -1
- package/resources/users/index.d.ts +1 -1
- package/resources/users/index.d.ts.map +1 -1
- package/resources/users/index.js.map +1 -1
- package/resources/users/index.mjs.map +1 -1
- package/resources/users/preferences.d.mts +211 -1
- package/resources/users/preferences.d.mts.map +1 -1
- package/resources/users/preferences.d.ts +211 -1
- package/resources/users/preferences.d.ts.map +1 -1
- package/resources/users/preferences.js +105 -0
- package/resources/users/preferences.js.map +1 -1
- package/resources/users/preferences.mjs +105 -0
- package/resources/users/preferences.mjs.map +1 -1
- package/resources/users/users.d.mts +2 -2
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +2 -2
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs.map +1 -1
- package/resources/workspace-preferences/index.d.mts +3 -0
- package/resources/workspace-preferences/index.d.mts.map +1 -0
- package/resources/workspace-preferences/index.d.ts +3 -0
- package/resources/workspace-preferences/index.d.ts.map +1 -0
- package/resources/workspace-preferences/index.js +9 -0
- package/resources/workspace-preferences/index.js.map +1 -0
- package/resources/workspace-preferences/index.mjs +4 -0
- package/resources/workspace-preferences/index.mjs.map +1 -0
- package/resources/workspace-preferences/topics.d.mts +168 -0
- package/resources/workspace-preferences/topics.d.mts.map +1 -0
- package/resources/workspace-preferences/topics.d.ts +168 -0
- package/resources/workspace-preferences/topics.d.ts.map +1 -0
- package/resources/workspace-preferences/topics.js +103 -0
- package/resources/workspace-preferences/topics.js.map +1 -0
- package/resources/workspace-preferences/topics.mjs +99 -0
- package/resources/workspace-preferences/topics.mjs.map +1 -0
- package/resources/workspace-preferences/workspace-preferences.d.mts +410 -0
- package/resources/workspace-preferences/workspace-preferences.d.mts.map +1 -0
- package/resources/workspace-preferences/workspace-preferences.d.ts +410 -0
- package/resources/workspace-preferences/workspace-preferences.d.ts.map +1 -0
- package/resources/workspace-preferences/workspace-preferences.js +104 -0
- package/resources/workspace-preferences/workspace-preferences.js.map +1 -0
- package/resources/workspace-preferences/workspace-preferences.mjs +99 -0
- package/resources/workspace-preferences/workspace-preferences.mjs.map +1 -0
- package/resources/workspace-preferences.d.mts +2 -0
- package/resources/workspace-preferences.d.mts.map +1 -0
- package/resources/workspace-preferences.d.ts +2 -0
- package/resources/workspace-preferences.d.ts.map +1 -0
- package/resources/workspace-preferences.js +6 -0
- package/resources/workspace-preferences.js.map +1 -0
- package/resources/workspace-preferences.mjs +3 -0
- package/resources/workspace-preferences.mjs.map +1 -0
- package/src/client.ts +71 -1
- package/src/resources/audiences.ts +5 -2
- package/src/resources/brands.ts +36 -3
- package/src/resources/digests/digests.ts +120 -0
- package/src/resources/digests/index.ts +9 -0
- package/src/resources/digests/schedules.ts +51 -0
- package/src/resources/digests.ts +3 -0
- package/src/resources/index.ts +28 -0
- package/src/resources/journeys/index.ts +8 -0
- package/src/resources/journeys/journeys.ts +246 -4
- package/src/resources/journeys/templates.ts +168 -0
- package/src/resources/messages.ts +20 -0
- package/src/resources/notifications/checks.ts +3 -3
- package/src/resources/notifications/notifications.ts +7 -3
- package/src/resources/shared.ts +7 -0
- package/src/resources/users/index.ts +6 -0
- package/src/resources/users/preferences.ts +269 -0
- package/src/resources/users/users.ts +12 -0
- package/src/resources/workspace-preferences/index.ts +25 -0
- package/src/resources/workspace-preferences/topics.ts +229 -0
- package/src/resources/workspace-preferences/workspace-preferences.ts +534 -0
- package/src/resources/workspace-preferences.ts +3 -0
- 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
package/resources/brands.mjs
CHANGED
|
@@ -4,31 +4,64 @@ import { buildHeaders } from "../internal/headers.mjs";
|
|
|
4
4
|
import { path } from "../internal/utils/path.mjs";
|
|
5
5
|
export class Brands extends APIResource {
|
|
6
6
|
/**
|
|
7
|
-
* Create a new brand
|
|
7
|
+
* Create a new brand. Requires `name` and `settings` (with at least
|
|
8
|
+
* `colors.primary` and `colors.secondary`).
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* ```ts
|
|
12
|
+
* const brand = await client.brands.create({
|
|
13
|
+
* name: 'My Brand',
|
|
14
|
+
* settings: {
|
|
15
|
+
* colors: { primary: '#9D3789', secondary: '#FFFFFF' },
|
|
16
|
+
* },
|
|
17
|
+
* });
|
|
18
|
+
* ```
|
|
8
19
|
*/
|
|
9
20
|
create(body, options) {
|
|
10
21
|
return this._client.post('/brands', { body, ...options });
|
|
11
22
|
}
|
|
12
23
|
/**
|
|
13
24
|
* Fetch a specific brand by brand ID.
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* ```ts
|
|
28
|
+
* const brand = await client.brands.retrieve('brand_id');
|
|
29
|
+
* ```
|
|
14
30
|
*/
|
|
15
31
|
retrieve(brandID, options) {
|
|
16
32
|
return this._client.get(path `/brands/${brandID}`, options);
|
|
17
33
|
}
|
|
18
34
|
/**
|
|
19
35
|
* Replace an existing brand with the supplied values.
|
|
36
|
+
*
|
|
37
|
+
* @example
|
|
38
|
+
* ```ts
|
|
39
|
+
* const brand = await client.brands.update('brand_id', {
|
|
40
|
+
* name: 'name',
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
20
43
|
*/
|
|
21
44
|
update(brandID, body, options) {
|
|
22
45
|
return this._client.put(path `/brands/${brandID}`, { body, ...options });
|
|
23
46
|
}
|
|
24
47
|
/**
|
|
25
48
|
* Get the list of brands.
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* ```ts
|
|
52
|
+
* const brands = await client.brands.list();
|
|
53
|
+
* ```
|
|
26
54
|
*/
|
|
27
55
|
list(query = {}, options) {
|
|
28
56
|
return this._client.get('/brands', { query, ...options });
|
|
29
57
|
}
|
|
30
58
|
/**
|
|
31
59
|
* Delete a brand by brand ID.
|
|
60
|
+
*
|
|
61
|
+
* @example
|
|
62
|
+
* ```ts
|
|
63
|
+
* await client.brands.delete('brand_id');
|
|
64
|
+
* ```
|
|
32
65
|
*/
|
|
33
66
|
delete(brandID, options) {
|
|
34
67
|
return this._client.delete(path `/brands/${brandID}`, {
|
package/resources/brands.mjs.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"brands.mjs","sourceRoot":"","sources":["../src/resources/brands.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC
|
|
1
|
+
{"version":3,"file":"brands.mjs","sourceRoot":"","sources":["../src/resources/brands.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,6BAAyB;AAI/C,OAAO,EAAE,YAAY,EAAE,gCAA4B;AAEnD,OAAO,EAAE,IAAI,EAAE,mCAA+B;AAE9C,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,IAAuB,EAAE,OAAwB;QACtD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;OAOG;IACH,QAAQ,CAAC,OAAe,EAAE,OAAwB;QAChD,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,EAAE,EAAE,OAAO,CAAC,CAAC;IAC7D,CAAC;IAED;;;;;;;;;OASG;IACH,MAAM,CAAC,OAAe,EAAE,IAAuB,EAAE,OAAwB;QACvE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1E,CAAC;IAED;;;;;;;OAOG;IACH,IAAI,CACF,QAA4C,EAAE,EAC9C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,SAAS,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC5D,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,OAAe,EAAE,OAAwB;QAC9C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,OAAO,EAAE,EAAE;YACnD,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1,94 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as SchedulesAPI from "./schedules.mjs";
|
|
3
|
+
import { ScheduleListInstancesParams, Schedules } from "./schedules.mjs";
|
|
4
|
+
export declare class Digests extends APIResource {
|
|
5
|
+
schedules: SchedulesAPI.Schedules;
|
|
6
|
+
}
|
|
7
|
+
export interface DigestCategory {
|
|
8
|
+
/**
|
|
9
|
+
* The key that identifies the category within the digest.
|
|
10
|
+
*/
|
|
11
|
+
category_key: string;
|
|
12
|
+
/**
|
|
13
|
+
* Which events to keep when the number of events exceeds the retention limit for
|
|
14
|
+
* the category.
|
|
15
|
+
*/
|
|
16
|
+
retain: 'first' | 'last' | 'highest' | 'lowest' | 'none';
|
|
17
|
+
/**
|
|
18
|
+
* The data key used to order events when `retain` is `highest` or `lowest`.
|
|
19
|
+
*/
|
|
20
|
+
sort_key?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface DigestInstance {
|
|
23
|
+
/**
|
|
24
|
+
* A unique identifier for the digest instance.
|
|
25
|
+
*/
|
|
26
|
+
digest_instance_id: string;
|
|
27
|
+
/**
|
|
28
|
+
* The total number of events received for this instance.
|
|
29
|
+
*/
|
|
30
|
+
event_count: number;
|
|
31
|
+
/**
|
|
32
|
+
* The status of the digest instance. `IN_PROGRESS` instances are still
|
|
33
|
+
* accumulating events; `COMPLETED` instances have been released.
|
|
34
|
+
*/
|
|
35
|
+
status: 'IN_PROGRESS' | 'COMPLETED';
|
|
36
|
+
/**
|
|
37
|
+
* The ID of the user this digest instance belongs to.
|
|
38
|
+
*/
|
|
39
|
+
user_id: string;
|
|
40
|
+
/**
|
|
41
|
+
* The categories configured for the digest.
|
|
42
|
+
*/
|
|
43
|
+
categories?: Array<DigestCategory>;
|
|
44
|
+
/**
|
|
45
|
+
* A map of category key to the number of events received for that category.
|
|
46
|
+
*/
|
|
47
|
+
category_key_counts?: {
|
|
48
|
+
[key: string]: number;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* An ISO 8601 timestamp of when the digest instance was created.
|
|
52
|
+
*/
|
|
53
|
+
created_at?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the digest instance has been disabled.
|
|
56
|
+
*/
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The ID of the tenant this digest instance belongs to, if any.
|
|
60
|
+
*/
|
|
61
|
+
tenant_id?: string | null;
|
|
62
|
+
}
|
|
63
|
+
export interface DigestInstanceListResponse {
|
|
64
|
+
/**
|
|
65
|
+
* Whether there are more digest instances to fetch using the cursor.
|
|
66
|
+
*/
|
|
67
|
+
has_more: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* The digest instances for this page of results.
|
|
70
|
+
*/
|
|
71
|
+
items: Array<DigestInstance>;
|
|
72
|
+
/**
|
|
73
|
+
* Always `list` for a paginated list response.
|
|
74
|
+
*/
|
|
75
|
+
type: 'list';
|
|
76
|
+
/**
|
|
77
|
+
* A cursor token for fetching the next page of results, or null when there are
|
|
78
|
+
* none.
|
|
79
|
+
*/
|
|
80
|
+
cursor?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* The path to fetch the next page of results, or null when there are none.
|
|
83
|
+
*/
|
|
84
|
+
next_url?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* The path of the current request.
|
|
87
|
+
*/
|
|
88
|
+
url?: string;
|
|
89
|
+
}
|
|
90
|
+
export declare namespace Digests {
|
|
91
|
+
export { type DigestCategory as DigestCategory, type DigestInstance as DigestInstance, type DigestInstanceListResponse as DigestInstanceListResponse, };
|
|
92
|
+
export { Schedules as Schedules, type ScheduleListInstancesParams as ScheduleListInstancesParams };
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=digests.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digests.d.mts","sourceRoot":"","sources":["../../src/resources/digests/digests.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAE,wBAAoB;AAErE,qBAAa,OAAQ,SAAQ,WAAW;IACtC,SAAS,EAAE,YAAY,CAAC,SAAS,CAA4C;CAC9E;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IAErB;;;OAGG;IACH,MAAM,EAAE,OAAO,GAAG,MAAM,GAAG,SAAS,GAAG,QAAQ,GAAG,MAAM,CAAC;IAEzD;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,CAAC;CACnB;AAED,MAAM,WAAW,cAAc;IAC7B;;OAEG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leListInstancesParams, Schedules } from "./schedules.js";
|
|
4
|
+
export declare class Digests extends APIResource {
|
|
5
|
+
schedules: SchedulesAPI.Schedules;
|
|
6
|
+
}
|
|
7
|
+
export interface DigestCategory {
|
|
8
|
+
/**
|
|
9
|
+
* The key that identifies the category within the digest.
|
|
10
|
+
*/
|
|
11
|
+
category_key: string;
|
|
12
|
+
/**
|
|
13
|
+
* Which events to keep when the number of events exceeds the retention limit for
|
|
14
|
+
* the category.
|
|
15
|
+
*/
|
|
16
|
+
retain: 'first' | 'last' | 'highest' | 'lowest' | 'none';
|
|
17
|
+
/**
|
|
18
|
+
* The data key used to order events when `retain` is `highest` or `lowest`.
|
|
19
|
+
*/
|
|
20
|
+
sort_key?: string;
|
|
21
|
+
}
|
|
22
|
+
export interface DigestInstance {
|
|
23
|
+
/**
|
|
24
|
+
* A unique identifier for the digest instance.
|
|
25
|
+
*/
|
|
26
|
+
digest_instance_id: string;
|
|
27
|
+
/**
|
|
28
|
+
* The total number of events received for this instance.
|
|
29
|
+
*/
|
|
30
|
+
event_count: number;
|
|
31
|
+
/**
|
|
32
|
+
* The status of the digest instance. `IN_PROGRESS` instances are still
|
|
33
|
+
* accumulating events; `COMPLETED` instances have been released.
|
|
34
|
+
*/
|
|
35
|
+
status: 'IN_PROGRESS' | 'COMPLETED';
|
|
36
|
+
/**
|
|
37
|
+
* The ID of the user this digest instance belongs to.
|
|
38
|
+
*/
|
|
39
|
+
user_id: string;
|
|
40
|
+
/**
|
|
41
|
+
* The categories configured for the digest.
|
|
42
|
+
*/
|
|
43
|
+
categories?: Array<DigestCategory>;
|
|
44
|
+
/**
|
|
45
|
+
* A map of category key to the number of events received for that category.
|
|
46
|
+
*/
|
|
47
|
+
category_key_counts?: {
|
|
48
|
+
[key: string]: number;
|
|
49
|
+
};
|
|
50
|
+
/**
|
|
51
|
+
* An ISO 8601 timestamp of when the digest instance was created.
|
|
52
|
+
*/
|
|
53
|
+
created_at?: string;
|
|
54
|
+
/**
|
|
55
|
+
* Whether the digest instance has been disabled.
|
|
56
|
+
*/
|
|
57
|
+
disabled?: boolean;
|
|
58
|
+
/**
|
|
59
|
+
* The ID of the tenant this digest instance belongs to, if any.
|
|
60
|
+
*/
|
|
61
|
+
tenant_id?: string | null;
|
|
62
|
+
}
|
|
63
|
+
export interface DigestInstanceListResponse {
|
|
64
|
+
/**
|
|
65
|
+
* Whether there are more digest instances to fetch using the cursor.
|
|
66
|
+
*/
|
|
67
|
+
has_more: boolean;
|
|
68
|
+
/**
|
|
69
|
+
* The digest instances for this page of results.
|
|
70
|
+
*/
|
|
71
|
+
items: Array<DigestInstance>;
|
|
72
|
+
/**
|
|
73
|
+
* Always `list` for a paginated list response.
|
|
74
|
+
*/
|
|
75
|
+
type: 'list';
|
|
76
|
+
/**
|
|
77
|
+
* A cursor token for fetching the next page of results, or null when there are
|
|
78
|
+
* none.
|
|
79
|
+
*/
|
|
80
|
+
cursor?: string | null;
|
|
81
|
+
/**
|
|
82
|
+
* The path to fetch the next page of results, or null when there are none.
|
|
83
|
+
*/
|
|
84
|
+
next_url?: string | null;
|
|
85
|
+
/**
|
|
86
|
+
* The path of the current request.
|
|
87
|
+
*/
|
|
88
|
+
url?: string;
|
|
89
|
+
}
|
|
90
|
+
export declare namespace Digests {
|
|
91
|
+
export { type DigestCategory as DigestCategory, type DigestInstance as DigestInstance, type DigestInstanceListResponse as DigestInstanceListResponse, };
|
|
92
|
+
export { Schedules as Schedules, type ScheduleListInstancesParams as ScheduleListInstancesParams };
|
|
93
|
+
}
|
|
94
|
+
//# sourceMappingURL=digests.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digests.d.ts","sourceRoot":"","sources":["../../src/resources/digests/digests.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,YAAY,uBAAoB;AAC5C,OAAO,EAAE,2BAA2B,EAAE,SAAS,EAAE,uBAAoB;AAErE,qBAAa,OAAQ,SA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,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,0BAA0B,IAAI,0BAA0B,GAC9D,CAAC;IAEF,OAAO,EAAE,SAAS,IAAI,SAAS,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CACpG"}
|
|
@@ -0,0 +1,17 @@
|
|
|
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.Digests = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
6
|
+
const resource_1 = require("../../core/resource.js");
|
|
7
|
+
const SchedulesAPI = tslib_1.__importStar(require("./schedules.js"));
|
|
8
|
+
const schedules_1 = require("./schedules.js");
|
|
9
|
+
class Digests extends resource_1.APIResource {
|
|
10
|
+
constructor() {
|
|
11
|
+
super(...arguments);
|
|
12
|
+
this.schedules = new SchedulesAPI.Schedules(this._client);
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
exports.Digests = Digests;
|
|
16
|
+
Digests.Schedules = schedules_1.Schedules;
|
|
17
|
+
//# sourceMappingURL=digests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digests.js","sourceRoot":"","sources":["../../src/resources/digests/digests.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAClD,qEAA4C;AAC5C,8CAAqE;AAErE,MAAa,OAAQ,SAAQ,sBAAW;IAAxC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAFD,0BAEC;AAqGD,OAAO,CAAC,SAAS,GAAG,qBAAS,CAAC"}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import * as SchedulesAPI from "./schedules.mjs";
|
|
4
|
+
import { Schedules } from "./schedules.mjs";
|
|
5
|
+
export class Digests extends APIResource {
|
|
6
|
+
constructor() {
|
|
7
|
+
super(...arguments);
|
|
8
|
+
this.schedules = new SchedulesAPI.Schedules(this._client);
|
|
9
|
+
}
|
|
10
|
+
}
|
|
11
|
+
Digests.Schedules = Schedules;
|
|
12
|
+
//# sourceMappingURL=digests.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digests.mjs","sourceRoot":"","sources":["../../src/resources/digests/digests.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,YAAY,wBAAoB;AAC5C,OAAO,EAA+B,SAAS,EAAE,wBAAoB;AAErE,MAAM,OAAO,OAAQ,SAAQ,WAAW;IAAxC;;QACE,cAAS,GAA2B,IAAI,YAAY,CAAC,SAAS,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAC/E,CAAC;CAAA;AAqGD,OAAO,CAAC,SAAS,GAAG,SAAS,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../src/resources/digests/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,0BAA0B,GAChC,sBAAkB;AACnB,OAAO,EAAE,SAAS,EAAE,KAAK,2BAA2B,EAAE,wBAAoB"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/resources/digests/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,OAAO,EACP,KAAK,cAAc,EACnB,KAAK,cAAc,EACnB,KAAK,0BAA0B,GAChC,qBAAkB;AACnB,OAAO,EAAE,SAAS,EAAE,KAAK,2BAA2B,EAAE,uBAAoB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
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.Schedules = exports.Digests = void 0;
|
|
5
|
+
var digests_1 = require("./digests.js");
|
|
6
|
+
Object.defineProperty(exports, "Digests", { enumerable: true, get: function () { return digests_1.Digests; } });
|
|
7
|
+
var schedules_1 = require("./schedules.js");
|
|
8
|
+
Object.defineProperty(exports, "Schedules", { enumerable: true, get: function () { return schedules_1.Schedules; } });
|
|
9
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/resources/digests/index.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,wCAKmB;AAJjB,kGAAA,OAAO,OAAA;AAKT,4CAA0E;AAAjE,sGAAA,SAAS,OAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../src/resources/digests/index.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EACL,OAAO,GAIR,sBAAkB;AACnB,OAAO,EAAE,SAAS,EAAoC,wBAAoB"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
2
|
+
import * as DigestsAPI from "./digests.mjs";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.mjs";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.mjs";
|
|
5
|
+
export declare class Schedules extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List the digest instances for a schedule. Each instance represents the events
|
|
8
|
+
* accumulated for a single user against the schedule, and can be used to monitor
|
|
9
|
+
* digest accumulation before the digest is released.
|
|
10
|
+
*/
|
|
11
|
+
listInstances(scheduleID: string, query?: ScheduleListInstancesParams | null | undefined, options?: RequestOptions): APIPromise<DigestsAPI.DigestInstanceListResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Send a digest now instead of waiting for its scheduled time, so your users get
|
|
14
|
+
* what they have collected so far right away.
|
|
15
|
+
*/
|
|
16
|
+
release(scheduleID: string, options?: RequestOptions): APIPromise<void>;
|
|
17
|
+
}
|
|
18
|
+
export interface ScheduleListInstancesParams {
|
|
19
|
+
/**
|
|
20
|
+
* A cursor token from a previous response, used to fetch the next page of results.
|
|
21
|
+
*/
|
|
22
|
+
cursor?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The maximum number of digest instances to return. Defaults to 20, with a maximum
|
|
25
|
+
* of 100.
|
|
26
|
+
*/
|
|
27
|
+
limit?: number;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace Schedules {
|
|
30
|
+
export { type ScheduleListInstancesParams as ScheduleListInstancesParams };
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=schedules.d.mts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedules.d.mts","sourceRoot":"","sources":["../../src/resources/digests/schedules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,KAAK,UAAU,sBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,mCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;OAIG;IACH,aAAa,CACX,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAIpD;;;OAGG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMxE;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAC5E"}
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import { APIResource } from "../../core/resource.js";
|
|
2
|
+
import * as DigestsAPI from "./digests.js";
|
|
3
|
+
import { APIPromise } from "../../core/api-promise.js";
|
|
4
|
+
import { RequestOptions } from "../../internal/request-options.js";
|
|
5
|
+
export declare class Schedules extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List the digest instances for a schedule. Each instance represents the events
|
|
8
|
+
* accumulated for a single user against the schedule, and can be used to monitor
|
|
9
|
+
* digest accumulation before the digest is released.
|
|
10
|
+
*/
|
|
11
|
+
listInstances(scheduleID: string, query?: ScheduleListInstancesParams | null | undefined, options?: RequestOptions): APIPromise<DigestsAPI.DigestInstanceListResponse>;
|
|
12
|
+
/**
|
|
13
|
+
* Send a digest now instead of waiting for its scheduled time, so your users get
|
|
14
|
+
* what they have collected so far right away.
|
|
15
|
+
*/
|
|
16
|
+
release(scheduleID: string, options?: RequestOptions): APIPromise<void>;
|
|
17
|
+
}
|
|
18
|
+
export interface ScheduleListInstancesParams {
|
|
19
|
+
/**
|
|
20
|
+
* A cursor token from a previous response, used to fetch the next page of results.
|
|
21
|
+
*/
|
|
22
|
+
cursor?: string;
|
|
23
|
+
/**
|
|
24
|
+
* The maximum number of digest instances to return. Defaults to 20, with a maximum
|
|
25
|
+
* of 100.
|
|
26
|
+
*/
|
|
27
|
+
limit?: number;
|
|
28
|
+
}
|
|
29
|
+
export declare namespace Schedules {
|
|
30
|
+
export { type ScheduleListInstancesParams as ScheduleListInstancesParams };
|
|
31
|
+
}
|
|
32
|
+
//# sourceMappingURL=schedules.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedules.d.ts","sourceRoot":"","sources":["../../src/resources/digests/schedules.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,KAAK,UAAU,qBAAkB;AACxC,OAAO,EAAE,UAAU,EAAE,kCAA+B;AAEpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;;OAIG;IACH,aAAa,CACX,UAAU,EAAE,MAAM,EAClB,KAAK,GAAE,2BAA2B,GAAG,IAAI,GAAG,SAAc,EAC1D,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC,0BAA0B,CAAC;IAIpD;;;OAGG;IACH,OAAO,CAAC,UAAU,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,IAAI,CAAC;CAMxE;AAED,MAAM,WAAW,2BAA2B;IAC1C;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,CAAC;IAEhB;;;OAGG;IACH,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EAAE,KAAK,2BAA2B,IAAI,2BAA2B,EAAE,CAAC;CAC5E"}
|
|
@@ -0,0 +1,29 @@
|
|
|
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.Schedules = void 0;
|
|
5
|
+
const resource_1 = require("../../core/resource.js");
|
|
6
|
+
const headers_1 = require("../../internal/headers.js");
|
|
7
|
+
const path_1 = require("../../internal/utils/path.js");
|
|
8
|
+
class Schedules extends resource_1.APIResource {
|
|
9
|
+
/**
|
|
10
|
+
* List the digest instances for a schedule. Each instance represents the events
|
|
11
|
+
* accumulated for a single user against the schedule, and can be used to monitor
|
|
12
|
+
* digest accumulation before the digest is released.
|
|
13
|
+
*/
|
|
14
|
+
listInstances(scheduleID, query = {}, options) {
|
|
15
|
+
return this._client.get((0, path_1.path) `/digests/schedules/${scheduleID}/instances`, { query, ...options });
|
|
16
|
+
}
|
|
17
|
+
/**
|
|
18
|
+
* Send a digest now instead of waiting for its scheduled time, so your users get
|
|
19
|
+
* what they have collected so far right away.
|
|
20
|
+
*/
|
|
21
|
+
release(scheduleID, options) {
|
|
22
|
+
return this._client.post((0, path_1.path) `/digests/schedules/${scheduleID}/trigger`, {
|
|
23
|
+
...options,
|
|
24
|
+
headers: (0, headers_1.buildHeaders)([{ Accept: '*/*' }, options?.headers]),
|
|
25
|
+
});
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
exports.Schedules = Schedules;
|
|
29
|
+
//# sourceMappingURL=schedules.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedules.js","sourceRoot":"","sources":["../../src/resources/digests/schedules.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAsD;AAEtD,uDAAiD;AAEjD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;;OAIG;IACH,aAAa,CACX,UAAkB,EAClB,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,sBAAsB,UAAU,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,sBAAsB,UAAU,UAAU,EAAE;YACvE,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF;AAxBD,8BAwBC"}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
import { APIResource } from "../../core/resource.mjs";
|
|
3
|
+
import { buildHeaders } from "../../internal/headers.mjs";
|
|
4
|
+
import { path } from "../../internal/utils/path.mjs";
|
|
5
|
+
export class Schedules extends APIResource {
|
|
6
|
+
/**
|
|
7
|
+
* List the digest instances for a schedule. Each instance represents the events
|
|
8
|
+
* accumulated for a single user against the schedule, and can be used to monitor
|
|
9
|
+
* digest accumulation before the digest is released.
|
|
10
|
+
*/
|
|
11
|
+
listInstances(scheduleID, query = {}, options) {
|
|
12
|
+
return this._client.get(path `/digests/schedules/${scheduleID}/instances`, { query, ...options });
|
|
13
|
+
}
|
|
14
|
+
/**
|
|
15
|
+
* Send a digest now instead of waiting for its scheduled time, so your users get
|
|
16
|
+
* what they have collected so far right away.
|
|
17
|
+
*/
|
|
18
|
+
release(scheduleID, options) {
|
|
19
|
+
return this._client.post(path `/digests/schedules/${scheduleID}/trigger`, {
|
|
20
|
+
...options,
|
|
21
|
+
headers: buildHeaders([{ Accept: '*/*' }, options?.headers]),
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
//# sourceMappingURL=schedules.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"schedules.mjs","sourceRoot":"","sources":["../../src/resources/digests/schedules.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,YAAY,EAAE,mCAA+B;AAEtD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;;OAIG;IACH,aAAa,CACX,UAAkB,EAClB,QAAwD,EAAE,EAC1D,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,sBAAsB,UAAU,YAAY,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACnG,CAAC;IAED;;;OAGG;IACH,OAAO,CAAC,UAAkB,EAAE,OAAwB;QAClD,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,sBAAsB,UAAU,UAAU,EAAE;YACvE,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;SAC7D,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digests.d.mts","sourceRoot":"","sources":["../src/resources/digests.ts"],"names":[],"mappings":"AAEA,oCAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digests.d.ts","sourceRoot":"","sources":["../src/resources/digests.ts"],"names":[],"mappings":"AAEA,mCAAgC"}
|
|
@@ -0,0 +1,6 @@
|
|
|
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
|
+
const tslib_1 = require("../internal/tslib.js");
|
|
5
|
+
tslib_1.__exportStar(require("./digests/index.js"), exports);
|
|
6
|
+
//# sourceMappingURL=digests.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digests.js","sourceRoot":"","sources":["../src/resources/digests.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,6DAAgC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"digests.mjs","sourceRoot":"","sources":["../src/resources/digests.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,oCAAgC"}
|
package/resources/index.d.mts
CHANGED
|
@@ -5,10 +5,11 @@ export { Auth, type AuthIssueTokenResponse, type AuthIssueTokenParams } from "./
|
|
|
5
5
|
export { Automations, type AutomationInvokeResponse, type AutomationTemplate, type AutomationTemplateListResponse, type AutomationListParams, } from "./automations/automations.mjs";
|
|
6
6
|
export { Brands, type Brand, type BrandColors, type BrandSettings, type BrandSettingsEmail, type BrandSettingsInApp, type BrandSnippet, type BrandSnippets, type BrandTemplate, type EmailFooter, type EmailHead, type EmailHeader, type Icons, type Logo, type WidgetBackground, type BrandListResponse, type BrandCreateParams, type BrandUpdateParams, type BrandListParams, } from "./brands.mjs";
|
|
7
7
|
export { Bulk, type InboundBulkMessage, type InboundBulkMessageUser, type BulkCreateJobResponse, type BulkListUsersResponse, type BulkRetrieveJobResponse, type BulkAddUsersParams, type BulkCreateJobParams, type BulkListUsersParams, } from "./bulk.mjs";
|
|
8
|
+
export { Digests, type DigestCategory, type DigestInstance, type DigestInstanceListResponse, } from "./digests/digests.mjs";
|
|
8
9
|
export { Inbound, type InboundTrackEventResponse, type InboundTrackEventParams } from "./inbound.mjs";
|
|
9
|
-
export { Journeys, type CreateJourneyRequest, type Journey, type JourneyAINode, type JourneyAPIInvokeTriggerNode, type JourneyConditionAtom, type JourneyConditionGroup, type JourneyConditionNestedGroup, type JourneyConditionsField, type JourneyDelayDurationNode, type JourneyDelayUntilNode, type JourneyExitNode, type JourneyFetchGetDeleteNode, type JourneyFetchPostPutNode, type JourneyMergeStrategy, type JourneyNode, type JourneyPublishRequest, type JourneyResponse, type JourneySegmentTriggerNode, type JourneySendNode, type JourneyState, type JourneyTemplateCreateRequest, type JourneyTemplateGetResponse, type JourneyTemplateListResponse, type JourneyTemplatePublishRequest, type JourneyTemplateReplaceRequest, type JourneyTemplateSummary, type JourneyThrottleDynamicNode, type JourneyThrottleStaticNode, type JourneyVersionItem, type JourneyVersionsListResponse, type JourneysInvokeRequest, type JourneysInvokeResponse, type JourneysListResponse, type JourneyCreateParams, type JourneyRetrieveParams, type JourneyListParams, type JourneyInvokeParams, type JourneyPublishParams, type JourneyReplaceParams, } from "./journeys/journeys.mjs";
|
|
10
|
+
export { Journeys, type CancelJourneyRequest, type CancelJourneyResponse, type CreateJourneyRequest, type Journey, type JourneyAINode, type JourneyAPIInvokeTriggerNode, type JourneyConditionAtom, type JourneyConditionGroup, type JourneyConditionNestedGroup, type JourneyConditionsField, type JourneyDelayDurationNode, type JourneyDelayUntilNode, type JourneyExitNode, type JourneyExperiment, type JourneyExperimentVariant, type JourneyFetchGetDeleteNode, type JourneyFetchPostPutNode, type JourneyMergeStrategy, type JourneyNode, type JourneyPublishRequest, type JourneyResponse, type JourneySegmentTriggerNode, type JourneySendNode, type JourneyState, type JourneyTemplateCreateRequest, type JourneyTemplateGetResponse, type JourneyTemplateListResponse, type JourneyTemplatePublishRequest, type JourneyTemplateReplaceRequest, type JourneyTemplateSummary, type JourneyThrottleDynamicNode, type JourneyThrottleStaticNode, type JourneyVersionItem, type JourneyVersionsListResponse, type JourneysInvokeRequest, type JourneysInvokeResponse, type JourneysListResponse, type JourneyCreateParams, type JourneyRetrieveParams, type JourneyListParams, type JourneyCancelParams, type JourneyInvokeParams, type JourneyPublishParams, type JourneyReplaceParams, } from "./journeys/journeys.mjs";
|
|
10
11
|
export { Lists, type PutSubscriptionsRecipient, type SubscriptionList, type ListListResponse, type ListUpdateParams, type ListListParams, type ListRestoreParams, } from "./lists/lists.mjs";
|
|
11
|
-
export { Messages, type MessageDetails, type MessageRetrieveResponse, type MessageListResponse, type MessageContentResponse, type MessageHistoryResponse, type MessageListParams, type MessageHistoryParams, } from "./messages.mjs";
|
|
12
|
+
export { Messages, type MessageDetails, type MessageRetrieveResponse, type MessageListResponse, type MessageContentResponse, type MessageHistoryResponse, type MessageResendResponse, type MessageListParams, type MessageHistoryParams, } from "./messages.mjs";
|
|
12
13
|
export { Notifications, type BaseCheck, type Check, type ElementWithChecksums, type NotificationContentGetResponse, type NotificationContentMutationResponse, type NotificationContentPutRequest, type NotificationElementPutRequest, type NotificationGetContent, type NotificationLocalePutRequest, type NotificationTemplateCreateRequest, type NotificationTemplatePayload, type NotificationTemplatePublishRequest, type NotificationTemplateResponse, type NotificationTemplateState, type NotificationTemplateSummary, type NotificationTemplateUpdateRequest, type NotificationTemplateVersionListResponse, type VersionNode, type NotificationListResponse, type NotificationRetrieveContentResponse, type NotificationCreateParams, type NotificationRetrieveParams, type NotificationListParams, type NotificationListVersionsParams, type NotificationPublishParams, type NotificationPutContentParams, type NotificationPutElementParams, type NotificationPutLocaleParams, type NotificationReplaceParams, type NotificationRetrieveContentParams, } from "./notifications/notifications.mjs";
|
|
13
14
|
export { Profiles, type SubscribeToListsRequestItem, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileReplaceResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileReplaceParams, } from "./profiles/profiles.mjs";
|
|
14
15
|
export { Providers, type Provider, type ProvidersCatalogEntry, type ProviderListResponse, type ProviderCreateParams, type ProviderUpdateParams, type ProviderListParams, } from "./providers/providers.mjs";
|
|
@@ -18,4 +19,5 @@ export { Send, type SendMessageResponse, type SendMessageParams } from "./send.m
|
|
|
18
19
|
export { Tenants, type BaseTemplateTenantAssociation, type DefaultPreferences, type PostTenantTemplatePublishRequest, type PostTenantTemplatePublishResponse, type PutTenantTemplateRequest, type PutTenantTemplateResponse, type SubscriptionTopicNew, type Tenant, type TenantAssociation, type TenantTemplateInput, type TenantListResponse, type TenantListUsersResponse, type TenantUpdateParams, type TenantListParams, type TenantListUsersParams, } from "./tenants/tenants.mjs";
|
|
19
20
|
export { Translations, type TranslationRetrieveResponse, type TranslationRetrieveParams, type TranslationUpdateParams, } from "./translations.mjs";
|
|
20
21
|
export { Users } from "./users/users.mjs";
|
|
22
|
+
export { WorkspacePreferences, type PublishPreferencesRequest, type PublishPreferencesResponse, type WorkspacePreferenceCreateRequest, type WorkspacePreferenceGetResponse, type WorkspacePreferenceListResponse, type WorkspacePreferenceReplaceRequest, type WorkspacePreferenceTopicCreateRequest, type WorkspacePreferenceTopicGetResponse, type WorkspacePreferenceTopicListResponse, type WorkspacePreferenceTopicReplaceRequest, type WorkspacePreferenceCreateParams, type WorkspacePreferencePublishParams, type WorkspacePreferenceReplaceParams, } from "./workspace-preferences/workspace-preferences.mjs";
|
|
21
23
|
//# sourceMappingURL=index.d.mts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../src/resources/index.ts"],"names":[],"mappings":"AAEA,6BAAyB;AACzB,OAAO,EACL,SAAS,EACT,KAAK,QAAQ,EACb,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,2BAA2B,EAChC,KAAK,oBAAoB,EACzB,KAAK,kBAAkB,EACvB,KAAK,yBAAyB,GAC/B,wBAAoB;AACrB,OAAO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,GAC1B,2BAAuB;AACxB,OAAO,EAAE,IAAI,EAAE,KAAK,sBAAsB,EAAE,KAAK,oBAAoB,EAAE,mBAAe;AACtF,OAAO,EACL,WAAW,EACX,KAAK,wBAAwB,EAC7B,KAAK,kBAAkB,EACvB,KAAK,8BAA8B,EACnC,KAAK,oBAAoB,GAC1B,sCAAkC;AACnC,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,WAAW,EAChB,KAAK,aAAa,EAClB,KAAK,kBAAkB,EACvB,KAAK,kBAAkB,EACvB,KAAK,YAAY,EACjB,KAAK,aAAa,EAClB,KAAK,aAAa,EAClB,KAAK,WAAW,EAChB,KAAK,SAAS,EACd,KAAK,WAAW,EAChB,KAAK,KAAK,EACV,KAAK,IAAI,EACT,KAAK,gBAAgB,EACrB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,GACrB,qBAAiB;AAClB,OAAO,EACL,IAAI,EACJ,KAAK,kBAAkB,EACvB,KAAK,sBAAsB,EAC3B,KAAK,qBAAqB,EAC1B,KAAK,qBAAqB,EAC1B,KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,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KAAK,uBAAuB,EAC5B,KAAK,kBAAkB,EACvB,KAAK,gBAAgB,EACrB,KAAK,qBAAqB,GAC3B,8BAA0B;AAC3B,OAAO,EACL,YAAY,EACZ,KAAK,2BAA2B,EAChC,KAAK,yBAAyB,EAC9B,KAAK,uBAAuB,GAC7B,2BAAuB;AACxB,OAAO,EAAE,KAAK,EAAE,0BAAsB;AACtC,OAAO,EACL,oBAAoB,EACpB,KAAK,yBAAyB,EAC9B,KAAK,0BAA0B,EAC/B,KAAK,gCAAgC,EACrC,KAAK,8BAA8B,EACnC,KAAK,+BAA+B,EACpC,KAAK,iCAAiC,EACtC,KAAK,qCAAqC,EAC1C,KAAK,mCAAmC,EACxC,KAAK,oCAAoC,EACzC,KAAK,sCAAsC,EAC3C,KAAK,+BAA+B,EACpC,KAAK,gCAAgC,EACrC,KAAK,gCAAgC,GACtC,0DAAsD"}
|
package/resources/index.d.ts
CHANGED
|
@@ -5,10 +5,11 @@ export { Auth, type AuthIssueTokenResponse, type AuthIssueTokenParams } from "./
|
|
|
5
5
|
export { Automations, type AutomationInvokeResponse, type AutomationTemplate, type AutomationTemplateListResponse, type AutomationListParams, } from "./automations/automations.js";
|
|
6
6
|
export { Brands, type Brand, type BrandColors, type BrandSettings, type BrandSettingsEmail, type BrandSettingsInApp, type BrandSnippet, type BrandSnippets, type BrandTemplate, type EmailFooter, type EmailHead, type EmailHeader, type Icons, type Logo, type WidgetBackground, type BrandListResponse, type BrandCreateParams, type BrandUpdateParams, type BrandListParams, } from "./brands.js";
|
|
7
7
|
export { Bulk, type InboundBulkMessage, type InboundBulkMessageUser, type BulkCreateJobResponse, type BulkListUsersResponse, type BulkRetrieveJobResponse, type BulkAddUsersParams, type BulkCreateJobParams, type BulkListUsersParams, } from "./bulk.js";
|
|
8
|
+
export { Digests, type DigestCategory, type DigestInstance, type DigestInstanceListResponse, } from "./digests/digests.js";
|
|
8
9
|
export { Inbound, type InboundTrackEventResponse, type InboundTrackEventParams } from "./inbound.js";
|
|
9
|
-
export { Journeys, type CreateJourneyRequest, type Journey, type JourneyAINode, type JourneyAPIInvokeTriggerNode, type JourneyConditionAtom, type JourneyConditionGroup, type JourneyConditionNestedGroup, type JourneyConditionsField, type JourneyDelayDurationNode, type JourneyDelayUntilNode, type JourneyExitNode, type JourneyFetchGetDeleteNode, type JourneyFetchPostPutNode, type JourneyMergeStrategy, type JourneyNode, type JourneyPublishRequest, type JourneyResponse, type JourneySegmentTriggerNode, type JourneySendNode, type JourneyState, type JourneyTemplateCreateRequest, type JourneyTemplateGetResponse, type JourneyTemplateListResponse, type JourneyTemplatePublishRequest, type JourneyTemplateReplaceRequest, type JourneyTemplateSummary, type JourneyThrottleDynamicNode, type JourneyThrottleStaticNode, type JourneyVersionItem, type JourneyVersionsListResponse, type JourneysInvokeRequest, type JourneysInvokeResponse, type JourneysListResponse, type JourneyCreateParams, type JourneyRetrieveParams, type JourneyListParams, type JourneyInvokeParams, type JourneyPublishParams, type JourneyReplaceParams, } from "./journeys/journeys.js";
|
|
10
|
+
export { Journeys, type CancelJourneyRequest, type CancelJourneyResponse, type CreateJourneyRequest, type Journey, type JourneyAINode, type JourneyAPIInvokeTriggerNode, type JourneyConditionAtom, type JourneyConditionGroup, type JourneyConditionNestedGroup, type JourneyConditionsField, type JourneyDelayDurationNode, type JourneyDelayUntilNode, type JourneyExitNode, type JourneyExperiment, type JourneyExperimentVariant, type JourneyFetchGetDeleteNode, type JourneyFetchPostPutNode, type JourneyMergeStrategy, type JourneyNode, type JourneyPublishRequest, type JourneyResponse, type JourneySegmentTriggerNode, type JourneySendNode, type JourneyState, type JourneyTemplateCreateRequest, type JourneyTemplateGetResponse, type JourneyTemplateListResponse, type JourneyTemplatePublishRequest, type JourneyTemplateReplaceRequest, type JourneyTemplateSummary, type JourneyThrottleDynamicNode, type JourneyThrottleStaticNode, type JourneyVersionItem, type JourneyVersionsListResponse, type JourneysInvokeRequest, type JourneysInvokeResponse, type JourneysListResponse, type JourneyCreateParams, type JourneyRetrieveParams, type JourneyListParams, type JourneyCancelParams, type JourneyInvokeParams, type JourneyPublishParams, type JourneyReplaceParams, } from "./journeys/journeys.js";
|
|
10
11
|
export { Lists, type PutSubscriptionsRecipient, type SubscriptionList, type ListListResponse, type ListUpdateParams, type ListListParams, type ListRestoreParams, } from "./lists/lists.js";
|
|
11
|
-
export { Messages, type MessageDetails, type MessageRetrieveResponse, type MessageListResponse, type MessageContentResponse, type MessageHistoryResponse, type MessageListParams, type MessageHistoryParams, } from "./messages.js";
|
|
12
|
+
export { Messages, type MessageDetails, type MessageRetrieveResponse, type MessageListResponse, type MessageContentResponse, type MessageHistoryResponse, type MessageResendResponse, type MessageListParams, type MessageHistoryParams, } from "./messages.js";
|
|
12
13
|
export { Notifications, type BaseCheck, type Check, type ElementWithChecksums, type NotificationContentGetResponse, type NotificationContentMutationResponse, type NotificationContentPutRequest, type NotificationElementPutRequest, type NotificationGetContent, type NotificationLocalePutRequest, type NotificationTemplateCreateRequest, type NotificationTemplatePayload, type NotificationTemplatePublishRequest, type NotificationTemplateResponse, type NotificationTemplateState, type NotificationTemplateSummary, type NotificationTemplateUpdateRequest, type NotificationTemplateVersionListResponse, type VersionNode, type NotificationListResponse, type NotificationRetrieveContentResponse, type NotificationCreateParams, type NotificationRetrieveParams, type NotificationListParams, type NotificationListVersionsParams, type NotificationPublishParams, type NotificationPutContentParams, type NotificationPutElementParams, type NotificationPutLocaleParams, type NotificationReplaceParams, type NotificationRetrieveContentParams, } from "./notifications/notifications.js";
|
|
13
14
|
export { Profiles, type SubscribeToListsRequestItem, type ProfileCreateResponse, type ProfileRetrieveResponse, type ProfileReplaceResponse, type ProfileCreateParams, type ProfileUpdateParams, type ProfileReplaceParams, } from "./profiles/profiles.js";
|
|
14
15
|
export { Providers, type Provider, type ProvidersCatalogEntry, type ProviderListResponse, type ProviderCreateParams, type ProviderUpdateParams, type ProviderListParams, } from "./providers/providers.js";
|
|
@@ -18,4 +19,5 @@ export { Send, type SendMessageResponse, type SendMessageParams } from "./send.j
|
|
|
18
19
|
export { Tenants, type BaseTemplateTenantAssociation, type DefaultPreferences, type PostTenantTemplatePublishRequest, type PostTenantTemplatePublishResponse, type PutTenantTemplateRequest, type PutTenantTemplateResponse, type SubscriptionTopicNew, type Tenant, type TenantAssociation, type TenantTemplateInput, type TenantListResponse, type TenantListUsersResponse, type TenantUpdateParams, type TenantListParams, type TenantListUsersParams, } from "./tenants/tenants.js";
|
|
19
20
|
export { Translations, type TranslationRetrieveResponse, type TranslationRetrieveParams, type TranslationUpdateParams, } from "./translations.js";
|
|
20
21
|
export { Users } from "./users/users.js";
|
|
22
|
+
export { WorkspacePreferences, type PublishPreferencesRequest, type PublishPreferencesResponse, type WorkspacePreferenceCreateRequest, type WorkspacePreferenceGetResponse, type WorkspacePreferenceListResponse, type WorkspacePreferenceReplaceRequest, type WorkspacePreferenceTopicCreateRequest, type WorkspacePreferenceTopicGetResponse, type WorkspacePreferenceTopicListResponse, type WorkspacePreferenceTopicReplaceRequest, type WorkspacePreferenceCreateParams, type WorkspacePreferencePublishParams, type WorkspacePreferenceReplaceParams, } from "./workspace-preferences/workspace-preferences.js";
|
|
21
23
|
//# sourceMappingURL=index.d.ts.map
|