@attrove/sdk 0.1.7 → 0.1.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.
- package/cjs/admin-client.js +2 -0
- package/cjs/client.js +6 -0
- package/cjs/constants.js +1 -1
- package/cjs/resources/calendars.js +112 -0
- package/cjs/resources/events.js +90 -0
- package/cjs/resources/index.js +9 -1
- package/cjs/resources/meetings.js +93 -0
- package/cjs/resources/settings.js +71 -0
- package/cjs/types/index.js +1 -0
- package/esm/admin-client.d.ts +5 -0
- package/esm/admin-client.d.ts.map +1 -1
- package/esm/admin-client.js +2 -0
- package/esm/admin-client.js.map +1 -1
- package/esm/client.d.ts +15 -0
- package/esm/client.d.ts.map +1 -1
- package/esm/client.js +6 -0
- package/esm/client.js.map +1 -1
- package/esm/constants.d.ts +1 -1
- package/esm/constants.js +1 -1
- package/esm/index.d.ts +4 -0
- package/esm/index.d.ts.map +1 -1
- package/esm/index.js.map +1 -1
- package/esm/resources/calendars.d.ts +91 -0
- package/esm/resources/calendars.d.ts.map +1 -0
- package/esm/resources/calendars.js +109 -0
- package/esm/resources/calendars.js.map +1 -0
- package/esm/resources/events.d.ts +68 -0
- package/esm/resources/events.d.ts.map +1 -0
- package/esm/resources/events.js +87 -0
- package/esm/resources/events.js.map +1 -0
- package/esm/resources/index.d.ts +8 -0
- package/esm/resources/index.d.ts.map +1 -1
- package/esm/resources/index.js +4 -0
- package/esm/resources/index.js.map +1 -1
- package/esm/resources/meetings.d.ts +68 -0
- package/esm/resources/meetings.d.ts.map +1 -0
- package/esm/resources/meetings.js +90 -0
- package/esm/resources/meetings.js.map +1 -0
- package/esm/resources/settings.d.ts +62 -0
- package/esm/resources/settings.d.ts.map +1 -0
- package/esm/resources/settings.js +68 -0
- package/esm/resources/settings.js.map +1 -0
- package/esm/types/index.d.ts +99 -14
- package/esm/types/index.d.ts.map +1 -1
- package/esm/types/index.js +1 -0
- package/esm/types/index.js.map +1 -1
- package/package.json +1 -1
package/cjs/admin-client.js
CHANGED
|
@@ -12,6 +12,7 @@ const index_js_1 = require("./errors/index.js");
|
|
|
12
12
|
const index_js_2 = require("./types/index.js");
|
|
13
13
|
const index_js_3 = require("./types/index.js");
|
|
14
14
|
const constants_js_1 = require("./constants.js");
|
|
15
|
+
const settings_js_1 = require("./resources/settings.js");
|
|
15
16
|
/**
|
|
16
17
|
* Validate the admin client configuration.
|
|
17
18
|
*
|
|
@@ -217,6 +218,7 @@ class AttroveAdmin {
|
|
|
217
218
|
});
|
|
218
219
|
// Initialize resources
|
|
219
220
|
this.users = new AdminUsersResource(this.http, this.config.clientId);
|
|
221
|
+
this.settings = new settings_js_1.AdminSettingsResource(this.http, this.config.clientId);
|
|
220
222
|
}
|
|
221
223
|
}
|
|
222
224
|
exports.AttroveAdmin = AttroveAdmin;
|
package/cjs/client.js
CHANGED
|
@@ -13,6 +13,9 @@ const users_js_1 = require("./resources/users.js");
|
|
|
13
13
|
const messages_js_1 = require("./resources/messages.js");
|
|
14
14
|
const conversations_js_1 = require("./resources/conversations.js");
|
|
15
15
|
const integrations_js_1 = require("./resources/integrations.js");
|
|
16
|
+
const calendars_js_1 = require("./resources/calendars.js");
|
|
17
|
+
const events_js_1 = require("./resources/events.js");
|
|
18
|
+
const meetings_js_1 = require("./resources/meetings.js");
|
|
16
19
|
const query_js_1 = require("./resources/query.js");
|
|
17
20
|
const index_js_1 = require("./errors/index.js");
|
|
18
21
|
const index_js_2 = require("./types/index.js");
|
|
@@ -114,6 +117,9 @@ class Attrove {
|
|
|
114
117
|
this.messages = new messages_js_1.MessagesResource(this.http, this.config.userId);
|
|
115
118
|
this.conversations = new conversations_js_1.ConversationsResource(this.http, this.config.userId);
|
|
116
119
|
this.integrations = new integrations_js_1.IntegrationsResource(this.http, this.config.userId);
|
|
120
|
+
this.calendars = new calendars_js_1.CalendarsResource(this.http, this.config.userId);
|
|
121
|
+
this.events = new events_js_1.EventsResource(this.http, this.config.userId);
|
|
122
|
+
this.meetings = new meetings_js_1.MeetingsResource(this.http, this.config.userId);
|
|
117
123
|
this.queryResource = new query_js_1.QueryResource(this.http, this.config.userId);
|
|
118
124
|
}
|
|
119
125
|
/**
|
package/cjs/constants.js
CHANGED
|
@@ -13,7 +13,7 @@ exports.getWsCloseReason = exports.WS_CLOSE_CODES = exports.RETRYABLE_STATUS_SET
|
|
|
13
13
|
* Automatically synchronized with package.json during the release process.
|
|
14
14
|
* For programmatic access, use `getVersion()` from './version'.
|
|
15
15
|
*/
|
|
16
|
-
exports.SDK_VERSION = "0.1.
|
|
16
|
+
exports.SDK_VERSION = "0.1.8"; // auto-synced from package.json during release
|
|
17
17
|
/**
|
|
18
18
|
* Default API base URL for Attrove services.
|
|
19
19
|
*/
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Calendars Resource
|
|
4
|
+
*
|
|
5
|
+
* Provides methods for listing, retrieving, and updating calendars
|
|
6
|
+
* from connected calendar integrations (e.g. Google Calendar).
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.CalendarsResource = void 0;
|
|
10
|
+
/**
|
|
11
|
+
* Calendars resource for managing calendar sync preferences.
|
|
12
|
+
*
|
|
13
|
+
* Users may have multiple calendars per integration (e.g. "Work", "Personal",
|
|
14
|
+
* "Holidays" in Google Calendar). By default only the primary calendar is
|
|
15
|
+
* active. Use `update()` to activate or deactivate calendars — only active
|
|
16
|
+
* calendars have their events synced.
|
|
17
|
+
*/
|
|
18
|
+
class CalendarsResource {
|
|
19
|
+
constructor(http, userId) {
|
|
20
|
+
this.http = http;
|
|
21
|
+
this.userId = userId;
|
|
22
|
+
}
|
|
23
|
+
/**
|
|
24
|
+
* List calendars with optional filtering.
|
|
25
|
+
*
|
|
26
|
+
* @param options - Filtering, pagination, and expansion options
|
|
27
|
+
* @returns Paginated list of calendars
|
|
28
|
+
* @throws {AuthenticationError} If the API key is invalid
|
|
29
|
+
* @throws {AuthorizationError} If the user lacks access
|
|
30
|
+
* @throws {NetworkError} If the request fails due to a network issue
|
|
31
|
+
*
|
|
32
|
+
* @example
|
|
33
|
+
* ```ts
|
|
34
|
+
* // List all calendars
|
|
35
|
+
* const { data } = await attrove.calendars.list();
|
|
36
|
+
*
|
|
37
|
+
* // List only active calendars
|
|
38
|
+
* const { data } = await attrove.calendars.list({ active: true });
|
|
39
|
+
*
|
|
40
|
+
* // List calendars for a specific integration
|
|
41
|
+
* const { data } = await attrove.calendars.list({ integrationId: '67890' });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
async list(options = {}) {
|
|
45
|
+
const params = {};
|
|
46
|
+
if (options.integrationId) {
|
|
47
|
+
params.integration_id = options.integrationId;
|
|
48
|
+
}
|
|
49
|
+
if (options.active !== undefined) {
|
|
50
|
+
params.active = String(options.active);
|
|
51
|
+
}
|
|
52
|
+
if (options.limit !== undefined) {
|
|
53
|
+
params.limit = String(options.limit);
|
|
54
|
+
}
|
|
55
|
+
if (options.offset !== undefined) {
|
|
56
|
+
params.offset = String(options.offset);
|
|
57
|
+
}
|
|
58
|
+
if (options.expand?.length) {
|
|
59
|
+
params.expand = options.expand.join(",");
|
|
60
|
+
}
|
|
61
|
+
const response = await this.http.request(`/v1/users/${this.userId}/calendars`, { method: "GET" }, params);
|
|
62
|
+
return {
|
|
63
|
+
data: response.data,
|
|
64
|
+
pagination: response.pagination,
|
|
65
|
+
};
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Get a single calendar by ID.
|
|
69
|
+
*
|
|
70
|
+
* @param id - Calendar ID
|
|
71
|
+
* @returns The requested calendar
|
|
72
|
+
* @throws {NotFoundError} If the calendar does not exist
|
|
73
|
+
* @throws {AuthenticationError} If the API key is invalid
|
|
74
|
+
* @throws {NetworkError} If the request fails due to a network issue
|
|
75
|
+
*
|
|
76
|
+
* @example
|
|
77
|
+
* ```ts
|
|
78
|
+
* const calendar = await attrove.calendars.get('12345');
|
|
79
|
+
* console.log(calendar.title, calendar.active);
|
|
80
|
+
* ```
|
|
81
|
+
*/
|
|
82
|
+
async get(id) {
|
|
83
|
+
return this.http.get(`/v1/users/${this.userId}/calendars/${id}`);
|
|
84
|
+
}
|
|
85
|
+
/**
|
|
86
|
+
* Update a calendar's properties (e.g. toggle sync on/off).
|
|
87
|
+
*
|
|
88
|
+
* When a calendar is activated, its events begin syncing on the next
|
|
89
|
+
* sync cycle (within 5 minutes).
|
|
90
|
+
*
|
|
91
|
+
* @param id - Calendar ID
|
|
92
|
+
* @param options - Fields to update (currently only `active`)
|
|
93
|
+
* @returns The updated calendar
|
|
94
|
+
* @throws {NotFoundError} If the calendar does not exist
|
|
95
|
+
* @throws {ValidationError} If the options are invalid
|
|
96
|
+
* @throws {AuthenticationError} If the API key is invalid
|
|
97
|
+
* @throws {NetworkError} If the request fails due to a network issue
|
|
98
|
+
*
|
|
99
|
+
* @example
|
|
100
|
+
* ```ts
|
|
101
|
+
* // Activate a calendar for syncing
|
|
102
|
+
* const updated = await attrove.calendars.update('12345', { active: true });
|
|
103
|
+
*
|
|
104
|
+
* // Deactivate a calendar
|
|
105
|
+
* const updated = await attrove.calendars.update('12345', { active: false });
|
|
106
|
+
* ```
|
|
107
|
+
*/
|
|
108
|
+
async update(id, options) {
|
|
109
|
+
return this.http.patch(`/v1/users/${this.userId}/calendars/${id}`, options);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
exports.CalendarsResource = CalendarsResource;
|
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Events Resource
|
|
4
|
+
*
|
|
5
|
+
* Provides methods for accessing calendar events from connected integrations.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.EventsResource = void 0;
|
|
9
|
+
/**
|
|
10
|
+
* Events resource for accessing calendar event data.
|
|
11
|
+
*
|
|
12
|
+
* Provides methods for listing and retrieving calendar events from
|
|
13
|
+
* connected integrations (Google Calendar, etc.).
|
|
14
|
+
*/
|
|
15
|
+
class EventsResource {
|
|
16
|
+
constructor(http, userId) {
|
|
17
|
+
this.http = http;
|
|
18
|
+
this.userId = userId;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* List calendar events with optional filtering.
|
|
22
|
+
*
|
|
23
|
+
* @param options - Filtering, pagination, and expansion options
|
|
24
|
+
* @returns Paginated list of calendar events
|
|
25
|
+
*
|
|
26
|
+
* @throws {AuthenticationError} If the API key is invalid or expired
|
|
27
|
+
* @throws {ValidationError} If the filter parameters are invalid
|
|
28
|
+
* @throws {NetworkError} If unable to reach the API
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* // List upcoming events
|
|
33
|
+
* const { data, pagination } = await attrove.events.list({
|
|
34
|
+
* startDate: '2025-01-15T00:00:00Z',
|
|
35
|
+
* endDate: '2025-01-16T00:00:00Z',
|
|
36
|
+
* });
|
|
37
|
+
*
|
|
38
|
+
* // List events with attendee details
|
|
39
|
+
* const { data } = await attrove.events.list({
|
|
40
|
+
* expand: ['attendees', 'description'],
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
async list(options = {}) {
|
|
45
|
+
const params = {};
|
|
46
|
+
if (options.calendarId) {
|
|
47
|
+
params.calendar_id = options.calendarId;
|
|
48
|
+
}
|
|
49
|
+
if (options.startDate) {
|
|
50
|
+
params.start_date = options.startDate;
|
|
51
|
+
}
|
|
52
|
+
if (options.endDate) {
|
|
53
|
+
params.end_date = options.endDate;
|
|
54
|
+
}
|
|
55
|
+
if (options.limit !== undefined) {
|
|
56
|
+
params.limit = String(options.limit);
|
|
57
|
+
}
|
|
58
|
+
if (options.offset !== undefined) {
|
|
59
|
+
params.offset = String(options.offset);
|
|
60
|
+
}
|
|
61
|
+
if (options.expand?.length) {
|
|
62
|
+
params.expand = options.expand.join(",");
|
|
63
|
+
}
|
|
64
|
+
const response = await this.http.request(`/v1/users/${this.userId}/events`, { method: "GET" }, params);
|
|
65
|
+
return {
|
|
66
|
+
data: response.data,
|
|
67
|
+
pagination: response.pagination,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
/**
|
|
71
|
+
* Get a single calendar event by ID.
|
|
72
|
+
*
|
|
73
|
+
* @param id - Event ID
|
|
74
|
+
* @returns The requested calendar event
|
|
75
|
+
*
|
|
76
|
+
* @throws {AuthenticationError} If the API key is invalid or expired
|
|
77
|
+
* @throws {NotFoundError} If the event does not exist
|
|
78
|
+
* @throws {NetworkError} If unable to reach the API
|
|
79
|
+
*
|
|
80
|
+
* @example
|
|
81
|
+
* ```ts
|
|
82
|
+
* const event = await attrove.events.get('event-id');
|
|
83
|
+
* console.log(event.title, event.start_time);
|
|
84
|
+
* ```
|
|
85
|
+
*/
|
|
86
|
+
async get(id) {
|
|
87
|
+
return this.http.get(`/v1/users/${this.userId}/events/${id}`);
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
exports.EventsResource = EventsResource;
|
package/cjs/resources/index.js
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
* Resource exports
|
|
4
4
|
*/
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
exports.QueryResource = exports.IntegrationsResource = exports.ConversationsResource = exports.MessagesResource = exports.UsersResource = void 0;
|
|
6
|
+
exports.AdminSettingsResource = exports.QueryResource = exports.MeetingsResource = exports.EventsResource = exports.CalendarsResource = exports.IntegrationsResource = exports.ConversationsResource = exports.MessagesResource = exports.UsersResource = void 0;
|
|
7
7
|
var users_js_1 = require("./users.js");
|
|
8
8
|
Object.defineProperty(exports, "UsersResource", { enumerable: true, get: function () { return users_js_1.UsersResource; } });
|
|
9
9
|
var messages_js_1 = require("./messages.js");
|
|
@@ -12,5 +12,13 @@ var conversations_js_1 = require("./conversations.js");
|
|
|
12
12
|
Object.defineProperty(exports, "ConversationsResource", { enumerable: true, get: function () { return conversations_js_1.ConversationsResource; } });
|
|
13
13
|
var integrations_js_1 = require("./integrations.js");
|
|
14
14
|
Object.defineProperty(exports, "IntegrationsResource", { enumerable: true, get: function () { return integrations_js_1.IntegrationsResource; } });
|
|
15
|
+
var calendars_js_1 = require("./calendars.js");
|
|
16
|
+
Object.defineProperty(exports, "CalendarsResource", { enumerable: true, get: function () { return calendars_js_1.CalendarsResource; } });
|
|
17
|
+
var events_js_1 = require("./events.js");
|
|
18
|
+
Object.defineProperty(exports, "EventsResource", { enumerable: true, get: function () { return events_js_1.EventsResource; } });
|
|
19
|
+
var meetings_js_1 = require("./meetings.js");
|
|
20
|
+
Object.defineProperty(exports, "MeetingsResource", { enumerable: true, get: function () { return meetings_js_1.MeetingsResource; } });
|
|
15
21
|
var query_js_1 = require("./query.js");
|
|
16
22
|
Object.defineProperty(exports, "QueryResource", { enumerable: true, get: function () { return query_js_1.QueryResource; } });
|
|
23
|
+
var settings_js_1 = require("./settings.js");
|
|
24
|
+
Object.defineProperty(exports, "AdminSettingsResource", { enumerable: true, get: function () { return settings_js_1.AdminSettingsResource; } });
|
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Meetings Resource
|
|
4
|
+
*
|
|
5
|
+
* Provides methods for accessing meetings with AI-generated summaries.
|
|
6
|
+
*/
|
|
7
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
+
exports.MeetingsResource = void 0;
|
|
9
|
+
/**
|
|
10
|
+
* Meetings resource for accessing meeting data with AI summaries.
|
|
11
|
+
*
|
|
12
|
+
* Provides methods for listing and retrieving meetings from
|
|
13
|
+
* connected integrations (Google Meet, Zoom, Teams).
|
|
14
|
+
*/
|
|
15
|
+
class MeetingsResource {
|
|
16
|
+
constructor(http, userId) {
|
|
17
|
+
this.http = http;
|
|
18
|
+
this.userId = userId;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* List meetings with optional filtering.
|
|
22
|
+
*
|
|
23
|
+
* @param options - Filtering, pagination, and expansion options
|
|
24
|
+
* @returns Paginated list of meetings
|
|
25
|
+
*
|
|
26
|
+
* @throws {AuthenticationError} If the API key is invalid or expired
|
|
27
|
+
* @throws {ValidationError} If the filter parameters are invalid
|
|
28
|
+
* @throws {NetworkError} If unable to reach the API
|
|
29
|
+
*
|
|
30
|
+
* @example
|
|
31
|
+
* ```ts
|
|
32
|
+
* // List recent meetings with summaries
|
|
33
|
+
* const { data, pagination } = await attrove.meetings.list({
|
|
34
|
+
* expand: ['summary', 'action_items', 'attendees'],
|
|
35
|
+
* });
|
|
36
|
+
*
|
|
37
|
+
* // List meetings from a specific provider
|
|
38
|
+
* const { data } = await attrove.meetings.list({
|
|
39
|
+
* provider: 'google_meet',
|
|
40
|
+
* hasSummary: true,
|
|
41
|
+
* });
|
|
42
|
+
* ```
|
|
43
|
+
*/
|
|
44
|
+
async list(options = {}) {
|
|
45
|
+
const params = {};
|
|
46
|
+
if (options.startDate) {
|
|
47
|
+
params.start_date = options.startDate;
|
|
48
|
+
}
|
|
49
|
+
if (options.endDate) {
|
|
50
|
+
params.end_date = options.endDate;
|
|
51
|
+
}
|
|
52
|
+
if (options.provider) {
|
|
53
|
+
params.provider = options.provider;
|
|
54
|
+
}
|
|
55
|
+
if (options.hasSummary !== undefined) {
|
|
56
|
+
params.has_summary = String(options.hasSummary);
|
|
57
|
+
}
|
|
58
|
+
if (options.limit !== undefined) {
|
|
59
|
+
params.limit = String(options.limit);
|
|
60
|
+
}
|
|
61
|
+
if (options.offset !== undefined) {
|
|
62
|
+
params.offset = String(options.offset);
|
|
63
|
+
}
|
|
64
|
+
if (options.expand?.length) {
|
|
65
|
+
params.expand = options.expand.join(",");
|
|
66
|
+
}
|
|
67
|
+
const response = await this.http.request(`/v1/users/${this.userId}/meetings`, { method: "GET" }, params);
|
|
68
|
+
return {
|
|
69
|
+
data: response.data,
|
|
70
|
+
pagination: response.pagination,
|
|
71
|
+
};
|
|
72
|
+
}
|
|
73
|
+
/**
|
|
74
|
+
* Get a single meeting by ID.
|
|
75
|
+
*
|
|
76
|
+
* @param id - Meeting ID
|
|
77
|
+
* @returns The requested meeting
|
|
78
|
+
*
|
|
79
|
+
* @throws {AuthenticationError} If the API key is invalid or expired
|
|
80
|
+
* @throws {NotFoundError} If the meeting does not exist
|
|
81
|
+
* @throws {NetworkError} If unable to reach the API
|
|
82
|
+
*
|
|
83
|
+
* @example
|
|
84
|
+
* ```ts
|
|
85
|
+
* const meeting = await attrove.meetings.get('meeting-id');
|
|
86
|
+
* console.log(meeting.title, meeting.summary);
|
|
87
|
+
* ```
|
|
88
|
+
*/
|
|
89
|
+
async get(id) {
|
|
90
|
+
return this.http.get(`/v1/users/${this.userId}/meetings/${id}`);
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
exports.MeetingsResource = MeetingsResource;
|
|
@@ -0,0 +1,71 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/**
|
|
3
|
+
* Settings Resource
|
|
4
|
+
*
|
|
5
|
+
* Provides methods for managing organization-level sync settings
|
|
6
|
+
* via the partner (server-to-server) API.
|
|
7
|
+
*/
|
|
8
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
|
+
exports.AdminSettingsResource = void 0;
|
|
10
|
+
const index_js_1 = require("../errors/index.js");
|
|
11
|
+
/** Valid range for initialSyncDays. Must stay in sync with MIN/MAX_INITIAL_SYNC_DAYS in @attrove/shared-types. */
|
|
12
|
+
const MIN_SYNC_DAYS = 7;
|
|
13
|
+
const MAX_SYNC_DAYS = 90;
|
|
14
|
+
/**
|
|
15
|
+
* Admin settings resource for managing organization sync configuration.
|
|
16
|
+
*
|
|
17
|
+
* Requires partner authentication (client_id + client_secret).
|
|
18
|
+
*
|
|
19
|
+
* @example
|
|
20
|
+
* ```ts
|
|
21
|
+
* const admin = Attrove.admin({ clientId, clientSecret });
|
|
22
|
+
* await admin.settings.update({ initialSyncDays: 30 });
|
|
23
|
+
* ```
|
|
24
|
+
*/
|
|
25
|
+
class AdminSettingsResource {
|
|
26
|
+
constructor(http, clientId) {
|
|
27
|
+
this.http = http;
|
|
28
|
+
this.clientId = clientId;
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* Update organization sync settings.
|
|
32
|
+
*
|
|
33
|
+
* Configures how many days of history are fetched when a user first
|
|
34
|
+
* connects an integration. Currently applies to email providers (Gmail, Outlook).
|
|
35
|
+
* Slack and calendar providers silently ignore this setting.
|
|
36
|
+
*
|
|
37
|
+
* @param options - Settings to update
|
|
38
|
+
* @returns Current settings after the update
|
|
39
|
+
*
|
|
40
|
+
* @throws {ValidationError} If the options are invalid (e.g., initialSyncDays out of range)
|
|
41
|
+
* @throws {AuthenticationError} If partner credentials are invalid
|
|
42
|
+
* @throws {NetworkError} If unable to reach the API
|
|
43
|
+
*
|
|
44
|
+
* @example
|
|
45
|
+
* ```ts
|
|
46
|
+
* const admin = Attrove.admin({ clientId, clientSecret });
|
|
47
|
+
*
|
|
48
|
+
* // Set initial sync depth to 14 days
|
|
49
|
+
* const settings = await admin.settings.update({ initialSyncDays: 14 });
|
|
50
|
+
* console.log(settings.initialSyncDays); // 14
|
|
51
|
+
* ```
|
|
52
|
+
*/
|
|
53
|
+
async update(options) {
|
|
54
|
+
if (options.initialSyncDays !== undefined) {
|
|
55
|
+
if (!Number.isInteger(options.initialSyncDays) ||
|
|
56
|
+
options.initialSyncDays < MIN_SYNC_DAYS ||
|
|
57
|
+
options.initialSyncDays > MAX_SYNC_DAYS) {
|
|
58
|
+
throw new index_js_1.ValidationError(`initialSyncDays must be an integer between ${MIN_SYNC_DAYS} and ${MAX_SYNC_DAYS}, got ${options.initialSyncDays}`);
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
const body = { client_id: this.clientId };
|
|
62
|
+
if (options.initialSyncDays !== undefined) {
|
|
63
|
+
body.initial_sync_days = options.initialSyncDays;
|
|
64
|
+
}
|
|
65
|
+
const raw = await this.http.patch("/v1/users/settings", body);
|
|
66
|
+
return {
|
|
67
|
+
initialSyncDays: raw.initial_sync_days,
|
|
68
|
+
};
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
exports.AdminSettingsResource = AdminSettingsResource;
|
package/cjs/types/index.js
CHANGED
package/esm/admin-client.d.ts
CHANGED
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
import { HttpClient } from "./utils/fetch.js";
|
|
8
8
|
import { AttroveAdminConfig, CreateUserOptions, CreateUserResponse, CreateTokenResponse } from "./types/index.js";
|
|
9
|
+
import { AdminSettingsResource } from "./resources/settings.js";
|
|
9
10
|
/**
|
|
10
11
|
* Users admin resource for managing users.
|
|
11
12
|
*
|
|
@@ -124,6 +125,10 @@ export declare class AttroveAdmin {
|
|
|
124
125
|
* Users resource for managing users.
|
|
125
126
|
*/
|
|
126
127
|
readonly users: AdminUsersResource;
|
|
128
|
+
/**
|
|
129
|
+
* Settings resource for managing organization sync configuration.
|
|
130
|
+
*/
|
|
131
|
+
readonly settings: AdminSettingsResource;
|
|
127
132
|
/**
|
|
128
133
|
* Create a new admin client.
|
|
129
134
|
*
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-client.d.ts","sourceRoot":"","sources":["../../../../packages/sdk/src/admin-client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EAEpB,MAAM,kBAAkB,CAAC;
|
|
1
|
+
{"version":3,"file":"admin-client.d.ts","sourceRoot":"","sources":["../../../../packages/sdk/src/admin-client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAG9C,OAAO,EACL,kBAAkB,EAClB,iBAAiB,EACjB,kBAAkB,EAClB,mBAAmB,EAEpB,MAAM,kBAAkB,CAAC;AAM1B,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAkDhE;;;;;GAKG;AACH,qBAAa,kBAAkB;IAE3B,OAAO,CAAC,QAAQ,CAAC,IAAI;IACrB,OAAO,CAAC,QAAQ,CAAC,QAAQ;gBADR,IAAI,EAAE,UAAU,EAChB,QAAQ,EAAE,MAAM;IAGnC;;;;;;;;;;;;;;;;;;;;;;;;;;;OA2BG;IACG,MAAM,CAAC,OAAO,EAAE,iBAAiB,GAAG,OAAO,CAAC,kBAAkB,CAAC;IAsBrE;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,kBAAkB,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,mBAAmB,CAAC;IAqBtE;;;;;;;;;;;;;;;;;OAiBG;IACG,MAAM,CAAC,MAAM,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC;CAM5C;AAED;;;;;;;;;;;;;;;;;;;;;;;;;GAyBG;AACH,qBAAa,YAAY;IACvB,OAAO,CAAC,QAAQ,CAAC,IAAI,CAAa;IAClC,OAAO,CAAC,QAAQ,CAAC,MAAM,CACe;IAEtC;;OAEG;IACH,QAAQ,CAAC,KAAK,EAAE,kBAAkB,CAAC;IAEnC;;OAEG;IACH,QAAQ,CAAC,QAAQ,EAAE,qBAAqB,CAAC;IAEzC;;;;;;;;;;;;;;OAcG;gBACS,MAAM,EAAE,kBAAkB;CA0BvC"}
|
package/esm/admin-client.js
CHANGED
|
@@ -9,6 +9,7 @@ import { ValidationError } from "./errors/index.js";
|
|
|
9
9
|
import { ErrorCodes } from "./types/index.js";
|
|
10
10
|
import { isValidUUID, } from "./types/index.js";
|
|
11
11
|
import { DEFAULT_BASE_URL, DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, } from "./constants.js";
|
|
12
|
+
import { AdminSettingsResource } from "./resources/settings.js";
|
|
12
13
|
/**
|
|
13
14
|
* Validate the admin client configuration.
|
|
14
15
|
*
|
|
@@ -213,6 +214,7 @@ export class AttroveAdmin {
|
|
|
213
214
|
});
|
|
214
215
|
// Initialize resources
|
|
215
216
|
this.users = new AdminUsersResource(this.http, this.config.clientId);
|
|
217
|
+
this.settings = new AdminSettingsResource(this.http, this.config.clientId);
|
|
216
218
|
}
|
|
217
219
|
}
|
|
218
220
|
//# sourceMappingURL=admin-client.js.map
|
package/esm/admin-client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"admin-client.js","sourceRoot":"","sources":["../../../../packages/sdk/src/admin-client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAKL,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;
|
|
1
|
+
{"version":3,"file":"admin-client.js","sourceRoot":"","sources":["../../../../packages/sdk/src/admin-client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAKL,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AACxB,OAAO,EAAE,qBAAqB,EAAE,MAAM,yBAAyB,CAAC;AAEhE;;;;GAIG;AACH,SAAS,mBAAmB,CAAC,MAA0B;IACrD,oBAAoB;IACpB,IAAI,CAAC,MAAM,CAAC,QAAQ,IAAI,OAAO,MAAM,CAAC,QAAQ,KAAK,Q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10
10
|
import { ConversationsResource } from "./resources/conversations.js";
|
|
11
11
|
import { IntegrationsResource } from "./resources/integrations.js";
|
|
12
|
+
import { CalendarsResource } from "./resources/calendars.js";
|
|
13
|
+
import { EventsResource } from "./resources/events.js";
|
|
14
|
+
import { MeetingsResource } from "./resources/meetings.js";
|
|
12
15
|
import { AttroveConfig, QueryOptions, QueryResponse, SearchOptions, SearchResponse } from "./types/index.js";
|
|
13
16
|
/**
|
|
14
17
|
* The Attrove client for accessing user context.
|
|
@@ -55,6 +58,18 @@ export declare class Attrove {
|
|
|
55
58
|
* Integrations resource for managing connected services.
|
|
56
59
|
*/
|
|
57
60
|
readonly integrations: IntegrationsResource;
|
|
61
|
+
/**
|
|
62
|
+
* Calendars resource for managing calendar sync preferences.
|
|
63
|
+
*/
|
|
64
|
+
readonly calendars: CalendarsResource;
|
|
65
|
+
/**
|
|
66
|
+
* Events resource for accessing calendar events.
|
|
67
|
+
*/
|
|
68
|
+
readonly events: EventsResource;
|
|
69
|
+
/**
|
|
70
|
+
* Meetings resource for accessing meetings with AI summaries.
|
|
71
|
+
*/
|
|
72
|
+
readonly meetings: MeetingsResource;
|
|
58
73
|
/**
|
|
59
74
|
* Create a new Attrove client.
|
|
60
75
|
*
|
package/esm/client.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.d.ts","sourceRoot":"","sources":["../../../../packages/sdk/src/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAGH,OAAO,EAEL,aAAa,EACb,YAAY,EAEb,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;
|
|
1
|
+
{"version":3,"file":"client.d.ts","sourceRoot":"","s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aAAa;IAoCjC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OAgCG;IACG,KAAK,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,YAAY,GAAG,OAAO,CAAC,aAAa,CAAC;IAI3E;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA8BG;IACG,MAAM,CACV,KAAK,EAAE,MAAM,EACb,OAAO,CAAC,EAAE,aAAa,GACtB,OAAO,CAAC,cAAc,CAAC;IAI1B;;;;;;;;;;;;;;;;;;;;;;;;OAwBG;IACG,MAAM,CACV,MAAM,EAAE,MAAM,EACd,OAAO,GAAE,YAAY,GAAG,aAAkB,GACzC,OAAO,CAAC,YAAY,CAAC;IA6CxB;;;;;;;;;;;;;;;;;;;;OAoBG;IACG,KAAK,CAAC,SAAS,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAOhD;;;;;;;;;;;;;;;;;;;OAmBG;IACG,MAAM,CAAC,QAAQ,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;IAOhD;;;;;;;;;;;;;;;;;;;;OAoBG;IACG,MAAM,CAAC,cAAc,EAAE,MAAM,GAAG,OAAO,CAAC,OAAO,CAAC;CAMvD"}
|
package/esm/client.js
CHANGED
|
@@ -10,6 +10,9 @@ import { UsersResource } from "./resources/users.js";
|
|
|
10
10
|
import { MessagesResource } from "./resources/messages.js";
|
|
11
11
|
import { ConversationsResource } from "./resources/conversations.js";
|
|
12
12
|
import { IntegrationsResource } from "./resources/integrations.js";
|
|
13
|
+
import { CalendarsResource } from "./resources/calendars.js";
|
|
14
|
+
import { EventsResource } from "./resources/events.js";
|
|
15
|
+
import { MeetingsResource } from "./resources/meetings.js";
|
|
13
16
|
import { QueryResource } from "./resources/query.js";
|
|
14
17
|
import { ValidationError } from "./errors/index.js";
|
|
15
18
|
import { ErrorCodes } from "./types/index.js";
|
|
@@ -111,6 +114,9 @@ export class Attrove {
|
|
|
111
114
|
this.messages = new MessagesResource(this.http, this.config.userId);
|
|
112
115
|
this.conversations = new ConversationsResource(this.http, this.config.userId);
|
|
113
116
|
this.integrations = new IntegrationsResource(this.http, this.config.userId);
|
|
117
|
+
this.calendars = new CalendarsResource(this.http, this.config.userId);
|
|
118
|
+
this.events = new EventsResource(this.http, this.config.userId);
|
|
119
|
+
this.meetings = new MeetingsResource(this.http, this.config.userId);
|
|
114
120
|
this.queryResource = new QueryResource(this.http, this.config.userId);
|
|
115
121
|
}
|
|
116
122
|
/**
|
package/esm/client.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"client.js","sourceRoot":"","sources":["../../../../packages/sdk/src/client.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EACL,eAAe,EAGf,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AAC3D,OAAO,EAAE,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AACrE,OAAO,EAAE,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AACnE,OAAO,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AACrD,OAAO,EAAE,eAAe,EAAE,MAAM,mBAAmB,CAAC;AACpD,OAAO,EAAE,UAAU,EAAE,MAAM,kBAAkB,CAAC;AAC9C,OAAO,EAOL,WAAW,GACZ,MAAM,kBAAkB,CAAC;AAC1B,OAAO,EACL,gBAAgB,EAChB,eAAe,EACf,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AAExB;;;;GAIG;AACH,SAAS,cAAc,CAAC,MAAqB;IAC3C,kBAAkB;IAClB,IAAI,CAAC,MAAM,CAAC,MAAM,IAAI,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ,EAAE,CAAC;QACxD,MAAM,IAAI,eAAe,CACvB,m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/constants.d.ts
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Automatically synchronized with package.json during the release process.
|
|
11
11
|
* For programmatic access, use `getVersion()` from './version'.
|
|
12
12
|
*/
|
|
13
|
-
export declare const SDK_VERSION = "0.1.
|
|
13
|
+
export declare const SDK_VERSION = "0.1.8";
|
|
14
14
|
/**
|
|
15
15
|
* Default API base URL for Attrove services.
|
|
16
16
|
*/
|
package/esm/constants.js
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
* Automatically synchronized with package.json during the release process.
|
|
11
11
|
* For programmatic access, use `getVersion()` from './version'.
|
|
12
12
|
*/
|
|
13
|
-
export const SDK_VERSION = "0.1.
|
|
13
|
+
export const SDK_VERSION = "0.1.8"; // auto-synced from package.json during release
|
|
14
14
|
/**
|
|
15
15
|
* Default API base URL for Attrove services.
|
|
16
16
|
*/
|
package/esm/index.d.ts
CHANGED
|
@@ -53,11 +53,15 @@ export declare class Attrove extends AttroveClient {
|
|
|
53
53
|
}
|
|
54
54
|
export { AttroveAdmin } from "./admin-client.js";
|
|
55
55
|
export type { AdminUsersResource } from "./admin-client.js";
|
|
56
|
+
export type { AdminSettingsResource, UpdateSettingsOptions, SettingsResponse, } from "./resources/settings.js";
|
|
56
57
|
export * from "./types/index.js";
|
|
57
58
|
export { AttroveError, AuthenticationError, AuthorizationError, NotFoundError, ValidationError, RateLimitError, NetworkError, TimeoutError, ServerError, isAttroveError, isAuthenticationError, isAuthorizationError, isNotFoundError, isValidationError, isRateLimitError, isNetworkError, isTimeoutError, isServerError, } from "./errors/index.js";
|
|
58
59
|
export type { UserWithIntegrations, UpdateUserOptions, } from "./resources/users.js";
|
|
59
60
|
export type { MessagesPage } from "./resources/messages.js";
|
|
60
61
|
export type { ConversationsPage, ConversationSyncUpdate, } from "./resources/conversations.js";
|
|
62
|
+
export type { CalendarsPage } from "./resources/calendars.js";
|
|
63
|
+
export type { EventsPage } from "./resources/events.js";
|
|
64
|
+
export type { MeetingsPage } from "./resources/meetings.js";
|
|
61
65
|
export { generateMessageId } from "./utils/streaming.js";
|
|
62
66
|
export type { StreamOptions, StreamResult } from "./utils/streaming.js";
|
|
63
67
|
export { SDK_VERSION, DEFAULT_BASE_URL, DEFAULT_TIMEOUT, DEFAULT_MAX_RETRIES, } from "./constants.js";
|
package/esm/index.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/sdk/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,YAAY,EAAsB,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGtD,qBAAa,OAAQ,SAAQ,aAAa;IACxC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,kBAAkB,GAAG,YAAY;CAGvD;AAGD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../packages/sdk/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,OAAO,IAAI,aAAa,EAAE,MAAM,aAAa,CAAC;AACvD,OAAO,EAAE,YAAY,EAAsB,MAAM,mBAAmB,CAAC;AACrE,OAAO,EAAE,kBAAkB,EAAE,MAAM,kBAAkB,CAAC;AAGtD,qBAAa,OAAQ,SAAQ,aAAa;IACxC;;;;;;;;;;;;;OAaG;IACH,MAAM,CAAC,KAAK,CAAC,MAAM,EAAE,kBAAkB,GAAG,YAAY;CAGvD;AAGD,OAAO,EAAE,YAAY,EAAE,MAAM,mBAAmB,CAAC;AACjD,YAAY,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAC5D,YAAY,EACV,qBAAqB,EACrB,qBAAqB,EACrB,gBAAgB,GACjB,MAAM,yBAAyB,CAAC;AAGjC,cAAc,kBAAkB,CAAC;AAGjC,OAAO,EACL,YAAY,EACZ,mBAAmB,EACnB,kBAAkB,EAClB,aAAa,EACb,eAAe,EACf,cAAc,EACd,YAAY,EACZ,YAAY,EACZ,WAAW,EACX,cAAc,EACd,qBAAqB,EACrB,oBAAoB,EACpB,eAAe,EACf,iBAAiB,EACjB,gBAAgB,EAChB,cAAc,EACd,cAAc,EACd,aAAa,GACd,MAAM,mBAAmB,CAAC;AAG3B,YAAY,EACV,oBAAoB,EACpB,iBAAiB,GAClB,MAAM,sBAAsB,CAAC;AAC9B,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAC5D,YAAY,EACV,iBAAiB,EACjB,sBAAsB,GACvB,MAAM,8BAA8B,CAAC;AACtC,YAAY,EAAE,aAAa,EAAE,MAAM,0BAA0B,CAAC;AAC9D,YAAY,EAAE,UAAU,EAAE,MAAM,uBAAuB,CAAC;AACxD,YAAY,EAAE,YAAY,EAAE,MAAM,yBAAyB,CAAC;AAG5D,OAAO,EAAE,iBAAiB,EAAE,MAAM,sBAAsB,CAAC;AACzD,YAAY,EAAE,aAAa,EAAE,YAAY,EAAE,MAAM,sBAAsB,CAAC;AAGxE,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AAGxB,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|
package/esm/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../packages/sdk/src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAgCG;AAEH,OAAO,EAAE,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;AACtC,OAAO,EACL,WAAW,EACX,gBAAgB,EAChB,eAAe,EACf,mBAAmB,GACpB,MAAM,gBAAgB,CAAC;AAExB,iDAAiD;AACjD,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC"}
|