@proteos/sdk 0.84.0 → 0.86.0
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/dist/{chunk-Z773P4RO.cjs → chunk-4BBHU3XA.cjs} +36 -86
- package/dist/chunk-4BBHU3XA.cjs.map +1 -0
- package/dist/{chunk-C5642XOH.js → chunk-KX4VIMIJ.js} +36 -86
- package/dist/chunk-KX4VIMIJ.js.map +1 -0
- package/dist/index.cjs +264 -175
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +142 -26
- package/dist/index.d.ts +142 -26
- package/dist/index.js +142 -53
- package/dist/index.js.map +1 -1
- package/dist/meta/index.cjs +96 -96
- package/dist/meta/index.js +1 -1
- package/package.json +3 -3
- package/src/agent/mcp-servers.ts +0 -1
- package/src/agent/prompts.ts +0 -1
- package/src/agent/skills.ts +4 -2
- package/src/agent/tools.ts +0 -1
- package/src/auth/shares.ts +7 -2
- package/src/auth/types.ts +12 -0
- package/src/connector/index.ts +26 -7
- package/src/conversation/index.ts +8 -3
- package/src/conversation/types.ts +15 -0
- package/src/discovery/index.ts +35 -3
- package/src/discovery/types.ts +84 -2
- package/src/events/index.ts +8 -6
- package/src/index.ts +10 -0
- package/src/knowledge/index.ts +3 -5
- package/src/meta/index.ts +7 -7
- package/src/meta/layout/control-registry.json +24 -82
- package/src/meta/list-extensions.ts +1 -3
- package/src/meta/page-extensions.ts +2 -4
- package/src/meta/types.ts +10 -2
- package/src/scheduling/index.ts +105 -24
- package/src/storage/files.ts +1 -4
- package/src/workflow/types.ts +2 -2
- package/dist/chunk-C5642XOH.js.map +0 -1
- package/dist/chunk-Z773P4RO.cjs.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { AuditFieldsSchema, FileRefSchema, PrincipalRefSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-
|
|
2
|
-
export { AppConfigurationSchema, AppHomeSchema, AppSchema, AttributeSchema, AuditFieldsSchema, CURRENT_USER, CURRENT_USER_DEFAULT, ColumnSchema, ComponentSchema, ContactAddressAttributeMetaSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntityContactBindingSchema, EntityExtensionSchema, EntitySchema, EntityWithSchemaSchema, ExtensionPositionSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListExtensionColumnPlacementSchema, ListExtensionSchema, ListSchema, ListViewSchema, MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, MenuConfigurationExtensionPlacementSchema, MenuConfigurationExtensionPositionSchema, MenuConfigurationExtensionSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_ACTION_MATCH_MAX_LIMIT, PAGE_EXTENSION_ANCHOR_MAIN, PAGE_EXTENSION_ANCHOR_SIDE_PANEL, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionMatchSchema, PageActionSchema, PageExtensionPlacementSchema, PageExtensionSchema, PageIterator, PageLayoutSchema, PageSchema, RecordPageBindingSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, TriggerPageBindingSchema, UserRefSchema, VariableSchema, acceptsCurrentUserDefault, allCurrencyCodes, bundleVersionOf, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isCurrentUser, isCurrentUserDefault, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseContactAddressMeta, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-
|
|
1
|
+
import { AuditFieldsSchema, FileRefSchema, PrincipalRefSchema, AttributeSchema, UserRefSchema, PageIterator } from './chunk-KX4VIMIJ.js';
|
|
2
|
+
export { AppConfigurationSchema, AppHomeSchema, AppSchema, AttributeSchema, AuditFieldsSchema, CURRENT_USER, CURRENT_USER_DEFAULT, ColumnSchema, ComponentSchema, ContactAddressAttributeMetaSchema, CurrencyAttributeMetaSchema, DEFAULT_PAGE_SIZE, DONE, DesignReferenceSchema, EntityContactBindingSchema, EntityExtensionSchema, EntitySchema, EntityWithSchemaSchema, ExtensionPositionSchema, FileRefSchema, FilterElementSchema, FilterGroupSchema, ListExtensionColumnPlacementSchema, ListExtensionSchema, ListSchema, ListViewSchema, MENU_CONFIGURATION_EXTENSION_ANCHOR_ITEMS, MenuConfigurationExtensionPlacementSchema, MenuConfigurationExtensionPositionSchema, MenuConfigurationExtensionSchema, MenuConfigurationSchema, MenuItemSchema, MenuItemType, MetaClient, ModuleSchema, OnDeleteActionSchema, PAGE_ACTION_MATCH_MAX_LIMIT, PAGE_EXTENSION_ANCHOR_MAIN, PAGE_EXTENSION_ANCHOR_SIDE_PANEL, PLATFORM_ATTRIBUTE_NAMES, PLATFORM_USER_ID, PageActionMatchSchema, PageActionSchema, PageExtensionPlacementSchema, PageExtensionSchema, PageIterator, PageLayoutSchema, PageSchema, RecordPageBindingSchema, RelationAttributeMetaSchema, ResponseMetaSchema, SortConfigSchema, TriggerPageBindingSchema, UserRefSchema, VariableSchema, acceptsCurrentUserDefault, allCurrencyCodes, bundleVersionOf, createIterator, createListResultSchema, currencyLabel, currencySymbol, currencySymbolSide, formatAmount, formatMoney, isCurrentUser, isCurrentUserDefault, isPlatformAttributeName, localeNumberSeparators, parseAmount, parseContactAddressMeta, parseCurrencyMeta, parseFileMeta, parseRelationMeta, platformAttributes } from './chunk-KX4VIMIJ.js';
|
|
3
3
|
import { z } from 'zod';
|
|
4
4
|
import { fetchEventSource } from '@microsoft/fetch-event-source';
|
|
5
5
|
|
|
@@ -702,7 +702,12 @@ var PLATFORM_ENTITY_SERVICE = {
|
|
|
702
702
|
conversations: "/conversations",
|
|
703
703
|
connections: "/conversations"
|
|
704
704
|
};
|
|
705
|
-
var SERVICES_WITH_SHARING = /* @__PURE__ */ new Set([
|
|
705
|
+
var SERVICES_WITH_SHARING = /* @__PURE__ */ new Set([
|
|
706
|
+
"/data",
|
|
707
|
+
"/knowledge",
|
|
708
|
+
"/agents",
|
|
709
|
+
"/conversations"
|
|
710
|
+
]);
|
|
706
711
|
var DEFAULT_SERVICE = "/data";
|
|
707
712
|
function shareRouteFor(entitySlug) {
|
|
708
713
|
const service = PLATFORM_ENTITY_SERVICE[entitySlug] ?? DEFAULT_SERVICE;
|
|
@@ -1096,7 +1101,9 @@ var ProfileSchema = AuditFieldsSchema.extend({
|
|
|
1096
1101
|
description: z.string(),
|
|
1097
1102
|
module_slug: z.string(),
|
|
1098
1103
|
default_app_slug: z.string(),
|
|
1099
|
-
app_slugs: z.array(z.string())
|
|
1104
|
+
app_slugs: z.array(z.string()),
|
|
1105
|
+
// Optional for responses from servers that predate the column.
|
|
1106
|
+
platform_features: z.array(z.string()).default([])
|
|
1100
1107
|
});
|
|
1101
1108
|
var UserProfileAssignmentSchema = AuditFieldsSchema.extend({
|
|
1102
1109
|
id: z.string(),
|
|
@@ -1628,7 +1635,10 @@ var ConnectorCatalogServiceImpl = class {
|
|
|
1628
1635
|
return this.client.requestWithQuery("GET", `${CONNECTOR_BASE_PATH}/connectors`, query);
|
|
1629
1636
|
}
|
|
1630
1637
|
get(key) {
|
|
1631
|
-
return this.client.request(
|
|
1638
|
+
return this.client.request(
|
|
1639
|
+
"GET",
|
|
1640
|
+
`${CONNECTOR_BASE_PATH}/connectors/${encodeURIComponent(key)}`
|
|
1641
|
+
);
|
|
1632
1642
|
}
|
|
1633
1643
|
async listMethods(key) {
|
|
1634
1644
|
const connector = await this.get(key);
|
|
@@ -1644,22 +1654,38 @@ var ConnectorConnectionServiceImpl = class {
|
|
|
1644
1654
|
return this.client.requestWithQuery("GET", `${CONNECTOR_BASE_PATH}/connections`, query);
|
|
1645
1655
|
}
|
|
1646
1656
|
get(id) {
|
|
1647
|
-
return this.client.request(
|
|
1657
|
+
return this.client.request(
|
|
1658
|
+
"GET",
|
|
1659
|
+
`${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}`
|
|
1660
|
+
);
|
|
1648
1661
|
}
|
|
1649
1662
|
create(request) {
|
|
1650
1663
|
return this.client.request("POST", `${CONNECTOR_BASE_PATH}/connections`, request);
|
|
1651
1664
|
}
|
|
1652
1665
|
update(id, request) {
|
|
1653
|
-
return this.client.request(
|
|
1666
|
+
return this.client.request(
|
|
1667
|
+
"PATCH",
|
|
1668
|
+
`${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}`,
|
|
1669
|
+
request
|
|
1670
|
+
);
|
|
1654
1671
|
}
|
|
1655
1672
|
async delete(id) {
|
|
1656
|
-
await this.client.request(
|
|
1673
|
+
await this.client.request(
|
|
1674
|
+
"DELETE",
|
|
1675
|
+
`${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}`
|
|
1676
|
+
);
|
|
1657
1677
|
}
|
|
1658
1678
|
install(id) {
|
|
1659
|
-
return this.client.request(
|
|
1679
|
+
return this.client.request(
|
|
1680
|
+
"POST",
|
|
1681
|
+
`${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}/install`
|
|
1682
|
+
);
|
|
1660
1683
|
}
|
|
1661
1684
|
token(id) {
|
|
1662
|
-
return this.client.request(
|
|
1685
|
+
return this.client.request(
|
|
1686
|
+
"POST",
|
|
1687
|
+
`${CONNECTOR_BASE_PATH}/connections/${encodeURIComponent(id)}/token`
|
|
1688
|
+
);
|
|
1663
1689
|
}
|
|
1664
1690
|
async invokeMethod(id, method, params = {}) {
|
|
1665
1691
|
const response = await this.client.request(
|
|
@@ -2157,8 +2183,12 @@ var ConversationServiceImpl = class {
|
|
|
2157
2183
|
`${CONVERSATION_BASE_PATH}/conversations/${encodeURIComponent(id)}/read`
|
|
2158
2184
|
);
|
|
2159
2185
|
}
|
|
2160
|
-
unreadCounts() {
|
|
2161
|
-
return this.client.
|
|
2186
|
+
unreadCounts(query) {
|
|
2187
|
+
return this.client.requestWithQuery(
|
|
2188
|
+
"GET",
|
|
2189
|
+
`${CONVERSATION_BASE_PATH}/conversations/unread-counts`,
|
|
2190
|
+
query
|
|
2191
|
+
);
|
|
2162
2192
|
}
|
|
2163
2193
|
};
|
|
2164
2194
|
var MessageServiceImpl = class {
|
|
@@ -3248,9 +3278,11 @@ var DISCOVERY_BASE_PATH = "/discovery/v1";
|
|
|
3248
3278
|
var encode = encodeURIComponent;
|
|
3249
3279
|
var DiscoveryClient = class {
|
|
3250
3280
|
evidence;
|
|
3281
|
+
narrations;
|
|
3251
3282
|
platform;
|
|
3252
3283
|
constructor(client) {
|
|
3253
3284
|
this.evidence = new DiscoveryEvidenceServiceImpl(client);
|
|
3285
|
+
this.narrations = new DiscoveryEvidenceNarrationServiceImpl(client);
|
|
3254
3286
|
this.platform = new PlatformDiscoveryEvidenceServiceImpl(client);
|
|
3255
3287
|
}
|
|
3256
3288
|
};
|
|
@@ -3281,6 +3313,21 @@ var DiscoveryEvidenceServiceImpl = class {
|
|
|
3281
3313
|
);
|
|
3282
3314
|
}
|
|
3283
3315
|
};
|
|
3316
|
+
var DiscoveryEvidenceNarrationServiceImpl = class {
|
|
3317
|
+
constructor(client) {
|
|
3318
|
+
this.client = client;
|
|
3319
|
+
}
|
|
3320
|
+
client;
|
|
3321
|
+
create(request) {
|
|
3322
|
+
return this.client.request("POST", `${DISCOVERY_BASE_PATH}/evidence-narrations`, request);
|
|
3323
|
+
}
|
|
3324
|
+
get(id) {
|
|
3325
|
+
return this.client.request("GET", `${DISCOVERY_BASE_PATH}/evidence-narrations/${encode(id)}`);
|
|
3326
|
+
}
|
|
3327
|
+
async delete(id) {
|
|
3328
|
+
await this.client.request("DELETE", `${DISCOVERY_BASE_PATH}/evidence-narrations/${encode(id)}`);
|
|
3329
|
+
}
|
|
3330
|
+
};
|
|
3284
3331
|
var PlatformDiscoveryEvidenceServiceImpl = class {
|
|
3285
3332
|
constructor(client) {
|
|
3286
3333
|
this.client = client;
|
|
@@ -3336,11 +3383,7 @@ var TopicServiceImpl = class {
|
|
|
3336
3383
|
return response.data ?? [];
|
|
3337
3384
|
}
|
|
3338
3385
|
async events(topic, options = {}) {
|
|
3339
|
-
const response = await this.client.requestWithQuery(
|
|
3340
|
-
"GET",
|
|
3341
|
-
`${EVENTS_BASE_PATH}/topics/${encodeURIComponent(topic)}/events`,
|
|
3342
|
-
options
|
|
3343
|
-
);
|
|
3386
|
+
const response = await this.client.requestWithQuery("GET", `${EVENTS_BASE_PATH}/topics/${encodeURIComponent(topic)}/events`, options);
|
|
3344
3387
|
return response.data ?? [];
|
|
3345
3388
|
}
|
|
3346
3389
|
async *tail(topic, options = {}) {
|
|
@@ -3663,9 +3706,9 @@ var NodeServiceImpl = class {
|
|
|
3663
3706
|
}
|
|
3664
3707
|
};
|
|
3665
3708
|
|
|
3666
|
-
// src/knowledge/
|
|
3667
|
-
var
|
|
3668
|
-
var
|
|
3709
|
+
// src/knowledge/record-links.ts
|
|
3710
|
+
var RECORD_LINKS_BASE_PATH = "/knowledge/v1/record-links";
|
|
3711
|
+
var RecordLinkServiceImpl = class {
|
|
3669
3712
|
constructor(client) {
|
|
3670
3713
|
this.client = client;
|
|
3671
3714
|
}
|
|
@@ -3676,27 +3719,24 @@ var SpaceServiceImpl = class {
|
|
|
3676
3719
|
async listPage(options = {}) {
|
|
3677
3720
|
return this.client.requestWithQuery(
|
|
3678
3721
|
"GET",
|
|
3679
|
-
|
|
3722
|
+
RECORD_LINKS_BASE_PATH,
|
|
3680
3723
|
options
|
|
3681
3724
|
);
|
|
3682
3725
|
}
|
|
3683
|
-
async get(
|
|
3684
|
-
return this.client.request("GET", `${
|
|
3726
|
+
async get(id) {
|
|
3727
|
+
return this.client.request("GET", `${RECORD_LINKS_BASE_PATH}/${id}`);
|
|
3685
3728
|
}
|
|
3686
3729
|
async create(request) {
|
|
3687
|
-
return this.client.request("POST",
|
|
3688
|
-
}
|
|
3689
|
-
async update(slug, request) {
|
|
3690
|
-
return this.client.request("PATCH", `${SPACES_BASE_PATH}/${slug}`, request);
|
|
3730
|
+
return this.client.request("POST", RECORD_LINKS_BASE_PATH, request);
|
|
3691
3731
|
}
|
|
3692
|
-
async delete(
|
|
3693
|
-
await this.client.request("DELETE", `${
|
|
3732
|
+
async delete(id) {
|
|
3733
|
+
await this.client.request("DELETE", `${RECORD_LINKS_BASE_PATH}/${id}`);
|
|
3694
3734
|
}
|
|
3695
3735
|
};
|
|
3696
3736
|
|
|
3697
|
-
// src/knowledge/
|
|
3698
|
-
var
|
|
3699
|
-
var
|
|
3737
|
+
// src/knowledge/spaces.ts
|
|
3738
|
+
var SPACES_BASE_PATH = "/knowledge/v1/spaces";
|
|
3739
|
+
var SpaceServiceImpl = class {
|
|
3700
3740
|
constructor(client) {
|
|
3701
3741
|
this.client = client;
|
|
3702
3742
|
}
|
|
@@ -3707,18 +3747,21 @@ var RecordLinkServiceImpl = class {
|
|
|
3707
3747
|
async listPage(options = {}) {
|
|
3708
3748
|
return this.client.requestWithQuery(
|
|
3709
3749
|
"GET",
|
|
3710
|
-
|
|
3750
|
+
SPACES_BASE_PATH,
|
|
3711
3751
|
options
|
|
3712
3752
|
);
|
|
3713
3753
|
}
|
|
3714
|
-
async get(
|
|
3715
|
-
return this.client.request("GET", `${
|
|
3754
|
+
async get(slug) {
|
|
3755
|
+
return this.client.request("GET", `${SPACES_BASE_PATH}/${slug}`);
|
|
3716
3756
|
}
|
|
3717
3757
|
async create(request) {
|
|
3718
|
-
return this.client.request("POST",
|
|
3758
|
+
return this.client.request("POST", SPACES_BASE_PATH, request);
|
|
3719
3759
|
}
|
|
3720
|
-
async
|
|
3721
|
-
|
|
3760
|
+
async update(slug, request) {
|
|
3761
|
+
return this.client.request("PATCH", `${SPACES_BASE_PATH}/${slug}`, request);
|
|
3762
|
+
}
|
|
3763
|
+
async delete(slug) {
|
|
3764
|
+
await this.client.request("DELETE", `${SPACES_BASE_PATH}/${slug}`);
|
|
3722
3765
|
}
|
|
3723
3766
|
};
|
|
3724
3767
|
var UNASSIGNED_SPACE_SLUG = "__unassigned__";
|
|
@@ -4018,7 +4061,11 @@ var CalendarEventTypeServiceImpl = class {
|
|
|
4018
4061
|
}
|
|
4019
4062
|
client;
|
|
4020
4063
|
list(query = {}) {
|
|
4021
|
-
return this.client.requestWithQuery(
|
|
4064
|
+
return this.client.requestWithQuery(
|
|
4065
|
+
"GET",
|
|
4066
|
+
`${SCHEDULING_BASE_PATH}/calendar-event-types`,
|
|
4067
|
+
query
|
|
4068
|
+
);
|
|
4022
4069
|
}
|
|
4023
4070
|
get(key) {
|
|
4024
4071
|
return this.client.request("GET", `${SCHEDULING_BASE_PATH}/calendar-event-types/${encode2(key)}`);
|
|
@@ -4107,20 +4154,35 @@ var SchedulingLinkServiceImpl = class {
|
|
|
4107
4154
|
return this.client.request("POST", `${SCHEDULING_BASE_PATH}/scheduling-links`, request);
|
|
4108
4155
|
}
|
|
4109
4156
|
update(key, request) {
|
|
4110
|
-
return this.client.request(
|
|
4157
|
+
return this.client.request(
|
|
4158
|
+
"PATCH",
|
|
4159
|
+
`${SCHEDULING_BASE_PATH}/scheduling-links/${encode2(key)}`,
|
|
4160
|
+
request
|
|
4161
|
+
);
|
|
4111
4162
|
}
|
|
4112
4163
|
async delete(key) {
|
|
4113
4164
|
await this.client.request("DELETE", `${SCHEDULING_BASE_PATH}/scheduling-links/${encode2(key)}`);
|
|
4114
4165
|
}
|
|
4115
4166
|
getPage(key, contactId) {
|
|
4116
4167
|
const suffix = contactId ? `?contact_id=${encode2(contactId)}` : "";
|
|
4117
|
-
return this.client.request(
|
|
4168
|
+
return this.client.request(
|
|
4169
|
+
"GET",
|
|
4170
|
+
`${SCHEDULING_BASE_PATH}/scheduling-links/${encode2(key)}/page${suffix}`
|
|
4171
|
+
);
|
|
4118
4172
|
}
|
|
4119
4173
|
getSlots(key, query) {
|
|
4120
|
-
return this.client.requestWithQuery(
|
|
4174
|
+
return this.client.requestWithQuery(
|
|
4175
|
+
"GET",
|
|
4176
|
+
`${SCHEDULING_BASE_PATH}/scheduling-links/${encode2(key)}/slots`,
|
|
4177
|
+
query
|
|
4178
|
+
);
|
|
4121
4179
|
}
|
|
4122
4180
|
book(key, request) {
|
|
4123
|
-
return this.client.request(
|
|
4181
|
+
return this.client.request(
|
|
4182
|
+
"POST",
|
|
4183
|
+
`${SCHEDULING_BASE_PATH}/scheduling-links/${encode2(key)}/calendar-events`,
|
|
4184
|
+
request
|
|
4185
|
+
);
|
|
4124
4186
|
}
|
|
4125
4187
|
};
|
|
4126
4188
|
var PublicSchedulingServiceImpl = class {
|
|
@@ -4133,25 +4195,55 @@ var PublicSchedulingServiceImpl = class {
|
|
|
4133
4195
|
}
|
|
4134
4196
|
getLink(orgId, key, contactId) {
|
|
4135
4197
|
const suffix = contactId ? `?contact_id=${encode2(contactId)}` : "";
|
|
4136
|
-
return this.client.request(
|
|
4198
|
+
return this.client.request(
|
|
4199
|
+
"GET",
|
|
4200
|
+
`${this.base(orgId)}/links/${encode2(key)}${suffix}`,
|
|
4201
|
+
void 0,
|
|
4202
|
+
{ skipAuth: true }
|
|
4203
|
+
);
|
|
4137
4204
|
}
|
|
4138
4205
|
getSlots(orgId, key, query) {
|
|
4139
4206
|
const params = new URLSearchParams({ from: query.from, to: query.to, timezone: query.timezone });
|
|
4140
4207
|
if (query.host_user_id) params.set("host_user_id", query.host_user_id);
|
|
4141
4208
|
if (query.type_key) params.set("type_key", query.type_key);
|
|
4142
|
-
return this.client.request(
|
|
4209
|
+
return this.client.request(
|
|
4210
|
+
"GET",
|
|
4211
|
+
`${this.base(orgId)}/links/${encode2(key)}/slots?${params.toString()}`,
|
|
4212
|
+
void 0,
|
|
4213
|
+
{ skipAuth: true }
|
|
4214
|
+
);
|
|
4143
4215
|
}
|
|
4144
4216
|
book(orgId, key, request) {
|
|
4145
|
-
return this.client.request(
|
|
4217
|
+
return this.client.request(
|
|
4218
|
+
"POST",
|
|
4219
|
+
`${this.base(orgId)}/links/${encode2(key)}/calendar-events`,
|
|
4220
|
+
request,
|
|
4221
|
+
{ skipAuth: true }
|
|
4222
|
+
);
|
|
4146
4223
|
}
|
|
4147
4224
|
getEvent(orgId, id, token) {
|
|
4148
|
-
return this.client.request(
|
|
4225
|
+
return this.client.request(
|
|
4226
|
+
"GET",
|
|
4227
|
+
`${this.base(orgId)}/calendar-events/${encode2(id)}?token=${encode2(token)}`,
|
|
4228
|
+
void 0,
|
|
4229
|
+
{ skipAuth: true }
|
|
4230
|
+
);
|
|
4149
4231
|
}
|
|
4150
4232
|
cancel(orgId, id, request) {
|
|
4151
|
-
return this.client.request(
|
|
4233
|
+
return this.client.request(
|
|
4234
|
+
"POST",
|
|
4235
|
+
`${this.base(orgId)}/calendar-events/${encode2(id)}/cancel`,
|
|
4236
|
+
request,
|
|
4237
|
+
{ skipAuth: true }
|
|
4238
|
+
);
|
|
4152
4239
|
}
|
|
4153
4240
|
reschedule(orgId, id, request) {
|
|
4154
|
-
return this.client.request(
|
|
4241
|
+
return this.client.request(
|
|
4242
|
+
"POST",
|
|
4243
|
+
`${this.base(orgId)}/calendar-events/${encode2(id)}/reschedule`,
|
|
4244
|
+
request,
|
|
4245
|
+
{ skipAuth: true }
|
|
4246
|
+
);
|
|
4155
4247
|
}
|
|
4156
4248
|
};
|
|
4157
4249
|
|
|
@@ -4202,10 +4294,7 @@ var FileServiceImpl = class {
|
|
|
4202
4294
|
}
|
|
4203
4295
|
async update(id, metadata, file) {
|
|
4204
4296
|
const formData = new FormData();
|
|
4205
|
-
formData.append(
|
|
4206
|
-
"metadata",
|
|
4207
|
-
new Blob([JSON.stringify(metadata)], { type: "application/json" })
|
|
4208
|
-
);
|
|
4297
|
+
formData.append("metadata", new Blob([JSON.stringify(metadata)], { type: "application/json" }));
|
|
4209
4298
|
if (file) formData.append("file", file, metadata.name ?? file.name);
|
|
4210
4299
|
const response = await this.client.requestMultipart(
|
|
4211
4300
|
"PATCH",
|