@l7mp/tivadar-ai-api-sdk 0.1.4 → 0.1.6

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 (71) hide show
  1. package/dist/api-client.d.ts +23 -7
  2. package/dist/api-client.js +35 -6
  3. package/dist/apis/CalendarApi.d.ts +64 -48
  4. package/dist/apis/CalendarApi.js +152 -87
  5. package/dist/apis/CallsApi.d.ts +92 -0
  6. package/dist/apis/CallsApi.js +256 -0
  7. package/dist/apis/index.d.ts +1 -0
  8. package/dist/apis/index.js +1 -0
  9. package/dist/esm/api-client.d.ts +23 -7
  10. package/dist/esm/api-client.js +35 -6
  11. package/dist/esm/apis/CalendarApi.d.ts +64 -48
  12. package/dist/esm/apis/CalendarApi.js +153 -88
  13. package/dist/esm/apis/CallsApi.d.ts +92 -0
  14. package/dist/esm/apis/CallsApi.js +252 -0
  15. package/dist/esm/apis/index.d.ts +1 -0
  16. package/dist/esm/apis/index.js +1 -0
  17. package/dist/esm/models/Calendar.d.ts +6 -0
  18. package/dist/esm/models/Calendar.js +2 -0
  19. package/dist/esm/models/CalendarCreate.d.ts +32 -0
  20. package/dist/esm/models/CalendarCreate.js +43 -0
  21. package/dist/esm/models/CalendarEventCreate.d.ts +0 -6
  22. package/dist/esm/models/CalendarEventCreate.js +0 -4
  23. package/dist/esm/models/CalendarEventListResponse.d.ts +33 -0
  24. package/dist/esm/models/CalendarEventListResponse.js +44 -0
  25. package/dist/esm/models/CalendarEventUpdate.d.ts +0 -6
  26. package/dist/esm/models/CalendarEventUpdate.js +0 -2
  27. package/dist/esm/models/CalendarUpdate.d.ts +32 -0
  28. package/dist/esm/models/CalendarUpdate.js +41 -0
  29. package/dist/esm/models/Call.d.ts +64 -0
  30. package/dist/esm/models/Call.js +55 -0
  31. package/dist/esm/models/CallCreate.d.ts +52 -0
  32. package/dist/esm/models/CallCreate.js +47 -0
  33. package/dist/esm/models/CallUpdate.d.ts +52 -0
  34. package/dist/esm/models/CallUpdate.js +47 -0
  35. package/dist/esm/models/index.d.ts +6 -2
  36. package/dist/esm/models/index.js +6 -2
  37. package/dist/models/Calendar.d.ts +6 -0
  38. package/dist/models/Calendar.js +2 -0
  39. package/dist/models/CalendarCreate.d.ts +32 -0
  40. package/dist/models/CalendarCreate.js +50 -0
  41. package/dist/models/CalendarEventCreate.d.ts +0 -6
  42. package/dist/models/CalendarEventCreate.js +0 -4
  43. package/dist/models/CalendarEventListResponse.d.ts +33 -0
  44. package/dist/models/CalendarEventListResponse.js +51 -0
  45. package/dist/models/CalendarEventUpdate.d.ts +0 -6
  46. package/dist/models/CalendarEventUpdate.js +0 -2
  47. package/dist/models/CalendarUpdate.d.ts +32 -0
  48. package/dist/models/CalendarUpdate.js +48 -0
  49. package/dist/models/Call.d.ts +64 -0
  50. package/dist/models/Call.js +62 -0
  51. package/dist/models/CallCreate.d.ts +52 -0
  52. package/dist/models/CallCreate.js +54 -0
  53. package/dist/models/CallUpdate.d.ts +52 -0
  54. package/dist/models/CallUpdate.js +54 -0
  55. package/dist/models/index.d.ts +6 -2
  56. package/dist/models/index.js +6 -2
  57. package/package.json +2 -3
  58. package/src/api-client.ts +52 -12
  59. package/src/apis/CalendarApi.ts +227 -107
  60. package/src/apis/CallsApi.ts +352 -0
  61. package/src/apis/index.ts +1 -0
  62. package/src/models/Calendar.ts +8 -0
  63. package/src/models/CalendarCreate.ts +66 -0
  64. package/src/models/CalendarEventCreate.ts +0 -9
  65. package/src/models/CalendarEventListResponse.ts +74 -0
  66. package/src/models/CalendarEventUpdate.ts +0 -8
  67. package/src/models/CalendarUpdate.ts +65 -0
  68. package/src/models/Call.ts +107 -0
  69. package/src/models/CallCreate.ts +89 -0
  70. package/src/models/CallUpdate.ts +89 -0
  71. package/src/models/index.ts +6 -2
@@ -1,3 +1,4 @@
1
+ import { CallsApi, type OrganizationsOrganizationIdCallsGetSandboxEnum } from "./apis/CallsApi";
1
2
  import { CalendarApi } from "./apis/CalendarApi";
2
3
  import { ChatAgentsApi } from "./apis/ChatAgentsApi";
3
4
  import { HistoryApi } from "./apis/HistoryApi";
@@ -14,7 +15,7 @@ import { STTProvidersApi } from "./apis/STTProvidersApi";
14
15
  import { TTSProvidersApi } from "./apis/TTSProvidersApi";
15
16
  import { SubscriptionApi } from "./apis/SubscriptionApi";
16
17
  import { VoiceAgentsApi } from "./apis/VoiceAgentsApi";
17
- import type { VoiceAgentCreate, VoiceAgentUpdate, ChatAgentCreate, ChatAgentUpdate, CalendarEventCreate, CalendarEventUpdate, InvitationAccept, InvitationCreate, RagConfigCreate, SipTrunkCreate, DispatchRuleCreate, OrganizationCreate, CreateCheckoutSessionRequest, CancelSubscriptionRequest, UpdatePlanRequest, PauseSubscriptionRequest, BillingPortalRequest } from "./models";
18
+ import type { CallCreate, CallUpdate, VoiceAgentCreate, VoiceAgentUpdate, ChatAgentCreate, ChatAgentUpdate, Calendar, CalendarCreate, CalendarUpdate, CalendarEventCreate, CalendarEventUpdate, InvitationAccept, InvitationCreate, RagConfigCreate, SipTrunkCreate, DispatchRuleCreate, OrganizationCreate, CreateCheckoutSessionRequest, CancelSubscriptionRequest, UpdatePlanRequest, PauseSubscriptionRequest, BillingPortalRequest } from "./models";
18
19
  export interface ApiClientConfig {
19
20
  baseUrl: string;
20
21
  options?: {
@@ -22,6 +23,13 @@ export interface ApiClientConfig {
22
23
  };
23
24
  }
24
25
  export declare class Api {
26
+ readonly calls: {
27
+ list: (organizationId: string, voiceAgentId?: string, sandbox?: OrganizationsOrganizationIdCallsGetSandboxEnum, options?: RequestInit) => ReturnType<CallsApi["organizationsOrganizationIdCallsGet"]>;
28
+ get: (organizationId: string, callId: string, options?: RequestInit) => ReturnType<CallsApi["organizationsOrganizationIdCallsCallIdGet"]>;
29
+ create: (organizationId: string, callCreate: CallCreate, options?: RequestInit) => ReturnType<CallsApi["organizationsOrganizationIdCallsPost"]>;
30
+ update: (organizationId: string, callId: string, callUpdate: CallUpdate, options?: RequestInit) => ReturnType<CallsApi["organizationsOrganizationIdCallsCallIdPut"]>;
31
+ delete: (organizationId: string, callId: string, options?: RequestInit) => ReturnType<CallsApi["organizationsOrganizationIdCallsCallIdDelete"]>;
32
+ };
25
33
  readonly voiceAgents: {
26
34
  list: (organizationId: string, options?: RequestInit) => ReturnType<VoiceAgentsApi["organizationsOrganizationIdVoiceAgentsGet"]>;
27
35
  listBasic: (organizationId: string, options?: RequestInit) => ReturnType<VoiceAgentsApi["organizationsOrganizationIdVoiceAgentsBasicGet"]>;
@@ -38,12 +46,19 @@ export declare class Api {
38
46
  delete: (organizationId: string, chatAgentId: string, options?: RequestInit) => ReturnType<ChatAgentsApi["organizationsOrganizationIdChatAgentsChatAgentIdDelete"]>;
39
47
  };
40
48
  readonly calendar: {
41
- listCalendars: (organizationId: string, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdCalendarsGet"]>;
42
- listEvents: (organizationId: string, start: Date, end: Date, calendarIds?: string, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdEventsGet"]>;
43
- getEvent: (organizationId: string, eventId: string, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdEventsEventIdGet"]>;
44
- createEvent: (organizationId: string, calendarEventCreate: CalendarEventCreate, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdEventsPost"]>;
45
- updateEvent: (organizationId: string, eventId: string, calendarEventUpdate: CalendarEventUpdate, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdEventsEventIdPut"]>;
46
- deleteEvent: (organizationId: string, eventId: string, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdEventsEventIdDelete"]>;
49
+ list: (organizationId: string, voiceAgentId?: string, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdCalendarsGet"]>;
50
+ get: (organizationId: string, calendarId: string, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdCalendarsCalendarIdGet"]>;
51
+ getByVoiceAgent: (organizationId: string, voiceAgentId: string, options?: RequestInit) => Promise<Calendar | null>;
52
+ create: (organizationId: string, calendarCreate: CalendarCreate, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdCalendarsPost"]>;
53
+ update: (organizationId: string, calendarId: string, calendarUpdate: CalendarUpdate, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdCalendarsCalendarIdPut"]>;
54
+ delete: (organizationId: string, calendarId: string, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdCalendarsCalendarIdDelete"]>;
55
+ events: {
56
+ list: (organizationId: string, calendarId: string, start: Date, end: Date, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdCalendarsCalendarIdEventsGet"]>;
57
+ get: (organizationId: string, calendarId: string, eventId: string, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdCalendarsCalendarIdEventsEventIdGet"]>;
58
+ create: (organizationId: string, calendarId: string, calendarEventCreate: CalendarEventCreate, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdCalendarsCalendarIdEventsPost"]>;
59
+ update: (organizationId: string, calendarId: string, eventId: string, calendarEventUpdate: CalendarEventUpdate, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdCalendarsCalendarIdEventsEventIdPut"]>;
60
+ delete: (organizationId: string, calendarId: string, eventId: string, options?: RequestInit) => ReturnType<CalendarApi["organizationsOrganizationIdCalendarsCalendarIdEventsEventIdDelete"]>;
61
+ };
47
62
  };
48
63
  readonly history: {
49
64
  list: (organizationId: string, options?: RequestInit) => ReturnType<HistoryApi["organizationsOrganizationIdConversationsGet"]>;
@@ -113,6 +128,7 @@ export declare class Api {
113
128
  readonly embeddingProviders: {
114
129
  list: (organizationId: string, options?: RequestInit) => ReturnType<EmbeddingProvidersApi["organizationsOrganizationIdEmbeddingProvidersGet"]>;
115
130
  };
131
+ private readonly callsApi;
116
132
  private readonly voiceAgentsApi;
117
133
  private readonly chatAgentsApi;
118
134
  private readonly calendarApi;
@@ -1,6 +1,16 @@
1
1
  "use strict";
2
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
3
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
4
+ return new (P || (P = Promise))(function (resolve, reject) {
5
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
6
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
7
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
8
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
9
+ });
10
+ };
2
11
  Object.defineProperty(exports, "__esModule", { value: true });
3
12
  exports.Api = void 0;
13
+ const CallsApi_1 = require("./apis/CallsApi");
4
14
  const CalendarApi_1 = require("./apis/CalendarApi");
5
15
  const ChatAgentsApi_1 = require("./apis/ChatAgentsApi");
6
16
  const HistoryApi_1 = require("./apis/HistoryApi");
@@ -36,6 +46,7 @@ class Api {
36
46
  // Pass the headers object by reference so mutations are picked up at request time
37
47
  headers: this._auth.headers,
38
48
  });
49
+ this.callsApi = new CallsApi_1.CallsApi(configuration);
39
50
  this.voiceAgentsApi = new VoiceAgentsApi_1.VoiceAgentsApi(configuration);
40
51
  this.chatAgentsApi = new ChatAgentsApi_1.ChatAgentsApi(configuration);
41
52
  this.calendarApi = new CalendarApi_1.CalendarApi(configuration);
@@ -52,6 +63,13 @@ class Api {
52
63
  this.llmProvidersApi = new LLMProvidersApi_1.LLMProvidersApi(configuration);
53
64
  this.sttProvidersApi = new STTProvidersApi_1.STTProvidersApi(configuration);
54
65
  this.ttsProvidersApi = new TTSProvidersApi_1.TTSProvidersApi(configuration);
66
+ this.calls = {
67
+ list: (organizationId, voiceAgentId, sandbox, options) => this.callsApi.organizationsOrganizationIdCallsGet({ organizationId, voiceAgentId, sandbox }, options),
68
+ get: (organizationId, callId, options) => this.callsApi.organizationsOrganizationIdCallsCallIdGet({ organizationId, callId }, options),
69
+ create: (organizationId, callCreate, options) => this.callsApi.organizationsOrganizationIdCallsPost({ organizationId, callCreate }, options),
70
+ update: (organizationId, callId, callUpdate, options) => this.callsApi.organizationsOrganizationIdCallsCallIdPut({ organizationId, callId, callUpdate }, options),
71
+ delete: (organizationId, callId, options) => this.callsApi.organizationsOrganizationIdCallsCallIdDelete({ organizationId, callId }, options),
72
+ };
55
73
  this.voiceAgents = {
56
74
  list: (organizationId, options) => this.voiceAgentsApi.organizationsOrganizationIdVoiceAgentsGet({ organizationId }, options),
57
75
  listBasic: (organizationId, options) => this.voiceAgentsApi.organizationsOrganizationIdVoiceAgentsBasicGet({ organizationId }, options),
@@ -68,12 +86,23 @@ class Api {
68
86
  delete: (organizationId, chatAgentId, options) => this.chatAgentsApi.organizationsOrganizationIdChatAgentsChatAgentIdDelete({ organizationId, chatAgentId }, options),
69
87
  };
70
88
  this.calendar = {
71
- listCalendars: (organizationId, options) => this.calendarApi.organizationsOrganizationIdCalendarsGet({ organizationId }, options),
72
- listEvents: (organizationId, start, end, calendarIds, options) => this.calendarApi.organizationsOrganizationIdEventsGet({ organizationId, start, end, calendarIds }, options),
73
- getEvent: (organizationId, eventId, options) => this.calendarApi.organizationsOrganizationIdEventsEventIdGet({ organizationId, eventId }, options),
74
- createEvent: (organizationId, calendarEventCreate, options) => this.calendarApi.organizationsOrganizationIdEventsPost({ organizationId, calendarEventCreate }, options),
75
- updateEvent: (organizationId, eventId, calendarEventUpdate, options) => this.calendarApi.organizationsOrganizationIdEventsEventIdPut({ organizationId, eventId, calendarEventUpdate }, options),
76
- deleteEvent: (organizationId, eventId, options) => this.calendarApi.organizationsOrganizationIdEventsEventIdDelete({ organizationId, eventId }, options),
89
+ list: (organizationId, voiceAgentId, options) => this.calendarApi.organizationsOrganizationIdCalendarsGet({ organizationId, voiceAgentId }, options),
90
+ get: (organizationId, calendarId, options) => this.calendarApi.organizationsOrganizationIdCalendarsCalendarIdGet({ organizationId, calendarId }, options),
91
+ getByVoiceAgent: (organizationId, voiceAgentId, options) => __awaiter(this, void 0, void 0, function* () {
92
+ var _a;
93
+ const result = yield this.calendarApi.organizationsOrganizationIdCalendarsGet({ organizationId, voiceAgentId }, options);
94
+ return (_a = result.data[0]) !== null && _a !== void 0 ? _a : null;
95
+ }),
96
+ create: (organizationId, calendarCreate, options) => this.calendarApi.organizationsOrganizationIdCalendarsPost({ organizationId, calendarCreate }, options),
97
+ update: (organizationId, calendarId, calendarUpdate, options) => this.calendarApi.organizationsOrganizationIdCalendarsCalendarIdPut({ organizationId, calendarId, calendarUpdate }, options),
98
+ delete: (organizationId, calendarId, options) => this.calendarApi.organizationsOrganizationIdCalendarsCalendarIdDelete({ organizationId, calendarId }, options),
99
+ events: {
100
+ list: (organizationId, calendarId, start, end, options) => this.calendarApi.organizationsOrganizationIdCalendarsCalendarIdEventsGet({ organizationId, calendarId, start, end }, options),
101
+ get: (organizationId, calendarId, eventId, options) => this.calendarApi.organizationsOrganizationIdCalendarsCalendarIdEventsEventIdGet({ organizationId, calendarId, eventId }, options),
102
+ create: (organizationId, calendarId, calendarEventCreate, options) => this.calendarApi.organizationsOrganizationIdCalendarsCalendarIdEventsPost({ organizationId, calendarId, calendarEventCreate }, options),
103
+ update: (organizationId, calendarId, eventId, calendarEventUpdate, options) => this.calendarApi.organizationsOrganizationIdCalendarsCalendarIdEventsEventIdPut({ organizationId, calendarId, eventId, calendarEventUpdate }, options),
104
+ delete: (organizationId, calendarId, eventId, options) => this.calendarApi.organizationsOrganizationIdCalendarsCalendarIdEventsEventIdDelete({ organizationId, calendarId, eventId }, options),
105
+ },
77
106
  };
78
107
  this.history = {
79
108
  list: (organizationId, options) => this.historyApi.organizationsOrganizationIdConversationsGet({ organizationId }, options),
@@ -10,131 +10,147 @@
10
10
  * Do not edit the class manually.
11
11
  */
12
12
  import * as runtime from '../runtime';
13
- import type { Calendar, CalendarEvent, CalendarEventCreate, CalendarEventResponse, CalendarEventUpdate, CalendarListResponse } from '../models/index';
14
- export interface OrganizationsOrganizationIdCalendarsGetRequest {
13
+ import type { Calendar, CalendarCreate, CalendarEvent, CalendarEventCreate, CalendarEventListResponse, CalendarEventUpdate, CalendarListResponse, CalendarUpdate } from '../models/index';
14
+ export interface OrganizationsOrganizationIdCalendarsCalendarIdDeleteRequest {
15
15
  organizationId: string;
16
+ calendarId: string;
16
17
  }
17
- export interface OrganizationsOrganizationIdEventsEventIdDeleteRequest {
18
+ export interface OrganizationsOrganizationIdCalendarsCalendarIdEventsEventIdDeleteRequest {
18
19
  organizationId: string;
20
+ calendarId: string;
19
21
  eventId: string;
20
22
  }
21
- export interface OrganizationsOrganizationIdEventsEventIdGetRequest {
23
+ export interface OrganizationsOrganizationIdCalendarsCalendarIdEventsEventIdGetRequest {
22
24
  organizationId: string;
25
+ calendarId: string;
23
26
  eventId: string;
24
27
  }
25
- export interface OrganizationsOrganizationIdEventsEventIdPutRequest {
28
+ export interface OrganizationsOrganizationIdCalendarsCalendarIdEventsEventIdPutRequest {
26
29
  organizationId: string;
30
+ calendarId: string;
27
31
  eventId: string;
28
32
  calendarEventUpdate: CalendarEventUpdate;
29
33
  }
30
- export interface OrganizationsOrganizationIdEventsGetRequest {
34
+ export interface OrganizationsOrganizationIdCalendarsCalendarIdEventsGetRequest {
31
35
  organizationId: string;
36
+ calendarId: string;
32
37
  start: Date;
33
38
  end: Date;
34
- calendarIds?: string;
35
39
  }
36
- export interface OrganizationsOrganizationIdEventsPostRequest {
40
+ export interface OrganizationsOrganizationIdCalendarsCalendarIdEventsPostRequest {
37
41
  organizationId: string;
42
+ calendarId: string;
38
43
  calendarEventCreate: CalendarEventCreate;
39
44
  }
40
- export interface OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarDeleteRequest {
45
+ export interface OrganizationsOrganizationIdCalendarsCalendarIdGetRequest {
46
+ organizationId: string;
47
+ calendarId: string;
48
+ }
49
+ export interface OrganizationsOrganizationIdCalendarsCalendarIdPutRequest {
41
50
  organizationId: string;
42
- voiceAgentId: string;
51
+ calendarId: string;
52
+ calendarUpdate: CalendarUpdate;
43
53
  }
44
- export interface OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarGetRequest {
54
+ export interface OrganizationsOrganizationIdCalendarsGetRequest {
45
55
  organizationId: string;
46
- voiceAgentId: string;
56
+ voiceAgentId?: string;
47
57
  }
48
- export interface OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarPostRequest {
58
+ export interface OrganizationsOrganizationIdCalendarsPostRequest {
49
59
  organizationId: string;
50
- voiceAgentId: string;
60
+ calendarCreate: CalendarCreate;
51
61
  }
52
62
  /**
53
63
  *
54
64
  */
55
65
  export declare class CalendarApi extends runtime.BaseAPI {
56
66
  /**
57
- * Returns all calendars with agent information. Each calendar is associated with an agent.
58
- * List all calendars in the organization
67
+ * Deletes the calendar and all associated events.
68
+ * Delete a calendar
59
69
  */
60
- organizationsOrganizationIdCalendarsGetRaw(requestParameters: OrganizationsOrganizationIdCalendarsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalendarListResponse>>;
70
+ organizationsOrganizationIdCalendarsCalendarIdDeleteRaw(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
61
71
  /**
62
- * Returns all calendars with agent information. Each calendar is associated with an agent.
63
- * List all calendars in the organization
72
+ * Deletes the calendar and all associated events.
73
+ * Delete a calendar
64
74
  */
65
- organizationsOrganizationIdCalendarsGet(requestParameters: OrganizationsOrganizationIdCalendarsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarListResponse>;
75
+ organizationsOrganizationIdCalendarsCalendarIdDelete(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
66
76
  /**
67
77
  * Delete a calendar event
68
78
  */
69
- organizationsOrganizationIdEventsEventIdDeleteRaw(requestParameters: OrganizationsOrganizationIdEventsEventIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
79
+ organizationsOrganizationIdCalendarsCalendarIdEventsEventIdDeleteRaw(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdEventsEventIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
70
80
  /**
71
81
  * Delete a calendar event
72
82
  */
73
- organizationsOrganizationIdEventsEventIdDelete(requestParameters: OrganizationsOrganizationIdEventsEventIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
83
+ organizationsOrganizationIdCalendarsCalendarIdEventsEventIdDelete(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdEventsEventIdDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
74
84
  /**
75
85
  * Get a single calendar event
76
86
  */
77
- organizationsOrganizationIdEventsEventIdGetRaw(requestParameters: OrganizationsOrganizationIdEventsEventIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalendarEvent>>;
87
+ organizationsOrganizationIdCalendarsCalendarIdEventsEventIdGetRaw(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdEventsEventIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalendarEvent>>;
78
88
  /**
79
89
  * Get a single calendar event
80
90
  */
81
- organizationsOrganizationIdEventsEventIdGet(requestParameters: OrganizationsOrganizationIdEventsEventIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarEvent>;
91
+ organizationsOrganizationIdCalendarsCalendarIdEventsEventIdGet(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdEventsEventIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarEvent>;
82
92
  /**
83
93
  * Partial update - only provided fields will be modified
84
94
  * Update a calendar event
85
95
  */
86
- organizationsOrganizationIdEventsEventIdPutRaw(requestParameters: OrganizationsOrganizationIdEventsEventIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalendarEvent>>;
96
+ organizationsOrganizationIdCalendarsCalendarIdEventsEventIdPutRaw(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdEventsEventIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalendarEvent>>;
87
97
  /**
88
98
  * Partial update - only provided fields will be modified
89
99
  * Update a calendar event
90
100
  */
91
- organizationsOrganizationIdEventsEventIdPut(requestParameters: OrganizationsOrganizationIdEventsEventIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarEvent>;
101
+ organizationsOrganizationIdCalendarsCalendarIdEventsEventIdPut(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdEventsEventIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarEvent>;
92
102
  /**
93
- * Returns events and their associated calendars. Optionally filter by specific calendar IDs.
94
103
  * List calendar events within a date range
95
104
  */
96
- organizationsOrganizationIdEventsGetRaw(requestParameters: OrganizationsOrganizationIdEventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalendarEventResponse>>;
105
+ organizationsOrganizationIdCalendarsCalendarIdEventsGetRaw(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdEventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalendarEventListResponse>>;
97
106
  /**
98
- * Returns events and their associated calendars. Optionally filter by specific calendar IDs.
99
107
  * List calendar events within a date range
100
108
  */
101
- organizationsOrganizationIdEventsGet(requestParameters: OrganizationsOrganizationIdEventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarEventResponse>;
109
+ organizationsOrganizationIdCalendarsCalendarIdEventsGet(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdEventsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarEventListResponse>;
102
110
  /**
103
111
  * Create a new calendar event
104
112
  */
105
- organizationsOrganizationIdEventsPostRaw(requestParameters: OrganizationsOrganizationIdEventsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalendarEvent>>;
113
+ organizationsOrganizationIdCalendarsCalendarIdEventsPostRaw(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdEventsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalendarEvent>>;
106
114
  /**
107
115
  * Create a new calendar event
108
116
  */
109
- organizationsOrganizationIdEventsPost(requestParameters: OrganizationsOrganizationIdEventsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarEvent>;
117
+ organizationsOrganizationIdCalendarsCalendarIdEventsPost(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdEventsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarEvent>;
110
118
  /**
111
- * Deletes the calendar and all associated events for the specified voice agent.
112
- * Delete calendar for a voice agent
119
+ * Get a calendar by ID
113
120
  */
114
- organizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarDeleteRaw(requestParameters: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
121
+ organizationsOrganizationIdCalendarsCalendarIdGetRaw(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Calendar>>;
115
122
  /**
116
- * Deletes the calendar and all associated events for the specified voice agent.
117
- * Delete calendar for a voice agent
123
+ * Get a calendar by ID
118
124
  */
119
- organizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarDelete(requestParameters: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarDeleteRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
125
+ organizationsOrganizationIdCalendarsCalendarIdGet(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Calendar>;
120
126
  /**
121
- * Returns the calendar associated with a specific voice agent.
122
- * Get calendar for a voice agent
127
+ * Re-assign the calendar to a different voice agent in the same organization.
128
+ * Update a calendar
123
129
  */
124
- organizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarGetRaw(requestParameters: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Calendar>>;
130
+ organizationsOrganizationIdCalendarsCalendarIdPutRaw(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Calendar>>;
125
131
  /**
126
- * Returns the calendar associated with a specific voice agent.
127
- * Get calendar for a voice agent
132
+ * Re-assign the calendar to a different voice agent in the same organization.
133
+ * Update a calendar
128
134
  */
129
- organizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarGet(requestParameters: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Calendar>;
135
+ organizationsOrganizationIdCalendarsCalendarIdPut(requestParameters: OrganizationsOrganizationIdCalendarsCalendarIdPutRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Calendar>;
136
+ /**
137
+ * Returns all calendars with agent information. Optionally filter by voice_agent_id.
138
+ * List all calendars in the organization
139
+ */
140
+ organizationsOrganizationIdCalendarsGetRaw(requestParameters: OrganizationsOrganizationIdCalendarsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<CalendarListResponse>>;
141
+ /**
142
+ * Returns all calendars with agent information. Optionally filter by voice_agent_id.
143
+ * List all calendars in the organization
144
+ */
145
+ organizationsOrganizationIdCalendarsGet(requestParameters: OrganizationsOrganizationIdCalendarsGetRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<CalendarListResponse>;
130
146
  /**
131
- * Creates a new calendar for the specified voice agent. Only one calendar per agent is allowed.
147
+ * Creates a new calendar linked to the specified voice agent. Only one calendar per agent is allowed.
132
148
  * Create a calendar for a voice agent
133
149
  */
134
- organizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarPostRaw(requestParameters: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Calendar>>;
150
+ organizationsOrganizationIdCalendarsPostRaw(requestParameters: OrganizationsOrganizationIdCalendarsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<Calendar>>;
135
151
  /**
136
- * Creates a new calendar for the specified voice agent. Only one calendar per agent is allowed.
152
+ * Creates a new calendar linked to the specified voice agent. Only one calendar per agent is allowed.
137
153
  * Create a calendar for a voice agent
138
154
  */
139
- organizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarPost(requestParameters: OrganizationsOrganizationIdVoiceAgentsVoiceAgentIdCalendarPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Calendar>;
155
+ organizationsOrganizationIdCalendarsPost(requestParameters: OrganizationsOrganizationIdCalendarsPostRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<Calendar>;
140
156
  }