@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
|
@@ -32,97 +32,61 @@
|
|
|
32
32
|
"controls": {
|
|
33
33
|
"string": {
|
|
34
34
|
"primary": "text",
|
|
35
|
-
"compatible": [
|
|
36
|
-
"text",
|
|
37
|
-
"textarea",
|
|
38
|
-
"password",
|
|
39
|
-
"record-filter"
|
|
40
|
-
],
|
|
35
|
+
"compatible": ["text", "textarea", "password", "record-filter"],
|
|
41
36
|
"byFormat": {
|
|
42
37
|
"email": {
|
|
43
38
|
"primary": "email",
|
|
44
|
-
"compatible": [
|
|
45
|
-
"email",
|
|
46
|
-
"text"
|
|
47
|
-
]
|
|
39
|
+
"compatible": ["email", "text"]
|
|
48
40
|
},
|
|
49
41
|
"uri": {
|
|
50
42
|
"primary": "url",
|
|
51
|
-
"compatible": [
|
|
52
|
-
"url",
|
|
53
|
-
"text"
|
|
54
|
-
]
|
|
43
|
+
"compatible": ["url", "text"]
|
|
55
44
|
},
|
|
56
45
|
"uuid": {
|
|
57
46
|
"primary": "text",
|
|
58
|
-
"compatible": [
|
|
59
|
-
"text"
|
|
60
|
-
]
|
|
47
|
+
"compatible": ["text"]
|
|
61
48
|
},
|
|
62
49
|
"hostname": {
|
|
63
50
|
"primary": "text",
|
|
64
|
-
"compatible": [
|
|
65
|
-
"text"
|
|
66
|
-
]
|
|
51
|
+
"compatible": ["text"]
|
|
67
52
|
},
|
|
68
53
|
"ipv4": {
|
|
69
54
|
"primary": "text",
|
|
70
|
-
"compatible": [
|
|
71
|
-
"text"
|
|
72
|
-
]
|
|
55
|
+
"compatible": ["text"]
|
|
73
56
|
},
|
|
74
57
|
"ipv6": {
|
|
75
58
|
"primary": "text",
|
|
76
|
-
"compatible": [
|
|
77
|
-
"text"
|
|
78
|
-
]
|
|
59
|
+
"compatible": ["text"]
|
|
79
60
|
}
|
|
80
61
|
}
|
|
81
62
|
},
|
|
82
63
|
"number": {
|
|
83
64
|
"primary": "number",
|
|
84
|
-
"compatible": [
|
|
85
|
-
"number"
|
|
86
|
-
]
|
|
65
|
+
"compatible": ["number"]
|
|
87
66
|
},
|
|
88
67
|
"integer": {
|
|
89
68
|
"primary": "number",
|
|
90
|
-
"compatible": [
|
|
91
|
-
"number"
|
|
92
|
-
]
|
|
69
|
+
"compatible": ["number"]
|
|
93
70
|
},
|
|
94
71
|
"boolean": {
|
|
95
72
|
"primary": "switch",
|
|
96
|
-
"compatible": [
|
|
97
|
-
"switch",
|
|
98
|
-
"checkbox"
|
|
99
|
-
]
|
|
73
|
+
"compatible": ["switch", "checkbox"]
|
|
100
74
|
},
|
|
101
75
|
"enum": {
|
|
102
76
|
"primary": "select",
|
|
103
|
-
"compatible": [
|
|
104
|
-
"select",
|
|
105
|
-
"radio-group",
|
|
106
|
-
"chip-group"
|
|
107
|
-
]
|
|
77
|
+
"compatible": ["select", "radio-group", "chip-group"]
|
|
108
78
|
},
|
|
109
79
|
"array": {
|
|
110
80
|
"primary": "tag-input",
|
|
111
|
-
"compatible": [
|
|
112
|
-
"tag-input"
|
|
113
|
-
],
|
|
81
|
+
"compatible": ["tag-input"],
|
|
114
82
|
"byItemsType": {
|
|
115
83
|
"string": {
|
|
116
84
|
"primary": "tag-input",
|
|
117
|
-
"compatible": [
|
|
118
|
-
"tag-input"
|
|
119
|
-
]
|
|
85
|
+
"compatible": ["tag-input"]
|
|
120
86
|
},
|
|
121
87
|
"enum": {
|
|
122
88
|
"primary": "multi-select",
|
|
123
|
-
"compatible": [
|
|
124
|
-
"multi-select"
|
|
125
|
-
]
|
|
89
|
+
"compatible": ["multi-select"]
|
|
126
90
|
}
|
|
127
91
|
}
|
|
128
92
|
},
|
|
@@ -132,21 +96,15 @@
|
|
|
132
96
|
"byFormat": {
|
|
133
97
|
"date": {
|
|
134
98
|
"primary": "date-picker",
|
|
135
|
-
"compatible": [
|
|
136
|
-
"date-picker"
|
|
137
|
-
]
|
|
99
|
+
"compatible": ["date-picker"]
|
|
138
100
|
},
|
|
139
101
|
"date-time": {
|
|
140
102
|
"primary": "datetime-picker",
|
|
141
|
-
"compatible": [
|
|
142
|
-
"datetime-picker"
|
|
143
|
-
]
|
|
103
|
+
"compatible": ["datetime-picker"]
|
|
144
104
|
},
|
|
145
105
|
"time": {
|
|
146
106
|
"primary": "time-picker",
|
|
147
|
-
"compatible": [
|
|
148
|
-
"time-picker"
|
|
149
|
-
]
|
|
107
|
+
"compatible": ["time-picker"]
|
|
150
108
|
},
|
|
151
109
|
"duration": {
|
|
152
110
|
"primary": null,
|
|
@@ -160,47 +118,31 @@
|
|
|
160
118
|
},
|
|
161
119
|
"relation": {
|
|
162
120
|
"primary": "entity-picker",
|
|
163
|
-
"compatible": [
|
|
164
|
-
"entity-picker"
|
|
165
|
-
]
|
|
121
|
+
"compatible": ["entity-picker"]
|
|
166
122
|
},
|
|
167
123
|
"user": {
|
|
168
124
|
"primary": "user-picker",
|
|
169
|
-
"compatible": [
|
|
170
|
-
"user-picker"
|
|
171
|
-
]
|
|
125
|
+
"compatible": ["user-picker"]
|
|
172
126
|
},
|
|
173
127
|
"currency": {
|
|
174
128
|
"primary": "currency",
|
|
175
|
-
"compatible": [
|
|
176
|
-
"currency"
|
|
177
|
-
]
|
|
129
|
+
"compatible": ["currency"]
|
|
178
130
|
},
|
|
179
131
|
"contact-address": {
|
|
180
132
|
"primary": "contact-address",
|
|
181
|
-
"compatible": [
|
|
182
|
-
"contact-address",
|
|
183
|
-
"text"
|
|
184
|
-
]
|
|
133
|
+
"compatible": ["contact-address", "text"]
|
|
185
134
|
},
|
|
186
135
|
"knowledge-text": {
|
|
187
136
|
"primary": "knowledge-text",
|
|
188
|
-
"compatible": [
|
|
189
|
-
"knowledge-text"
|
|
190
|
-
]
|
|
137
|
+
"compatible": ["knowledge-text"]
|
|
191
138
|
},
|
|
192
139
|
"file": {
|
|
193
140
|
"primary": "file",
|
|
194
|
-
"compatible": [
|
|
195
|
-
"file",
|
|
196
|
-
"file-viewer"
|
|
197
|
-
]
|
|
141
|
+
"compatible": ["file", "file-viewer"]
|
|
198
142
|
},
|
|
199
143
|
"principal": {
|
|
200
144
|
"primary": "principal-picker",
|
|
201
|
-
"compatible": [
|
|
202
|
-
"principal-picker"
|
|
203
|
-
]
|
|
145
|
+
"compatible": ["principal-picker"]
|
|
204
146
|
}
|
|
205
147
|
}
|
|
206
148
|
}
|
|
@@ -20,9 +20,7 @@ const LIST_EXTENSIONS_BASE_PATH = '/meta/v1/list-extensions'
|
|
|
20
20
|
*/
|
|
21
21
|
export interface ListExtensionService {
|
|
22
22
|
/** Lists entity extensions (auto-paginating iterator). */
|
|
23
|
-
list(
|
|
24
|
-
options?: ListListExtensionsOptions,
|
|
25
|
-
): PageIterator<ListExtension, ListListExtensionsOptions>
|
|
23
|
+
list(options?: ListListExtensionsOptions): PageIterator<ListExtension, ListListExtensionsOptions>
|
|
26
24
|
|
|
27
25
|
/** Fetches a single page of entity extensions. */
|
|
28
26
|
listPage(options?: ListListExtensionsOptions): Promise<ListResult<ListExtension>>
|
|
@@ -3,8 +3,8 @@ import { PageIterator } from '../iterator.js'
|
|
|
3
3
|
import type { ListResult } from '../types/common.js'
|
|
4
4
|
import type {
|
|
5
5
|
CreatePageExtensionRequest,
|
|
6
|
-
PageExtension,
|
|
7
6
|
ListPageExtensionsOptions,
|
|
7
|
+
PageExtension,
|
|
8
8
|
UpdatePageExtensionRequest,
|
|
9
9
|
} from './types.js'
|
|
10
10
|
|
|
@@ -20,9 +20,7 @@ const PAGE_EXTENSIONS_BASE_PATH = '/meta/v1/page-extensions'
|
|
|
20
20
|
*/
|
|
21
21
|
export interface PageExtensionService {
|
|
22
22
|
/** Lists entity extensions (auto-paginating iterator). */
|
|
23
|
-
list(
|
|
24
|
-
options?: ListPageExtensionsOptions,
|
|
25
|
-
): PageIterator<PageExtension, ListPageExtensionsOptions>
|
|
23
|
+
list(options?: ListPageExtensionsOptions): PageIterator<PageExtension, ListPageExtensionsOptions>
|
|
26
24
|
|
|
27
25
|
/** Fetches a single page of entity extensions. */
|
|
28
26
|
listPage(options?: ListPageExtensionsOptions): Promise<ListResult<PageExtension>>
|
package/src/meta/types.ts
CHANGED
|
@@ -2035,7 +2035,11 @@ export interface RecordPageBinding {
|
|
|
2035
2035
|
}
|
|
2036
2036
|
|
|
2037
2037
|
export const RecordPageBindingSchema = z
|
|
2038
|
-
.object({
|
|
2038
|
+
.object({
|
|
2039
|
+
view: z.string().optional(),
|
|
2040
|
+
create: z.string().optional(),
|
|
2041
|
+
edit: z.string().optional(),
|
|
2042
|
+
})
|
|
2039
2043
|
.strict()
|
|
2040
2044
|
|
|
2041
2045
|
/**
|
|
@@ -2051,7 +2055,11 @@ export interface TriggerPageBinding {
|
|
|
2051
2055
|
}
|
|
2052
2056
|
|
|
2053
2057
|
export const TriggerPageBindingSchema = z
|
|
2054
|
-
.object({
|
|
2058
|
+
.object({
|
|
2059
|
+
input: z.string().optional(),
|
|
2060
|
+
running: z.string().optional(),
|
|
2061
|
+
result: z.string().optional(),
|
|
2062
|
+
})
|
|
2055
2063
|
.strict()
|
|
2056
2064
|
|
|
2057
2065
|
/**
|
package/src/scheduling/index.ts
CHANGED
|
@@ -6,20 +6,20 @@ import type {
|
|
|
6
6
|
Calendar,
|
|
7
7
|
CalendarConnection,
|
|
8
8
|
CalendarEvent,
|
|
9
|
-
CalendarEventType,
|
|
10
9
|
CalendarEventsResponse,
|
|
10
|
+
CalendarEventType,
|
|
11
|
+
CancelPublicCalendarEventRequest,
|
|
11
12
|
CreateAvailabilityConstraintRequest,
|
|
12
13
|
CreateCalendarConnectionRequest,
|
|
13
14
|
CreateCalendarEventRequest,
|
|
14
15
|
CreateSchedulingLinkRequest,
|
|
15
|
-
CancelPublicCalendarEventRequest,
|
|
16
16
|
GetPublicSlotsQuery,
|
|
17
17
|
GetSlotsRequest,
|
|
18
18
|
GetSlotsResponse,
|
|
19
19
|
ListAvailabilityConstraintsQuery,
|
|
20
20
|
ListCalendarConnectionsQuery,
|
|
21
|
-
ListCalendarEventTypesQuery,
|
|
22
21
|
ListCalendarEventsQuery,
|
|
22
|
+
ListCalendarEventTypesQuery,
|
|
23
23
|
ListCalendarsQuery,
|
|
24
24
|
ListResponse,
|
|
25
25
|
ListSchedulingLinksQuery,
|
|
@@ -33,12 +33,12 @@ import type {
|
|
|
33
33
|
RespondCalendarEventRequest,
|
|
34
34
|
SchedulingLink,
|
|
35
35
|
SchedulingProfile,
|
|
36
|
-
UpdateCalendarSyncRequest,
|
|
37
36
|
UpdateAvailabilityConstraintRequest,
|
|
38
37
|
UpdateCalendarConnectionRequest,
|
|
39
38
|
UpdateCalendarEventRequest,
|
|
40
39
|
UpdateCalendarEventTypeRequest,
|
|
41
40
|
UpdateCalendarRequest,
|
|
41
|
+
UpdateCalendarSyncRequest,
|
|
42
42
|
UpdateSchedulingLinkRequest,
|
|
43
43
|
} from './types.js'
|
|
44
44
|
|
|
@@ -345,7 +345,11 @@ class CalendarEventTypeServiceImpl implements CalendarEventTypeService {
|
|
|
345
345
|
constructor(private readonly client: ProteosClient) {}
|
|
346
346
|
|
|
347
347
|
list(query: ListCalendarEventTypesQuery = {}): Promise<ListResponse<CalendarEventType>> {
|
|
348
|
-
return this.client.requestWithQuery(
|
|
348
|
+
return this.client.requestWithQuery(
|
|
349
|
+
'GET',
|
|
350
|
+
`${SCHEDULING_BASE_PATH}/calendar-event-types`,
|
|
351
|
+
query,
|
|
352
|
+
)
|
|
349
353
|
}
|
|
350
354
|
|
|
351
355
|
get(key: string): Promise<CalendarEventType> {
|
|
@@ -381,7 +385,10 @@ export interface AvailabilityConstraintService {
|
|
|
381
385
|
listMine(query?: ListAvailabilityConstraintsQuery): Promise<ListResponse<AvailabilityConstraint>>
|
|
382
386
|
getMine(id: string): Promise<AvailabilityConstraint>
|
|
383
387
|
createMine(request: CreateAvailabilityConstraintRequest): Promise<AvailabilityConstraint>
|
|
384
|
-
updateMine(
|
|
388
|
+
updateMine(
|
|
389
|
+
id: string,
|
|
390
|
+
request: UpdateAvailabilityConstraintRequest,
|
|
391
|
+
): Promise<AvailabilityConstraint>
|
|
385
392
|
deleteMine(id: string): Promise<void>
|
|
386
393
|
listForUser(
|
|
387
394
|
userId: string,
|
|
@@ -409,7 +416,9 @@ class AvailabilityConstraintServiceImpl implements AvailabilityConstraintService
|
|
|
409
416
|
: `${SCHEDULING_BASE_PATH}/me/availability-constraints`
|
|
410
417
|
}
|
|
411
418
|
|
|
412
|
-
listMine(
|
|
419
|
+
listMine(
|
|
420
|
+
query: ListAvailabilityConstraintsQuery = {},
|
|
421
|
+
): Promise<ListResponse<AvailabilityConstraint>> {
|
|
413
422
|
return this.client.requestWithQuery('GET', this.base(), query)
|
|
414
423
|
}
|
|
415
424
|
|
|
@@ -421,7 +430,10 @@ class AvailabilityConstraintServiceImpl implements AvailabilityConstraintService
|
|
|
421
430
|
return this.client.request('POST', this.base(), request)
|
|
422
431
|
}
|
|
423
432
|
|
|
424
|
-
updateMine(
|
|
433
|
+
updateMine(
|
|
434
|
+
id: string,
|
|
435
|
+
request: UpdateAvailabilityConstraintRequest,
|
|
436
|
+
): Promise<AvailabilityConstraint> {
|
|
425
437
|
return this.client.request('PATCH', `${this.base()}/${encode(id)}`, request)
|
|
426
438
|
}
|
|
427
439
|
|
|
@@ -504,7 +516,11 @@ class SchedulingLinkServiceImpl implements SchedulingLinkService {
|
|
|
504
516
|
}
|
|
505
517
|
|
|
506
518
|
update(key: string, request: UpdateSchedulingLinkRequest): Promise<SchedulingLink> {
|
|
507
|
-
return this.client.request(
|
|
519
|
+
return this.client.request(
|
|
520
|
+
'PATCH',
|
|
521
|
+
`${SCHEDULING_BASE_PATH}/scheduling-links/${encode(key)}`,
|
|
522
|
+
request,
|
|
523
|
+
)
|
|
508
524
|
}
|
|
509
525
|
|
|
510
526
|
async delete(key: string): Promise<void> {
|
|
@@ -513,15 +529,26 @@ class SchedulingLinkServiceImpl implements SchedulingLinkService {
|
|
|
513
529
|
|
|
514
530
|
getPage(key: string, contactId?: string): Promise<PublicSchedulingLink> {
|
|
515
531
|
const suffix = contactId ? `?contact_id=${encode(contactId)}` : ''
|
|
516
|
-
return this.client.request(
|
|
532
|
+
return this.client.request(
|
|
533
|
+
'GET',
|
|
534
|
+
`${SCHEDULING_BASE_PATH}/scheduling-links/${encode(key)}/page${suffix}`,
|
|
535
|
+
)
|
|
517
536
|
}
|
|
518
537
|
|
|
519
538
|
getSlots(key: string, query: GetPublicSlotsQuery): Promise<GetSlotsResponse> {
|
|
520
|
-
return this.client.requestWithQuery(
|
|
539
|
+
return this.client.requestWithQuery(
|
|
540
|
+
'GET',
|
|
541
|
+
`${SCHEDULING_BASE_PATH}/scheduling-links/${encode(key)}/slots`,
|
|
542
|
+
query,
|
|
543
|
+
)
|
|
521
544
|
}
|
|
522
545
|
|
|
523
546
|
book(key: string, request: BookSchedulingLinkRequest): Promise<BookSchedulingLinkResponse> {
|
|
524
|
-
return this.client.request(
|
|
547
|
+
return this.client.request(
|
|
548
|
+
'POST',
|
|
549
|
+
`${SCHEDULING_BASE_PATH}/scheduling-links/${encode(key)}/calendar-events`,
|
|
550
|
+
request,
|
|
551
|
+
)
|
|
525
552
|
}
|
|
526
553
|
}
|
|
527
554
|
|
|
@@ -533,10 +560,22 @@ class SchedulingLinkServiceImpl implements SchedulingLinkService {
|
|
|
533
560
|
export interface PublicSchedulingService {
|
|
534
561
|
getLink(orgId: string, key: string, contactId?: string): Promise<PublicSchedulingLink>
|
|
535
562
|
getSlots(orgId: string, key: string, query: GetPublicSlotsQuery): Promise<GetSlotsResponse>
|
|
536
|
-
book(
|
|
563
|
+
book(
|
|
564
|
+
orgId: string,
|
|
565
|
+
key: string,
|
|
566
|
+
request: BookSchedulingLinkRequest,
|
|
567
|
+
): Promise<PublicBookSchedulingLinkResponse>
|
|
537
568
|
getEvent(orgId: string, id: string, token: string): Promise<PublicCalendarEvent>
|
|
538
|
-
cancel(
|
|
539
|
-
|
|
569
|
+
cancel(
|
|
570
|
+
orgId: string,
|
|
571
|
+
id: string,
|
|
572
|
+
request: CancelPublicCalendarEventRequest,
|
|
573
|
+
): Promise<PublicCalendarEvent>
|
|
574
|
+
reschedule(
|
|
575
|
+
orgId: string,
|
|
576
|
+
id: string,
|
|
577
|
+
request: ReschedulePublicCalendarEventRequest,
|
|
578
|
+
): Promise<PublicBookSchedulingLinkResponse>
|
|
540
579
|
}
|
|
541
580
|
|
|
542
581
|
class PublicSchedulingServiceImpl implements PublicSchedulingService {
|
|
@@ -548,29 +587,71 @@ class PublicSchedulingServiceImpl implements PublicSchedulingService {
|
|
|
548
587
|
|
|
549
588
|
getLink(orgId: string, key: string, contactId?: string): Promise<PublicSchedulingLink> {
|
|
550
589
|
const suffix = contactId ? `?contact_id=${encode(contactId)}` : ''
|
|
551
|
-
return this.client.request(
|
|
590
|
+
return this.client.request(
|
|
591
|
+
'GET',
|
|
592
|
+
`${this.base(orgId)}/links/${encode(key)}${suffix}`,
|
|
593
|
+
undefined,
|
|
594
|
+
{ skipAuth: true },
|
|
595
|
+
)
|
|
552
596
|
}
|
|
553
597
|
|
|
554
598
|
getSlots(orgId: string, key: string, query: GetPublicSlotsQuery): Promise<GetSlotsResponse> {
|
|
555
599
|
const params = new URLSearchParams({ from: query.from, to: query.to, timezone: query.timezone })
|
|
556
600
|
if (query.host_user_id) params.set('host_user_id', query.host_user_id)
|
|
557
601
|
if (query.type_key) params.set('type_key', query.type_key)
|
|
558
|
-
return this.client.request(
|
|
602
|
+
return this.client.request(
|
|
603
|
+
'GET',
|
|
604
|
+
`${this.base(orgId)}/links/${encode(key)}/slots?${params.toString()}`,
|
|
605
|
+
undefined,
|
|
606
|
+
{ skipAuth: true },
|
|
607
|
+
)
|
|
559
608
|
}
|
|
560
609
|
|
|
561
|
-
book(
|
|
562
|
-
|
|
610
|
+
book(
|
|
611
|
+
orgId: string,
|
|
612
|
+
key: string,
|
|
613
|
+
request: BookSchedulingLinkRequest,
|
|
614
|
+
): Promise<PublicBookSchedulingLinkResponse> {
|
|
615
|
+
return this.client.request(
|
|
616
|
+
'POST',
|
|
617
|
+
`${this.base(orgId)}/links/${encode(key)}/calendar-events`,
|
|
618
|
+
request,
|
|
619
|
+
{ skipAuth: true },
|
|
620
|
+
)
|
|
563
621
|
}
|
|
564
622
|
|
|
565
623
|
getEvent(orgId: string, id: string, token: string): Promise<PublicCalendarEvent> {
|
|
566
|
-
return this.client.request(
|
|
624
|
+
return this.client.request(
|
|
625
|
+
'GET',
|
|
626
|
+
`${this.base(orgId)}/calendar-events/${encode(id)}?token=${encode(token)}`,
|
|
627
|
+
undefined,
|
|
628
|
+
{ skipAuth: true },
|
|
629
|
+
)
|
|
567
630
|
}
|
|
568
631
|
|
|
569
|
-
cancel(
|
|
570
|
-
|
|
632
|
+
cancel(
|
|
633
|
+
orgId: string,
|
|
634
|
+
id: string,
|
|
635
|
+
request: CancelPublicCalendarEventRequest,
|
|
636
|
+
): Promise<PublicCalendarEvent> {
|
|
637
|
+
return this.client.request(
|
|
638
|
+
'POST',
|
|
639
|
+
`${this.base(orgId)}/calendar-events/${encode(id)}/cancel`,
|
|
640
|
+
request,
|
|
641
|
+
{ skipAuth: true },
|
|
642
|
+
)
|
|
571
643
|
}
|
|
572
644
|
|
|
573
|
-
reschedule(
|
|
574
|
-
|
|
645
|
+
reschedule(
|
|
646
|
+
orgId: string,
|
|
647
|
+
id: string,
|
|
648
|
+
request: ReschedulePublicCalendarEventRequest,
|
|
649
|
+
): Promise<PublicBookSchedulingLinkResponse> {
|
|
650
|
+
return this.client.request(
|
|
651
|
+
'POST',
|
|
652
|
+
`${this.base(orgId)}/calendar-events/${encode(id)}/reschedule`,
|
|
653
|
+
request,
|
|
654
|
+
{ skipAuth: true },
|
|
655
|
+
)
|
|
575
656
|
}
|
|
576
657
|
}
|
package/src/storage/files.ts
CHANGED
|
@@ -181,10 +181,7 @@ export class FileServiceImpl implements FileService {
|
|
|
181
181
|
// and stops consuming parts at `file` — metadata appended after the file
|
|
182
182
|
// part would be silently dropped.
|
|
183
183
|
const formData = new FormData()
|
|
184
|
-
formData.append(
|
|
185
|
-
'metadata',
|
|
186
|
-
new Blob([JSON.stringify(metadata)], { type: 'application/json' }),
|
|
187
|
-
)
|
|
184
|
+
formData.append('metadata', new Blob([JSON.stringify(metadata)], { type: 'application/json' }))
|
|
188
185
|
if (file) formData.append('file', file, metadata.name ?? file.name)
|
|
189
186
|
const response = await this.client.requestMultipart<{ data: StorageFile }>(
|
|
190
187
|
'PATCH',
|
package/src/workflow/types.ts
CHANGED
|
@@ -168,9 +168,9 @@ export type PropertyType =
|
|
|
168
168
|
| 'credentials_select'
|
|
169
169
|
| 'button'
|
|
170
170
|
/** Edits a platform attribute list (`Attribute[]`) via the shared attribute schema builder. */
|
|
171
|
-
|
|
171
|
+
/** Edits a decision-question map (model-decide `questions`) via the questions builder, with a raw-JSON mode. */
|
|
172
172
|
| 'decision_questions'
|
|
173
|
-
| 'attribute_schema'
|
|
173
|
+
| 'attribute_schema'
|
|
174
174
|
// Wave 2 (editor support lands with Phase 3):
|
|
175
175
|
| 'resource_locator'
|
|
176
176
|
| 'resource_mapper'
|