syllable-sdk 0.1.0-alpha.6 → 0.1.0-alpha.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (122) hide show
  1. package/README.md +4 -4
  2. package/docs/sdks/prompts/README.md +1 -1
  3. package/docs/sdks/syllablesdk/README.md +4 -4
  4. package/funcs/promptsDelete.d.ts +3 -0
  5. package/funcs/promptsDelete.d.ts.map +1 -1
  6. package/funcs/promptsDelete.js +3 -0
  7. package/funcs/promptsDelete.js.map +1 -1
  8. package/lib/config.d.ts +3 -3
  9. package/lib/config.js +5 -5
  10. package/models/components/agent.d.ts +2 -0
  11. package/models/components/agent.d.ts.map +1 -1
  12. package/models/components/agent.js +4 -0
  13. package/models/components/agent.js.map +1 -1
  14. package/models/components/agentproperties.d.ts +3 -0
  15. package/models/components/agentproperties.d.ts.map +1 -1
  16. package/models/components/agentproperties.js +1 -0
  17. package/models/components/agentproperties.js.map +1 -1
  18. package/models/components/index.d.ts +1 -0
  19. package/models/components/index.d.ts.map +1 -1
  20. package/models/components/index.js +1 -0
  21. package/models/components/index.js.map +1 -1
  22. package/models/components/orderbydirection.d.ts +28 -0
  23. package/models/components/orderbydirection.d.ts.map +1 -0
  24. package/models/components/orderbydirection.js +50 -0
  25. package/models/components/orderbydirection.js.map +1 -0
  26. package/models/components/prompt.d.ts +5 -0
  27. package/models/components/prompt.d.ts.map +1 -1
  28. package/models/components/prompt.js +2 -0
  29. package/models/components/prompt.js.map +1 -1
  30. package/models/components/promptcreate.d.ts +5 -0
  31. package/models/components/promptcreate.d.ts.map +1 -1
  32. package/models/components/promptcreate.js +2 -0
  33. package/models/components/promptcreate.js.map +1 -1
  34. package/models/components/prompthistory.d.ts +2 -0
  35. package/models/components/prompthistory.d.ts.map +1 -1
  36. package/models/components/prompthistory.js +4 -0
  37. package/models/components/prompthistory.js.map +1 -1
  38. package/models/components/promptproperties.d.ts +6 -0
  39. package/models/components/promptproperties.d.ts.map +1 -1
  40. package/models/components/promptproperties.js +2 -0
  41. package/models/components/promptproperties.js.map +1 -1
  42. package/models/components/session.d.ts +4 -0
  43. package/models/components/session.d.ts.map +1 -1
  44. package/models/components/session.js +8 -0
  45. package/models/components/session.js.map +1 -1
  46. package/models/operations/agentlist.d.ts +4 -79
  47. package/models/operations/agentlist.d.ts.map +1 -1
  48. package/models/operations/agentlist.js +7 -52
  49. package/models/operations/agentlist.js.map +1 -1
  50. package/models/operations/availabletargets.d.ts +4 -58
  51. package/models/operations/availabletargets.d.ts.map +1 -1
  52. package/models/operations/availabletargets.js +7 -45
  53. package/models/operations/availabletargets.js.map +1 -1
  54. package/models/operations/channelslist.d.ts +4 -61
  55. package/models/operations/channelslist.d.ts.map +1 -1
  56. package/models/operations/channelslist.js +7 -45
  57. package/models/operations/channelslist.js.map +1 -1
  58. package/models/operations/channeltargetslist.d.ts +4 -73
  59. package/models/operations/channeltargetslist.d.ts.map +1 -1
  60. package/models/operations/channeltargetslist.js +7 -50
  61. package/models/operations/channeltargetslist.js.map +1 -1
  62. package/models/operations/conversationslist.d.ts +4 -79
  63. package/models/operations/conversationslist.d.ts.map +1 -1
  64. package/models/operations/conversationslist.js +7 -52
  65. package/models/operations/conversationslist.js.map +1 -1
  66. package/models/operations/custommessageslist.d.ts +4 -58
  67. package/models/operations/custommessageslist.d.ts.map +1 -1
  68. package/models/operations/custommessageslist.js +7 -45
  69. package/models/operations/custommessageslist.js.map +1 -1
  70. package/models/operations/eventslist.d.ts +4 -79
  71. package/models/operations/eventslist.d.ts.map +1 -1
  72. package/models/operations/eventslist.js +5 -51
  73. package/models/operations/eventslist.js.map +1 -1
  74. package/models/operations/promptslist.d.ts +4 -67
  75. package/models/operations/promptslist.d.ts.map +1 -1
  76. package/models/operations/promptslist.js +5 -47
  77. package/models/operations/promptslist.js.map +1 -1
  78. package/models/operations/servicelist.d.ts +4 -55
  79. package/models/operations/servicelist.d.ts.map +1 -1
  80. package/models/operations/servicelist.js +5 -43
  81. package/models/operations/servicelist.js.map +1 -1
  82. package/models/operations/sessionlabelslist.d.ts +4 -70
  83. package/models/operations/sessionlabelslist.d.ts.map +1 -1
  84. package/models/operations/sessionlabelslist.js +7 -49
  85. package/models/operations/sessionlabelslist.js.map +1 -1
  86. package/models/operations/sessionslist.d.ts +4 -97
  87. package/models/operations/sessionslist.d.ts.map +1 -1
  88. package/models/operations/sessionslist.js +5 -57
  89. package/models/operations/sessionslist.js.map +1 -1
  90. package/models/operations/toollist.d.ts +4 -64
  91. package/models/operations/toollist.d.ts.map +1 -1
  92. package/models/operations/toollist.js +5 -46
  93. package/models/operations/toollist.js.map +1 -1
  94. package/package.json +1 -1
  95. package/sdk/prompts.d.ts +3 -0
  96. package/sdk/prompts.d.ts.map +1 -1
  97. package/sdk/prompts.js +3 -0
  98. package/sdk/prompts.js.map +1 -1
  99. package/src/funcs/promptsDelete.ts +3 -0
  100. package/src/lib/config.ts +5 -5
  101. package/src/models/components/agent.ts +8 -0
  102. package/src/models/components/agentproperties.ts +1 -0
  103. package/src/models/components/index.ts +1 -0
  104. package/src/models/components/orderbydirection.ts +33 -0
  105. package/src/models/components/prompt.ts +7 -0
  106. package/src/models/components/promptcreate.ts +7 -0
  107. package/src/models/components/prompthistory.ts +6 -0
  108. package/src/models/components/promptproperties.ts +2 -0
  109. package/src/models/components/session.ts +12 -0
  110. package/src/models/operations/agentlist.ts +10 -69
  111. package/src/models/operations/availabletargets.ts +10 -71
  112. package/src/models/operations/channelslist.ts +10 -67
  113. package/src/models/operations/channeltargetslist.ts +10 -77
  114. package/src/models/operations/conversationslist.ts +10 -78
  115. package/src/models/operations/custommessageslist.ts +10 -72
  116. package/src/models/operations/eventslist.ts +8 -78
  117. package/src/models/operations/promptslist.ts +8 -74
  118. package/src/models/operations/servicelist.ts +8 -70
  119. package/src/models/operations/sessionlabelslist.ts +10 -75
  120. package/src/models/operations/sessionslist.ts +8 -84
  121. package/src/models/operations/toollist.ts +8 -71
  122. package/src/sdk/prompts.ts +3 -0
@@ -5,89 +5,22 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import * as components from "../components/index.js";
11
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
11
 
13
- export const SessionLabelsListQueryParamOrderBy = {
14
- Timestamp: "timestamp",
15
- SessionId: "session_id",
16
- Type: "type",
17
- Code: "code",
18
- UserEmail: "user_email",
19
- IssueCategories: "issue_categories",
20
- SessionIdList: "session_id_list",
21
- } as const;
22
- export type SessionLabelsListQueryParamOrderBy = ClosedEnum<
23
- typeof SessionLabelsListQueryParamOrderBy
24
- >;
25
-
26
- export const SessionLabelsListQueryParamOrderByDirection = {
27
- Asc: "asc",
28
- Desc: "desc",
29
- } as const;
30
- export type SessionLabelsListQueryParamOrderByDirection = ClosedEnum<
31
- typeof SessionLabelsListQueryParamOrderByDirection
32
- >;
33
-
34
12
  export type SessionLabelsListRequest = {
35
13
  page?: number | null | undefined;
36
14
  limit?: number | undefined;
37
15
  searchFields?: Array<components.SessionLabelProperties> | undefined;
38
16
  searchFieldValues?: Array<string> | undefined;
39
- orderBy?: SessionLabelsListQueryParamOrderBy | undefined;
40
- orderByDirection?: SessionLabelsListQueryParamOrderByDirection | undefined;
17
+ orderBy?: components.SessionLabelProperties | null | undefined;
18
+ orderByDirection?: components.OrderByDirection | null | undefined;
41
19
  fields?: Array<components.SessionLabelProperties> | null | undefined;
42
20
  startDatetime?: string | null | undefined;
43
21
  endDatetime?: string | null | undefined;
44
22
  };
45
23
 
46
- /** @internal */
47
- export const SessionLabelsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
48
- typeof SessionLabelsListQueryParamOrderBy
49
- > = z.nativeEnum(SessionLabelsListQueryParamOrderBy);
50
-
51
- /** @internal */
52
- export const SessionLabelsListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
53
- typeof SessionLabelsListQueryParamOrderBy
54
- > = SessionLabelsListQueryParamOrderBy$inboundSchema;
55
-
56
- /**
57
- * @internal
58
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
59
- */
60
- export namespace SessionLabelsListQueryParamOrderBy$ {
61
- /** @deprecated use `SessionLabelsListQueryParamOrderBy$inboundSchema` instead. */
62
- export const inboundSchema = SessionLabelsListQueryParamOrderBy$inboundSchema;
63
- /** @deprecated use `SessionLabelsListQueryParamOrderBy$outboundSchema` instead. */
64
- export const outboundSchema =
65
- SessionLabelsListQueryParamOrderBy$outboundSchema;
66
- }
67
-
68
- /** @internal */
69
- export const SessionLabelsListQueryParamOrderByDirection$inboundSchema:
70
- z.ZodNativeEnum<typeof SessionLabelsListQueryParamOrderByDirection> = z
71
- .nativeEnum(SessionLabelsListQueryParamOrderByDirection);
72
-
73
- /** @internal */
74
- export const SessionLabelsListQueryParamOrderByDirection$outboundSchema:
75
- z.ZodNativeEnum<typeof SessionLabelsListQueryParamOrderByDirection> =
76
- SessionLabelsListQueryParamOrderByDirection$inboundSchema;
77
-
78
- /**
79
- * @internal
80
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
81
- */
82
- export namespace SessionLabelsListQueryParamOrderByDirection$ {
83
- /** @deprecated use `SessionLabelsListQueryParamOrderByDirection$inboundSchema` instead. */
84
- export const inboundSchema =
85
- SessionLabelsListQueryParamOrderByDirection$inboundSchema;
86
- /** @deprecated use `SessionLabelsListQueryParamOrderByDirection$outboundSchema` instead. */
87
- export const outboundSchema =
88
- SessionLabelsListQueryParamOrderByDirection$outboundSchema;
89
- }
90
-
91
24
  /** @internal */
92
25
  export const SessionLabelsListRequest$inboundSchema: z.ZodType<
93
26
  SessionLabelsListRequest,
@@ -99,8 +32,9 @@ export const SessionLabelsListRequest$inboundSchema: z.ZodType<
99
32
  search_fields: z.array(components.SessionLabelProperties$inboundSchema)
100
33
  .optional(),
101
34
  search_field_values: z.array(z.string()).optional(),
102
- order_by: SessionLabelsListQueryParamOrderBy$inboundSchema.optional(),
103
- order_by_direction: SessionLabelsListQueryParamOrderByDirection$inboundSchema
35
+ order_by: z.nullable(components.SessionLabelProperties$inboundSchema)
36
+ .optional(),
37
+ order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
104
38
  .optional(),
105
39
  fields: z.nullable(z.array(components.SessionLabelProperties$inboundSchema))
106
40
  .optional(),
@@ -123,8 +57,8 @@ export type SessionLabelsListRequest$Outbound = {
123
57
  limit: number;
124
58
  search_fields?: Array<string> | undefined;
125
59
  search_field_values?: Array<string> | undefined;
126
- order_by?: string | undefined;
127
- order_by_direction?: string | undefined;
60
+ order_by?: string | null | undefined;
61
+ order_by_direction?: string | null | undefined;
128
62
  fields?: Array<string> | null | undefined;
129
63
  start_datetime?: string | null | undefined;
130
64
  end_datetime?: string | null | undefined;
@@ -141,8 +75,9 @@ export const SessionLabelsListRequest$outboundSchema: z.ZodType<
141
75
  searchFields: z.array(components.SessionLabelProperties$outboundSchema)
142
76
  .optional(),
143
77
  searchFieldValues: z.array(z.string()).optional(),
144
- orderBy: SessionLabelsListQueryParamOrderBy$outboundSchema.optional(),
145
- orderByDirection: SessionLabelsListQueryParamOrderByDirection$outboundSchema
78
+ orderBy: z.nullable(components.SessionLabelProperties$outboundSchema)
79
+ .optional(),
80
+ orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
146
81
  .optional(),
147
82
  fields: z.nullable(z.array(components.SessionLabelProperties$outboundSchema))
148
83
  .optional(),
@@ -5,98 +5,22 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import * as components from "../components/index.js";
11
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
11
 
13
- export const SessionsListQueryParamOrderBy = {
14
- Timestamp: "timestamp",
15
- SessionId: "session_id",
16
- ConversationId: "conversation_id",
17
- ChannelManagerService: "channel_manager_service",
18
- ChannelManagerType: "channel_manager_type",
19
- ChannelManagerSid: "channel_manager_sid",
20
- AgentType: "agent_type",
21
- AgentId: "agent_id",
22
- AgentName: "agent_name",
23
- PromptId: "prompt_id",
24
- PromptName: "prompt_name",
25
- Source: "source",
26
- Target: "target",
27
- Duration: "duration",
28
- IsLegacy: "is_legacy",
29
- IsTest: "is_test",
30
- } as const;
31
- export type SessionsListQueryParamOrderBy = ClosedEnum<
32
- typeof SessionsListQueryParamOrderBy
33
- >;
34
-
35
- export const SessionsListQueryParamOrderByDirection = {
36
- Asc: "asc",
37
- Desc: "desc",
38
- } as const;
39
- export type SessionsListQueryParamOrderByDirection = ClosedEnum<
40
- typeof SessionsListQueryParamOrderByDirection
41
- >;
42
-
43
12
  export type SessionsListRequest = {
44
13
  page?: number | null | undefined;
45
14
  limit?: number | undefined;
46
15
  searchFields?: Array<components.SessionProperties> | undefined;
47
16
  searchFieldValues?: Array<string> | undefined;
48
- orderBy?: SessionsListQueryParamOrderBy | undefined;
49
- orderByDirection?: SessionsListQueryParamOrderByDirection | undefined;
17
+ orderBy?: components.SessionProperties | null | undefined;
18
+ orderByDirection?: components.OrderByDirection | null | undefined;
50
19
  fields?: Array<components.SessionProperties> | null | undefined;
51
20
  startDatetime?: string | null | undefined;
52
21
  endDatetime?: string | null | undefined;
53
22
  };
54
23
 
55
- /** @internal */
56
- export const SessionsListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
57
- typeof SessionsListQueryParamOrderBy
58
- > = z.nativeEnum(SessionsListQueryParamOrderBy);
59
-
60
- /** @internal */
61
- export const SessionsListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
62
- typeof SessionsListQueryParamOrderBy
63
- > = SessionsListQueryParamOrderBy$inboundSchema;
64
-
65
- /**
66
- * @internal
67
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
68
- */
69
- export namespace SessionsListQueryParamOrderBy$ {
70
- /** @deprecated use `SessionsListQueryParamOrderBy$inboundSchema` instead. */
71
- export const inboundSchema = SessionsListQueryParamOrderBy$inboundSchema;
72
- /** @deprecated use `SessionsListQueryParamOrderBy$outboundSchema` instead. */
73
- export const outboundSchema = SessionsListQueryParamOrderBy$outboundSchema;
74
- }
75
-
76
- /** @internal */
77
- export const SessionsListQueryParamOrderByDirection$inboundSchema:
78
- z.ZodNativeEnum<typeof SessionsListQueryParamOrderByDirection> = z.nativeEnum(
79
- SessionsListQueryParamOrderByDirection,
80
- );
81
-
82
- /** @internal */
83
- export const SessionsListQueryParamOrderByDirection$outboundSchema:
84
- z.ZodNativeEnum<typeof SessionsListQueryParamOrderByDirection> =
85
- SessionsListQueryParamOrderByDirection$inboundSchema;
86
-
87
- /**
88
- * @internal
89
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
90
- */
91
- export namespace SessionsListQueryParamOrderByDirection$ {
92
- /** @deprecated use `SessionsListQueryParamOrderByDirection$inboundSchema` instead. */
93
- export const inboundSchema =
94
- SessionsListQueryParamOrderByDirection$inboundSchema;
95
- /** @deprecated use `SessionsListQueryParamOrderByDirection$outboundSchema` instead. */
96
- export const outboundSchema =
97
- SessionsListQueryParamOrderByDirection$outboundSchema;
98
- }
99
-
100
24
  /** @internal */
101
25
  export const SessionsListRequest$inboundSchema: z.ZodType<
102
26
  SessionsListRequest,
@@ -107,8 +31,8 @@ export const SessionsListRequest$inboundSchema: z.ZodType<
107
31
  limit: z.number().int().default(25),
108
32
  search_fields: z.array(components.SessionProperties$inboundSchema).optional(),
109
33
  search_field_values: z.array(z.string()).optional(),
110
- order_by: SessionsListQueryParamOrderBy$inboundSchema.optional(),
111
- order_by_direction: SessionsListQueryParamOrderByDirection$inboundSchema
34
+ order_by: z.nullable(components.SessionProperties$inboundSchema).optional(),
35
+ order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
112
36
  .optional(),
113
37
  fields: z.nullable(z.array(components.SessionProperties$inboundSchema))
114
38
  .optional(),
@@ -131,8 +55,8 @@ export type SessionsListRequest$Outbound = {
131
55
  limit: number;
132
56
  search_fields?: Array<string> | undefined;
133
57
  search_field_values?: Array<string> | undefined;
134
- order_by?: string | undefined;
135
- order_by_direction?: string | undefined;
58
+ order_by?: string | null | undefined;
59
+ order_by_direction?: string | null | undefined;
136
60
  fields?: Array<string> | null | undefined;
137
61
  start_datetime?: string | null | undefined;
138
62
  end_datetime?: string | null | undefined;
@@ -148,8 +72,8 @@ export const SessionsListRequest$outboundSchema: z.ZodType<
148
72
  limit: z.number().int().default(25),
149
73
  searchFields: z.array(components.SessionProperties$outboundSchema).optional(),
150
74
  searchFieldValues: z.array(z.string()).optional(),
151
- orderBy: SessionsListQueryParamOrderBy$outboundSchema.optional(),
152
- orderByDirection: SessionsListQueryParamOrderByDirection$outboundSchema
75
+ orderBy: z.nullable(components.SessionProperties$outboundSchema).optional(),
76
+ orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
153
77
  .optional(),
154
78
  fields: z.nullable(z.array(components.SessionProperties$outboundSchema))
155
79
  .optional(),
@@ -5,85 +5,22 @@
5
5
  import * as z from "zod";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
8
  import { Result as SafeParseResult } from "../../types/fp.js";
10
9
  import * as components from "../components/index.js";
11
10
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
11
 
13
- export const ToolListQueryParamOrderBy = {
14
- Id: "id",
15
- Name: "name",
16
- ServiceName: "service_name",
17
- Definition: "definition",
18
- ServiceId: "service_id",
19
- } as const;
20
- export type ToolListQueryParamOrderBy = ClosedEnum<
21
- typeof ToolListQueryParamOrderBy
22
- >;
23
-
24
- export const ToolListQueryParamOrderByDirection = {
25
- Asc: "asc",
26
- Desc: "desc",
27
- } as const;
28
- export type ToolListQueryParamOrderByDirection = ClosedEnum<
29
- typeof ToolListQueryParamOrderByDirection
30
- >;
31
-
32
12
  export type ToolListRequest = {
33
13
  page?: number | null | undefined;
34
14
  limit?: number | undefined;
35
15
  searchFields?: Array<components.ToolProperties> | undefined;
36
16
  searchFieldValues?: Array<string> | undefined;
37
- orderBy?: ToolListQueryParamOrderBy | undefined;
38
- orderByDirection?: ToolListQueryParamOrderByDirection | undefined;
17
+ orderBy?: components.ToolProperties | null | undefined;
18
+ orderByDirection?: components.OrderByDirection | null | undefined;
39
19
  fields?: Array<components.ToolProperties> | null | undefined;
40
20
  startDatetime?: string | null | undefined;
41
21
  endDatetime?: string | null | undefined;
42
22
  };
43
23
 
44
- /** @internal */
45
- export const ToolListQueryParamOrderBy$inboundSchema: z.ZodNativeEnum<
46
- typeof ToolListQueryParamOrderBy
47
- > = z.nativeEnum(ToolListQueryParamOrderBy);
48
-
49
- /** @internal */
50
- export const ToolListQueryParamOrderBy$outboundSchema: z.ZodNativeEnum<
51
- typeof ToolListQueryParamOrderBy
52
- > = ToolListQueryParamOrderBy$inboundSchema;
53
-
54
- /**
55
- * @internal
56
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
57
- */
58
- export namespace ToolListQueryParamOrderBy$ {
59
- /** @deprecated use `ToolListQueryParamOrderBy$inboundSchema` instead. */
60
- export const inboundSchema = ToolListQueryParamOrderBy$inboundSchema;
61
- /** @deprecated use `ToolListQueryParamOrderBy$outboundSchema` instead. */
62
- export const outboundSchema = ToolListQueryParamOrderBy$outboundSchema;
63
- }
64
-
65
- /** @internal */
66
- export const ToolListQueryParamOrderByDirection$inboundSchema: z.ZodNativeEnum<
67
- typeof ToolListQueryParamOrderByDirection
68
- > = z.nativeEnum(ToolListQueryParamOrderByDirection);
69
-
70
- /** @internal */
71
- export const ToolListQueryParamOrderByDirection$outboundSchema: z.ZodNativeEnum<
72
- typeof ToolListQueryParamOrderByDirection
73
- > = ToolListQueryParamOrderByDirection$inboundSchema;
74
-
75
- /**
76
- * @internal
77
- * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
78
- */
79
- export namespace ToolListQueryParamOrderByDirection$ {
80
- /** @deprecated use `ToolListQueryParamOrderByDirection$inboundSchema` instead. */
81
- export const inboundSchema = ToolListQueryParamOrderByDirection$inboundSchema;
82
- /** @deprecated use `ToolListQueryParamOrderByDirection$outboundSchema` instead. */
83
- export const outboundSchema =
84
- ToolListQueryParamOrderByDirection$outboundSchema;
85
- }
86
-
87
24
  /** @internal */
88
25
  export const ToolListRequest$inboundSchema: z.ZodType<
89
26
  ToolListRequest,
@@ -94,8 +31,8 @@ export const ToolListRequest$inboundSchema: z.ZodType<
94
31
  limit: z.number().int().default(25),
95
32
  search_fields: z.array(components.ToolProperties$inboundSchema).optional(),
96
33
  search_field_values: z.array(z.string()).optional(),
97
- order_by: ToolListQueryParamOrderBy$inboundSchema.optional(),
98
- order_by_direction: ToolListQueryParamOrderByDirection$inboundSchema
34
+ order_by: z.nullable(components.ToolProperties$inboundSchema).optional(),
35
+ order_by_direction: z.nullable(components.OrderByDirection$inboundSchema)
99
36
  .optional(),
100
37
  fields: z.nullable(z.array(components.ToolProperties$inboundSchema))
101
38
  .optional(),
@@ -118,8 +55,8 @@ export type ToolListRequest$Outbound = {
118
55
  limit: number;
119
56
  search_fields?: Array<string> | undefined;
120
57
  search_field_values?: Array<string> | undefined;
121
- order_by?: string | undefined;
122
- order_by_direction?: string | undefined;
58
+ order_by?: string | null | undefined;
59
+ order_by_direction?: string | null | undefined;
123
60
  fields?: Array<string> | null | undefined;
124
61
  start_datetime?: string | null | undefined;
125
62
  end_datetime?: string | null | undefined;
@@ -135,8 +72,8 @@ export const ToolListRequest$outboundSchema: z.ZodType<
135
72
  limit: z.number().int().default(25),
136
73
  searchFields: z.array(components.ToolProperties$outboundSchema).optional(),
137
74
  searchFieldValues: z.array(z.string()).optional(),
138
- orderBy: ToolListQueryParamOrderBy$outboundSchema.optional(),
139
- orderByDirection: ToolListQueryParamOrderByDirection$outboundSchema
75
+ orderBy: z.nullable(components.ToolProperties$outboundSchema).optional(),
76
+ orderByDirection: z.nullable(components.OrderByDirection$outboundSchema)
140
77
  .optional(),
141
78
  fields: z.nullable(z.array(components.ToolProperties$outboundSchema))
142
79
  .optional(),
@@ -84,6 +84,9 @@ export class Prompts extends ClientSDK {
84
84
 
85
85
  /**
86
86
  * Delete Prompt
87
+ *
88
+ * @remarks
89
+ * Delete a prompt
87
90
  */
88
91
  async delete(
89
92
  request: operations.PromptsDeleteRequest,