@avallon-labs/sdk 38.1.0 → 39.0.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/README.md +29 -17
- package/dist/index.d.ts +4100 -2150
- package/dist/index.js +179 -116
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -42,7 +42,7 @@ async function doFetch(url, options, withAuth) {
|
|
|
42
42
|
if (!response.ok) {
|
|
43
43
|
throw new AvallonError(response.status, body);
|
|
44
44
|
}
|
|
45
|
-
return body
|
|
45
|
+
return body;
|
|
46
46
|
}
|
|
47
47
|
async function customFetch(url, options) {
|
|
48
48
|
return doFetch(url, options, true);
|
|
@@ -454,12 +454,15 @@ var getGetArtifactUploadUrlUrl = () => {
|
|
|
454
454
|
return `/v1/artifacts/get-upload-url`;
|
|
455
455
|
};
|
|
456
456
|
var getArtifactUploadUrl = async (getArtifactUploadUrlBody, options) => {
|
|
457
|
-
return customFetch(
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
457
|
+
return customFetch(
|
|
458
|
+
getGetArtifactUploadUrlUrl(),
|
|
459
|
+
{
|
|
460
|
+
...options,
|
|
461
|
+
method: "POST",
|
|
462
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
463
|
+
body: JSON.stringify(getArtifactUploadUrlBody)
|
|
464
|
+
}
|
|
465
|
+
);
|
|
463
466
|
};
|
|
464
467
|
var getGetArtifactUploadUrlMutationFetcher = (options) => {
|
|
465
468
|
return (_, { arg }) => {
|
|
@@ -481,12 +484,15 @@ var getUpdateArtifactMetadataUrl = (id) => {
|
|
|
481
484
|
return `/v1/artifacts/${id}/metadata`;
|
|
482
485
|
};
|
|
483
486
|
var updateArtifactMetadata = async (id, updateArtifactMetadataBody, options) => {
|
|
484
|
-
return customFetch(
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
487
|
+
return customFetch(
|
|
488
|
+
getUpdateArtifactMetadataUrl(id),
|
|
489
|
+
{
|
|
490
|
+
...options,
|
|
491
|
+
method: "PATCH",
|
|
492
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
493
|
+
body: JSON.stringify(updateArtifactMetadataBody)
|
|
494
|
+
}
|
|
495
|
+
);
|
|
490
496
|
};
|
|
491
497
|
var getUpdateArtifactMetadataMutationFetcher = (id, options) => {
|
|
492
498
|
return (_, { arg }) => {
|
|
@@ -784,10 +790,13 @@ var getListCallFeedbackUrl = (id, params) => {
|
|
|
784
790
|
return stringifiedParams.length > 0 ? `/v1/calls/${id}/feedback?${stringifiedParams}` : `/v1/calls/${id}/feedback`;
|
|
785
791
|
};
|
|
786
792
|
var listCallFeedback = async (id, params, options) => {
|
|
787
|
-
return customFetch(
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
793
|
+
return customFetch(
|
|
794
|
+
getListCallFeedbackUrl(id, params),
|
|
795
|
+
{
|
|
796
|
+
...options,
|
|
797
|
+
method: "GET"
|
|
798
|
+
}
|
|
799
|
+
);
|
|
791
800
|
};
|
|
792
801
|
var getListCallFeedbackKey = (id, params) => [`/v1/calls/${id}/feedback`, ...params ? [params] : []];
|
|
793
802
|
var useListCallFeedback = (id, params, options) => {
|
|
@@ -809,10 +818,13 @@ var getDeleteCallFeedbackUrl = (id, feedbackId) => {
|
|
|
809
818
|
return `/v1/calls/${id}/feedback/${feedbackId}`;
|
|
810
819
|
};
|
|
811
820
|
var deleteCallFeedback = async (id, feedbackId, options) => {
|
|
812
|
-
return customFetch(
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
821
|
+
return customFetch(
|
|
822
|
+
getDeleteCallFeedbackUrl(id, feedbackId),
|
|
823
|
+
{
|
|
824
|
+
...options,
|
|
825
|
+
method: "DELETE"
|
|
826
|
+
}
|
|
827
|
+
);
|
|
816
828
|
};
|
|
817
829
|
var getDeleteCallFeedbackMutationFetcher = (id, feedbackId, options) => {
|
|
818
830
|
return (_, __) => {
|
|
@@ -1293,12 +1305,15 @@ var getUpdateChatAgentUrl = (chatAgentId) => {
|
|
|
1293
1305
|
return `/v1/chat-agents/${chatAgentId}`;
|
|
1294
1306
|
};
|
|
1295
1307
|
var updateChatAgent = async (chatAgentId, updateChatAgentRequest, options) => {
|
|
1296
|
-
return customFetch(
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1308
|
+
return customFetch(
|
|
1309
|
+
getUpdateChatAgentUrl(chatAgentId),
|
|
1310
|
+
{
|
|
1311
|
+
...options,
|
|
1312
|
+
method: "PATCH",
|
|
1313
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
1314
|
+
body: JSON.stringify(updateChatAgentRequest)
|
|
1315
|
+
}
|
|
1316
|
+
);
|
|
1302
1317
|
};
|
|
1303
1318
|
var getUpdateChatAgentMutationFetcher = (chatAgentId, options) => {
|
|
1304
1319
|
return (_, { arg }) => {
|
|
@@ -1348,10 +1363,13 @@ var getGetChatAgentPromptUrl = (chatAgentId) => {
|
|
|
1348
1363
|
return `/v1/chat-agents/${chatAgentId}/prompt`;
|
|
1349
1364
|
};
|
|
1350
1365
|
var getChatAgentPrompt = async (chatAgentId, options) => {
|
|
1351
|
-
return customFetch(
|
|
1352
|
-
|
|
1353
|
-
|
|
1354
|
-
|
|
1366
|
+
return customFetch(
|
|
1367
|
+
getGetChatAgentPromptUrl(chatAgentId),
|
|
1368
|
+
{
|
|
1369
|
+
...options,
|
|
1370
|
+
method: "GET"
|
|
1371
|
+
}
|
|
1372
|
+
);
|
|
1355
1373
|
};
|
|
1356
1374
|
var getGetChatAgentPromptKey = (chatAgentId) => [`/v1/chat-agents/${chatAgentId}/prompt`];
|
|
1357
1375
|
var useGetChatAgentPrompt = (chatAgentId, options) => {
|
|
@@ -1458,10 +1476,13 @@ var getGetPublicChatAgentUrl = (chatAgentId) => {
|
|
|
1458
1476
|
return `/public/v1/chat-agents/${chatAgentId}`;
|
|
1459
1477
|
};
|
|
1460
1478
|
var getPublicChatAgent = async (chatAgentId, options) => {
|
|
1461
|
-
return customFetch(
|
|
1462
|
-
|
|
1463
|
-
|
|
1464
|
-
|
|
1479
|
+
return customFetch(
|
|
1480
|
+
getGetPublicChatAgentUrl(chatAgentId),
|
|
1481
|
+
{
|
|
1482
|
+
...options,
|
|
1483
|
+
method: "GET"
|
|
1484
|
+
}
|
|
1485
|
+
);
|
|
1465
1486
|
};
|
|
1466
1487
|
var getGetPublicChatAgentKey = (chatAgentId) => [`/public/v1/chat-agents/${chatAgentId}`];
|
|
1467
1488
|
var useGetPublicChatAgent = (chatAgentId, options) => {
|
|
@@ -1561,10 +1582,13 @@ var getListChatMessagesUrl = (chatId, params) => {
|
|
|
1561
1582
|
return stringifiedParams.length > 0 ? `/v1/chats/${chatId}/messages?${stringifiedParams}` : `/v1/chats/${chatId}/messages`;
|
|
1562
1583
|
};
|
|
1563
1584
|
var listChatMessages = async (chatId, params, options) => {
|
|
1564
|
-
return customFetch(
|
|
1565
|
-
|
|
1566
|
-
|
|
1567
|
-
|
|
1585
|
+
return customFetch(
|
|
1586
|
+
getListChatMessagesUrl(chatId, params),
|
|
1587
|
+
{
|
|
1588
|
+
...options,
|
|
1589
|
+
method: "GET"
|
|
1590
|
+
}
|
|
1591
|
+
);
|
|
1568
1592
|
};
|
|
1569
1593
|
var getListChatMessagesKey = (chatId, params) => [`/v1/chats/${chatId}/messages`, ...params ? [params] : []];
|
|
1570
1594
|
var useListChatMessages = (chatId, params, options) => {
|
|
@@ -1844,10 +1868,13 @@ var getListExtractorJobsUrl = (params) => {
|
|
|
1844
1868
|
return stringifiedParams.length > 0 ? `/v1/extractor-jobs?${stringifiedParams}` : `/v1/extractor-jobs`;
|
|
1845
1869
|
};
|
|
1846
1870
|
var listExtractorJobs = async (params, options) => {
|
|
1847
|
-
return customFetch(
|
|
1848
|
-
|
|
1849
|
-
|
|
1850
|
-
|
|
1871
|
+
return customFetch(
|
|
1872
|
+
getListExtractorJobsUrl(params),
|
|
1873
|
+
{
|
|
1874
|
+
...options,
|
|
1875
|
+
method: "GET"
|
|
1876
|
+
}
|
|
1877
|
+
);
|
|
1851
1878
|
};
|
|
1852
1879
|
var getListExtractorJobsKey = (params) => [`/v1/extractor-jobs`, ...params ? [params] : []];
|
|
1853
1880
|
var useListExtractorJobs = (params, options) => {
|
|
@@ -2088,10 +2115,13 @@ var getGetExtractCitationsUrl = (id) => {
|
|
|
2088
2115
|
return `/v1/extracts/${id}/citations`;
|
|
2089
2116
|
};
|
|
2090
2117
|
var getExtractCitations = async (id, options) => {
|
|
2091
|
-
return customFetch(
|
|
2092
|
-
|
|
2093
|
-
|
|
2094
|
-
|
|
2118
|
+
return customFetch(
|
|
2119
|
+
getGetExtractCitationsUrl(id),
|
|
2120
|
+
{
|
|
2121
|
+
...options,
|
|
2122
|
+
method: "GET"
|
|
2123
|
+
}
|
|
2124
|
+
);
|
|
2095
2125
|
};
|
|
2096
2126
|
var getGetExtractCitationsKey = (id) => [`/v1/extracts/${id}/citations`];
|
|
2097
2127
|
var useGetExtractCitations = (id, options) => {
|
|
@@ -2164,10 +2194,13 @@ var getCheckInboxAvailabilityUrl = (params) => {
|
|
|
2164
2194
|
return stringifiedParams.length > 0 ? `/v1/inboxes/availability?${stringifiedParams}` : `/v1/inboxes/availability`;
|
|
2165
2195
|
};
|
|
2166
2196
|
var checkInboxAvailability = async (params, options) => {
|
|
2167
|
-
return customFetch(
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2197
|
+
return customFetch(
|
|
2198
|
+
getCheckInboxAvailabilityUrl(params),
|
|
2199
|
+
{
|
|
2200
|
+
...options,
|
|
2201
|
+
method: "GET"
|
|
2202
|
+
}
|
|
2203
|
+
);
|
|
2171
2204
|
};
|
|
2172
2205
|
var getCheckInboxAvailabilityKey = (params) => [`/v1/inboxes/availability`, ...params ? [params] : []];
|
|
2173
2206
|
var useCheckInboxAvailability = (params, options) => {
|
|
@@ -2782,13 +2815,10 @@ var getRevokeTeamInvitationUrl = (invitationId) => {
|
|
|
2782
2815
|
return `/v1/team/invitations/${invitationId}`;
|
|
2783
2816
|
};
|
|
2784
2817
|
var revokeTeamInvitation = async (invitationId, options) => {
|
|
2785
|
-
return customFetch(
|
|
2786
|
-
|
|
2787
|
-
|
|
2788
|
-
|
|
2789
|
-
method: "DELETE"
|
|
2790
|
-
}
|
|
2791
|
-
);
|
|
2818
|
+
return customFetch(getRevokeTeamInvitationUrl(invitationId), {
|
|
2819
|
+
...options,
|
|
2820
|
+
method: "DELETE"
|
|
2821
|
+
});
|
|
2792
2822
|
};
|
|
2793
2823
|
var getRevokeTeamInvitationMutationFetcher = (invitationId, options) => {
|
|
2794
2824
|
return (_, __) => {
|
|
@@ -2813,10 +2843,13 @@ var getResendTeamInvitationUrl = (invitationId) => {
|
|
|
2813
2843
|
return `/v1/team/invitations/${invitationId}/resend`;
|
|
2814
2844
|
};
|
|
2815
2845
|
var resendTeamInvitation = async (invitationId, options) => {
|
|
2816
|
-
return customFetch(
|
|
2817
|
-
|
|
2818
|
-
|
|
2819
|
-
|
|
2846
|
+
return customFetch(
|
|
2847
|
+
getResendTeamInvitationUrl(invitationId),
|
|
2848
|
+
{
|
|
2849
|
+
...options,
|
|
2850
|
+
method: "POST"
|
|
2851
|
+
}
|
|
2852
|
+
);
|
|
2820
2853
|
};
|
|
2821
2854
|
var getResendTeamInvitationMutationFetcher = (invitationId, options) => {
|
|
2822
2855
|
return (_, __) => {
|
|
@@ -3589,12 +3622,15 @@ var getCreateWorkerWebhookUrl = (workerId) => {
|
|
|
3589
3622
|
return `/v1/workers/${workerId}/webhooks`;
|
|
3590
3623
|
};
|
|
3591
3624
|
var createWorkerWebhook = async (workerId, createWorkerWebhookBody, options) => {
|
|
3592
|
-
return customFetch(
|
|
3593
|
-
|
|
3594
|
-
|
|
3595
|
-
|
|
3596
|
-
|
|
3597
|
-
|
|
3625
|
+
return customFetch(
|
|
3626
|
+
getCreateWorkerWebhookUrl(workerId),
|
|
3627
|
+
{
|
|
3628
|
+
...options,
|
|
3629
|
+
method: "POST",
|
|
3630
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
3631
|
+
body: JSON.stringify(createWorkerWebhookBody)
|
|
3632
|
+
}
|
|
3633
|
+
);
|
|
3598
3634
|
};
|
|
3599
3635
|
var getCreateWorkerWebhookMutationFetcher = (workerId, options) => {
|
|
3600
3636
|
return (_, { arg }) => {
|
|
@@ -3616,10 +3652,13 @@ var getListWorkerWebhooksUrl = (workerId) => {
|
|
|
3616
3652
|
return `/v1/workers/${workerId}/webhooks`;
|
|
3617
3653
|
};
|
|
3618
3654
|
var listWorkerWebhooks = async (workerId, options) => {
|
|
3619
|
-
return customFetch(
|
|
3620
|
-
|
|
3621
|
-
|
|
3622
|
-
|
|
3655
|
+
return customFetch(
|
|
3656
|
+
getListWorkerWebhooksUrl(workerId),
|
|
3657
|
+
{
|
|
3658
|
+
...options,
|
|
3659
|
+
method: "GET"
|
|
3660
|
+
}
|
|
3661
|
+
);
|
|
3623
3662
|
};
|
|
3624
3663
|
var getListWorkerWebhooksKey = (workerId) => [`/v1/workers/${workerId}/webhooks`];
|
|
3625
3664
|
var useListWorkerWebhooks = (workerId, options) => {
|
|
@@ -3641,12 +3680,15 @@ var getCreateAgentWebhookUrl = (voiceAgentId) => {
|
|
|
3641
3680
|
return `/v1/voice-agents/${voiceAgentId}/webhooks`;
|
|
3642
3681
|
};
|
|
3643
3682
|
var createAgentWebhook = async (voiceAgentId, createAgentWebhookBody, options) => {
|
|
3644
|
-
return customFetch(
|
|
3645
|
-
|
|
3646
|
-
|
|
3647
|
-
|
|
3648
|
-
|
|
3649
|
-
|
|
3683
|
+
return customFetch(
|
|
3684
|
+
getCreateAgentWebhookUrl(voiceAgentId),
|
|
3685
|
+
{
|
|
3686
|
+
...options,
|
|
3687
|
+
method: "POST",
|
|
3688
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
3689
|
+
body: JSON.stringify(createAgentWebhookBody)
|
|
3690
|
+
}
|
|
3691
|
+
);
|
|
3650
3692
|
};
|
|
3651
3693
|
var getCreateAgentWebhookMutationFetcher = (voiceAgentId, options) => {
|
|
3652
3694
|
return (_, { arg }) => {
|
|
@@ -3699,12 +3741,15 @@ var getCreateInboxWebhookUrl = (inboxId) => {
|
|
|
3699
3741
|
return `/v1/inboxes/${inboxId}/webhooks`;
|
|
3700
3742
|
};
|
|
3701
3743
|
var createInboxWebhook = async (inboxId, createInboxWebhookBody, options) => {
|
|
3702
|
-
return customFetch(
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
|
|
3707
|
-
|
|
3744
|
+
return customFetch(
|
|
3745
|
+
getCreateInboxWebhookUrl(inboxId),
|
|
3746
|
+
{
|
|
3747
|
+
...options,
|
|
3748
|
+
method: "POST",
|
|
3749
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
3750
|
+
body: JSON.stringify(createInboxWebhookBody)
|
|
3751
|
+
}
|
|
3752
|
+
);
|
|
3708
3753
|
};
|
|
3709
3754
|
var getCreateInboxWebhookMutationFetcher = (inboxId, options) => {
|
|
3710
3755
|
return (_, { arg }) => {
|
|
@@ -3726,10 +3771,13 @@ var getListInboxWebhooksUrl = (inboxId) => {
|
|
|
3726
3771
|
return `/v1/inboxes/${inboxId}/webhooks`;
|
|
3727
3772
|
};
|
|
3728
3773
|
var listInboxWebhooks = async (inboxId, options) => {
|
|
3729
|
-
return customFetch(
|
|
3730
|
-
|
|
3731
|
-
|
|
3732
|
-
|
|
3774
|
+
return customFetch(
|
|
3775
|
+
getListInboxWebhooksUrl(inboxId),
|
|
3776
|
+
{
|
|
3777
|
+
...options,
|
|
3778
|
+
method: "GET"
|
|
3779
|
+
}
|
|
3780
|
+
);
|
|
3733
3781
|
};
|
|
3734
3782
|
var getListInboxWebhooksKey = (inboxId) => [`/v1/inboxes/${inboxId}/webhooks`];
|
|
3735
3783
|
var useListInboxWebhooks = (inboxId, options) => {
|
|
@@ -3751,12 +3799,15 @@ var getCreateExtractorWebhookUrl = (id) => {
|
|
|
3751
3799
|
return `/v1/extractors/${id}/webhooks`;
|
|
3752
3800
|
};
|
|
3753
3801
|
var createExtractorWebhook = async (id, createExtractorWebhookBody, options) => {
|
|
3754
|
-
return customFetch(
|
|
3755
|
-
|
|
3756
|
-
|
|
3757
|
-
|
|
3758
|
-
|
|
3759
|
-
|
|
3802
|
+
return customFetch(
|
|
3803
|
+
getCreateExtractorWebhookUrl(id),
|
|
3804
|
+
{
|
|
3805
|
+
...options,
|
|
3806
|
+
method: "POST",
|
|
3807
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
3808
|
+
body: JSON.stringify(createExtractorWebhookBody)
|
|
3809
|
+
}
|
|
3810
|
+
);
|
|
3760
3811
|
};
|
|
3761
3812
|
var getCreateExtractorWebhookMutationFetcher = (id, options) => {
|
|
3762
3813
|
return (_, { arg }) => {
|
|
@@ -4053,12 +4104,15 @@ var getUpdateWorkerRunScopeUrl = (workerRunId) => {
|
|
|
4053
4104
|
return `/v1/worker-runs/${workerRunId}/scope`;
|
|
4054
4105
|
};
|
|
4055
4106
|
var updateWorkerRunScope = async (workerRunId, updateWorkerRunScopeBody, options) => {
|
|
4056
|
-
return customFetch(
|
|
4057
|
-
|
|
4058
|
-
|
|
4059
|
-
|
|
4060
|
-
|
|
4061
|
-
|
|
4107
|
+
return customFetch(
|
|
4108
|
+
getUpdateWorkerRunScopeUrl(workerRunId),
|
|
4109
|
+
{
|
|
4110
|
+
...options,
|
|
4111
|
+
method: "PATCH",
|
|
4112
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
4113
|
+
body: JSON.stringify(updateWorkerRunScopeBody)
|
|
4114
|
+
}
|
|
4115
|
+
);
|
|
4062
4116
|
};
|
|
4063
4117
|
var getUpdateWorkerRunScopeMutationFetcher = (workerRunId, options) => {
|
|
4064
4118
|
return (_, { arg }) => {
|
|
@@ -4083,10 +4137,13 @@ var getCancelWorkerRunUrl = (workerRunId) => {
|
|
|
4083
4137
|
return `/v1/worker-runs/${workerRunId}/cancel`;
|
|
4084
4138
|
};
|
|
4085
4139
|
var cancelWorkerRun = async (workerRunId, options) => {
|
|
4086
|
-
return customFetch(
|
|
4087
|
-
|
|
4088
|
-
|
|
4089
|
-
|
|
4140
|
+
return customFetch(
|
|
4141
|
+
getCancelWorkerRunUrl(workerRunId),
|
|
4142
|
+
{
|
|
4143
|
+
...options,
|
|
4144
|
+
method: "POST"
|
|
4145
|
+
}
|
|
4146
|
+
);
|
|
4090
4147
|
};
|
|
4091
4148
|
var getCancelWorkerRunMutationFetcher = (workerRunId, options) => {
|
|
4092
4149
|
return (_, __) => {
|
|
@@ -4352,12 +4409,15 @@ var getUpdateWorkerPromptUrl = (workerId) => {
|
|
|
4352
4409
|
return `/v1/workers/${workerId}/prompt`;
|
|
4353
4410
|
};
|
|
4354
4411
|
var updateWorkerPrompt = async (workerId, updateWorkerPromptBody, options) => {
|
|
4355
|
-
return customFetch(
|
|
4356
|
-
|
|
4357
|
-
|
|
4358
|
-
|
|
4359
|
-
|
|
4360
|
-
|
|
4412
|
+
return customFetch(
|
|
4413
|
+
getUpdateWorkerPromptUrl(workerId),
|
|
4414
|
+
{
|
|
4415
|
+
...options,
|
|
4416
|
+
method: "PATCH",
|
|
4417
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
4418
|
+
body: JSON.stringify(updateWorkerPromptBody)
|
|
4419
|
+
}
|
|
4420
|
+
);
|
|
4361
4421
|
};
|
|
4362
4422
|
var getUpdateWorkerPromptMutationFetcher = (workerId, options) => {
|
|
4363
4423
|
return (_, { arg }) => {
|
|
@@ -4404,12 +4464,15 @@ var getUpdateWorkerMcpsUrl = (workerId) => {
|
|
|
4404
4464
|
return `/v1/workers/${workerId}/mcps`;
|
|
4405
4465
|
};
|
|
4406
4466
|
var updateWorkerMcps = async (workerId, updateWorkerMcpsBody, options) => {
|
|
4407
|
-
return customFetch(
|
|
4408
|
-
|
|
4409
|
-
|
|
4410
|
-
|
|
4411
|
-
|
|
4412
|
-
|
|
4467
|
+
return customFetch(
|
|
4468
|
+
getUpdateWorkerMcpsUrl(workerId),
|
|
4469
|
+
{
|
|
4470
|
+
...options,
|
|
4471
|
+
method: "PATCH",
|
|
4472
|
+
headers: { "Content-Type": "application/json", ...options?.headers },
|
|
4473
|
+
body: JSON.stringify(updateWorkerMcpsBody)
|
|
4474
|
+
}
|
|
4475
|
+
);
|
|
4413
4476
|
};
|
|
4414
4477
|
var getUpdateWorkerMcpsMutationFetcher = (workerId, options) => {
|
|
4415
4478
|
return (_, { arg }) => {
|