@epilot/sdk 2.4.3 → 2.4.4

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 (136) hide show
  1. package/README.md +1 -0
  2. package/definitions/app-runtime.json +1 -1
  3. package/definitions/app.json +346 -10
  4. package/definitions/calendar-runtime.json +1 -0
  5. package/definitions/calendar.json +675 -0
  6. package/definitions/customer-portal.json +29 -0
  7. package/definitions/notes.json +175 -130
  8. package/definitions/pricing.json +5 -1
  9. package/dist/README-46VYEGGW.js +7 -0
  10. package/dist/README-IVBISSWB.cjs +7 -0
  11. package/dist/{_index-HE4B6FOA.js → _index-5FB6F5YY.js} +3 -0
  12. package/dist/{_index-55HAH24D.cjs → _index-DB2VV4PQ.cjs} +4 -1
  13. package/dist/apis/access-token.cjs +6 -6
  14. package/dist/apis/access-token.js +1 -1
  15. package/dist/apis/address-suggestions.cjs +6 -6
  16. package/dist/apis/address-suggestions.js +1 -1
  17. package/dist/apis/address.cjs +6 -6
  18. package/dist/apis/address.js +1 -1
  19. package/dist/apis/ai-agents.cjs +6 -6
  20. package/dist/apis/ai-agents.js +1 -1
  21. package/dist/apis/app.cjs +6 -6
  22. package/dist/apis/app.js +1 -1
  23. package/dist/apis/audit-logs.cjs +6 -6
  24. package/dist/apis/audit-logs.js +1 -1
  25. package/dist/apis/automation.cjs +6 -6
  26. package/dist/apis/automation.js +1 -1
  27. package/dist/apis/billing.cjs +6 -6
  28. package/dist/apis/billing.js +1 -1
  29. package/dist/apis/blueprint-manifest.cjs +6 -6
  30. package/dist/apis/blueprint-manifest.js +1 -1
  31. package/dist/apis/calendar.cjs +38 -0
  32. package/dist/apis/calendar.d.cts +18 -0
  33. package/dist/apis/calendar.d.ts +18 -0
  34. package/dist/apis/calendar.js +38 -0
  35. package/dist/apis/configuration-hub.cjs +6 -6
  36. package/dist/apis/configuration-hub.js +1 -1
  37. package/dist/apis/consent.cjs +6 -6
  38. package/dist/apis/consent.js +1 -1
  39. package/dist/apis/customer-portal.cjs +6 -6
  40. package/dist/apis/customer-portal.js +1 -1
  41. package/dist/apis/dashboard.cjs +6 -6
  42. package/dist/apis/dashboard.js +1 -1
  43. package/dist/apis/data-governance.cjs +6 -6
  44. package/dist/apis/data-governance.js +1 -1
  45. package/dist/apis/deduplication.cjs +6 -6
  46. package/dist/apis/deduplication.js +1 -1
  47. package/dist/apis/design.cjs +6 -6
  48. package/dist/apis/design.js +1 -1
  49. package/dist/apis/document.cjs +6 -6
  50. package/dist/apis/document.js +1 -1
  51. package/dist/apis/email-settings.cjs +6 -6
  52. package/dist/apis/email-settings.js +1 -1
  53. package/dist/apis/email-template.cjs +6 -6
  54. package/dist/apis/email-template.js +1 -1
  55. package/dist/apis/entity-mapping.cjs +6 -6
  56. package/dist/apis/entity-mapping.js +1 -1
  57. package/dist/apis/entity.cjs +6 -6
  58. package/dist/apis/entity.js +1 -1
  59. package/dist/apis/environments.cjs +6 -6
  60. package/dist/apis/environments.js +1 -1
  61. package/dist/apis/event-catalog.cjs +6 -6
  62. package/dist/apis/event-catalog.js +1 -1
  63. package/dist/apis/file.cjs +6 -6
  64. package/dist/apis/file.js +1 -1
  65. package/dist/apis/iban.cjs +6 -6
  66. package/dist/apis/iban.js +1 -1
  67. package/dist/apis/integration-toolkit.cjs +6 -6
  68. package/dist/apis/integration-toolkit.js +1 -1
  69. package/dist/apis/journey.cjs +6 -6
  70. package/dist/apis/journey.js +1 -1
  71. package/dist/apis/kanban.cjs +6 -6
  72. package/dist/apis/kanban.js +1 -1
  73. package/dist/apis/message.cjs +6 -6
  74. package/dist/apis/message.js +1 -1
  75. package/dist/apis/metering.cjs +6 -6
  76. package/dist/apis/metering.js +1 -1
  77. package/dist/apis/notes.cjs +6 -6
  78. package/dist/apis/notes.js +1 -1
  79. package/dist/apis/notification.cjs +6 -6
  80. package/dist/apis/notification.js +1 -1
  81. package/dist/apis/organization.cjs +6 -6
  82. package/dist/apis/organization.js +1 -1
  83. package/dist/apis/partner-directory.cjs +6 -6
  84. package/dist/apis/partner-directory.js +1 -1
  85. package/dist/apis/permissions.cjs +6 -6
  86. package/dist/apis/permissions.js +1 -1
  87. package/dist/apis/pricing-tier.cjs +6 -6
  88. package/dist/apis/pricing-tier.js +1 -1
  89. package/dist/apis/pricing.cjs +6 -6
  90. package/dist/apis/pricing.js +1 -1
  91. package/dist/apis/purpose.cjs +6 -6
  92. package/dist/apis/purpose.js +1 -1
  93. package/dist/apis/query.cjs +6 -6
  94. package/dist/apis/query.js +1 -1
  95. package/dist/apis/sandbox.cjs +6 -6
  96. package/dist/apis/sandbox.js +1 -1
  97. package/dist/apis/sharing.cjs +6 -6
  98. package/dist/apis/sharing.js +1 -1
  99. package/dist/apis/submission.cjs +6 -6
  100. package/dist/apis/submission.js +1 -1
  101. package/dist/apis/target.cjs +6 -6
  102. package/dist/apis/target.js +1 -1
  103. package/dist/apis/targeting.cjs +6 -6
  104. package/dist/apis/targeting.js +1 -1
  105. package/dist/apis/template-variables.cjs +6 -6
  106. package/dist/apis/template-variables.js +1 -1
  107. package/dist/apis/user.cjs +6 -6
  108. package/dist/apis/user.js +1 -1
  109. package/dist/apis/validation-rules.cjs +6 -6
  110. package/dist/apis/validation-rules.js +1 -1
  111. package/dist/apis/webhooks.cjs +6 -6
  112. package/dist/apis/webhooks.js +1 -1
  113. package/dist/apis/workflow-definition.cjs +6 -6
  114. package/dist/apis/workflow-definition.js +1 -1
  115. package/dist/apis/workflow.cjs +6 -6
  116. package/dist/apis/workflow.js +1 -1
  117. package/dist/bin/cli.js +1 -1
  118. package/dist/calendar-2YDAYG7S.cjs +7 -0
  119. package/dist/calendar-ACFIHQ2N.js +7 -0
  120. package/dist/calendar-runtime-6CMMEQMG.js +5 -0
  121. package/dist/calendar-runtime-G4SN5PDY.cjs +5 -0
  122. package/dist/calendar.d-BEjLDagH.d.cts +353 -0
  123. package/dist/calendar.d-BEjLDagH.d.ts +353 -0
  124. package/dist/{chunk-AM5TSEMU.cjs → chunk-CD4OX2U6.cjs} +4 -2
  125. package/dist/chunk-CKLEBO4K.cjs +14 -0
  126. package/dist/chunk-JNH37UUH.js +14 -0
  127. package/dist/{chunk-M25MI6ZX.js → chunk-TSV242UN.js} +4 -2
  128. package/dist/index.cjs +25 -17
  129. package/dist/index.d.cts +82 -80
  130. package/dist/index.d.ts +82 -80
  131. package/dist/index.js +21 -13
  132. package/dist/{js-yaml-DLCVPJ7G.js → js-yaml-UPZKYVRY.js} +15 -17
  133. package/docs/calendar.md +441 -0
  134. package/package.json +10 -1
  135. package/dist/README-6MG272KM.cjs +0 -7
  136. package/dist/README-7N542PBL.js +0 -7
@@ -0,0 +1,7 @@
1
+ import "./chunk-YPSWSI3M.js";
2
+
3
+ // src/docs/calendar.json
4
+ var calendar_default = '# Calendar API\n\n- **Base URL:** `https://calendar.sls.epilot.io`\n- **Full API Docs:** [https://docs.epilot.io/api/calendar](https://docs.epilot.io/api/calendar)\n\n## Usage\n\n```ts\nimport { epilot } from \'@epilot/sdk\'\n\nepilot.authorize(() => \'<token>\')\nconst { data } = await epilot.calendar.listCalendars(...)\n```\n\n### Tree-shakeable import\n\n```ts\nimport { getClient, authorize } from \'@epilot/sdk/calendar\'\n\nconst calendarClient = getClient()\nauthorize(calendarClient, () => \'<token>\')\nconst { data } = await calendarClient.listCalendars(...)\n```\n\n## Operations\n\n**Calendars**\n- [`listCalendars`](#listcalendars)\n- [`getCalendar`](#getcalendar)\n\n**Events**\n- [`listEvents`](#listevents)\n- [`getEvent`](#getevent)\n\n**Schemas**\n- [`Calendar`](#calendar)\n- [`CalendarSource`](#calendarsource)\n- [`Provider`](#provider)\n- [`Error`](#error)\n- [`CalendarEvent`](#calendarevent)\n- [`EventType`](#eventtype)\n- [`EventStatus`](#eventstatus)\n- [`Sensitivity`](#sensitivity)\n- [`Importance`](#importance)\n- [`ResponseStatus`](#responsestatus)\n- [`Attendee`](#attendee)\n- [`EventSource`](#eventsource)\n\n### `listCalendars`\n\nList calendars visible to the caller.\n\n`GET /v1/calendar`\n\n```ts\nconst { data } = await client.listCalendars({\n size: 1,\n cursor: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "_id": "string",\n "_schema": "calendar",\n "_org": "string",\n "_title": "string",\n "name": "string",\n "description": "string",\n "color": "string",\n "is_default": true,\n "read_only": true,\n "owner_email": "user@example.com",\n "source": {\n "type": "native",\n "provider": "outlook",\n "provider_calendar_id": "string",\n "last_synced_at": "1970-01-01T00:00:00.000Z"\n },\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z"\n }\n ],\n "next_cursor": "string"\n}\n```\n\n</details>\n\n---\n\n### `getCalendar`\n\nGet a single calendar by its epilot ID.\n\n`GET /v1/calendar/{calendar_id}`\n\n```ts\nconst { data } = await client.getCalendar({\n calendar_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "_id": "string",\n "_schema": "calendar",\n "_org": "string",\n "_title": "string",\n "name": "string",\n "description": "string",\n "color": "string",\n "is_default": true,\n "read_only": true,\n "owner_email": "user@example.com",\n "source": {\n "type": "native",\n "provider": "outlook",\n "provider_calendar_id": "string",\n "last_synced_at": "1970-01-01T00:00:00.000Z"\n },\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n### `listEvents`\n\nList events in a time window. Recurring events are returned as expanded occurrences \u2013 each instance appears as its own event.\n\n`GET /v1/calendar/events`\n\n```ts\nconst { data } = await client.listEvents({\n from: \'example\',\n to: \'example\',\n calendar_id: \'example\',\n size: 1,\n cursor: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "results": [\n {\n "_id": "string",\n "_schema": "calendar_event",\n "_org": "string",\n "_title": "string",\n "_tags": ["string"],\n "calendar_id": "string",\n "event_type": "singleInstance",\n "description": "string",\n "start_time": "1970-01-01T00:00:00.000Z",\n "end_time": "1970-01-01T00:00:00.000Z",\n "timezone": "string",\n "is_all_day": true,\n "location": "string",\n "status": "free",\n "busy": true,\n "is_cancelled": true,\n "sensitivity": "normal",\n "importance": "low",\n "is_online_meeting": true,\n "online_meeting_url": "https://example.com/path",\n "web_link": "https://example.com/path",\n "response_status": "none",\n "organizer_email": "user@example.com",\n "attendees": [\n {\n "email": "user@example.com",\n "name": "string",\n "response": "none",\n "type": "required"\n }\n ],\n "is_recurring": true,\n "series_master_id": "string",\n "source": {\n "type": "native",\n "provider": "outlook",\n "provider_event_id": "string",\n "provider_event_url": "https://example.com/path",\n "last_synced_at": "1970-01-01T00:00:00.000Z",\n "etag": "string"\n },\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z"\n }\n ],\n "next_cursor": "string"\n}\n```\n\n</details>\n\n---\n\n### `getEvent`\n\nGet a single event by its epilot ID.\n\n`GET /v1/calendar/events/{event_id}`\n\n```ts\nconst { data } = await client.getEvent({\n event_id: \'example\',\n})\n```\n\n<details>\n<summary>Response</summary>\n\n```json\n{\n "_id": "string",\n "_schema": "calendar_event",\n "_org": "string",\n "_title": "string",\n "_tags": ["string"],\n "calendar_id": "string",\n "event_type": "singleInstance",\n "description": "string",\n "start_time": "1970-01-01T00:00:00.000Z",\n "end_time": "1970-01-01T00:00:00.000Z",\n "timezone": "string",\n "is_all_day": true,\n "location": "string",\n "status": "free",\n "busy": true,\n "is_cancelled": true,\n "sensitivity": "normal",\n "importance": "low",\n "is_online_meeting": true,\n "online_meeting_url": "https://example.com/path",\n "web_link": "https://example.com/path",\n "response_status": "none",\n "organizer_email": "user@example.com",\n "attendees": [\n {\n "email": "user@example.com",\n "name": "string",\n "response": "none",\n "type": "required"\n }\n ],\n "is_recurring": true,\n "series_master_id": "string",\n "source": {\n "type": "native",\n "provider": "outlook",\n "provider_event_id": "string",\n "provider_event_url": "https://example.com/path",\n "last_synced_at": "1970-01-01T00:00:00.000Z",\n "etag": "string"\n },\n "_created_at": "1970-01-01T00:00:00.000Z",\n "_updated_at": "1970-01-01T00:00:00.000Z"\n}\n```\n\n</details>\n\n---\n\n## Schemas\n\n### `Calendar`\n\n```ts\ntype Calendar = {\n _id: string\n _schema: "calendar"\n _org: string\n _title?: string\n name: string\n description?: string\n color?: string\n is_default: boolean\n read_only: boolean\n owner_email?: string // email\n source: {\n type: "native" | "synced"\n provider?: "outlook" | "google" | null\n provider_calendar_id?: string\n last_synced_at?: string // date-time\n }\n _created_at?: string // date-time\n _updated_at?: string // date-time\n}\n```\n\n### `CalendarSource`\n\n```ts\ntype CalendarSource = {\n type: "native" | "synced"\n provider?: "outlook" | "google" | null\n provider_calendar_id?: string\n last_synced_at?: string // date-time\n}\n```\n\n### `Provider`\n\nNull for native epilot calendars\n\n```ts\ntype Provider = "outlook" | "google" | null\n```\n\n### `Error`\n\n```ts\ntype Error = {\n message: string\n code?: string\n}\n```\n\n### `CalendarEvent`\n\n```ts\ntype CalendarEvent = {\n _id: string\n _schema: "calendar_event"\n _org: string\n _title?: string\n _tags?: string[]\n calendar_id: string\n event_type: "singleInstance" | "occurrence" | "exception" | "seriesMaster"\n description?: string\n start_time: string // date-time\n end_time: string // date-time\n timezone: string\n is_all_day: boolean\n location?: string\n status: "free" | "tentative" | "busy" | "oof" | "workingElsewhere" | "unknown"\n busy: boolean\n is_cancelled: boolean\n sensitivity: "normal" | "personal" | "private" | "confidential"\n importance: "low" | "normal" | "high"\n is_online_meeting: boolean\n online_meeting_url?: string // uri\n web_link?: string // uri\n response_status: "none" | "organizer" | "tentativelyAccepted" | "accepted" | "declined" | "notResponded"\n organizer_email?: string // email\n attendees?: Array<{\n email: string // email\n name?: string\n response: "none" | "organizer" | "tentativelyAccepted" | "accepted" | "declined" | "notResponded"\n type: "required" | "optional" | "resource"\n }>\n is_recurring: boolean\n series_master_id?: string\n source: {\n type: "native" | "synced"\n provider?: "outlook" | "google" | null\n provider_event_id?: string\n provider_event_url?: string // uri\n last_synced_at?: string // date-time\n etag?: string\n }\n _created_at?: string // date-time\n _updated_at?: string // date-time\n}\n```\n\n### `EventType`\n\n```ts\ntype EventType = "singleInstance" | "occurrence" | "exception" | "seriesMaster"\n```\n\n### `EventStatus`\n\nFree/busy state derived from provider `showAs`\n\n```ts\ntype EventStatus = "free" | "tentative" | "busy" | "oof" | "workingElsewhere" | "unknown"\n```\n\n### `Sensitivity`\n\n```ts\ntype Sensitivity = "normal" | "personal" | "private" | "confidential"\n```\n\n### `Importance`\n\n```ts\ntype Importance = "low" | "normal" | "high"\n```\n\n### `ResponseStatus`\n\nCaller\'s response to the invite\n\n```ts\ntype ResponseStatus = "none" | "organizer" | "tentativelyAccepted" | "accepted" | "declined" | "notResponded"\n```\n\n### `Attendee`\n\n```ts\ntype Attendee = {\n email: string // email\n name?: string\n response: "none" | "organizer" | "tentativelyAccepted" | "accepted" | "declined" | "notResponded"\n type: "required" | "optional" | "resource"\n}\n```\n\n### `EventSource`\n\n```ts\ntype EventSource = {\n type: "native" | "synced"\n provider?: "outlook" | "google" | null\n provider_event_id?: string\n provider_event_url?: string // uri\n last_synced_at?: string // date-time\n etag?: string\n}\n```\n';
5
+ export {
6
+ calendar_default as default
7
+ };
@@ -0,0 +1,5 @@
1
+ import {
2
+ require_calendar_runtime
3
+ } from "./chunk-JNH37UUH.js";
4
+ import "./chunk-YPSWSI3M.js";
5
+ export default require_calendar_runtime();
@@ -0,0 +1,5 @@
1
+ "use strict";Object.defineProperty(exports, "__esModule", {value: true});
2
+
3
+ var _chunkCKLEBO4Kcjs = require('./chunk-CKLEBO4K.cjs');
4
+ require('./chunk-NJK5F5TF.cjs');
5
+ exports. default = _chunkCKLEBO4Kcjs.require_calendar_runtime.call(void 0, );
@@ -0,0 +1,353 @@
1
+ import { OpenAPIClient, Parameters, AxiosRequestConfig, OperationResponse } from 'openapi-client-axios';
2
+
3
+ /* Auto-copied from calendar-client */
4
+
5
+
6
+ declare namespace Components {
7
+ namespace Schemas {
8
+ export interface Attendee {
9
+ email: string; // email
10
+ name?: string | null;
11
+ response: /* Caller's response to the invite */ ResponseStatus;
12
+ type: "required" | "optional" | "resource";
13
+ }
14
+ export interface Calendar {
15
+ /**
16
+ * epilot calendar ID
17
+ */
18
+ _id: string;
19
+ _schema: "calendar";
20
+ /**
21
+ * Organization the calendar belongs to
22
+ */
23
+ _org: string;
24
+ /**
25
+ * Computed display title
26
+ */
27
+ _title?: string;
28
+ name: string;
29
+ description?: string | null;
30
+ /**
31
+ * Hex color (e.g. "#3b82f6") or provider-defined named color
32
+ */
33
+ color?: string | null;
34
+ /**
35
+ * True if this is the user's primary calendar
36
+ */
37
+ is_default: boolean;
38
+ /**
39
+ * True if the caller cannot modify events in this calendar
40
+ */
41
+ read_only: boolean;
42
+ owner_email?: string | null; // email
43
+ source: CalendarSource;
44
+ _created_at?: string; // date-time
45
+ _updated_at?: string; // date-time
46
+ }
47
+ export interface CalendarEvent {
48
+ /**
49
+ * epilot event ID
50
+ */
51
+ _id: string;
52
+ _schema: "calendar_event";
53
+ _org: string;
54
+ /**
55
+ * Null when sensitivity is private or confidential
56
+ */
57
+ _title?: string | null;
58
+ /**
59
+ * Provider categories (Outlook) or colours (Google) as epilot tags
60
+ */
61
+ _tags?: string[];
62
+ /**
63
+ * epilot calendar this event belongs to
64
+ */
65
+ calendar_id: string;
66
+ event_type: EventType;
67
+ /**
68
+ * Preview of the event body, truncated to 255 chars
69
+ */
70
+ description?: string | null;
71
+ /**
72
+ * Event start in UTC
73
+ */
74
+ start_time: string; // date-time
75
+ /**
76
+ * Event end in UTC
77
+ */
78
+ end_time: string; // date-time
79
+ /**
80
+ * IANA timezone of the original event (for display)
81
+ */
82
+ timezone: string;
83
+ is_all_day: boolean;
84
+ location?: string | null;
85
+ status: /* Free/busy state derived from provider `showAs` */ EventStatus;
86
+ /**
87
+ * Convenience flag, true when status is busy/oof/tentative
88
+ */
89
+ busy: boolean;
90
+ is_cancelled: boolean;
91
+ sensitivity: Sensitivity;
92
+ importance: Importance;
93
+ is_online_meeting: boolean;
94
+ /**
95
+ * Teams, Meet, Zoom, or similar join URL
96
+ */
97
+ online_meeting_url?: string | null; // uri
98
+ /**
99
+ * Deep link to open the event in the originating provider
100
+ */
101
+ web_link?: string | null; // uri
102
+ response_status: /* Caller's response to the invite */ ResponseStatus;
103
+ organizer_email?: string | null; // email
104
+ /**
105
+ * Null when sensitivity is private or confidential
106
+ */
107
+ attendees?: Attendee[] | null;
108
+ is_recurring: boolean;
109
+ /**
110
+ * ID of the recurring series this occurrence belongs to
111
+ */
112
+ series_master_id?: string | null;
113
+ source: EventSource;
114
+ _created_at?: string; // date-time
115
+ _updated_at?: string; // date-time
116
+ }
117
+ export interface CalendarSource {
118
+ /**
119
+ * `native` = hosted by epilot. `synced` = mirrored from an external provider.
120
+ */
121
+ type: "native" | "synced";
122
+ provider?: /* Null for native epilot calendars */ Provider;
123
+ provider_calendar_id?: string | null;
124
+ last_synced_at?: string | null; // date-time
125
+ }
126
+ export interface Error {
127
+ message: string;
128
+ code?: string;
129
+ }
130
+ export interface EventSource {
131
+ /**
132
+ * `native` = hosted by epilot. `synced` = mirrored from an external provider.
133
+ */
134
+ type: "native" | "synced";
135
+ provider?: /* Null for native epilot calendars */ Provider;
136
+ provider_event_id?: string | null;
137
+ /**
138
+ * Deep link to open the event in the originating provider
139
+ */
140
+ provider_event_url?: string | null; // uri
141
+ last_synced_at?: string | null; // date-time
142
+ /**
143
+ * Provider-supplied version tag used for conflict detection
144
+ */
145
+ etag?: string | null;
146
+ }
147
+ /**
148
+ * Free/busy state derived from provider `showAs`
149
+ */
150
+ export type EventStatus = "free" | "tentative" | "busy" | "oof" | "workingElsewhere" | "unknown";
151
+ export type EventType = "singleInstance" | "occurrence" | "exception" | "seriesMaster";
152
+ export type Importance = "low" | "normal" | "high";
153
+ /**
154
+ * Null for native epilot calendars
155
+ */
156
+ export type Provider = "outlook" | "google" | null;
157
+ /**
158
+ * Caller's response to the invite
159
+ */
160
+ export type ResponseStatus = "none" | "organizer" | "tentativelyAccepted" | "accepted" | "declined" | "notResponded";
161
+ export type Sensitivity = "normal" | "personal" | "private" | "confidential";
162
+ }
163
+ }
164
+ declare namespace Paths {
165
+ namespace GetCalendar {
166
+ namespace Parameters {
167
+ export type CalendarId = string;
168
+ }
169
+ export interface PathParameters {
170
+ calendar_id: Parameters.CalendarId;
171
+ }
172
+ namespace Responses {
173
+ export type $200 = Components.Schemas.Calendar;
174
+ export type $404 = Components.Schemas.Error;
175
+ }
176
+ }
177
+ namespace GetEvent {
178
+ namespace Parameters {
179
+ export type EventId = string;
180
+ }
181
+ export interface PathParameters {
182
+ event_id: Parameters.EventId;
183
+ }
184
+ namespace Responses {
185
+ export type $200 = Components.Schemas.CalendarEvent;
186
+ export type $404 = Components.Schemas.Error;
187
+ }
188
+ }
189
+ namespace ListCalendars {
190
+ namespace Parameters {
191
+ /**
192
+ * Opaque cursor from a previous response
193
+ */
194
+ export type Cursor = string;
195
+ export type Size = number;
196
+ }
197
+ export interface QueryParameters {
198
+ size?: Parameters.Size;
199
+ cursor?: /* Opaque cursor from a previous response */ Parameters.Cursor;
200
+ }
201
+ namespace Responses {
202
+ export interface $200 {
203
+ results: Components.Schemas.Calendar[];
204
+ next_cursor?: string | null;
205
+ }
206
+ }
207
+ }
208
+ namespace ListEvents {
209
+ namespace Parameters {
210
+ /**
211
+ * Filter to a single calendar. Omit to query across all accessible calendars.
212
+ */
213
+ export type CalendarId = string;
214
+ export type Cursor = string;
215
+ /**
216
+ * Start of the time window (inclusive)
217
+ */
218
+ export type From = string; // date-time
219
+ export type Size = number;
220
+ /**
221
+ * End of the time window (exclusive)
222
+ */
223
+ export type To = string; // date-time
224
+ }
225
+ export interface QueryParameters {
226
+ from: /* Start of the time window (inclusive) */ Parameters.From /* date-time */;
227
+ to: /* End of the time window (exclusive) */ Parameters.To /* date-time */;
228
+ calendar_id?: /* Filter to a single calendar. Omit to query across all accessible calendars. */ Parameters.CalendarId;
229
+ size?: Parameters.Size;
230
+ cursor?: Parameters.Cursor;
231
+ }
232
+ namespace Responses {
233
+ export interface $200 {
234
+ results: Components.Schemas.CalendarEvent[];
235
+ next_cursor?: string | null;
236
+ }
237
+ export type $400 = Components.Schemas.Error;
238
+ }
239
+ }
240
+ }
241
+
242
+
243
+ interface OperationMethods {
244
+ /**
245
+ * listCalendars - listCalendars
246
+ *
247
+ * List calendars visible to the caller.
248
+ */
249
+ 'listCalendars'(
250
+ parameters?: Parameters<Paths.ListCalendars.QueryParameters> | null,
251
+ data?: any,
252
+ config?: AxiosRequestConfig
253
+ ): OperationResponse<Paths.ListCalendars.Responses.$200>
254
+ /**
255
+ * getCalendar - getCalendar
256
+ *
257
+ * Get a single calendar by its epilot ID.
258
+ */
259
+ 'getCalendar'(
260
+ parameters?: Parameters<Paths.GetCalendar.PathParameters> | null,
261
+ data?: any,
262
+ config?: AxiosRequestConfig
263
+ ): OperationResponse<Paths.GetCalendar.Responses.$200>
264
+ /**
265
+ * listEvents - listEvents
266
+ *
267
+ * List events in a time window. Recurring events are returned as expanded occurrences – each instance appears as its own event.
268
+ */
269
+ 'listEvents'(
270
+ parameters?: Parameters<Paths.ListEvents.QueryParameters> | null,
271
+ data?: any,
272
+ config?: AxiosRequestConfig
273
+ ): OperationResponse<Paths.ListEvents.Responses.$200>
274
+ /**
275
+ * getEvent - getEvent
276
+ *
277
+ * Get a single event by its epilot ID.
278
+ */
279
+ 'getEvent'(
280
+ parameters?: Parameters<Paths.GetEvent.PathParameters> | null,
281
+ data?: any,
282
+ config?: AxiosRequestConfig
283
+ ): OperationResponse<Paths.GetEvent.Responses.$200>
284
+ }
285
+
286
+ interface PathsDictionary {
287
+ ['/v1/calendar']: {
288
+ /**
289
+ * listCalendars - listCalendars
290
+ *
291
+ * List calendars visible to the caller.
292
+ */
293
+ 'get'(
294
+ parameters?: Parameters<Paths.ListCalendars.QueryParameters> | null,
295
+ data?: any,
296
+ config?: AxiosRequestConfig
297
+ ): OperationResponse<Paths.ListCalendars.Responses.$200>
298
+ }
299
+ ['/v1/calendar/{calendar_id}']: {
300
+ /**
301
+ * getCalendar - getCalendar
302
+ *
303
+ * Get a single calendar by its epilot ID.
304
+ */
305
+ 'get'(
306
+ parameters?: Parameters<Paths.GetCalendar.PathParameters> | null,
307
+ data?: any,
308
+ config?: AxiosRequestConfig
309
+ ): OperationResponse<Paths.GetCalendar.Responses.$200>
310
+ }
311
+ ['/v1/calendar/events']: {
312
+ /**
313
+ * listEvents - listEvents
314
+ *
315
+ * List events in a time window. Recurring events are returned as expanded occurrences – each instance appears as its own event.
316
+ */
317
+ 'get'(
318
+ parameters?: Parameters<Paths.ListEvents.QueryParameters> | null,
319
+ data?: any,
320
+ config?: AxiosRequestConfig
321
+ ): OperationResponse<Paths.ListEvents.Responses.$200>
322
+ }
323
+ ['/v1/calendar/events/{event_id}']: {
324
+ /**
325
+ * getEvent - getEvent
326
+ *
327
+ * Get a single event by its epilot ID.
328
+ */
329
+ 'get'(
330
+ parameters?: Parameters<Paths.GetEvent.PathParameters> | null,
331
+ data?: any,
332
+ config?: AxiosRequestConfig
333
+ ): OperationResponse<Paths.GetEvent.Responses.$200>
334
+ }
335
+ }
336
+
337
+ type Client = OpenAPIClient<OperationMethods, PathsDictionary>
338
+
339
+
340
+ type Attendee = Components.Schemas.Attendee;
341
+ type Calendar = Components.Schemas.Calendar;
342
+ type CalendarEvent = Components.Schemas.CalendarEvent;
343
+ type CalendarSource = Components.Schemas.CalendarSource;
344
+ type Error = Components.Schemas.Error;
345
+ type EventSource = Components.Schemas.EventSource;
346
+ type EventStatus = Components.Schemas.EventStatus;
347
+ type EventType = Components.Schemas.EventType;
348
+ type Importance = Components.Schemas.Importance;
349
+ type Provider = Components.Schemas.Provider;
350
+ type ResponseStatus = Components.Schemas.ResponseStatus;
351
+ type Sensitivity = Components.Schemas.Sensitivity;
352
+
353
+ export { type Attendee as A, type Client as C, type Error as E, type Importance as I, type OperationMethods as O, Paths as P, type ResponseStatus as R, type Sensitivity as S, Components as a, type PathsDictionary as b, type Calendar as c, type CalendarEvent as d, type CalendarSource as e, type EventSource as f, type EventStatus as g, type EventType as h, type Provider as i };