@vectros-ai/mcp-server 0.18.1 → 0.18.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 +19 -1
- package/README.md +24 -3
- package/dist/cli-http.js +181 -29
- package/dist/cli-http.js.map +1 -1
- package/dist/cli-http.mjs +181 -29
- package/dist/cli-http.mjs.map +1 -1
- package/dist/cli.js +181 -29
- package/dist/cli.js.map +1 -1
- package/dist/cli.mjs +181 -29
- package/dist/cli.mjs.map +1 -1
- package/dist/index.d.mts +4 -7
- package/dist/index.d.ts +4 -7
- package/dist/index.js +181 -29
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +181 -29
- package/dist/index.mjs.map +1 -1
- package/package.json +2 -2
package/dist/index.js
CHANGED
|
@@ -57,9 +57,11 @@ __export2(api_exports, {
|
|
|
57
57
|
BatchWriteRequest: () => BatchWriteRequest,
|
|
58
58
|
BatchWriteResult: () => BatchWriteResult,
|
|
59
59
|
ChatMessage: () => ChatMessage,
|
|
60
|
+
ChatRequest: () => ChatRequest,
|
|
60
61
|
ConflictError: () => ConflictError,
|
|
61
62
|
ContentDeltaEvent: () => ContentDeltaEvent,
|
|
62
63
|
ContentTooLargeError: () => ContentTooLargeError,
|
|
64
|
+
DocumentAskRequest: () => DocumentAskRequest,
|
|
63
65
|
DocumentContextEvent: () => DocumentContextEvent,
|
|
64
66
|
DocumentLookupRequest: () => DocumentLookupRequest,
|
|
65
67
|
DocumentPatchRequest: () => DocumentPatchRequest,
|
|
@@ -90,8 +92,10 @@ __export2(api_exports, {
|
|
|
90
92
|
NotImplementedError: () => NotImplementedError,
|
|
91
93
|
PaymentRequiredError: () => PaymentRequiredError,
|
|
92
94
|
PingResponse: () => PingResponse,
|
|
95
|
+
RagRequest: () => RagRequest,
|
|
93
96
|
RagSearch: () => RagSearch,
|
|
94
97
|
ReadAccessLogResponse: () => ReadAccessLogResponse,
|
|
98
|
+
ReasoningDeltaEvent: () => ReasoningDeltaEvent,
|
|
95
99
|
RecordLookupRequest: () => RecordLookupRequest,
|
|
96
100
|
RecordRequest: () => RecordRequest,
|
|
97
101
|
RecordResponse: () => RecordResponse,
|
|
@@ -447,7 +451,33 @@ var ListUsersRequestOrder = {
|
|
|
447
451
|
Asc: "asc",
|
|
448
452
|
Desc: "desc"
|
|
449
453
|
};
|
|
454
|
+
var ChatRequest;
|
|
455
|
+
((ChatRequest2) => {
|
|
456
|
+
ChatRequest2.Reasoning = {
|
|
457
|
+
Omit: "omit",
|
|
458
|
+
Stream: "stream"
|
|
459
|
+
};
|
|
460
|
+
})(ChatRequest || (ChatRequest = {}));
|
|
461
|
+
var DocumentAskRequest;
|
|
462
|
+
((DocumentAskRequest2) => {
|
|
463
|
+
DocumentAskRequest2.Reasoning = {
|
|
464
|
+
Omit: "omit",
|
|
465
|
+
Stream: "stream"
|
|
466
|
+
};
|
|
467
|
+
})(DocumentAskRequest || (DocumentAskRequest = {}));
|
|
468
|
+
var RagRequest;
|
|
469
|
+
((RagRequest2) => {
|
|
470
|
+
RagRequest2.Reasoning = {
|
|
471
|
+
Omit: "omit",
|
|
472
|
+
Stream: "stream"
|
|
473
|
+
};
|
|
474
|
+
})(RagRequest || (RagRequest = {}));
|
|
450
475
|
var inference_exports = {};
|
|
476
|
+
__export2(inference_exports, {
|
|
477
|
+
ChatRequest: () => ChatRequest,
|
|
478
|
+
DocumentAskRequest: () => DocumentAskRequest,
|
|
479
|
+
RagRequest: () => RagRequest
|
|
480
|
+
});
|
|
451
481
|
var BatchWriteRequest;
|
|
452
482
|
((BatchWriteRequest2) => {
|
|
453
483
|
BatchWriteRequest2.Atomicity = {
|
|
@@ -720,6 +750,12 @@ var ReadAccessLogResponse;
|
|
|
720
750
|
Rag: "rag"
|
|
721
751
|
};
|
|
722
752
|
})(ReadAccessLogResponse || (ReadAccessLogResponse = {}));
|
|
753
|
+
var ReasoningDeltaEvent;
|
|
754
|
+
((ReasoningDeltaEvent2) => {
|
|
755
|
+
ReasoningDeltaEvent2.Event = {
|
|
756
|
+
ReasoningDelta: "reasoning_delta"
|
|
757
|
+
};
|
|
758
|
+
})(ReasoningDeltaEvent || (ReasoningDeltaEvent = {}));
|
|
723
759
|
var RecordRequest;
|
|
724
760
|
((RecordRequest2) => {
|
|
725
761
|
RecordRequest2.Status = {
|
|
@@ -2614,7 +2650,7 @@ var AuthClient = class {
|
|
|
2614
2650
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/admin/keys/scoped");
|
|
2615
2651
|
}
|
|
2616
2652
|
/**
|
|
2617
|
-
* Creates a scoped API key (an `ssk_*` secret) that inherits its permissions from an existing access profile in your account. The call is idempotent on the combination of tenant, context, user, and key name: re-issuing the same request returns the existing key WITHOUT re-disclosing its raw secret. The raw key is returned ONLY in this response — store it securely, as it cannot be retrieved again. Requires the `keys:c` scope. If you use a scoped credential, `keys:c` alone is not sufficient: because the minted key is durably bound to the profile you name, the profile's effective scopes may not exceed your own, and you may only mint against a profile whose `identityOverrides` values your own identity holds. Minting a key bound to your OWN principal needs nothing further; minting one bound to a DIFFERENT principal additionally requires the `delegate-mint` capability (`granted_capabilities`) on your credential — without it the request is refused. A root API key (`sk_`) is exempt from all three bounds. The profile you name must be `active` AND the user you name must not be `SUSPENDED`: either is refused with `409`, and no root exemption applies to that. Both refusals stop ISSUANCE only. Suspending the profile additionally stops credentials already bound to it, within about five minutes
|
|
2653
|
+
* Creates a scoped API key (an `ssk_*` secret) that inherits its permissions from an existing access profile in your account. The call is idempotent on the combination of tenant, context, user, and key name: re-issuing the same request returns the existing key WITHOUT re-disclosing its raw secret. The raw key is returned ONLY in this response — store it securely, as it cannot be retrieved again. Requires the `keys:c` scope. If you use a scoped credential, `keys:c` alone is not sufficient: because the minted key is durably bound to the profile you name, the profile's effective scopes may not exceed your own, and you may only mint against a profile whose `identityOverrides` values your own identity holds. Minting a key bound to your OWN principal needs nothing further; minting one bound to a DIFFERENT principal additionally requires the `delegate-mint` capability (`granted_capabilities`) on your credential — without it the request is refused. A root API key (`sk_`) is exempt from all three bounds. The profile you name must be `active` AND the user you name must not be `SUSPENDED`: either is refused with `409`, and no root exemption applies to that. Both refusals stop ISSUANCE only. Suspending the profile or the user additionally stops credentials already bound to it, within about five minutes. A `PENDING` user is fine.
|
|
2618
2654
|
*
|
|
2619
2655
|
* @param {Vectros.CreateScopedKeyRequest} request
|
|
2620
2656
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -2957,6 +2993,7 @@ var AuthClient = class {
|
|
|
2957
2993
|
* @throws {@link Vectros.BadRequestError}
|
|
2958
2994
|
* @throws {@link Vectros.ForbiddenError}
|
|
2959
2995
|
* @throws {@link Vectros.NotFoundError}
|
|
2996
|
+
* @throws {@link Vectros.ConflictError}
|
|
2960
2997
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
2961
2998
|
*
|
|
2962
2999
|
* @example
|
|
@@ -3009,6 +3046,8 @@ var AuthClient = class {
|
|
|
3009
3046
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
3010
3047
|
case 404:
|
|
3011
3048
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
3049
|
+
case 409:
|
|
3050
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
3012
3051
|
case 429:
|
|
3013
3052
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
3014
3053
|
default:
|
|
@@ -3092,6 +3131,8 @@ var AuthClient = class {
|
|
|
3092
3131
|
* @throws {@link Vectros.BadRequestError}
|
|
3093
3132
|
* @throws {@link Vectros.PaymentRequiredError}
|
|
3094
3133
|
* @throws {@link Vectros.ForbiddenError}
|
|
3134
|
+
* @throws {@link Vectros.NotFoundError}
|
|
3135
|
+
* @throws {@link Vectros.ConflictError}
|
|
3095
3136
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
3096
3137
|
*
|
|
3097
3138
|
* @example
|
|
@@ -3144,6 +3185,10 @@ var AuthClient = class {
|
|
|
3144
3185
|
throw new PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
3145
3186
|
case 403:
|
|
3146
3187
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
3188
|
+
case 404:
|
|
3189
|
+
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
3190
|
+
case 409:
|
|
3191
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
3147
3192
|
case 429:
|
|
3148
3193
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
3149
3194
|
default:
|
|
@@ -3232,6 +3277,7 @@ var AuthClient = class {
|
|
|
3232
3277
|
* @throws {@link Vectros.BadRequestError}
|
|
3233
3278
|
* @throws {@link Vectros.ForbiddenError}
|
|
3234
3279
|
* @throws {@link Vectros.NotFoundError}
|
|
3280
|
+
* @throws {@link Vectros.ConflictError}
|
|
3235
3281
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
3236
3282
|
*
|
|
3237
3283
|
* @example
|
|
@@ -3288,6 +3334,8 @@ var AuthClient = class {
|
|
|
3288
3334
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
3289
3335
|
case 404:
|
|
3290
3336
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
3337
|
+
case 409:
|
|
3338
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
3291
3339
|
case 429:
|
|
3292
3340
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
3293
3341
|
default:
|
|
@@ -3378,6 +3426,7 @@ var AuthClient = class {
|
|
|
3378
3426
|
* @throws {@link Vectros.BadRequestError}
|
|
3379
3427
|
* @throws {@link Vectros.ForbiddenError}
|
|
3380
3428
|
* @throws {@link Vectros.NotFoundError}
|
|
3429
|
+
* @throws {@link Vectros.ConflictError}
|
|
3381
3430
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
3382
3431
|
*
|
|
3383
3432
|
* @example
|
|
@@ -3428,6 +3477,8 @@ var AuthClient = class {
|
|
|
3428
3477
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
3429
3478
|
case 404:
|
|
3430
3479
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
3480
|
+
case 409:
|
|
3481
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
3431
3482
|
case 429:
|
|
3432
3483
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
3433
3484
|
default:
|
|
@@ -3574,13 +3625,14 @@ var AuthClient = class {
|
|
|
3574
3625
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/app-contexts/{contextId}");
|
|
3575
3626
|
}
|
|
3576
3627
|
/**
|
|
3577
|
-
* Updates an app context. This is a partial update: any field you omit (or send as null) keeps its existing value. The `contextId` is immutable and is taken from the URL path, so any `contextId` in the request body is ignored. Patchable fields: `name`, `description`, `companyName`; the per-principal metering trio (`meteringAxis`, `principalBurstLimit`, `principalUsageCap` — only takes effect for
|
|
3628
|
+
* Updates an app context. This is a partial update: any field you omit (or send as null) keeps its existing value. The `contextId` is immutable and is taken from the URL path, so any `contextId` in the request body is ignored. Patchable fields: `name`, `description`, `companyName`; the per-principal metering trio (`meteringAxis`, `principalBurstLimit`, `principalUsageCap` — only takes effect for an account with the corresponding feature enabled); `readAccessLogDefault` (the PHI read-access-logging context default); and `identityProjectionClaims` (requires the platform provisioning capability on top of the ordinary scope below — see its own field description). Requires the `app-contexts:u` scope.
|
|
3578
3629
|
*
|
|
3579
3630
|
* @param {Vectros.UpdateAppContextRequest} request
|
|
3580
3631
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
3581
3632
|
*
|
|
3582
3633
|
* @throws {@link Vectros.ForbiddenError}
|
|
3583
3634
|
* @throws {@link Vectros.NotFoundError}
|
|
3635
|
+
* @throws {@link Vectros.ConflictError}
|
|
3584
3636
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
3585
3637
|
*
|
|
3586
3638
|
* @example
|
|
@@ -3629,6 +3681,8 @@ var AuthClient = class {
|
|
|
3629
3681
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
3630
3682
|
case 404:
|
|
3631
3683
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
3684
|
+
case 409:
|
|
3685
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
3632
3686
|
case 429:
|
|
3633
3687
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
3634
3688
|
default:
|
|
@@ -3785,6 +3839,7 @@ var AuthClient = class {
|
|
|
3785
3839
|
*
|
|
3786
3840
|
* @throws {@link Vectros.ForbiddenError}
|
|
3787
3841
|
* @throws {@link Vectros.NotFoundError}
|
|
3842
|
+
* @throws {@link Vectros.ConflictError}
|
|
3788
3843
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
3789
3844
|
*
|
|
3790
3845
|
* @example
|
|
@@ -3837,6 +3892,8 @@ var AuthClient = class {
|
|
|
3837
3892
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
3838
3893
|
case 404:
|
|
3839
3894
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
3895
|
+
case 409:
|
|
3896
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
3840
3897
|
case 429:
|
|
3841
3898
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
3842
3899
|
default:
|
|
@@ -3862,6 +3919,7 @@ var AuthClient = class {
|
|
|
3862
3919
|
*
|
|
3863
3920
|
* @throws {@link Vectros.ForbiddenError}
|
|
3864
3921
|
* @throws {@link Vectros.NotFoundError}
|
|
3922
|
+
* @throws {@link Vectros.ConflictError}
|
|
3865
3923
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
3866
3924
|
*
|
|
3867
3925
|
* @example
|
|
@@ -3904,6 +3962,8 @@ var AuthClient = class {
|
|
|
3904
3962
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
3905
3963
|
case 404:
|
|
3906
3964
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
3965
|
+
case 409:
|
|
3966
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
3907
3967
|
case 429:
|
|
3908
3968
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
3909
3969
|
default:
|
|
@@ -4185,6 +4245,7 @@ var AuthClient = class {
|
|
|
4185
4245
|
* @throws {@link Vectros.BadRequestError}
|
|
4186
4246
|
* @throws {@link Vectros.ForbiddenError}
|
|
4187
4247
|
* @throws {@link Vectros.NotFoundError}
|
|
4248
|
+
* @throws {@link Vectros.ConflictError}
|
|
4188
4249
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
4189
4250
|
*
|
|
4190
4251
|
* @example
|
|
@@ -4231,6 +4292,8 @@ var AuthClient = class {
|
|
|
4231
4292
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
4232
4293
|
case 404:
|
|
4233
4294
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
4295
|
+
case 409:
|
|
4296
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
4234
4297
|
case 429:
|
|
4235
4298
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
4236
4299
|
default:
|
|
@@ -4244,7 +4307,7 @@ var AuthClient = class {
|
|
|
4244
4307
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/v1/auth/issuers/{issuerId}");
|
|
4245
4308
|
}
|
|
4246
4309
|
/**
|
|
4247
|
-
* Deregisters a trusted third-party IdP issuer. Requires a root API key or the bootstrap's provisioning capability. A credential confined to one app context may only deregister an issuer registered in that context; naming one registered in another context returns 404, identically to a nonexistent issuerId. A root API key may deregister any issuer. Refused if any user account was ever created or matched via this issuer (by a prior self-signup or accepted invite, through `POST /v1/auth/token/exchange`) — that access cannot be silently orphaned. This is unconditional on the affected users' `status`: suspending them first does not lift the refusal. **A bound registration cannot be replaced, self-service, within its own app context**: registering a replacement issuer under a different issuerId in the SAME context also fails, because the context's one-active-issuer claim is released only when THIS registration is deleted. Two real options: suspend this issuer (stops new exchanges immediately) and register a replacement under a DIFFERENT app context — note that targets a different context, so this context's existing users/roles/access profiles are not carried over; or contact
|
|
4310
|
+
* Deregisters a trusted third-party IdP issuer. Requires a root API key or the bootstrap's provisioning capability. A credential confined to one app context may only deregister an issuer registered in that context; naming one registered in another context returns 404, identically to a nonexistent issuerId. A root API key may deregister any issuer. Refused if any user account was ever created or matched via this issuer (by a prior self-signup or accepted invite, through `POST /v1/auth/token/exchange`) — that access cannot be silently orphaned. This is unconditional on the affected users' `status`: suspending them first does not lift the refusal. **A bound registration cannot be replaced, self-service, within its own app context**: registering a replacement issuer under a different issuerId in the SAME context also fails, because the context's one-active-issuer claim is released only when THIS registration is deleted. Two real options: suspend this issuer (stops new exchanges immediately) and register a replacement under a DIFFERENT app context — note that targets a different context, so this context's existing users/roles/access profiles are not carried over; or contact support, who can force-release this registration so a replacement may be registered in the SAME context under a new issuerId. **The support path is not a lighter-weight alternative to the first — it PERMANENTLY RETIRES this issuerId and leaves every bound user unable to ever exchange through it again; it does not preserve continuity for them any better than registering under a different context does.** An issuer that has never been used for an exchange (no bound users yet) can always be deregistered.
|
|
4248
4311
|
*
|
|
4249
4312
|
* @param {Vectros.DeleteIssuerRequest} request
|
|
4250
4313
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -4370,7 +4433,7 @@ var AuthClient = class {
|
|
|
4370
4433
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/auth/issuers");
|
|
4371
4434
|
}
|
|
4372
4435
|
/**
|
|
4373
|
-
* Registers a trusted third-party IdP issuer that BYO-IdP token exchange (`POST /v1/auth/token/exchange`) may accept a `subject_token` from. Requires a root API key or the CLI bootstrap's provisioning capability — never an ordinary
|
|
4436
|
+
* Registers a trusted third-party IdP issuer that BYO-IdP token exchange (`POST /v1/auth/token/exchange`) may accept a `subject_token` from. Requires a root API key or the CLI bootstrap's provisioning capability — never an ordinary grantable scope. A credential authorized only via the provisioning capability may register only against the app context it is bound to; naming a different one returns 403. A root API key is unaffected and may register against any of its contexts. A registration without `restrictedToDomain` is created `pending_verification` with a one-time challenge (`verificationClaim`, `verificationNonce`, `verificationExpiresAt`) and accepts no token until you prove you control the issuer with `POST /v1/auth/issuers/{issuerId}/verify`; it claims no `(issuer, audience)` pair until then, so registering never reveals whether another tenant holds one. A registration scoped to an already-verified domain with `restrictedToDomain` is `active` at once. Idempotent by `issuerId` within your tenant. If `issuerId` collides with a registration owned by a different app context than the one you're confined to, the request fails with 400 rather than returning that context's configuration. An app context may have at most one active issuer — deregister the existing one first if you need to replace it. One issuer MAY serve several contexts, each via its own registration row with a distinct `audience`. Optionally name `restrictedToDomain` to scope this registration's (issuer, audience) uniqueness to a specific VERIFIED domain rather than the bare pair — see that field's own description. A domain-scoped registration proves control of the DOMAIN, not of the issuer itself: it routes only tokens carrying that domain's `hd` claim.
|
|
4374
4437
|
*
|
|
4375
4438
|
* @param {Vectros.IssuerRequest} request
|
|
4376
4439
|
* @param {AuthClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -4779,6 +4842,7 @@ var AuthClient = class {
|
|
|
4779
4842
|
* @throws {@link Vectros.BadRequestError}
|
|
4780
4843
|
* @throws {@link Vectros.ForbiddenError}
|
|
4781
4844
|
* @throws {@link Vectros.NotFoundError}
|
|
4845
|
+
* @throws {@link Vectros.ConflictError}
|
|
4782
4846
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
4783
4847
|
*
|
|
4784
4848
|
* @example
|
|
@@ -4826,6 +4890,8 @@ var AuthClient = class {
|
|
|
4826
4890
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
4827
4891
|
case 404:
|
|
4828
4892
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
4893
|
+
case 409:
|
|
4894
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
4829
4895
|
case 429:
|
|
4830
4896
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
4831
4897
|
default:
|
|
@@ -4925,6 +4991,7 @@ var AuthClient = class {
|
|
|
4925
4991
|
* @throws {@link Vectros.UnauthorizedError}
|
|
4926
4992
|
* @throws {@link Vectros.ForbiddenError}
|
|
4927
4993
|
* @throws {@link Vectros.NotFoundError}
|
|
4994
|
+
* @throws {@link Vectros.ContentTooLargeError}
|
|
4928
4995
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
4929
4996
|
*
|
|
4930
4997
|
* @example
|
|
@@ -4969,6 +5036,8 @@ var AuthClient = class {
|
|
|
4969
5036
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
4970
5037
|
case 404:
|
|
4971
5038
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
5039
|
+
case 413:
|
|
5040
|
+
throw new ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
4972
5041
|
case 429:
|
|
4973
5042
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
4974
5043
|
default:
|
|
@@ -5108,7 +5177,7 @@ var ComplianceClient = class {
|
|
|
5108
5177
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/erasure-requests/{id}");
|
|
5109
5178
|
}
|
|
5110
5179
|
/**
|
|
5111
|
-
*
|
|
5180
|
+
* Reserved: with a root API key this operation answers `501` and starts no job. The request and response shapes are published so that integrations can be written against them: a request names the contexts, or a single end-subject, to export, and the response carries an `exportJobId` that `GET /v1/admin/export/{id}` reports on. Requires a root API key — a scoped credential is rejected with 403.
|
|
5112
5181
|
*
|
|
5113
5182
|
* @param {Vectros.ExportRequest} request
|
|
5114
5183
|
* @param {ComplianceClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -5169,7 +5238,7 @@ var ComplianceClient = class {
|
|
|
5169
5238
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/admin/export");
|
|
5170
5239
|
}
|
|
5171
5240
|
/**
|
|
5172
|
-
*
|
|
5241
|
+
* Reserved: with a root API key this operation answers `501`. Its response shape is the one the export operation above refers to: the job status, and a short-lived presigned download URL and a manifest (format version and per-context counts) for a completed job. Requires a root API key.
|
|
5173
5242
|
*
|
|
5174
5243
|
* @param {Vectros.GetExportRequest} request
|
|
5175
5244
|
* @param {ComplianceClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -5300,6 +5369,8 @@ var DocumentsClient = class {
|
|
|
5300
5369
|
*
|
|
5301
5370
|
* @throws {@link Vectros.BadRequestError}
|
|
5302
5371
|
* @throws {@link Vectros.ForbiddenError}
|
|
5372
|
+
* @throws {@link Vectros.NotFoundError}
|
|
5373
|
+
* @throws {@link Vectros.ConflictError}
|
|
5303
5374
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
5304
5375
|
*
|
|
5305
5376
|
* @example
|
|
@@ -5351,6 +5422,10 @@ var DocumentsClient = class {
|
|
|
5351
5422
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
5352
5423
|
case 403:
|
|
5353
5424
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
5425
|
+
case 404:
|
|
5426
|
+
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
5427
|
+
case 409:
|
|
5428
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
5354
5429
|
case 429:
|
|
5355
5430
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
5356
5431
|
default:
|
|
@@ -5498,6 +5573,7 @@ var DocumentsClient = class {
|
|
|
5498
5573
|
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
5499
5574
|
*
|
|
5500
5575
|
* @throws {@link Vectros.NotFoundError}
|
|
5576
|
+
* @throws {@link Vectros.ConflictError}
|
|
5501
5577
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
5502
5578
|
*
|
|
5503
5579
|
* @example
|
|
@@ -5537,6 +5613,8 @@ var DocumentsClient = class {
|
|
|
5537
5613
|
switch (_response.error.statusCode) {
|
|
5538
5614
|
case 404:
|
|
5539
5615
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
5616
|
+
case 409:
|
|
5617
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
5540
5618
|
case 429:
|
|
5541
5619
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
5542
5620
|
default:
|
|
@@ -5829,7 +5907,7 @@ var DocumentsClient = class {
|
|
|
5829
5907
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/documents/{id}/download");
|
|
5830
5908
|
}
|
|
5831
5909
|
/**
|
|
5832
|
-
* Returns the document's full text body when it is retained:
|
|
5910
|
+
* Returns the document's full text body when it is retained: retained for text-ingested documents, and for file-uploaded documents unless they were uploaded with `storeText=false` (which discards the extracted text once indexing completes — the original file remains available via `GET /v1/documents/{id}/download`). Returns 404 when the document does not exist, its text was not retained, or extraction has not yet completed. Requires the `documents:r` scope.
|
|
5833
5911
|
*
|
|
5834
5912
|
* @param {Vectros.GetDocumentTextRequest} request
|
|
5835
5913
|
* @param {DocumentsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -5949,6 +6027,7 @@ var DocumentsClient = class {
|
|
|
5949
6027
|
*
|
|
5950
6028
|
* @throws {@link Vectros.BadRequestError}
|
|
5951
6029
|
* @throws {@link Vectros.ForbiddenError}
|
|
6030
|
+
* @throws {@link Vectros.ConflictError}
|
|
5952
6031
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
5953
6032
|
*
|
|
5954
6033
|
* @example
|
|
@@ -5998,6 +6077,8 @@ var DocumentsClient = class {
|
|
|
5998
6077
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
5999
6078
|
case 403:
|
|
6000
6079
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
6080
|
+
case 409:
|
|
6081
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
6001
6082
|
case 429:
|
|
6002
6083
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
6003
6084
|
default:
|
|
@@ -6081,6 +6162,8 @@ var FoldersClient = class {
|
|
|
6081
6162
|
*
|
|
6082
6163
|
* @throws {@link Vectros.BadRequestError}
|
|
6083
6164
|
* @throws {@link Vectros.ForbiddenError}
|
|
6165
|
+
* @throws {@link Vectros.NotFoundError}
|
|
6166
|
+
* @throws {@link Vectros.ConflictError}
|
|
6084
6167
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
6085
6168
|
*
|
|
6086
6169
|
* @example
|
|
@@ -6130,6 +6213,10 @@ var FoldersClient = class {
|
|
|
6130
6213
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
6131
6214
|
case 403:
|
|
6132
6215
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
6216
|
+
case 404:
|
|
6217
|
+
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
6218
|
+
case 409:
|
|
6219
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
6133
6220
|
case 429:
|
|
6134
6221
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
6135
6222
|
default:
|
|
@@ -6205,6 +6292,7 @@ var FoldersClient = class {
|
|
|
6205
6292
|
*
|
|
6206
6293
|
* @throws {@link Vectros.ForbiddenError}
|
|
6207
6294
|
* @throws {@link Vectros.NotFoundError}
|
|
6295
|
+
* @throws {@link Vectros.ConflictError}
|
|
6208
6296
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
6209
6297
|
*
|
|
6210
6298
|
* @example
|
|
@@ -6252,6 +6340,8 @@ var FoldersClient = class {
|
|
|
6252
6340
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
6253
6341
|
case 404:
|
|
6254
6342
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
6343
|
+
case 409:
|
|
6344
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
6255
6345
|
case 429:
|
|
6256
6346
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
6257
6347
|
default:
|
|
@@ -6272,6 +6362,7 @@ var FoldersClient = class {
|
|
|
6272
6362
|
*
|
|
6273
6363
|
* @throws {@link Vectros.BadRequestError}
|
|
6274
6364
|
* @throws {@link Vectros.NotFoundError}
|
|
6365
|
+
* @throws {@link Vectros.ConflictError}
|
|
6275
6366
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
6276
6367
|
*
|
|
6277
6368
|
* @example
|
|
@@ -6313,6 +6404,8 @@ var FoldersClient = class {
|
|
|
6313
6404
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
6314
6405
|
case 404:
|
|
6315
6406
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
6407
|
+
case 409:
|
|
6408
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
6316
6409
|
case 429:
|
|
6317
6410
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
6318
6411
|
default:
|
|
@@ -6326,7 +6419,7 @@ var FoldersClient = class {
|
|
|
6326
6419
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/v1/folders/{id}");
|
|
6327
6420
|
}
|
|
6328
6421
|
/**
|
|
6329
|
-
* Partially updates a folder using an RFC 7386 JSON Merge Patch. The `name`, `description`, and ownership fields (`userId`, `scopes`) are applied when present and left unchanged when omitted; sending any of these as null is rejected, because clearing a field is not supported
|
|
6422
|
+
* Partially updates a folder using an RFC 7386 JSON Merge Patch. The `name`, `description`, and ownership fields (`userId`, `scopes`) are applied when present and left unchanged when omitted; sending any of these as null is rejected, because clearing a field is not supported (omit it instead). `slug` and `parentFolderId` are immutable — a folder cannot be re-slugged or moved via the API — and the request is rejected if either is present. Pass `expectedVersion` for optimistic concurrency (you get a 409 if the folder changed since you last read it). Requires the `folders:u` scope.
|
|
6330
6423
|
*
|
|
6331
6424
|
* @param {Vectros.PatchFolderRequest} request
|
|
6332
6425
|
* @param {FoldersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -6549,6 +6642,8 @@ var IdentityClient = class {
|
|
|
6549
6642
|
*
|
|
6550
6643
|
* @throws {@link Vectros.BadRequestError}
|
|
6551
6644
|
* @throws {@link Vectros.ForbiddenError}
|
|
6645
|
+
* @throws {@link Vectros.NotFoundError}
|
|
6646
|
+
* @throws {@link Vectros.ConflictError}
|
|
6552
6647
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
6553
6648
|
*
|
|
6554
6649
|
* @example
|
|
@@ -6601,6 +6696,10 @@ var IdentityClient = class {
|
|
|
6601
6696
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
6602
6697
|
case 403:
|
|
6603
6698
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
6699
|
+
case 404:
|
|
6700
|
+
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
6701
|
+
case 409:
|
|
6702
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
6604
6703
|
case 429:
|
|
6605
6704
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
6606
6705
|
default:
|
|
@@ -6681,6 +6780,7 @@ var IdentityClient = class {
|
|
|
6681
6780
|
*
|
|
6682
6781
|
* @throws {@link Vectros.BadRequestError}
|
|
6683
6782
|
* @throws {@link Vectros.NotFoundError}
|
|
6783
|
+
* @throws {@link Vectros.ConflictError}
|
|
6684
6784
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
6685
6785
|
*
|
|
6686
6786
|
* @example
|
|
@@ -6733,6 +6833,8 @@ var IdentityClient = class {
|
|
|
6733
6833
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
6734
6834
|
case 404:
|
|
6735
6835
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
6836
|
+
case 409:
|
|
6837
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
6736
6838
|
case 429:
|
|
6737
6839
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
6738
6840
|
default:
|
|
@@ -6752,6 +6854,7 @@ var IdentityClient = class {
|
|
|
6752
6854
|
* @param {IdentityClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
6753
6855
|
*
|
|
6754
6856
|
* @throws {@link Vectros.NotFoundError}
|
|
6857
|
+
* @throws {@link Vectros.ConflictError}
|
|
6755
6858
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
6756
6859
|
*
|
|
6757
6860
|
* @example
|
|
@@ -6796,6 +6899,8 @@ var IdentityClient = class {
|
|
|
6796
6899
|
switch (_response.error.statusCode) {
|
|
6797
6900
|
case 404:
|
|
6798
6901
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
6902
|
+
case 409:
|
|
6903
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
6799
6904
|
case 429:
|
|
6800
6905
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
6801
6906
|
default:
|
|
@@ -7019,6 +7124,7 @@ var IdentityClient = class {
|
|
|
7019
7124
|
*
|
|
7020
7125
|
* @throws {@link Vectros.ForbiddenError}
|
|
7021
7126
|
* @throws {@link Vectros.NotFoundError}
|
|
7127
|
+
* @throws {@link Vectros.ConflictError}
|
|
7022
7128
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
7023
7129
|
*
|
|
7024
7130
|
* @example
|
|
@@ -7070,6 +7176,8 @@ var IdentityClient = class {
|
|
|
7070
7176
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
7071
7177
|
case 404:
|
|
7072
7178
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
7179
|
+
case 409:
|
|
7180
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
7073
7181
|
case 429:
|
|
7074
7182
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
7075
7183
|
default:
|
|
@@ -7090,6 +7198,7 @@ var IdentityClient = class {
|
|
|
7090
7198
|
*
|
|
7091
7199
|
* @throws {@link Vectros.ForbiddenError}
|
|
7092
7200
|
* @throws {@link Vectros.NotFoundError}
|
|
7201
|
+
* @throws {@link Vectros.ConflictError}
|
|
7093
7202
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
7094
7203
|
*
|
|
7095
7204
|
* @example
|
|
@@ -7134,6 +7243,8 @@ var IdentityClient = class {
|
|
|
7134
7243
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
7135
7244
|
case 404:
|
|
7136
7245
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
7246
|
+
case 409:
|
|
7247
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
7137
7248
|
case 429:
|
|
7138
7249
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
7139
7250
|
default:
|
|
@@ -7198,7 +7309,7 @@ var IdentityClient = class {
|
|
|
7198
7309
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/namespaces");
|
|
7199
7310
|
}
|
|
7200
7311
|
/**
|
|
7201
|
-
* Registers a new scope namespace and declares whether its values resolve to identity entities (`entityBacked`). Also requires `specificityRank`, an explicit, account-unique position in the specificity order used to break recordType schema-resolution ties. Requires a root API key or one of the CLI bootstrap's two provisioning capabilities — never an ordinary
|
|
7312
|
+
* Registers a new scope namespace and declares whether its values resolve to identity entities (`entityBacked`). Also requires `specificityRank`, an explicit, account-unique position in the specificity order used to break recordType schema-resolution ties. Requires a root API key or one of the CLI bootstrap's two provisioning capabilities — never an ordinary grantable scope. A bootstrap credential's registration is confined to its own app context UNLESS it additionally holds the tenant-wide namespace-provisioning capability and `contextId` is omitted, in which case it may register a TENANT-WIDE namespace (visible to every context). `org` and `client` are reserved names, registered the same way as any other namespace.
|
|
7202
7313
|
*
|
|
7203
7314
|
* @param {Vectros.RegisterNamespaceRequest} request
|
|
7204
7315
|
* @param {IdentityClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -7340,6 +7451,7 @@ var IdentityClient = class {
|
|
|
7340
7451
|
*
|
|
7341
7452
|
* @throws {@link Vectros.BadRequestError}
|
|
7342
7453
|
* @throws {@link Vectros.ForbiddenError}
|
|
7454
|
+
* @throws {@link Vectros.ConflictError}
|
|
7343
7455
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
7344
7456
|
*
|
|
7345
7457
|
* @example
|
|
@@ -7389,6 +7501,8 @@ var IdentityClient = class {
|
|
|
7389
7501
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
7390
7502
|
case 403:
|
|
7391
7503
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
7504
|
+
case 409:
|
|
7505
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
7392
7506
|
case 429:
|
|
7393
7507
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
7394
7508
|
default:
|
|
@@ -7457,13 +7571,14 @@ var IdentityClient = class {
|
|
|
7457
7571
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/users/{id}");
|
|
7458
7572
|
}
|
|
7459
7573
|
/**
|
|
7460
|
-
* 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. **`externalSubject` set this way is NOT an authentication binding and does not enable sign-in anywhere** — not the Vectros DevPortal/Admin App/web apps, and not `/v1/auth/token/exchange` either; both are granted only by the invitee authenticating themselves. If the invitee needs dev-portal/web-app access, send them the invitation link and let them accept it directly. If the invitee needs to sign in via token exchange, have them redeem `inviteToken` themselves at `/v1/auth/token/exchange` with their own credential — Vectros verifies it there and computes its own value for this field from the verified credential. The value you send here is stored exactly as-is, with no normalization, and does NOT automatically match or deduplicate against what a later token-exchange sign-in computes for the same real-world identity. Call this endpoint directly only if you run your own backend and want Vectros to record which of your own users a given account corresponds to — treat this field as informational for that purpose, not as a way to pre-authorize sign-in. Requires the `users:u` scope.
|
|
7574
|
+
* 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. **`externalSubject` set this way is NOT an authentication binding and does not enable sign-in anywhere** — not the Vectros DevPortal/Admin App/web apps, and not `/v1/auth/token/exchange` either; both are granted only by the invitee authenticating themselves. A subject stored through `PUT /v1/users/{id}` does not make the person a member of your account: it is ignored for the tenant claims in sign-in tokens, the developer portal's memberships list and tenant switching, and an ownership transfer. To give such a person access, delete the user and invite them again; accepting the invitation binds the subject and counts it. If the invitee needs dev-portal/web-app access, send them the invitation link and let them accept it directly. If the invitee needs to sign in via token exchange, have them redeem `inviteToken` themselves at `/v1/auth/token/exchange` with their own credential — Vectros verifies it there and computes its own value for this field from the verified credential. The value you send here is stored exactly as-is, with no normalization, and does NOT automatically match or deduplicate against what a later token-exchange sign-in computes for the same real-world identity. Call this endpoint directly only if you run your own backend and want Vectros to record which of your own users a given account corresponds to — treat this field as informational for that purpose, not as a way to pre-authorize sign-in. Requires the `users:u` scope.
|
|
7461
7575
|
*
|
|
7462
7576
|
* @param {Vectros.UpdateUserRequest} request
|
|
7463
7577
|
* @param {IdentityClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
7464
7578
|
*
|
|
7465
7579
|
* @throws {@link Vectros.BadRequestError}
|
|
7466
7580
|
* @throws {@link Vectros.NotFoundError}
|
|
7581
|
+
* @throws {@link Vectros.ConflictError}
|
|
7467
7582
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
7468
7583
|
*
|
|
7469
7584
|
* @example
|
|
@@ -7511,6 +7626,8 @@ var IdentityClient = class {
|
|
|
7511
7626
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
7512
7627
|
case 404:
|
|
7513
7628
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
7629
|
+
case 409:
|
|
7630
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
7514
7631
|
case 429:
|
|
7515
7632
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
7516
7633
|
default:
|
|
@@ -7772,7 +7889,7 @@ var InferenceClient = class {
|
|
|
7772
7889
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
7773
7890
|
}
|
|
7774
7891
|
/**
|
|
7775
|
-
* Returns
|
|
7892
|
+
* Returns the whole platform model catalog, whatever your plan: `availableOn` names each model's plan tiers. Each entry also carries the context window and the credit rates per 1K input and output tokens: `regionPricing.base` for global-region requests, `regionPricing.us` for default requests, and `longContext` for prompts over its threshold. A model reached through a `providerAlias` is not listed. Use this to populate model pickers and to validate a request before calling `/v1/chat`, `/v1/rag`, or `/v1/documents/{id}/ask`.
|
|
7776
7893
|
*
|
|
7777
7894
|
* @param {InferenceClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
7778
7895
|
*
|
|
@@ -7816,7 +7933,7 @@ var InferenceClient = class {
|
|
|
7816
7933
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "GET", "/v1/models");
|
|
7817
7934
|
}
|
|
7818
7935
|
/**
|
|
7819
|
-
* Streams a model response as Server-Sent Events (SSE). Send the full conversation history in the `messages` array; a message with role `system` is extracted and used as the system prompt.
|
|
7936
|
+
* Streams a model response as Server-Sent Events (SSE). Send the full conversation history in the `messages` array; a message with role `system` is extracted and used as the system prompt. On a pre-paid account, token cost is debited from your inference balance; usage-billed accounts accrue it for post-billing. A request routed through your own `providerAlias` incurs no Vectros token cost. A small per-call flat fee is charged to your monthly credit allowance, except when the call fails on the server side. Requires the `inference:r` scope.
|
|
7820
7937
|
*/
|
|
7821
7938
|
chatInference(request, requestOptions) {
|
|
7822
7939
|
return HttpResponsePromise.fromPromise(this.__chatInference(request, requestOptions));
|
|
@@ -7869,10 +7986,14 @@ var InferenceClient = class {
|
|
|
7869
7986
|
throw new PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
7870
7987
|
case 403:
|
|
7871
7988
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
7989
|
+
case 404:
|
|
7990
|
+
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
7872
7991
|
case 413:
|
|
7873
7992
|
throw new ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
7874
7993
|
case 429:
|
|
7875
7994
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
7995
|
+
case 503:
|
|
7996
|
+
throw new ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
7876
7997
|
default:
|
|
7877
7998
|
throw new VectrosError({
|
|
7878
7999
|
statusCode: _response.error.statusCode,
|
|
@@ -7946,6 +8067,8 @@ var InferenceClient = class {
|
|
|
7946
8067
|
throw new ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
7947
8068
|
case 429:
|
|
7948
8069
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
8070
|
+
case 503:
|
|
8071
|
+
throw new ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
7949
8072
|
default:
|
|
7950
8073
|
throw new VectrosError({
|
|
7951
8074
|
statusCode: _response.error.statusCode,
|
|
@@ -8010,12 +8133,16 @@ var InferenceClient = class {
|
|
|
8010
8133
|
throw new PaymentRequiredError(_response.error.body, _response.rawResponse);
|
|
8011
8134
|
case 403:
|
|
8012
8135
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
8136
|
+
case 404:
|
|
8137
|
+
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
8013
8138
|
case 413:
|
|
8014
8139
|
throw new ContentTooLargeError(_response.error.body, _response.rawResponse);
|
|
8015
8140
|
case 429:
|
|
8016
8141
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
8017
8142
|
case 500:
|
|
8018
8143
|
throw new InternalServerError(_response.error.body, _response.rawResponse);
|
|
8144
|
+
case 503:
|
|
8145
|
+
throw new ServiceUnavailableError(_response.error.body, _response.rawResponse);
|
|
8019
8146
|
default:
|
|
8020
8147
|
throw new VectrosError({
|
|
8021
8148
|
statusCode: _response.error.statusCode,
|
|
@@ -8093,7 +8220,7 @@ var RecordsClient = class {
|
|
|
8093
8220
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/records/batch-get");
|
|
8094
8221
|
}
|
|
8095
8222
|
/**
|
|
8096
|
-
* Reserved endpoint for batch lookup and reference resolution. The published response shape correlates results to each input and carries a per-item status envelope.
|
|
8223
|
+
* Reserved endpoint for batch lookup and reference resolution. With the `records:r` scope it answers 501 (not implemented). The published response shape correlates results to each input and carries a per-item status envelope. Requires the `records:r` scope.
|
|
8097
8224
|
*
|
|
8098
8225
|
* @param {Vectros.BatchLookupRequest} request
|
|
8099
8226
|
* @param {RecordsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -8154,7 +8281,7 @@ var RecordsClient = class {
|
|
|
8154
8281
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "POST", "/v1/records/lookup/batch");
|
|
8155
8282
|
}
|
|
8156
8283
|
/**
|
|
8157
|
-
* Writes up to 50 records
|
|
8284
|
+
* Writes up to 50 records per request in `best_effort` mode and up to 50 with `atomicity: all_or_nothing`, in a single request. Each item in `items` has exactly the same shape, and goes through exactly the same validation, authorization and idempotency rules, as the body of a single `POST /v1/records` — including schema validation, `externalId` idempotency, unique-field enforcement, and the `records:c:<type>` scope check, which is applied per item against that item's own record type. A batch is not a way to write a type your credential could not write one at a time.
|
|
8158
8285
|
*
|
|
8159
8286
|
* `atomicity` selects how the batch commits. `best_effort` (the default) writes each item independently: some can succeed while others fail, and each item's own outcome is reported. `all_or_nothing` commits every item in one transaction — if any item fails, no record is created or updated at all, and every item that was itself fine reports `not_committed` while the ones that failed report why. Because the transaction is bounded by the number of underlying storage rows rather than by the number of records, a large `all_or_nothing` batch can be refused as too large to commit atomically even when it is within the item limit; the error says so, and nothing is written when it happens.
|
|
8160
8287
|
*
|
|
@@ -8293,6 +8420,8 @@ var RecordsClient = class {
|
|
|
8293
8420
|
*
|
|
8294
8421
|
* @throws {@link Vectros.BadRequestError}
|
|
8295
8422
|
* @throws {@link Vectros.ForbiddenError}
|
|
8423
|
+
* @throws {@link Vectros.NotFoundError}
|
|
8424
|
+
* @throws {@link Vectros.ConflictError}
|
|
8296
8425
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
8297
8426
|
*
|
|
8298
8427
|
* @example
|
|
@@ -8349,6 +8478,10 @@ var RecordsClient = class {
|
|
|
8349
8478
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
8350
8479
|
case 403:
|
|
8351
8480
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
8481
|
+
case 404:
|
|
8482
|
+
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
8483
|
+
case 409:
|
|
8484
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
8352
8485
|
case 429:
|
|
8353
8486
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
8354
8487
|
default:
|
|
@@ -8497,6 +8630,7 @@ var RecordsClient = class {
|
|
|
8497
8630
|
* @param {RecordsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
8498
8631
|
*
|
|
8499
8632
|
* @throws {@link Vectros.NotFoundError}
|
|
8633
|
+
* @throws {@link Vectros.ConflictError}
|
|
8500
8634
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
8501
8635
|
*
|
|
8502
8636
|
* @example
|
|
@@ -8536,6 +8670,8 @@ var RecordsClient = class {
|
|
|
8536
8670
|
switch (_response.error.statusCode) {
|
|
8537
8671
|
case 404:
|
|
8538
8672
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
8673
|
+
case 409:
|
|
8674
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
8539
8675
|
case 429:
|
|
8540
8676
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
8541
8677
|
default:
|
|
@@ -8549,7 +8685,7 @@ var RecordsClient = class {
|
|
|
8549
8685
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "DELETE", "/v1/records/{id}");
|
|
8550
8686
|
}
|
|
8551
8687
|
/**
|
|
8552
|
-
* Partially updates a record using an RFC 7386 JSON Merge Patch. The `payload` object is deep-merged into the existing payload: keys you send overwrite (recursing into nested objects), a key set to null is deleted, and keys you omit are left unchanged — so you can change a single field without re-sending the rest (unlike the full-replacement PUT). Top-level fields (`status`, `folderId`, `userId`, `scopes`) are set when present and left unchanged when omitted; sending a top-level field as null is rejected (clearing a top-level field is not supported
|
|
8688
|
+
* Partially updates a record using an RFC 7386 JSON Merge Patch. The `payload` object is deep-merged into the existing payload: keys you send overwrite (recursing into nested objects), a key set to null is deleted, and keys you omit are left unchanged — so you can change a single field without re-sending the rest (unlike the full-replacement PUT). Top-level fields (`status`, `folderId`, `userId`, `scopes`) are set when present and left unchanged when omitted; sending a top-level field as null is rejected (clearing a top-level field is not supported — omit it instead). `typeName`, `schemaId`, `externalId`, and `indexMode` are immutable and rejected if present. The merged result is validated against the schema. Pass `expectedVersion` to make the patch conditional (optimistic concurrency, 409 on conflict). Requires the `records:u:<type>` scope.
|
|
8553
8689
|
*
|
|
8554
8690
|
* @param {Vectros.PatchRecordRequest} request
|
|
8555
8691
|
* @param {RecordsClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -8978,6 +9114,8 @@ var SchemasClient = class {
|
|
|
8978
9114
|
*
|
|
8979
9115
|
* @throws {@link Vectros.BadRequestError}
|
|
8980
9116
|
* @throws {@link Vectros.ForbiddenError}
|
|
9117
|
+
* @throws {@link Vectros.NotFoundError}
|
|
9118
|
+
* @throws {@link Vectros.ConflictError}
|
|
8981
9119
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
8982
9120
|
*
|
|
8983
9121
|
* @example
|
|
@@ -9047,6 +9185,10 @@ var SchemasClient = class {
|
|
|
9047
9185
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
9048
9186
|
case 403:
|
|
9049
9187
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
9188
|
+
case 404:
|
|
9189
|
+
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
9190
|
+
case 409:
|
|
9191
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
9050
9192
|
case 429:
|
|
9051
9193
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
9052
9194
|
default:
|
|
@@ -9190,7 +9332,7 @@ var SchemasClient = class {
|
|
|
9190
9332
|
return handleNonStatusCodeError(_response.error, _response.rawResponse, "PUT", "/v1/schemas/{id}");
|
|
9191
9333
|
}
|
|
9192
9334
|
/**
|
|
9193
|
-
* Permanently deletes a record schema. The request is refused with 409 if records of this type still exist — delete those records first, since every record must reference a live schema. The same applies to documents bound to this schema (for a schema declaring the `document` surface) — delete those documents first. A lineage base (a schema other schemas declare `basedOn`) also cannot be deleted while any such variant still exists — delete the variant schema(s) first. It is likewise refused while any trigger rule fires off this schema — delete those trigger rules first. Requires the `schemas:d` scope.
|
|
9335
|
+
* Permanently deletes a record schema. The request is refused with 409 if records of this type still exist — delete those records first, since every record must reference a live schema. The same applies to documents bound to this schema (for a schema declaring the `document` surface) — delete those documents first. A lineage base (a schema other schemas declare `basedOn`) also cannot be deleted while any such variant still exists — delete the variant schema(s) first. It is likewise refused while any trigger rule fires off this schema — delete those trigger rules first — and, for a schema declaring the `user` or `entity` surface, while any user or entity bound to it still exists. Requires the `schemas:d` scope.
|
|
9194
9336
|
*
|
|
9195
9337
|
* @param {Vectros.DeleteSchemaRequest} request
|
|
9196
9338
|
* @param {SchemasClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
@@ -9317,7 +9459,7 @@ var ScriptsClient = class {
|
|
|
9317
9459
|
this._options = normalizeClientOptionsWithAuth(options);
|
|
9318
9460
|
}
|
|
9319
9461
|
/**
|
|
9320
|
-
* Runs a script you previously pushed to `POST /v1/scripts`, under your own credential, and returns what it returned. Every write the script makes is buffered and committed as ONE transaction after the script finishes: either all of them land or none do, and the response is sent only after they have committed — so everything in `result` is committed state or the script's own computation over it. On any failure the body is the standard error envelope and nothing the script staged is committed: its rows are written only when the transaction commits, and a document body or a large payload is DECIDED at that point and WRITTEN to storage only after the commit, so an aborted execution leaves nothing behind. The one residual sits after a successful commit, outside this response: if storing a body fails then, the row exists and the body
|
|
9462
|
+
* Runs a script you previously pushed to `POST /v1/scripts`, under your own credential, and returns what it returned. Every write the script makes is buffered and committed as ONE transaction after the script finishes: either all of them land or none do, and the response is sent only after they have committed — so everything in `result` is committed state or the script's own computation over it. On any failure the body is the standard error envelope and nothing the script staged is committed: its rows are written only when the transaction commits, and a document body or a large payload is DECIDED at that point and WRITTEN to storage only after the commit, so an aborted execution leaves nothing behind. The one residual sits after a successful commit, outside this response: if storing a body fails then, the row exists and the body may not — so a `200` guarantees the rows, and a document's text should be read before it is relied on.
|
|
9321
9463
|
*
|
|
9322
9464
|
* **Permission.** Requires the `scripts:x` scope — the permission to *execute* — separate from the `scripts:c` permission to push scripts. Bare `scripts:x` grants every script in the context; `scripts:x:<name>` grants exactly that script name, every version of it. Execution discloses no source, so `scripts:r` is not needed. Inside the script, every read and write is enforced by your credential's data scopes exactly as the equivalent REST call would be — `scripts:x` alone can read and write nothing.
|
|
9323
9465
|
*
|
|
@@ -9931,6 +10073,8 @@ var TriggersClient = class {
|
|
|
9931
10073
|
*
|
|
9932
10074
|
* @throws {@link Vectros.BadRequestError}
|
|
9933
10075
|
* @throws {@link Vectros.ForbiddenError}
|
|
10076
|
+
* @throws {@link Vectros.NotFoundError}
|
|
10077
|
+
* @throws {@link Vectros.ConflictError}
|
|
9934
10078
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
9935
10079
|
*
|
|
9936
10080
|
* @example
|
|
@@ -9988,6 +10132,10 @@ var TriggersClient = class {
|
|
|
9988
10132
|
throw new BadRequestError(_response.error.body, _response.rawResponse);
|
|
9989
10133
|
case 403:
|
|
9990
10134
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
10135
|
+
case 404:
|
|
10136
|
+
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
10137
|
+
case 409:
|
|
10138
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
9991
10139
|
case 429:
|
|
9992
10140
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
9993
10141
|
default:
|
|
@@ -10064,6 +10212,7 @@ var TriggersClient = class {
|
|
|
10064
10212
|
* @throws {@link Vectros.BadRequestError}
|
|
10065
10213
|
* @throws {@link Vectros.ForbiddenError}
|
|
10066
10214
|
* @throws {@link Vectros.NotFoundError}
|
|
10215
|
+
* @throws {@link Vectros.ConflictError}
|
|
10067
10216
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
10068
10217
|
*
|
|
10069
10218
|
* @example
|
|
@@ -10121,6 +10270,8 @@ var TriggersClient = class {
|
|
|
10121
10270
|
throw new ForbiddenError(_response.error.body, _response.rawResponse);
|
|
10122
10271
|
case 404:
|
|
10123
10272
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
10273
|
+
case 409:
|
|
10274
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
10124
10275
|
case 429:
|
|
10125
10276
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
10126
10277
|
default:
|
|
@@ -10140,6 +10291,7 @@ var TriggersClient = class {
|
|
|
10140
10291
|
* @param {TriggersClient.RequestOptions} requestOptions - Request-specific configuration.
|
|
10141
10292
|
*
|
|
10142
10293
|
* @throws {@link Vectros.NotFoundError}
|
|
10294
|
+
* @throws {@link Vectros.ConflictError}
|
|
10143
10295
|
* @throws {@link Vectros.TooManyRequestsError}
|
|
10144
10296
|
*
|
|
10145
10297
|
* @example
|
|
@@ -10179,6 +10331,8 @@ var TriggersClient = class {
|
|
|
10179
10331
|
switch (_response.error.statusCode) {
|
|
10180
10332
|
case 404:
|
|
10181
10333
|
throw new NotFoundError(_response.error.body, _response.rawResponse);
|
|
10334
|
+
case 409:
|
|
10335
|
+
throw new ConflictError(_response.error.body, _response.rawResponse);
|
|
10182
10336
|
case 429:
|
|
10183
10337
|
throw new TooManyRequestsError(_response.error.body, _response.rawResponse);
|
|
10184
10338
|
default:
|
|
@@ -10308,8 +10462,8 @@ function warnOnSuboptimalKey(key, log) {
|
|
|
10308
10462
|
|
|
10309
10463
|
// src/build-info.ts
|
|
10310
10464
|
var BUILD_INFO = {
|
|
10311
|
-
mcpServer: true ? "0.18.
|
|
10312
|
-
sdk: true ? "0.
|
|
10465
|
+
mcpServer: true ? "0.18.2" : "dev",
|
|
10466
|
+
sdk: true ? "0.48.0" : "dev"
|
|
10313
10467
|
};
|
|
10314
10468
|
|
|
10315
10469
|
// src/log.ts
|
|
@@ -11285,7 +11439,7 @@ var inputSchema7 = {
|
|
|
11285
11439
|
),
|
|
11286
11440
|
status: import_zod7.z.string().optional().describe("Set the record lifecycle status (e.g. ARCHIVED) \u2014 archive/workflow without physical deletion."),
|
|
11287
11441
|
expectedVersion: import_zod7.z.number().int().optional().describe(
|
|
11288
|
-
"Optimistic concurrency: the version you last read. If the record changed since, the update is refused as a conflict (re-read and retry). Omit
|
|
11442
|
+
"Optimistic concurrency: the version you last read. If the record changed since, the update is refused as a conflict (re-read and retry). Omit it to update whatever version is current: an update that meets another change to the same record at the same moment is still refused as a conflict."
|
|
11289
11443
|
)
|
|
11290
11444
|
};
|
|
11291
11445
|
var recordUpdate = ({ client, log }) => ({
|
|
@@ -11355,7 +11509,7 @@ var import_zod10 = require("zod");
|
|
|
11355
11509
|
// src/tools/provider-alias.ts
|
|
11356
11510
|
var import_zod9 = require("zod");
|
|
11357
11511
|
var providerAliasInput = import_zod9.z.string().min(1, "providerAlias must be non-empty when supplied").optional().describe(
|
|
11358
|
-
"Route THIS call through your own model provider instead of the platform-hosted default, by the alias of a provider config your account has activated. It works only after your account has set up that provider and signed the platform's risk-acceptance waiver; without both, the platform refuses the call with a 403, which is returned to you as written. If your account has accepted the Business Associate Agreement with Vectros in the developer portal, an account owner must also have attested that provider config in the developer portal (Model Providers); until then the platform refuses the call with a 403 that says it needs a BAA-holder attestation. A call served by your own provider leaves the Vectros perimeter. Omit it (the default) to use the platform-hosted path. When set, `model` names the model on your provider's own id space, and falls back to that provider config's default model when omitted."
|
|
11512
|
+
"Route THIS call through your own model provider instead of the platform-hosted default, by the alias of a provider config your account has activated. It works only after your account has set up that provider and signed the platform's risk-acceptance waiver; without both, the platform refuses the call with a 403, which is returned to you as written. When the waiver is the cause, the 403 carries an `errorCode` that says which case it is: `WAIVER_NOT_SIGNED` (the waiver has not been signed), `WAIVER_TEXT_CHANGED` (it was signed, but its text changed afterwards, so the earlier signature no longer counts), or `WAIVER_REVOKED` (an owner revoked it). An account owner resolves each in the developer portal (Model Providers); retrying the call does not help. If your account has accepted the Business Associate Agreement with Vectros in the developer portal, an account owner must also have attested that provider config in the developer portal (Model Providers); until then the platform refuses the call with a 403 that says it needs a BAA-holder attestation. A call served by your own provider leaves the Vectros perimeter. Omit it (the default) to use the platform-hosted path. When set, `model` names the model on your provider's own id space, and falls back to that provider config's default model when omitted."
|
|
11359
11513
|
);
|
|
11360
11514
|
|
|
11361
11515
|
// src/tools/rag_ask.ts
|
|
@@ -11866,7 +12020,7 @@ var inputSchema14 = {
|
|
|
11866
12020
|
'Reassign scope ownership as `namespace:value` entries, at most 2 (e.g. ["org:<uuid>", "group:eng-team"]) \u2014 the COMPLETE new parent set. `org`/`client` are reserved namespace names, registered like any other. Omit to leave ownership unchanged; `[]` clears it (private to the owning user).'
|
|
11867
12021
|
),
|
|
11868
12022
|
expectedVersion: import_zod15.z.number().int().optional().describe(
|
|
11869
|
-
"Optimistic concurrency: the version you last read. If the document changed since, the update is refused as a conflict (re-read and retry). Omit
|
|
12023
|
+
"Optimistic concurrency: the version you last read. If the document changed since, the update is refused as a conflict (re-read and retry). Omit it to update whatever version is current: an update that meets another change to the same document at the same moment is still refused as a conflict."
|
|
11870
12024
|
)
|
|
11871
12025
|
};
|
|
11872
12026
|
var documentUpdate = ({ client, log }) => ({
|
|
@@ -12020,10 +12174,8 @@ var folderCreate = ({ client, log }) => ({
|
|
|
12020
12174
|
// freshly-proved-free value, so the idempotency check running after that derivation can never
|
|
12021
12175
|
// match on the default path. `slug` is optional, so this is annotated for the less-safe default —
|
|
12022
12176
|
// the same standard applied to record_create/document_ingest/record_batch_write's identical
|
|
12023
|
-
// optional-dedupe-key shape. (
|
|
12024
|
-
//
|
|
12025
|
-
// from the optional-externalId tools — that reasoning was wrong: the derivation is unconditional,
|
|
12026
|
-
// but it is unconditionally NON-colliding by construction, which is the opposite property.)
|
|
12177
|
+
// optional-dedupe-key shape. (The slug derivation being unconditional does not make the tool
|
|
12178
|
+
// idempotent: it is unconditionally NON-colliding by construction, which is the opposite property.)
|
|
12027
12179
|
annotations: { readOnlyHint: false, destructiveHint: false, idempotentHint: false },
|
|
12028
12180
|
handler: async (args) => {
|
|
12029
12181
|
try {
|
|
@@ -12058,7 +12210,7 @@ var inputSchema18 = {
|
|
|
12058
12210
|
'Reassign scope ownership as `namespace:value` entries, at most 2 (e.g. ["org:<uuid>", "group:eng-team"]) \u2014 the COMPLETE new parent set. `org`/`client` are reserved namespace names, registered like any other. Omit to leave ownership unchanged; `[]` clears it (private to the owning user).'
|
|
12059
12211
|
),
|
|
12060
12212
|
expectedVersion: import_zod19.z.number().int().optional().describe(
|
|
12061
|
-
"Optimistic concurrency: the version you last read. If the folder changed since, the update is refused as a conflict (re-read and retry). Omit
|
|
12213
|
+
"Optimistic concurrency: the version you last read. If the folder changed since, the update is refused as a conflict (re-read and retry). Omit it to update whatever version is current: an update that meets another change to the same folder at the same moment is still refused as a conflict."
|
|
12062
12214
|
)
|
|
12063
12215
|
};
|
|
12064
12216
|
var folderUpdate = ({ client, log }) => ({
|
|
@@ -12129,7 +12281,7 @@ var inputSchema20 = {
|
|
|
12129
12281
|
var currentIdentity = ({ log, apiKey, environment }) => ({
|
|
12130
12282
|
name: "current_identity",
|
|
12131
12283
|
title: "Current identity (tenant + principal scope)",
|
|
12132
|
-
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 verb+ownership reach as { userId, scopes[] }, where each scope is a `namespace:value` string (e.g. \"org:<uuid>\"). Note: this does not
|
|
12284
|
+
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 verb+ownership reach as { userId, scopes[] }, where each scope is a `namespace:value` string (e.g. \"org:<uuid>\"). Note: this does not include granted_capabilities (member-lifecycle / forensic-read / context-directory-read / delegate-mint, as of API 0.40.0, joined by delegate-principal-stamp in 0.42.0 and trigger-control-plane-grant in 0.44.0) \u2014 a separate reach dimension a scope clause can carry that /v1/ping does not report, so allowedActions+dataScope may understate a credential's true reach. 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.",
|
|
12133
12285
|
inputSchema: inputSchema20,
|
|
12134
12286
|
// A pure read (/v1/ping) — never creates, modifies, or deletes anything server-side.
|
|
12135
12287
|
annotations: { readOnlyHint: true, destructiveHint: false, idempotentHint: true },
|
|
@@ -12653,7 +12805,7 @@ var identityResource = ({ log, apiKey, environment }) => ({
|
|
|
12653
12805
|
name: "identity",
|
|
12654
12806
|
uri: "vectros://identity",
|
|
12655
12807
|
title: "Current identity (tenant + principal scope)",
|
|
12656
|
-
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[] }). Note: this does not
|
|
12808
|
+
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[] }). Note: this does not include granted_capabilities (member-lifecycle / forensic-read / context-directory-read / delegate-mint, as of API 0.40.0, joined by delegate-principal-stamp in 0.42.0 and trigger-control-plane-grant in 0.44.0) \u2014 a separate reach dimension a scope clause can carry that /v1/ping does not report, so allowedActions+dataScope may understate a credential's true reach. Also reports 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.",
|
|
12657
12809
|
mimeType: "application/json",
|
|
12658
12810
|
read: async () => {
|
|
12659
12811
|
const identity = await resolveIdentity({ log, apiKey, environment });
|