syllable-sdk 0.1.0-alpha.21 → 0.1.0-alpha.22
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 -15
- 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/package.json +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/README.md
CHANGED
|
@@ -431,25 +431,15 @@ run();
|
|
|
431
431
|
<!-- Start Error Handling [errors] -->
|
|
432
432
|
## Error Handling
|
|
433
433
|
|
|
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:
|
|
434
|
+
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
435
|
|
|
448
436
|
| Error Type | Status Code | Content Type |
|
|
449
437
|
| -------------------------- | ----------- | ---------------- |
|
|
450
438
|
| errors.HTTPValidationError | 422 | application/json |
|
|
451
439
|
| errors.SDKError | 4XX, 5XX | \*/\* |
|
|
452
440
|
|
|
441
|
+
If the method throws an error and it is not captured by the known errors, it will default to throwing a `SDKError`.
|
|
442
|
+
|
|
453
443
|
```typescript
|
|
454
444
|
import { SyllableSDK } from "syllable-sdk";
|
|
455
445
|
import {
|
|
@@ -470,8 +460,9 @@ async function run() {
|
|
|
470
460
|
console.log(result);
|
|
471
461
|
} catch (err) {
|
|
472
462
|
switch (true) {
|
|
463
|
+
// The server response does not match the expected SDK schema
|
|
473
464
|
case (err instanceof SDKValidationError): {
|
|
474
|
-
//
|
|
465
|
+
// Pretty-print will provide a human-readable multi-line error message
|
|
475
466
|
console.error(err.pretty());
|
|
476
467
|
// Raw value may also be inspected
|
|
477
468
|
console.error(err.rawValue);
|
|
@@ -483,6 +474,7 @@ async function run() {
|
|
|
483
474
|
return;
|
|
484
475
|
}
|
|
485
476
|
default: {
|
|
477
|
+
// Other errors such as network errors, see HTTPClientErrors for more details
|
|
486
478
|
throw err;
|
|
487
479
|
}
|
|
488
480
|
}
|
|
@@ -493,7 +485,17 @@ run();
|
|
|
493
485
|
|
|
494
486
|
```
|
|
495
487
|
|
|
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.
|
|
488
|
+
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.
|
|
489
|
+
|
|
490
|
+
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:
|
|
491
|
+
|
|
492
|
+
| HTTP Client Error | Description |
|
|
493
|
+
| ---------------------------------------------------- | ---------------------------------------------------- |
|
|
494
|
+
| RequestAbortedError | HTTP request was aborted by the client |
|
|
495
|
+
| RequestTimeoutError | HTTP request timed out due to an AbortSignal signal |
|
|
496
|
+
| ConnectionError | HTTP client was unable to make a request to a server |
|
|
497
|
+
| InvalidRequestError | Any input used to create a request is invalid |
|
|
498
|
+
| UnexpectedClientError | Unrecognised or unexpected error |
|
|
497
499
|
<!-- End Error Handling [errors] -->
|
|
498
500
|
|
|
499
501
|
<!-- 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.477.
|
|
32
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
30
|
+
readonly sdkVersion: "0.1.0-alpha.22";
|
|
31
|
+
readonly genVersion: "2.477.4";
|
|
32
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.22 2.477.4 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.477.
|
|
41
|
-
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.
|
|
39
|
+
sdkVersion: "0.1.0-alpha.22",
|
|
40
|
+
genVersion: "2.477.4",
|
|
41
|
+
userAgent: "speakeasy-sdk/typescript 0.1.0-alpha.22 2.477.4 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;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IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD;AAED,wBAAgB,2BAA2B,CACzC,qBAAqB,EAAE,qBAAqB,GAC3C,MAAM,CAIR;AAED,wBAAgB,6BAA6B,CAC3C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,qBAAqB,EAAE,kBAAkB,CAAC,CAM5D"}
|
|
@@ -32,11 +32,13 @@ exports.customMessageResponseFromJSON = customMessageResponseFromJSON;
|
|
|
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;;;;;;;;;;;;;;;;;;;;;;;;;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B,CAAC,CAClE,CAAC;AACJ,CAAC;AAED,SAAgB,6BAA6B,CAC3C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,2CAAmC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC/D,mDAAmD,CACpD,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 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,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;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,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,CAQP,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,EAAE,EAAE,MAAM,CAAC;IACX,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,CAQ1B,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.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;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAwFH,4EAMC;AAED,gFAQC;AAtGD,uCAAyB;AACzB,qDAAiD;AAGjD,uEAKmC;AA0BnC,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,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,UAAU,CAAC;CACrC,CAAC,CAAC;AAYH,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,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IACpB,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"}
|
|
@@ -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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AI,CAAC,SAAS,CACnB,2CAAmC,CAAC,KAAK,CAAC,oBAAoB,CAAC,CAChE,CAAC;AACJ,CAAC;AAED,SAAgB,4BAA4B,CAC1C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,0CAAkC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC9D,kDAAkD,CACnD,CAAC;AACJ,CAAC"}
|
|
@@ -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";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":"AAIA,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC;AACjC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,kBAAkB,CAAC;AACjC,cAAc,iBAAiB,CAAC;AAChC,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cAAc,cAAc,CAAC;AAC7B,cAAc,wBAAwB,CAAC;AACvC,cAAc,sBAAsB,CAAC;AACrC,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,mBAAmB,CAAC;AAClC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,oBAAoB,CAAC;AACnC,cAAc,iCAAiC,CAAC;AAChD,cAAc,8BAA8B,CAAC;AAC7C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,iCAAiC,CAAC;AAChD,cAAc,yBAAyB,CAAC;AACxC,cAAc,sBAAsB,CAAC;AACrC,cAAc,4BAA4B,CAAC;AAC3C,cAAc,gCAAgC,CAAC;AAC/C,cAAc,YAAY,CAAC;AAC3B,cAAc,sBAAsB,CAAC;AACrC,cAAc,gCAAgC,CAAC;AAC/C,cAAc,kCAAkC,CAAC;AACjD,cA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C;AACtC,cAAc,gBAAgB,CAAC;AAC/B,cAAc,uBAAuB,CAAC;AACtC,cAAc,aAAa,CAAC;AAC5B,cAAc,mBAAmB,CAAC;AAClC,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,mBAAmB,CAAC;AAClC,cAAc,eAAe,CAAC;AAC9B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAC;AACvC,cAAc,oBAAoB,CAAC;AACnC,cAAc,cAAc,CAAC;AAC7B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAClC,cAAc,yBAAyB,CAAC;AACxC,cAAc,6BAA6B,CAAC;AAC5C,cAAc,wBAAwB,CAAC;AACvC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,kBAAkB,CAAC;AACjC,cAAc,mCAAmC,CAAC;AAClD,cAAc,kBAAkB,CAAC;AACjC,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,kBAAkB,CAAC;AACjC,cAAc,0BAA0B,CAAC;AACzC,cAAc,WAAW,CAAC;AAC1B,cAAc,iBAAiB,CAAC;AAChC,cAAc,yBAAyB,CAAC;AACxC,cAAc,qBAAqB,CAAC;AACpC,cAAc,iBAAiB,CAAC;AAChC,cAAc,sBAAsB,CAAC"}
|
|
@@ -42,6 +42,8 @@ __exportStar(require("./custommessagecreaterequest.js"), exports);
|
|
|
42
42
|
__exportStar(require("./custommessageproperties.js"), exports);
|
|
43
43
|
__exportStar(require("./custommessageresponse.js"), exports);
|
|
44
44
|
__exportStar(require("./custommessageupdaterequest.js"), exports);
|
|
45
|
+
__exportStar(require("./daocustommessagerule.js"), exports);
|
|
46
|
+
__exportStar(require("./dayofweek.js"), exports);
|
|
45
47
|
__exportStar(require("./directoryextension.js"), exports);
|
|
46
48
|
__exportStar(require("./directorymember.js"), exports);
|
|
47
49
|
__exportStar(require("./directorymembercreate.js"), exports);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,6CAA2B;AAC3B,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,yDAAuC;AACvC,6DAA2C;AAC3C,mDAAiC;AACjC,kDAAgC;AAChC,yDAAuC;AACvC,uDAAqC;AACrC,iEAA+C;AAC/C,mEAAiD;AACjD,+CAA6B;AAC7B,yDAAuC;AACvC,uDAAqC;AACrC,qDAAmC;AACnC,kEAAgD;AAChD,+DAA6C;AAC7C,oDAAkC;AAClC,8DAA4C;AAC5C,qDAAmC;AACnC,kEAAgD;AAChD,+DAA6C;AAC7C,6DAA2C;AAC3C,kEAAgD;AAChD,0DAAwC;AACxC,uDAAqC;AACrC,6DAA2C;AAC3C,iEAA+C;AAC/C,6CAA2B;AAC3B,uDAAqC;AACrC,iEAA+C;AAC/C,mEAAiD;AACjD,2DAAyC;AACzC,iEAA+C;AAC/C,gEAA8C;AAC9C,yEAAuD;AACvD,mEAAiD;AACjD,yDAAuC;AACvC,0DAAwC;AACxC,2DAAyC;AACzC,2DAAyC;AACzC,gEAA8C;AAC9C,wDAAsC;AACtC,iDAA+B;AAC/B,wDAAsC;AACtC,8CAA4B;AAC5B,oDAAkC;AAClC,qDAAmC;AACnC,wDAAsC;AACtC,oDAAkC;AAClC,gDAA8B;AAC9B,gDAA8B;AAC9B,+CAA6B;AAC7B,qDAAmC;AACnC,yDAAuC;AACvC,qDAAmC;AACnC,+CAA6B;AAC7B,qDAAmC;AACnC,oDAAkC;AAClC,0DAAwC;AACxC,8DAA4C;AAC5C,yDAAuC;AACvC,gEAA8C;AAC9C,mDAAiC;AACjC,oEAAkD;AAClD,mDAAiC;AACjC,8CAA4B;AAC5B,mDAAiC;AACjC,mDAAiC;AACjC,2DAAyC;AACzC,4CAA0B;AAC1B,kDAAgC;AAChC,0DAAwC;AACxC,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/models/components/index.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;AAEH,6CAA2B;AAC3B,mDAAiC;AACjC,uDAAqC;AACrC,qDAAmC;AACnC,yDAAuC;AACvC,6DAA2C;AAC3C,mDAAiC;AACjC,kDAAgC;AAChC,yDAAuC;AACvC,uDAAqC;AACrC,iEAA+C;AAC/C,mEAAiD;AACjD,+CAA6B;AAC7B,yDAAuC;AACvC,uDAAqC;AACrC,qDAAmC;AACnC,kEAAgD;AAChD,+DAA6C;AAC7C,oDAAkC;AAClC,8DAA4C;AAC5C,qDAAmC;AACnC,kEAAgD;AAChD,+DAA6C;AAC7C,6DAA2C;AAC3C,kEAAgD;AAChD,4DAA0C;AAC1C,iDAA+B;AAC/B,0DAAwC;AACxC,uDAAqC;AACrC,6DAA2C;AAC3C,iEAA+C;AAC/C,6CAA2B;AAC3B,uDAAqC;AACrC,iEAA+C;AAC/C,mEAAiD;AACjD,2DAAyC;AACzC,iEAA+C;AAC/C,gEAA8C;AAC9C,yEAAuD;AACvD,mEAAiD;AACjD,yDAAuC;AACvC,0DAAwC;AACxC,2DAAyC;AACzC,2DAAyC;AACzC,gEAA8C;AAC9C,wDAAsC;AACtC,iDAA+B;AAC/B,wDAAsC;AACtC,8CAA4B;AAC5B,oDAAkC;AAClC,qDAAmC;AACnC,wDAAsC;AACtC,oDAAkC;AAClC,gDAA8B;AAC9B,gDAA8B;AAC9B,+CAA6B;AAC7B,qDAAmC;AACnC,yDAAuC;AACvC,qDAAmC;AACnC,+CAA6B;AAC7B,qDAAmC;AACnC,oDAAkC;AAClC,0DAAwC;AACxC,8DAA4C;AAC5C,yDAAuC;AACvC,gEAA8C;AAC9C,mDAAiC;AACjC,oEAAkD;AAClD,mDAAiC;AACjC,8CAA4B;AAC5B,mDAAiC;AACjC,mDAAiC;AACjC,2DAAyC;AACzC,4CAA0B;AAC1B,kDAAgC;AAChC,0DAAwC;AACxC,sDAAoC;AACpC,kDAAgC;AAChC,uDAAqC"}
|
package/package.json
CHANGED
package/src/lib/config.ts
CHANGED
|
@@ -61,8 +61,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
|
|
|
61
61
|
export const SDK_METADATA = {
|
|
62
62
|
language: "typescript",
|
|
63
63
|
openapiDocVersion: "0.0.2",
|
|
64
|
-
sdkVersion: "0.1.0-alpha.
|
|
65
|
-
genVersion: "2.477.
|
|
64
|
+
sdkVersion: "0.1.0-alpha.22",
|
|
65
|
+
genVersion: "2.477.4",
|
|
66
66
|
userAgent:
|
|
67
|
-
"speakeasy-sdk/typescript 0.1.0-alpha.
|
|
67
|
+
"speakeasy-sdk/typescript 0.1.0-alpha.22 2.477.4 0.0.2 syllable-sdk",
|
|
68
68
|
} as const;
|
|
@@ -6,6 +6,12 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
DaoCustomMessageRule,
|
|
11
|
+
DaoCustomMessageRule$inboundSchema,
|
|
12
|
+
DaoCustomMessageRule$Outbound,
|
|
13
|
+
DaoCustomMessageRule$outboundSchema,
|
|
14
|
+
} from "./daocustommessagerule.js";
|
|
9
15
|
|
|
10
16
|
export type CustomMessageCreateRequest = {
|
|
11
17
|
/**
|
|
@@ -20,6 +26,10 @@ export type CustomMessageCreateRequest = {
|
|
|
20
26
|
* The label of the custom message
|
|
21
27
|
*/
|
|
22
28
|
label?: string | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Rules for time-specific message variants
|
|
31
|
+
*/
|
|
32
|
+
rules?: Array<DaoCustomMessageRule> | undefined;
|
|
23
33
|
type?: string | undefined;
|
|
24
34
|
};
|
|
25
35
|
|
|
@@ -32,6 +42,7 @@ export const CustomMessageCreateRequest$inboundSchema: z.ZodType<
|
|
|
32
42
|
name: z.string(),
|
|
33
43
|
text: z.string(),
|
|
34
44
|
label: z.nullable(z.string()).optional(),
|
|
45
|
+
rules: z.array(DaoCustomMessageRule$inboundSchema).optional(),
|
|
35
46
|
type: z.string().default("greeting"),
|
|
36
47
|
});
|
|
37
48
|
|
|
@@ -40,6 +51,7 @@ export type CustomMessageCreateRequest$Outbound = {
|
|
|
40
51
|
name: string;
|
|
41
52
|
text: string;
|
|
42
53
|
label?: string | null | undefined;
|
|
54
|
+
rules?: Array<DaoCustomMessageRule$Outbound> | undefined;
|
|
43
55
|
type: string;
|
|
44
56
|
};
|
|
45
57
|
|
|
@@ -52,6 +64,7 @@ export const CustomMessageCreateRequest$outboundSchema: z.ZodType<
|
|
|
52
64
|
name: z.string(),
|
|
53
65
|
text: z.string(),
|
|
54
66
|
label: z.nullable(z.string()).optional(),
|
|
67
|
+
rules: z.array(DaoCustomMessageRule$outboundSchema).optional(),
|
|
55
68
|
type: z.string().default("greeting"),
|
|
56
69
|
});
|
|
57
70
|
|
|
@@ -7,6 +7,12 @@ import { remap as remap$ } from "../../lib/primitives.js";
|
|
|
7
7
|
import { safeParse } from "../../lib/schemas.js";
|
|
8
8
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
9
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
DaoCustomMessageRule,
|
|
12
|
+
DaoCustomMessageRule$inboundSchema,
|
|
13
|
+
DaoCustomMessageRule$Outbound,
|
|
14
|
+
DaoCustomMessageRule$outboundSchema,
|
|
15
|
+
} from "./daocustommessagerule.js";
|
|
10
16
|
|
|
11
17
|
export type CustomMessageResponse = {
|
|
12
18
|
/**
|
|
@@ -21,6 +27,10 @@ export type CustomMessageResponse = {
|
|
|
21
27
|
* The label of the custom message
|
|
22
28
|
*/
|
|
23
29
|
label?: string | null | undefined;
|
|
30
|
+
/**
|
|
31
|
+
* Rules for time-specific message variants
|
|
32
|
+
*/
|
|
33
|
+
rules?: Array<DaoCustomMessageRule> | undefined;
|
|
24
34
|
/**
|
|
25
35
|
* The ID of the custom message
|
|
26
36
|
*/
|
|
@@ -49,6 +59,7 @@ export const CustomMessageResponse$inboundSchema: z.ZodType<
|
|
|
49
59
|
name: z.string(),
|
|
50
60
|
text: z.string(),
|
|
51
61
|
label: z.nullable(z.string()).optional(),
|
|
62
|
+
rules: z.array(DaoCustomMessageRule$inboundSchema).optional(),
|
|
52
63
|
id: z.number().int(),
|
|
53
64
|
updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
54
65
|
agent_count: z.nullable(z.number().int()).optional(),
|
|
@@ -67,6 +78,7 @@ export type CustomMessageResponse$Outbound = {
|
|
|
67
78
|
name: string;
|
|
68
79
|
text: string;
|
|
69
80
|
label?: string | null | undefined;
|
|
81
|
+
rules?: Array<DaoCustomMessageRule$Outbound> | undefined;
|
|
70
82
|
id: number;
|
|
71
83
|
updated_at: string;
|
|
72
84
|
agent_count?: number | null | undefined;
|
|
@@ -83,6 +95,7 @@ export const CustomMessageResponse$outboundSchema: z.ZodType<
|
|
|
83
95
|
name: z.string(),
|
|
84
96
|
text: z.string(),
|
|
85
97
|
label: z.nullable(z.string()).optional(),
|
|
98
|
+
rules: z.array(DaoCustomMessageRule$outboundSchema).optional(),
|
|
86
99
|
id: z.number().int(),
|
|
87
100
|
updatedAt: z.date().transform(v => v.toISOString()),
|
|
88
101
|
agentCount: z.nullable(z.number().int()).optional(),
|
|
@@ -6,6 +6,12 @@ import * as z from "zod";
|
|
|
6
6
|
import { safeParse } from "../../lib/schemas.js";
|
|
7
7
|
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
8
8
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
9
|
+
import {
|
|
10
|
+
DaoCustomMessageRule,
|
|
11
|
+
DaoCustomMessageRule$inboundSchema,
|
|
12
|
+
DaoCustomMessageRule$Outbound,
|
|
13
|
+
DaoCustomMessageRule$outboundSchema,
|
|
14
|
+
} from "./daocustommessagerule.js";
|
|
9
15
|
|
|
10
16
|
export type CustomMessageUpdateRequest = {
|
|
11
17
|
/**
|
|
@@ -20,6 +26,10 @@ export type CustomMessageUpdateRequest = {
|
|
|
20
26
|
* The label of the custom message
|
|
21
27
|
*/
|
|
22
28
|
label?: string | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* Rules for time-specific message variants
|
|
31
|
+
*/
|
|
32
|
+
rules?: Array<DaoCustomMessageRule> | undefined;
|
|
23
33
|
/**
|
|
24
34
|
* The ID of the custom message
|
|
25
35
|
*/
|
|
@@ -36,6 +46,7 @@ export const CustomMessageUpdateRequest$inboundSchema: z.ZodType<
|
|
|
36
46
|
name: z.string(),
|
|
37
47
|
text: z.string(),
|
|
38
48
|
label: z.nullable(z.string()).optional(),
|
|
49
|
+
rules: z.array(DaoCustomMessageRule$inboundSchema).optional(),
|
|
39
50
|
id: z.number().int(),
|
|
40
51
|
type: z.string().default("greeting"),
|
|
41
52
|
});
|
|
@@ -45,6 +56,7 @@ export type CustomMessageUpdateRequest$Outbound = {
|
|
|
45
56
|
name: string;
|
|
46
57
|
text: string;
|
|
47
58
|
label?: string | null | undefined;
|
|
59
|
+
rules?: Array<DaoCustomMessageRule$Outbound> | undefined;
|
|
48
60
|
id: number;
|
|
49
61
|
type: string;
|
|
50
62
|
};
|
|
@@ -58,6 +70,7 @@ export const CustomMessageUpdateRequest$outboundSchema: z.ZodType<
|
|
|
58
70
|
name: z.string(),
|
|
59
71
|
text: z.string(),
|
|
60
72
|
label: z.nullable(z.string()).optional(),
|
|
73
|
+
rules: z.array(DaoCustomMessageRule$outboundSchema).optional(),
|
|
61
74
|
id: z.number().int(),
|
|
62
75
|
type: z.string().default("greeting"),
|
|
63
76
|
});
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import { safeParse } from "../../lib/schemas.js";
|
|
8
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
9
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
10
|
+
import {
|
|
11
|
+
DayOfWeek,
|
|
12
|
+
DayOfWeek$inboundSchema,
|
|
13
|
+
DayOfWeek$outboundSchema,
|
|
14
|
+
} from "./dayofweek.js";
|
|
15
|
+
|
|
16
|
+
export type DaoCustomMessageRule = {
|
|
17
|
+
/**
|
|
18
|
+
* The description of the rule
|
|
19
|
+
*/
|
|
20
|
+
description: string;
|
|
21
|
+
/**
|
|
22
|
+
* The start of the time range for the rule in 24-hour format hh:mm (should be null for "all day" cases)
|
|
23
|
+
*/
|
|
24
|
+
timeRangeStart?: string | null | undefined;
|
|
25
|
+
/**
|
|
26
|
+
* The end of the time range for the rule in 24-hour format hh:mm (should be null for "all day" cases)
|
|
27
|
+
*/
|
|
28
|
+
timeRangeEnd?: string | null | undefined;
|
|
29
|
+
/**
|
|
30
|
+
* The date for the rule in YYYY-MM-DD format
|
|
31
|
+
*/
|
|
32
|
+
date?: string | null | undefined;
|
|
33
|
+
/**
|
|
34
|
+
* The days of the week for the rule
|
|
35
|
+
*/
|
|
36
|
+
daysOfWeek?: Array<DayOfWeek> | null | undefined;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the rule logic should be inverted (i.e. "not")
|
|
39
|
+
*/
|
|
40
|
+
invert: boolean;
|
|
41
|
+
/**
|
|
42
|
+
* Message text associated with the rule
|
|
43
|
+
*/
|
|
44
|
+
text: string;
|
|
45
|
+
};
|
|
46
|
+
|
|
47
|
+
/** @internal */
|
|
48
|
+
export const DaoCustomMessageRule$inboundSchema: z.ZodType<
|
|
49
|
+
DaoCustomMessageRule,
|
|
50
|
+
z.ZodTypeDef,
|
|
51
|
+
unknown
|
|
52
|
+
> = z.object({
|
|
53
|
+
description: z.string(),
|
|
54
|
+
time_range_start: z.nullable(z.string()).optional(),
|
|
55
|
+
time_range_end: z.nullable(z.string()).optional(),
|
|
56
|
+
date: z.nullable(z.string()).optional(),
|
|
57
|
+
days_of_week: z.nullable(z.array(DayOfWeek$inboundSchema)).optional(),
|
|
58
|
+
invert: z.boolean(),
|
|
59
|
+
text: z.string(),
|
|
60
|
+
}).transform((v) => {
|
|
61
|
+
return remap$(v, {
|
|
62
|
+
"time_range_start": "timeRangeStart",
|
|
63
|
+
"time_range_end": "timeRangeEnd",
|
|
64
|
+
"days_of_week": "daysOfWeek",
|
|
65
|
+
});
|
|
66
|
+
});
|
|
67
|
+
|
|
68
|
+
/** @internal */
|
|
69
|
+
export type DaoCustomMessageRule$Outbound = {
|
|
70
|
+
description: string;
|
|
71
|
+
time_range_start?: string | null | undefined;
|
|
72
|
+
time_range_end?: string | null | undefined;
|
|
73
|
+
date?: string | null | undefined;
|
|
74
|
+
days_of_week?: Array<string> | null | undefined;
|
|
75
|
+
invert: boolean;
|
|
76
|
+
text: string;
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
/** @internal */
|
|
80
|
+
export const DaoCustomMessageRule$outboundSchema: z.ZodType<
|
|
81
|
+
DaoCustomMessageRule$Outbound,
|
|
82
|
+
z.ZodTypeDef,
|
|
83
|
+
DaoCustomMessageRule
|
|
84
|
+
> = z.object({
|
|
85
|
+
description: z.string(),
|
|
86
|
+
timeRangeStart: z.nullable(z.string()).optional(),
|
|
87
|
+
timeRangeEnd: z.nullable(z.string()).optional(),
|
|
88
|
+
date: z.nullable(z.string()).optional(),
|
|
89
|
+
daysOfWeek: z.nullable(z.array(DayOfWeek$outboundSchema)).optional(),
|
|
90
|
+
invert: z.boolean(),
|
|
91
|
+
text: z.string(),
|
|
92
|
+
}).transform((v) => {
|
|
93
|
+
return remap$(v, {
|
|
94
|
+
timeRangeStart: "time_range_start",
|
|
95
|
+
timeRangeEnd: "time_range_end",
|
|
96
|
+
daysOfWeek: "days_of_week",
|
|
97
|
+
});
|
|
98
|
+
});
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* @internal
|
|
102
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
103
|
+
*/
|
|
104
|
+
export namespace DaoCustomMessageRule$ {
|
|
105
|
+
/** @deprecated use `DaoCustomMessageRule$inboundSchema` instead. */
|
|
106
|
+
export const inboundSchema = DaoCustomMessageRule$inboundSchema;
|
|
107
|
+
/** @deprecated use `DaoCustomMessageRule$outboundSchema` instead. */
|
|
108
|
+
export const outboundSchema = DaoCustomMessageRule$outboundSchema;
|
|
109
|
+
/** @deprecated use `DaoCustomMessageRule$Outbound` instead. */
|
|
110
|
+
export type Outbound = DaoCustomMessageRule$Outbound;
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export function daoCustomMessageRuleToJSON(
|
|
114
|
+
daoCustomMessageRule: DaoCustomMessageRule,
|
|
115
|
+
): string {
|
|
116
|
+
return JSON.stringify(
|
|
117
|
+
DaoCustomMessageRule$outboundSchema.parse(daoCustomMessageRule),
|
|
118
|
+
);
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export function daoCustomMessageRuleFromJSON(
|
|
122
|
+
jsonString: string,
|
|
123
|
+
): SafeParseResult<DaoCustomMessageRule, SDKValidationError> {
|
|
124
|
+
return safeParse(
|
|
125
|
+
jsonString,
|
|
126
|
+
(x) => DaoCustomMessageRule$inboundSchema.parse(JSON.parse(x)),
|
|
127
|
+
`Failed to parse 'DaoCustomMessageRule' from JSON`,
|
|
128
|
+
);
|
|
129
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
import * as z from "zod";
|
|
6
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
+
|
|
8
|
+
export const DayOfWeek = {
|
|
9
|
+
Mo: "mo",
|
|
10
|
+
Tu: "tu",
|
|
11
|
+
We: "we",
|
|
12
|
+
Th: "th",
|
|
13
|
+
Fr: "fr",
|
|
14
|
+
Sa: "sa",
|
|
15
|
+
Su: "su",
|
|
16
|
+
} as const;
|
|
17
|
+
export type DayOfWeek = ClosedEnum<typeof DayOfWeek>;
|
|
18
|
+
|
|
19
|
+
/** @internal */
|
|
20
|
+
export const DayOfWeek$inboundSchema: z.ZodNativeEnum<typeof DayOfWeek> = z
|
|
21
|
+
.nativeEnum(DayOfWeek);
|
|
22
|
+
|
|
23
|
+
/** @internal */
|
|
24
|
+
export const DayOfWeek$outboundSchema: z.ZodNativeEnum<typeof DayOfWeek> =
|
|
25
|
+
DayOfWeek$inboundSchema;
|
|
26
|
+
|
|
27
|
+
/**
|
|
28
|
+
* @internal
|
|
29
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
30
|
+
*/
|
|
31
|
+
export namespace DayOfWeek$ {
|
|
32
|
+
/** @deprecated use `DayOfWeek$inboundSchema` instead. */
|
|
33
|
+
export const inboundSchema = DayOfWeek$inboundSchema;
|
|
34
|
+
/** @deprecated use `DayOfWeek$outboundSchema` instead. */
|
|
35
|
+
export const outboundSchema = DayOfWeek$outboundSchema;
|
|
36
|
+
}
|
|
@@ -27,6 +27,8 @@ export * from "./custommessagecreaterequest.js";
|
|
|
27
27
|
export * from "./custommessageproperties.js";
|
|
28
28
|
export * from "./custommessageresponse.js";
|
|
29
29
|
export * from "./custommessageupdaterequest.js";
|
|
30
|
+
export * from "./daocustommessagerule.js";
|
|
31
|
+
export * from "./dayofweek.js";
|
|
30
32
|
export * from "./directoryextension.js";
|
|
31
33
|
export * from "./directorymember.js";
|
|
32
34
|
export * from "./directorymembercreate.js";
|