New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@cerbos/http

Package Overview
Dependencies
Maintainers
3
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cerbos/http - npm Package Compare versions

Comparing version 0.19.0 to 0.19.1

3

lib/protobuf/buf/validate/expression.js
"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: buf/validate/expression.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: buf/validate/priv/private.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: buf/validate/validate.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/audit/v1/audit.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/effect/v1/effect.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/engine/v1/engine.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/policy/v1/policy.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/request/v1/request.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/response/v1/response.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/schema/v1/schema.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/svc/v1/svc.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/api/annotations.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/api/field_behavior.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/api/http.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

21

lib/protobuf/google/protobuf/descriptor.d.ts
export declare const protobufPackage = "google.protobuf";
export declare enum Edition {
EDITION_UNKNOWN = 0,
EDITION_LEGACY = 900,
EDITION_PROTO2 = 998,
EDITION_PROTO3 = 999,
EDITION_2023 = 1000,
EDITION_2024 = 1001,
EDITION_1_TEST_ONLY = 1,

@@ -11,3 +13,4 @@ EDITION_2_TEST_ONLY = 2,

EDITION_99998_TEST_ONLY = 99998,
EDITION_99999_TEST_ONLY = 99999
EDITION_99999_TEST_ONLY = 99999,
EDITION_MAX = 2147483647
}

@@ -27,3 +30,2 @@ export declare function editionFromJSON(object: any): Edition;

pyGenericServices?: boolean | undefined;
phpGenericServices?: boolean | undefined;
deprecated?: boolean | undefined;

@@ -70,2 +72,3 @@ ccEnableArenas?: boolean | undefined;

features?: FeatureSet | undefined;
featureSupport?: FieldOptions_FeatureSupport | undefined;
uninterpretedOption: UninterpretedOption[];

@@ -112,2 +115,8 @@ }

}
export interface FieldOptions_FeatureSupport {
editionIntroduced?: Edition | undefined;
editionDeprecated?: Edition | undefined;
deprecationWarning?: string | undefined;
editionRemoved?: Edition | undefined;
}
export interface OneofOptions {

@@ -180,4 +189,4 @@ features?: FeatureSet | undefined;

UTF8_VALIDATION_UNKNOWN = 0,
NONE = 1,
VERIFY = 2
VERIFY = 2,
NONE = 3
}

@@ -216,2 +225,6 @@ export declare function featureSet_Utf8ValidationFromJSON(object: any): FeatureSet_Utf8Validation;

};
export declare const FieldOptions_FeatureSupport: {
fromJSON(object: any): FieldOptions_FeatureSupport;
toJSON(message: FieldOptions_FeatureSupport): unknown;
};
export declare const OneofOptions: {

@@ -218,0 +231,0 @@ fromJSON(object: any): OneofOptions;

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/protobuf/descriptor.proto
Object.defineProperty(exports, "__esModule", { value: true });
exports.FeatureSet = exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = exports.ServiceOptions = exports.OneofOptions = exports.FieldOptions_EditionDefault = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.featureSet_JsonFormatToJSON = exports.featureSet_JsonFormatFromJSON = exports.FeatureSet_JsonFormat = exports.featureSet_MessageEncodingToJSON = exports.featureSet_MessageEncodingFromJSON = exports.FeatureSet_MessageEncoding = exports.featureSet_Utf8ValidationToJSON = exports.featureSet_Utf8ValidationFromJSON = exports.FeatureSet_Utf8Validation = exports.featureSet_RepeatedFieldEncodingToJSON = exports.featureSet_RepeatedFieldEncodingFromJSON = exports.FeatureSet_RepeatedFieldEncoding = exports.featureSet_EnumTypeToJSON = exports.featureSet_EnumTypeFromJSON = exports.FeatureSet_EnumType = exports.featureSet_FieldPresenceToJSON = exports.featureSet_FieldPresenceFromJSON = exports.FeatureSet_FieldPresence = exports.methodOptions_IdempotencyLevelToJSON = exports.methodOptions_IdempotencyLevelFromJSON = exports.MethodOptions_IdempotencyLevel = exports.fieldOptions_OptionTargetTypeToJSON = exports.fieldOptions_OptionTargetTypeFromJSON = exports.FieldOptions_OptionTargetType = exports.fieldOptions_OptionRetentionToJSON = exports.fieldOptions_OptionRetentionFromJSON = exports.FieldOptions_OptionRetention = exports.fieldOptions_JSTypeToJSON = exports.fieldOptions_JSTypeFromJSON = exports.FieldOptions_JSType = exports.fieldOptions_CTypeToJSON = exports.fieldOptions_CTypeFromJSON = exports.FieldOptions_CType = exports.fileOptions_OptimizeModeToJSON = exports.fileOptions_OptimizeModeFromJSON = exports.FileOptions_OptimizeMode = exports.editionToJSON = exports.editionFromJSON = exports.Edition = exports.protobufPackage = void 0;
exports.UninterpretedOption_NamePart = exports.UninterpretedOption = exports.MethodOptions = exports.ServiceOptions = exports.OneofOptions = exports.FieldOptions_FeatureSupport = exports.FieldOptions_EditionDefault = exports.FieldOptions = exports.MessageOptions = exports.FileOptions = exports.featureSet_JsonFormatToJSON = exports.featureSet_JsonFormatFromJSON = exports.FeatureSet_JsonFormat = exports.featureSet_MessageEncodingToJSON = exports.featureSet_MessageEncodingFromJSON = exports.FeatureSet_MessageEncoding = exports.featureSet_Utf8ValidationToJSON = exports.featureSet_Utf8ValidationFromJSON = exports.FeatureSet_Utf8Validation = exports.featureSet_RepeatedFieldEncodingToJSON = exports.featureSet_RepeatedFieldEncodingFromJSON = exports.FeatureSet_RepeatedFieldEncoding = exports.featureSet_EnumTypeToJSON = exports.featureSet_EnumTypeFromJSON = exports.FeatureSet_EnumType = exports.featureSet_FieldPresenceToJSON = exports.featureSet_FieldPresenceFromJSON = exports.FeatureSet_FieldPresence = exports.methodOptions_IdempotencyLevelToJSON = exports.methodOptions_IdempotencyLevelFromJSON = exports.MethodOptions_IdempotencyLevel = exports.fieldOptions_OptionTargetTypeToJSON = exports.fieldOptions_OptionTargetTypeFromJSON = exports.FieldOptions_OptionTargetType = exports.fieldOptions_OptionRetentionToJSON = exports.fieldOptions_OptionRetentionFromJSON = exports.FieldOptions_OptionRetention = exports.fieldOptions_JSTypeToJSON = exports.fieldOptions_JSTypeFromJSON = exports.FieldOptions_JSType = exports.fieldOptions_CTypeToJSON = exports.fieldOptions_CTypeFromJSON = exports.FieldOptions_CType = exports.fileOptions_OptimizeModeToJSON = exports.fileOptions_OptimizeModeFromJSON = exports.FileOptions_OptimizeMode = exports.editionToJSON = exports.editionFromJSON = exports.Edition = exports.protobufPackage = void 0;
exports.FeatureSet = void 0;
/* eslint-disable */

@@ -14,5 +12,7 @@ exports.protobufPackage = "google.protobuf";

Edition[Edition["EDITION_UNKNOWN"] = 0] = "EDITION_UNKNOWN";
Edition[Edition["EDITION_LEGACY"] = 900] = "EDITION_LEGACY";
Edition[Edition["EDITION_PROTO2"] = 998] = "EDITION_PROTO2";
Edition[Edition["EDITION_PROTO3"] = 999] = "EDITION_PROTO3";
Edition[Edition["EDITION_2023"] = 1000] = "EDITION_2023";
Edition[Edition["EDITION_2024"] = 1001] = "EDITION_2024";
Edition[Edition["EDITION_1_TEST_ONLY"] = 1] = "EDITION_1_TEST_ONLY";

@@ -23,2 +23,3 @@ Edition[Edition["EDITION_2_TEST_ONLY"] = 2] = "EDITION_2_TEST_ONLY";

Edition[Edition["EDITION_99999_TEST_ONLY"] = 99999] = "EDITION_99999_TEST_ONLY";
Edition[Edition["EDITION_MAX"] = 2147483647] = "EDITION_MAX";
})(Edition || (exports.Edition = Edition = {}));

@@ -30,2 +31,5 @@ function editionFromJSON(object) {

return Edition.EDITION_UNKNOWN;
case 900:
case "EDITION_LEGACY":
return Edition.EDITION_LEGACY;
case 998:

@@ -40,2 +44,5 @@ case "EDITION_PROTO2":

return Edition.EDITION_2023;
case 1001:
case "EDITION_2024":
return Edition.EDITION_2024;
case 1:

@@ -56,2 +63,5 @@ case "EDITION_1_TEST_ONLY":

return Edition.EDITION_99999_TEST_ONLY;
case 2147483647:
case "EDITION_MAX":
return Edition.EDITION_MAX;
default:

@@ -66,2 +76,4 @@ throw new globalThis.Error("Unrecognized enum value " + object + " for enum Edition");

return "EDITION_UNKNOWN";
case Edition.EDITION_LEGACY:
return "EDITION_LEGACY";
case Edition.EDITION_PROTO2:

@@ -73,2 +85,4 @@ return "EDITION_PROTO2";

return "EDITION_2023";
case Edition.EDITION_2024:
return "EDITION_2024";
case Edition.EDITION_1_TEST_ONLY:

@@ -84,2 +98,4 @@ return "EDITION_1_TEST_ONLY";

return "EDITION_99999_TEST_ONLY";
case Edition.EDITION_MAX:
return "EDITION_MAX";
default:

@@ -480,4 +496,4 @@ throw new globalThis.Error("Unrecognized enum value " + object + " for enum Edition");

FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["UTF8_VALIDATION_UNKNOWN"] = 0] = "UTF8_VALIDATION_UNKNOWN";
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 1] = "NONE";
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["VERIFY"] = 2] = "VERIFY";
FeatureSet_Utf8Validation[FeatureSet_Utf8Validation["NONE"] = 3] = "NONE";
})(FeatureSet_Utf8Validation || (exports.FeatureSet_Utf8Validation = FeatureSet_Utf8Validation = {}));

@@ -489,8 +505,8 @@ function featureSet_Utf8ValidationFromJSON(object) {

return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;
case 1:
case "NONE":
return FeatureSet_Utf8Validation.NONE;
case 2:
case "VERIFY":
return FeatureSet_Utf8Validation.VERIFY;
case 3:
case "NONE":
return FeatureSet_Utf8Validation.NONE;
default:

@@ -507,6 +523,6 @@ throw new globalThis.Error("Unrecognized enum value " +

return "UTF8_VALIDATION_UNKNOWN";
case FeatureSet_Utf8Validation.VERIFY:
return "VERIFY";
case FeatureSet_Utf8Validation.NONE:
return "NONE";
case FeatureSet_Utf8Validation.VERIFY:
return "VERIFY";
default:

@@ -626,5 +642,2 @@ throw new globalThis.Error("Unrecognized enum value " +

: false,
phpGenericServices: isSet(object.phpGenericServices)
? globalThis.Boolean(object.phpGenericServices)
: false,
deprecated: isSet(object.deprecated)

@@ -704,6 +717,2 @@ ? globalThis.Boolean(object.deprecated)

}
if (message.phpGenericServices !== undefined &&
message.phpGenericServices !== false) {
obj.phpGenericServices = message.phpGenericServices;
}
if (message.deprecated !== undefined && message.deprecated !== false) {

@@ -836,2 +845,5 @@ obj.deprecated = message.deprecated;

: undefined,
featureSupport: isSet(object.featureSupport)
? exports.FieldOptions_FeatureSupport.fromJSON(object.featureSupport)
: undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)

@@ -881,2 +893,5 @@ ? object.uninterpretedOption.map((e) => exports.UninterpretedOption.fromJSON(e))

}
if (message.featureSupport !== undefined) {
obj.featureSupport = exports.FieldOptions_FeatureSupport.toJSON(message.featureSupport);
}
if (message.uninterpretedOption?.length) {

@@ -906,2 +921,39 @@ obj.uninterpretedOption = message.uninterpretedOption.map((e) => exports.UninterpretedOption.toJSON(e));

};
exports.FieldOptions_FeatureSupport = {
fromJSON(object) {
return {
editionIntroduced: isSet(object.editionIntroduced)
? editionFromJSON(object.editionIntroduced)
: 0,
editionDeprecated: isSet(object.editionDeprecated)
? editionFromJSON(object.editionDeprecated)
: 0,
deprecationWarning: isSet(object.deprecationWarning)
? globalThis.String(object.deprecationWarning)
: "",
editionRemoved: isSet(object.editionRemoved)
? editionFromJSON(object.editionRemoved)
: 0,
};
},
toJSON(message) {
const obj = {};
if (message.editionIntroduced !== undefined &&
message.editionIntroduced !== 0) {
obj.editionIntroduced = editionToJSON(message.editionIntroduced);
}
if (message.editionDeprecated !== undefined &&
message.editionDeprecated !== 0) {
obj.editionDeprecated = editionToJSON(message.editionDeprecated);
}
if (message.deprecationWarning !== undefined &&
message.deprecationWarning !== "") {
obj.deprecationWarning = message.deprecationWarning;
}
if (message.editionRemoved !== undefined && message.editionRemoved !== 0) {
obj.editionRemoved = editionToJSON(message.editionRemoved);
}
return obj;
},
};
exports.OneofOptions = {

@@ -908,0 +960,0 @@ fromJSON(object) {

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/protobuf/duration.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/protobuf/empty.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/protobuf/struct.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/protobuf/timestamp.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/protobuf/wrappers.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: protoc-gen-openapiv2/options/annotations.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

"use strict";
// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: protoc-gen-openapiv2/options/openapiv2.proto

@@ -7,0 +4,0 @@ Object.defineProperty(exports, "__esModule", { value: true });

@@ -148,2 +148,5 @@ "use strict";

catch (error) {
response.body?.cancel().catch(() => {
// ignore failure to cancel
});
abortHandler.throwIfAborted();

@@ -150,0 +153,0 @@ if (error instanceof core_1.NotOK) {

{
"name": "@cerbos/http",
"version": "0.19.0",
"version": "0.19.1",
"description": "Client library for interacting with the Cerbos policy decision point service over HTTP from browser-based applications",

@@ -53,3 +53,3 @@ "repository": {

"dependencies": {
"@cerbos/core": "^0.18.0",
"@cerbos/core": "^0.18.1",
"qs": "^6.12.1"

@@ -56,0 +56,0 @@ },

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: buf/validate/expression.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: buf/validate/priv/private.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: buf/validate/validate.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/audit/v1/audit.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/effect/v1/effect.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/engine/v1/engine.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/policy/v1/policy.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/request/v1/request.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/response/v1/response.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/schema/v1/schema.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: cerbos/svc/v1/svc.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/api/annotations.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/api/field_behavior.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/api/http.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/protobuf/descriptor.proto

@@ -13,5 +10,7 @@

EDITION_UNKNOWN = 0,
EDITION_LEGACY = 900,
EDITION_PROTO2 = 998,
EDITION_PROTO3 = 999,
EDITION_2023 = 1000,
EDITION_2024 = 1001,
EDITION_1_TEST_ONLY = 1,

@@ -22,2 +21,3 @@ EDITION_2_TEST_ONLY = 2,

EDITION_99999_TEST_ONLY = 99999,
EDITION_MAX = 2147483647,
}

@@ -30,2 +30,5 @@

return Edition.EDITION_UNKNOWN;
case 900:
case "EDITION_LEGACY":
return Edition.EDITION_LEGACY;
case 998:

@@ -40,2 +43,5 @@ case "EDITION_PROTO2":

return Edition.EDITION_2023;
case 1001:
case "EDITION_2024":
return Edition.EDITION_2024;
case 1:

@@ -56,2 +62,5 @@ case "EDITION_1_TEST_ONLY":

return Edition.EDITION_99999_TEST_ONLY;
case 2147483647:
case "EDITION_MAX":
return Edition.EDITION_MAX;
default:

@@ -68,2 +77,4 @@ throw new globalThis.Error(

return "EDITION_UNKNOWN";
case Edition.EDITION_LEGACY:
return "EDITION_LEGACY";
case Edition.EDITION_PROTO2:

@@ -75,2 +86,4 @@ return "EDITION_PROTO2";

return "EDITION_2023";
case Edition.EDITION_2024:
return "EDITION_2024";
case Edition.EDITION_1_TEST_ONLY:

@@ -86,2 +99,4 @@ return "EDITION_1_TEST_ONLY";

return "EDITION_99999_TEST_ONLY";
case Edition.EDITION_MAX:
return "EDITION_MAX";
default:

@@ -105,3 +120,2 @@ throw new globalThis.Error(

pyGenericServices?: boolean | undefined;
phpGenericServices?: boolean | undefined;
deprecated?: boolean | undefined;

@@ -190,2 +204,3 @@ ccEnableArenas?: boolean | undefined;

features?: FeatureSet | undefined;
featureSupport?: FieldOptions_FeatureSupport | undefined;
uninterpretedOption: UninterpretedOption[];

@@ -413,2 +428,9 @@ }

export interface FieldOptions_FeatureSupport {
editionIntroduced?: Edition | undefined;
editionDeprecated?: Edition | undefined;
deprecationWarning?: string | undefined;
editionRemoved?: Edition | undefined;
}
export interface OneofOptions {

@@ -644,4 +666,4 @@ features?: FeatureSet | undefined;

UTF8_VALIDATION_UNKNOWN = 0,
NONE = 1,
VERIFY = 2,
NONE = 3,
}

@@ -656,8 +678,8 @@

return FeatureSet_Utf8Validation.UTF8_VALIDATION_UNKNOWN;
case 1:
case "NONE":
return FeatureSet_Utf8Validation.NONE;
case 2:
case "VERIFY":
return FeatureSet_Utf8Validation.VERIFY;
case 3:
case "NONE":
return FeatureSet_Utf8Validation.NONE;
default:

@@ -678,6 +700,6 @@ throw new globalThis.Error(

return "UTF8_VALIDATION_UNKNOWN";
case FeatureSet_Utf8Validation.VERIFY:
return "VERIFY";
case FeatureSet_Utf8Validation.NONE:
return "NONE";
case FeatureSet_Utf8Validation.VERIFY:
return "VERIFY";
default:

@@ -815,5 +837,2 @@ throw new globalThis.Error(

: false,
phpGenericServices: isSet(object.phpGenericServices)
? globalThis.Boolean(object.phpGenericServices)
: false,
deprecated: isSet(object.deprecated)

@@ -910,8 +929,2 @@ ? globalThis.Boolean(object.deprecated)

}
if (
message.phpGenericServices !== undefined &&
message.phpGenericServices !== false
) {
obj.phpGenericServices = message.phpGenericServices;
}
if (message.deprecated !== undefined && message.deprecated !== false) {

@@ -1073,2 +1086,5 @@ obj.deprecated = message.deprecated;

: undefined,
featureSupport: isSet(object.featureSupport)
? FieldOptions_FeatureSupport.fromJSON(object.featureSupport)
: undefined,
uninterpretedOption: globalThis.Array.isArray(object?.uninterpretedOption)

@@ -1127,2 +1143,7 @@ ? object.uninterpretedOption.map((e: any) =>

}
if (message.featureSupport !== undefined) {
obj.featureSupport = FieldOptions_FeatureSupport.toJSON(
message.featureSupport,
);
}
if (message.uninterpretedOption?.length) {

@@ -1157,2 +1178,47 @@ obj.uninterpretedOption = message.uninterpretedOption.map((e) =>

export const FieldOptions_FeatureSupport = {
fromJSON(object: any): FieldOptions_FeatureSupport {
return {
editionIntroduced: isSet(object.editionIntroduced)
? editionFromJSON(object.editionIntroduced)
: 0,
editionDeprecated: isSet(object.editionDeprecated)
? editionFromJSON(object.editionDeprecated)
: 0,
deprecationWarning: isSet(object.deprecationWarning)
? globalThis.String(object.deprecationWarning)
: "",
editionRemoved: isSet(object.editionRemoved)
? editionFromJSON(object.editionRemoved)
: 0,
};
},
toJSON(message: FieldOptions_FeatureSupport): unknown {
const obj: any = {};
if (
message.editionIntroduced !== undefined &&
message.editionIntroduced !== 0
) {
obj.editionIntroduced = editionToJSON(message.editionIntroduced);
}
if (
message.editionDeprecated !== undefined &&
message.editionDeprecated !== 0
) {
obj.editionDeprecated = editionToJSON(message.editionDeprecated);
}
if (
message.deprecationWarning !== undefined &&
message.deprecationWarning !== ""
) {
obj.deprecationWarning = message.deprecationWarning;
}
if (message.editionRemoved !== undefined && message.editionRemoved !== 0) {
obj.editionRemoved = editionToJSON(message.editionRemoved);
}
return obj;
},
};
export const OneofOptions = {

@@ -1159,0 +1225,0 @@ fromJSON(object: any): OneofOptions {

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/protobuf/duration.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/protobuf/empty.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/protobuf/struct.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/protobuf/timestamp.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: google/protobuf/wrappers.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: protoc-gen-openapiv2/options/annotations.proto

@@ -6,0 +3,0 @@

// Code generated by protoc-gen-ts_proto. DO NOT EDIT.
// versions:
// protoc-gen-ts_proto v1.174.0
// protoc unknown
// source: protoc-gen-openapiv2/options/openapiv2.proto

@@ -6,0 +3,0 @@

@@ -287,2 +287,6 @@ import type { ReadableStream } from "stream/web";

} catch (error) {
response.body?.cancel().catch(() => {
// ignore failure to cancel
});
abortHandler.throwIfAborted();

@@ -289,0 +293,0 @@

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc