@getmodus/sdk 0.2.1 → 0.2.2
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/CHANGELOG.md +5 -3
- package/README.md +4 -0
- package/dist/{chunk-UOBVSNOW.js → chunk-OUFN2O5C.js} +124 -93
- package/dist/chunk-OUFN2O5C.js.map +1 -0
- package/dist/{conversations-DoyTcWk6.d.cts → conversations-BP2sI3Q5.d.cts} +108 -90
- package/dist/{conversations-DoyTcWk6.d.ts → conversations-BP2sI3Q5.d.ts} +108 -90
- package/dist/index.cjs +237 -125
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +26 -10
- package/dist/index.d.ts +26 -10
- package/dist/index.js +114 -34
- package/dist/index.js.map +1 -1
- package/dist/management/index.cjs +129 -93
- package/dist/management/index.cjs.map +1 -1
- package/dist/management/index.d.cts +1 -1
- package/dist/management/index.d.ts +1 -1
- package/dist/management/index.js +7 -2
- package/dist/management/index.js.map +1 -1
- package/package.json +2 -1
- package/dist/chunk-UOBVSNOW.js.map +0 -1
|
@@ -97,6 +97,8 @@ var ValidationError = class extends ModusError {
|
|
|
97
97
|
// src/_auth.ts
|
|
98
98
|
var ENV_API_KEY = "MODUS_API_KEY";
|
|
99
99
|
var ENV_BASE_URL = "MODUS_BASE_URL";
|
|
100
|
+
var ENV_AGENT_HOST = "MODUS_AGENT_HOST";
|
|
101
|
+
var ENV_ORGANIZATION_ID = "MODUS_ORGANIZATION_ID";
|
|
100
102
|
var ENV_TIMEOUT = "MODUS_TIMEOUT";
|
|
101
103
|
var ENV_MAX_RETRIES = "MODUS_MAX_RETRIES";
|
|
102
104
|
var KEY_PREFIX = "modus_";
|
|
@@ -104,12 +106,12 @@ function resolveApiKey(apiKey) {
|
|
|
104
106
|
const key = apiKey ?? process.env[ENV_API_KEY];
|
|
105
107
|
if (!key) {
|
|
106
108
|
throw new AuthenticationError(
|
|
107
|
-
`No API key provided. Pass apiKey or set the ${ENV_API_KEY} environment variable. Create a token at app.
|
|
109
|
+
`No API key provided. Pass apiKey or set the ${ENV_API_KEY} environment variable. Create a token at app.getmodus.com \u2192 Settings \u2192 API Tokens.`
|
|
108
110
|
);
|
|
109
111
|
}
|
|
110
112
|
if (!key.startsWith(KEY_PREFIX)) {
|
|
111
113
|
throw new AuthenticationError(
|
|
112
|
-
`Invalid API key format. Modus API keys start with '${KEY_PREFIX}'. Create a token at app.
|
|
114
|
+
`Invalid API key format. Modus API keys start with '${KEY_PREFIX}'. Create a token at app.getmodus.com \u2192 Settings \u2192 API Tokens.`
|
|
113
115
|
);
|
|
114
116
|
}
|
|
115
117
|
return key;
|
|
@@ -117,6 +119,15 @@ function resolveApiKey(apiKey) {
|
|
|
117
119
|
function resolveBaseUrl(baseUrl) {
|
|
118
120
|
return baseUrl ?? process.env[ENV_BASE_URL] ?? void 0;
|
|
119
121
|
}
|
|
122
|
+
function resolveAgentHost(agentHost) {
|
|
123
|
+
return agentHost ?? process.env[ENV_AGENT_HOST] ?? void 0;
|
|
124
|
+
}
|
|
125
|
+
function resolveOrganizationId(organizationId) {
|
|
126
|
+
const raw = organizationId ?? process.env[ENV_ORGANIZATION_ID];
|
|
127
|
+
if (raw === void 0) return void 0;
|
|
128
|
+
const stripped = raw.trim();
|
|
129
|
+
return stripped || void 0;
|
|
130
|
+
}
|
|
120
131
|
function resolveTimeoutMs(explicitMs) {
|
|
121
132
|
if (explicitMs !== void 0) return explicitMs;
|
|
122
133
|
const raw = process.env[ENV_TIMEOUT];
|
|
@@ -139,7 +150,8 @@ function authHeaders(apiKey) {
|
|
|
139
150
|
}
|
|
140
151
|
|
|
141
152
|
// src/_config.ts
|
|
142
|
-
var DEFAULT_BASE_URL = "https://api.
|
|
153
|
+
var DEFAULT_BASE_URL = "https://api.getmodus.com";
|
|
154
|
+
var DEFAULT_AGENT_HOST = "https://agent.getmodus.com";
|
|
143
155
|
var DEFAULT_TIMEOUT_MS = 3e5;
|
|
144
156
|
var DEFAULT_MAX_RETRIES = 2;
|
|
145
157
|
function normalizeBaseUrl(baseUrl) {
|
|
@@ -159,16 +171,30 @@ function createModusConfig(options = {}) {
|
|
|
159
171
|
throw new Error(`max_retries must be a non-negative int, got ${maxRetries}`);
|
|
160
172
|
}
|
|
161
173
|
const baseUrl = normalizeBaseUrl(resolveBaseUrl(options.baseUrl) ?? DEFAULT_BASE_URL);
|
|
174
|
+
const baseUrlOverrides = normalizeBaseUrls(options.baseUrls);
|
|
175
|
+
const agentHost = normalizeBaseUrl(
|
|
176
|
+
baseUrlOverrides["agent-service"] ?? resolveAgentHost(options.agentHost) ?? DEFAULT_AGENT_HOST
|
|
177
|
+
);
|
|
178
|
+
const organizationId = resolveOrganizationId(options.organizationId);
|
|
162
179
|
return Object.freeze({
|
|
163
180
|
apiKey: resolveApiKey(options.apiKey),
|
|
164
181
|
baseUrl,
|
|
165
|
-
|
|
182
|
+
agentHost,
|
|
183
|
+
...organizationId !== void 0 ? { organizationId } : {},
|
|
184
|
+
baseUrls: Object.freeze({
|
|
185
|
+
"modus-api": baseUrl,
|
|
186
|
+
"agent-service": agentHost,
|
|
187
|
+
...baseUrlOverrides
|
|
188
|
+
}),
|
|
166
189
|
timeoutMs: resolveTimeoutMs(options.timeoutMs) ?? DEFAULT_TIMEOUT_MS,
|
|
167
190
|
maxRetries,
|
|
168
191
|
fetch: options.fetch ?? globalThis.fetch.bind(globalThis)
|
|
169
192
|
});
|
|
170
193
|
}
|
|
171
194
|
function resolveServiceBaseUrl(config, service, generatedBaseUrl) {
|
|
195
|
+
if (service === "agent-service") {
|
|
196
|
+
return config.baseUrls["agent-service"] ?? config.agentHost ?? generatedBaseUrl ?? config.baseUrl;
|
|
197
|
+
}
|
|
172
198
|
return config.baseUrls[service] ?? generatedBaseUrl ?? config.baseUrl;
|
|
173
199
|
}
|
|
174
200
|
function formatConfigForLog(config) {
|
|
@@ -177,7 +203,7 @@ function formatConfigForLog(config) {
|
|
|
177
203
|
}
|
|
178
204
|
|
|
179
205
|
// src/_http.ts
|
|
180
|
-
var USER_AGENT = `modus-typescript/${"0.2.
|
|
206
|
+
var USER_AGENT = `modus-typescript/${"0.2.2"} (node/${process.version}; ${process.platform})`;
|
|
181
207
|
function buildUrl(baseUrl, path, params) {
|
|
182
208
|
const url = new URL(path.startsWith("/") ? path : `/${path}`, baseUrl);
|
|
183
209
|
if (params) {
|
|
@@ -312,6 +338,9 @@ var HttpClient = class {
|
|
|
312
338
|
post(path, json, options = {}) {
|
|
313
339
|
return this.request("POST", path, { json, ...options });
|
|
314
340
|
}
|
|
341
|
+
put(path, json, options = {}) {
|
|
342
|
+
return this.request("PUT", path, { json, ...options });
|
|
343
|
+
}
|
|
315
344
|
patch(path, json, params, options = {}) {
|
|
316
345
|
return this.request("PATCH", path, { json, params, ...options });
|
|
317
346
|
}
|
|
@@ -462,7 +491,7 @@ var OPERATIONS = {
|
|
|
462
491
|
method: "GET",
|
|
463
492
|
path: "/api/v1/connections",
|
|
464
493
|
service: "modus-api",
|
|
465
|
-
serverUrl: "https://api.
|
|
494
|
+
serverUrl: "https://api.getmodus.com",
|
|
466
495
|
pathParams: [],
|
|
467
496
|
queryParams: ["pageToken", "pageSize", "type"],
|
|
468
497
|
requestSchema: null,
|
|
@@ -472,7 +501,7 @@ var OPERATIONS = {
|
|
|
472
501
|
method: "POST",
|
|
473
502
|
path: "/api/v1/context/links",
|
|
474
503
|
service: "modus-api",
|
|
475
|
-
serverUrl: "https://api.
|
|
504
|
+
serverUrl: "https://api.getmodus.com",
|
|
476
505
|
pathParams: [],
|
|
477
506
|
queryParams: [],
|
|
478
507
|
requestSchema: "CreateLinkDto",
|
|
@@ -482,7 +511,7 @@ var OPERATIONS = {
|
|
|
482
511
|
method: "POST",
|
|
483
512
|
path: "/api/v1/context/notes",
|
|
484
513
|
service: "modus-api",
|
|
485
|
-
serverUrl: "https://api.
|
|
514
|
+
serverUrl: "https://api.getmodus.com",
|
|
486
515
|
pathParams: [],
|
|
487
516
|
queryParams: [],
|
|
488
517
|
requestSchema: "CreateNoteDto",
|
|
@@ -492,7 +521,7 @@ var OPERATIONS = {
|
|
|
492
521
|
method: "POST",
|
|
493
522
|
path: "/api/v1/context/saved-queries",
|
|
494
523
|
service: "modus-api",
|
|
495
|
-
serverUrl: "https://api.
|
|
524
|
+
serverUrl: "https://api.getmodus.com",
|
|
496
525
|
pathParams: [],
|
|
497
526
|
queryParams: [],
|
|
498
527
|
requestSchema: "CreateSavedQueryDto",
|
|
@@ -502,7 +531,7 @@ var OPERATIONS = {
|
|
|
502
531
|
method: "DELETE",
|
|
503
532
|
path: "/api/v1/context/items/{uid}",
|
|
504
533
|
service: "modus-api",
|
|
505
|
-
serverUrl: "https://api.
|
|
534
|
+
serverUrl: "https://api.getmodus.com",
|
|
506
535
|
pathParams: ["uid"],
|
|
507
536
|
queryParams: [],
|
|
508
537
|
requestSchema: null,
|
|
@@ -512,7 +541,7 @@ var OPERATIONS = {
|
|
|
512
541
|
method: "GET",
|
|
513
542
|
path: "/api/v1/context/items/{uid}",
|
|
514
543
|
service: "modus-api",
|
|
515
|
-
serverUrl: "https://api.
|
|
544
|
+
serverUrl: "https://api.getmodus.com",
|
|
516
545
|
pathParams: ["uid"],
|
|
517
546
|
queryParams: [],
|
|
518
547
|
requestSchema: null,
|
|
@@ -522,7 +551,7 @@ var OPERATIONS = {
|
|
|
522
551
|
method: "GET",
|
|
523
552
|
path: "/api/v1/context/items",
|
|
524
553
|
service: "modus-api",
|
|
525
|
-
serverUrl: "https://api.
|
|
554
|
+
serverUrl: "https://api.getmodus.com",
|
|
526
555
|
pathParams: [],
|
|
527
556
|
queryParams: ["pageToken", "pageSize", "contextTypes", "verificationStatuses", "searchQuery", "topics"],
|
|
528
557
|
requestSchema: null,
|
|
@@ -532,7 +561,7 @@ var OPERATIONS = {
|
|
|
532
561
|
method: "GET",
|
|
533
562
|
path: "/api/v1/context/items/{uid}/values",
|
|
534
563
|
service: "modus-api",
|
|
535
|
-
serverUrl: "https://api.
|
|
564
|
+
serverUrl: "https://api.getmodus.com",
|
|
536
565
|
pathParams: ["uid"],
|
|
537
566
|
queryParams: ["contextType", "contentKeyPath", "pageSize", "offset", "pageToken", "searchQuery", "dataPathPrefix"],
|
|
538
567
|
requestSchema: null,
|
|
@@ -542,7 +571,7 @@ var OPERATIONS = {
|
|
|
542
571
|
method: "POST",
|
|
543
572
|
path: "/api/v1/context/items/lookup",
|
|
544
573
|
service: "modus-api",
|
|
545
|
-
serverUrl: "https://api.
|
|
574
|
+
serverUrl: "https://api.getmodus.com",
|
|
546
575
|
pathParams: [],
|
|
547
576
|
queryParams: [],
|
|
548
577
|
requestSchema: "LookupContextItemDto",
|
|
@@ -552,7 +581,7 @@ var OPERATIONS = {
|
|
|
552
581
|
method: "PATCH",
|
|
553
582
|
path: "/api/v1/context/items/{uid}",
|
|
554
583
|
service: "modus-api",
|
|
555
|
-
serverUrl: "https://api.
|
|
584
|
+
serverUrl: "https://api.getmodus.com",
|
|
556
585
|
pathParams: ["uid"],
|
|
557
586
|
queryParams: ["updateMask"],
|
|
558
587
|
requestSchema: "UpdateContextItemDto",
|
|
@@ -562,7 +591,7 @@ var OPERATIONS = {
|
|
|
562
591
|
method: "POST",
|
|
563
592
|
path: "/api/v1/context/custom-items/batch",
|
|
564
593
|
service: "modus-api",
|
|
565
|
-
serverUrl: "https://api.
|
|
594
|
+
serverUrl: "https://api.getmodus.com",
|
|
566
595
|
pathParams: [],
|
|
567
596
|
queryParams: [],
|
|
568
597
|
requestSchema: "BatchCreateCustomContextItemsDto",
|
|
@@ -572,7 +601,7 @@ var OPERATIONS = {
|
|
|
572
601
|
method: "POST",
|
|
573
602
|
path: "/api/v1/context/custom-items",
|
|
574
603
|
service: "modus-api",
|
|
575
|
-
serverUrl: "https://api.
|
|
604
|
+
serverUrl: "https://api.getmodus.com",
|
|
576
605
|
pathParams: [],
|
|
577
606
|
queryParams: [],
|
|
578
607
|
requestSchema: "CreateCustomContextItemDto",
|
|
@@ -582,7 +611,7 @@ var OPERATIONS = {
|
|
|
582
611
|
method: "DELETE",
|
|
583
612
|
path: "/api/v1/context/custom-items/{uid}",
|
|
584
613
|
service: "modus-api",
|
|
585
|
-
serverUrl: "https://api.
|
|
614
|
+
serverUrl: "https://api.getmodus.com",
|
|
586
615
|
pathParams: ["uid"],
|
|
587
616
|
queryParams: [],
|
|
588
617
|
requestSchema: null,
|
|
@@ -592,7 +621,7 @@ var OPERATIONS = {
|
|
|
592
621
|
method: "GET",
|
|
593
622
|
path: "/api/v1/context/custom-items/{uid}",
|
|
594
623
|
service: "modus-api",
|
|
595
|
-
serverUrl: "https://api.
|
|
624
|
+
serverUrl: "https://api.getmodus.com",
|
|
596
625
|
pathParams: ["uid"],
|
|
597
626
|
queryParams: [],
|
|
598
627
|
requestSchema: null,
|
|
@@ -602,7 +631,7 @@ var OPERATIONS = {
|
|
|
602
631
|
method: "GET",
|
|
603
632
|
path: "/api/v1/context/custom-items",
|
|
604
633
|
service: "modus-api",
|
|
605
|
-
serverUrl: "https://api.
|
|
634
|
+
serverUrl: "https://api.getmodus.com",
|
|
606
635
|
pathParams: [],
|
|
607
636
|
queryParams: ["pageToken", "pageSize", "contextTypes", "verificationStatuses", "searchQuery", "topics"],
|
|
608
637
|
requestSchema: null,
|
|
@@ -612,7 +641,7 @@ var OPERATIONS = {
|
|
|
612
641
|
method: "PATCH",
|
|
613
642
|
path: "/api/v1/context/custom-items/{uid}",
|
|
614
643
|
service: "modus-api",
|
|
615
|
-
serverUrl: "https://api.
|
|
644
|
+
serverUrl: "https://api.getmodus.com",
|
|
616
645
|
pathParams: ["uid"],
|
|
617
646
|
queryParams: [],
|
|
618
647
|
requestSchema: "UpdateCustomContextItemDto",
|
|
@@ -622,7 +651,7 @@ var OPERATIONS = {
|
|
|
622
651
|
method: "GET",
|
|
623
652
|
path: "/api/v1/scopes/{id}/evaluations/config",
|
|
624
653
|
service: "modus-api",
|
|
625
|
-
serverUrl: "https://api.
|
|
654
|
+
serverUrl: "https://api.getmodus.com",
|
|
626
655
|
pathParams: ["id"],
|
|
627
656
|
queryParams: [],
|
|
628
657
|
requestSchema: null,
|
|
@@ -632,7 +661,7 @@ var OPERATIONS = {
|
|
|
632
661
|
method: "GET",
|
|
633
662
|
path: "/api/v1/scopes/{id}/evaluations/runs/{runId}",
|
|
634
663
|
service: "modus-api",
|
|
635
|
-
serverUrl: "https://api.
|
|
664
|
+
serverUrl: "https://api.getmodus.com",
|
|
636
665
|
pathParams: ["id", "runId"],
|
|
637
666
|
queryParams: [],
|
|
638
667
|
requestSchema: null,
|
|
@@ -642,7 +671,7 @@ var OPERATIONS = {
|
|
|
642
671
|
method: "GET",
|
|
643
672
|
path: "/api/v1/scopes/{id}/evaluations/runs",
|
|
644
673
|
service: "modus-api",
|
|
645
|
-
serverUrl: "https://api.
|
|
674
|
+
serverUrl: "https://api.getmodus.com",
|
|
646
675
|
pathParams: ["id"],
|
|
647
676
|
queryParams: ["pageSize", "pageToken"],
|
|
648
677
|
requestSchema: null,
|
|
@@ -652,7 +681,7 @@ var OPERATIONS = {
|
|
|
652
681
|
method: "POST",
|
|
653
682
|
path: "/api/v1/scopes/{id}/evaluations/runs",
|
|
654
683
|
service: "modus-api",
|
|
655
|
-
serverUrl: "https://api.
|
|
684
|
+
serverUrl: "https://api.getmodus.com",
|
|
656
685
|
pathParams: ["id"],
|
|
657
686
|
queryParams: [],
|
|
658
687
|
requestSchema: null,
|
|
@@ -662,7 +691,7 @@ var OPERATIONS = {
|
|
|
662
691
|
method: "PUT",
|
|
663
692
|
path: "/api/v1/scopes/{id}/evaluations/config",
|
|
664
693
|
service: "modus-api",
|
|
665
|
-
serverUrl: "https://api.
|
|
694
|
+
serverUrl: "https://api.getmodus.com",
|
|
666
695
|
pathParams: ["id"],
|
|
667
696
|
queryParams: [],
|
|
668
697
|
requestSchema: "UpdateEvaluationConfigDto",
|
|
@@ -672,7 +701,7 @@ var OPERATIONS = {
|
|
|
672
701
|
method: "GET",
|
|
673
702
|
path: "/api/v1/users/member-groups",
|
|
674
703
|
service: "modus-api",
|
|
675
|
-
serverUrl: "https://api.
|
|
704
|
+
serverUrl: "https://api.getmodus.com",
|
|
676
705
|
pathParams: [],
|
|
677
706
|
queryParams: ["pageSize", "pageToken"],
|
|
678
707
|
requestSchema: null,
|
|
@@ -682,7 +711,7 @@ var OPERATIONS = {
|
|
|
682
711
|
method: "POST",
|
|
683
712
|
path: "/api/v1/modus/chat",
|
|
684
713
|
service: "modus-api",
|
|
685
|
-
serverUrl: "https://api.
|
|
714
|
+
serverUrl: "https://api.getmodus.com",
|
|
686
715
|
pathParams: [],
|
|
687
716
|
queryParams: [],
|
|
688
717
|
requestSchema: "ModusChatRequestDto",
|
|
@@ -692,7 +721,7 @@ var OPERATIONS = {
|
|
|
692
721
|
method: "POST",
|
|
693
722
|
path: "/api/v1/modus/conversations/{threadId}/chat",
|
|
694
723
|
service: "modus-api",
|
|
695
|
-
serverUrl: "https://api.
|
|
724
|
+
serverUrl: "https://api.getmodus.com",
|
|
696
725
|
pathParams: ["threadId"],
|
|
697
726
|
queryParams: [],
|
|
698
727
|
requestSchema: "ModusChatRequestDto",
|
|
@@ -702,7 +731,7 @@ var OPERATIONS = {
|
|
|
702
731
|
method: "POST",
|
|
703
732
|
path: "/api/v1/modus/context",
|
|
704
733
|
service: "modus-api",
|
|
705
|
-
serverUrl: "https://api.
|
|
734
|
+
serverUrl: "https://api.getmodus.com",
|
|
706
735
|
pathParams: [],
|
|
707
736
|
queryParams: [],
|
|
708
737
|
requestSchema: "ModusContextRequestDto",
|
|
@@ -712,7 +741,7 @@ var OPERATIONS = {
|
|
|
712
741
|
method: "GET",
|
|
713
742
|
path: "/api/v1/modus/conversations/{threadId}",
|
|
714
743
|
service: "modus-api",
|
|
715
|
-
serverUrl: "https://api.
|
|
744
|
+
serverUrl: "https://api.getmodus.com",
|
|
716
745
|
pathParams: ["threadId"],
|
|
717
746
|
queryParams: [],
|
|
718
747
|
requestSchema: null,
|
|
@@ -722,7 +751,7 @@ var OPERATIONS = {
|
|
|
722
751
|
method: "GET",
|
|
723
752
|
path: "/api/v1/modus/conversations",
|
|
724
753
|
service: "modus-api",
|
|
725
|
-
serverUrl: "https://api.
|
|
754
|
+
serverUrl: "https://api.getmodus.com",
|
|
726
755
|
pathParams: [],
|
|
727
756
|
queryParams: ["pageToken", "page", "pageSize", "userId", "toolName", "timeframe", "includeTools", "kind"],
|
|
728
757
|
requestSchema: null,
|
|
@@ -732,7 +761,7 @@ var OPERATIONS = {
|
|
|
732
761
|
method: "POST",
|
|
733
762
|
path: "/agent/v1/modus/runs",
|
|
734
763
|
service: "agent-service",
|
|
735
|
-
serverUrl: "https://agent.
|
|
764
|
+
serverUrl: "https://agent.getmodus.com",
|
|
736
765
|
pathParams: [],
|
|
737
766
|
queryParams: [],
|
|
738
767
|
requestSchema: "ModusRunDto",
|
|
@@ -742,7 +771,7 @@ var OPERATIONS = {
|
|
|
742
771
|
method: "GET",
|
|
743
772
|
path: "/api/v1/users/org-members",
|
|
744
773
|
service: "modus-api",
|
|
745
|
-
serverUrl: "https://api.
|
|
774
|
+
serverUrl: "https://api.getmodus.com",
|
|
746
775
|
pathParams: [],
|
|
747
776
|
queryParams: ["pageSize", "pageToken"],
|
|
748
777
|
requestSchema: null,
|
|
@@ -752,7 +781,7 @@ var OPERATIONS = {
|
|
|
752
781
|
method: "DELETE",
|
|
753
782
|
path: "/api/v1/users/organization",
|
|
754
783
|
service: "modus-api",
|
|
755
|
-
serverUrl: "https://api.
|
|
784
|
+
serverUrl: "https://api.getmodus.com",
|
|
756
785
|
pathParams: [],
|
|
757
786
|
queryParams: [],
|
|
758
787
|
requestSchema: null,
|
|
@@ -762,7 +791,7 @@ var OPERATIONS = {
|
|
|
762
791
|
method: "POST",
|
|
763
792
|
path: "/agent/v1/runs/{runId}/resume",
|
|
764
793
|
service: "agent-service",
|
|
765
|
-
serverUrl: "https://agent.
|
|
794
|
+
serverUrl: "https://agent.getmodus.com",
|
|
766
795
|
pathParams: ["runId"],
|
|
767
796
|
queryParams: [],
|
|
768
797
|
requestSchema: "ResumeRunDto",
|
|
@@ -772,7 +801,7 @@ var OPERATIONS = {
|
|
|
772
801
|
method: "GET",
|
|
773
802
|
path: "/agent/v1/runs/active",
|
|
774
803
|
service: "agent-service",
|
|
775
|
-
serverUrl: "https://agent.
|
|
804
|
+
serverUrl: "https://agent.getmodus.com",
|
|
776
805
|
pathParams: [],
|
|
777
806
|
queryParams: ["pageToken", "pageSize"],
|
|
778
807
|
requestSchema: null,
|
|
@@ -782,7 +811,7 @@ var OPERATIONS = {
|
|
|
782
811
|
method: "POST",
|
|
783
812
|
path: "/agent/v1/runs/active-by-session",
|
|
784
813
|
service: "agent-service",
|
|
785
|
-
serverUrl: "https://agent.
|
|
814
|
+
serverUrl: "https://agent.getmodus.com",
|
|
786
815
|
pathParams: [],
|
|
787
816
|
queryParams: [],
|
|
788
817
|
requestSchema: "ActiveRunsBySessionDto",
|
|
@@ -792,7 +821,7 @@ var OPERATIONS = {
|
|
|
792
821
|
method: "POST",
|
|
793
822
|
path: "/agent/v1/runs/{runId}/cancel",
|
|
794
823
|
service: "agent-service",
|
|
795
|
-
serverUrl: "https://agent.
|
|
824
|
+
serverUrl: "https://agent.getmodus.com",
|
|
796
825
|
pathParams: ["runId"],
|
|
797
826
|
queryParams: [],
|
|
798
827
|
requestSchema: "CancelRunDto",
|
|
@@ -802,7 +831,7 @@ var OPERATIONS = {
|
|
|
802
831
|
method: "POST",
|
|
803
832
|
path: "/agent/v1/runs/{runId}/queue-edit",
|
|
804
833
|
service: "agent-service",
|
|
805
|
-
serverUrl: "https://agent.
|
|
834
|
+
serverUrl: "https://agent.getmodus.com",
|
|
806
835
|
pathParams: ["runId"],
|
|
807
836
|
queryParams: [],
|
|
808
837
|
requestSchema: "EditQueuedRunDto",
|
|
@@ -812,7 +841,7 @@ var OPERATIONS = {
|
|
|
812
841
|
method: "GET",
|
|
813
842
|
path: "/agent/v1/runs/{runId}/events",
|
|
814
843
|
service: "agent-service",
|
|
815
|
-
serverUrl: "https://agent.
|
|
844
|
+
serverUrl: "https://agent.getmodus.com",
|
|
816
845
|
pathParams: ["runId"],
|
|
817
846
|
queryParams: [],
|
|
818
847
|
requestSchema: null,
|
|
@@ -822,7 +851,7 @@ var OPERATIONS = {
|
|
|
822
851
|
method: "POST",
|
|
823
852
|
path: "/agent/v1/runs/{runId}/interrupt",
|
|
824
853
|
service: "agent-service",
|
|
825
|
-
serverUrl: "https://agent.
|
|
854
|
+
serverUrl: "https://agent.getmodus.com",
|
|
826
855
|
pathParams: ["runId"],
|
|
827
856
|
queryParams: [],
|
|
828
857
|
requestSchema: "InterruptRunDto",
|
|
@@ -832,7 +861,7 @@ var OPERATIONS = {
|
|
|
832
861
|
method: "GET",
|
|
833
862
|
path: "/agent/v1/runs/{runId}/stream",
|
|
834
863
|
service: "agent-service",
|
|
835
|
-
serverUrl: "https://agent.
|
|
864
|
+
serverUrl: "https://agent.getmodus.com",
|
|
836
865
|
pathParams: ["runId"],
|
|
837
866
|
queryParams: [],
|
|
838
867
|
requestSchema: null,
|
|
@@ -842,7 +871,7 @@ var OPERATIONS = {
|
|
|
842
871
|
method: "POST",
|
|
843
872
|
path: "/api/v1/scopes/{id}/chat",
|
|
844
873
|
service: "modus-api",
|
|
845
|
-
serverUrl: "https://api.
|
|
874
|
+
serverUrl: "https://api.getmodus.com",
|
|
846
875
|
pathParams: ["id"],
|
|
847
876
|
queryParams: [],
|
|
848
877
|
requestSchema: "SkillChatRequestDto",
|
|
@@ -852,7 +881,7 @@ var OPERATIONS = {
|
|
|
852
881
|
method: "POST",
|
|
853
882
|
path: "/api/v1/scopes/{id}/conversations/{threadId}/chat",
|
|
854
883
|
service: "modus-api",
|
|
855
|
-
serverUrl: "https://api.
|
|
884
|
+
serverUrl: "https://api.getmodus.com",
|
|
856
885
|
pathParams: ["id", "threadId"],
|
|
857
886
|
queryParams: [],
|
|
858
887
|
requestSchema: "SkillChatRequestDto",
|
|
@@ -862,7 +891,7 @@ var OPERATIONS = {
|
|
|
862
891
|
method: "POST",
|
|
863
892
|
path: "/api/v1/scopes/{id}/context",
|
|
864
893
|
service: "modus-api",
|
|
865
|
-
serverUrl: "https://api.
|
|
894
|
+
serverUrl: "https://api.getmodus.com",
|
|
866
895
|
pathParams: ["id"],
|
|
867
896
|
queryParams: [],
|
|
868
897
|
requestSchema: "ComposeSkillContextRequestDto",
|
|
@@ -872,7 +901,7 @@ var OPERATIONS = {
|
|
|
872
901
|
method: "GET",
|
|
873
902
|
path: "/api/v1/scopes/{id}/conversations/{threadId}",
|
|
874
903
|
service: "modus-api",
|
|
875
|
-
serverUrl: "https://api.
|
|
904
|
+
serverUrl: "https://api.getmodus.com",
|
|
876
905
|
pathParams: ["id", "threadId"],
|
|
877
906
|
queryParams: ["messageLimit", "beforeMessageIndex"],
|
|
878
907
|
requestSchema: null,
|
|
@@ -882,7 +911,7 @@ var OPERATIONS = {
|
|
|
882
911
|
method: "GET",
|
|
883
912
|
path: "/api/v1/scopes/{id}/conversations",
|
|
884
913
|
service: "modus-api",
|
|
885
|
-
serverUrl: "https://api.
|
|
914
|
+
serverUrl: "https://api.getmodus.com",
|
|
886
915
|
pathParams: ["id"],
|
|
887
916
|
queryParams: ["pageToken", "page", "pageSize", "userId", "toolName", "timeframe", "includeTools"],
|
|
888
917
|
requestSchema: null,
|
|
@@ -892,7 +921,7 @@ var OPERATIONS = {
|
|
|
892
921
|
method: "DELETE",
|
|
893
922
|
path: "/api/v1/scopes/{id}/memories/{memoryId}",
|
|
894
923
|
service: "modus-api",
|
|
895
|
-
serverUrl: "https://api.
|
|
924
|
+
serverUrl: "https://api.getmodus.com",
|
|
896
925
|
pathParams: ["id", "memoryId"],
|
|
897
926
|
queryParams: [],
|
|
898
927
|
requestSchema: null,
|
|
@@ -902,7 +931,7 @@ var OPERATIONS = {
|
|
|
902
931
|
method: "GET",
|
|
903
932
|
path: "/api/v1/scopes/{id}/memories",
|
|
904
933
|
service: "modus-api",
|
|
905
|
-
serverUrl: "https://api.
|
|
934
|
+
serverUrl: "https://api.getmodus.com",
|
|
906
935
|
pathParams: ["id"],
|
|
907
936
|
queryParams: ["pageToken", "pageSize", "userId", "limit"],
|
|
908
937
|
requestSchema: null,
|
|
@@ -912,7 +941,7 @@ var OPERATIONS = {
|
|
|
912
941
|
method: "POST",
|
|
913
942
|
path: "/api/v1/scopes/{id}/memories/search",
|
|
914
943
|
service: "modus-api",
|
|
915
|
-
serverUrl: "https://api.
|
|
944
|
+
serverUrl: "https://api.getmodus.com",
|
|
916
945
|
pathParams: ["id"],
|
|
917
946
|
queryParams: [],
|
|
918
947
|
requestSchema: "SearchMemoriesRequestDto",
|
|
@@ -922,7 +951,7 @@ var OPERATIONS = {
|
|
|
922
951
|
method: "PATCH",
|
|
923
952
|
path: "/api/v1/scopes/{id}/memories/{memoryId}",
|
|
924
953
|
service: "modus-api",
|
|
925
|
-
serverUrl: "https://api.
|
|
954
|
+
serverUrl: "https://api.getmodus.com",
|
|
926
955
|
pathParams: ["id", "memoryId"],
|
|
927
956
|
queryParams: ["updateMask"],
|
|
928
957
|
requestSchema: "UpdateMemoryRequestDto",
|
|
@@ -932,7 +961,7 @@ var OPERATIONS = {
|
|
|
932
961
|
method: "POST",
|
|
933
962
|
path: "/agent/v1/scopes/{id}/runs",
|
|
934
963
|
service: "agent-service",
|
|
935
|
-
serverUrl: "https://agent.
|
|
964
|
+
serverUrl: "https://agent.getmodus.com",
|
|
936
965
|
pathParams: ["id"],
|
|
937
966
|
queryParams: [],
|
|
938
967
|
requestSchema: "SkillRunDto",
|
|
@@ -942,7 +971,7 @@ var OPERATIONS = {
|
|
|
942
971
|
method: "GET",
|
|
943
972
|
path: "/api/v1/scopes/{id}/supervision",
|
|
944
973
|
service: "modus-api",
|
|
945
|
-
serverUrl: "https://api.
|
|
974
|
+
serverUrl: "https://api.getmodus.com",
|
|
946
975
|
pathParams: ["id"],
|
|
947
976
|
queryParams: ["view"],
|
|
948
977
|
requestSchema: null,
|
|
@@ -952,7 +981,7 @@ var OPERATIONS = {
|
|
|
952
981
|
method: "PUT",
|
|
953
982
|
path: "/api/v1/scopes/{id}/supervision",
|
|
954
983
|
service: "modus-api",
|
|
955
|
-
serverUrl: "https://api.
|
|
984
|
+
serverUrl: "https://api.getmodus.com",
|
|
956
985
|
pathParams: ["id"],
|
|
957
986
|
queryParams: [],
|
|
958
987
|
requestSchema: "SetSupervisionRequestDto",
|
|
@@ -962,7 +991,7 @@ var OPERATIONS = {
|
|
|
962
991
|
method: "PUT",
|
|
963
992
|
path: "/api/v1/scopes/{id}/supervision/active",
|
|
964
993
|
service: "modus-api",
|
|
965
|
-
serverUrl: "https://api.
|
|
994
|
+
serverUrl: "https://api.getmodus.com",
|
|
966
995
|
pathParams: ["id"],
|
|
967
996
|
queryParams: [],
|
|
968
997
|
requestSchema: "SetSupervisionRequestDto",
|
|
@@ -972,7 +1001,7 @@ var OPERATIONS = {
|
|
|
972
1001
|
method: "POST",
|
|
973
1002
|
path: "/api/v1/scopes/{id}/transfer-ownership/accept",
|
|
974
1003
|
service: "modus-api",
|
|
975
|
-
serverUrl: "https://api.
|
|
1004
|
+
serverUrl: "https://api.getmodus.com",
|
|
976
1005
|
pathParams: ["id"],
|
|
977
1006
|
queryParams: [],
|
|
978
1007
|
requestSchema: null,
|
|
@@ -982,7 +1011,7 @@ var OPERATIONS = {
|
|
|
982
1011
|
method: "DELETE",
|
|
983
1012
|
path: "/api/v1/scopes/{id}/transfer-ownership",
|
|
984
1013
|
service: "modus-api",
|
|
985
|
-
serverUrl: "https://api.
|
|
1014
|
+
serverUrl: "https://api.getmodus.com",
|
|
986
1015
|
pathParams: ["id"],
|
|
987
1016
|
queryParams: [],
|
|
988
1017
|
requestSchema: null,
|
|
@@ -992,7 +1021,7 @@ var OPERATIONS = {
|
|
|
992
1021
|
method: "POST",
|
|
993
1022
|
path: "/api/v1/scopes",
|
|
994
1023
|
service: "modus-api",
|
|
995
|
-
serverUrl: "https://api.
|
|
1024
|
+
serverUrl: "https://api.getmodus.com",
|
|
996
1025
|
pathParams: [],
|
|
997
1026
|
queryParams: [],
|
|
998
1027
|
requestSchema: "CreateSkillDto",
|
|
@@ -1002,7 +1031,7 @@ var OPERATIONS = {
|
|
|
1002
1031
|
method: "DELETE",
|
|
1003
1032
|
path: "/api/v1/scopes/{id}",
|
|
1004
1033
|
service: "modus-api",
|
|
1005
|
-
serverUrl: "https://api.
|
|
1034
|
+
serverUrl: "https://api.getmodus.com",
|
|
1006
1035
|
pathParams: ["id"],
|
|
1007
1036
|
queryParams: [],
|
|
1008
1037
|
requestSchema: null,
|
|
@@ -1012,7 +1041,7 @@ var OPERATIONS = {
|
|
|
1012
1041
|
method: "POST",
|
|
1013
1042
|
path: "/api/v1/scopes/{id}/deploy",
|
|
1014
1043
|
service: "modus-api",
|
|
1015
|
-
serverUrl: "https://api.
|
|
1044
|
+
serverUrl: "https://api.getmodus.com",
|
|
1016
1045
|
pathParams: ["id"],
|
|
1017
1046
|
queryParams: [],
|
|
1018
1047
|
requestSchema: "DeploySkillDto",
|
|
@@ -1022,7 +1051,7 @@ var OPERATIONS = {
|
|
|
1022
1051
|
method: "GET",
|
|
1023
1052
|
path: "/api/v1/scopes/{id}",
|
|
1024
1053
|
service: "modus-api",
|
|
1025
|
-
serverUrl: "https://api.
|
|
1054
|
+
serverUrl: "https://api.getmodus.com",
|
|
1026
1055
|
pathParams: ["id"],
|
|
1027
1056
|
queryParams: ["view"],
|
|
1028
1057
|
requestSchema: null,
|
|
@@ -1032,7 +1061,7 @@ var OPERATIONS = {
|
|
|
1032
1061
|
method: "GET",
|
|
1033
1062
|
path: "/api/v1/scopes/{id}/variations/{variationUid}",
|
|
1034
1063
|
service: "modus-api",
|
|
1035
|
-
serverUrl: "https://api.
|
|
1064
|
+
serverUrl: "https://api.getmodus.com",
|
|
1036
1065
|
pathParams: ["id", "variationUid"],
|
|
1037
1066
|
queryParams: [],
|
|
1038
1067
|
requestSchema: null,
|
|
@@ -1042,7 +1071,7 @@ var OPERATIONS = {
|
|
|
1042
1071
|
method: "GET",
|
|
1043
1072
|
path: "/api/v1/scopes",
|
|
1044
1073
|
service: "modus-api",
|
|
1045
|
-
serverUrl: "https://api.
|
|
1074
|
+
serverUrl: "https://api.getmodus.com",
|
|
1046
1075
|
pathParams: [],
|
|
1047
1076
|
queryParams: ["pageToken", "pageSize", "view", "search", "managerId", "includeVariation"],
|
|
1048
1077
|
requestSchema: null,
|
|
@@ -1052,7 +1081,7 @@ var OPERATIONS = {
|
|
|
1052
1081
|
method: "PATCH",
|
|
1053
1082
|
path: "/api/v1/scopes/{id}/mcp-config",
|
|
1054
1083
|
service: "modus-api",
|
|
1055
|
-
serverUrl: "https://api.
|
|
1084
|
+
serverUrl: "https://api.getmodus.com",
|
|
1056
1085
|
pathParams: ["id"],
|
|
1057
1086
|
queryParams: [],
|
|
1058
1087
|
requestSchema: "PatchSkillMcpConfigDto",
|
|
@@ -1062,7 +1091,7 @@ var OPERATIONS = {
|
|
|
1062
1091
|
method: "POST",
|
|
1063
1092
|
path: "/api/v1/scopes/{id}/transfer-ownership",
|
|
1064
1093
|
service: "modus-api",
|
|
1065
|
-
serverUrl: "https://api.
|
|
1094
|
+
serverUrl: "https://api.getmodus.com",
|
|
1066
1095
|
pathParams: ["id"],
|
|
1067
1096
|
queryParams: [],
|
|
1068
1097
|
requestSchema: "TransferOwnershipDto",
|
|
@@ -1072,7 +1101,7 @@ var OPERATIONS = {
|
|
|
1072
1101
|
method: "POST",
|
|
1073
1102
|
path: "/api/v1/scopes/{id}/restore",
|
|
1074
1103
|
service: "modus-api",
|
|
1075
|
-
serverUrl: "https://api.
|
|
1104
|
+
serverUrl: "https://api.getmodus.com",
|
|
1076
1105
|
pathParams: ["id"],
|
|
1077
1106
|
queryParams: [],
|
|
1078
1107
|
requestSchema: null,
|
|
@@ -1082,7 +1111,7 @@ var OPERATIONS = {
|
|
|
1082
1111
|
method: "PATCH",
|
|
1083
1112
|
path: "/api/v1/scopes/{id}",
|
|
1084
1113
|
service: "modus-api",
|
|
1085
|
-
serverUrl: "https://api.
|
|
1114
|
+
serverUrl: "https://api.getmodus.com",
|
|
1086
1115
|
pathParams: ["id"],
|
|
1087
1116
|
queryParams: ["updateMask"],
|
|
1088
1117
|
requestSchema: "UpdateSkillDto",
|
|
@@ -1092,7 +1121,7 @@ var OPERATIONS = {
|
|
|
1092
1121
|
method: "GET",
|
|
1093
1122
|
path: "/api/v1/suggestions/questions",
|
|
1094
1123
|
service: "modus-api",
|
|
1095
|
-
serverUrl: "https://api.
|
|
1124
|
+
serverUrl: "https://api.getmodus.com",
|
|
1096
1125
|
pathParams: [],
|
|
1097
1126
|
queryParams: ["pageToken", "pageSize", "skill_id", "skill_ids"],
|
|
1098
1127
|
requestSchema: null,
|
|
@@ -1102,7 +1131,7 @@ var OPERATIONS = {
|
|
|
1102
1131
|
method: "POST",
|
|
1103
1132
|
path: "/api/v1/suggestions/questions/{id}/events",
|
|
1104
1133
|
service: "modus-api",
|
|
1105
|
-
serverUrl: "https://api.
|
|
1134
|
+
serverUrl: "https://api.getmodus.com",
|
|
1106
1135
|
pathParams: ["id"],
|
|
1107
1136
|
queryParams: [],
|
|
1108
1137
|
requestSchema: "RecordSuggestionEventDto",
|
|
@@ -1112,7 +1141,7 @@ var OPERATIONS = {
|
|
|
1112
1141
|
method: "GET",
|
|
1113
1142
|
path: "/api/v1/usage",
|
|
1114
1143
|
service: "modus-api",
|
|
1115
|
-
serverUrl: "https://api.
|
|
1144
|
+
serverUrl: "https://api.getmodus.com",
|
|
1116
1145
|
pathParams: [],
|
|
1117
1146
|
queryParams: ["since", "until", "rollup", "model", "group_by", "skill_id", "agent_id", "user_id", "interface"],
|
|
1118
1147
|
requestSchema: null,
|
|
@@ -1122,7 +1151,7 @@ var OPERATIONS = {
|
|
|
1122
1151
|
method: "POST",
|
|
1123
1152
|
path: "/agent/v1/workflow-actions/{runId}/cancel",
|
|
1124
1153
|
service: "agent-service",
|
|
1125
|
-
serverUrl: "https://agent.
|
|
1154
|
+
serverUrl: "https://agent.getmodus.com",
|
|
1126
1155
|
pathParams: ["runId"],
|
|
1127
1156
|
queryParams: [],
|
|
1128
1157
|
requestSchema: "CancelRunDto",
|
|
@@ -1132,7 +1161,7 @@ var OPERATIONS = {
|
|
|
1132
1161
|
method: "POST",
|
|
1133
1162
|
path: "/agent/v1/workflow-actions",
|
|
1134
1163
|
service: "agent-service",
|
|
1135
|
-
serverUrl: "https://agent.
|
|
1164
|
+
serverUrl: "https://agent.getmodus.com",
|
|
1136
1165
|
pathParams: [],
|
|
1137
1166
|
queryParams: [],
|
|
1138
1167
|
requestSchema: "WorkflowActionDto",
|
|
@@ -1142,7 +1171,7 @@ var OPERATIONS = {
|
|
|
1142
1171
|
method: "POST",
|
|
1143
1172
|
path: "/api/v1/workflows/{id}/interfaces",
|
|
1144
1173
|
service: "modus-api",
|
|
1145
|
-
serverUrl: "https://api.
|
|
1174
|
+
serverUrl: "https://api.getmodus.com",
|
|
1146
1175
|
pathParams: ["id"],
|
|
1147
1176
|
queryParams: [],
|
|
1148
1177
|
requestSchema: "AddAgentInterfaceDto",
|
|
@@ -1152,7 +1181,7 @@ var OPERATIONS = {
|
|
|
1152
1181
|
method: "DELETE",
|
|
1153
1182
|
path: "/api/v1/workflows/{id}/interfaces/{interfaceId}",
|
|
1154
1183
|
service: "modus-api",
|
|
1155
|
-
serverUrl: "https://api.
|
|
1184
|
+
serverUrl: "https://api.getmodus.com",
|
|
1156
1185
|
pathParams: ["id", "interfaceId"],
|
|
1157
1186
|
queryParams: [],
|
|
1158
1187
|
requestSchema: null,
|
|
@@ -1162,7 +1191,7 @@ var OPERATIONS = {
|
|
|
1162
1191
|
method: "DELETE",
|
|
1163
1192
|
path: "/api/v1/workflows/{id}/interfaces",
|
|
1164
1193
|
service: "modus-api",
|
|
1165
|
-
serverUrl: "https://api.
|
|
1194
|
+
serverUrl: "https://api.getmodus.com",
|
|
1166
1195
|
pathParams: ["id"],
|
|
1167
1196
|
queryParams: [],
|
|
1168
1197
|
requestSchema: null,
|
|
@@ -1172,7 +1201,7 @@ var OPERATIONS = {
|
|
|
1172
1201
|
method: "GET",
|
|
1173
1202
|
path: "/api/v1/workflows/{id}/interfaces",
|
|
1174
1203
|
service: "modus-api",
|
|
1175
|
-
serverUrl: "https://api.
|
|
1204
|
+
serverUrl: "https://api.getmodus.com",
|
|
1176
1205
|
pathParams: ["id"],
|
|
1177
1206
|
queryParams: ["pageSize", "pageToken"],
|
|
1178
1207
|
requestSchema: null,
|
|
@@ -1182,7 +1211,7 @@ var OPERATIONS = {
|
|
|
1182
1211
|
method: "PATCH",
|
|
1183
1212
|
path: "/api/v1/workflows/{id}/interfaces/{interfaceId}",
|
|
1184
1213
|
service: "modus-api",
|
|
1185
|
-
serverUrl: "https://api.
|
|
1214
|
+
serverUrl: "https://api.getmodus.com",
|
|
1186
1215
|
pathParams: ["id", "interfaceId"],
|
|
1187
1216
|
queryParams: ["updateMask"],
|
|
1188
1217
|
requestSchema: "UpdateAgentInterfaceDto",
|
|
@@ -1192,7 +1221,7 @@ var OPERATIONS = {
|
|
|
1192
1221
|
method: "POST",
|
|
1193
1222
|
path: "/agent/v1/workflows/{id}/runs",
|
|
1194
1223
|
service: "agent-service",
|
|
1195
|
-
serverUrl: "https://agent.
|
|
1224
|
+
serverUrl: "https://agent.getmodus.com",
|
|
1196
1225
|
pathParams: ["id"],
|
|
1197
1226
|
queryParams: [],
|
|
1198
1227
|
requestSchema: "AgentRunDto",
|
|
@@ -1202,7 +1231,7 @@ var OPERATIONS = {
|
|
|
1202
1231
|
method: "GET",
|
|
1203
1232
|
path: "/api/v1/workflows/{id}/runs/{runId}",
|
|
1204
1233
|
service: "modus-api",
|
|
1205
|
-
serverUrl: "https://api.
|
|
1234
|
+
serverUrl: "https://api.getmodus.com",
|
|
1206
1235
|
pathParams: ["id", "runId"],
|
|
1207
1236
|
queryParams: ["temporalRunId"],
|
|
1208
1237
|
requestSchema: null,
|
|
@@ -1212,7 +1241,7 @@ var OPERATIONS = {
|
|
|
1212
1241
|
method: "GET",
|
|
1213
1242
|
path: "/api/v1/workflows/{id}/runs",
|
|
1214
1243
|
service: "modus-api",
|
|
1215
|
-
serverUrl: "https://api.
|
|
1244
|
+
serverUrl: "https://api.getmodus.com",
|
|
1216
1245
|
pathParams: ["id"],
|
|
1217
1246
|
queryParams: ["status", "timeframe", "approvalScope", "search", "pageSize", "pageToken"],
|
|
1218
1247
|
requestSchema: null,
|
|
@@ -1222,7 +1251,7 @@ var OPERATIONS = {
|
|
|
1222
1251
|
method: "POST",
|
|
1223
1252
|
path: "/api/v1/workflows/{id}/transfer-ownership/accept",
|
|
1224
1253
|
service: "modus-api",
|
|
1225
|
-
serverUrl: "https://api.
|
|
1254
|
+
serverUrl: "https://api.getmodus.com",
|
|
1226
1255
|
pathParams: ["id"],
|
|
1227
1256
|
queryParams: [],
|
|
1228
1257
|
requestSchema: null,
|
|
@@ -1232,7 +1261,7 @@ var OPERATIONS = {
|
|
|
1232
1261
|
method: "DELETE",
|
|
1233
1262
|
path: "/api/v1/workflows/{id}/transfer-ownership",
|
|
1234
1263
|
service: "modus-api",
|
|
1235
|
-
serverUrl: "https://api.
|
|
1264
|
+
serverUrl: "https://api.getmodus.com",
|
|
1236
1265
|
pathParams: ["id"],
|
|
1237
1266
|
queryParams: [],
|
|
1238
1267
|
requestSchema: null,
|
|
@@ -1242,7 +1271,7 @@ var OPERATIONS = {
|
|
|
1242
1271
|
method: "POST",
|
|
1243
1272
|
path: "/api/v1/workflows",
|
|
1244
1273
|
service: "modus-api",
|
|
1245
|
-
serverUrl: "https://api.
|
|
1274
|
+
serverUrl: "https://api.getmodus.com",
|
|
1246
1275
|
pathParams: [],
|
|
1247
1276
|
queryParams: [],
|
|
1248
1277
|
requestSchema: "CreateAgentDto",
|
|
@@ -1252,7 +1281,7 @@ var OPERATIONS = {
|
|
|
1252
1281
|
method: "DELETE",
|
|
1253
1282
|
path: "/api/v1/workflows/{id}",
|
|
1254
1283
|
service: "modus-api",
|
|
1255
|
-
serverUrl: "https://api.
|
|
1284
|
+
serverUrl: "https://api.getmodus.com",
|
|
1256
1285
|
pathParams: ["id"],
|
|
1257
1286
|
queryParams: [],
|
|
1258
1287
|
requestSchema: null,
|
|
@@ -1262,7 +1291,7 @@ var OPERATIONS = {
|
|
|
1262
1291
|
method: "POST",
|
|
1263
1292
|
path: "/api/v1/workflows/{id}/deploy",
|
|
1264
1293
|
service: "modus-api",
|
|
1265
|
-
serverUrl: "https://api.
|
|
1294
|
+
serverUrl: "https://api.getmodus.com",
|
|
1266
1295
|
pathParams: ["id"],
|
|
1267
1296
|
queryParams: [],
|
|
1268
1297
|
requestSchema: "DeployAgentDto",
|
|
@@ -1272,7 +1301,7 @@ var OPERATIONS = {
|
|
|
1272
1301
|
method: "GET",
|
|
1273
1302
|
path: "/api/v1/workflows/{id}",
|
|
1274
1303
|
service: "modus-api",
|
|
1275
|
-
serverUrl: "https://api.
|
|
1304
|
+
serverUrl: "https://api.getmodus.com",
|
|
1276
1305
|
pathParams: ["id"],
|
|
1277
1306
|
queryParams: ["view"],
|
|
1278
1307
|
requestSchema: null,
|
|
@@ -1282,7 +1311,7 @@ var OPERATIONS = {
|
|
|
1282
1311
|
method: "GET",
|
|
1283
1312
|
path: "/api/v1/workflows",
|
|
1284
1313
|
service: "modus-api",
|
|
1285
|
-
serverUrl: "https://api.
|
|
1314
|
+
serverUrl: "https://api.getmodus.com",
|
|
1286
1315
|
pathParams: [],
|
|
1287
1316
|
queryParams: ["pageToken", "pageSize", "view", "type", "search", "includeVariation"],
|
|
1288
1317
|
requestSchema: null,
|
|
@@ -1292,7 +1321,7 @@ var OPERATIONS = {
|
|
|
1292
1321
|
method: "POST",
|
|
1293
1322
|
path: "/api/v1/workflows/{id}/transfer-ownership",
|
|
1294
1323
|
service: "modus-api",
|
|
1295
|
-
serverUrl: "https://api.
|
|
1324
|
+
serverUrl: "https://api.getmodus.com",
|
|
1296
1325
|
pathParams: ["id"],
|
|
1297
1326
|
queryParams: [],
|
|
1298
1327
|
requestSchema: "TransferOwnershipDto",
|
|
@@ -1302,7 +1331,7 @@ var OPERATIONS = {
|
|
|
1302
1331
|
method: "POST",
|
|
1303
1332
|
path: "/api/v1/workflows/{id}/restore",
|
|
1304
1333
|
service: "modus-api",
|
|
1305
|
-
serverUrl: "https://api.
|
|
1334
|
+
serverUrl: "https://api.getmodus.com",
|
|
1306
1335
|
pathParams: ["id"],
|
|
1307
1336
|
queryParams: [],
|
|
1308
1337
|
requestSchema: null,
|
|
@@ -1312,7 +1341,7 @@ var OPERATIONS = {
|
|
|
1312
1341
|
method: "POST",
|
|
1313
1342
|
path: "/api/v1/workflows/{id}/toggle",
|
|
1314
1343
|
service: "modus-api",
|
|
1315
|
-
serverUrl: "https://api.
|
|
1344
|
+
serverUrl: "https://api.getmodus.com",
|
|
1316
1345
|
pathParams: ["id"],
|
|
1317
1346
|
queryParams: [],
|
|
1318
1347
|
requestSchema: "ToggleAgentDto",
|
|
@@ -1322,7 +1351,7 @@ var OPERATIONS = {
|
|
|
1322
1351
|
method: "PATCH",
|
|
1323
1352
|
path: "/api/v1/workflows/{id}",
|
|
1324
1353
|
service: "modus-api",
|
|
1325
|
-
serverUrl: "https://api.
|
|
1354
|
+
serverUrl: "https://api.getmodus.com",
|
|
1326
1355
|
pathParams: ["id"],
|
|
1327
1356
|
queryParams: ["updateMask"],
|
|
1328
1357
|
requestSchema: "UpdateAgentDto",
|
|
@@ -1365,6 +1394,8 @@ async function invokeOperation(http, operationId, options = {}) {
|
|
|
1365
1394
|
return http.get(path, params, requestOptions);
|
|
1366
1395
|
case "POST":
|
|
1367
1396
|
return http.post(path, options.jsonBody, requestOptions);
|
|
1397
|
+
case "PUT":
|
|
1398
|
+
return http.put(path, options.jsonBody, requestOptions);
|
|
1368
1399
|
case "PATCH":
|
|
1369
1400
|
return http.patch(path, options.jsonBody, params, requestOptions);
|
|
1370
1401
|
case "DELETE":
|
|
@@ -1764,6 +1795,11 @@ var ManagementWorkflowsResource = class {
|
|
|
1764
1795
|
}
|
|
1765
1796
|
};
|
|
1766
1797
|
|
|
1798
|
+
// src/types/context.ts
|
|
1799
|
+
function withCreatedUid(data) {
|
|
1800
|
+
return { ...data, uid: data.contextItemId };
|
|
1801
|
+
}
|
|
1802
|
+
|
|
1767
1803
|
// src/resources/context/custom-items.ts
|
|
1768
1804
|
function parseContextItem(raw) {
|
|
1769
1805
|
return raw;
|
|
@@ -2004,7 +2040,7 @@ var ManagementContextResource = class {
|
|
|
2004
2040
|
const data = await invokeWithRetry(this.config, this.http, operationId, {
|
|
2005
2041
|
jsonBody: payload
|
|
2006
2042
|
});
|
|
2007
|
-
return data;
|
|
2043
|
+
return withCreatedUid(data);
|
|
2008
2044
|
}
|
|
2009
2045
|
createNote(title, content) {
|
|
2010
2046
|
return this.create("ContextCreatorsController_createNote", omitUndefined({ title, content }));
|