@vectros-ai/mcp-server 0.12.0 → 0.13.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/CHANGELOG.md +37 -0
- package/README.md +2 -2
- package/dist/cli-http.js +160 -34
- package/dist/cli-http.js.map +1 -1
- package/dist/cli-http.mjs +160 -34
- package/dist/cli-http.mjs.map +1 -1
- package/dist/cli.js +160 -34
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +160 -34
- package/dist/cli.mjs.map +1 -1
- package/dist/index.js +160 -34
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +160 -34
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.mjs
CHANGED
|
@@ -2430,7 +2430,7 @@ var AuthClient = class {
|
|
|
2430
2430
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/admin/access-log");
|
|
2431
2431
|
}
|
|
2432
2432
|
/**
|
|
2433
|
-
* Lists
|
|
2433
|
+
* Lists your scoped API keys (`ssk_*`) in your credential's own environment — a live key lists live keys, a test key lists test keys. Revoked keys are excluded. Requires the `keys:r` scope.
|
|
2434
2434
|
*
|
|
2435
2435
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
2436
2436
|
*
|
|
@@ -2813,7 +2813,7 @@ var AuthClient = class {
|
|
|
2813
2813
|
);
|
|
2814
2814
|
}
|
|
2815
2815
|
/**
|
|
2816
|
-
* Creates a new access profile under the given app context. This call is idempotent by `principalId`: if a profile with the same `principalId` already exists, the existing profile is returned (with status 200) instead of creating a duplicate. The response's `created` field (and the HTTP status — 201 when created, 200 when an existing profile was returned) tells the two apart. To overwrite an existing profile's `scopes`/`roleId`, `identityOverrides`, and `status` instead of returning it unchanged, set `?upsert=true` (this also requires the `profiles:u` scope). You must provide exactly one of `scopes` (an inline list of scopes) or `roleId` (a reference to a role); supplying both, or neither, is rejected. `identityOverrides` is keyed by ownership namespace in `scope:<namespace>` form — `scope:org` and `scope:client` for the reserved namespaces, or any namespace you have registered — and may name at most two; any other key (including the account identifier or `userId`) is rejected. If you use a scoped credential, the profile's effective scopes may not exceed your own; a root API key (`sk_`) is exempt. Requires the `profiles:c` scope.
|
|
2816
|
+
* Creates a new access profile under the given app context. This call is idempotent by `principalId`: if a profile with the same `principalId` already exists, the existing profile is returned (with status 200) instead of creating a duplicate. The response's `created` field (and the HTTP status — 201 when created, 200 when an existing profile was returned) tells the two apart. To overwrite an existing profile's `scopes`/`roleId`, `identityOverrides`, and `status` instead of returning it unchanged, set `?upsert=true` (this also requires the `profiles:u` scope, and applies the same `identityOverrides` bounds the update endpoint documents — a scoped credential may not repoint or clear an identity value it does not itself hold). You must provide exactly one of `scopes` (an inline list of scopes) or `roleId` (a reference to a role); supplying both, or neither, is rejected. `identityOverrides` is keyed by ownership namespace in `scope:<namespace>` form — `scope:org` and `scope:client` for the reserved namespaces, or any namespace you have registered — and may name at most two; any other key (including the account identifier or `userId`) is rejected. If you use a scoped credential, the profile's effective scopes may not exceed your own; a root API key (`sk_`) is exempt. Requires the `profiles:c` scope.
|
|
2817
2817
|
*
|
|
2818
2818
|
* @param {Vectros.CreateAccessProfileRequest} request
|
|
2819
2819
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -3231,7 +3231,7 @@ var AuthClient = class {
|
|
|
3231
3231
|
);
|
|
3232
3232
|
}
|
|
3233
3233
|
/**
|
|
3234
|
-
* Updates an access profile. This is a partial update: any field you omit (or send as null) keeps its existing value. A profile must reference either inline `scopes` or a `roleId`, never both — so setting `scopes` clears any `roleId`, and setting `roleId` clears any inline `scopes`. The `contextId` and `principalId` are immutable. Status changes (for example active to suspended) take effect within about five minutes. If you use a scoped credential, the profile's effective scopes may not exceed your own
|
|
3234
|
+
* Updates an access profile. This is a partial update: any field you omit (or send as null) keeps its existing value. A profile must reference either inline `scopes` or a `roleId`, never both — so setting `scopes` clears any `roleId`, and setting `roleId` clears any inline `scopes`. The `contextId` and `principalId` are immutable. Status changes (for example active to suspended) take effect within about five minutes. If you use a scoped credential, the profile's effective scopes may not exceed your own, and its `identityOverrides` are bounded twice: you may only set a value your own identity holds, and you may only change or clear a value the profile already holds if that value is yours as well. Repointing or clearing another principal's established identity therefore returns 403. A root API key (`sk_`) is exempt. Requires the `profiles:u` scope.
|
|
3235
3235
|
*
|
|
3236
3236
|
* @param {Vectros.UpdateAccessProfileRequest} request
|
|
3237
3237
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -3304,7 +3304,7 @@ var AuthClient = class {
|
|
|
3304
3304
|
);
|
|
3305
3305
|
}
|
|
3306
3306
|
/**
|
|
3307
|
-
* Deletes an access profile. Within about five minutes (the access-profile cache lifetime), token minting for this principal in this context will be denied. Requires the `profiles:d` scope.
|
|
3307
|
+
* Deletes an access profile. Within about five minutes (the access-profile cache lifetime), token minting for this principal in this context will be denied. If you use a scoped credential and the profile carries `identityOverrides`, you may only delete it when you hold those values yourself — deleting a profile removes its identity, so the same bound applies as when clearing it. A profile with no `identityOverrides` is unaffected, and a root API key (`sk_`) is exempt. Requires the `profiles:d` scope.
|
|
3308
3308
|
*
|
|
3309
3309
|
* @param {Vectros.DeleteAccessProfileRequest} request
|
|
3310
3310
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -4158,7 +4158,7 @@ var AuthClient = class {
|
|
|
4158
4158
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/auth/token");
|
|
4159
4159
|
}
|
|
4160
4160
|
/**
|
|
4161
|
-
* Invite a new member to one of your app contexts by email. Creates a pending user with a pre-resolved access profile (their permissions on accept) and signs an invitation token. This call is idempotent on the combination of context and email: re-inviting the same email in the same context rotates the token and resends the invitation rather than creating a duplicate. Returns HTTP 201 on a new invite or a successful resend. Returns 409 if that email already belongs to an active or suspended member of the app context, or already has an identity elsewhere in your account (an email can currently belong to only one tenant per account, i.e. your test and live environments cannot share an email). When `sendEmail` is false, the response includes the raw token and a ready-to-use accept link so you can deliver the invitation through your own email provider. Requires the `
|
|
4161
|
+
* Invite a new member to one of your app contexts by email. Creates a pending user with a pre-resolved access profile (their permissions on accept) and signs an invitation token. This call is idempotent on the combination of context and email: re-inviting the same email in the same context rotates the token and resends the invitation rather than creating a duplicate — this requires the `users:r` and `users:u` scopes in addition to `users:c`, because resending rotates a credential on an existing invitation and invalidates any link already sent. Without them the collision returns 409 instead, with no invitation details and no change to the outstanding invitation. Returns HTTP 201 on a new invite or a successful resend. Returns 409 if that email already belongs to an active or suspended member of the app context, or already has an identity elsewhere in your account (an email can currently belong to only one tenant per account, i.e. your test and live environments cannot share an email). When `sendEmail` is false, the response includes the raw token and a ready-to-use accept link so you can deliver the invitation through your own email provider. Requires the `users:c` scope.
|
|
4162
4162
|
*
|
|
4163
4163
|
* @param {Vectros.CreateInviteRequest} request
|
|
4164
4164
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -4229,7 +4229,7 @@ var AuthClient = class {
|
|
|
4229
4229
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/users/invite");
|
|
4230
4230
|
}
|
|
4231
4231
|
/**
|
|
4232
|
-
* Resend an outstanding invitation, identified by its email and app context. Rotates the invitation token and extends its expiry, then (when `sendEmail` is true) re-delivers the email. Rotating the token invalidates any previously issued link for this invitation, so only the newest link works. The invitee's pending permissions are left unchanged.
|
|
4232
|
+
* Resend an outstanding invitation, identified by its email and app context. Rotates the invitation token and extends its expiry, then (when `sendEmail` is true) re-delivers the email. Rotating the token invalidates any previously issued link for this invitation, so only the newest link works. The invitee's pending permissions are left unchanged. Because this rotates a credential on an existing invitation, it requires the `users:c`, `users:r` and `users:u` scopes.
|
|
4233
4233
|
*
|
|
4234
4234
|
* @param {Vectros.CreateInviteRequest} request
|
|
4235
4235
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -4563,7 +4563,7 @@ var DocumentsClient = class {
|
|
|
4563
4563
|
* userId: "550e8400-e29b-41d4-a716-446655440000",
|
|
4564
4564
|
* scope: "group:eng-team",
|
|
4565
4565
|
* folderId: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
|
|
4566
|
-
* startFrom: "
|
|
4566
|
+
* startFrom: "b3BhcXVlLWN1cnNvci1mcm9tLXRoZS1wcmV2aW91cy1wYWdl"
|
|
4567
4567
|
* })
|
|
4568
4568
|
*/
|
|
4569
4569
|
listDocuments(request = {}, requestOptions) {
|
|
@@ -4873,6 +4873,7 @@ var DocumentsClient = class {
|
|
|
4873
4873
|
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
4874
4874
|
*
|
|
4875
4875
|
* @throws {@link Vectros.BadRequestError}
|
|
4876
|
+
* @throws {@link Vectros.ForbiddenError}
|
|
4876
4877
|
* @throws {@link Vectros.NotFoundError}
|
|
4877
4878
|
* @throws {@link Vectros.ConflictError}
|
|
4878
4879
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
@@ -4920,6 +4921,8 @@ var DocumentsClient = class {
|
|
|
4920
4921
|
switch (_response.error.statusCode) {
|
|
4921
4922
|
case 400:
|
|
4922
4923
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
4924
|
+
case 403:
|
|
4925
|
+
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
4923
4926
|
case 404:
|
|
4924
4927
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
4925
4928
|
case 409:
|
|
@@ -4950,7 +4953,7 @@ var DocumentsClient = class {
|
|
|
4950
4953
|
* field: "po_number",
|
|
4951
4954
|
* value: "PO-1001",
|
|
4952
4955
|
* prefix: "PO-2024",
|
|
4953
|
-
* startFrom: "
|
|
4956
|
+
* startFrom: "b3BhcXVlLWN1cnNvci1mcm9tLXRoZS1wcmV2aW91cy1wYWdl",
|
|
4954
4957
|
* userId: "550e8400-e29b-41d4-a716-446655440000",
|
|
4955
4958
|
* scope: "org:6ba7b810-9dad-11d1-80b4-00c04fd430c8"
|
|
4956
4959
|
* })
|
|
@@ -5326,7 +5329,7 @@ var FoldersClient = class {
|
|
|
5326
5329
|
* parentFolderId: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
|
|
5327
5330
|
* userId: "550e8400-e29b-41d4-a716-446655440000",
|
|
5328
5331
|
* scope: "group:eng-team",
|
|
5329
|
-
* startFrom: "
|
|
5332
|
+
* startFrom: "b3BhcXVlLWN1cnNvci1mcm9tLXRoZS1wcmV2aW91cy1wYWdl"
|
|
5330
5333
|
* })
|
|
5331
5334
|
*/
|
|
5332
5335
|
listFolders(request = {}, requestOptions) {
|
|
@@ -5503,6 +5506,7 @@ var FoldersClient = class {
|
|
|
5503
5506
|
* @param {Vectros.UpdateFolderRequest} request
|
|
5504
5507
|
* @param {FoldersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
5505
5508
|
*
|
|
5509
|
+
* @throws {@link Vectros.ForbiddenError}
|
|
5506
5510
|
* @throws {@link Vectros.NotFoundError}
|
|
5507
5511
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
5508
5512
|
*
|
|
@@ -5547,6 +5551,8 @@ var FoldersClient = class {
|
|
|
5547
5551
|
}
|
|
5548
5552
|
if (_response.error.reason === "status-code") {
|
|
5549
5553
|
switch (_response.error.statusCode) {
|
|
5554
|
+
case 403:
|
|
5555
|
+
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
5550
5556
|
case 404:
|
|
5551
5557
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
5552
5558
|
case 429:
|
|
@@ -5629,6 +5635,7 @@ var FoldersClient = class {
|
|
|
5629
5635
|
* @param {FoldersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
5630
5636
|
*
|
|
5631
5637
|
* @throws {@link Vectros.BadRequestError}
|
|
5638
|
+
* @throws {@link Vectros.ForbiddenError}
|
|
5632
5639
|
* @throws {@link Vectros.NotFoundError}
|
|
5633
5640
|
* @throws {@link Vectros.ConflictError}
|
|
5634
5641
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
@@ -5676,6 +5683,8 @@ var FoldersClient = class {
|
|
|
5676
5683
|
switch (_response.error.statusCode) {
|
|
5677
5684
|
case 400:
|
|
5678
5685
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
5686
|
+
case 403:
|
|
5687
|
+
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
5679
5688
|
case 404:
|
|
5680
5689
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
5681
5690
|
case 409:
|
|
@@ -5763,7 +5772,8 @@ var IdentityClient = class {
|
|
|
5763
5772
|
*
|
|
5764
5773
|
* @example
|
|
5765
5774
|
* await client.identity.listEntities({
|
|
5766
|
-
* namespace: "team"
|
|
5775
|
+
* namespace: "team",
|
|
5776
|
+
* startFrom: "b3BhcXVlLWN1cnNvci1mcm9tLXRoZS1wcmV2aW91cy1wYWdl"
|
|
5767
5777
|
* })
|
|
5768
5778
|
*/
|
|
5769
5779
|
listEntities(request, requestOptions) {
|
|
@@ -6527,7 +6537,7 @@ var IdentityClient = class {
|
|
|
6527
6537
|
* @example
|
|
6528
6538
|
* await client.identity.listUsers({
|
|
6529
6539
|
* externalId: "usr_12345",
|
|
6530
|
-
* startFrom: "
|
|
6540
|
+
* startFrom: "b3BhcXVlLWN1cnNvci1mcm9tLXRoZS1wcmV2aW91cy1wYWdl",
|
|
6531
6541
|
* type: "person_v1",
|
|
6532
6542
|
* field: "team",
|
|
6533
6543
|
* value: "engineering",
|
|
@@ -6708,11 +6718,12 @@ var IdentityClient = class {
|
|
|
6708
6718
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/users/{id}");
|
|
6709
6719
|
}
|
|
6710
6720
|
/**
|
|
6711
|
-
* Updates mutable fields on an existing user (such as email, status, payload, or schema binding). The `type` field is immutable after creation. This endpoint also activates an invited user: a PUT that moves a PENDING user to ACTIVE and carries `inviteToken`, `externalSubject`, and `emailVerifiedAttestation=true` completes the invitation. Requires the `users:u` scope.
|
|
6721
|
+
* Updates mutable fields on an existing user (such as email, status, payload, or schema binding). The `type` field is immutable after creation, and `email` cannot be changed while an invitation to that user is still outstanding — revoke the invitation, or invite the new address instead. This endpoint also activates an invited user: a PUT that moves a PENDING user to ACTIVE and carries `inviteToken`, `externalSubject`, and `emailVerifiedAttestation=true` completes the invitation. Requires the `users:u` scope.
|
|
6712
6722
|
*
|
|
6713
6723
|
* @param {Vectros.UpdateUserRequest} request
|
|
6714
6724
|
* @param {IdentityClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
6715
6725
|
*
|
|
6726
|
+
* @throws {@link Vectros.BadRequestError}
|
|
6716
6727
|
* @throws {@link Vectros.NotFoundError}
|
|
6717
6728
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
6718
6729
|
*
|
|
@@ -6757,6 +6768,8 @@ var IdentityClient = class {
|
|
|
6757
6768
|
}
|
|
6758
6769
|
if (_response.error.reason === "status-code") {
|
|
6759
6770
|
switch (_response.error.statusCode) {
|
|
6771
|
+
case 400:
|
|
6772
|
+
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
6760
6773
|
case 404:
|
|
6761
6774
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
6762
6775
|
case 429:
|
|
@@ -7404,7 +7417,7 @@ var RecordsClient = class {
|
|
|
7404
7417
|
* folderId: "f47ac10b-58cc-4372-a567-0e02b2c3d479",
|
|
7405
7418
|
* userId: "550e8400-e29b-41d4-a716-446655440000",
|
|
7406
7419
|
* scope: "group:eng-team",
|
|
7407
|
-
* startFrom: "
|
|
7420
|
+
* startFrom: "b3BhcXVlLWN1cnNvci1mcm9tLXRoZS1wcmV2aW91cy1wYWdl"
|
|
7408
7421
|
* })
|
|
7409
7422
|
*/
|
|
7410
7423
|
listRecords(request = {}, requestOptions) {
|
|
@@ -7592,6 +7605,7 @@ var RecordsClient = class {
|
|
|
7592
7605
|
* @param {RecordsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
7593
7606
|
*
|
|
7594
7607
|
* @throws {@link Vectros.BadRequestError}
|
|
7608
|
+
* @throws {@link Vectros.ForbiddenError}
|
|
7595
7609
|
* @throws {@link Vectros.NotFoundError}
|
|
7596
7610
|
* @throws {@link Vectros.ConflictError}
|
|
7597
7611
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
@@ -7640,6 +7654,8 @@ var RecordsClient = class {
|
|
|
7640
7654
|
switch (_response.error.statusCode) {
|
|
7641
7655
|
case 400:
|
|
7642
7656
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
7657
|
+
case 403:
|
|
7658
|
+
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
7643
7659
|
case 404:
|
|
7644
7660
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
7645
7661
|
case 409:
|
|
@@ -7721,6 +7737,7 @@ var RecordsClient = class {
|
|
|
7721
7737
|
* @param {RecordsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
7722
7738
|
*
|
|
7723
7739
|
* @throws {@link Vectros.BadRequestError}
|
|
7740
|
+
* @throws {@link Vectros.ForbiddenError}
|
|
7724
7741
|
* @throws {@link Vectros.NotFoundError}
|
|
7725
7742
|
* @throws {@link Vectros.ConflictError}
|
|
7726
7743
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
@@ -7771,6 +7788,8 @@ var RecordsClient = class {
|
|
|
7771
7788
|
switch (_response.error.statusCode) {
|
|
7772
7789
|
case 400:
|
|
7773
7790
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
7791
|
+
case 403:
|
|
7792
|
+
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
7774
7793
|
case 404:
|
|
7775
7794
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
7776
7795
|
case 409:
|
|
@@ -7788,7 +7807,15 @@ var RecordsClient = class {
|
|
|
7788
7807
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PATCH", "/v1/records/{id}");
|
|
7789
7808
|
}
|
|
7790
7809
|
/**
|
|
7791
|
-
* Finds records by the value of a lookup field declared on the type's schema. Provide exactly one lookup mode: `value` (exact match), `from`+`to` (inclusive range, ascending by value), or `prefix` (string fields only, ascending). Range and prefix lookups are not supported on a sensitive field, because its value is stored as a blind index and has no sortable order. An exact-`value` lookup on a sensitive field is also rejected on this GET endpoint — the value must not appear in the URL — so use the `POST /v1/records/lookup` body variant for sensitive fields.
|
|
7810
|
+
* Finds records by the value of a lookup field declared on the type's schema. Provide exactly one lookup mode: `value` (exact match), `from`+`to` (inclusive range, ascending by value), or `prefix` (string fields only, ascending). Range and prefix lookups are not supported on a sensitive field, because its value is stored as a blind index and has no sortable order. An exact-`value` lookup on a sensitive field is also rejected on this GET endpoint — the value must not appear in the URL — so use the `POST /v1/records/lookup` body variant for sensitive fields.
|
|
7811
|
+
*
|
|
7812
|
+
* A `value` lookup can additionally be narrowed to a window of the lookup field's **sort key** using `sortFrom` and/or `sortTo` (inclusive) — for example, one session's records created since a timestamp. The sort key is whatever the schema declares as that lookup's `sortBy` (`createdAt` by default, `lastUpdated`, or another field), and bounds are given in that field's own units — epoch milliseconds for the two timestamp options. **Records that have no value for the sorted field are never included in a bounded window** — they are ordered ahead of every record that does have one, and a `sortFrom`/`sortTo` window only ever selects from records carrying a value. The sorted field does not have to be `required`.
|
|
7813
|
+
*
|
|
7814
|
+
* Narrowing is available on any lookup field your schema declares for fast equality lookup, and on `externalId` — which is always ordered by creation time, so its bounds are epoch milliseconds whatever the schema says. It is rejected (`400`) for a field declared with `rangeEnabled`, for a field declared beyond the schema's fast-lookup budget, for a lookup whose `sortBy` names a sensitive field (a sensitive value is stored as a blind index and has no order), and for a window whose start is after its end. Ownership fields are not lookup fields on this endpoint at all — see the `field` parameter.
|
|
7815
|
+
*
|
|
7816
|
+
* While paging a narrowed lookup, keep every other parameter identical. The cursor is valid only for the exact query that returned it — changing `order`, `sortFrom`, `sortTo`, or dropping them altogether, is rejected rather than silently resumed at a position that means something different in the new query.
|
|
7817
|
+
*
|
|
7818
|
+
* Results are paginated: set `limit` for the page size and pass the returned `nextCursor` back as `startFrom` for the next page. **Keep paging until `nextCursor` is null** — a page can come back empty or shorter than `limit` while more results remain, so an empty page is not the end of the results. Requires the `records:r:<type>` scope.
|
|
7792
7819
|
*
|
|
7793
7820
|
* @param {Vectros.LookupRecordsRequest} request
|
|
7794
7821
|
* @param {RecordsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -7800,22 +7827,40 @@ var RecordsClient = class {
|
|
|
7800
7827
|
* type: "intake_form",
|
|
7801
7828
|
* field: "email",
|
|
7802
7829
|
* value: "jane@example.com",
|
|
7830
|
+
* values: ["open"],
|
|
7803
7831
|
* prefix: "jane",
|
|
7804
|
-
* startFrom: "
|
|
7832
|
+
* startFrom: "b3BhcXVlLWN1cnNvci1mcm9tLXRoZS1wcmV2aW91cy1wYWdl"
|
|
7805
7833
|
* })
|
|
7806
7834
|
*/
|
|
7807
7835
|
lookupRecords(request, requestOptions) {
|
|
7808
7836
|
return HttpResponsePromise.fromPromise(this.__lookupRecords(request, requestOptions));
|
|
7809
7837
|
}
|
|
7810
7838
|
async __lookupRecords(request, requestOptions) {
|
|
7811
|
-
const {
|
|
7839
|
+
const {
|
|
7840
|
+
type: type_,
|
|
7841
|
+
field,
|
|
7842
|
+
value,
|
|
7843
|
+
values,
|
|
7844
|
+
from: from_,
|
|
7845
|
+
to,
|
|
7846
|
+
prefix,
|
|
7847
|
+
sortFrom,
|
|
7848
|
+
sortTo,
|
|
7849
|
+
startFrom,
|
|
7850
|
+
limit,
|
|
7851
|
+
includePayload,
|
|
7852
|
+
order
|
|
7853
|
+
} = request;
|
|
7812
7854
|
const _queryParams = {
|
|
7813
7855
|
type: type_,
|
|
7814
7856
|
field,
|
|
7815
7857
|
value,
|
|
7858
|
+
values,
|
|
7816
7859
|
from: from_,
|
|
7817
7860
|
to,
|
|
7818
7861
|
prefix,
|
|
7862
|
+
sortFrom,
|
|
7863
|
+
sortTo,
|
|
7819
7864
|
startFrom,
|
|
7820
7865
|
limit,
|
|
7821
7866
|
includePayload,
|
|
@@ -7859,7 +7904,7 @@ var RecordsClient = class {
|
|
|
7859
7904
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/records/lookup");
|
|
7860
7905
|
}
|
|
7861
7906
|
/**
|
|
7862
|
-
* Body-based equivalent of `GET /v1/records/lookup`. Use this when looking up by a sensitive field: the value travels in the request body (and is blind-indexed server-side) instead of in the URL query string, so it never lands in access, CDN, or proxy logs. The GET variant rejects an exact-value lookup on a sensitive field and directs you here. Non-sensitive exact-value, range (`from`+`to`), and prefix lookups also work here. Returns the same `{data, nextCursor}` envelope and uses the same pagination as the GET variant. Requires the `records:r:<type>` scope.
|
|
7907
|
+
* Body-based equivalent of `GET /v1/records/lookup`. Use this when looking up by a sensitive field: the value travels in the request body (and is blind-indexed server-side) instead of in the URL query string, so it never lands in access, CDN, or proxy logs. The GET variant rejects an exact-value lookup on a sensitive field and directs you here. Non-sensitive exact-value, range (`from`+`to`), and prefix lookups also work here, as does narrowing a `value` lookup by the field's sort key with `sortFrom`/`sortTo` — see the GET variant for what the sort key is and when narrowing by it is available. Returns the same `{data, nextCursor}` envelope and uses the same pagination as the GET variant; keep paging until `nextCursor` is null rather than stopping on an empty page. Requires the `records:r:<type>` scope.
|
|
7863
7908
|
*
|
|
7864
7909
|
* @param {Vectros.RecordLookupRequest} request
|
|
7865
7910
|
* @param {RecordsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -8054,7 +8099,7 @@ var SchemasClient = class {
|
|
|
8054
8099
|
* scope: "org:6ba7b810-9dad-11d1-80b4-00c04fd430c8",
|
|
8055
8100
|
* surface: "document",
|
|
8056
8101
|
* recordType: "intake_form",
|
|
8057
|
-
* startFrom: "
|
|
8102
|
+
* startFrom: "b3BhcXVlLWN1cnNvci1mcm9tLXRoZS1wcmV2aW91cy1wYWdl"
|
|
8058
8103
|
* })
|
|
8059
8104
|
*/
|
|
8060
8105
|
listSchemas(request = {}, requestOptions) {
|
|
@@ -8258,6 +8303,7 @@ var SchemasClient = class {
|
|
|
8258
8303
|
* @param {SchemasClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
8259
8304
|
*
|
|
8260
8305
|
* @throws {@link Vectros.BadRequestError}
|
|
8306
|
+
* @throws {@link Vectros.ForbiddenError}
|
|
8261
8307
|
* @throws {@link Vectros.NotFoundError}
|
|
8262
8308
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
8263
8309
|
*
|
|
@@ -8306,6 +8352,8 @@ var SchemasClient = class {
|
|
|
8306
8352
|
switch (_response.error.statusCode) {
|
|
8307
8353
|
case 400:
|
|
8308
8354
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
8355
|
+
case 403:
|
|
8356
|
+
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
8309
8357
|
case 404:
|
|
8310
8358
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
8311
8359
|
case 429:
|
|
@@ -8623,8 +8671,8 @@ function warnOnSuboptimalKey(key, log) {
|
|
|
8623
8671
|
|
|
8624
8672
|
// src/build-info.ts
|
|
8625
8673
|
var BUILD_INFO = {
|
|
8626
|
-
mcpServer: true ? "0.
|
|
8627
|
-
sdk: true ? "0.
|
|
8674
|
+
mcpServer: true ? "0.13.0" : "dev",
|
|
8675
|
+
sdk: true ? "0.38.0" : "dev"
|
|
8628
8676
|
};
|
|
8629
8677
|
|
|
8630
8678
|
// src/log.ts
|
|
@@ -8664,7 +8712,9 @@ async function resolveIdentity({
|
|
|
8664
8712
|
const derived = {
|
|
8665
8713
|
status: "ok",
|
|
8666
8714
|
environment: deriveEnvironment(environment),
|
|
8667
|
-
principalType: derivePrincipalType(apiKey)
|
|
8715
|
+
principalType: derivePrincipalType(apiKey),
|
|
8716
|
+
mcpServerVersion: BUILD_INFO.mcpServer,
|
|
8717
|
+
sdkVersion: BUILD_INFO.sdk
|
|
8668
8718
|
};
|
|
8669
8719
|
if (!apiKey || !environment) {
|
|
8670
8720
|
log.debug({ component: "identity", mode: "derived-only" }, "identity derived (no fetch)");
|
|
@@ -8692,7 +8742,13 @@ async function resolveIdentity({
|
|
|
8692
8742
|
);
|
|
8693
8743
|
}
|
|
8694
8744
|
}
|
|
8695
|
-
const merged = {
|
|
8745
|
+
const merged = {
|
|
8746
|
+
...derived,
|
|
8747
|
+
...extended,
|
|
8748
|
+
status: "ok",
|
|
8749
|
+
mcpServerVersion: derived.mcpServerVersion,
|
|
8750
|
+
sdkVersion: derived.sdkVersion
|
|
8751
|
+
};
|
|
8696
8752
|
log.debug(
|
|
8697
8753
|
{
|
|
8698
8754
|
component: "identity",
|
|
@@ -9014,14 +9070,23 @@ import { z as z2 } from "zod";
|
|
|
9014
9070
|
function pageItems(page) {
|
|
9015
9071
|
return page.data ?? [];
|
|
9016
9072
|
}
|
|
9073
|
+
var MAX_PAGES = 100;
|
|
9074
|
+
var MAX_ROWS = 1e6;
|
|
9017
9075
|
async function drainPages(fetchPage) {
|
|
9018
9076
|
const all = [];
|
|
9019
9077
|
let startFrom;
|
|
9078
|
+
let pages = 0;
|
|
9020
9079
|
for (; ; ) {
|
|
9021
9080
|
const page = await fetchPage(startFrom);
|
|
9022
|
-
|
|
9081
|
+
pages++;
|
|
9082
|
+
if (page.data?.length) for (const item of page.data) all.push(item);
|
|
9023
9083
|
const next = page.nextCursor;
|
|
9024
9084
|
if (!next) break;
|
|
9085
|
+
if (pages > MAX_PAGES || all.length > MAX_ROWS) {
|
|
9086
|
+
throw new Error(
|
|
9087
|
+
`drainPages: exceeded the runaway guard (${all.length} rows over ${pages} pages, limits ${MAX_ROWS}/${MAX_PAGES}) without the cursor going null. Refusing to return a partial result \u2014 the backend may be returning empty pages with a live cursor.`
|
|
9088
|
+
);
|
|
9089
|
+
}
|
|
9025
9090
|
startFrom = next;
|
|
9026
9091
|
}
|
|
9027
9092
|
return all;
|
|
@@ -9032,14 +9097,23 @@ var MCP_DEFAULT_LIMIT2 = 3;
|
|
|
9032
9097
|
var MCP_MAX_LIMIT2 = 100;
|
|
9033
9098
|
var inputSchema2 = {
|
|
9034
9099
|
type: z2.string().min(1, "type (record type) is required").describe('Record type / schema name (e.g. "patient", "clinical_note").'),
|
|
9035
|
-
// Lookup-mode args — provide `field` plus EXACTLY ONE of: value | from+to | prefix.
|
|
9100
|
+
// Lookup-mode args — provide `field` plus EXACTLY ONE of: value | values | from+to | prefix.
|
|
9036
9101
|
field: z2.string().optional().describe(
|
|
9037
|
-
'Lookup mode: name of the lookup-indexed field to query by. `externalId` is always queryable \u2014 e.g. `{type:"control", field:"externalId", value:"ctrl-scoped-key"}` finds the record you created under that externalId. (record_get / record_update also accept externalId directly.)'
|
|
9102
|
+
'Lookup mode: name of the lookup-indexed field to query by. `externalId` is always queryable \u2014 e.g. `{type:"control", field:"externalId", value:"ctrl-scoped-key"}` finds the record you created under that externalId. (record_get / record_update also accept externalId directly.) For a SCHEMA-declared composite lookup \u2014 check list_schemas\' lookupFields for a fieldNames entry, not any two fields you pick \u2014 give those field names comma-joined in the declared order (e.g. "status,area"). Use `values` to match on several of those fields at once, or `value` to match on just the FIRST field named (equivalent to a one-element `values`); range/prefix are not valid on a composite field.'
|
|
9103
|
+
),
|
|
9104
|
+
value: z2.string().optional().describe(
|
|
9105
|
+
"Lookup mode (equality): exact-match value for `field`. Also valid when `field` names a SCHEMA-declared composite lookup \u2014 matches just the first named field, grouping by the rest (equivalent to `values` with one entry)."
|
|
9106
|
+
),
|
|
9107
|
+
values: z2.array(z2.string()).min(1).max(3).optional().describe(
|
|
9108
|
+
'Lookup mode (composite equality): only valid against a lookup the SCHEMA declares over several fields together (a fieldNames entry in list_schemas \u2014 you cannot combine two ordinary single-field lookups this way). One value per field, in the order the schema declares them (e.g. field="status,area", values=["open","billing"]). Mutually exclusive with `value`; a single-element array is exactly `value` written uniformly. Supplying FEWER values than the lookup declares is allowed \u2014 as long as they\'re a leading run of its fields \u2014 and returns records grouped by the fields left unspecified; `order` then sorts within each group, not across them. Record lookups only (not documents/users/entities).'
|
|
9038
9109
|
),
|
|
9039
|
-
value: z2.string().optional().describe("Lookup mode (equality): exact-match value for `field`."),
|
|
9040
9110
|
from: z2.string().optional().describe("Lookup mode (range): inclusive lower bound; requires `to`. Non-sensitive fields only."),
|
|
9041
9111
|
to: z2.string().optional().describe("Lookup mode (range): inclusive upper bound; requires `from`."),
|
|
9042
9112
|
prefix: z2.string().optional().describe("Lookup mode (prefix): match values starting with this. String, non-sensitive fields only."),
|
|
9113
|
+
sortFrom: z2.string().optional().describe(
|
|
9114
|
+
"Lookup mode (equality/composite only): inclusive lower bound on the lookup field's sort key, narrowing a `value`/`values` match to a window instead of paging the whole match. Give the bound in the sort field's own units (epoch milliseconds for `createdAt`/`lastUpdated`). With `values`, requires every value be supplied (no grouping) for one continuous ordering. Not valid with `from`/`to`/`prefix`."
|
|
9115
|
+
),
|
|
9116
|
+
sortTo: z2.string().optional().describe("Lookup mode (equality/composite only): inclusive upper bound on the sort key; pairs with `sortFrom`."),
|
|
9043
9117
|
order: z2.enum(["asc", "desc"]).optional().describe(
|
|
9044
9118
|
"Lookup mode: sort direction by the looked-up field. `asc` (default) or `desc` \u2014 use `desc` with a range/prefix lookup to get the most-recent / highest values first (e.g. latest-N). Ignored in list mode."
|
|
9045
9119
|
),
|
|
@@ -9056,54 +9130,106 @@ var inputSchema2 = {
|
|
|
9056
9130
|
var recordQuery = ({ client, log }) => ({
|
|
9057
9131
|
name: "record_query",
|
|
9058
9132
|
title: "Record query (list or lookup)",
|
|
9059
|
-
description: "Query structured records of a given type. Two modes:\n \u2022 Lookup on a lookup-indexed field: pass `field` plus exactly one of `value` (exact), `from`+`to` (range), or `prefix`. Works on sensitive fields too
|
|
9133
|
+
description: "Query structured records of a given type. Two modes:\n \u2022 Lookup on a lookup-indexed field: pass `field` plus exactly one of `value` (exact), `values` (exact, composite \u2014 one value per field; a single-element array is the same as `value`), `from`+`to` (range), or `prefix`. `values` with more than one entry, or a comma-joined `field`, ONLY works for a lookup the schema itself declared over several fields together \u2014 check list_schemas' lookupFields for a fieldNames entry, then pass those field names comma-joined as `field`; `from`/`to`/`prefix` are not valid there. Works on sensitive fields too. Optionally narrow an exact match to a window with `sortFrom`/`sortTo`.\n \u2022 List by type: omit `field`; optionally filter by `userId` or `scope` (`namespace:value`).\nReturns a `{ data, nextCursor }` page: `data` holds up to `limit` records (default 3, max 100 \u2014 raise it in one call when you can accept the payload), and a non-null `nextCursor` means more remain \u2014 pass it back as `startFrom` to page. A composite lookup given fewer than its full field count returns records grouped by the unspecified fields, ordered within each group. Mode is auto-detected from the arguments present.",
|
|
9060
9134
|
inputSchema: inputSchema2,
|
|
9061
9135
|
handler: async (args) => {
|
|
9062
9136
|
const limit = args.limit ?? MCP_DEFAULT_LIMIT2;
|
|
9063
9137
|
const type = args.type;
|
|
9064
9138
|
const field = args.field;
|
|
9065
9139
|
const value = args.value;
|
|
9140
|
+
const values = args.values;
|
|
9066
9141
|
const from = args.from;
|
|
9067
9142
|
const to = args.to;
|
|
9068
9143
|
const prefix = args.prefix;
|
|
9144
|
+
const sortFrom = args.sortFrom;
|
|
9145
|
+
const sortTo = args.sortTo;
|
|
9069
9146
|
const startFrom = args.startFrom;
|
|
9147
|
+
if (!field && (value !== void 0 || values !== void 0 || from !== void 0 || to !== void 0 || prefix !== void 0 || sortFrom !== void 0 || sortTo !== void 0)) {
|
|
9148
|
+
return toolError(
|
|
9149
|
+
"record_query",
|
|
9150
|
+
new Error(
|
|
9151
|
+
"'value'/'values'/'from'/'to'/'prefix'/'sortFrom'/'sortTo' require 'field' \u2014 without it, list mode runs and silently ignores them. Pass 'field' to run a lookup, or drop these to list by type."
|
|
9152
|
+
)
|
|
9153
|
+
);
|
|
9154
|
+
}
|
|
9070
9155
|
try {
|
|
9071
9156
|
let page;
|
|
9072
9157
|
if (field) {
|
|
9158
|
+
const fieldNames = field.split(",").map((f) => f.trim()).filter(Boolean);
|
|
9159
|
+
const normalizedField = fieldNames.join(",");
|
|
9160
|
+
const isCompositeField = fieldNames.length > 1;
|
|
9073
9161
|
const hasEquality = value !== void 0;
|
|
9162
|
+
const hasComposite = values !== void 0;
|
|
9074
9163
|
const hasRange = from !== void 0 || to !== void 0;
|
|
9075
9164
|
const hasPrefix = prefix !== void 0;
|
|
9076
|
-
const modes = Number(hasEquality) + Number(hasRange) + Number(hasPrefix);
|
|
9165
|
+
const modes = Number(hasEquality) + Number(hasComposite) + Number(hasRange) + Number(hasPrefix);
|
|
9077
9166
|
if (modes === 0) {
|
|
9078
9167
|
return toolError(
|
|
9079
9168
|
"record_query",
|
|
9080
9169
|
new Error(
|
|
9081
|
-
`lookup on field '${field}' needs one of: 'value' (exact), 'from'+'to' (range), or 'prefix'.`
|
|
9170
|
+
`lookup on field '${field}' needs one of: 'value' (exact), 'values' (composite exact), 'from'+'to' (range), or 'prefix'.`
|
|
9082
9171
|
)
|
|
9083
9172
|
);
|
|
9084
9173
|
}
|
|
9085
9174
|
if (modes > 1) {
|
|
9086
9175
|
return toolError(
|
|
9087
9176
|
"record_query",
|
|
9088
|
-
new Error(
|
|
9177
|
+
new Error(
|
|
9178
|
+
"'value', 'values', 'from'/'to', and 'prefix' are mutually exclusive \u2014 provide exactly one."
|
|
9179
|
+
)
|
|
9089
9180
|
);
|
|
9090
9181
|
}
|
|
9091
9182
|
if (hasRange && !(from !== void 0 && to !== void 0)) {
|
|
9092
9183
|
return toolError("record_query", new Error("range lookup requires both 'from' and 'to'."));
|
|
9093
9184
|
}
|
|
9185
|
+
if (isCompositeField && (hasRange || hasPrefix)) {
|
|
9186
|
+
return toolError(
|
|
9187
|
+
"record_query",
|
|
9188
|
+
new Error(
|
|
9189
|
+
`'field' names ${fieldNames.length} fields ('${normalizedField}') \u2014 a composite lookup is exact-match only ('value' or 'values'), not 'from'/'to'/'prefix'.`
|
|
9190
|
+
)
|
|
9191
|
+
);
|
|
9192
|
+
}
|
|
9193
|
+
if (hasComposite && values.length > fieldNames.length) {
|
|
9194
|
+
return toolError(
|
|
9195
|
+
"record_query",
|
|
9196
|
+
new Error(
|
|
9197
|
+
`'values' has ${values.length} entries but 'field' names only ${fieldNames.length} field(s) ('${normalizedField}') \u2014 supply at most one value per field, in order (fewer only as a leading run).`
|
|
9198
|
+
)
|
|
9199
|
+
);
|
|
9200
|
+
}
|
|
9201
|
+
if (sortFrom !== void 0 || sortTo !== void 0) {
|
|
9202
|
+
if (!(hasEquality || hasComposite)) {
|
|
9203
|
+
return toolError(
|
|
9204
|
+
"record_query",
|
|
9205
|
+
new Error("'sortFrom'/'sortTo' narrow a 'value' or 'values' match only \u2014 not 'from'/'to'/'prefix'.")
|
|
9206
|
+
);
|
|
9207
|
+
}
|
|
9208
|
+
if (hasComposite && values.length < fieldNames.length) {
|
|
9209
|
+
return toolError(
|
|
9210
|
+
"record_query",
|
|
9211
|
+
new Error(
|
|
9212
|
+
`'sortFrom'/'sortTo' with 'values' requires a value for every field named in 'field' (got ${values.length} of ${fieldNames.length}) \u2014 a partial/grouped match has no single continuous ordering to window.`
|
|
9213
|
+
)
|
|
9214
|
+
);
|
|
9215
|
+
}
|
|
9216
|
+
}
|
|
9094
9217
|
page = await client.records.lookupRecordsByBody({
|
|
9095
9218
|
type,
|
|
9096
|
-
field,
|
|
9219
|
+
field: normalizedField,
|
|
9097
9220
|
value,
|
|
9221
|
+
values,
|
|
9098
9222
|
from,
|
|
9099
9223
|
to,
|
|
9100
9224
|
prefix,
|
|
9225
|
+
sortFrom,
|
|
9226
|
+
sortTo,
|
|
9101
9227
|
order: args.order,
|
|
9102
9228
|
startFrom,
|
|
9103
9229
|
limit
|
|
9104
9230
|
});
|
|
9105
9231
|
log.debug(
|
|
9106
|
-
{ tool: "record_query", mode: "lookup", type, field, returned: pageItems(page).length },
|
|
9232
|
+
{ tool: "record_query", mode: "lookup", type, field: normalizedField, returned: pageItems(page).length },
|
|
9107
9233
|
"record_query lookup ok"
|
|
9108
9234
|
);
|
|
9109
9235
|
} else {
|
|
@@ -10042,7 +10168,7 @@ var inputSchema18 = {
|
|
|
10042
10168
|
var currentIdentity = ({ log, apiKey, environment }) => ({
|
|
10043
10169
|
name: "current_identity",
|
|
10044
10170
|
title: "Current identity (tenant + principal scope)",
|
|
10045
|
-
description: "Describe the credential the MCP server is operating under. Returns tenantId, environment (staging|production), principalType (root_key|scoped_key|token), principalKeyId, principalLabel, and (for scoped credentials) allowedActions plus dataScope \u2014 the credential's reach as { userId, scopes[] }, where each scope is a `namespace:value` string (e.g. \"org:<uuid>\"). Use this when the user asks 'what can you do here?'
|
|
10171
|
+
description: "Describe the credential the MCP server is operating under. Returns tenantId, environment (staging|production), principalType (root_key|scoped_key|token), principalKeyId, principalLabel, and (for scoped credentials) allowedActions plus dataScope \u2014 the credential's reach as { userId, scopes[] }, where each scope is a `namespace:value` string (e.g. \"org:<uuid>\"). Also reports mcpServerVersion (this server's own package version) and sdkVersion (the bundled @vectros-ai/sdk version) so a caller can tell what build it's talking to. Use this when the user asks 'what can you do here?', 'what tenant am I in?', or 'what version is this?'. Calls GET /v1/ping under the hood.",
|
|
10046
10172
|
inputSchema: inputSchema18,
|
|
10047
10173
|
handler: async () => {
|
|
10048
10174
|
try {
|
|
@@ -10520,7 +10646,7 @@ var identityResource = ({ log, apiKey, environment }) => ({
|
|
|
10520
10646
|
name: "identity",
|
|
10521
10647
|
uri: "vectros://identity",
|
|
10522
10648
|
title: "Current identity (tenant + principal scope)",
|
|
10523
|
-
description: "The tenant + principal scope the MCP server is authenticated as. Returns the same payload as the `current_identity` tool: status, tenantId, environment, principalType, principalKeyId, principalLabel,
|
|
10649
|
+
description: "The tenant + principal scope the MCP server is authenticated as. Returns the same payload as the `current_identity` tool: status, tenantId, environment, principalType, principalKeyId, principalLabel, (for scoped credentials) allowedActions + dataScope ({ userId, scopes[] }), plus mcpServerVersion and sdkVersion (this build's own version and the bundled @vectros-ai/sdk version). The /v1/ping backing call ships the extended shape today; the version fields are always client-derived.",
|
|
10524
10650
|
mimeType: "application/json",
|
|
10525
10651
|
read: async () => {
|
|
10526
10652
|
const identity = await resolveIdentity({ log, apiKey, environment });
|