@knocklabs/node 1.0.0 → 1.1.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 +1 -1
- package/api-promise.js +2 -15
- package/api-promise.js.map +1 -1
- package/client.d.mts +4 -1
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -1
- package/client.d.ts.map +1 -1
- package/client.js +27 -44
- package/client.js.map +1 -1
- package/client.mjs +18 -12
- package/client.mjs.map +1 -1
- package/core/api-promise.d.mts +0 -1
- package/core/api-promise.d.mts.map +1 -1
- package/core/api-promise.d.ts +0 -1
- package/core/api-promise.d.ts.map +1 -1
- package/core/api-promise.js +4 -14
- package/core/api-promise.js.map +1 -1
- package/core/api-promise.mjs +1 -11
- package/core/api-promise.mjs.map +1 -1
- package/core/error.d.mts +0 -1
- package/core/error.d.mts.map +1 -1
- package/core/error.d.ts +0 -1
- package/core/error.d.ts.map +1 -1
- package/core/error.js.map +1 -1
- package/core/error.mjs.map +1 -1
- package/core/pagination.d.mts +0 -1
- package/core/pagination.d.mts.map +1 -1
- package/core/pagination.d.ts +0 -1
- package/core/pagination.d.ts.map +1 -1
- package/core/pagination.js +3 -13
- package/core/pagination.js.map +1 -1
- package/core/pagination.mjs +1 -11
- package/core/pagination.mjs.map +1 -1
- package/error.js +2 -15
- package/error.js.map +1 -1
- package/internal/builtin-types.d.mts +0 -2
- package/internal/builtin-types.d.mts.map +1 -1
- package/internal/builtin-types.d.ts +0 -2
- package/internal/builtin-types.d.ts.map +1 -1
- package/internal/detect-platform.js.map +1 -1
- package/internal/detect-platform.mjs.map +1 -1
- package/internal/errors.d.mts.map +1 -1
- package/internal/errors.d.ts.map +1 -1
- package/internal/errors.js +2 -2
- package/internal/errors.js.map +1 -1
- package/internal/errors.mjs.map +1 -1
- package/internal/headers.d.mts +0 -1
- package/internal/headers.d.mts.map +1 -1
- package/internal/headers.d.ts +0 -1
- package/internal/headers.d.ts.map +1 -1
- package/internal/headers.js +1 -1
- package/internal/headers.js.map +1 -1
- package/internal/headers.mjs +1 -1
- package/internal/headers.mjs.map +1 -1
- package/internal/parse.d.mts +0 -1
- package/internal/parse.d.mts.map +1 -1
- package/internal/parse.d.ts +0 -1
- package/internal/parse.d.ts.map +1 -1
- package/internal/parse.js +1 -2
- package/internal/parse.js.map +1 -1
- package/internal/parse.mjs.map +1 -1
- package/internal/qs/stringify.js +1 -2
- package/internal/qs/stringify.js.map +1 -1
- package/internal/qs/stringify.mjs.map +1 -1
- package/internal/qs/utils.js +9 -9
- package/internal/qs/utils.js.map +1 -1
- package/internal/qs/utils.mjs.map +1 -1
- package/internal/request-options.d.mts +0 -1
- package/internal/request-options.d.mts.map +1 -1
- package/internal/request-options.d.ts +0 -1
- package/internal/request-options.d.ts.map +1 -1
- package/internal/shims.js +5 -6
- package/internal/shims.js.map +1 -1
- package/internal/shims.mjs.map +1 -1
- package/internal/to-file.d.mts +0 -1
- package/internal/to-file.d.mts.map +1 -1
- package/internal/to-file.d.ts +0 -1
- package/internal/to-file.d.ts.map +1 -1
- package/internal/to-file.js +4 -4
- package/internal/to-file.js.map +1 -1
- package/internal/to-file.mjs +3 -2
- package/internal/to-file.mjs.map +1 -1
- package/internal/tslib.js +81 -0
- package/internal/tslib.mjs +17 -0
- package/internal/types.d.mts +0 -1
- package/internal/types.d.mts.map +1 -1
- package/internal/types.d.ts +0 -1
- package/internal/types.d.ts.map +1 -1
- package/internal/uploads.d.mts +1 -3
- package/internal/uploads.d.mts.map +1 -1
- package/internal/uploads.d.ts +1 -3
- package/internal/uploads.d.ts.map +1 -1
- package/internal/uploads.js +16 -6
- package/internal/uploads.js.map +1 -1
- package/internal/uploads.mjs +12 -3
- package/internal/uploads.mjs.map +1 -1
- package/internal/utils/base64.d.mts.map +1 -1
- package/internal/utils/base64.d.ts.map +1 -1
- package/internal/utils/base64.js.map +1 -1
- package/internal/utils/base64.mjs.map +1 -1
- package/internal/utils/bytes.d.mts +1 -1
- package/internal/utils/bytes.d.mts.map +1 -1
- package/internal/utils/bytes.d.ts +1 -1
- package/internal/utils/bytes.d.ts.map +1 -1
- package/internal/utils/bytes.js +3 -4
- package/internal/utils/bytes.js.map +1 -1
- package/internal/utils/bytes.mjs.map +1 -1
- package/internal/utils/env.d.mts.map +1 -1
- package/internal/utils/env.d.ts.map +1 -1
- package/internal/utils/env.js.map +1 -1
- package/internal/utils/env.mjs.map +1 -1
- package/internal/utils/log.d.mts +0 -1
- package/internal/utils/log.d.mts.map +1 -1
- package/internal/utils/log.d.ts +0 -1
- package/internal/utils/log.d.ts.map +1 -1
- package/internal/utils/log.js +2 -2
- package/internal/utils/log.js.map +1 -1
- package/internal/utils/log.mjs.map +1 -1
- package/internal/utils/path.d.mts.map +1 -1
- package/internal/utils/path.d.ts.map +1 -1
- package/internal/utils/path.js +2 -2
- package/internal/utils/path.js.map +1 -1
- package/internal/utils/path.mjs.map +1 -1
- package/internal/utils/sleep.d.mts.map +1 -1
- package/internal/utils/sleep.d.ts.map +1 -1
- package/internal/utils/uuid.d.mts +1 -1
- package/internal/utils/uuid.d.mts.map +1 -1
- package/internal/utils/uuid.d.ts +1 -1
- package/internal/utils/uuid.d.ts.map +1 -1
- package/internal/utils/uuid.js +1 -2
- package/internal/utils/uuid.js.map +1 -1
- package/internal/utils/uuid.mjs +1 -2
- package/internal/utils/uuid.mjs.map +1 -1
- package/internal/utils/values.d.mts.map +1 -1
- package/internal/utils/values.d.ts.map +1 -1
- package/internal/utils/values.js +5 -5
- package/internal/utils/values.js.map +1 -1
- package/internal/utils/values.mjs.map +1 -1
- package/internal/utils.js +7 -20
- package/internal/utils.js.map +1 -1
- package/lib/index.js +3 -16
- package/lib/index.js.map +1 -1
- package/lib/tokenSigner.js +5 -28
- package/lib/tokenSigner.js.map +1 -1
- package/lib/tokenSigner.mjs.map +1 -1
- package/lib/userTokens.js +1 -1
- package/lib/userTokens.js.map +1 -1
- package/package.json +5 -6
- package/pagination.js +2 -15
- package/pagination.js.map +1 -1
- package/resource.js +2 -15
- package/resource.js.map +1 -1
- package/resources/audiences.d.mts +37 -0
- package/resources/audiences.d.mts.map +1 -1
- package/resources/audiences.d.ts +37 -0
- package/resources/audiences.d.ts.map +1 -1
- package/resources/audiences.js +25 -0
- package/resources/audiences.js.map +1 -1
- package/resources/audiences.mjs +25 -0
- package/resources/audiences.mjs.map +1 -1
- package/resources/bulk-operations.d.mts +7 -0
- package/resources/bulk-operations.d.mts.map +1 -1
- package/resources/bulk-operations.d.ts +7 -0
- package/resources/bulk-operations.d.ts.map +1 -1
- package/resources/bulk-operations.js +7 -0
- package/resources/bulk-operations.js.map +1 -1
- package/resources/bulk-operations.mjs +7 -0
- package/resources/bulk-operations.mjs.map +1 -1
- package/resources/channels/bulk.d.mts +21 -0
- package/resources/channels/bulk.d.mts.map +1 -1
- package/resources/channels/bulk.d.ts +21 -0
- package/resources/channels/bulk.d.ts.map +1 -1
- package/resources/channels/bulk.js +21 -0
- package/resources/channels/bulk.js.map +1 -1
- package/resources/channels/bulk.mjs +21 -0
- package/resources/channels/bulk.mjs.map +1 -1
- package/resources/channels/channels.js +2 -24
- package/resources/channels/channels.js.map +1 -1
- package/resources/channels.js +2 -15
- package/resources/channels.js.map +1 -1
- package/resources/integrations/integrations.js +3 -25
- package/resources/integrations/integrations.js.map +1 -1
- package/resources/integrations.js +2 -15
- package/resources/integrations.js.map +1 -1
- package/resources/messages/activities.d.mts +10 -0
- package/resources/messages/activities.d.mts.map +1 -1
- package/resources/messages/activities.d.ts +10 -0
- package/resources/messages/activities.d.ts.map +1 -1
- package/resources/messages/activities.js +10 -0
- package/resources/messages/activities.js.map +1 -1
- package/resources/messages/activities.mjs +10 -0
- package/resources/messages/activities.mjs.map +1 -1
- package/resources/messages/batch.d.mts +76 -0
- package/resources/messages/batch.d.mts.map +1 -1
- package/resources/messages/batch.d.ts +76 -0
- package/resources/messages/batch.d.ts.map +1 -1
- package/resources/messages/batch.js +76 -0
- package/resources/messages/batch.js.map +1 -1
- package/resources/messages/batch.mjs +76 -0
- package/resources/messages/batch.mjs.map +1 -1
- package/resources/messages/messages.d.mts +101 -0
- package/resources/messages/messages.d.mts.map +1 -1
- package/resources/messages/messages.d.ts +101 -0
- package/resources/messages/messages.d.ts.map +1 -1
- package/resources/messages/messages.js +104 -25
- package/resources/messages/messages.js.map +1 -1
- package/resources/messages/messages.mjs +101 -0
- package/resources/messages/messages.mjs.map +1 -1
- package/resources/messages.js +2 -15
- package/resources/messages.js.map +1 -1
- package/resources/objects/bulk.d.mts +49 -0
- package/resources/objects/bulk.d.mts.map +1 -1
- package/resources/objects/bulk.d.ts +49 -0
- package/resources/objects/bulk.d.ts.map +1 -1
- package/resources/objects/bulk.js +49 -0
- package/resources/objects/bulk.js.map +1 -1
- package/resources/objects/bulk.mjs +49 -0
- package/resources/objects/bulk.mjs.map +1 -1
- package/resources/objects/objects.d.mts +175 -4
- package/resources/objects/objects.d.mts.map +1 -1
- package/resources/objects/objects.d.ts +175 -4
- package/resources/objects/objects.d.ts.map +1 -1
- package/resources/objects/objects.js +173 -24
- package/resources/objects/objects.js.map +1 -1
- package/resources/objects/objects.mjs +171 -0
- package/resources/objects/objects.mjs.map +1 -1
- package/resources/objects.js +2 -15
- package/resources/objects.js.map +1 -1
- package/resources/providers/ms-teams.d.mts +40 -0
- package/resources/providers/ms-teams.d.mts.map +1 -1
- package/resources/providers/ms-teams.d.ts +40 -0
- package/resources/providers/ms-teams.d.ts.map +1 -1
- package/resources/providers/ms-teams.js +40 -0
- package/resources/providers/ms-teams.js.map +1 -1
- package/resources/providers/ms-teams.mjs +40 -0
- package/resources/providers/ms-teams.mjs.map +1 -1
- package/resources/providers/providers.js +3 -25
- package/resources/providers/providers.js.map +1 -1
- package/resources/providers/slack.d.mts +27 -0
- package/resources/providers/slack.d.mts.map +1 -1
- package/resources/providers/slack.d.ts +27 -0
- package/resources/providers/slack.d.ts.map +1 -1
- package/resources/providers/slack.js +27 -0
- package/resources/providers/slack.js.map +1 -1
- package/resources/providers/slack.mjs +27 -0
- package/resources/providers/slack.mjs.map +1 -1
- package/resources/providers.js +2 -15
- package/resources/providers.js.map +1 -1
- package/resources/recipients/recipients.js +4 -26
- package/resources/recipients/recipients.js.map +1 -1
- package/resources/recipients.js +2 -15
- package/resources/recipients.js.map +1 -1
- package/resources/schedules/bulk.d.mts +30 -0
- package/resources/schedules/bulk.d.mts.map +1 -1
- package/resources/schedules/bulk.d.ts +30 -0
- package/resources/schedules/bulk.d.ts.map +1 -1
- package/resources/schedules/bulk.js +30 -0
- package/resources/schedules/bulk.js.map +1 -1
- package/resources/schedules/bulk.mjs +30 -0
- package/resources/schedules/bulk.mjs.map +1 -1
- package/resources/schedules/schedules.d.mts +74 -0
- package/resources/schedules/schedules.d.mts.map +1 -1
- package/resources/schedules/schedules.d.ts +74 -0
- package/resources/schedules/schedules.d.ts.map +1 -1
- package/resources/schedules/schedules.js +76 -24
- package/resources/schedules/schedules.js.map +1 -1
- package/resources/schedules/schedules.mjs +74 -0
- package/resources/schedules/schedules.mjs.map +1 -1
- package/resources/schedules.js +2 -15
- package/resources/schedules.js.map +1 -1
- package/resources/tenants/bulk.d.mts +14 -0
- package/resources/tenants/bulk.d.mts.map +1 -1
- package/resources/tenants/bulk.d.ts +14 -0
- package/resources/tenants/bulk.d.ts.map +1 -1
- package/resources/tenants/bulk.js +14 -0
- package/resources/tenants/bulk.js.map +1 -1
- package/resources/tenants/bulk.mjs +14 -0
- package/resources/tenants/bulk.mjs.map +1 -1
- package/resources/tenants/tenants.d.mts +33 -0
- package/resources/tenants/tenants.d.mts.map +1 -1
- package/resources/tenants/tenants.d.ts +33 -0
- package/resources/tenants/tenants.d.ts.map +1 -1
- package/resources/tenants/tenants.js +35 -24
- package/resources/tenants/tenants.js.map +1 -1
- package/resources/tenants/tenants.mjs +33 -0
- package/resources/tenants/tenants.mjs.map +1 -1
- package/resources/tenants.js +2 -15
- package/resources/tenants.js.map +1 -1
- package/resources/users/bulk.d.mts +41 -0
- package/resources/users/bulk.d.mts.map +1 -1
- package/resources/users/bulk.d.ts +41 -0
- package/resources/users/bulk.d.ts.map +1 -1
- package/resources/users/bulk.js +41 -0
- package/resources/users/bulk.js.map +1 -1
- package/resources/users/bulk.mjs +41 -0
- package/resources/users/bulk.mjs.map +1 -1
- package/resources/users/feeds.d.mts +19 -0
- package/resources/users/feeds.d.mts.map +1 -1
- package/resources/users/feeds.d.ts +19 -0
- package/resources/users/feeds.d.ts.map +1 -1
- package/resources/users/feeds.js +19 -0
- package/resources/users/feeds.js.map +1 -1
- package/resources/users/feeds.mjs +19 -0
- package/resources/users/feeds.mjs.map +1 -1
- package/resources/users/guides.d.mts +68 -0
- package/resources/users/guides.d.mts.map +1 -1
- package/resources/users/guides.d.ts +68 -0
- package/resources/users/guides.d.ts.map +1 -1
- package/resources/users/guides.js +68 -0
- package/resources/users/guides.js.map +1 -1
- package/resources/users/guides.mjs +68 -0
- package/resources/users/guides.mjs.map +1 -1
- package/resources/users/users.d.mts +169 -15
- package/resources/users/users.d.mts.map +1 -1
- package/resources/users/users.d.ts +169 -15
- package/resources/users/users.d.ts.map +1 -1
- package/resources/users/users.js +143 -26
- package/resources/users/users.js.map +1 -1
- package/resources/users/users.mjs +139 -0
- package/resources/users/users.mjs.map +1 -1
- package/resources/users.js +2 -15
- package/resources/users.js.map +1 -1
- package/resources/workflows.d.mts +30 -0
- package/resources/workflows.d.mts.map +1 -1
- package/resources/workflows.d.ts +30 -0
- package/resources/workflows.d.ts.map +1 -1
- package/resources/workflows.js +30 -0
- package/resources/workflows.js.map +1 -1
- package/resources/workflows.mjs +30 -0
- package/resources/workflows.mjs.map +1 -1
- package/resources.js +2 -15
- package/resources.js.map +1 -1
- package/src/client.ts +17 -0
- package/src/internal/headers.ts +1 -1
- package/src/internal/to-file.ts +4 -2
- package/src/internal/uploads.ts +16 -4
- package/src/internal/utils/uuid.ts +1 -3
- package/src/resources/audiences.ts +37 -0
- package/src/resources/bulk-operations.ts +7 -0
- package/src/resources/channels/bulk.ts +21 -0
- package/src/resources/messages/activities.ts +10 -0
- package/src/resources/messages/batch.ts +76 -0
- package/src/resources/messages/messages.ts +101 -0
- package/src/resources/objects/bulk.ts +49 -0
- package/src/resources/objects/objects.ts +175 -4
- package/src/resources/providers/ms-teams.ts +40 -0
- package/src/resources/providers/slack.ts +27 -0
- package/src/resources/schedules/bulk.ts +30 -0
- package/src/resources/schedules/schedules.ts +74 -0
- package/src/resources/tenants/bulk.ts +14 -0
- package/src/resources/tenants/tenants.ts +33 -0
- package/src/resources/users/bulk.ts +41 -0
- package/src/resources/users/feeds.ts +19 -0
- package/src/resources/users/guides.ts +68 -0
- package/src/resources/users/users.ts +172 -15
- package/src/resources/workflows.ts +30 -0
- package/src/version.ts +1 -1
- package/uploads.js +2 -15
- package/uploads.js.map +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/internal/shims/crypto.d.mts +0 -13
- package/internal/shims/crypto.d.mts.map +0 -1
- package/internal/shims/crypto.d.ts +0 -13
- package/internal/shims/crypto.d.ts.map +0 -1
- package/internal/shims/crypto.js +0 -13
- package/internal/shims/crypto.js.map +0 -1
- package/internal/shims/crypto.mjs +0 -9
- package/internal/shims/crypto.mjs.map +0 -1
- package/internal/shims/file.d.mts +0 -23
- package/internal/shims/file.d.mts.map +0 -1
- package/internal/shims/file.d.ts +0 -23
- package/internal/shims/file.d.ts.map +0 -1
- package/internal/shims/file.js +0 -16
- package/internal/shims/file.js.map +0 -1
- package/internal/shims/file.mjs +0 -12
- package/internal/shims/file.mjs.map +0 -1
- package/internal/shims/getBuiltinModule.d.mts +0 -11
- package/internal/shims/getBuiltinModule.d.mts.map +0 -1
- package/internal/shims/getBuiltinModule.d.ts +0 -11
- package/internal/shims/getBuiltinModule.d.ts.map +0 -1
- package/internal/shims/getBuiltinModule.js +0 -71
- package/internal/shims/getBuiltinModule.js.map +0 -1
- package/internal/shims/getBuiltinModule.mjs +0 -67
- package/internal/shims/getBuiltinModule.mjs.map +0 -1
- package/internal/shims/nullGetBuiltinModule.d.mts +0 -2
- package/internal/shims/nullGetBuiltinModule.d.mts.map +0 -1
- package/internal/shims/nullGetBuiltinModule.d.ts +0 -2
- package/internal/shims/nullGetBuiltinModule.d.ts.map +0 -1
- package/internal/shims/nullGetBuiltinModule.js +0 -5
- package/internal/shims/nullGetBuiltinModule.js.map +0 -1
- package/internal/shims/nullGetBuiltinModule.mjs +0 -2
- package/internal/shims/nullGetBuiltinModule.mjs.map +0 -1
- package/src/internal/shims/crypto.ts +0 -18
- package/src/internal/shims/file.ts +0 -32
- package/src/internal/shims/getBuiltinModule.ts +0 -66
- package/src/internal/shims/nullGetBuiltinModule.ts +0 -1
|
@@ -25,65 +25,204 @@ export declare class Users extends APIResource {
|
|
|
25
25
|
* Create or update a user with the provided identification data. When you identify
|
|
26
26
|
* an existing user, the system merges the properties you specific with what is
|
|
27
27
|
* currently set on the user, updating only the fields included in your requests.
|
|
28
|
+
*
|
|
29
|
+
* @example
|
|
30
|
+
* ```ts
|
|
31
|
+
* const user = await client.users.update('user_id', {
|
|
32
|
+
* channel_data: {
|
|
33
|
+
* '97c5837d-c65c-4d54-aa39-080eeb81c69d': {
|
|
34
|
+
* data: { tokens: ['push_token_123'] },
|
|
35
|
+
* },
|
|
36
|
+
* },
|
|
37
|
+
* email: 'ian.malcolm@chaos.theory',
|
|
38
|
+
* name: 'Dr. Ian Malcolm',
|
|
39
|
+
* preferences: {
|
|
40
|
+
* default: {
|
|
41
|
+
* channel_types: { email: true },
|
|
42
|
+
* workflows: {
|
|
43
|
+
* 'dinosaurs-loose': {
|
|
44
|
+
* channel_types: { email: true },
|
|
45
|
+
* },
|
|
46
|
+
* },
|
|
47
|
+
* },
|
|
48
|
+
* },
|
|
49
|
+
* timezone: 'America/New_York',
|
|
50
|
+
* });
|
|
51
|
+
* ```
|
|
28
52
|
*/
|
|
29
53
|
update(userID: string, body: UserUpdateParams, options?: RequestOptions): APIPromise<User>;
|
|
30
54
|
/**
|
|
31
55
|
* Retrieve a paginated list of users in the environment. Defaults to 50 users per
|
|
32
56
|
* page.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* // Automatically fetches more pages as needed.
|
|
61
|
+
* for await (const user of client.users.list()) {
|
|
62
|
+
* // ...
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
33
65
|
*/
|
|
34
66
|
list(query?: UserListParams | null | undefined, options?: RequestOptions): PagePromise<UsersEntriesCursor, User>;
|
|
35
67
|
/**
|
|
36
68
|
* Permanently delete a user and all associated data.
|
|
69
|
+
*
|
|
70
|
+
* @example
|
|
71
|
+
* ```ts
|
|
72
|
+
* const user = await client.users.delete('user_id');
|
|
73
|
+
* ```
|
|
37
74
|
*/
|
|
38
75
|
delete(userID: string, options?: RequestOptions): APIPromise<string>;
|
|
39
76
|
/**
|
|
40
77
|
* Retrieve a specific user by their ID.
|
|
78
|
+
*
|
|
79
|
+
* @example
|
|
80
|
+
* ```ts
|
|
81
|
+
* const user = await client.users.get('user_id');
|
|
82
|
+
* ```
|
|
41
83
|
*/
|
|
42
84
|
get(userID: string, options?: RequestOptions): APIPromise<User>;
|
|
43
85
|
/**
|
|
44
86
|
* Retrieves the channel data for a specific user and channel ID.
|
|
87
|
+
*
|
|
88
|
+
* @example
|
|
89
|
+
* ```ts
|
|
90
|
+
* const channelData = await client.users.getChannelData(
|
|
91
|
+
* 'user_id',
|
|
92
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
93
|
+
* );
|
|
94
|
+
* ```
|
|
45
95
|
*/
|
|
46
96
|
getChannelData(userID: string, channelID: string, options?: RequestOptions): APIPromise<ChannelDataAPI.ChannelData>;
|
|
47
97
|
/**
|
|
48
98
|
* Retrieves a specific preference set for a user identified by the preference set
|
|
49
99
|
* ID.
|
|
100
|
+
*
|
|
101
|
+
* @example
|
|
102
|
+
* ```ts
|
|
103
|
+
* const preferenceSet = await client.users.getPreferences(
|
|
104
|
+
* 'user_id',
|
|
105
|
+
* 'default',
|
|
106
|
+
* );
|
|
107
|
+
* ```
|
|
50
108
|
*/
|
|
51
109
|
getPreferences(userID: string, id: string, query?: UserGetPreferencesParams | null | undefined, options?: RequestOptions): APIPromise<PreferencesAPI.PreferenceSet>;
|
|
52
110
|
/**
|
|
53
111
|
* Returns a paginated list of messages for a specific user. Allows filtering by
|
|
54
112
|
* message status and provides various sorting options. Messages outside the
|
|
55
113
|
* account's retention window will not be included in the results.
|
|
114
|
+
*
|
|
115
|
+
* @example
|
|
116
|
+
* ```ts
|
|
117
|
+
* // Automatically fetches more pages as needed.
|
|
118
|
+
* for await (const message of client.users.listMessages(
|
|
119
|
+
* 'user-123',
|
|
120
|
+
* )) {
|
|
121
|
+
* // ...
|
|
122
|
+
* }
|
|
123
|
+
* ```
|
|
56
124
|
*/
|
|
57
125
|
listMessages(userID: string, query?: UserListMessagesParams | null | undefined, options?: RequestOptions): PagePromise<MessagesEntriesCursor, MessagesAPI.Message>;
|
|
58
126
|
/**
|
|
59
127
|
* Retrieves a list of all preference sets for a specific user.
|
|
128
|
+
*
|
|
129
|
+
* @example
|
|
130
|
+
* ```ts
|
|
131
|
+
* const preferenceSets = await client.users.listPreferences(
|
|
132
|
+
* 'user_id',
|
|
133
|
+
* );
|
|
134
|
+
* ```
|
|
60
135
|
*/
|
|
61
136
|
listPreferences(userID: string, options?: RequestOptions): APIPromise<UserListPreferencesResponse>;
|
|
62
137
|
/**
|
|
63
138
|
* Returns a paginated list of schedules for a specific user, in descending order.
|
|
139
|
+
*
|
|
140
|
+
* @example
|
|
141
|
+
* ```ts
|
|
142
|
+
* // Automatically fetches more pages as needed.
|
|
143
|
+
* for await (const schedule of client.users.listSchedules(
|
|
144
|
+
* 'user_id',
|
|
145
|
+
* )) {
|
|
146
|
+
* // ...
|
|
147
|
+
* }
|
|
148
|
+
* ```
|
|
64
149
|
*/
|
|
65
150
|
listSchedules(userID: string, query?: UserListSchedulesParams | null | undefined, options?: RequestOptions): PagePromise<SchedulesEntriesCursor, SchedulesAPI.Schedule>;
|
|
66
151
|
/**
|
|
67
152
|
* Retrieves a paginated list of subscriptions for a specific user, in descending
|
|
68
153
|
* order.
|
|
154
|
+
*
|
|
155
|
+
* @example
|
|
156
|
+
* ```ts
|
|
157
|
+
* // Automatically fetches more pages as needed.
|
|
158
|
+
* for await (const subscription of client.users.listSubscriptions(
|
|
159
|
+
* 'user_id',
|
|
160
|
+
* )) {
|
|
161
|
+
* // ...
|
|
162
|
+
* }
|
|
163
|
+
* ```
|
|
69
164
|
*/
|
|
70
165
|
listSubscriptions(userID: string, query?: UserListSubscriptionsParams | null | undefined, options?: RequestOptions): PagePromise<SubscriptionsEntriesCursor, SubscriptionsAPI.Subscription>;
|
|
71
166
|
/**
|
|
72
167
|
* Merge two users together, where the user specified with the `from_user_id` param
|
|
73
168
|
* will be merged into the user specified by `user_id`.
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* ```ts
|
|
172
|
+
* const user = await client.users.merge('user_id', {
|
|
173
|
+
* from_user_id: 'user_1',
|
|
174
|
+
* });
|
|
175
|
+
* ```
|
|
74
176
|
*/
|
|
75
177
|
merge(userID: string, body: UserMergeParams, options?: RequestOptions): APIPromise<User>;
|
|
76
178
|
/**
|
|
77
179
|
* Updates or creates channel data for a specific user and channel ID.
|
|
180
|
+
*
|
|
181
|
+
* @example
|
|
182
|
+
* ```ts
|
|
183
|
+
* const channelData = await client.users.setChannelData(
|
|
184
|
+
* 'user_id',
|
|
185
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
186
|
+
* { data: { tokens: ['push_token_1'] } },
|
|
187
|
+
* );
|
|
188
|
+
* ```
|
|
78
189
|
*/
|
|
79
190
|
setChannelData(userID: string, channelID: string, body: UserSetChannelDataParams, options?: RequestOptions): APIPromise<ChannelDataAPI.ChannelData>;
|
|
80
191
|
/**
|
|
81
192
|
* Updates a complete preference set for a user. This is a destructive operation
|
|
82
193
|
* that will replace the existing preference set for the user.
|
|
194
|
+
*
|
|
195
|
+
* @example
|
|
196
|
+
* ```ts
|
|
197
|
+
* const preferenceSet = await client.users.setPreferences(
|
|
198
|
+
* 'user_id',
|
|
199
|
+
* 'default',
|
|
200
|
+
* {
|
|
201
|
+
* categories: {
|
|
202
|
+
* marketing: false,
|
|
203
|
+
* transactional: { channel_types: { email: false } },
|
|
204
|
+
* },
|
|
205
|
+
* channel_types: { email: true },
|
|
206
|
+
* workflows: {
|
|
207
|
+
* 'dinosaurs-loose': {
|
|
208
|
+
* channel_types: { email: false },
|
|
209
|
+
* },
|
|
210
|
+
* },
|
|
211
|
+
* },
|
|
212
|
+
* );
|
|
213
|
+
* ```
|
|
83
214
|
*/
|
|
84
215
|
setPreferences(userID: string, id: string, body: UserSetPreferencesParams, options?: RequestOptions): APIPromise<PreferencesAPI.PreferenceSet>;
|
|
85
216
|
/**
|
|
86
217
|
* Deletes channel data for a specific user and channel ID.
|
|
218
|
+
*
|
|
219
|
+
* @example
|
|
220
|
+
* ```ts
|
|
221
|
+
* const response = await client.users.unsetChannelData(
|
|
222
|
+
* 'user_id',
|
|
223
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
224
|
+
* );
|
|
225
|
+
* ```
|
|
87
226
|
*/
|
|
88
227
|
unsetChannelData(userID: string, channelID: string, options?: RequestOptions): APIPromise<string>;
|
|
89
228
|
}
|
|
@@ -119,7 +258,7 @@ export interface IdentifyUserRequest {
|
|
|
119
258
|
*/
|
|
120
259
|
name?: string | null;
|
|
121
260
|
/**
|
|
122
|
-
* The
|
|
261
|
+
* The [E.164](https://www.twilio.com/docs/glossary/what-e164) phone number of the
|
|
123
262
|
* user (required for SMS channels).
|
|
124
263
|
*/
|
|
125
264
|
phone_number?: string | null;
|
|
@@ -128,10 +267,10 @@ export interface IdentifyUserRequest {
|
|
|
128
267
|
*/
|
|
129
268
|
preferences?: PreferencesAPI.InlinePreferenceSetRequest | null;
|
|
130
269
|
/**
|
|
131
|
-
* The timezone of the user. Must be a
|
|
132
|
-
* [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
133
|
-
* Used
|
|
134
|
-
* [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
|
|
270
|
+
* The timezone of the user. Must be a
|
|
271
|
+
* valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
272
|
+
* Used
|
|
273
|
+
* for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
|
|
135
274
|
*/
|
|
136
275
|
timezone?: string | null;
|
|
137
276
|
[k: string]: unknown;
|
|
@@ -155,10 +294,25 @@ export interface InlineIdentifyUserRequest {
|
|
|
155
294
|
* The creation date of the user from your system.
|
|
156
295
|
*/
|
|
157
296
|
created_at?: string | null;
|
|
297
|
+
/**
|
|
298
|
+
* The primary email address for the user.
|
|
299
|
+
*/
|
|
300
|
+
email?: string | null;
|
|
301
|
+
/**
|
|
302
|
+
* Display name of the user.
|
|
303
|
+
*/
|
|
304
|
+
name?: string | null;
|
|
158
305
|
/**
|
|
159
306
|
* Inline set preferences for a recipient, where the key is the preference set id.
|
|
160
307
|
*/
|
|
161
308
|
preferences?: PreferencesAPI.InlinePreferenceSetRequest | null;
|
|
309
|
+
/**
|
|
310
|
+
* The timezone of the user. Must be a
|
|
311
|
+
* valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
312
|
+
* Used
|
|
313
|
+
* for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
|
|
314
|
+
*/
|
|
315
|
+
timezone?: string | null;
|
|
162
316
|
[k: string]: unknown;
|
|
163
317
|
}
|
|
164
318
|
/**
|
|
@@ -196,15 +350,15 @@ export interface User {
|
|
|
196
350
|
*/
|
|
197
351
|
name?: string | null;
|
|
198
352
|
/**
|
|
199
|
-
* The
|
|
353
|
+
* The [E.164](https://www.twilio.com/docs/glossary/what-e164) phone number of the
|
|
200
354
|
* user (required for SMS channels).
|
|
201
355
|
*/
|
|
202
356
|
phone_number?: string | null;
|
|
203
357
|
/**
|
|
204
|
-
* The timezone of the user. Must be a
|
|
205
|
-
* [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
206
|
-
* Used
|
|
207
|
-
* [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
|
|
358
|
+
* The timezone of the user. Must be a
|
|
359
|
+
* valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
360
|
+
* Used
|
|
361
|
+
* for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
|
|
208
362
|
*/
|
|
209
363
|
timezone?: string | null;
|
|
210
364
|
[k: string]: unknown;
|
|
@@ -247,7 +401,7 @@ export interface UserUpdateParams {
|
|
|
247
401
|
*/
|
|
248
402
|
name?: string | null;
|
|
249
403
|
/**
|
|
250
|
-
* The
|
|
404
|
+
* The [E.164](https://www.twilio.com/docs/glossary/what-e164) phone number of the
|
|
251
405
|
* user (required for SMS channels).
|
|
252
406
|
*/
|
|
253
407
|
phone_number?: string | null;
|
|
@@ -256,10 +410,10 @@ export interface UserUpdateParams {
|
|
|
256
410
|
*/
|
|
257
411
|
preferences?: PreferencesAPI.InlinePreferenceSetRequest | null;
|
|
258
412
|
/**
|
|
259
|
-
* The timezone of the user. Must be a
|
|
260
|
-
* [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
261
|
-
* Used
|
|
262
|
-
* [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
|
|
413
|
+
* The timezone of the user. Must be a
|
|
414
|
+
* valid [tz database time zone string](https://en.wikipedia.org/wiki/List_of_tz_database_time_zones).
|
|
415
|
+
* Used
|
|
416
|
+
* for [recurring schedules](/concepts/schedules#scheduling-workflows-with-recurring-schedules-for-recipients).
|
|
263
417
|
*/
|
|
264
418
|
timezone?: string | null;
|
|
265
419
|
[k: string]: unknown;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,WAAW;OAChB,EAAE,qBAAqB,EAAE;OACzB,KAAK,cAAc;OACnB,KAAK,cAAc;OACnB,KAAK,gBAAgB;OACrB,EAAE,0BAA0B,EAAE;OAC9B,KAAK,YAAY;OACjB,EAAE,sBAAsB,EAAE;OAC1B,KAAK,OAAO;OACZ,EAAE,IAAI,EAAE,gBAAgB,EAAE,kBAAkB,EAAE,wBAAwB,EAAE;OACxE,KAAK,QAAQ;OACb,EACL,uBAAuB,EACvB,mBAAmB,EACnB,qBAAqB,EACrB,mCAAmC,EACnC,KAAK,EACN;OACM,KAAK,SAAS;OACd,EACL,qBAAqB,EACrB,uBAAuB,EACvB,gCAAgC,EAChC,kCAAkC,EAClC,kCAAkC,EAClC,oCAAoC,EACpC,4BAA4B,EAC5B,8BAA8B,EAC9B,MAAM,EACP;OACM,EAAE,UAAU,EAAE;OACd,EAAE,aAAa,EAAE,KAAK,mBAAmB,EAAE,WAAW,EAAE;OACxD,EAAE,cAAc,EAAE;AAGzB,qBAAa,KAAM,SAAQ,WAAW;IACpC,KAAK,EAAE,QAAQ,CAAC,KAAK,CAAoC;IACzD,MAAM,EAAE,SAAS,CAAC,MAAM,CAAsC;IAC9D,IAAI,EAAE,OAAO,CAAC,IAAI,CAAkC;IAEpD
|
|
1
|
+
{"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":"OAEO,EAAE,WAAW,EAAE;OACf,KAAK,SAAS;OACd,KAAK,WAAW;OAChB,EAAE,qBAAqB,EAAE;OACzB,KAAK,cAAc;OACnB,KAAK,cAAc;OACnB,KAAK,gBAAgB;OACrB,EAAE,0BA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AI,kBAAkB,EAC7C,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,2BAA2B,IAAI,2BAA2B,EAC/D,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;IAEF,OAAO,EACL,KAAK,IAAI,KAAK,EACd,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,mCAAmC,IAAI,mCAAmC,EAC/E,KAAK,mBAAmB,IAAI,mBAAmB,GAChD,CAAC;IAEF,OAAO,EACL,MAAM,IAAI,MAAM,EAChB,KAAK,uBAAuB,IAAI,uBAAuB,EACvD,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,8BAA8B,IAAI,8BAA8B,EACrE,KAAK,qBAAqB,IAAI,qBAAqB,EACnD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,kCAAkC,IAAI,kCAAkC,EAC7E,KAAK,4BAA4B,IAAI,4BAA4B,GAClE,CAAC;IAEF,OAAO,EACL,IAAI,IAAI,IAAI,EACZ,KAAK,gBAAgB,IAAI,gBAAgB,EACzC,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,wBAAwB,IAAI,wBAAwB,GAC1D,CAAC;CACH;AAED,OAAO,EAAE,KAAK,qBAAqB,EAAE,KAAK,sBAAsB,EAAE,KAAK,0BAA0B,EAAE,CAAC"}
|
package/resources/users/users.js
CHANGED
|
@@ -1,36 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
// File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
3
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
4
|
-
if (k2 === undefined) k2 = k;
|
|
5
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
6
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
7
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
8
|
-
}
|
|
9
|
-
Object.defineProperty(o, k2, desc);
|
|
10
|
-
}) : (function(o, m, k, k2) {
|
|
11
|
-
if (k2 === undefined) k2 = k;
|
|
12
|
-
o[k2] = m[k];
|
|
13
|
-
}));
|
|
14
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
15
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
16
|
-
}) : function(o, v) {
|
|
17
|
-
o["default"] = v;
|
|
18
|
-
});
|
|
19
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
20
|
-
if (mod && mod.__esModule) return mod;
|
|
21
|
-
var result = {};
|
|
22
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
23
|
-
__setModuleDefault(result, mod);
|
|
24
|
-
return result;
|
|
25
|
-
};
|
|
26
3
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
27
4
|
exports.Users = void 0;
|
|
5
|
+
const tslib_1 = require("../../internal/tslib.js");
|
|
28
6
|
const resource_1 = require("../../core/resource.js");
|
|
29
|
-
const BulkAPI = __importStar(require("./bulk.js"));
|
|
7
|
+
const BulkAPI = tslib_1.__importStar(require("./bulk.js"));
|
|
30
8
|
const bulk_1 = require("./bulk.js");
|
|
31
|
-
const FeedsAPI = __importStar(require("./feeds.js"));
|
|
9
|
+
const FeedsAPI = tslib_1.__importStar(require("./feeds.js"));
|
|
32
10
|
const feeds_1 = require("./feeds.js");
|
|
33
|
-
const GuidesAPI = __importStar(require("./guides.js"));
|
|
11
|
+
const GuidesAPI = tslib_1.__importStar(require("./guides.js"));
|
|
34
12
|
const guides_1 = require("./guides.js");
|
|
35
13
|
const pagination_1 = require("../../core/pagination.js");
|
|
36
14
|
const path_1 = require("../../internal/utils/path.js");
|
|
@@ -45,6 +23,30 @@ class Users extends resource_1.APIResource {
|
|
|
45
23
|
* Create or update a user with the provided identification data. When you identify
|
|
46
24
|
* an existing user, the system merges the properties you specific with what is
|
|
47
25
|
* currently set on the user, updating only the fields included in your requests.
|
|
26
|
+
*
|
|
27
|
+
* @example
|
|
28
|
+
* ```ts
|
|
29
|
+
* const user = await client.users.update('user_id', {
|
|
30
|
+
* channel_data: {
|
|
31
|
+
* '97c5837d-c65c-4d54-aa39-080eeb81c69d': {
|
|
32
|
+
* data: { tokens: ['push_token_123'] },
|
|
33
|
+
* },
|
|
34
|
+
* },
|
|
35
|
+
* email: 'ian.malcolm@chaos.theory',
|
|
36
|
+
* name: 'Dr. Ian Malcolm',
|
|
37
|
+
* preferences: {
|
|
38
|
+
* default: {
|
|
39
|
+
* channel_types: { email: true },
|
|
40
|
+
* workflows: {
|
|
41
|
+
* 'dinosaurs-loose': {
|
|
42
|
+
* channel_types: { email: true },
|
|
43
|
+
* },
|
|
44
|
+
* },
|
|
45
|
+
* },
|
|
46
|
+
* },
|
|
47
|
+
* timezone: 'America/New_York',
|
|
48
|
+
* });
|
|
49
|
+
* ```
|
|
48
50
|
*/
|
|
49
51
|
update(userID, body, options) {
|
|
50
52
|
return this._client.put((0, path_1.path) `/v1/users/${userID}`, { body, ...options });
|
|
@@ -52,24 +54,50 @@ class Users extends resource_1.APIResource {
|
|
|
52
54
|
/**
|
|
53
55
|
* Retrieve a paginated list of users in the environment. Defaults to 50 users per
|
|
54
56
|
* page.
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* ```ts
|
|
60
|
+
* // Automatically fetches more pages as needed.
|
|
61
|
+
* for await (const user of client.users.list()) {
|
|
62
|
+
* // ...
|
|
63
|
+
* }
|
|
64
|
+
* ```
|
|
55
65
|
*/
|
|
56
66
|
list(query = {}, options) {
|
|
57
67
|
return this._client.getAPIList('/v1/users', (pagination_1.EntriesCursor), { query, ...options });
|
|
58
68
|
}
|
|
59
69
|
/**
|
|
60
70
|
* Permanently delete a user and all associated data.
|
|
71
|
+
*
|
|
72
|
+
* @example
|
|
73
|
+
* ```ts
|
|
74
|
+
* const user = await client.users.delete('user_id');
|
|
75
|
+
* ```
|
|
61
76
|
*/
|
|
62
77
|
delete(userID, options) {
|
|
63
78
|
return this._client.delete((0, path_1.path) `/v1/users/${userID}`, options);
|
|
64
79
|
}
|
|
65
80
|
/**
|
|
66
81
|
* Retrieve a specific user by their ID.
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* const user = await client.users.get('user_id');
|
|
86
|
+
* ```
|
|
67
87
|
*/
|
|
68
88
|
get(userID, options) {
|
|
69
89
|
return this._client.get((0, path_1.path) `/v1/users/${userID}`, options);
|
|
70
90
|
}
|
|
71
91
|
/**
|
|
72
92
|
* Retrieves the channel data for a specific user and channel ID.
|
|
93
|
+
*
|
|
94
|
+
* @example
|
|
95
|
+
* ```ts
|
|
96
|
+
* const channelData = await client.users.getChannelData(
|
|
97
|
+
* 'user_id',
|
|
98
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
99
|
+
* );
|
|
100
|
+
* ```
|
|
73
101
|
*/
|
|
74
102
|
getChannelData(userID, channelID, options) {
|
|
75
103
|
return this._client.get((0, path_1.path) `/v1/users/${userID}/channel_data/${channelID}`, options);
|
|
@@ -77,6 +105,14 @@ class Users extends resource_1.APIResource {
|
|
|
77
105
|
/**
|
|
78
106
|
* Retrieves a specific preference set for a user identified by the preference set
|
|
79
107
|
* ID.
|
|
108
|
+
*
|
|
109
|
+
* @example
|
|
110
|
+
* ```ts
|
|
111
|
+
* const preferenceSet = await client.users.getPreferences(
|
|
112
|
+
* 'user_id',
|
|
113
|
+
* 'default',
|
|
114
|
+
* );
|
|
115
|
+
* ```
|
|
80
116
|
*/
|
|
81
117
|
getPreferences(userID, id, query = {}, options) {
|
|
82
118
|
return this._client.get((0, path_1.path) `/v1/users/${userID}/preferences/${id}`, { query, ...options });
|
|
@@ -85,6 +121,16 @@ class Users extends resource_1.APIResource {
|
|
|
85
121
|
* Returns a paginated list of messages for a specific user. Allows filtering by
|
|
86
122
|
* message status and provides various sorting options. Messages outside the
|
|
87
123
|
* account's retention window will not be included in the results.
|
|
124
|
+
*
|
|
125
|
+
* @example
|
|
126
|
+
* ```ts
|
|
127
|
+
* // Automatically fetches more pages as needed.
|
|
128
|
+
* for await (const message of client.users.listMessages(
|
|
129
|
+
* 'user-123',
|
|
130
|
+
* )) {
|
|
131
|
+
* // ...
|
|
132
|
+
* }
|
|
133
|
+
* ```
|
|
88
134
|
*/
|
|
89
135
|
listMessages(userID, query = {}, options) {
|
|
90
136
|
return this._client.getAPIList((0, path_1.path) `/v1/users/${userID}/messages`, (pagination_1.EntriesCursor), {
|
|
@@ -94,12 +140,29 @@ class Users extends resource_1.APIResource {
|
|
|
94
140
|
}
|
|
95
141
|
/**
|
|
96
142
|
* Retrieves a list of all preference sets for a specific user.
|
|
143
|
+
*
|
|
144
|
+
* @example
|
|
145
|
+
* ```ts
|
|
146
|
+
* const preferenceSets = await client.users.listPreferences(
|
|
147
|
+
* 'user_id',
|
|
148
|
+
* );
|
|
149
|
+
* ```
|
|
97
150
|
*/
|
|
98
151
|
listPreferences(userID, options) {
|
|
99
152
|
return this._client.get((0, path_1.path) `/v1/users/${userID}/preferences`, options);
|
|
100
153
|
}
|
|
101
154
|
/**
|
|
102
155
|
* Returns a paginated list of schedules for a specific user, in descending order.
|
|
156
|
+
*
|
|
157
|
+
* @example
|
|
158
|
+
* ```ts
|
|
159
|
+
* // Automatically fetches more pages as needed.
|
|
160
|
+
* for await (const schedule of client.users.listSchedules(
|
|
161
|
+
* 'user_id',
|
|
162
|
+
* )) {
|
|
163
|
+
* // ...
|
|
164
|
+
* }
|
|
165
|
+
* ```
|
|
103
166
|
*/
|
|
104
167
|
listSchedules(userID, query = {}, options) {
|
|
105
168
|
return this._client.getAPIList((0, path_1.path) `/v1/users/${userID}/schedules`, (pagination_1.EntriesCursor), { query, ...options });
|
|
@@ -107,6 +170,16 @@ class Users extends resource_1.APIResource {
|
|
|
107
170
|
/**
|
|
108
171
|
* Retrieves a paginated list of subscriptions for a specific user, in descending
|
|
109
172
|
* order.
|
|
173
|
+
*
|
|
174
|
+
* @example
|
|
175
|
+
* ```ts
|
|
176
|
+
* // Automatically fetches more pages as needed.
|
|
177
|
+
* for await (const subscription of client.users.listSubscriptions(
|
|
178
|
+
* 'user_id',
|
|
179
|
+
* )) {
|
|
180
|
+
* // ...
|
|
181
|
+
* }
|
|
182
|
+
* ```
|
|
110
183
|
*/
|
|
111
184
|
listSubscriptions(userID, query = {}, options) {
|
|
112
185
|
return this._client.getAPIList((0, path_1.path) `/v1/users/${userID}/subscriptions`, (pagination_1.EntriesCursor), { query, ...options });
|
|
@@ -114,12 +187,28 @@ class Users extends resource_1.APIResource {
|
|
|
114
187
|
/**
|
|
115
188
|
* Merge two users together, where the user specified with the `from_user_id` param
|
|
116
189
|
* will be merged into the user specified by `user_id`.
|
|
190
|
+
*
|
|
191
|
+
* @example
|
|
192
|
+
* ```ts
|
|
193
|
+
* const user = await client.users.merge('user_id', {
|
|
194
|
+
* from_user_id: 'user_1',
|
|
195
|
+
* });
|
|
196
|
+
* ```
|
|
117
197
|
*/
|
|
118
198
|
merge(userID, body, options) {
|
|
119
199
|
return this._client.post((0, path_1.path) `/v1/users/${userID}/merge`, { body, ...options });
|
|
120
200
|
}
|
|
121
201
|
/**
|
|
122
202
|
* Updates or creates channel data for a specific user and channel ID.
|
|
203
|
+
*
|
|
204
|
+
* @example
|
|
205
|
+
* ```ts
|
|
206
|
+
* const channelData = await client.users.setChannelData(
|
|
207
|
+
* 'user_id',
|
|
208
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
209
|
+
* { data: { tokens: ['push_token_1'] } },
|
|
210
|
+
* );
|
|
211
|
+
* ```
|
|
123
212
|
*/
|
|
124
213
|
setChannelData(userID, channelID, body, options) {
|
|
125
214
|
return this._client.put((0, path_1.path) `/v1/users/${userID}/channel_data/${channelID}`, { body, ...options });
|
|
@@ -127,12 +216,40 @@ class Users extends resource_1.APIResource {
|
|
|
127
216
|
/**
|
|
128
217
|
* Updates a complete preference set for a user. This is a destructive operation
|
|
129
218
|
* that will replace the existing preference set for the user.
|
|
219
|
+
*
|
|
220
|
+
* @example
|
|
221
|
+
* ```ts
|
|
222
|
+
* const preferenceSet = await client.users.setPreferences(
|
|
223
|
+
* 'user_id',
|
|
224
|
+
* 'default',
|
|
225
|
+
* {
|
|
226
|
+
* categories: {
|
|
227
|
+
* marketing: false,
|
|
228
|
+
* transactional: { channel_types: { email: false } },
|
|
229
|
+
* },
|
|
230
|
+
* channel_types: { email: true },
|
|
231
|
+
* workflows: {
|
|
232
|
+
* 'dinosaurs-loose': {
|
|
233
|
+
* channel_types: { email: false },
|
|
234
|
+
* },
|
|
235
|
+
* },
|
|
236
|
+
* },
|
|
237
|
+
* );
|
|
238
|
+
* ```
|
|
130
239
|
*/
|
|
131
240
|
setPreferences(userID, id, body, options) {
|
|
132
241
|
return this._client.put((0, path_1.path) `/v1/users/${userID}/preferences/${id}`, { body, ...options });
|
|
133
242
|
}
|
|
134
243
|
/**
|
|
135
244
|
* Deletes channel data for a specific user and channel ID.
|
|
245
|
+
*
|
|
246
|
+
* @example
|
|
247
|
+
* ```ts
|
|
248
|
+
* const response = await client.users.unsetChannelData(
|
|
249
|
+
* 'user_id',
|
|
250
|
+
* '182bd5e5-6e1a-4fe4-a799-aa6d9a6ab26e',
|
|
251
|
+
* );
|
|
252
|
+
* ```
|
|
136
253
|
*/
|
|
137
254
|
unsetChannelData(userID, channelID, options) {
|
|
138
255
|
return this._client.delete((0, path_1.path) `/v1/users/${userID}/channel_data/${channelID}`, options);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":";AAAA,sFAAsF
|
|
1
|
+
{"version":3,"file":"users.js","sourceRoot":"","sources":["../../src/resources/users/users.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;;AAEtF,qDAAkD;AAUlD,2DAAkC;AAClC,oCAA8F;AAC9F,6DAAoC;AACpC,sCAMiB;AACjB,+DAAsC;AACtC,wCAUkB;AAElB,yDAA6F;AAE7F,uDAAiD;AAEjD,MAAa,KAAM,SAAQ,sBAAW;IAAtC;;QACE,UAAK,GAAmB,IAAI,QAAQ,CAAC,KAAK,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QACzD,WAAM,GAAqB,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;QAC9D,SAAI,GAAiB,IAAI,OAAO,CAAC,IAAI,CAAC,IAAI,CAAC,OAAO,CAAC,CAAC;IAoStD,CAAC;IAlSC;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA4BG;IACH,MAAM,CAAC,MAAc,EAAE,IAAsB,EAAE,OAAwB;QACrE,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC3E,CAAC;IAED;;;;;;;;;;;OAWG;IACH,IAAI,CACF,QAA2C,EAAE,EAC7C,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,WAAW,EAAE,CAAA,0BAAmB,CAAA,EAAE,EAAE,KAAK,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC1F,CAAC;IAED;;;;;;;OAOG;IACH,MAAM,CAAC,MAAc,EAAE,OAAwB;QAC7C,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,aAAa,MAAM,EA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