botshield-sdk 2.0.1 → 2.1.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/LICENSE +21 -0
- package/README.md +41 -8
- package/bin/mcp-server.js +309 -173
- package/bin/mcp-server.js.map +27 -28
- package/dist/commonjs/funcs/census-verify-token.d.ts +1 -1
- package/dist/commonjs/funcs/census-verify-token.js +13 -1
- package/dist/commonjs/funcs/census-verify-token.js.map +1 -1
- package/dist/commonjs/funcs/verification-get-status.js +12 -0
- package/dist/commonjs/funcs/verification-get-status.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- package/dist/commonjs/lib/security.d.ts.map +1 -1
- package/dist/commonjs/lib/security.js +14 -0
- package/dist/commonjs/lib/security.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/command.js +16 -0
- package/dist/commonjs/mcp-server/cli/start/command.js.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts +2 -0
- package/dist/commonjs/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/commonjs/mcp-server/cli/start/impl.js +4 -0
- package/dist/commonjs/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.js +1 -1
- package/dist/commonjs/mcp-server/tools/actions-cancel-action.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.js +1 -1
- package/dist/commonjs/mcp-server/tools/actions-check-action-status.js.map +1 -1
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js +1 -1
- package/dist/commonjs/mcp-server/tools/actions-propose-action.js.map +1 -1
- package/dist/commonjs/models/error-body.d.ts +43 -8
- package/dist/commonjs/models/error-body.d.ts.map +1 -1
- package/dist/commonjs/models/error-body.js +51 -1
- package/dist/commonjs/models/error-body.js.map +1 -1
- package/dist/commonjs/models/operations/actions-cancel.d.ts +1 -1
- package/dist/commonjs/models/operations/actions-check-status.d.ts +6 -6
- package/dist/commonjs/models/operations/actions-check-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/actions-check-status.js +6 -6
- package/dist/commonjs/models/operations/actions-check-status.js.map +1 -1
- package/dist/commonjs/models/operations/actions-propose.d.ts +1 -1
- package/dist/commonjs/models/operations/index.d.ts +0 -1
- package/dist/commonjs/models/operations/index.d.ts.map +1 -1
- package/dist/commonjs/models/operations/index.js +0 -1
- package/dist/commonjs/models/operations/index.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-session.d.ts +49 -15
- package/dist/commonjs/models/operations/sdk-create-session.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-session.js +37 -16
- package/dist/commonjs/models/operations/sdk-create-session.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts +96 -2
- package/dist/commonjs/models/operations/sdk-create-verification-link.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.js +58 -1
- package/dist/commonjs/models/operations/sdk-create-verification-link.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-logout.d.ts +1 -1
- package/dist/commonjs/models/operations/sdk-revoke-verification.d.ts +14 -4
- package/dist/commonjs/models/operations/sdk-revoke-verification.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-revoke-verification.js +4 -2
- package/dist/commonjs/models/operations/sdk-revoke-verification.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-store-signal.d.ts +1 -1
- package/dist/commonjs/models/operations/sdk-validate-signal.d.ts +6 -6
- package/dist/commonjs/models/operations/sdk-validate-signal.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-validate-signal.js +6 -6
- package/dist/commonjs/models/operations/sdk-validate-signal.js.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts +82 -1
- package/dist/commonjs/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/commonjs/models/operations/sdk-verify-token.js +55 -1
- package/dist/commonjs/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.d.ts +51 -4
- package/dist/commonjs/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/commonjs/models/operations/verification-get-status.js +34 -2
- package/dist/commonjs/models/operations/verification-get-status.js.map +1 -1
- package/dist/commonjs/models/security.d.ts +4 -0
- package/dist/commonjs/models/security.d.ts.map +1 -1
- package/dist/commonjs/models/security.js +4 -0
- package/dist/commonjs/models/security.js.map +1 -1
- package/dist/commonjs/sdk/census.d.ts +1 -8
- package/dist/commonjs/sdk/census.d.ts.map +1 -1
- package/dist/commonjs/sdk/census.js +1 -11
- package/dist/commonjs/sdk/census.js.map +1 -1
- package/dist/esm/funcs/census-verify-token.d.ts +1 -1
- package/dist/esm/funcs/census-verify-token.js +13 -1
- package/dist/esm/funcs/census-verify-token.js.map +1 -1
- package/dist/esm/funcs/verification-get-status.js +12 -0
- package/dist/esm/funcs/verification-get-status.js.map +1 -1
- package/dist/esm/lib/config.d.ts +2 -2
- package/dist/esm/lib/config.js +2 -2
- package/dist/esm/lib/security.d.ts.map +1 -1
- package/dist/esm/lib/security.js +14 -0
- package/dist/esm/lib/security.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/command.js +16 -0
- package/dist/esm/mcp-server/cli/start/command.js.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.d.ts +2 -0
- package/dist/esm/mcp-server/cli/start/impl.d.ts.map +1 -1
- package/dist/esm/mcp-server/cli/start/impl.js +4 -0
- package/dist/esm/mcp-server/cli/start/impl.js.map +1 -1
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/mcp-server/tools/actions-cancel-action.js +1 -1
- package/dist/esm/mcp-server/tools/actions-cancel-action.js.map +1 -1
- package/dist/esm/mcp-server/tools/actions-check-action-status.js +1 -1
- package/dist/esm/mcp-server/tools/actions-check-action-status.js.map +1 -1
- package/dist/esm/mcp-server/tools/actions-propose-action.js +1 -1
- package/dist/esm/mcp-server/tools/actions-propose-action.js.map +1 -1
- package/dist/esm/models/error-body.d.ts +43 -8
- package/dist/esm/models/error-body.d.ts.map +1 -1
- package/dist/esm/models/error-body.js +48 -0
- package/dist/esm/models/error-body.js.map +1 -1
- package/dist/esm/models/operations/actions-cancel.d.ts +1 -1
- package/dist/esm/models/operations/actions-check-status.d.ts +6 -6
- package/dist/esm/models/operations/actions-check-status.d.ts.map +1 -1
- package/dist/esm/models/operations/actions-check-status.js +5 -5
- package/dist/esm/models/operations/actions-check-status.js.map +1 -1
- package/dist/esm/models/operations/actions-propose.d.ts +1 -1
- package/dist/esm/models/operations/index.d.ts +0 -1
- package/dist/esm/models/operations/index.d.ts.map +1 -1
- package/dist/esm/models/operations/index.js +0 -1
- package/dist/esm/models/operations/index.js.map +1 -1
- package/dist/esm/models/operations/sdk-create-session.d.ts +49 -15
- package/dist/esm/models/operations/sdk-create-session.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-create-session.js +34 -13
- package/dist/esm/models/operations/sdk-create-session.js.map +1 -1
- package/dist/esm/models/operations/sdk-create-verification-link.d.ts +96 -2
- package/dist/esm/models/operations/sdk-create-verification-link.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-create-verification-link.js +57 -0
- package/dist/esm/models/operations/sdk-create-verification-link.js.map +1 -1
- package/dist/esm/models/operations/sdk-logout.d.ts +1 -1
- package/dist/esm/models/operations/sdk-revoke-verification.d.ts +14 -4
- package/dist/esm/models/operations/sdk-revoke-verification.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-revoke-verification.js +4 -2
- package/dist/esm/models/operations/sdk-revoke-verification.js.map +1 -1
- package/dist/esm/models/operations/sdk-store-signal.d.ts +1 -1
- package/dist/esm/models/operations/sdk-validate-signal.d.ts +6 -6
- package/dist/esm/models/operations/sdk-validate-signal.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-validate-signal.js +5 -5
- package/dist/esm/models/operations/sdk-validate-signal.js.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.d.ts +82 -1
- package/dist/esm/models/operations/sdk-verify-token.d.ts.map +1 -1
- package/dist/esm/models/operations/sdk-verify-token.js +54 -0
- package/dist/esm/models/operations/sdk-verify-token.js.map +1 -1
- package/dist/esm/models/operations/verification-get-status.d.ts +51 -4
- package/dist/esm/models/operations/verification-get-status.d.ts.map +1 -1
- package/dist/esm/models/operations/verification-get-status.js +33 -1
- package/dist/esm/models/operations/verification-get-status.js.map +1 -1
- package/dist/esm/models/security.d.ts +4 -0
- package/dist/esm/models/security.d.ts.map +1 -1
- package/dist/esm/models/security.js +4 -0
- package/dist/esm/models/security.js.map +1 -1
- package/dist/esm/sdk/census.d.ts +1 -8
- package/dist/esm/sdk/census.d.ts.map +1 -1
- package/dist/esm/sdk/census.js +1 -11
- package/dist/esm/sdk/census.js.map +1 -1
- package/jsr.json +1 -1
- package/package.json +16 -1
- package/src/funcs/census-verify-token.ts +15 -1
- package/src/funcs/verification-get-status.ts +14 -0
- package/src/lib/config.ts +2 -2
- package/src/lib/security.ts +14 -0
- package/src/mcp-server/cli/start/command.ts +16 -0
- package/src/mcp-server/cli/start/impl.ts +6 -0
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/mcp-server/tools/actions-cancel-action.ts +1 -1
- package/src/mcp-server/tools/actions-check-action-status.ts +1 -1
- package/src/mcp-server/tools/actions-propose-action.ts +1 -1
- package/src/models/error-body.ts +95 -8
- package/src/models/operations/actions-cancel.ts +1 -1
- package/src/models/operations/actions-check-status.ts +18 -10
- package/src/models/operations/actions-propose.ts +1 -1
- package/src/models/operations/index.ts +0 -1
- package/src/models/operations/sdk-create-session.ts +89 -33
- package/src/models/operations/sdk-create-verification-link.ts +157 -2
- package/src/models/operations/sdk-logout.ts +1 -1
- package/src/models/operations/sdk-revoke-verification.ts +18 -6
- package/src/models/operations/sdk-store-signal.ts +1 -1
- package/src/models/operations/sdk-validate-signal.ts +16 -10
- package/src/models/operations/sdk-verify-token.ts +127 -1
- package/src/models/operations/verification-get-status.ts +81 -4
- package/src/models/security.ts +8 -0
- package/src/sdk/census.ts +1 -21
- package/dist/commonjs/funcs/census-get-partner-config.d.ts +0 -18
- package/dist/commonjs/funcs/census-get-partner-config.d.ts.map +0 -1
- package/dist/commonjs/funcs/census-get-partner-config.js +0 -132
- package/dist/commonjs/funcs/census-get-partner-config.js.map +0 -1
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts +0 -126
- package/dist/commonjs/models/operations/sdk-get-partner-config.d.ts.map +0 -1
- package/dist/commonjs/models/operations/sdk-get-partner-config.js +0 -179
- package/dist/commonjs/models/operations/sdk-get-partner-config.js.map +0 -1
- package/dist/esm/funcs/census-get-partner-config.d.ts +0 -18
- package/dist/esm/funcs/census-get-partner-config.d.ts.map +0 -1
- package/dist/esm/funcs/census-get-partner-config.js +0 -96
- package/dist/esm/funcs/census-get-partner-config.js.map +0 -1
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts +0 -126
- package/dist/esm/models/operations/sdk-get-partner-config.d.ts.map +0 -1
- package/dist/esm/models/operations/sdk-get-partner-config.js +0 -131
- package/dist/esm/models/operations/sdk-get-partner-config.js.map +0 -1
- package/src/funcs/census-get-partner-config.ts +0 -196
- package/src/models/operations/sdk-get-partner-config.ts +0 -345
package/bin/mcp-server.js
CHANGED
|
@@ -47249,9 +47249,9 @@ var init_config = __esm(() => {
|
|
|
47249
47249
|
SDK_METADATA = {
|
|
47250
47250
|
language: "typescript",
|
|
47251
47251
|
openapiDocVersion: "2.0.0",
|
|
47252
|
-
sdkVersion: "2.0
|
|
47252
|
+
sdkVersion: "2.1.0",
|
|
47253
47253
|
genVersion: "2.934.1",
|
|
47254
|
-
userAgent: "speakeasy-sdk/typescript 2.0
|
|
47254
|
+
userAgent: "speakeasy-sdk/typescript 2.1.0 2.934.1 2.0.0 botshield-sdk"
|
|
47255
47255
|
};
|
|
47256
47256
|
});
|
|
47257
47257
|
|
|
@@ -48747,6 +48747,20 @@ function resolveGlobalSecurity(security, allowedFields) {
|
|
|
48747
48747
|
type: "apiKey:header",
|
|
48748
48748
|
value: security?.agentKeyAuth1
|
|
48749
48749
|
}
|
|
48750
|
+
],
|
|
48751
|
+
[
|
|
48752
|
+
{
|
|
48753
|
+
fieldName: "Authorization",
|
|
48754
|
+
type: "apiKey:header",
|
|
48755
|
+
value: security?.agentKeyAuth2
|
|
48756
|
+
}
|
|
48757
|
+
],
|
|
48758
|
+
[
|
|
48759
|
+
{
|
|
48760
|
+
fieldName: "Authorization",
|
|
48761
|
+
type: "apiKey:header",
|
|
48762
|
+
value: security?.agentKeyAuth3
|
|
48763
|
+
}
|
|
48750
48764
|
]
|
|
48751
48765
|
];
|
|
48752
48766
|
if (allowedFields) {
|
|
@@ -48795,6 +48809,32 @@ function unrecognized(value) {
|
|
|
48795
48809
|
var globalCount = 0;
|
|
48796
48810
|
var init_unrecognized = () => {};
|
|
48797
48811
|
|
|
48812
|
+
// src/types/enums.ts
|
|
48813
|
+
function inboundSchema(enumObj) {
|
|
48814
|
+
const options = Object.values(enumObj);
|
|
48815
|
+
return unionType([
|
|
48816
|
+
...options.map((x) => literalType(x)),
|
|
48817
|
+
stringType().transform((x) => unrecognized(x))
|
|
48818
|
+
]);
|
|
48819
|
+
}
|
|
48820
|
+
function inboundSchemaInt(enumObj) {
|
|
48821
|
+
const options = Object.values(enumObj).filter((v) => typeof v === "number");
|
|
48822
|
+
return unionType([
|
|
48823
|
+
...options.map((x) => literalType(x)),
|
|
48824
|
+
numberType().int().transform((x) => unrecognized(x))
|
|
48825
|
+
]);
|
|
48826
|
+
}
|
|
48827
|
+
function outboundSchema(_) {
|
|
48828
|
+
return stringType();
|
|
48829
|
+
}
|
|
48830
|
+
function outboundSchemaInt(_) {
|
|
48831
|
+
return numberType().int();
|
|
48832
|
+
}
|
|
48833
|
+
var init_enums = __esm(() => {
|
|
48834
|
+
init_v3();
|
|
48835
|
+
init_unrecognized();
|
|
48836
|
+
});
|
|
48837
|
+
|
|
48798
48838
|
// src/types/default-to-zero-value.ts
|
|
48799
48839
|
function defaultToZeroValue(value) {
|
|
48800
48840
|
globalCount2++;
|
|
@@ -48894,32 +48934,59 @@ var init_primitives2 = __esm(() => {
|
|
|
48894
48934
|
});
|
|
48895
48935
|
|
|
48896
48936
|
// src/models/error-body.ts
|
|
48897
|
-
var Violation$inboundSchema, Violation$outboundSchema, ErrorBody$inboundSchema, ErrorBody$outboundSchema;
|
|
48937
|
+
var Reason, Violation$inboundSchema, Violation$outboundSchema, Reason$inboundSchema, Reason$outboundSchema, Limits$inboundSchema, Limits$outboundSchema, ErrorBody$inboundSchema, ErrorBody$outboundSchema;
|
|
48898
48938
|
var init_error_body = __esm(() => {
|
|
48899
48939
|
init_v3();
|
|
48900
48940
|
init_primitives();
|
|
48941
|
+
init_enums();
|
|
48901
48942
|
init_primitives2();
|
|
48943
|
+
Reason = {
|
|
48944
|
+
Rate: "rate",
|
|
48945
|
+
Concurrent: "concurrent"
|
|
48946
|
+
};
|
|
48902
48947
|
Violation$inboundSchema = objectType({
|
|
48948
|
+
source: optional3(string4()),
|
|
48903
48949
|
type: optional3(string4()),
|
|
48904
48950
|
path: optional3(string4()),
|
|
48905
|
-
severity: optional3(string4())
|
|
48951
|
+
severity: optional3(string4()),
|
|
48952
|
+
value: optional3(anyType()),
|
|
48953
|
+
explanation: optional3(string4()),
|
|
48954
|
+
fix: optional3(string4())
|
|
48906
48955
|
});
|
|
48907
48956
|
Violation$outboundSchema = objectType({
|
|
48957
|
+
source: stringType().optional(),
|
|
48908
48958
|
type: stringType().optional(),
|
|
48909
48959
|
path: stringType().optional(),
|
|
48910
|
-
severity: stringType().optional()
|
|
48960
|
+
severity: stringType().optional(),
|
|
48961
|
+
value: anyType().optional(),
|
|
48962
|
+
explanation: stringType().optional(),
|
|
48963
|
+
fix: stringType().optional()
|
|
48911
48964
|
});
|
|
48965
|
+
Reason$inboundSchema = inboundSchema(Reason);
|
|
48966
|
+
Reason$outboundSchema = outboundSchema(Reason);
|
|
48967
|
+
Limits$inboundSchema = objectType({});
|
|
48968
|
+
Limits$outboundSchema = objectType({});
|
|
48912
48969
|
ErrorBody$inboundSchema = objectType({
|
|
48913
48970
|
message: string4(),
|
|
48914
48971
|
statusCode: number4(),
|
|
48915
48972
|
code: optional3(string4()),
|
|
48916
48973
|
min_ttl_seconds: optional3(number4()),
|
|
48917
48974
|
max_ttl_seconds: optional3(number4()),
|
|
48918
|
-
|
|
48975
|
+
retryable: optional3(boolean4()),
|
|
48976
|
+
next_step: optional3(string4()),
|
|
48977
|
+
violations: optional3(arrayType(lazyType(() => Violation$inboundSchema))),
|
|
48978
|
+
reason: optional3(Reason$inboundSchema),
|
|
48979
|
+
bucket: optional3(string4()),
|
|
48980
|
+
retry_in: optional3(number4()),
|
|
48981
|
+
limits: optional3(lazyType(() => Limits$inboundSchema)),
|
|
48982
|
+
upgrade_url: optional3(string4())
|
|
48919
48983
|
}).transform((v) => {
|
|
48920
48984
|
return remap(v, {
|
|
48921
48985
|
min_ttl_seconds: "minTtlSeconds",
|
|
48922
|
-
max_ttl_seconds: "maxTtlSeconds"
|
|
48986
|
+
max_ttl_seconds: "maxTtlSeconds",
|
|
48987
|
+
next_step: "nextStep",
|
|
48988
|
+
retry_in: "retryIn",
|
|
48989
|
+
upgrade_url: "upgradeUrl"
|
|
48923
48990
|
});
|
|
48924
48991
|
});
|
|
48925
48992
|
ErrorBody$outboundSchema = objectType({
|
|
@@ -48928,11 +48995,21 @@ var init_error_body = __esm(() => {
|
|
|
48928
48995
|
code: stringType().optional(),
|
|
48929
48996
|
minTtlSeconds: numberType().int().optional(),
|
|
48930
48997
|
maxTtlSeconds: numberType().int().optional(),
|
|
48931
|
-
|
|
48998
|
+
retryable: booleanType().optional(),
|
|
48999
|
+
nextStep: stringType().optional(),
|
|
49000
|
+
violations: arrayType(lazyType(() => Violation$outboundSchema)).optional(),
|
|
49001
|
+
reason: Reason$outboundSchema.optional(),
|
|
49002
|
+
bucket: stringType().optional(),
|
|
49003
|
+
retryIn: numberType().int().optional(),
|
|
49004
|
+
limits: lazyType(() => Limits$outboundSchema).optional(),
|
|
49005
|
+
upgradeUrl: stringType().optional()
|
|
48932
49006
|
}).transform((v) => {
|
|
48933
49007
|
return remap(v, {
|
|
48934
49008
|
minTtlSeconds: "min_ttl_seconds",
|
|
48935
|
-
maxTtlSeconds: "max_ttl_seconds"
|
|
49009
|
+
maxTtlSeconds: "max_ttl_seconds",
|
|
49010
|
+
nextStep: "next_step",
|
|
49011
|
+
retryIn: "retry_in",
|
|
49012
|
+
upgradeUrl: "upgrade_url"
|
|
48936
49013
|
});
|
|
48937
49014
|
});
|
|
48938
49015
|
});
|
|
@@ -48976,11 +49053,15 @@ var init_security2 = __esm(() => {
|
|
|
48976
49053
|
init_primitives2();
|
|
48977
49054
|
Security$inboundSchema = objectType({
|
|
48978
49055
|
agentKeyAuth: optional3(string4()),
|
|
48979
|
-
agentKeyAuth1: optional3(string4())
|
|
49056
|
+
agentKeyAuth1: optional3(string4()),
|
|
49057
|
+
agentKeyAuth2: optional3(string4()),
|
|
49058
|
+
agentKeyAuth3: optional3(string4())
|
|
48980
49059
|
});
|
|
48981
49060
|
Security$outboundSchema = objectType({
|
|
48982
49061
|
agentKeyAuth: stringType().optional(),
|
|
48983
|
-
agentKeyAuth1: stringType().optional()
|
|
49062
|
+
agentKeyAuth1: stringType().optional(),
|
|
49063
|
+
agentKeyAuth2: stringType().optional(),
|
|
49064
|
+
agentKeyAuth3: stringType().optional()
|
|
48984
49065
|
});
|
|
48985
49066
|
});
|
|
48986
49067
|
|
|
@@ -49078,22 +49159,6 @@ var init_errors4 = __esm(() => {
|
|
|
49078
49159
|
init_sdk_validation_error();
|
|
49079
49160
|
});
|
|
49080
49161
|
|
|
49081
|
-
// src/types/enums.ts
|
|
49082
|
-
function inboundSchema(enumObj) {
|
|
49083
|
-
const options = Object.values(enumObj);
|
|
49084
|
-
return unionType([
|
|
49085
|
-
...options.map((x) => literalType(x)),
|
|
49086
|
-
stringType().transform((x) => unrecognized(x))
|
|
49087
|
-
]);
|
|
49088
|
-
}
|
|
49089
|
-
function outboundSchema(_) {
|
|
49090
|
-
return stringType();
|
|
49091
|
-
}
|
|
49092
|
-
var init_enums = __esm(() => {
|
|
49093
|
-
init_v3();
|
|
49094
|
-
init_unrecognized();
|
|
49095
|
-
});
|
|
49096
|
-
|
|
49097
49162
|
// src/models/operations/actions-cancel.ts
|
|
49098
49163
|
var ActionsCancelStatus, ActionsCancelRequest$inboundSchema, ActionsCancelRequest$outboundSchema, ActionsCancelStatus$inboundSchema, ActionsCancelStatus$outboundSchema, ActionsCancelDataData$inboundSchema, ActionsCancelDataData$outboundSchema, ActionsCancelData$inboundSchema, ActionsCancelData$outboundSchema, ActionsCancelResponse$inboundSchema, ActionsCancelResponse$outboundSchema;
|
|
49099
49164
|
var init_actions_cancel = __esm(() => {
|
|
@@ -49168,7 +49233,7 @@ var init_actions_cancel = __esm(() => {
|
|
|
49168
49233
|
});
|
|
49169
49234
|
|
|
49170
49235
|
// src/models/operations/actions-check-status.ts
|
|
49171
|
-
var ActionsCheckStatusStatus,
|
|
49236
|
+
var ActionsCheckStatusStatus, ActionsCheckStatusVerdict, ActionsCheckStatusRequest$inboundSchema, ActionsCheckStatusRequest$outboundSchema, ActionsCheckStatusStatus$inboundSchema, ActionsCheckStatusStatus$outboundSchema, ActionsCheckStatusVerdict$inboundSchema, ActionsCheckStatusVerdict$outboundSchema, ActionsCheckStatusDataData$inboundSchema, ActionsCheckStatusDataData$outboundSchema, ActionsCheckStatusData$inboundSchema, ActionsCheckStatusData$outboundSchema, ActionsCheckStatusResponse$inboundSchema, ActionsCheckStatusResponse$outboundSchema;
|
|
49172
49237
|
var init_actions_check_status = __esm(() => {
|
|
49173
49238
|
init_v3();
|
|
49174
49239
|
init_primitives();
|
|
@@ -49182,7 +49247,7 @@ var init_actions_check_status = __esm(() => {
|
|
|
49182
49247
|
Expired: "expired",
|
|
49183
49248
|
Cancelled: "cancelled"
|
|
49184
49249
|
};
|
|
49185
|
-
|
|
49250
|
+
ActionsCheckStatusVerdict = {
|
|
49186
49251
|
Approve: "approve",
|
|
49187
49252
|
Denied: "denied"
|
|
49188
49253
|
};
|
|
@@ -49206,15 +49271,15 @@ var init_actions_check_status = __esm(() => {
|
|
|
49206
49271
|
});
|
|
49207
49272
|
ActionsCheckStatusStatus$inboundSchema = inboundSchema(ActionsCheckStatusStatus);
|
|
49208
49273
|
ActionsCheckStatusStatus$outboundSchema = outboundSchema(ActionsCheckStatusStatus);
|
|
49209
|
-
|
|
49210
|
-
|
|
49274
|
+
ActionsCheckStatusVerdict$inboundSchema = inboundSchema(ActionsCheckStatusVerdict);
|
|
49275
|
+
ActionsCheckStatusVerdict$outboundSchema = outboundSchema(ActionsCheckStatusVerdict);
|
|
49211
49276
|
ActionsCheckStatusDataData$inboundSchema = objectType({
|
|
49212
49277
|
status: ActionsCheckStatusStatus$inboundSchema,
|
|
49213
49278
|
ttl_at: nullableType(date4()).optional(),
|
|
49214
49279
|
resolved_at: nullableType(date4()).optional(),
|
|
49215
49280
|
ceremony_id: nullableType(string4()).optional(),
|
|
49216
49281
|
resolution_jwt: nullableType(string4()).optional(),
|
|
49217
|
-
verdict: nullableType(
|
|
49282
|
+
verdict: nullableType(ActionsCheckStatusVerdict$inboundSchema).optional(),
|
|
49218
49283
|
delivered: optional3(boolean4()),
|
|
49219
49284
|
callback_attempts: optional3(number4())
|
|
49220
49285
|
}).transform((v) => {
|
|
@@ -49232,7 +49297,7 @@ var init_actions_check_status = __esm(() => {
|
|
|
49232
49297
|
resolvedAt: nullableType(dateType().transform((v) => v.toISOString())).optional(),
|
|
49233
49298
|
ceremonyId: nullableType(stringType()).optional(),
|
|
49234
49299
|
resolutionJwt: nullableType(stringType()).optional(),
|
|
49235
|
-
verdict: nullableType(
|
|
49300
|
+
verdict: nullableType(ActionsCheckStatusVerdict$outboundSchema).optional(),
|
|
49236
49301
|
delivered: booleanType().optional(),
|
|
49237
49302
|
callbackAttempts: numberType().int().optional()
|
|
49238
49303
|
}).transform((v) => {
|
|
@@ -49386,17 +49451,20 @@ var init_actions_propose = __esm(() => {
|
|
|
49386
49451
|
});
|
|
49387
49452
|
|
|
49388
49453
|
// src/models/operations/sdk-create-session.ts
|
|
49389
|
-
var
|
|
49454
|
+
var Environment, SDKCreateSessionNotarizeFallbackReason, SDKCreateSessionSecurity$inboundSchema, SDKCreateSessionSecurity$outboundSchema, SDKCreateSessionRequest$inboundSchema, SDKCreateSessionRequest$outboundSchema, Environment$inboundSchema, Environment$outboundSchema, SDKCreateSessionOrganization$inboundSchema, SDKCreateSessionOrganization$outboundSchema, SDKCreateSessionNotarizeFallbackReason$inboundSchema, SDKCreateSessionNotarizeFallbackReason$outboundSchema, DataNotarizeRequiresUserRef$inboundSchema, DataNotarizeRequiresUserRef$outboundSchema, SDKCreateSessionData$inboundSchema, SDKCreateSessionData$outboundSchema, SDKCreateSessionResponse$inboundSchema, SDKCreateSessionResponse$outboundSchema;
|
|
49390
49455
|
var init_sdk_create_session = __esm(() => {
|
|
49391
49456
|
init_v3();
|
|
49392
49457
|
init_primitives();
|
|
49393
49458
|
init_enums();
|
|
49394
49459
|
init_primitives2();
|
|
49395
49460
|
init_models();
|
|
49396
|
-
|
|
49461
|
+
Environment = {
|
|
49397
49462
|
Development: "development",
|
|
49398
49463
|
Production: "production"
|
|
49399
49464
|
};
|
|
49465
|
+
SDKCreateSessionNotarizeFallbackReason = {
|
|
49466
|
+
NotarizeRequiresUserRef: "notarize_requires_user_ref"
|
|
49467
|
+
};
|
|
49400
49468
|
SDKCreateSessionSecurity$inboundSchema = objectType({
|
|
49401
49469
|
ApiKeyAuth: string4()
|
|
49402
49470
|
}).transform((v) => {
|
|
@@ -49413,7 +49481,8 @@ var init_sdk_create_session = __esm(() => {
|
|
|
49413
49481
|
});
|
|
49414
49482
|
SDKCreateSessionRequest$inboundSchema = objectType({
|
|
49415
49483
|
partner_user_id: optional3(string4()),
|
|
49416
|
-
metadata: optional3(recordType(anyType()))
|
|
49484
|
+
metadata: optional3(recordType(anyType())),
|
|
49485
|
+
notarize: optional3(boolean4())
|
|
49417
49486
|
}).transform((v) => {
|
|
49418
49487
|
return remap(v, {
|
|
49419
49488
|
partner_user_id: "partnerUserId"
|
|
@@ -49421,30 +49490,36 @@ var init_sdk_create_session = __esm(() => {
|
|
|
49421
49490
|
});
|
|
49422
49491
|
SDKCreateSessionRequest$outboundSchema = objectType({
|
|
49423
49492
|
partnerUserId: stringType().optional(),
|
|
49424
|
-
metadata: recordType(anyType()).optional()
|
|
49493
|
+
metadata: recordType(anyType()).optional(),
|
|
49494
|
+
notarize: booleanType().optional()
|
|
49425
49495
|
}).transform((v) => {
|
|
49426
49496
|
return remap(v, {
|
|
49427
49497
|
partnerUserId: "partner_user_id"
|
|
49428
49498
|
});
|
|
49429
49499
|
});
|
|
49430
|
-
|
|
49431
|
-
|
|
49500
|
+
Environment$inboundSchema = inboundSchema(Environment);
|
|
49501
|
+
Environment$outboundSchema = outboundSchema(Environment);
|
|
49432
49502
|
SDKCreateSessionOrganization$inboundSchema = objectType({
|
|
49433
49503
|
id: string4(),
|
|
49434
|
-
environment:
|
|
49504
|
+
environment: Environment$inboundSchema
|
|
49435
49505
|
});
|
|
49436
49506
|
SDKCreateSessionOrganization$outboundSchema = objectType({
|
|
49437
49507
|
id: stringType(),
|
|
49438
|
-
environment:
|
|
49508
|
+
environment: Environment$outboundSchema
|
|
49439
49509
|
});
|
|
49440
|
-
|
|
49510
|
+
SDKCreateSessionNotarizeFallbackReason$inboundSchema = nativeEnumType(SDKCreateSessionNotarizeFallbackReason);
|
|
49511
|
+
SDKCreateSessionNotarizeFallbackReason$outboundSchema = SDKCreateSessionNotarizeFallbackReason$inboundSchema;
|
|
49512
|
+
DataNotarizeRequiresUserRef$inboundSchema = objectType({
|
|
49441
49513
|
anchor_grant_token: string4(),
|
|
49442
49514
|
anchor_grant_expires_at: date4(),
|
|
49443
49515
|
anchor_grant_expires_in_seconds: number4(),
|
|
49444
49516
|
session_token: string4(),
|
|
49445
49517
|
expires_at: date4(),
|
|
49446
49518
|
expires_in_seconds: number4(),
|
|
49447
|
-
organization: lazyType(() => SDKCreateSessionOrganization$inboundSchema)
|
|
49519
|
+
organization: lazyType(() => SDKCreateSessionOrganization$inboundSchema),
|
|
49520
|
+
trusted: optional3(boolean4()),
|
|
49521
|
+
notarize: optional3(boolean4()),
|
|
49522
|
+
notarize_fallback_reason: optional3(SDKCreateSessionNotarizeFallbackReason$inboundSchema)
|
|
49448
49523
|
}).transform((v) => {
|
|
49449
49524
|
return remap(v, {
|
|
49450
49525
|
anchor_grant_token: "anchorGrantToken",
|
|
@@ -49452,17 +49527,21 @@ var init_sdk_create_session = __esm(() => {
|
|
|
49452
49527
|
anchor_grant_expires_in_seconds: "anchorGrantExpiresInSeconds",
|
|
49453
49528
|
session_token: "sessionToken",
|
|
49454
49529
|
expires_at: "expiresAt",
|
|
49455
|
-
expires_in_seconds: "expiresInSeconds"
|
|
49530
|
+
expires_in_seconds: "expiresInSeconds",
|
|
49531
|
+
notarize_fallback_reason: "notarizeFallbackReason"
|
|
49456
49532
|
});
|
|
49457
49533
|
});
|
|
49458
|
-
|
|
49534
|
+
DataNotarizeRequiresUserRef$outboundSchema = objectType({
|
|
49459
49535
|
anchorGrantToken: stringType(),
|
|
49460
49536
|
anchorGrantExpiresAt: dateType().transform((v) => v.toISOString()),
|
|
49461
49537
|
anchorGrantExpiresInSeconds: numberType().int(),
|
|
49462
49538
|
sessionToken: stringType(),
|
|
49463
49539
|
expiresAt: dateType().transform((v) => v.toISOString()),
|
|
49464
49540
|
expiresInSeconds: numberType().int(),
|
|
49465
|
-
organization: lazyType(() => SDKCreateSessionOrganization$outboundSchema)
|
|
49541
|
+
organization: lazyType(() => SDKCreateSessionOrganization$outboundSchema),
|
|
49542
|
+
trusted: booleanType().optional(),
|
|
49543
|
+
notarize: booleanType().optional(),
|
|
49544
|
+
notarizeFallbackReason: SDKCreateSessionNotarizeFallbackReason$outboundSchema.optional()
|
|
49466
49545
|
}).transform((v) => {
|
|
49467
49546
|
return remap(v, {
|
|
49468
49547
|
anchorGrantToken: "anchor_grant_token",
|
|
@@ -49470,15 +49549,16 @@ var init_sdk_create_session = __esm(() => {
|
|
|
49470
49549
|
anchorGrantExpiresInSeconds: "anchor_grant_expires_in_seconds",
|
|
49471
49550
|
sessionToken: "session_token",
|
|
49472
49551
|
expiresAt: "expires_at",
|
|
49473
|
-
expiresInSeconds: "expires_in_seconds"
|
|
49552
|
+
expiresInSeconds: "expires_in_seconds",
|
|
49553
|
+
notarizeFallbackReason: "notarize_fallback_reason"
|
|
49474
49554
|
});
|
|
49475
49555
|
});
|
|
49476
49556
|
SDKCreateSessionData$inboundSchema = objectType({
|
|
49477
|
-
data: optional3(lazyType(() =>
|
|
49557
|
+
data: optional3(lazyType(() => DataNotarizeRequiresUserRef$inboundSchema)),
|
|
49478
49558
|
error: optional3(ErrorBody$inboundSchema)
|
|
49479
49559
|
});
|
|
49480
49560
|
SDKCreateSessionData$outboundSchema = objectType({
|
|
49481
|
-
data: lazyType(() =>
|
|
49561
|
+
data: lazyType(() => DataNotarizeRequiresUserRef$outboundSchema).optional(),
|
|
49482
49562
|
error: ErrorBody$outboundSchema.optional()
|
|
49483
49563
|
});
|
|
49484
49564
|
SDKCreateSessionResponse$inboundSchema = objectType({
|
|
@@ -49490,7 +49570,7 @@ var init_sdk_create_session = __esm(() => {
|
|
|
49490
49570
|
});
|
|
49491
49571
|
|
|
49492
49572
|
// src/models/operations/sdk-create-verification-link.ts
|
|
49493
|
-
var SDKTypeRequest, Mode, SDKCreateVerificationLinkSDKTypeResponse, AuthMode, SDKCreateVerificationLinkSecurity$inboundSchema, SDKCreateVerificationLinkSecurity$outboundSchema, SDKTypeRequest$inboundSchema, SDKTypeRequest$outboundSchema, Mode$inboundSchema, Mode$outboundSchema, SDKCreateVerificationLinkRequest$inboundSchema, SDKCreateVerificationLinkRequest$outboundSchema, SDKCreateVerificationLinkSDKTypeResponse$inboundSchema, SDKCreateVerificationLinkSDKTypeResponse$outboundSchema, AuthMode$inboundSchema, AuthMode$outboundSchema, SDKCreateVerificationLinkOrganization$inboundSchema, SDKCreateVerificationLinkOrganization$outboundSchema, SDKCreateVerificationLinkDataData$inboundSchema, SDKCreateVerificationLinkDataData$outboundSchema, SDKCreateVerificationLinkData$inboundSchema, SDKCreateVerificationLinkData$outboundSchema, SDKCreateVerificationLinkResponse$inboundSchema, SDKCreateVerificationLinkResponse$outboundSchema;
|
|
49573
|
+
var SDKTypeRequest, Mode, SDKCreateVerificationLinkSDKTypeResponse, AuthMode, GateType, AgeThreshold, SDKCreateVerificationLinkNotarizeFallbackReason, SDKCreateVerificationLinkSecurity$inboundSchema, SDKCreateVerificationLinkSecurity$outboundSchema, SDKTypeRequest$inboundSchema, SDKTypeRequest$outboundSchema, Mode$inboundSchema, Mode$outboundSchema, SDKCreateVerificationLinkRequest$inboundSchema, SDKCreateVerificationLinkRequest$outboundSchema, SDKCreateVerificationLinkSDKTypeResponse$inboundSchema, SDKCreateVerificationLinkSDKTypeResponse$outboundSchema, AuthMode$inboundSchema, AuthMode$outboundSchema, SDKCreateVerificationLinkOrganization$inboundSchema, SDKCreateVerificationLinkOrganization$outboundSchema, GateType$inboundSchema, GateType$outboundSchema, AgeThreshold$inboundSchema, AgeThreshold$outboundSchema, SDKCreateVerificationLinkNotarizeFallbackReason$inboundSchema, SDKCreateVerificationLinkNotarizeFallbackReason$outboundSchema, SDKCreateVerificationLinkDataData$inboundSchema, SDKCreateVerificationLinkDataData$outboundSchema, SDKCreateVerificationLinkData$inboundSchema, SDKCreateVerificationLinkData$outboundSchema, SDKCreateVerificationLinkResponse$inboundSchema, SDKCreateVerificationLinkResponse$outboundSchema;
|
|
49494
49574
|
var init_sdk_create_verification_link = __esm(() => {
|
|
49495
49575
|
init_v3();
|
|
49496
49576
|
init_primitives();
|
|
@@ -49513,6 +49593,20 @@ var init_sdk_create_verification_link = __esm(() => {
|
|
|
49513
49593
|
LinkedAccount: "linked-account",
|
|
49514
49594
|
Private: "private"
|
|
49515
49595
|
};
|
|
49596
|
+
GateType = {
|
|
49597
|
+
Human: "human",
|
|
49598
|
+
Age: "age"
|
|
49599
|
+
};
|
|
49600
|
+
AgeThreshold = {
|
|
49601
|
+
Thirteen: 13,
|
|
49602
|
+
Eighteen: 18,
|
|
49603
|
+
TwentyOne: 21
|
|
49604
|
+
};
|
|
49605
|
+
SDKCreateVerificationLinkNotarizeFallbackReason = {
|
|
49606
|
+
NotarizeNotEnabled: "notarize_not_enabled",
|
|
49607
|
+
NotarizeRequiresUserRef: "notarize_requires_user_ref",
|
|
49608
|
+
AgeGate: "age_gate"
|
|
49609
|
+
};
|
|
49516
49610
|
SDKCreateVerificationLinkSecurity$inboundSchema = objectType({
|
|
49517
49611
|
GrantTokenAuth: string4()
|
|
49518
49612
|
}).transform((v) => {
|
|
@@ -49542,7 +49636,9 @@ var init_sdk_create_verification_link = __esm(() => {
|
|
|
49542
49636
|
partner_user_ref: optional3(string4()),
|
|
49543
49637
|
link_on_verify: boolean4().default(true),
|
|
49544
49638
|
parent_request_id: optional3(string4()),
|
|
49545
|
-
metadata: optional3(recordType(anyType()))
|
|
49639
|
+
metadata: optional3(recordType(anyType())),
|
|
49640
|
+
notarize: optional3(boolean4()),
|
|
49641
|
+
gate: optional3(string4())
|
|
49546
49642
|
}).transform((v) => {
|
|
49547
49643
|
return remap(v, {
|
|
49548
49644
|
user_email: "userEmail",
|
|
@@ -49566,7 +49662,9 @@ var init_sdk_create_verification_link = __esm(() => {
|
|
|
49566
49662
|
partnerUserRef: stringType().optional(),
|
|
49567
49663
|
linkOnVerify: booleanType().default(true),
|
|
49568
49664
|
parentRequestId: stringType().optional(),
|
|
49569
|
-
metadata: recordType(anyType()).optional()
|
|
49665
|
+
metadata: recordType(anyType()).optional(),
|
|
49666
|
+
notarize: booleanType().optional(),
|
|
49667
|
+
gate: stringType().optional()
|
|
49570
49668
|
}).transform((v) => {
|
|
49571
49669
|
return remap(v, {
|
|
49572
49670
|
userEmail: "user_email",
|
|
@@ -49589,6 +49687,12 @@ var init_sdk_create_verification_link = __esm(() => {
|
|
|
49589
49687
|
SDKCreateVerificationLinkOrganization$outboundSchema = objectType({
|
|
49590
49688
|
id: stringType().optional()
|
|
49591
49689
|
});
|
|
49690
|
+
GateType$inboundSchema = inboundSchema(GateType);
|
|
49691
|
+
GateType$outboundSchema = outboundSchema(GateType);
|
|
49692
|
+
AgeThreshold$inboundSchema = inboundSchemaInt(AgeThreshold);
|
|
49693
|
+
AgeThreshold$outboundSchema = outboundSchemaInt(AgeThreshold);
|
|
49694
|
+
SDKCreateVerificationLinkNotarizeFallbackReason$inboundSchema = inboundSchema(SDKCreateVerificationLinkNotarizeFallbackReason);
|
|
49695
|
+
SDKCreateVerificationLinkNotarizeFallbackReason$outboundSchema = outboundSchema(SDKCreateVerificationLinkNotarizeFallbackReason);
|
|
49592
49696
|
SDKCreateVerificationLinkDataData$inboundSchema = objectType({
|
|
49593
49697
|
request_id: string4(),
|
|
49594
49698
|
deep_link: string4(),
|
|
@@ -49599,7 +49703,13 @@ var init_sdk_create_verification_link = __esm(() => {
|
|
|
49599
49703
|
auth_mode: optional3(AuthMode$inboundSchema),
|
|
49600
49704
|
scope: optional3(string4()),
|
|
49601
49705
|
organization: optional3(lazyType(() => SDKCreateVerificationLinkOrganization$inboundSchema)),
|
|
49602
|
-
pushed_to_devices: number4()
|
|
49706
|
+
pushed_to_devices: number4(),
|
|
49707
|
+
gate_type: optional3(GateType$inboundSchema),
|
|
49708
|
+
age_threshold: optional3(AgeThreshold$inboundSchema),
|
|
49709
|
+
trusted: optional3(boolean4()),
|
|
49710
|
+
notarize: optional3(boolean4()),
|
|
49711
|
+
notarize_fallback_reason: optional3(SDKCreateVerificationLinkNotarizeFallbackReason$inboundSchema),
|
|
49712
|
+
gate: optional3(string4())
|
|
49603
49713
|
}).transform((v) => {
|
|
49604
49714
|
return remap(v, {
|
|
49605
49715
|
request_id: "requestId",
|
|
@@ -49609,7 +49719,10 @@ var init_sdk_create_verification_link = __esm(() => {
|
|
|
49609
49719
|
expires_at: "expiresAt",
|
|
49610
49720
|
sdk_type: "sdkType",
|
|
49611
49721
|
auth_mode: "authMode",
|
|
49612
|
-
pushed_to_devices: "pushedToDevices"
|
|
49722
|
+
pushed_to_devices: "pushedToDevices",
|
|
49723
|
+
gate_type: "gateType",
|
|
49724
|
+
age_threshold: "ageThreshold",
|
|
49725
|
+
notarize_fallback_reason: "notarizeFallbackReason"
|
|
49613
49726
|
});
|
|
49614
49727
|
});
|
|
49615
49728
|
SDKCreateVerificationLinkDataData$outboundSchema = objectType({
|
|
@@ -49622,7 +49735,13 @@ var init_sdk_create_verification_link = __esm(() => {
|
|
|
49622
49735
|
authMode: AuthMode$outboundSchema.optional(),
|
|
49623
49736
|
scope: stringType().optional(),
|
|
49624
49737
|
organization: lazyType(() => SDKCreateVerificationLinkOrganization$outboundSchema).optional(),
|
|
49625
|
-
pushedToDevices: numberType().int()
|
|
49738
|
+
pushedToDevices: numberType().int(),
|
|
49739
|
+
gateType: GateType$outboundSchema.optional(),
|
|
49740
|
+
ageThreshold: AgeThreshold$outboundSchema.optional(),
|
|
49741
|
+
trusted: booleanType().optional(),
|
|
49742
|
+
notarize: booleanType().optional(),
|
|
49743
|
+
notarizeFallbackReason: SDKCreateVerificationLinkNotarizeFallbackReason$outboundSchema.optional(),
|
|
49744
|
+
gate: stringType().optional()
|
|
49626
49745
|
}).transform((v) => {
|
|
49627
49746
|
return remap(v, {
|
|
49628
49747
|
requestId: "request_id",
|
|
@@ -49632,7 +49751,10 @@ var init_sdk_create_verification_link = __esm(() => {
|
|
|
49632
49751
|
expiresAt: "expires_at",
|
|
49633
49752
|
sdkType: "sdk_type",
|
|
49634
49753
|
authMode: "auth_mode",
|
|
49635
|
-
pushedToDevices: "pushed_to_devices"
|
|
49754
|
+
pushedToDevices: "pushed_to_devices",
|
|
49755
|
+
gateType: "gate_type",
|
|
49756
|
+
ageThreshold: "age_threshold",
|
|
49757
|
+
notarizeFallbackReason: "notarize_fallback_reason"
|
|
49636
49758
|
});
|
|
49637
49759
|
});
|
|
49638
49760
|
SDKCreateVerificationLinkData$inboundSchema = objectType({
|
|
@@ -49651,84 +49773,6 @@ var init_sdk_create_verification_link = __esm(() => {
|
|
|
49651
49773
|
});
|
|
49652
49774
|
});
|
|
49653
49775
|
|
|
49654
|
-
// src/models/operations/sdk-get-partner-config.ts
|
|
49655
|
-
var SDKGetPartnerConfigEnvironment, SDKGetPartnerConfigSecurity$inboundSchema, SDKGetPartnerConfigSecurity$outboundSchema, SDKGetPartnerConfigRequest$inboundSchema, SDKGetPartnerConfigRequest$outboundSchema, Integrations$inboundSchema, Integrations$outboundSchema, SDKGetPartnerConfigEnvironment$inboundSchema, SDKGetPartnerConfigEnvironment$outboundSchema, SDKGetPartnerConfigDataData$inboundSchema, SDKGetPartnerConfigDataData$outboundSchema, SDKGetPartnerConfigData$inboundSchema, SDKGetPartnerConfigData$outboundSchema, SDKGetPartnerConfigResponse$inboundSchema, SDKGetPartnerConfigResponse$outboundSchema;
|
|
49656
|
-
var init_sdk_get_partner_config = __esm(() => {
|
|
49657
|
-
init_v3();
|
|
49658
|
-
init_primitives();
|
|
49659
|
-
init_enums();
|
|
49660
|
-
init_primitives2();
|
|
49661
|
-
init_models();
|
|
49662
|
-
SDKGetPartnerConfigEnvironment = {
|
|
49663
|
-
Test: "test",
|
|
49664
|
-
Live: "live"
|
|
49665
|
-
};
|
|
49666
|
-
SDKGetPartnerConfigSecurity$inboundSchema = objectType({
|
|
49667
|
-
apiKeyAuth: optional3(string4()),
|
|
49668
|
-
apiKeyAuth1: optional3(string4())
|
|
49669
|
-
});
|
|
49670
|
-
SDKGetPartnerConfigSecurity$outboundSchema = objectType({
|
|
49671
|
-
apiKeyAuth: stringType().optional(),
|
|
49672
|
-
apiKeyAuth1: stringType().optional()
|
|
49673
|
-
});
|
|
49674
|
-
SDKGetPartnerConfigRequest$inboundSchema = objectType({
|
|
49675
|
-
site_key: string4()
|
|
49676
|
-
}).transform((v) => {
|
|
49677
|
-
return remap(v, {
|
|
49678
|
-
site_key: "siteKey"
|
|
49679
|
-
});
|
|
49680
|
-
});
|
|
49681
|
-
SDKGetPartnerConfigRequest$outboundSchema = objectType({
|
|
49682
|
-
siteKey: stringType()
|
|
49683
|
-
}).transform((v) => {
|
|
49684
|
-
return remap(v, {
|
|
49685
|
-
siteKey: "site_key"
|
|
49686
|
-
});
|
|
49687
|
-
});
|
|
49688
|
-
Integrations$inboundSchema = objectType({
|
|
49689
|
-
enabled: optional3(boolean4()),
|
|
49690
|
-
site_key: optional3(string4()),
|
|
49691
|
-
config: optional3(recordType(anyType()))
|
|
49692
|
-
}).transform((v) => {
|
|
49693
|
-
return remap(v, {
|
|
49694
|
-
site_key: "siteKey"
|
|
49695
|
-
});
|
|
49696
|
-
});
|
|
49697
|
-
Integrations$outboundSchema = objectType({
|
|
49698
|
-
enabled: booleanType().optional(),
|
|
49699
|
-
siteKey: stringType().optional(),
|
|
49700
|
-
config: recordType(anyType()).optional()
|
|
49701
|
-
}).transform((v) => {
|
|
49702
|
-
return remap(v, {
|
|
49703
|
-
siteKey: "site_key"
|
|
49704
|
-
});
|
|
49705
|
-
});
|
|
49706
|
-
SDKGetPartnerConfigEnvironment$inboundSchema = inboundSchema(SDKGetPartnerConfigEnvironment);
|
|
49707
|
-
SDKGetPartnerConfigEnvironment$outboundSchema = outboundSchema(SDKGetPartnerConfigEnvironment);
|
|
49708
|
-
SDKGetPartnerConfigDataData$inboundSchema = objectType({
|
|
49709
|
-
integrations: recordType(lazyType(() => Integrations$inboundSchema)),
|
|
49710
|
-
environment: optional3(SDKGetPartnerConfigEnvironment$inboundSchema)
|
|
49711
|
-
});
|
|
49712
|
-
SDKGetPartnerConfigDataData$outboundSchema = objectType({
|
|
49713
|
-
integrations: recordType(lazyType(() => Integrations$outboundSchema)),
|
|
49714
|
-
environment: SDKGetPartnerConfigEnvironment$outboundSchema.optional()
|
|
49715
|
-
});
|
|
49716
|
-
SDKGetPartnerConfigData$inboundSchema = objectType({
|
|
49717
|
-
data: optional3(lazyType(() => SDKGetPartnerConfigDataData$inboundSchema)),
|
|
49718
|
-
error: optional3(ErrorBody$inboundSchema)
|
|
49719
|
-
});
|
|
49720
|
-
SDKGetPartnerConfigData$outboundSchema = objectType({
|
|
49721
|
-
data: lazyType(() => SDKGetPartnerConfigDataData$outboundSchema).optional(),
|
|
49722
|
-
error: ErrorBody$outboundSchema.optional()
|
|
49723
|
-
});
|
|
49724
|
-
SDKGetPartnerConfigResponse$inboundSchema = objectType({
|
|
49725
|
-
data: lazyType(() => SDKGetPartnerConfigData$inboundSchema)
|
|
49726
|
-
});
|
|
49727
|
-
SDKGetPartnerConfigResponse$outboundSchema = objectType({
|
|
49728
|
-
data: lazyType(() => SDKGetPartnerConfigData$outboundSchema)
|
|
49729
|
-
});
|
|
49730
|
-
});
|
|
49731
|
-
|
|
49732
49776
|
// src/models/operations/sdk-logout.ts
|
|
49733
49777
|
var SDKLogoutSecurity$inboundSchema, SDKLogoutSecurity$outboundSchema, SDKLogoutRequest$inboundSchema, SDKLogoutRequest$outboundSchema, SDKLogoutData$inboundSchema, SDKLogoutData$outboundSchema, SDKLogoutResponse$inboundSchema, SDKLogoutResponse$outboundSchema;
|
|
49734
49778
|
var init_sdk_logout = __esm(() => {
|
|
@@ -49818,9 +49862,10 @@ var init_sdk_revoke_verification = __esm(() => {
|
|
|
49818
49862
|
});
|
|
49819
49863
|
});
|
|
49820
49864
|
SDKRevokeVerificationRequest$inboundSchema = objectType({
|
|
49821
|
-
scope: string4(),
|
|
49865
|
+
scope: optional3(string4()),
|
|
49822
49866
|
user_email: optional3(string4()),
|
|
49823
|
-
partner_user_id: optional3(string4())
|
|
49867
|
+
partner_user_id: optional3(string4()),
|
|
49868
|
+
gate: optional3(string4())
|
|
49824
49869
|
}).transform((v) => {
|
|
49825
49870
|
return remap(v, {
|
|
49826
49871
|
user_email: "userEmail",
|
|
@@ -49828,9 +49873,10 @@ var init_sdk_revoke_verification = __esm(() => {
|
|
|
49828
49873
|
});
|
|
49829
49874
|
});
|
|
49830
49875
|
SDKRevokeVerificationRequest$outboundSchema = objectType({
|
|
49831
|
-
scope: stringType(),
|
|
49876
|
+
scope: stringType().optional(),
|
|
49832
49877
|
userEmail: stringType().optional(),
|
|
49833
|
-
partnerUserId: stringType().optional()
|
|
49878
|
+
partnerUserId: stringType().optional(),
|
|
49879
|
+
gate: stringType().optional()
|
|
49834
49880
|
}).transform((v) => {
|
|
49835
49881
|
return remap(v, {
|
|
49836
49882
|
userEmail: "user_email",
|
|
@@ -49951,14 +49997,14 @@ var init_sdk_store_signal = __esm(() => {
|
|
|
49951
49997
|
});
|
|
49952
49998
|
|
|
49953
49999
|
// src/models/operations/sdk-validate-signal.ts
|
|
49954
|
-
var
|
|
50000
|
+
var SDKValidateSignalReason, SDKValidateSignalRequest$inboundSchema, SDKValidateSignalRequest$outboundSchema, SDKValidateSignalReason$inboundSchema, SDKValidateSignalReason$outboundSchema, SDKValidateSignalDataData$inboundSchema, SDKValidateSignalDataData$outboundSchema, SDKValidateSignalData$inboundSchema, SDKValidateSignalData$outboundSchema, SDKValidateSignalResponse$inboundSchema, SDKValidateSignalResponse$outboundSchema;
|
|
49955
50001
|
var init_sdk_validate_signal = __esm(() => {
|
|
49956
50002
|
init_v3();
|
|
49957
50003
|
init_primitives();
|
|
49958
50004
|
init_enums();
|
|
49959
50005
|
init_primitives2();
|
|
49960
50006
|
init_models();
|
|
49961
|
-
|
|
50007
|
+
SDKValidateSignalReason = {
|
|
49962
50008
|
InvalidSignalToken: "invalid_signal_token",
|
|
49963
50009
|
SignalTokenExpired: "signal_token_expired",
|
|
49964
50010
|
SignalTokenAlreadyUsed: "signal_token_already_used"
|
|
@@ -49981,11 +50027,11 @@ var init_sdk_validate_signal = __esm(() => {
|
|
|
49981
50027
|
verificationEventId: "verification_event_id"
|
|
49982
50028
|
});
|
|
49983
50029
|
});
|
|
49984
|
-
|
|
49985
|
-
|
|
50030
|
+
SDKValidateSignalReason$inboundSchema = inboundSchema(SDKValidateSignalReason);
|
|
50031
|
+
SDKValidateSignalReason$outboundSchema = outboundSchema(SDKValidateSignalReason);
|
|
49986
50032
|
SDKValidateSignalDataData$inboundSchema = objectType({
|
|
49987
50033
|
valid: boolean4(),
|
|
49988
|
-
reason: optional3(
|
|
50034
|
+
reason: optional3(SDKValidateSignalReason$inboundSchema),
|
|
49989
50035
|
score: optional3(number4()),
|
|
49990
50036
|
edge_score: optional3(number4()),
|
|
49991
50037
|
client_score: optional3(number4()),
|
|
@@ -50002,7 +50048,7 @@ var init_sdk_validate_signal = __esm(() => {
|
|
|
50002
50048
|
});
|
|
50003
50049
|
SDKValidateSignalDataData$outboundSchema = objectType({
|
|
50004
50050
|
valid: booleanType(),
|
|
50005
|
-
reason:
|
|
50051
|
+
reason: SDKValidateSignalReason$outboundSchema.optional(),
|
|
50006
50052
|
score: numberType().int().optional(),
|
|
50007
50053
|
edgeScore: numberType().int().optional(),
|
|
50008
50054
|
clientScore: numberType().int().optional(),
|
|
@@ -50034,26 +50080,44 @@ var init_sdk_validate_signal = __esm(() => {
|
|
|
50034
50080
|
});
|
|
50035
50081
|
|
|
50036
50082
|
// src/models/operations/sdk-verify-token.ts
|
|
50037
|
-
var SDKVerifyTokenSecurity$inboundSchema, SDKVerifyTokenSecurity$outboundSchema, SDKVerifyTokenRequest$inboundSchema, SDKVerifyTokenRequest$outboundSchema, Claims$inboundSchema, Claims$outboundSchema, SDKVerifyTokenDataData$inboundSchema, SDKVerifyTokenDataData$outboundSchema, SDKVerifyTokenData$inboundSchema, SDKVerifyTokenData$outboundSchema, SDKVerifyTokenResponse$inboundSchema, SDKVerifyTokenResponse$outboundSchema;
|
|
50083
|
+
var AgeOver, SDKVerifyTokenVerdict, SDKVerifyTokenSecurity$inboundSchema, SDKVerifyTokenSecurity$outboundSchema, SDKVerifyTokenRequest$inboundSchema, SDKVerifyTokenRequest$outboundSchema, AgeOver$inboundSchema, AgeOver$outboundSchema, Claims$inboundSchema, Claims$outboundSchema, SDKVerifyTokenVerdict$inboundSchema, SDKVerifyTokenVerdict$outboundSchema, SDKVerifyTokenDataData$inboundSchema, SDKVerifyTokenDataData$outboundSchema, SDKVerifyTokenData$inboundSchema, SDKVerifyTokenData$outboundSchema, SDKVerifyTokenResponse$inboundSchema, SDKVerifyTokenResponse$outboundSchema;
|
|
50038
50084
|
var init_sdk_verify_token = __esm(() => {
|
|
50039
50085
|
init_v3();
|
|
50040
50086
|
init_primitives();
|
|
50087
|
+
init_enums();
|
|
50041
50088
|
init_primitives2();
|
|
50042
50089
|
init_models();
|
|
50090
|
+
AgeOver = {
|
|
50091
|
+
Thirteen: 13,
|
|
50092
|
+
Eighteen: 18,
|
|
50093
|
+
TwentyOne: 21
|
|
50094
|
+
};
|
|
50095
|
+
SDKVerifyTokenVerdict = {
|
|
50096
|
+
Pass: "pass",
|
|
50097
|
+
Unavailable: "unavailable"
|
|
50098
|
+
};
|
|
50043
50099
|
SDKVerifyTokenSecurity$inboundSchema = objectType({
|
|
50044
50100
|
apiKeyAuth: optional3(string4()),
|
|
50045
|
-
apiKeyAuth1: optional3(string4())
|
|
50101
|
+
apiKeyAuth1: optional3(string4()),
|
|
50102
|
+
apiKeyAuth2: optional3(string4()),
|
|
50103
|
+
apiKeyAuth3: optional3(string4())
|
|
50046
50104
|
});
|
|
50047
50105
|
SDKVerifyTokenSecurity$outboundSchema = objectType({
|
|
50048
50106
|
apiKeyAuth: stringType().optional(),
|
|
50049
|
-
apiKeyAuth1: stringType().optional()
|
|
50107
|
+
apiKeyAuth1: stringType().optional(),
|
|
50108
|
+
apiKeyAuth2: stringType().optional(),
|
|
50109
|
+
apiKeyAuth3: stringType().optional()
|
|
50050
50110
|
});
|
|
50051
50111
|
SDKVerifyTokenRequest$inboundSchema = objectType({
|
|
50052
|
-
token: string4()
|
|
50112
|
+
token: string4(),
|
|
50113
|
+
audience: optional3(string4())
|
|
50053
50114
|
});
|
|
50054
50115
|
SDKVerifyTokenRequest$outboundSchema = objectType({
|
|
50055
|
-
token: stringType()
|
|
50116
|
+
token: stringType(),
|
|
50117
|
+
audience: stringType().optional()
|
|
50056
50118
|
});
|
|
50119
|
+
AgeOver$inboundSchema = inboundSchemaInt(AgeOver);
|
|
50120
|
+
AgeOver$outboundSchema = outboundSchemaInt(AgeOver);
|
|
50057
50121
|
Claims$inboundSchema = objectType({
|
|
50058
50122
|
request_id: optional3(string4()),
|
|
50059
50123
|
verified: optional3(boolean4()),
|
|
@@ -50061,13 +50125,21 @@ var init_sdk_verify_token = __esm(() => {
|
|
|
50061
50125
|
timestamp: optional3(string4()),
|
|
50062
50126
|
nonce: optional3(string4()),
|
|
50063
50127
|
issued_at: optional3(number4()),
|
|
50064
|
-
expires_at: optional3(number4())
|
|
50128
|
+
expires_at: optional3(number4()),
|
|
50129
|
+
age_over: optional3(AgeOver$inboundSchema),
|
|
50130
|
+
trusted: optional3(boolean4()),
|
|
50131
|
+
trusted_since: optional3(date4()),
|
|
50132
|
+
last_pass_at: optional3(date4()),
|
|
50133
|
+
audience: nullableType(string4()).optional()
|
|
50065
50134
|
}).transform((v) => {
|
|
50066
50135
|
return remap(v, {
|
|
50067
50136
|
request_id: "requestId",
|
|
50068
50137
|
organization_id: "organizationId",
|
|
50069
50138
|
issued_at: "issuedAt",
|
|
50070
|
-
expires_at: "expiresAt"
|
|
50139
|
+
expires_at: "expiresAt",
|
|
50140
|
+
age_over: "ageOver",
|
|
50141
|
+
trusted_since: "trustedSince",
|
|
50142
|
+
last_pass_at: "lastPassAt"
|
|
50071
50143
|
});
|
|
50072
50144
|
});
|
|
50073
50145
|
Claims$outboundSchema = objectType({
|
|
@@ -50077,33 +50149,51 @@ var init_sdk_verify_token = __esm(() => {
|
|
|
50077
50149
|
timestamp: stringType().optional(),
|
|
50078
50150
|
nonce: stringType().optional(),
|
|
50079
50151
|
issuedAt: numberType().optional(),
|
|
50080
|
-
expiresAt: numberType().optional()
|
|
50152
|
+
expiresAt: numberType().optional(),
|
|
50153
|
+
ageOver: AgeOver$outboundSchema.optional(),
|
|
50154
|
+
trusted: booleanType().optional(),
|
|
50155
|
+
trustedSince: dateType().transform((v) => v.toISOString()).optional(),
|
|
50156
|
+
lastPassAt: dateType().transform((v) => v.toISOString()).optional(),
|
|
50157
|
+
audience: nullableType(stringType()).optional()
|
|
50081
50158
|
}).transform((v) => {
|
|
50082
50159
|
return remap(v, {
|
|
50083
50160
|
requestId: "request_id",
|
|
50084
50161
|
organizationId: "organization_id",
|
|
50085
50162
|
issuedAt: "issued_at",
|
|
50086
|
-
expiresAt: "expires_at"
|
|
50163
|
+
expiresAt: "expires_at",
|
|
50164
|
+
ageOver: "age_over",
|
|
50165
|
+
trustedSince: "trusted_since",
|
|
50166
|
+
lastPassAt: "last_pass_at"
|
|
50087
50167
|
});
|
|
50088
50168
|
});
|
|
50169
|
+
SDKVerifyTokenVerdict$inboundSchema = inboundSchema(SDKVerifyTokenVerdict);
|
|
50170
|
+
SDKVerifyTokenVerdict$outboundSchema = outboundSchema(SDKVerifyTokenVerdict);
|
|
50089
50171
|
SDKVerifyTokenDataData$inboundSchema = objectType({
|
|
50090
50172
|
valid: boolean4(),
|
|
50091
50173
|
reason: optional3(string4()),
|
|
50092
50174
|
expired_at: nullableType(date4()).optional(),
|
|
50093
|
-
claims: nullableType(lazyType(() => Claims$inboundSchema)).optional()
|
|
50175
|
+
claims: nullableType(lazyType(() => Claims$inboundSchema)).optional(),
|
|
50176
|
+
replayed: optional3(boolean4()),
|
|
50177
|
+
strict_single_use_from: optional3(date4()),
|
|
50178
|
+
verdict: optional3(SDKVerifyTokenVerdict$inboundSchema)
|
|
50094
50179
|
}).transform((v) => {
|
|
50095
50180
|
return remap(v, {
|
|
50096
|
-
expired_at: "expiredAt"
|
|
50181
|
+
expired_at: "expiredAt",
|
|
50182
|
+
strict_single_use_from: "strictSingleUseFrom"
|
|
50097
50183
|
});
|
|
50098
50184
|
});
|
|
50099
50185
|
SDKVerifyTokenDataData$outboundSchema = objectType({
|
|
50100
50186
|
valid: booleanType(),
|
|
50101
50187
|
reason: stringType().optional(),
|
|
50102
50188
|
expiredAt: nullableType(dateType().transform((v) => v.toISOString())).optional(),
|
|
50103
|
-
claims: nullableType(lazyType(() => Claims$outboundSchema)).optional()
|
|
50189
|
+
claims: nullableType(lazyType(() => Claims$outboundSchema)).optional(),
|
|
50190
|
+
replayed: booleanType().optional(),
|
|
50191
|
+
strictSingleUseFrom: dateType().transform((v) => v.toISOString()).optional(),
|
|
50192
|
+
verdict: SDKVerifyTokenVerdict$outboundSchema.optional()
|
|
50104
50193
|
}).transform((v) => {
|
|
50105
50194
|
return remap(v, {
|
|
50106
|
-
expiredAt: "expired_at"
|
|
50195
|
+
expiredAt: "expired_at",
|
|
50196
|
+
strictSingleUseFrom: "strict_single_use_from"
|
|
50107
50197
|
});
|
|
50108
50198
|
});
|
|
50109
50199
|
SDKVerifyTokenData$inboundSchema = objectType({
|
|
@@ -50123,7 +50213,7 @@ var init_sdk_verify_token = __esm(() => {
|
|
|
50123
50213
|
});
|
|
50124
50214
|
|
|
50125
50215
|
// src/models/operations/verification-get-status.ts
|
|
50126
|
-
var VerificationGetStatusStatus, VerificationGetStatusSDKType, VerificationGetStatusSecurity$inboundSchema, VerificationGetStatusSecurity$outboundSchema, VerificationGetStatusRequest$inboundSchema, VerificationGetStatusRequest$outboundSchema, VerificationGetStatusStatus$inboundSchema, VerificationGetStatusStatus$outboundSchema, VerificationGetStatusSDKType$inboundSchema, VerificationGetStatusSDKType$outboundSchema, Metadata$inboundSchema, Metadata$outboundSchema, VerificationGetStatusData$inboundSchema, VerificationGetStatusData$outboundSchema, VerificationGetStatusResponse$inboundSchema, VerificationGetStatusResponse$outboundSchema;
|
|
50216
|
+
var VerificationGetStatusStatus, VerificationGetStatusSDKType, VerificationGetStatusReason, VerificationGetStatusSecurity$inboundSchema, VerificationGetStatusSecurity$outboundSchema, VerificationGetStatusRequest$inboundSchema, VerificationGetStatusRequest$outboundSchema, VerificationGetStatusStatus$inboundSchema, VerificationGetStatusStatus$outboundSchema, VerificationGetStatusSDKType$inboundSchema, VerificationGetStatusSDKType$outboundSchema, Metadata$inboundSchema, Metadata$outboundSchema, VerificationGetStatusReason$inboundSchema, VerificationGetStatusReason$outboundSchema, VerificationGetStatusData$inboundSchema, VerificationGetStatusData$outboundSchema, VerificationGetStatusResponse$inboundSchema, VerificationGetStatusResponse$outboundSchema;
|
|
50127
50217
|
var init_verification_get_status = __esm(() => {
|
|
50128
50218
|
init_v3();
|
|
50129
50219
|
init_primitives();
|
|
@@ -50143,13 +50233,24 @@ var init_verification_get_status = __esm(() => {
|
|
|
50143
50233
|
Signal: "signal",
|
|
50144
50234
|
Presence: "presence"
|
|
50145
50235
|
};
|
|
50236
|
+
VerificationGetStatusReason = {
|
|
50237
|
+
AlreadyTrusted: "already_trusted",
|
|
50238
|
+
RebindRequiresPriorId: "rebind_requires_prior_id",
|
|
50239
|
+
PassLimitReached: "pass_limit_reached",
|
|
50240
|
+
RealDaysNotMet: "real_days_not_met",
|
|
50241
|
+
Unavailable: "unavailable"
|
|
50242
|
+
};
|
|
50146
50243
|
VerificationGetStatusSecurity$inboundSchema = objectType({
|
|
50147
50244
|
apiKeyAuth: optional3(string4()),
|
|
50148
|
-
apiKeyAuth1: optional3(string4())
|
|
50245
|
+
apiKeyAuth1: optional3(string4()),
|
|
50246
|
+
apiKeyAuth2: optional3(string4()),
|
|
50247
|
+
apiKeyAuth3: optional3(string4())
|
|
50149
50248
|
});
|
|
50150
50249
|
VerificationGetStatusSecurity$outboundSchema = objectType({
|
|
50151
50250
|
apiKeyAuth: stringType().optional(),
|
|
50152
|
-
apiKeyAuth1: stringType().optional()
|
|
50251
|
+
apiKeyAuth1: stringType().optional(),
|
|
50252
|
+
apiKeyAuth2: stringType().optional(),
|
|
50253
|
+
apiKeyAuth3: stringType().optional()
|
|
50153
50254
|
});
|
|
50154
50255
|
VerificationGetStatusRequest$inboundSchema = objectType({
|
|
50155
50256
|
request_id: string4()
|
|
@@ -50195,6 +50296,8 @@ var init_verification_get_status = __esm(() => {
|
|
|
50195
50296
|
parentRequestId: "parent_request_id"
|
|
50196
50297
|
});
|
|
50197
50298
|
});
|
|
50299
|
+
VerificationGetStatusReason$inboundSchema = inboundSchema(VerificationGetStatusReason);
|
|
50300
|
+
VerificationGetStatusReason$outboundSchema = outboundSchema(VerificationGetStatusReason);
|
|
50198
50301
|
VerificationGetStatusData$inboundSchema = objectType({
|
|
50199
50302
|
found: optional3(boolean4()),
|
|
50200
50303
|
status: optional3(VerificationGetStatusStatus$inboundSchema),
|
|
@@ -50211,7 +50314,12 @@ var init_verification_get_status = __esm(() => {
|
|
|
50211
50314
|
presence_address: nullableType(string4()).optional(),
|
|
50212
50315
|
metadata: nullableType(lazyType(() => Metadata$inboundSchema)).optional(),
|
|
50213
50316
|
message: optional3(string4()),
|
|
50214
|
-
error: optional3(ErrorBody$inboundSchema)
|
|
50317
|
+
error: optional3(ErrorBody$inboundSchema),
|
|
50318
|
+
reason: nullableType(VerificationGetStatusReason$inboundSchema).optional(),
|
|
50319
|
+
trusted: nullableType(boolean4()).optional(),
|
|
50320
|
+
first_time: nullableType(boolean4()).optional(),
|
|
50321
|
+
notarize: optional3(boolean4()),
|
|
50322
|
+
organization_name: nullableType(string4()).optional()
|
|
50215
50323
|
}).transform((v) => {
|
|
50216
50324
|
return remap(v, {
|
|
50217
50325
|
request_id: "requestId",
|
|
@@ -50223,7 +50331,9 @@ var init_verification_get_status = __esm(() => {
|
|
|
50223
50331
|
verification_token: "verificationToken",
|
|
50224
50332
|
error_message: "errorMessage",
|
|
50225
50333
|
sdk_type: "sdkType",
|
|
50226
|
-
presence_address: "presenceAddress"
|
|
50334
|
+
presence_address: "presenceAddress",
|
|
50335
|
+
first_time: "firstTime",
|
|
50336
|
+
organization_name: "organizationName"
|
|
50227
50337
|
});
|
|
50228
50338
|
});
|
|
50229
50339
|
VerificationGetStatusData$outboundSchema = objectType({
|
|
@@ -50242,7 +50352,12 @@ var init_verification_get_status = __esm(() => {
|
|
|
50242
50352
|
presenceAddress: nullableType(stringType()).optional(),
|
|
50243
50353
|
metadata: nullableType(lazyType(() => Metadata$outboundSchema)).optional(),
|
|
50244
50354
|
message: stringType().optional(),
|
|
50245
|
-
error: ErrorBody$outboundSchema.optional()
|
|
50355
|
+
error: ErrorBody$outboundSchema.optional(),
|
|
50356
|
+
reason: nullableType(VerificationGetStatusReason$outboundSchema).optional(),
|
|
50357
|
+
trusted: nullableType(booleanType()).optional(),
|
|
50358
|
+
firstTime: nullableType(booleanType()).optional(),
|
|
50359
|
+
notarize: booleanType().optional(),
|
|
50360
|
+
organizationName: nullableType(stringType()).optional()
|
|
50246
50361
|
}).transform((v) => {
|
|
50247
50362
|
return remap(v, {
|
|
50248
50363
|
requestId: "request_id",
|
|
@@ -50254,7 +50369,9 @@ var init_verification_get_status = __esm(() => {
|
|
|
50254
50369
|
verificationToken: "verification_token",
|
|
50255
50370
|
errorMessage: "error_message",
|
|
50256
50371
|
sdkType: "sdk_type",
|
|
50257
|
-
presenceAddress: "presence_address"
|
|
50372
|
+
presenceAddress: "presence_address",
|
|
50373
|
+
firstTime: "first_time",
|
|
50374
|
+
organizationName: "organization_name"
|
|
50258
50375
|
});
|
|
50259
50376
|
});
|
|
50260
50377
|
VerificationGetStatusResponse$inboundSchema = objectType({
|
|
@@ -50272,7 +50389,6 @@ var init_operations = __esm(() => {
|
|
|
50272
50389
|
init_actions_propose();
|
|
50273
50390
|
init_sdk_create_session();
|
|
50274
50391
|
init_sdk_create_verification_link();
|
|
50275
|
-
init_sdk_get_partner_config();
|
|
50276
50392
|
init_sdk_logout();
|
|
50277
50393
|
init_sdk_revoke_verification();
|
|
50278
50394
|
init_sdk_store_signal();
|
|
@@ -50396,7 +50512,7 @@ var init_actions_cancel_action2 = __esm(() => {
|
|
|
50396
50512
|
tool$actionsCancelAction = {
|
|
50397
50513
|
name: "cancel_resolution",
|
|
50398
50514
|
description: `Stand down a queued resolution before the user responds. No-op once terminal; TTL expiry produces no Resolution.`,
|
|
50399
|
-
scopes: ["queue", "queue"],
|
|
50515
|
+
scopes: ["queue", "queue", "queue", "queue"],
|
|
50400
50516
|
args,
|
|
50401
50517
|
tool: async (client, args2, ctx) => {
|
|
50402
50518
|
const [result, apiCall] = await actionsCancelAction(client, args2.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -50502,7 +50618,7 @@ var init_actions_check_action_status2 = __esm(() => {
|
|
|
50502
50618
|
tool$actionsCheckActionStatus = {
|
|
50503
50619
|
name: "check_resolution_status",
|
|
50504
50620
|
description: `Poll a proposed resolution (pass wait_seconds up to 25 to long-poll). Terminal states (approved/denied) carry the signed Proof of Resolution JWT — verify against BotShield's JWKS; the request_id is the JWT jti.`,
|
|
50505
|
-
scopes: ["queue", "queue"],
|
|
50621
|
+
scopes: ["queue", "queue", "queue", "queue"],
|
|
50506
50622
|
args: args2,
|
|
50507
50623
|
tool: async (client, args3, ctx) => {
|
|
50508
50624
|
const [result, apiCall] = await actionsCheckActionStatus(client, args3.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -50604,7 +50720,7 @@ var init_actions_propose_action2 = __esm(() => {
|
|
|
50604
50720
|
tool$actionsProposeAction = {
|
|
50605
50721
|
name: "propose_resolution",
|
|
50606
50722
|
description: `Propose a human-presence-gated action to a BotShield user (Agents Ask). Returns a card_id immediately; the signed Proof of Resolution arrives async via the agent's registered callback, or poll check_resolution_status.`,
|
|
50607
|
-
scopes: ["queue", "queue"],
|
|
50723
|
+
scopes: ["queue", "queue", "queue", "queue"],
|
|
50608
50724
|
args: args3,
|
|
50609
50725
|
tool: async (client, args4, ctx) => {
|
|
50610
50726
|
const [result, apiCall] = await actionsProposeAction(client, args4.request, { fetchOptions: { signal: ctx.signal } }).$inspect();
|
|
@@ -50624,7 +50740,7 @@ var init_actions_propose_action2 = __esm(() => {
|
|
|
50624
50740
|
function createMCPServer(deps) {
|
|
50625
50741
|
const server = new McpServer({
|
|
50626
50742
|
name: "BotShield",
|
|
50627
|
-
version: "2.0
|
|
50743
|
+
version: "2.1.0"
|
|
50628
50744
|
});
|
|
50629
50745
|
const client = new BotShieldCore({
|
|
50630
50746
|
security: deps.security,
|
|
@@ -50682,7 +50798,9 @@ async function startStdio(flags) {
|
|
|
50682
50798
|
scopes: flags.scope,
|
|
50683
50799
|
security: {
|
|
50684
50800
|
agentKeyAuth: flags["agent-key-auth"] ?? "",
|
|
50685
|
-
agentKeyAuth1: flags["agent-key-auth1"] ?? ""
|
|
50801
|
+
agentKeyAuth1: flags["agent-key-auth1"] ?? "",
|
|
50802
|
+
agentKeyAuth2: flags["agent-key-auth2"] ?? "",
|
|
50803
|
+
agentKeyAuth3: flags["agent-key-auth3"] ?? ""
|
|
50686
50804
|
},
|
|
50687
50805
|
serverURL: flags["server-url"],
|
|
50688
50806
|
serverIdx: flags["server-index"]
|
|
@@ -50704,7 +50822,9 @@ async function startSSE(flags) {
|
|
|
50704
50822
|
scopes: flags.scope,
|
|
50705
50823
|
security: {
|
|
50706
50824
|
agentKeyAuth: flags["agent-key-auth"] ?? "",
|
|
50707
|
-
agentKeyAuth1: flags["agent-key-auth1"] ?? ""
|
|
50825
|
+
agentKeyAuth1: flags["agent-key-auth1"] ?? "",
|
|
50826
|
+
agentKeyAuth2: flags["agent-key-auth2"] ?? "",
|
|
50827
|
+
agentKeyAuth3: flags["agent-key-auth3"] ?? ""
|
|
50708
50828
|
},
|
|
50709
50829
|
serverURL: flags["server-url"],
|
|
50710
50830
|
serverIdx: flags["server-index"]
|
|
@@ -52881,6 +53001,22 @@ var startCommand = buildCommand({
|
|
|
52881
53001
|
return stringType().parse(value);
|
|
52882
53002
|
}
|
|
52883
53003
|
},
|
|
53004
|
+
"agent-key-auth2": {
|
|
53005
|
+
kind: "parsed",
|
|
53006
|
+
brief: "Sets the agentKeyAuth2 auth field for the API",
|
|
53007
|
+
optional: true,
|
|
53008
|
+
parse: (value) => {
|
|
53009
|
+
return stringType().parse(value);
|
|
53010
|
+
}
|
|
53011
|
+
},
|
|
53012
|
+
"agent-key-auth3": {
|
|
53013
|
+
kind: "parsed",
|
|
53014
|
+
brief: "Sets the agentKeyAuth3 auth field for the API",
|
|
53015
|
+
optional: true,
|
|
53016
|
+
parse: (value) => {
|
|
53017
|
+
return stringType().parse(value);
|
|
53018
|
+
}
|
|
53019
|
+
},
|
|
52884
53020
|
"server-url": {
|
|
52885
53021
|
kind: "parsed",
|
|
52886
53022
|
brief: "Overrides the default server URL used by the SDK",
|
|
@@ -52940,7 +53076,7 @@ var routes = buildRouteMap({
|
|
|
52940
53076
|
var app = buildApplication(routes, {
|
|
52941
53077
|
name: "mcp",
|
|
52942
53078
|
versionInfo: {
|
|
52943
|
-
currentVersion: "2.0
|
|
53079
|
+
currentVersion: "2.1.0"
|
|
52944
53080
|
}
|
|
52945
53081
|
});
|
|
52946
53082
|
run(app, process4.argv.slice(2), buildContext(process4));
|
|
@@ -52948,5 +53084,5 @@ export {
|
|
|
52948
53084
|
app
|
|
52949
53085
|
};
|
|
52950
53086
|
|
|
52951
|
-
//# debugId=
|
|
53087
|
+
//# debugId=C2EA8106B34F4CDE64756E2164756E21
|
|
52952
53088
|
//# sourceMappingURL=mcp-server.js.map
|