syllable-sdk 0.1.0-alpha.21 → 0.1.0-alpha.23
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/README.md +17 -34
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/components/custommessagecreaterequest.d.ts +6 -0
- package/models/components/custommessagecreaterequest.d.ts.map +1 -1
- package/models/components/custommessagecreaterequest.js +3 -0
- package/models/components/custommessagecreaterequest.js.map +1 -1
- package/models/components/custommessageresponse.d.ts +6 -0
- package/models/components/custommessageresponse.d.ts.map +1 -1
- package/models/components/custommessageresponse.js +3 -0
- package/models/components/custommessageresponse.js.map +1 -1
- package/models/components/custommessageupdaterequest.d.ts +6 -0
- package/models/components/custommessageupdaterequest.d.ts.map +1 -1
- package/models/components/custommessageupdaterequest.js +3 -0
- package/models/components/custommessageupdaterequest.js.map +1 -1
- package/models/components/daocustommessagerule.d.ts +63 -0
- package/models/components/daocustommessagerule.d.ts.map +1 -0
- package/models/components/daocustommessagerule.js +85 -0
- package/models/components/daocustommessagerule.js.map +1 -0
- package/models/components/dayofweek.d.ts +43 -0
- package/models/components/dayofweek.d.ts.map +1 -0
- package/models/components/dayofweek.js +56 -0
- package/models/components/dayofweek.js.map +1 -0
- package/models/components/index.d.ts +2 -0
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +2 -0
- package/models/components/index.js.map +1 -1
- package/models/components/testmessage.d.ts +2 -0
- package/models/components/testmessage.d.ts.map +1 -1
- package/models/components/testmessage.js +4 -0
- package/models/components/testmessage.js.map +1 -1
- package/models/operations/index.d.ts +0 -8
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +0 -8
- package/models/operations/index.js.map +1 -1
- package/package.json +1 -1
- package/sdk/sdk.d.ts +0 -3
- package/sdk/sdk.d.ts.map +1 -1
- package/sdk/sdk.js +0 -5
- package/sdk/sdk.js.map +1 -1
- package/src/lib/config.ts +3 -3
- package/src/models/components/custommessagecreaterequest.ts +13 -0
- package/src/models/components/custommessageresponse.ts +13 -0
- package/src/models/components/custommessageupdaterequest.ts +13 -0
- package/src/models/components/daocustommessagerule.ts +129 -0
- package/src/models/components/dayofweek.ts +36 -0
- package/src/models/components/index.ts +2 -0
- package/src/models/components/testmessage.ts +6 -0
- package/src/models/operations/index.ts +0 -8
- package/src/sdk/sdk.ts +0 -6
- package/docs/sdks/dashboards/README.md +0 -587
- package/funcs/dashboardsGetDailyCallVolumeByHour.d.ts +0 -15
- package/funcs/dashboardsGetDailyCallVolumeByHour.d.ts.map +0 -1
- package/funcs/dashboardsGetDailyCallVolumeByHour.js +0 -86
- package/funcs/dashboardsGetDailyCallVolumeByHour.js.map +0 -1
- package/funcs/dashboardsGetMonthlyCallVolumeByDay.d.ts +0 -15
- package/funcs/dashboardsGetMonthlyCallVolumeByDay.d.ts.map +0 -1
- package/funcs/dashboardsGetMonthlyCallVolumeByDay.js +0 -86
- package/funcs/dashboardsGetMonthlyCallVolumeByDay.js.map +0 -1
- package/funcs/dashboardsGetMonthlyCallVolumeByWeek.d.ts +0 -15
- package/funcs/dashboardsGetMonthlyCallVolumeByWeek.d.ts.map +0 -1
- package/funcs/dashboardsGetMonthlyCallVolumeByWeek.js +0 -86
- package/funcs/dashboardsGetMonthlyCallVolumeByWeek.js.map +0 -1
- package/funcs/dashboardsGetSessionAgents.d.ts +0 -15
- package/funcs/dashboardsGetSessionAgents.d.ts.map +0 -1
- package/funcs/dashboardsGetSessionAgents.js +0 -85
- package/funcs/dashboardsGetSessionAgents.js.map +0 -1
- package/funcs/dashboardsGetSessionSummary.d.ts +0 -16
- package/funcs/dashboardsGetSessionSummary.d.ts.map +0 -1
- package/funcs/dashboardsGetSessionSummary.js +0 -107
- package/funcs/dashboardsGetSessionSummary.js.map +0 -1
- package/funcs/dashboardsGetTotalCallVolumeByHour.d.ts +0 -15
- package/funcs/dashboardsGetTotalCallVolumeByHour.d.ts.map +0 -1
- package/funcs/dashboardsGetTotalCallVolumeByHour.js +0 -86
- package/funcs/dashboardsGetTotalCallVolumeByHour.js.map +0 -1
- package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.d.ts +0 -15
- package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.d.ts.map +0 -1
- package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.js +0 -86
- package/funcs/dashboardsGetWeeklyCallVolumeByWeekday.js.map +0 -1
- package/funcs/dashboardsTotalCallVolumeByWeekday.d.ts +0 -15
- package/funcs/dashboardsTotalCallVolumeByWeekday.d.ts.map +0 -1
- package/funcs/dashboardsTotalCallVolumeByWeekday.js +0 -86
- package/funcs/dashboardsTotalCallVolumeByWeekday.js.map +0 -1
- package/models/operations/getdailycallvolumebyhour.d.ts +0 -28
- package/models/operations/getdailycallvolumebyhour.d.ts.map +0 -1
- package/models/operations/getdailycallvolumebyhour.js +0 -57
- package/models/operations/getdailycallvolumebyhour.js.map +0 -1
- package/models/operations/getmonthlycallvolumebyday.d.ts +0 -28
- package/models/operations/getmonthlycallvolumebyday.d.ts.map +0 -1
- package/models/operations/getmonthlycallvolumebyday.js +0 -57
- package/models/operations/getmonthlycallvolumebyday.js.map +0 -1
- package/models/operations/getmonthlycallvolumebyweek.d.ts +0 -28
- package/models/operations/getmonthlycallvolumebyweek.d.ts.map +0 -1
- package/models/operations/getmonthlycallvolumebyweek.js +0 -57
- package/models/operations/getmonthlycallvolumebyweek.js.map +0 -1
- package/models/operations/getsessionagents.d.ts +0 -28
- package/models/operations/getsessionagents.d.ts.map +0 -1
- package/models/operations/getsessionagents.js +0 -55
- package/models/operations/getsessionagents.js.map +0 -1
- package/models/operations/getsessionsummary.d.ts +0 -63
- package/models/operations/getsessionsummary.d.ts.map +0 -1
- package/models/operations/getsessionsummary.js +0 -107
- package/models/operations/getsessionsummary.js.map +0 -1
- package/models/operations/gettotalcallvolumebyhour.d.ts +0 -28
- package/models/operations/gettotalcallvolumebyhour.d.ts.map +0 -1
- package/models/operations/gettotalcallvolumebyhour.js +0 -57
- package/models/operations/gettotalcallvolumebyhour.js.map +0 -1
- package/models/operations/getweeklycallvolumebyweekday.d.ts +0 -28
- package/models/operations/getweeklycallvolumebyweekday.d.ts.map +0 -1
- package/models/operations/getweeklycallvolumebyweekday.js +0 -57
- package/models/operations/getweeklycallvolumebyweekday.js.map +0 -1
- package/models/operations/totalcallvolumebyweekday.d.ts +0 -28
- package/models/operations/totalcallvolumebyweekday.d.ts.map +0 -1
- package/models/operations/totalcallvolumebyweekday.js +0 -57
- package/models/operations/totalcallvolumebyweekday.js.map +0 -1
- package/sdk/dashboards.d.ts +0 -61
- package/sdk/dashboards.d.ts.map +0 -1
- package/sdk/dashboards.js +0 -92
- package/sdk/dashboards.js.map +0 -1
- package/src/funcs/dashboardsGetDailyCallVolumeByHour.ts +0 -111
- package/src/funcs/dashboardsGetMonthlyCallVolumeByDay.ts +0 -113
- package/src/funcs/dashboardsGetMonthlyCallVolumeByWeek.ts +0 -113
- package/src/funcs/dashboardsGetSessionAgents.ts +0 -110
- package/src/funcs/dashboardsGetSessionSummary.ts +0 -143
- package/src/funcs/dashboardsGetTotalCallVolumeByHour.ts +0 -111
- package/src/funcs/dashboardsGetWeeklyCallVolumeByWeekday.ts +0 -113
- package/src/funcs/dashboardsTotalCallVolumeByWeekday.ts +0 -111
- package/src/models/operations/getdailycallvolumebyhour.ts +0 -74
- package/src/models/operations/getmonthlycallvolumebyday.ts +0 -74
- package/src/models/operations/getmonthlycallvolumebyweek.ts +0 -74
- package/src/models/operations/getsessionagents.ts +0 -72
- package/src/models/operations/getsessionsummary.ts +0 -164
- package/src/models/operations/gettotalcallvolumebyhour.ts +0 -74
- package/src/models/operations/getweeklycallvolumebyweekday.ts +0 -75
- package/src/models/operations/totalcallvolumebyweekday.ts +0 -74
- package/src/sdk/dashboards.ts +0 -151
package/README.md
CHANGED
|
@@ -164,17 +164,6 @@ run();
|
|
|
164
164
|
* [getById](docs/sdks/custommessages/README.md#getbyid) - Get Custom Message By Id
|
|
165
165
|
* [delete](docs/sdks/custommessages/README.md#delete) - Delete Custom Message
|
|
166
166
|
|
|
167
|
-
### [dashboards](docs/sdks/dashboards/README.md)
|
|
168
|
-
|
|
169
|
-
* [totalCallVolumeByWeekday](docs/sdks/dashboards/README.md#totalcallvolumebyweekday) - Get Total Call Volume By Weekday
|
|
170
|
-
* [getTotalCallVolumeByHour](docs/sdks/dashboards/README.md#gettotalcallvolumebyhour) - Get Total Call Volume By Hour
|
|
171
|
-
* [getWeeklyCallVolumeByWeekday](docs/sdks/dashboards/README.md#getweeklycallvolumebyweekday) - Get Weekly Call Volume By Weekday
|
|
172
|
-
* [getDailyCallVolumeByHour](docs/sdks/dashboards/README.md#getdailycallvolumebyhour) - Get Daily Call Volume By Hour
|
|
173
|
-
* [getMonthlyCallVolumeByWeek](docs/sdks/dashboards/README.md#getmonthlycallvolumebyweek) - Get Monthly Call Volume By Week
|
|
174
|
-
* [getMonthlyCallVolumeByDay](docs/sdks/dashboards/README.md#getmonthlycallvolumebyday) - Get Monthly Call Volume By Day
|
|
175
|
-
* [getSessionSummary](docs/sdks/dashboards/README.md#getsessionsummary) - Get Session Summary
|
|
176
|
-
* [getSessionAgents](docs/sdks/dashboards/README.md#getsessionagents) - Get Agents
|
|
177
|
-
|
|
178
167
|
### [directory](docs/sdks/directory/README.md)
|
|
179
168
|
|
|
180
169
|
* [list](docs/sdks/directory/README.md#list) - Directory Member List
|
|
@@ -278,14 +267,6 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
|
|
|
278
267
|
- [`customMessagesGetById`](docs/sdks/custommessages/README.md#getbyid) - Get Custom Message By Id
|
|
279
268
|
- [`customMessagesList`](docs/sdks/custommessages/README.md#list) - Custom Messages List
|
|
280
269
|
- [`customMessagesUpdate`](docs/sdks/custommessages/README.md#update) - Update Custom Message
|
|
281
|
-
- [`dashboardsGetDailyCallVolumeByHour`](docs/sdks/dashboards/README.md#getdailycallvolumebyhour) - Get Daily Call Volume By Hour
|
|
282
|
-
- [`dashboardsGetMonthlyCallVolumeByDay`](docs/sdks/dashboards/README.md#getmonthlycallvolumebyday) - Get Monthly Call Volume By Day
|
|
283
|
-
- [`dashboardsGetMonthlyCallVolumeByWeek`](docs/sdks/dashboards/README.md#getmonthlycallvolumebyweek) - Get Monthly Call Volume By Week
|
|
284
|
-
- [`dashboardsGetSessionAgents`](docs/sdks/dashboards/README.md#getsessionagents) - Get Agents
|
|
285
|
-
- [`dashboardsGetSessionSummary`](docs/sdks/dashboards/README.md#getsessionsummary) - Get Session Summary
|
|
286
|
-
- [`dashboardsGetTotalCallVolumeByHour`](docs/sdks/dashboards/README.md#gettotalcallvolumebyhour) - Get Total Call Volume By Hour
|
|
287
|
-
- [`dashboardsGetWeeklyCallVolumeByWeekday`](docs/sdks/dashboards/README.md#getweeklycallvolumebyweekday) - Get Weekly Call Volume By Weekday
|
|
288
|
-
- [`dashboardsTotalCallVolumeByWeekday`](docs/sdks/dashboards/README.md#totalcallvolumebyweekday) - Get Total Call Volume By Weekday
|
|
289
270
|
- [`directoryCreate`](docs/sdks/directory/README.md#create) - Create Directory Member
|
|
290
271
|
- [`directoryDelete`](docs/sdks/directory/README.md#delete) - Delete Directory Member
|
|
291
272
|
- [`directoryDirectoryMemberBulkLoad`](docs/sdks/directory/README.md#directorymemberbulkload) - Bulk Load Directory Members
|
|
@@ -431,25 +412,15 @@ run();
|
|
|
431
412
|
<!-- Start Error Handling [errors] -->
|
|
432
413
|
## Error Handling
|
|
433
414
|
|
|
434
|
-
All
|
|
435
|
-
|
|
436
|
-
If a HTTP request fails, an operation my also throw an error from the `models/errors/httpclienterrors.ts` module:
|
|
437
|
-
|
|
438
|
-
| HTTP Client Error | Description |
|
|
439
|
-
| ---------------------------------------------------- | ---------------------------------------------------- |
|
|
440
|
-
| RequestAbortedError | HTTP request was aborted by the client |
|
|
441
|
-
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
|
|
442
|
-
| ConnectionError | HTTP client was unable to make a request to a server |
|
|
443
|
-
| InvalidRequestError | Any input used to create a request is invalid |
|
|
444
|
-
| UnexpectedClientError | Unrecognised or unexpected error |
|
|
445
|
-
|
|
446
|
-
In addition, when custom error responses are specified for an operation, the SDK may throw their associated Error type. You can refer to respective *Errors* tables in SDK docs for more details on possible error types for each operation. For example, the `list` method may throw the following errors:
|
|
415
|
+
Some methods specify known errors which can be thrown. All the known errors are enumerated in the `models/errors/errors.ts` module. The known errors for a method are documented under the *Errors* tables in SDK docs. For example, the `list` method may throw the following errors:
|
|
447
416
|
|
|
448
417
|
| Error Type | Status Code | Content Type |
|
|
449
418
|
| -------------------------- | ----------- | ---------------- |
|
|
450
419
|
| errors.HTTPValidationError | 422 | application/json |
|
|
451
420
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
452
421
|
|
|
422
|
+
If the method throws an error and it is not captured by the known errors, it will default to throwing a `SDKError`.
|
|
423
|
+
|
|
453
424
|
```typescript
|
|
454
425
|
import { SyllableSDK } from "syllable-sdk";
|
|
455
426
|
import {
|
|
@@ -470,8 +441,9 @@ async function run() {
|
|
|
470
441
|
console.log(result);
|
|
471
442
|
} catch (err) {
|
|
472
443
|
switch (true) {
|
|
444
|
+
// The server response does not match the expected SDK schema
|
|
473
445
|
case (err instanceof SDKValidationError): {
|
|
474
|
-
//
|
|
446
|
+
// Pretty-print will provide a human-readable multi-line error message
|
|
475
447
|
console.error(err.pretty());
|
|
476
448
|
// Raw value may also be inspected
|
|
477
449
|
console.error(err.rawValue);
|
|
@@ -483,6 +455,7 @@ async function run() {
|
|
|
483
455
|
return;
|
|
484
456
|
}
|
|
485
457
|
default: {
|
|
458
|
+
// Other errors such as network errors, see HTTPClientErrors for more details
|
|
486
459
|
throw err;
|
|
487
460
|
}
|
|
488
461
|
}
|
|
@@ -493,7 +466,17 @@ run();
|
|
|
493
466
|
|
|
494
467
|
```
|
|
495
468
|
|
|
496
|
-
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted string since validation errors can list many issues and the plain error string may be difficult read when debugging.
|
|
469
|
+
Validation errors can also occur when either method arguments or data returned from the server do not match the expected format. The `SDKValidationError` that is thrown as a result will capture the raw value that failed validation in an attribute called `rawValue`. Additionally, a `pretty()` method is available on this error that can be used to log a nicely formatted multi-line string since validation errors can list many issues and the plain error string may be difficult read when debugging.
|
|
470
|
+
|
|
471
|
+
In some rare cases, the SDK can fail to get a response from the server or even make the request due to unexpected circumstances such as network conditions. These types of errors are captured in the `models/errors/httpclienterrors.ts` module:
|
|
472
|
+
|
|
473
|
+
| HTTP Client Error | Description |
|
|
474
|
+
| ---------------------------------------------------- | ---------------------------------------------------- |
|
|
475
|
+
| RequestAbortedError | HTTP request was aborted by the client |
|
|
476
|
+
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
|
|
477
|
+
| ConnectionError | HTTP client was unable to make a request to a server |
|
|
478
|
+
| InvalidRequestError | Any input used to create a request is invalid |
|
|
479
|
+
| UnexpectedClientError | Unrecognised or unexpected error |
|
|
497
480
|
<!-- End Error Handling [errors] -->
|
|
498
481
|
|
|
499
482
|
<!-- Start Server Selection [server] -->
|
package/lib/config.d.ts
CHANGED
|
@@ -27,8 +27,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
27
27
|
export declare const SDK_METADATA: {
|
|
28
28
|
readonly language: "typescript";
|
|
29
29
|
readonly openapiDocVersion: "0.0.2";
|
|
30
|
-
readonly sdkVersion: "0.1.0-alpha.
|
|
31
|
-
readonly genVersion: "2.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
30
|
+
readonly sdkVersion: "0.1.0-alpha.23";
|
|
31
|
+
readonly genVersion: "2.479.3";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.23 2.479.3 0.0.2 syllable-sdk";
|
|
33
33
|
};
|
|
34
34
|
//# sourceMappingURL=config.d.ts.map
|
package/lib/config.js
CHANGED
|
@@ -36,8 +36,8 @@ function serverURLFromOptions(options) {
|
|
|
36
36
|
exports.SDK_METADATA = {
|
|
37
37
|
language: "typescript",
|
|
38
38
|
openapiDocVersion: "0.0.2",
|
|
39
|
-
sdkVersion: "0.1.0-alpha.
|
|
40
|
-
genVersion: "2.
|
|
41
|
-
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
39
|
+
sdkVersion: "0.1.0-alpha.23",
|
|
40
|
+
genVersion: "2.479.3",
|
|
41
|
+
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.23 2.479.3 0.0.2 syllable-sdk",
|
|
42
42
|
};
|
|
43
43
|
//# sourceMappingURL=config.js.map
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { DaoCustomMessageRule, DaoCustomMessageRule$Outbound } from "./daocustommessagerule.js";
|
|
4
5
|
export type CustomMessageCreateRequest = {
|
|
5
6
|
/**
|
|
6
7
|
* The name of the custom message
|
|
@@ -14,6 +15,10 @@ export type CustomMessageCreateRequest = {
|
|
|
14
15
|
* The label of the custom message
|
|
15
16
|
*/
|
|
16
17
|
label?: string | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Rules for time-specific message variants
|
|
20
|
+
*/
|
|
21
|
+
rules?: Array<DaoCustomMessageRule> | undefined;
|
|
17
22
|
type?: string | undefined;
|
|
18
23
|
};
|
|
19
24
|
/** @internal */
|
|
@@ -23,6 +28,7 @@ export type CustomMessageCreateRequest$Outbound = {
|
|
|
23
28
|
name: string;
|
|
24
29
|
text: string;
|
|
25
30
|
label?: string | null | undefined;
|
|
31
|
+
rules?: Array<DaoCustomMessageRule$Outbound> | undefined;
|
|
26
32
|
type: string;
|
|
27
33
|
};
|
|
28
34
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custommessagecreaterequest.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessagecreaterequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"custommessagecreaterequest.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessagecreaterequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,0BAA0B,GAAG;IACvC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC;IAChD,IAAI,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CAC3B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAOP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,IAAI,EAAE,MAAM,CAAC;IACb,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC,KAAK,CAAC,EAAE,KAAK,CAAC,6BAA6B,CAAC,GAAG,SAAS,CAAC;IACzD,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAO1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D;AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -31,11 +31,13 @@ exports.customMessageCreateRequestToJSON = customMessageCreateRequestToJSON;
|
|
|
31
31
|
exports.customMessageCreateRequestFromJSON = customMessageCreateRequestFromJSON;
|
|
32
32
|
const z = __importStar(require("zod"));
|
|
33
33
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
34
|
+
const daocustommessagerule_js_1 = require("./daocustommessagerule.js");
|
|
34
35
|
/** @internal */
|
|
35
36
|
exports.CustomMessageCreateRequest$inboundSchema = z.object({
|
|
36
37
|
name: z.string(),
|
|
37
38
|
text: z.string(),
|
|
38
39
|
label: z.nullable(z.string()).optional(),
|
|
40
|
+
rules: z.array(daocustommessagerule_js_1.DaoCustomMessageRule$inboundSchema).optional(),
|
|
39
41
|
type: z.string().default("greeting"),
|
|
40
42
|
});
|
|
41
43
|
/** @internal */
|
|
@@ -43,6 +45,7 @@ exports.CustomMessageCreateRequest$outboundSchema = z.object({
|
|
|
43
45
|
name: z.string(),
|
|
44
46
|
text: z.string(),
|
|
45
47
|
label: z.nullable(z.string()).optional(),
|
|
48
|
+
rules: z.array(daocustommessagerule_js_1.DaoCustomMessageRule$outboundSchema).optional(),
|
|
46
49
|
type: z.string().default("greeting"),
|
|
47
50
|
});
|
|
48
51
|
/**
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custommessagecreaterequest.js","sourceRoot":"","sources":["../../src/models/components/custommessagecreaterequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"custommessagecreaterequest.js","sourceRoot":"","sources":["../../src/models/components/custommessagecreaterequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAiFH,4EAMC;AAED,gFAQC;AA/FD,uCAAyB;AACzB,qDAAiD;AAGjD,uEAKmC;AAsBnC,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,4DAAkC,CAAC,CAAC,QAAQ,EAAE;IAC7D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;CACrC,CAAC,CAAC;AAWH,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACxC,KAAK,EAAE,CAAC,CAAC,KAAK,CAAC,6DAAmC,CAAC,CAAC,QAAQ,EAAE;IAC9D,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;CACrC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C;AAED,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { DaoCustomMessageRule, DaoCustomMessageRule$Outbound } from "./daocustommessagerule.js";
|
|
4
5
|
export type CustomMessageResponse = {
|
|
5
6
|
/**
|
|
6
7
|
* The name of the custom message
|
|
@@ -14,6 +15,10 @@ export type CustomMessageResponse = {
|
|
|
14
15
|
* The label of the custom message
|
|
15
16
|
*/
|
|
16
17
|
label?: string | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Rules for time-specific message variants
|
|
20
|
+
*/
|
|
21
|
+
rules?: Array<DaoCustomMessageRule> | undefined;
|
|
17
22
|
/**
|
|
18
23
|
* The ID of the custom message
|
|
19
24
|
*/
|
|
@@ -39,6 +44,7 @@ export type CustomMessageResponse$Outbound = {
|
|
|
39
44
|
name: string;
|
|
40
45
|
text: string;
|
|
41
46
|
label?: string | null | undefined;
|
|
47
|
+
rules?: Array<DaoCustomMessageRule$Outbound> | undefined;
|
|
42
48
|
id: number;
|
|
43
49
|
updated_at: string;
|
|
44
50
|
agent_count?: number | null | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custommessageresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessageresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"custommessageresponse.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessageresponse.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;IACb;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,CAAC,oBAAoB,CAAC,GAAG,SAAS,CAAC;IAChD;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,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|
|
32
32
|
const z = __importStar(require("zod"));
|
|
33
33
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
34
34
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
35
|
+
const daocustommessagerule_js_1 = require("./daocustommessagerule.js");
|
|
35
36
|
/** @internal */
|
|
36
37
|
exports.CustomMessageResponse$inboundSchema = z.object({
|
|
37
38
|
name: z.string(),
|
|
38
39
|
text: z.string(),
|
|
39
40
|
label: z.nullable(z.string()).optional(),
|
|
41
|
+
rules: z.array(daocustommessagerule_js_1.DaoCustomMessageRule$inboundSchema).optional(),
|
|
40
42
|
id: z.number().int(),
|
|
41
43
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
42
44
|
agent_count: z.nullable(z.number().int()).optional(),
|
|
@@ -54,6 +56,7 @@ exports.CustomMessageResponse$outboundSchema = z.object({
|
|
|
54
56
|
name: z.string(),
|
|
55
57
|
text: z.string(),
|
|
56
58
|
label: z.nullable(z.string()).optional(),
|
|
59
|
+
rules: z.array(daocustommessagerule_js_1.DaoCustomMessageRule$outboundSchema).optional(),
|
|
57
60
|
id: z.number().int(),
|
|
58
61
|
updatedAt: z.date().transform(v => v.toISOString()),
|
|
59
62
|
agentCount: z.nullable(z.number().int()).optional(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custommessageresponse.js","sourceRoot":"","sources":["../../src/models/components/custommessageresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"custommessageresponse.js","sourceRoot":"","sources":["../../src/models/components/custommessageresponse.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA0HH,kEAMC;AAED,sEAQC;AAxID,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,uEAKmC;AAsCnC,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,IA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od";
|
|
2
2
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
3
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { DaoCustomMessageRule, DaoCustomMessageRule$Outbound } from "./daocustommessagerule.js";
|
|
4
5
|
export type CustomMessageUpdateRequest = {
|
|
5
6
|
/**
|
|
6
7
|
* The name of the custom message
|
|
@@ -14,6 +15,10 @@ export type CustomMessageUpdateRequest = {
|
|
|
14
15
|
* The label of the custom message
|
|
15
16
|
*/
|
|
16
17
|
label?: string | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* Rules for time-specific message variants
|
|
20
|
+
*/
|
|
21
|
+
rules?: Array<DaoCustomMessageRule> | undefined;
|
|
17
22
|
/**
|
|
18
23
|
* The ID of the custom message
|
|
19
24
|
*/
|
|
@@ -27,6 +32,7 @@ export type CustomMessageUpdateRequest$Outbound = {
|
|
|
27
32
|
name: string;
|
|
28
33
|
text: string;
|
|
29
34
|
label?: string | null | undefined;
|
|
35
|
+
rules?: Array<DaoCustomMessageRule$Outbound> | undefined;
|
|
30
36
|
id: number;
|
|
31
37
|
type: string;
|
|
32
38
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custommessageupdaterequest.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessageupdaterequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;
|
|
1
|
+
{"version":3,"file":"custommessageupdaterequest.d.ts","sourceRoot":"","sources":["../../src/models/components/custommessageupdaterequest.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB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AAED,wBAAgB,gCAAgC,CAC9C,0BAA0B,EAAE,0BAA0B,GACrD,MAAM,CAIR;AAED,wBAAgB,kCAAkC,CAChD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,0BAA0B,EAAE,kBAAkB,CAAC,CAMjE"}
|
|
@@ -31,11 +31,13 @@ exports.customMessageUpdateRequestToJSON = customMessageUpdateRequestToJSON;
|
|
|
31
31
|
exports.customMessageUpdateRequestFromJSON = customMessageUpdateRequestFromJSON;
|
|
32
32
|
const z = __importStar(require("zod"));
|
|
33
33
|
const schemas_js_1 = require("../../lib/schemas.js");
|
|
34
|
+
const daocustommessagerule_js_1 = require("./daocustommessagerule.js");
|
|
34
35
|
/** @internal */
|
|
35
36
|
exports.CustomMessageUpdateRequest$inboundSchema = z.object({
|
|
36
37
|
name: z.string(),
|
|
37
38
|
text: z.string(),
|
|
38
39
|
label: z.nullable(z.string()).optional(),
|
|
40
|
+
rules: z.array(daocustommessagerule_js_1.DaoCustomMessageRule$inboundSchema).optional(),
|
|
39
41
|
id: z.number().int(),
|
|
40
42
|
type: z.string().default("greeting"),
|
|
41
43
|
});
|
|
@@ -44,6 +46,7 @@ exports.CustomMessageUpdateRequest$outboundSchema = z.object({
|
|
|
44
46
|
name: z.string(),
|
|
45
47
|
text: z.string(),
|
|
46
48
|
label: z.nullable(z.string()).optional(),
|
|
49
|
+
rules: z.array(daocustommessagerule_js_1.DaoCustomMessageRule$outboundSchema).optional(),
|
|
47
50
|
id: z.number().int(),
|
|
48
51
|
type: z.string().default("greeting"),
|
|
49
52
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"custommessageupdaterequest.js","sourceRoot":"","sources":["../../src/models/components/custommessageupdaterequest.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;
|
|
1
|
+
{"version":3,"file":"custommessageupdaterequest.js","sourceRoot":"","sources":["../../src/models/components/custommessageupdaterequest.ts"],"names":[],"mappings":";AAAA;;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BAA2B,2CAA3B,2BAA2B,QAO3C;AAED,SAAgB,gCAAgC,CAC9C,0BAAsD;IAEtD,OAAO,IAAI,CAAC,SAAS,CACnB,iDAAyC,CAAC,KAAK,CAAC,0BAA0B,CAAC,CAC5E,CAAC;AACJ,CAAC;AAED,SAAgB,kCAAkC,CAChD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,gDAAwC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACpE,wDAAwD,CACzD,CAAC;AACJ,CAAC"}
|
|
@@ -0,0 +1,63 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
3
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
4
|
+
import { DayOfWeek } from "./dayofweek.js";
|
|
5
|
+
export type DaoCustomMessageRule = {
|
|
6
|
+
/**
|
|
7
|
+
* The description of the rule
|
|
8
|
+
*/
|
|
9
|
+
description: string;
|
|
10
|
+
/**
|
|
11
|
+
* The start of the time range for the rule in 24-hour format hh:mm (should be null for "all day" cases)
|
|
12
|
+
*/
|
|
13
|
+
timeRangeStart?: string | null | undefined;
|
|
14
|
+
/**
|
|
15
|
+
* The end of the time range for the rule in 24-hour format hh:mm (should be null for "all day" cases)
|
|
16
|
+
*/
|
|
17
|
+
timeRangeEnd?: string | null | undefined;
|
|
18
|
+
/**
|
|
19
|
+
* The date for the rule in YYYY-MM-DD format
|
|
20
|
+
*/
|
|
21
|
+
date?: string | null | undefined;
|
|
22
|
+
/**
|
|
23
|
+
* The days of the week for the rule
|
|
24
|
+
*/
|
|
25
|
+
daysOfWeek?: Array<DayOfWeek> | null | undefined;
|
|
26
|
+
/**
|
|
27
|
+
* Whether the rule logic should be inverted (i.e. "not")
|
|
28
|
+
*/
|
|
29
|
+
invert: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Message text associated with the rule
|
|
32
|
+
*/
|
|
33
|
+
text: string;
|
|
34
|
+
};
|
|
35
|
+
/** @internal */
|
|
36
|
+
export declare const DaoCustomMessageRule$inboundSchema: z.ZodType<DaoCustomMessageRule, z.ZodTypeDef, unknown>;
|
|
37
|
+
/** @internal */
|
|
38
|
+
export type DaoCustomMessageRule$Outbound = {
|
|
39
|
+
description: string;
|
|
40
|
+
time_range_start?: string | null | undefined;
|
|
41
|
+
time_range_end?: string | null | undefined;
|
|
42
|
+
date?: string | null | undefined;
|
|
43
|
+
days_of_week?: Array<string> | null | undefined;
|
|
44
|
+
invert: boolean;
|
|
45
|
+
text: string;
|
|
46
|
+
};
|
|
47
|
+
/** @internal */
|
|
48
|
+
export declare const DaoCustomMessageRule$outboundSchema: z.ZodType<DaoCustomMessageRule$Outbound, z.ZodTypeDef, DaoCustomMessageRule>;
|
|
49
|
+
/**
|
|
50
|
+
* @internal
|
|
51
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
+
*/
|
|
53
|
+
export declare namespace DaoCustomMessageRule$ {
|
|
54
|
+
/** @deprecated use `DaoCustomMessageRule$inboundSchema` instead. */
|
|
55
|
+
const inboundSchema: z.ZodType<DaoCustomMessageRule, z.ZodTypeDef, unknown>;
|
|
56
|
+
/** @deprecated use `DaoCustomMessageRule$outboundSchema` instead. */
|
|
57
|
+
const outboundSchema: z.ZodType<DaoCustomMessageRule$Outbound, z.ZodTypeDef, DaoCustomMessageRule>;
|
|
58
|
+
/** @deprecated use `DaoCustomMessageRule$Outbound` instead. */
|
|
59
|
+
type Outbound = DaoCustomMessageRule$Outbound;
|
|
60
|
+
}
|
|
61
|
+
export declare function daoCustomMessageRuleToJSON(daoCustomMessageRule: DaoCustomMessageRule): string;
|
|
62
|
+
export declare function daoCustomMessageRuleFromJSON(jsonString: string): SafeParseResult<DaoCustomMessageRule, SDKValidationError>;
|
|
63
|
+
//# sourceMappingURL=daocustommessagerule.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"daocustommessagerule.d.ts","sourceRoot":"","sources":["../../src/models/components/daocustommessagerule.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAGzB,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,SAAS,EAGV,MAAM,gBAAgB,CAAC;AAExB,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,SAAS,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IACjD;;OAEG;IACH,MAAM,EAAE,OAAO,CAAC;IAChB;;OAEG;IACH,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,6BAA6B,GAAG;IAC1C,WAAW,EAAE,MAAM,CAAC;IACpB,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,YAAY,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD,MAAM,EAAE,OAAO,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;CACd,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,oBAAoB,CAepB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,qBAAqB,CAAC;IACrC,oEAAoE;IAC7D,MAAM,aAAa,wDAAqC,CAAC;IAChE,qEAAqE;IAC9D,MAAM,cAAc,8EAAsC,CAAC;IAClE,+DAA+D;IAC/D,KAAY,QAAQ,GAAG,6BAA6B,CAAC;CACtD;AAED,wBAAgB,0BAA0B,CACxC,oBAAoB,EAAE,oBAAoB,GACzC,MAAM,CAIR;AAED,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
|
|
@@ -0,0 +1,85 @@
|
|
|
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.DaoCustomMessageRule$ = exports.DaoCustomMessageRule$outboundSchema = exports.DaoCustomMessageRule$inboundSchema = void 0;
|
|
30
|
+
exports.daoCustomMessageRuleToJSON = daoCustomMessageRuleToJSON;
|
|
31
|
+
exports.daoCustomMessageRuleFromJSON = daoCustomMessageRuleFromJSON;
|
|
32
|
+
const z = __importStar(require("zod"));
|
|
33
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
34
|
+
const schemas_js_1 = require("../../lib/schemas.js");
|
|
35
|
+
const dayofweek_js_1 = require("./dayofweek.js");
|
|
36
|
+
/** @internal */
|
|
37
|
+
exports.DaoCustomMessageRule$inboundSchema = z.object({
|
|
38
|
+
description: z.string(),
|
|
39
|
+
time_range_start: z.nullable(z.string()).optional(),
|
|
40
|
+
time_range_end: z.nullable(z.string()).optional(),
|
|
41
|
+
date: z.nullable(z.string()).optional(),
|
|
42
|
+
days_of_week: z.nullable(z.array(dayofweek_js_1.DayOfWeek$inboundSchema)).optional(),
|
|
43
|
+
invert: z.boolean(),
|
|
44
|
+
text: z.string(),
|
|
45
|
+
}).transform((v) => {
|
|
46
|
+
return (0, primitives_js_1.remap)(v, {
|
|
47
|
+
"time_range_start": "timeRangeStart",
|
|
48
|
+
"time_range_end": "timeRangeEnd",
|
|
49
|
+
"days_of_week": "daysOfWeek",
|
|
50
|
+
});
|
|
51
|
+
});
|
|
52
|
+
/** @internal */
|
|
53
|
+
exports.DaoCustomMessageRule$outboundSchema = z.object({
|
|
54
|
+
description: z.string(),
|
|
55
|
+
timeRangeStart: z.nullable(z.string()).optional(),
|
|
56
|
+
timeRangeEnd: z.nullable(z.string()).optional(),
|
|
57
|
+
date: z.nullable(z.string()).optional(),
|
|
58
|
+
daysOfWeek: z.nullable(z.array(dayofweek_js_1.DayOfWeek$outboundSchema)).optional(),
|
|
59
|
+
invert: z.boolean(),
|
|
60
|
+
text: z.string(),
|
|
61
|
+
}).transform((v) => {
|
|
62
|
+
return (0, primitives_js_1.remap)(v, {
|
|
63
|
+
timeRangeStart: "time_range_start",
|
|
64
|
+
timeRangeEnd: "time_range_end",
|
|
65
|
+
daysOfWeek: "days_of_week",
|
|
66
|
+
});
|
|
67
|
+
});
|
|
68
|
+
/**
|
|
69
|
+
* @internal
|
|
70
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
71
|
+
*/
|
|
72
|
+
var DaoCustomMessageRule$;
|
|
73
|
+
(function (DaoCustomMessageRule$) {
|
|
74
|
+
/** @deprecated use `DaoCustomMessageRule$inboundSchema` instead. */
|
|
75
|
+
DaoCustomMessageRule$.inboundSchema = exports.DaoCustomMessageRule$inboundSchema;
|
|
76
|
+
/** @deprecated use `DaoCustomMessageRule$outboundSchema` instead. */
|
|
77
|
+
DaoCustomMessageRule$.outboundSchema = exports.DaoCustomMessageRule$outboundSchema;
|
|
78
|
+
})(DaoCustomMessageRule$ || (exports.DaoCustomMessageRule$ = DaoCustomMessageRule$ = {}));
|
|
79
|
+
function daoCustomMessageRuleToJSON(daoCustomMessageRule) {
|
|
80
|
+
return JSON.stringify(exports.DaoCustomMessageRule$outboundSchema.parse(daoCustomMessageRule));
|
|
81
|
+
}
|
|
82
|
+
function daoCustomMessageRuleFromJSON(jsonString) {
|
|
83
|
+
return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.DaoCustomMessageRule$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'DaoCustomMessageRule' from JSON`);
|
|
84
|
+
}
|
|
85
|
+
//# sourceMappingURL=daocustommessagerule.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"daocustommessagerule.js","sourceRoot":"","sources":["../../src/models/components/daocustommessagerule.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AA8GH,gEAMC;AAED,oEAQC;AA5HD,uCAAyB;AACzB,2DAA0D;AAC1D,qDAAiD;AAGjD,iDAIwB;AAiCxB,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,gBAAgB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACnD,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACjD,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvC,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,KAAK,CAAC,sCAAuB,CAAC,CAAC,CAAC,QAAQ,EAAE;IACrE,MAAM,EAAE,CAAC,CAAC,OAAO,EAAE;IACnB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;CACjB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,kBAAkB,EAAE,gBAAgB;QACpC,gBAAgB,EAAE,cAAc;QAChC,cAAc,EAAE,YAAY;KAC7B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAaH,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE;IACvB,cAAc,E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AAC"}
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const DayOfWeek: {
|
|
4
|
+
readonly Mo: "mo";
|
|
5
|
+
readonly Tu: "tu";
|
|
6
|
+
readonly We: "we";
|
|
7
|
+
readonly Th: "th";
|
|
8
|
+
readonly Fr: "fr";
|
|
9
|
+
readonly Sa: "sa";
|
|
10
|
+
readonly Su: "su";
|
|
11
|
+
};
|
|
12
|
+
export type DayOfWeek = ClosedEnum<typeof DayOfWeek>;
|
|
13
|
+
/** @internal */
|
|
14
|
+
export declare const DayOfWeek$inboundSchema: z.ZodNativeEnum<typeof DayOfWeek>;
|
|
15
|
+
/** @internal */
|
|
16
|
+
export declare const DayOfWeek$outboundSchema: z.ZodNativeEnum<typeof DayOfWeek>;
|
|
17
|
+
/**
|
|
18
|
+
* @internal
|
|
19
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
20
|
+
*/
|
|
21
|
+
export declare namespace DayOfWeek$ {
|
|
22
|
+
/** @deprecated use `DayOfWeek$inboundSchema` instead. */
|
|
23
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
24
|
+
readonly Mo: "mo";
|
|
25
|
+
readonly Tu: "tu";
|
|
26
|
+
readonly We: "we";
|
|
27
|
+
readonly Th: "th";
|
|
28
|
+
readonly Fr: "fr";
|
|
29
|
+
readonly Sa: "sa";
|
|
30
|
+
readonly Su: "su";
|
|
31
|
+
}>;
|
|
32
|
+
/** @deprecated use `DayOfWeek$outboundSchema` instead. */
|
|
33
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
34
|
+
readonly Mo: "mo";
|
|
35
|
+
readonly Tu: "tu";
|
|
36
|
+
readonly We: "we";
|
|
37
|
+
readonly Th: "th";
|
|
38
|
+
readonly Fr: "fr";
|
|
39
|
+
readonly Sa: "sa";
|
|
40
|
+
readonly Su: "su";
|
|
41
|
+
}>;
|
|
42
|
+
}
|
|
43
|
+
//# sourceMappingURL=dayofweek.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dayofweek.d.ts","sourceRoot":"","sources":["../../src/models/components/dayofweek.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,SAAS;;;;;;;;CAQZ,CAAC;AACX,MAAM,MAAM,SAAS,GAAG,UAAU,CAAC,OAAO,SAAS,CAAC,CAAC;AAErD,gBAAgB;AAChB,eAAO,MAAM,uBAAuB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,SAAS,CAC9C,CAAC;AAEzB,gBAAgB;AAChB,eAAO,MAAM,wBAAwB,EAAE,CAAC,CAAC,aAAa,CAAC,OAAO,SAAS,CAC9C,CAAC;AAE1B;;;GAGG;AACH,yBAAiB,UAAU,CAAC;IAC1B,yDAAyD;IAClD,MAAM,aAAa;;;;;;;;MAA0B,CAAC;IACrD,0DAA0D;IACnD,MAAM,cAAc;;;;;;;;MAA2B,CAAC;CACxD"}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.DayOfWeek$ = exports.DayOfWeek$outboundSchema = exports.DayOfWeek$inboundSchema = exports.DayOfWeek = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
exports.DayOfWeek = {
|
|
32
|
+
Mo: "mo",
|
|
33
|
+
Tu: "tu",
|
|
34
|
+
We: "we",
|
|
35
|
+
Th: "th",
|
|
36
|
+
Fr: "fr",
|
|
37
|
+
Sa: "sa",
|
|
38
|
+
Su: "su",
|
|
39
|
+
};
|
|
40
|
+
/** @internal */
|
|
41
|
+
exports.DayOfWeek$inboundSchema = z
|
|
42
|
+
.nativeEnum(exports.DayOfWeek);
|
|
43
|
+
/** @internal */
|
|
44
|
+
exports.DayOfWeek$outboundSchema = exports.DayOfWeek$inboundSchema;
|
|
45
|
+
/**
|
|
46
|
+
* @internal
|
|
47
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
48
|
+
*/
|
|
49
|
+
var DayOfWeek$;
|
|
50
|
+
(function (DayOfWeek$) {
|
|
51
|
+
/** @deprecated use `DayOfWeek$inboundSchema` instead. */
|
|
52
|
+
DayOfWeek$.inboundSchema = exports.DayOfWeek$inboundSchema;
|
|
53
|
+
/** @deprecated use `DayOfWeek$outboundSchema` instead. */
|
|
54
|
+
DayOfWeek$.outboundSchema = exports.DayOfWeek$outboundSchema;
|
|
55
|
+
})(DayOfWeek$ || (exports.DayOfWeek$ = DayOfWeek$ = {}));
|
|
56
|
+
//# sourceMappingURL=dayofweek.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"dayofweek.js","sourceRoot":"","sources":["../../src/models/components/dayofweek.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,SAAS,GAAG;IACvB,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;IACR,EAAE,EAAE,IAAI;CACA,CAAC;AAGX,gBAAgB;AACH,QAAA,uBAAuB,GAAsC,CAAC;KACxE,UAAU,CAAC,iBAAS,CAAC,CAAC;AAEzB,gBAAgB;AACH,QAAA,wBAAwB,GACnC,+BAAuB,CAAC;AAE1B;;;GAGG;AACH,IAAiB,UAAU,CAK1B;AALD,WAAiB,UAAU;IACzB,yDAAyD;IAC5C,wBAAa,GAAG,+BAAuB,CAAC;IACrD,0DAA0D;IAC7C,yBAAc,GAAG,gCAAwB,CAAC;AACzD,CAAC,EALgB,UAAU,0BAAV,UAAU,QAK1B"}
|
|
@@ -23,6 +23,8 @@ export * from "./custommessagecreaterequest.js";
|
|
|
23
23
|
export * from "./custommessageproperties.js";
|
|
24
24
|
export * from "./custommessageresponse.js";
|
|
25
25
|
export * from "./custommessageupdaterequest.js";
|
|
26
|
+
export * from "./daocustommessagerule.js";
|
|
27
|
+
export * from "./dayofweek.js";
|
|
26
28
|
export * from "./directoryextension.js";
|
|
27
29
|
export * from "./directorymember.js";
|
|
28
30
|
export * from "./directorymembercreate.js";
|