@unified-api/typescript-sdk 2.73.9 → 2.73.10

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 (48) hide show
  1. package/README.md +3 -3
  2. package/bin/mcp-server.js +47 -12
  3. package/bin/mcp-server.js.map +10 -10
  4. package/docs/sdks/auth/README.md +1 -1
  5. package/docs/sdks/connection/README.md +1 -1
  6. package/docs/sdks/integration/README.md +1 -1
  7. package/docs/sdks/unified/README.md +2 -2
  8. package/examples/package-lock.json +1 -1
  9. package/funcs/unifiedCreateUnifiedConnection.d.ts +1 -1
  10. package/funcs/unifiedCreateUnifiedConnection.js +1 -1
  11. package/funcs/unifiedGetUnifiedIntegrationAuth.d.ts +1 -1
  12. package/funcs/unifiedGetUnifiedIntegrationAuth.js +1 -1
  13. package/jsr.json +1 -1
  14. package/lib/config.d.ts +2 -2
  15. package/lib/config.js +2 -2
  16. package/lib/config.js.map +1 -1
  17. package/mcp-server/mcp-server.js +1 -1
  18. package/mcp-server/mcp-server.js.map +1 -1
  19. package/mcp-server/server.js +1 -1
  20. package/mcp-server/server.js.map +1 -1
  21. package/mcp-server/tools/unifiedCreateUnifiedConnection.js +1 -1
  22. package/mcp-server/tools/unifiedCreateUnifiedConnection.js.map +1 -1
  23. package/mcp-server/tools/unifiedGetUnifiedIntegrationAuth.js +1 -1
  24. package/package.json +1 -1
  25. package/sdk/auth.d.ts +1 -1
  26. package/sdk/auth.js +1 -1
  27. package/sdk/connection.d.ts +1 -1
  28. package/sdk/connection.js +1 -1
  29. package/sdk/integration.d.ts +1 -1
  30. package/sdk/integration.js +1 -1
  31. package/sdk/models/shared/calendareventrecurrence.d.ts +38 -0
  32. package/sdk/models/shared/calendareventrecurrence.d.ts.map +1 -1
  33. package/sdk/models/shared/calendareventrecurrence.js +46 -1
  34. package/sdk/models/shared/calendareventrecurrence.js.map +1 -1
  35. package/sdk/unified.d.ts +2 -2
  36. package/sdk/unified.js +2 -2
  37. package/src/funcs/unifiedCreateUnifiedConnection.ts +1 -1
  38. package/src/funcs/unifiedGetUnifiedIntegrationAuth.ts +1 -1
  39. package/src/lib/config.ts +2 -2
  40. package/src/mcp-server/mcp-server.ts +1 -1
  41. package/src/mcp-server/server.ts +1 -1
  42. package/src/mcp-server/tools/unifiedCreateUnifiedConnection.ts +1 -1
  43. package/src/mcp-server/tools/unifiedGetUnifiedIntegrationAuth.ts +1 -1
  44. package/src/sdk/auth.ts +1 -1
  45. package/src/sdk/connection.ts +1 -1
  46. package/src/sdk/integration.ts +1 -1
  47. package/src/sdk/models/shared/calendareventrecurrence.ts +71 -0
  48. package/src/sdk/unified.ts +2 -2
@@ -28,7 +28,7 @@ import { Result } from "../sdk/types/fp.js";
28
28
  * Create connection
29
29
  *
30
30
  * @remarks
31
- * Used only to import existing customer credentials; use "Create connection indirectly" instead
31
+ * Used only to import existing customer credentials; use "Authorize new connection" instead
32
32
  */
33
33
  export function unifiedCreateUnifiedConnection(
34
34
  client: UnifiedToCore,
@@ -26,7 +26,7 @@ import { APICall, APIPromise } from "../sdk/types/async.js";
26
26
  import { Result } from "../sdk/types/fp.js";
27
27
 
28
28
  /**
29
- * Create connection indirectly
29
+ * Authorize new connection
30
30
  *
31
31
  * @remarks
32
32
  * Returns an authorization URL for the specified integration. Once a successful authorization occurs, a new connection is created.
package/src/lib/config.ts CHANGED
@@ -73,8 +73,8 @@ export function serverURLFromOptions(options: SDKOptions): URL | null {
73
73
  export const SDK_METADATA = {
74
74
  language: "typescript",
75
75
  openapiDocVersion: "1.0",
76
- sdkVersion: "2.73.9",
76
+ sdkVersion: "2.73.10",
77
77
  genVersion: "2.657.1",
78
78
  userAgent:
79
- "speakeasy-sdk/typescript 2.73.9 2.657.1 1.0 @unified-api/typescript-sdk",
79
+ "speakeasy-sdk/typescript 2.73.10 2.657.1 1.0 @unified-api/typescript-sdk",
80
80
  } as const;
@@ -19,7 +19,7 @@ const routes = buildRouteMap({
19
19
  export const app = buildApplication(routes, {
20
20
  name: "mcp",
21
21
  versionInfo: {
22
- currentVersion: "2.73.9",
22
+ currentVersion: "2.73.10",
23
23
  },
24
24
  });
25
25
 
@@ -502,7 +502,7 @@ export function createMCPServer(deps: {
502
502
  }) {
503
503
  const server = new McpServer({
504
504
  name: "UnifiedTo",
505
- version: "2.73.9",
505
+ version: "2.73.10",
506
506
  });
507
507
 
508
508
  const client = new UnifiedToCore({
@@ -15,7 +15,7 @@ export const tool$unifiedCreateUnifiedConnection: ToolDefinition<typeof args> =
15
15
  name: "unified-create-unified-connection",
16
16
  description: `Create connection
17
17
 
18
- Used only to import existing customer credentials; use "Create connection indirectly" instead`,
18
+ Used only to import existing customer credentials; use "Authorize new connection" instead`,
19
19
  args,
20
20
  tool: async (client, args, ctx) => {
21
21
  const [result, apiCall] = await unifiedCreateUnifiedConnection(
@@ -14,7 +14,7 @@ export const tool$unifiedGetUnifiedIntegrationAuth: ToolDefinition<
14
14
  typeof args
15
15
  > = {
16
16
  name: "unified-get-unified-integration-auth",
17
- description: `Create connection indirectly
17
+ description: `Authorize new connection
18
18
 
19
19
  Returns an authorization URL for the specified integration. Once a successful authorization occurs, a new connection is created.`,
20
20
  args,
package/src/sdk/auth.ts CHANGED
@@ -10,7 +10,7 @@ import { unwrapAsync } from "./types/fp.js";
10
10
 
11
11
  export class Auth extends ClientSDK {
12
12
  /**
13
- * Create connection indirectly
13
+ * Authorize new connection
14
14
  *
15
15
  * @remarks
16
16
  * Returns an authorization URL for the specified integration. Once a successful authorization occurs, a new connection is created.
@@ -18,7 +18,7 @@ export class Connection extends ClientSDK {
18
18
  * Create connection
19
19
  *
20
20
  * @remarks
21
- * Used only to import existing customer credentials; use "Create connection indirectly" instead
21
+ * Used only to import existing customer credentials; use "Authorize new connection" instead
22
22
  */
23
23
  async createUnifiedConnection(
24
24
  request: shared.Connection,
@@ -12,7 +12,7 @@ import { unwrapAsync } from "./types/fp.js";
12
12
 
13
13
  export class Integration extends ClientSDK {
14
14
  /**
15
- * Create connection indirectly
15
+ * Authorize new connection
16
16
  *
17
17
  * @remarks
18
18
  * Returns an authorization URL for the specified integration. Once a successful authorization occurs, a new connection is created.
@@ -28,6 +28,17 @@ export type CalendarEventRecurrenceFrequency = OpenEnum<
28
28
  typeof CalendarEventRecurrenceFrequency
29
29
  >;
30
30
 
31
+ export const WeekStart = {
32
+ Su: "SU",
33
+ Mo: "MO",
34
+ Tu: "TU",
35
+ We: "WE",
36
+ Th: "TH",
37
+ Fr: "FR",
38
+ Sa: "SA",
39
+ } as const;
40
+ export type WeekStart = OpenEnum<typeof WeekStart>;
41
+
31
42
  export type CalendarEventRecurrence = {
32
43
  count?: number | undefined;
33
44
  endAt?: Date | undefined;
@@ -49,6 +60,16 @@ export type CalendarEventRecurrence = {
49
60
  * months of the year to repeat on, defaults to undefined (every month), only used if frequency is YEARLY, January is 1
50
61
  */
51
62
  onMonths?: Array<number> | undefined;
63
+ /**
64
+ * week ordinals for BYDAY (e.g., -1 for last, -2 for second-to-last, 1 for first, 2 for second), only used with on_days. 0 is used for days without week ordinals.
65
+ */
66
+ onWeeks?: Array<number> | undefined;
67
+ /**
68
+ * days of the year to repeat on, defaults to undefined (every day), only used if frequency is YEARLY
69
+ */
70
+ onYearDays?: Array<number> | undefined;
71
+ timezone?: string | undefined;
72
+ weekStart?: WeekStart | undefined;
52
73
  };
53
74
 
54
75
  /** @internal */
@@ -83,6 +104,38 @@ export namespace CalendarEventRecurrenceFrequency$ {
83
104
  export const outboundSchema = CalendarEventRecurrenceFrequency$outboundSchema;
84
105
  }
85
106
 
107
+ /** @internal */
108
+ export const WeekStart$inboundSchema: z.ZodType<
109
+ WeekStart,
110
+ z.ZodTypeDef,
111
+ unknown
112
+ > = z
113
+ .union([
114
+ z.nativeEnum(WeekStart),
115
+ z.string().transform(catchUnrecognizedEnum),
116
+ ]);
117
+
118
+ /** @internal */
119
+ export const WeekStart$outboundSchema: z.ZodType<
120
+ WeekStart,
121
+ z.ZodTypeDef,
122
+ WeekStart
123
+ > = z.union([
124
+ z.nativeEnum(WeekStart),
125
+ z.string().and(z.custom<Unrecognized<string>>()),
126
+ ]);
127
+
128
+ /**
129
+ * @internal
130
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
131
+ */
132
+ export namespace WeekStart$ {
133
+ /** @deprecated use `WeekStart$inboundSchema` instead. */
134
+ export const inboundSchema = WeekStart$inboundSchema;
135
+ /** @deprecated use `WeekStart$outboundSchema` instead. */
136
+ export const outboundSchema = WeekStart$outboundSchema;
137
+ }
138
+
86
139
  /** @internal */
87
140
  export const CalendarEventRecurrence$inboundSchema: z.ZodType<
88
141
  CalendarEventRecurrence,
@@ -99,6 +152,10 @@ export const CalendarEventRecurrence$inboundSchema: z.ZodType<
99
152
  .optional(),
100
153
  on_month_days: z.array(z.number()).optional(),
101
154
  on_months: z.array(z.number()).optional(),
155
+ on_weeks: z.array(z.number()).optional(),
156
+ on_year_days: z.array(z.number()).optional(),
157
+ timezone: z.string().optional(),
158
+ week_start: WeekStart$inboundSchema.optional(),
102
159
  }).transform((v) => {
103
160
  return remap$(v, {
104
161
  "end_at": "endAt",
@@ -106,6 +163,9 @@ export const CalendarEventRecurrence$inboundSchema: z.ZodType<
106
163
  "on_days": "onDays",
107
164
  "on_month_days": "onMonthDays",
108
165
  "on_months": "onMonths",
166
+ "on_weeks": "onWeeks",
167
+ "on_year_days": "onYearDays",
168
+ "week_start": "weekStart",
109
169
  });
110
170
  });
111
171
 
@@ -119,6 +179,10 @@ export type CalendarEventRecurrence$Outbound = {
119
179
  on_days?: Array<string> | undefined;
120
180
  on_month_days?: Array<number> | undefined;
121
181
  on_months?: Array<number> | undefined;
182
+ on_weeks?: Array<number> | undefined;
183
+ on_year_days?: Array<number> | undefined;
184
+ timezone?: string | undefined;
185
+ week_start?: string | undefined;
122
186
  };
123
187
 
124
188
  /** @internal */
@@ -136,6 +200,10 @@ export const CalendarEventRecurrence$outboundSchema: z.ZodType<
136
200
  .optional(),
137
201
  onMonthDays: z.array(z.number()).optional(),
138
202
  onMonths: z.array(z.number()).optional(),
203
+ onWeeks: z.array(z.number()).optional(),
204
+ onYearDays: z.array(z.number()).optional(),
205
+ timezone: z.string().optional(),
206
+ weekStart: WeekStart$outboundSchema.optional(),
139
207
  }).transform((v) => {
140
208
  return remap$(v, {
141
209
  endAt: "end_at",
@@ -143,6 +211,9 @@ export const CalendarEventRecurrence$outboundSchema: z.ZodType<
143
211
  onDays: "on_days",
144
212
  onMonthDays: "on_month_days",
145
213
  onMonths: "on_months",
214
+ onWeeks: "on_weeks",
215
+ onYearDays: "on_year_days",
216
+ weekStart: "week_start",
146
217
  });
147
218
  });
148
219
 
@@ -32,7 +32,7 @@ export class Unified extends ClientSDK {
32
32
  * Create connection
33
33
  *
34
34
  * @remarks
35
- * Used only to import existing customer credentials; use "Create connection indirectly" instead
35
+ * Used only to import existing customer credentials; use "Authorize new connection" instead
36
36
  */
37
37
  async createUnifiedConnection(
38
38
  request: shared.Connection,
@@ -91,7 +91,7 @@ export class Unified extends ClientSDK {
91
91
  }
92
92
 
93
93
  /**
94
- * Create connection indirectly
94
+ * Authorize new connection
95
95
  *
96
96
  * @remarks
97
97
  * Returns an authorization URL for the specified integration. Once a successful authorization occurs, a new connection is created.