syllable-sdk 0.1.0-alpha.192 → 0.1.0-alpha.196

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (87) hide show
  1. package/README.md +4 -0
  2. package/docs/sdks/batches/README.md +4 -4
  3. package/docs/sdks/roles/README.md +4 -4
  4. package/docs/sdks/users/README.md +88 -8
  5. package/docs/sdks/v1/README.md +88 -8
  6. package/docs/sdks/workflows/README.md +8 -8
  7. package/funcs/usersUsersSendEmail.d.ts +16 -0
  8. package/funcs/usersUsersSendEmail.d.ts.map +1 -0
  9. package/funcs/usersUsersSendEmail.js +108 -0
  10. package/funcs/usersUsersSendEmail.js.map +1 -0
  11. package/funcs/v1UsersSendEmail.d.ts +16 -0
  12. package/funcs/v1UsersSendEmail.d.ts.map +1 -0
  13. package/funcs/v1UsersSendEmail.js +108 -0
  14. package/funcs/v1UsersSendEmail.js.map +1 -0
  15. package/jsr.json +1 -1
  16. package/lib/config.d.ts +2 -2
  17. package/lib/config.js +2 -2
  18. package/models/components/agentvoicedisplayname.d.ts +144 -0
  19. package/models/components/agentvoicedisplayname.d.ts.map +1 -1
  20. package/models/components/agentvoicedisplayname.js +48 -0
  21. package/models/components/agentvoicedisplayname.js.map +1 -1
  22. package/models/components/agentvoicemodel.d.ts +3 -0
  23. package/models/components/agentvoicemodel.d.ts.map +1 -1
  24. package/models/components/agentvoicemodel.js +1 -0
  25. package/models/components/agentvoicemodel.js.map +1 -1
  26. package/models/components/agentvoicevarname.d.ts +144 -0
  27. package/models/components/agentvoicevarname.d.ts.map +1 -1
  28. package/models/components/agentvoicevarname.js +48 -0
  29. package/models/components/agentvoicevarname.js.map +1 -1
  30. package/models/components/index.d.ts +2 -0
  31. package/models/components/index.d.ts.map +1 -1
  32. package/models/components/index.js +2 -0
  33. package/models/components/index.js.map +1 -1
  34. package/models/components/logintype.d.ts +34 -0
  35. package/models/components/logintype.d.ts.map +1 -0
  36. package/models/components/logintype.js +54 -0
  37. package/models/components/logintype.js.map +1 -0
  38. package/models/components/useractivitystatus.d.ts +31 -0
  39. package/models/components/useractivitystatus.d.ts.map +1 -0
  40. package/models/components/useractivitystatus.js +51 -0
  41. package/models/components/useractivitystatus.js.map +1 -0
  42. package/models/components/usercreaterequest.d.ts +6 -0
  43. package/models/components/usercreaterequest.d.ts.map +1 -1
  44. package/models/components/usercreaterequest.js +5 -0
  45. package/models/components/usercreaterequest.js.map +1 -1
  46. package/models/components/userproperties.d.ts +6 -0
  47. package/models/components/userproperties.d.ts.map +1 -1
  48. package/models/components/userproperties.js +2 -0
  49. package/models/components/userproperties.js.map +1 -1
  50. package/models/components/userresponse.d.ts +8 -0
  51. package/models/components/userresponse.d.ts.map +1 -1
  52. package/models/components/userresponse.js +9 -0
  53. package/models/components/userresponse.js.map +1 -1
  54. package/models/operations/index.d.ts +1 -0
  55. package/models/operations/index.d.ts.map +1 -1
  56. package/models/operations/index.js +1 -0
  57. package/models/operations/index.js.map +1 -1
  58. package/models/operations/userssendemail.d.ts +29 -0
  59. package/models/operations/userssendemail.d.ts.map +1 -0
  60. package/models/operations/userssendemail.js +68 -0
  61. package/models/operations/userssendemail.js.map +1 -0
  62. package/openapi.json +238 -43
  63. package/package.json +1 -1
  64. package/sdk/users.d.ts +7 -0
  65. package/sdk/users.d.ts.map +1 -1
  66. package/sdk/users.js +10 -0
  67. package/sdk/users.js.map +1 -1
  68. package/sdk/v1.d.ts +7 -0
  69. package/sdk/v1.d.ts.map +1 -1
  70. package/sdk/v1.js +10 -0
  71. package/sdk/v1.js.map +1 -1
  72. package/src/funcs/usersUsersSendEmail.ts +142 -0
  73. package/src/funcs/v1UsersSendEmail.ts +142 -0
  74. package/src/lib/config.ts +2 -2
  75. package/src/models/components/agentvoicedisplayname.ts +48 -0
  76. package/src/models/components/agentvoicemodel.ts +1 -0
  77. package/src/models/components/agentvoicevarname.ts +48 -0
  78. package/src/models/components/index.ts +2 -0
  79. package/src/models/components/logintype.ts +37 -0
  80. package/src/models/components/useractivitystatus.ts +34 -0
  81. package/src/models/components/usercreaterequest.ts +14 -0
  82. package/src/models/components/userproperties.ts +2 -0
  83. package/src/models/components/userresponse.ts +20 -0
  84. package/src/models/operations/index.ts +1 -0
  85. package/src/models/operations/userssendemail.ts +75 -0
  86. package/src/sdk/users.ts +18 -0
  87. package/src/sdk/v1.ts +18 -0
package/README.md CHANGED
@@ -374,6 +374,7 @@ run();
374
374
  * [update](docs/sdks/users/README.md#update) - Update User
375
375
  * [delete](docs/sdks/users/README.md#delete) - Delete User
376
376
  * [usersGetByEmail](docs/sdks/users/README.md#usersgetbyemail) - Get User
377
+ * [usersSendEmail](docs/sdks/users/README.md#userssendemail) - Send User Email
377
378
  * [usersDeleteAccount](docs/sdks/users/README.md#usersdeleteaccount) - Request Removal Of This Account
378
379
 
379
380
  ### [v1](docs/sdks/v1/README.md)
@@ -383,6 +384,7 @@ run();
383
384
  * [update](docs/sdks/v1/README.md#update) - Update User
384
385
  * [delete](docs/sdks/v1/README.md#delete) - Delete User
385
386
  * [usersGetByEmail](docs/sdks/v1/README.md#usersgetbyemail) - Get User
387
+ * [usersSendEmail](docs/sdks/v1/README.md#userssendemail) - Send User Email
386
388
  * [usersDeleteAccount](docs/sdks/v1/README.md#usersdeleteaccount) - Request Removal Of This Account
387
389
 
388
390
  </details>
@@ -536,12 +538,14 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
536
538
  - [`usersUpdate`](docs/sdks/users/README.md#update) - Update User
537
539
  - [`usersUsersDeleteAccount`](docs/sdks/users/README.md#usersdeleteaccount) - Request Removal Of This Account
538
540
  - [`usersUsersGetByEmail`](docs/sdks/users/README.md#usersgetbyemail) - Get User
541
+ - [`usersUsersSendEmail`](docs/sdks/users/README.md#userssendemail) - Send User Email
539
542
  - [`v1Create`](docs/sdks/v1/README.md#create) - Create User
540
543
  - [`v1Delete`](docs/sdks/v1/README.md#delete) - Delete User
541
544
  - [`v1List`](docs/sdks/v1/README.md#list) - List Users
542
545
  - [`v1Update`](docs/sdks/v1/README.md#update) - Update User
543
546
  - [`v1UsersDeleteAccount`](docs/sdks/v1/README.md#usersdeleteaccount) - Request Removal Of This Account
544
547
  - [`v1UsersGetByEmail`](docs/sdks/v1/README.md#usersgetbyemail) - Get User
548
+ - [`v1UsersSendEmail`](docs/sdks/v1/README.md#userssendemail) - Send User Email
545
549
  - ~~[`dashboardsPostSessionEventsDashboard`](docs/sdks/dashboards/README.md#postsessioneventsdashboard)~~ - Post Session Events :warning: **Deprecated**
546
550
  - ~~[`dashboardsPostSessionsDashboard`](docs/sdks/dashboards/README.md#postsessionsdashboard)~~ - Post Sessions :warning: **Deprecated**
547
551
  - ~~[`dashboardsPostSessionSummaryDashboard`](docs/sdks/dashboards/README.md#postsessionsummarydashboard)~~ - Post Session Summary :warning: **Deprecated**
@@ -125,9 +125,9 @@ const syllableSDK = new SyllableSDK({
125
125
 
126
126
  async function run() {
127
127
  const result = await syllableSDK.outbound.batches.create({
128
- batchId: "20250626.9",
128
+ batchId: "20250702.9",
129
129
  campaignId: 1,
130
- expiresOn: new Date("2025-06-27T00:00:00Z"),
130
+ expiresOn: new Date("2025-07-03T00:00:00Z"),
131
131
  paused: true,
132
132
  });
133
133
 
@@ -154,9 +154,9 @@ const syllableSDK = new SyllableSDKCore({
154
154
 
155
155
  async function run() {
156
156
  const res = await outboundBatchesCreate(syllableSDK, {
157
- batchId: "20250626.9",
157
+ batchId: "20250702.9",
158
158
  campaignId: 1,
159
- expiresOn: new Date("2025-06-27T00:00:00Z"),
159
+ expiresOn: new Date("2025-07-03T00:00:00Z"),
160
160
  paused: true,
161
161
  });
162
162
 
@@ -121,7 +121,7 @@ const syllableSDK = new SyllableSDK({
121
121
 
122
122
  async function run() {
123
123
  const result = await syllableSDK.roles.create({
124
- name: "prompt_engineer",
124
+ name: "Prompt Engineer",
125
125
  description: "Role for users who can fetch and change prompts",
126
126
  permissions: [
127
127
  "prompts_read",
@@ -153,7 +153,7 @@ const syllableSDK = new SyllableSDKCore({
153
153
 
154
154
  async function run() {
155
155
  const res = await rolesCreate(syllableSDK, {
156
- name: "prompt_engineer",
156
+ name: "Prompt Engineer",
157
157
  description: "Role for users who can fetch and change prompts",
158
158
  permissions: [
159
159
  "prompts_read",
@@ -210,7 +210,7 @@ const syllableSDK = new SyllableSDK({
210
210
 
211
211
  async function run() {
212
212
  const result = await syllableSDK.roles.update({
213
- name: "prompt_engineer",
213
+ name: "Prompt Engineer",
214
214
  description: "Role for users who can fetch and change prompts",
215
215
  permissions: [
216
216
  "prompts_read",
@@ -244,7 +244,7 @@ const syllableSDK = new SyllableSDKCore({
244
244
 
245
245
  async function run() {
246
246
  const res = await rolesUpdate(syllableSDK, {
247
- name: "prompt_engineer",
247
+ name: "Prompt Engineer",
248
248
  description: "Role for users who can fetch and change prompts",
249
249
  permissions: [
250
250
  "prompts_read",
@@ -10,6 +10,7 @@
10
10
  * [update](#update) - Update User
11
11
  * [delete](#delete) - Delete User
12
12
  * [usersGetByEmail](#usersgetbyemail) - Get User
13
+ * [usersSendEmail](#userssendemail) - Send User Email
13
14
  * [usersDeleteAccount](#usersdeleteaccount) - Request Removal Of This Account
14
15
 
15
16
  ## list
@@ -29,7 +30,7 @@ async function run() {
29
30
  const result = await syllableSDK.users.list({
30
31
  page: 0,
31
32
  searchFields: [
32
- "email_first_name_last_name",
33
+ "activity_status",
33
34
  ],
34
35
  searchFieldValues: [
35
36
  "Some Object Name",
@@ -63,7 +64,7 @@ async function run() {
63
64
  const res = await usersList(syllableSDK, {
64
65
  page: 0,
65
66
  searchFields: [
66
- "email_first_name_last_name",
67
+ "activity_status",
67
68
  ],
68
69
  searchFieldValues: [
69
70
  "Some Object Name",
@@ -120,10 +121,11 @@ const syllableSDK = new SyllableSDK({
120
121
 
121
122
  async function run() {
122
123
  const result = await syllableSDK.users.create({
123
- email: "user@email.com",
124
+ email: "user@syllable.ai",
124
125
  firstName: "Jane",
125
126
  lastName: "Smith",
126
127
  roleId: 1,
128
+ loginType: "username_and_password",
127
129
  });
128
130
 
129
131
  // Handle the result
@@ -149,10 +151,11 @@ const syllableSDK = new SyllableSDKCore({
149
151
 
150
152
  async function run() {
151
153
  const res = await usersCreate(syllableSDK, {
152
- email: "user@email.com",
154
+ email: "user@syllable.ai",
153
155
  firstName: "Jane",
154
156
  lastName: "Smith",
155
157
  roleId: 1,
158
+ loginType: "username_and_password",
156
159
  });
157
160
 
158
161
  if (!res.ok) {
@@ -203,7 +206,7 @@ const syllableSDK = new SyllableSDK({
203
206
 
204
207
  async function run() {
205
208
  const result = await syllableSDK.users.update({
206
- email: "user@email.com",
209
+ email: "user@syllable.ai",
207
210
  firstName: "Jane",
208
211
  lastName: "Smith",
209
212
  roleId: 1,
@@ -233,7 +236,7 @@ const syllableSDK = new SyllableSDKCore({
233
236
 
234
237
  async function run() {
235
238
  const res = await usersUpdate(syllableSDK, {
236
- email: "user@email.com",
239
+ email: "user@syllable.ai",
237
240
  firstName: "Jane",
238
241
  lastName: "Smith",
239
242
  roleId: 1,
@@ -288,7 +291,7 @@ const syllableSDK = new SyllableSDK({
288
291
 
289
292
  async function run() {
290
293
  const result = await syllableSDK.users.delete({
291
- email: "user@email.com",
294
+ email: "user@syllable.ai",
292
295
  reason: "User left the organization",
293
296
  });
294
297
 
@@ -315,7 +318,7 @@ const syllableSDK = new SyllableSDKCore({
315
318
 
316
319
  async function run() {
317
320
  const res = await usersDelete(syllableSDK, {
318
- email: "user@email.com",
321
+ email: "user@syllable.ai",
319
322
  reason: "User left the organization",
320
323
  });
321
324
 
@@ -429,6 +432,83 @@ run();
429
432
  | errors.HTTPValidationError | 422 | application/json |
430
433
  | errors.SDKError | 4XX, 5XX | \*/\* |
431
434
 
435
+ ## usersSendEmail
436
+
437
+ Send a welcome email to a user.
438
+
439
+ ### Example Usage
440
+
441
+ ```typescript
442
+ import { SyllableSDK } from "syllable-sdk";
443
+
444
+ const syllableSDK = new SyllableSDK({
445
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
446
+ });
447
+
448
+ async function run() {
449
+ const result = await syllableSDK.users.usersSendEmail({
450
+ userEmail: "<value>",
451
+ });
452
+
453
+ // Handle the result
454
+ console.log(result);
455
+ }
456
+
457
+ run();
458
+ ```
459
+
460
+ ### Standalone function
461
+
462
+ The standalone function version of this method:
463
+
464
+ ```typescript
465
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
466
+ import { usersUsersSendEmail } from "syllable-sdk/funcs/usersUsersSendEmail.js";
467
+
468
+ // Use `SyllableSDKCore` for best tree-shaking performance.
469
+ // You can create one instance of it to use across an application.
470
+ const syllableSDK = new SyllableSDKCore({
471
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
472
+ });
473
+
474
+ async function run() {
475
+ const res = await usersUsersSendEmail(syllableSDK, {
476
+ userEmail: "<value>",
477
+ });
478
+
479
+ if (!res.ok) {
480
+ throw res.error;
481
+ }
482
+
483
+ const { value: result } = res;
484
+
485
+ // Handle the result
486
+ console.log(result);
487
+ }
488
+
489
+ run();
490
+ ```
491
+
492
+ ### Parameters
493
+
494
+ | Parameter | Type | Required | Description |
495
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
496
+ | `request` | [operations.UsersSendEmailRequest](../../models/operations/userssendemailrequest.md) | :heavy_check_mark: | The request object to use for the request. |
497
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
498
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
499
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
500
+
501
+ ### Response
502
+
503
+ **Promise\<[any](../../models/.md)\>**
504
+
505
+ ### Errors
506
+
507
+ | Error Type | Status Code | Content Type |
508
+ | -------------------------- | -------------------------- | -------------------------- |
509
+ | errors.HTTPValidationError | 422 | application/json |
510
+ | errors.SDKError | 4XX, 5XX | \*/\* |
511
+
432
512
  ## usersDeleteAccount
433
513
 
434
514
  Request removal of the account of the user calling this endpoint. Intended for removing trial
@@ -10,6 +10,7 @@
10
10
  * [update](#update) - Update User
11
11
  * [delete](#delete) - Delete User
12
12
  * [usersGetByEmail](#usersgetbyemail) - Get User
13
+ * [usersSendEmail](#userssendemail) - Send User Email
13
14
  * [usersDeleteAccount](#usersdeleteaccount) - Request Removal Of This Account
14
15
 
15
16
  ## list
@@ -29,7 +30,7 @@ async function run() {
29
30
  const result = await syllableSDK.v1.list({
30
31
  page: 0,
31
32
  searchFields: [
32
- "email_first_name_last_name",
33
+ "activity_status",
33
34
  ],
34
35
  searchFieldValues: [
35
36
  "Some Object Name",
@@ -63,7 +64,7 @@ async function run() {
63
64
  const res = await v1List(syllableSDK, {
64
65
  page: 0,
65
66
  searchFields: [
66
- "email_first_name_last_name",
67
+ "activity_status",
67
68
  ],
68
69
  searchFieldValues: [
69
70
  "Some Object Name",
@@ -120,10 +121,11 @@ const syllableSDK = new SyllableSDK({
120
121
 
121
122
  async function run() {
122
123
  const result = await syllableSDK.v1.create({
123
- email: "user@email.com",
124
+ email: "user@syllable.ai",
124
125
  firstName: "Jane",
125
126
  lastName: "Smith",
126
127
  roleId: 1,
128
+ loginType: "username_and_password",
127
129
  });
128
130
 
129
131
  // Handle the result
@@ -149,10 +151,11 @@ const syllableSDK = new SyllableSDKCore({
149
151
 
150
152
  async function run() {
151
153
  const res = await v1Create(syllableSDK, {
152
- email: "user@email.com",
154
+ email: "user@syllable.ai",
153
155
  firstName: "Jane",
154
156
  lastName: "Smith",
155
157
  roleId: 1,
158
+ loginType: "username_and_password",
156
159
  });
157
160
 
158
161
  if (!res.ok) {
@@ -203,7 +206,7 @@ const syllableSDK = new SyllableSDK({
203
206
 
204
207
  async function run() {
205
208
  const result = await syllableSDK.v1.update({
206
- email: "user@email.com",
209
+ email: "user@syllable.ai",
207
210
  firstName: "Jane",
208
211
  lastName: "Smith",
209
212
  roleId: 1,
@@ -233,7 +236,7 @@ const syllableSDK = new SyllableSDKCore({
233
236
 
234
237
  async function run() {
235
238
  const res = await v1Update(syllableSDK, {
236
- email: "user@email.com",
239
+ email: "user@syllable.ai",
237
240
  firstName: "Jane",
238
241
  lastName: "Smith",
239
242
  roleId: 1,
@@ -288,7 +291,7 @@ const syllableSDK = new SyllableSDK({
288
291
 
289
292
  async function run() {
290
293
  const result = await syllableSDK.v1.delete({
291
- email: "user@email.com",
294
+ email: "user@syllable.ai",
292
295
  reason: "User left the organization",
293
296
  });
294
297
 
@@ -315,7 +318,7 @@ const syllableSDK = new SyllableSDKCore({
315
318
 
316
319
  async function run() {
317
320
  const res = await v1Delete(syllableSDK, {
318
- email: "user@email.com",
321
+ email: "user@syllable.ai",
319
322
  reason: "User left the organization",
320
323
  });
321
324
 
@@ -429,6 +432,83 @@ run();
429
432
  | errors.HTTPValidationError | 422 | application/json |
430
433
  | errors.SDKError | 4XX, 5XX | \*/\* |
431
434
 
435
+ ## usersSendEmail
436
+
437
+ Send a welcome email to a user.
438
+
439
+ ### Example Usage
440
+
441
+ ```typescript
442
+ import { SyllableSDK } from "syllable-sdk";
443
+
444
+ const syllableSDK = new SyllableSDK({
445
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
446
+ });
447
+
448
+ async function run() {
449
+ const result = await syllableSDK.v1.usersSendEmail({
450
+ userEmail: "<value>",
451
+ });
452
+
453
+ // Handle the result
454
+ console.log(result);
455
+ }
456
+
457
+ run();
458
+ ```
459
+
460
+ ### Standalone function
461
+
462
+ The standalone function version of this method:
463
+
464
+ ```typescript
465
+ import { SyllableSDKCore } from "syllable-sdk/core.js";
466
+ import { v1UsersSendEmail } from "syllable-sdk/funcs/v1UsersSendEmail.js";
467
+
468
+ // Use `SyllableSDKCore` for best tree-shaking performance.
469
+ // You can create one instance of it to use across an application.
470
+ const syllableSDK = new SyllableSDKCore({
471
+ apiKeyHeader: process.env["SYLLABLESDK_API_KEY_HEADER"] ?? "",
472
+ });
473
+
474
+ async function run() {
475
+ const res = await v1UsersSendEmail(syllableSDK, {
476
+ userEmail: "<value>",
477
+ });
478
+
479
+ if (!res.ok) {
480
+ throw res.error;
481
+ }
482
+
483
+ const { value: result } = res;
484
+
485
+ // Handle the result
486
+ console.log(result);
487
+ }
488
+
489
+ run();
490
+ ```
491
+
492
+ ### Parameters
493
+
494
+ | Parameter | Type | Required | Description |
495
+ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
496
+ | `request` | [operations.UsersSendEmailRequest](../../models/operations/userssendemailrequest.md) | :heavy_check_mark: | The request object to use for the request. |
497
+ | `options` | RequestOptions | :heavy_minus_sign: | Used to set various options for making HTTP requests. |
498
+ | `options.fetchOptions` | [RequestInit](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request#options) | :heavy_minus_sign: | Options that are passed to the underlying HTTP request. This can be used to inject extra headers for examples. All `Request` options, except `method` and `body`, are allowed. |
499
+ | `options.retries` | [RetryConfig](../../lib/utils/retryconfig.md) | :heavy_minus_sign: | Enables retrying HTTP requests under certain failure conditions. |
500
+
501
+ ### Response
502
+
503
+ **Promise\<[any](../../models/.md)\>**
504
+
505
+ ### Errors
506
+
507
+ | Error Type | Status Code | Content Type |
508
+ | -------------------------- | -------------------------- | -------------------------- |
509
+ | errors.HTTPValidationError | 422 | application/json |
510
+ | errors.SDKError | 4XX, 5XX | \*/\* |
511
+
432
512
  ## usersDeleteAccount
433
513
 
434
514
  Request removal of the account of the user calling this endpoint. Intended for removing trial
@@ -131,8 +131,8 @@ async function run() {
131
131
  1,
132
132
  ],
133
133
  conditions: {},
134
- startDatetime: new Date("2025-06-25T00:00:00Z"),
135
- endDatetime: new Date("2025-06-26T00:00:00Z"),
134
+ startDatetime: new Date("2025-07-01T00:00:00Z"),
135
+ endDatetime: new Date("2025-07-02T00:00:00Z"),
136
136
  });
137
137
 
138
138
  // Handle the result
@@ -165,8 +165,8 @@ async function run() {
165
165
  1,
166
166
  ],
167
167
  conditions: {},
168
- startDatetime: new Date("2025-06-25T00:00:00Z"),
169
- endDatetime: new Date("2025-06-26T00:00:00Z"),
168
+ startDatetime: new Date("2025-07-01T00:00:00Z"),
169
+ endDatetime: new Date("2025-07-02T00:00:00Z"),
170
170
  });
171
171
 
172
172
  if (!res.ok) {
@@ -303,8 +303,8 @@ async function run() {
303
303
  1,
304
304
  ],
305
305
  conditions: {},
306
- startDatetime: new Date("2025-06-25T00:00:00Z"),
307
- endDatetime: new Date("2025-06-26T00:00:00Z"),
306
+ startDatetime: new Date("2025-07-01T00:00:00Z"),
307
+ endDatetime: new Date("2025-07-02T00:00:00Z"),
308
308
  },
309
309
  });
310
310
 
@@ -340,8 +340,8 @@ async function run() {
340
340
  1,
341
341
  ],
342
342
  conditions: {},
343
- startDatetime: new Date("2025-06-25T00:00:00Z"),
344
- endDatetime: new Date("2025-06-26T00:00:00Z"),
343
+ startDatetime: new Date("2025-07-01T00:00:00Z"),
344
+ endDatetime: new Date("2025-07-02T00:00:00Z"),
345
345
  },
346
346
  });
347
347
 
@@ -0,0 +1,16 @@
1
+ import { SyllableSDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
+ import * as errors from "../models/errors/index.js";
5
+ import { SDKError } from "../models/errors/sdkerror.js";
6
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { Result } from "../types/fp.js";
9
+ /**
10
+ * Send User Email
11
+ *
12
+ * @remarks
13
+ * Send a welcome email to a user.
14
+ */
15
+ export declare function usersUsersSendEmail(client: SyllableSDKCore, request: operations.UsersSendEmailRequest, options?: RequestOptions): Promise<Result<any, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
+ //# sourceMappingURL=usersUsersSendEmail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usersUsersSendEmail.d.ts","sourceRoot":"","sources":["../src/funcs/usersUsersSendEmail.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,mBAAmB,CACvC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,GAAG,EACD,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA6FA"}
@@ -0,0 +1,108 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ */
5
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
+ if (k2 === undefined) k2 = k;
7
+ var desc = Object.getOwnPropertyDescriptor(m, k);
8
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
+ desc = { enumerable: true, get: function() { return m[k]; } };
10
+ }
11
+ Object.defineProperty(o, k2, desc);
12
+ }) : (function(o, m, k, k2) {
13
+ if (k2 === undefined) k2 = k;
14
+ o[k2] = m[k];
15
+ }));
16
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
18
+ }) : function(o, v) {
19
+ o["default"] = v;
20
+ });
21
+ var __importStar = (this && this.__importStar) || function (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.usersUsersSendEmail = usersUsersSendEmail;
30
+ const z = __importStar(require("zod"));
31
+ const encodings_js_1 = require("../lib/encodings.js");
32
+ const M = __importStar(require("../lib/matchers.js"));
33
+ const primitives_js_1 = require("../lib/primitives.js");
34
+ const schemas_js_1 = require("../lib/schemas.js");
35
+ const security_js_1 = require("../lib/security.js");
36
+ const url_js_1 = require("../lib/url.js");
37
+ const errors = __importStar(require("../models/errors/index.js"));
38
+ const operations = __importStar(require("../models/operations/index.js"));
39
+ /**
40
+ * Send User Email
41
+ *
42
+ * @remarks
43
+ * Send a welcome email to a user.
44
+ */
45
+ async function usersUsersSendEmail(client, request, options) {
46
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.UsersSendEmailRequest$outboundSchema.parse(value), "Input validation failed");
47
+ if (!parsed.ok) {
48
+ return parsed;
49
+ }
50
+ const payload = parsed.value;
51
+ const body = null;
52
+ const pathParams = {
53
+ user_email: (0, encodings_js_1.encodeSimple)("user_email", payload.user_email, {
54
+ explode: false,
55
+ charEncoding: "percent",
56
+ }),
57
+ };
58
+ const path = (0, url_js_1.pathToFunc)("/api/v1/users/{user_email}/send_email")(pathParams);
59
+ const headers = new Headers((0, primitives_js_1.compactMap)({
60
+ Accept: "application/json",
61
+ }));
62
+ const secConfig = await (0, security_js_1.extractSecurity)(client._options.apiKeyHeader);
63
+ const securityInput = secConfig == null ? {} : { apiKeyHeader: secConfig };
64
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
65
+ const context = {
66
+ baseURL: options?.serverURL ?? "",
67
+ operationID: "users_send_email",
68
+ oAuth2Scopes: [],
69
+ resolvedSecurity: requestSecurity,
70
+ securitySource: client._options.apiKeyHeader,
71
+ retryConfig: options?.retries
72
+ || client._options.retryConfig
73
+ || { strategy: "none" },
74
+ retryCodes: options?.retryCodes || ["429", "500", "502", "503", "504"],
75
+ };
76
+ const requestRes = client._createRequest(context, {
77
+ security: requestSecurity,
78
+ method: "POST",
79
+ baseURL: options?.serverURL,
80
+ path: path,
81
+ headers: headers,
82
+ body: body,
83
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
84
+ }, options);
85
+ if (!requestRes.ok) {
86
+ return requestRes;
87
+ }
88
+ const req = requestRes.value;
89
+ const doResult = await client._do(req, {
90
+ context,
91
+ errorCodes: ["422", "4XX", "5XX"],
92
+ retryConfig: context.retryConfig,
93
+ retryCodes: context.retryCodes,
94
+ });
95
+ if (!doResult.ok) {
96
+ return doResult;
97
+ }
98
+ const response = doResult.value;
99
+ const responseFields = {
100
+ HttpMeta: { Response: response, Request: req },
101
+ };
102
+ const [result] = await M.match(M.json(200, z.any()), M.jsonErr(422, errors.HTTPValidationError$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, { extraFields: responseFields });
103
+ if (!result.ok) {
104
+ return result;
105
+ }
106
+ return result;
107
+ }
108
+ //# sourceMappingURL=usersUsersSendEmail.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"usersUsersSendEmail.js","sourceRoot":"","sources":["../src/funcs/usersUsersSendEmail.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,16 @@
1
+ import { SyllableSDKCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
4
+ import * as errors from "../models/errors/index.js";
5
+ import { SDKError } from "../models/errors/sdkerror.js";
6
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
7
+ import * as operations from "../models/operations/index.js";
8
+ import { Result } from "../types/fp.js";
9
+ /**
10
+ * Send User Email
11
+ *
12
+ * @remarks
13
+ * Send a welcome email to a user.
14
+ */
15
+ export declare function v1UsersSendEmail(client: SyllableSDKCore, request: operations.UsersSendEmailRequest, options?: RequestOptions): Promise<Result<any, errors.HTTPValidationError | SDKError | SDKValidationError | UnexpectedClientError | InvalidRequestError | RequestAbortedError | RequestTimeoutError | ConnectionError>>;
16
+ //# sourceMappingURL=v1UsersSendEmail.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"v1UsersSendEmail.d.ts","sourceRoot":"","sources":["../src/funcs/v1UsersSendEmail.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAK7C,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAsB,gBAAgB,CACpC,MAAM,EAAE,eAAe,EACvB,OAAO,EAAE,UAAU,CAAC,qBAAqB,EACzC,OAAO,CAAC,EAAE,cAAc,GACvB,OAAO,CACR,MAAM,CACJ,GAAG,EACD,MAAM,CAAC,mBAAmB,GAC1B,QAAQ,GACR,kBAAkB,GAClB,qBAAqB,GACrB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,eAAe,CAClB,CACF,CA6FA"}