UNPKG

@ragnaraven/zitadel-node-dual

Version:

Library for API access to ZITADEL with modern ES import syntax. Works everywhere - NestJS, Node.js, any TypeScript environment. No more require()!

739 lines 25.2 kB
"use strict"; var __create = Object.create; var __defProp = Object.defineProperty; var __getOwnPropDesc = Object.getOwnPropertyDescriptor; var __getOwnPropNames = Object.getOwnPropertyNames; var __getProtoOf = Object.getPrototypeOf; var __hasOwnProp = Object.prototype.hasOwnProperty; var __export = (target, all) => { for (var name in all) __defProp(target, name, { get: all[name], enumerable: true }); }; var __copyProps = (to, from, except, desc) => { if (from && typeof from === "object" || typeof from === "function") { for (let key of __getOwnPropNames(from)) if (!__hasOwnProp.call(to, key) && key !== except) __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); } return to; }; var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( // If the importer is in node compatibility mode or this is not an ESM // file that has been converted to a CommonJS file using a Babel- // compatible transform (i.e. "__esModule" has not been set), then set // "default" to the CommonJS "module.exports" for node compatibility. isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod )); var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); var app_exports = {}; __export(app_exports, { AppSorting: () => AppSorting, AppState: () => AppState, Application: () => Application, ApplicationKey: () => ApplicationKey, ApplicationKeysSorting: () => ApplicationKeysSorting, ApplicationNameQuery: () => ApplicationNameQuery, ApplicationSearchFilter: () => ApplicationSearchFilter, appSortingFromJSON: () => appSortingFromJSON, appSortingToJSON: () => appSortingToJSON, appStateFromJSON: () => appStateFromJSON, appStateToJSON: () => appStateToJSON, applicationKeysSortingFromJSON: () => applicationKeysSortingFromJSON, applicationKeysSortingToJSON: () => applicationKeysSortingToJSON, protobufPackage: () => protobufPackage }); module.exports = __toCommonJS(app_exports); var import_wire = require("@bufbuild/protobuf/wire"); var import_long = __toESM(require("long")); var import_timestamp = require("../../../google/protobuf/timestamp.js"); var import_filter = require("../../filter/v2/filter.js"); var import_api = require("./api.js"); var import_oidc = require("./oidc.js"); var import_saml = require("./saml.js"); const protobufPackage = "zitadel.app.v2beta"; var AppState = /* @__PURE__ */ ((AppState2) => { AppState2[AppState2["APP_STATE_UNSPECIFIED"] = 0] = "APP_STATE_UNSPECIFIED"; AppState2[AppState2["APP_STATE_ACTIVE"] = 1] = "APP_STATE_ACTIVE"; AppState2[AppState2["APP_STATE_INACTIVE"] = 2] = "APP_STATE_INACTIVE"; AppState2[AppState2["APP_STATE_REMOVED"] = 3] = "APP_STATE_REMOVED"; AppState2[AppState2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; return AppState2; })(AppState || {}); function appStateFromJSON(object) { switch (object) { case 0: case "APP_STATE_UNSPECIFIED": return 0 /* APP_STATE_UNSPECIFIED */; case 1: case "APP_STATE_ACTIVE": return 1 /* APP_STATE_ACTIVE */; case 2: case "APP_STATE_INACTIVE": return 2 /* APP_STATE_INACTIVE */; case 3: case "APP_STATE_REMOVED": return 3 /* APP_STATE_REMOVED */; case -1: case "UNRECOGNIZED": default: return -1 /* UNRECOGNIZED */; } } function appStateToJSON(object) { switch (object) { case 0 /* APP_STATE_UNSPECIFIED */: return "APP_STATE_UNSPECIFIED"; case 1 /* APP_STATE_ACTIVE */: return "APP_STATE_ACTIVE"; case 2 /* APP_STATE_INACTIVE */: return "APP_STATE_INACTIVE"; case 3 /* APP_STATE_REMOVED */: return "APP_STATE_REMOVED"; case -1 /* UNRECOGNIZED */: default: return "UNRECOGNIZED"; } } var AppSorting = /* @__PURE__ */ ((AppSorting2) => { AppSorting2[AppSorting2["APP_SORT_BY_ID"] = 0] = "APP_SORT_BY_ID"; AppSorting2[AppSorting2["APP_SORT_BY_NAME"] = 1] = "APP_SORT_BY_NAME"; AppSorting2[AppSorting2["APP_SORT_BY_STATE"] = 2] = "APP_SORT_BY_STATE"; AppSorting2[AppSorting2["APP_SORT_BY_CREATION_DATE"] = 3] = "APP_SORT_BY_CREATION_DATE"; AppSorting2[AppSorting2["APP_SORT_BY_CHANGE_DATE"] = 4] = "APP_SORT_BY_CHANGE_DATE"; AppSorting2[AppSorting2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; return AppSorting2; })(AppSorting || {}); function appSortingFromJSON(object) { switch (object) { case 0: case "APP_SORT_BY_ID": return 0 /* APP_SORT_BY_ID */; case 1: case "APP_SORT_BY_NAME": return 1 /* APP_SORT_BY_NAME */; case 2: case "APP_SORT_BY_STATE": return 2 /* APP_SORT_BY_STATE */; case 3: case "APP_SORT_BY_CREATION_DATE": return 3 /* APP_SORT_BY_CREATION_DATE */; case 4: case "APP_SORT_BY_CHANGE_DATE": return 4 /* APP_SORT_BY_CHANGE_DATE */; case -1: case "UNRECOGNIZED": default: return -1 /* UNRECOGNIZED */; } } function appSortingToJSON(object) { switch (object) { case 0 /* APP_SORT_BY_ID */: return "APP_SORT_BY_ID"; case 1 /* APP_SORT_BY_NAME */: return "APP_SORT_BY_NAME"; case 2 /* APP_SORT_BY_STATE */: return "APP_SORT_BY_STATE"; case 3 /* APP_SORT_BY_CREATION_DATE */: return "APP_SORT_BY_CREATION_DATE"; case 4 /* APP_SORT_BY_CHANGE_DATE */: return "APP_SORT_BY_CHANGE_DATE"; case -1 /* UNRECOGNIZED */: default: return "UNRECOGNIZED"; } } var ApplicationKeysSorting = /* @__PURE__ */ ((ApplicationKeysSorting2) => { ApplicationKeysSorting2[ApplicationKeysSorting2["APPLICATION_KEYS_SORT_BY_ID"] = 0] = "APPLICATION_KEYS_SORT_BY_ID"; ApplicationKeysSorting2[ApplicationKeysSorting2["APPLICATION_KEYS_SORT_BY_PROJECT_ID"] = 1] = "APPLICATION_KEYS_SORT_BY_PROJECT_ID"; ApplicationKeysSorting2[ApplicationKeysSorting2["APPLICATION_KEYS_SORT_BY_APPLICATION_ID"] = 2] = "APPLICATION_KEYS_SORT_BY_APPLICATION_ID"; ApplicationKeysSorting2[ApplicationKeysSorting2["APPLICATION_KEYS_SORT_BY_CREATION_DATE"] = 3] = "APPLICATION_KEYS_SORT_BY_CREATION_DATE"; ApplicationKeysSorting2[ApplicationKeysSorting2["APPLICATION_KEYS_SORT_BY_ORGANIZATION_ID"] = 4] = "APPLICATION_KEYS_SORT_BY_ORGANIZATION_ID"; ApplicationKeysSorting2[ApplicationKeysSorting2["APPLICATION_KEYS_SORT_BY_EXPIRATION"] = 5] = "APPLICATION_KEYS_SORT_BY_EXPIRATION"; ApplicationKeysSorting2[ApplicationKeysSorting2["APPLICATION_KEYS_SORT_BY_TYPE"] = 6] = "APPLICATION_KEYS_SORT_BY_TYPE"; ApplicationKeysSorting2[ApplicationKeysSorting2["UNRECOGNIZED"] = -1] = "UNRECOGNIZED"; return ApplicationKeysSorting2; })(ApplicationKeysSorting || {}); function applicationKeysSortingFromJSON(object) { switch (object) { case 0: case "APPLICATION_KEYS_SORT_BY_ID": return 0 /* APPLICATION_KEYS_SORT_BY_ID */; case 1: case "APPLICATION_KEYS_SORT_BY_PROJECT_ID": return 1 /* APPLICATION_KEYS_SORT_BY_PROJECT_ID */; case 2: case "APPLICATION_KEYS_SORT_BY_APPLICATION_ID": return 2 /* APPLICATION_KEYS_SORT_BY_APPLICATION_ID */; case 3: case "APPLICATION_KEYS_SORT_BY_CREATION_DATE": return 3 /* APPLICATION_KEYS_SORT_BY_CREATION_DATE */; case 4: case "APPLICATION_KEYS_SORT_BY_ORGANIZATION_ID": return 4 /* APPLICATION_KEYS_SORT_BY_ORGANIZATION_ID */; case 5: case "APPLICATION_KEYS_SORT_BY_EXPIRATION": return 5 /* APPLICATION_KEYS_SORT_BY_EXPIRATION */; case 6: case "APPLICATION_KEYS_SORT_BY_TYPE": return 6 /* APPLICATION_KEYS_SORT_BY_TYPE */; case -1: case "UNRECOGNIZED": default: return -1 /* UNRECOGNIZED */; } } function applicationKeysSortingToJSON(object) { switch (object) { case 0 /* APPLICATION_KEYS_SORT_BY_ID */: return "APPLICATION_KEYS_SORT_BY_ID"; case 1 /* APPLICATION_KEYS_SORT_BY_PROJECT_ID */: return "APPLICATION_KEYS_SORT_BY_PROJECT_ID"; case 2 /* APPLICATION_KEYS_SORT_BY_APPLICATION_ID */: return "APPLICATION_KEYS_SORT_BY_APPLICATION_ID"; case 3 /* APPLICATION_KEYS_SORT_BY_CREATION_DATE */: return "APPLICATION_KEYS_SORT_BY_CREATION_DATE"; case 4 /* APPLICATION_KEYS_SORT_BY_ORGANIZATION_ID */: return "APPLICATION_KEYS_SORT_BY_ORGANIZATION_ID"; case 5 /* APPLICATION_KEYS_SORT_BY_EXPIRATION */: return "APPLICATION_KEYS_SORT_BY_EXPIRATION"; case 6 /* APPLICATION_KEYS_SORT_BY_TYPE */: return "APPLICATION_KEYS_SORT_BY_TYPE"; case -1 /* UNRECOGNIZED */: default: return "UNRECOGNIZED"; } } function createBaseApplication() { return { id: "", creationDate: void 0, changeDate: void 0, state: 0, name: "", oidcConfig: void 0, apiConfig: void 0, samlConfig: void 0 }; } const Application = { encode(message, writer = new import_wire.BinaryWriter()) { if (message.id !== "") { writer.uint32(10).string(message.id); } if (message.creationDate !== void 0) { import_timestamp.Timestamp.encode(toTimestamp(message.creationDate), writer.uint32(18).fork()).join(); } if (message.changeDate !== void 0) { import_timestamp.Timestamp.encode(toTimestamp(message.changeDate), writer.uint32(26).fork()).join(); } if (message.state !== 0) { writer.uint32(32).int32(message.state); } if (message.name !== "") { writer.uint32(42).string(message.name); } if (message.oidcConfig !== void 0) { import_oidc.OIDCConfig.encode(message.oidcConfig, writer.uint32(50).fork()).join(); } if (message.apiConfig !== void 0) { import_api.APIConfig.encode(message.apiConfig, writer.uint32(58).fork()).join(); } if (message.samlConfig !== void 0) { import_saml.SAMLConfig.encode(message.samlConfig, writer.uint32(66).fork()).join(); } return writer; }, decode(input, length) { const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input); const end = length === void 0 ? reader.len : reader.pos + length; const message = createBaseApplication(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: { if (tag !== 10) { break; } message.id = reader.string(); continue; } case 2: { if (tag !== 18) { break; } message.creationDate = fromTimestamp(import_timestamp.Timestamp.decode(reader, reader.uint32())); continue; } case 3: { if (tag !== 26) { break; } message.changeDate = fromTimestamp(import_timestamp.Timestamp.decode(reader, reader.uint32())); continue; } case 4: { if (tag !== 32) { break; } message.state = reader.int32(); continue; } case 5: { if (tag !== 42) { break; } message.name = reader.string(); continue; } case 6: { if (tag !== 50) { break; } message.oidcConfig = import_oidc.OIDCConfig.decode(reader, reader.uint32()); continue; } case 7: { if (tag !== 58) { break; } message.apiConfig = import_api.APIConfig.decode(reader, reader.uint32()); continue; } case 8: { if (tag !== 66) { break; } message.samlConfig = import_saml.SAMLConfig.decode(reader, reader.uint32()); continue; } } if ((tag & 7) === 4 || tag === 0) { break; } reader.skip(tag & 7); } return message; }, fromJSON(object) { return { id: isSet(object.id) ? globalThis.String(object.id) : "", creationDate: isSet(object.creationDate) ? fromJsonTimestamp(object.creationDate) : void 0, changeDate: isSet(object.changeDate) ? fromJsonTimestamp(object.changeDate) : void 0, state: isSet(object.state) ? appStateFromJSON(object.state) : 0, name: isSet(object.name) ? globalThis.String(object.name) : "", oidcConfig: isSet(object.oidcConfig) ? import_oidc.OIDCConfig.fromJSON(object.oidcConfig) : void 0, apiConfig: isSet(object.apiConfig) ? import_api.APIConfig.fromJSON(object.apiConfig) : void 0, samlConfig: isSet(object.samlConfig) ? import_saml.SAMLConfig.fromJSON(object.samlConfig) : void 0 }; }, toJSON(message) { const obj = {}; if (message.id !== "") { obj.id = message.id; } if (message.creationDate !== void 0) { obj.creationDate = message.creationDate.toISOString(); } if (message.changeDate !== void 0) { obj.changeDate = message.changeDate.toISOString(); } if (message.state !== 0) { obj.state = appStateToJSON(message.state); } if (message.name !== "") { obj.name = message.name; } if (message.oidcConfig !== void 0) { obj.oidcConfig = import_oidc.OIDCConfig.toJSON(message.oidcConfig); } if (message.apiConfig !== void 0) { obj.apiConfig = import_api.APIConfig.toJSON(message.apiConfig); } if (message.samlConfig !== void 0) { obj.samlConfig = import_saml.SAMLConfig.toJSON(message.samlConfig); } return obj; }, create(base) { return Application.fromPartial(base ?? {}); }, fromPartial(object) { const message = createBaseApplication(); message.id = object.id ?? ""; message.creationDate = object.creationDate ?? void 0; message.changeDate = object.changeDate ?? void 0; message.state = object.state ?? 0; message.name = object.name ?? ""; message.oidcConfig = object.oidcConfig !== void 0 && object.oidcConfig !== null ? import_oidc.OIDCConfig.fromPartial(object.oidcConfig) : void 0; message.apiConfig = object.apiConfig !== void 0 && object.apiConfig !== null ? import_api.APIConfig.fromPartial(object.apiConfig) : void 0; message.samlConfig = object.samlConfig !== void 0 && object.samlConfig !== null ? import_saml.SAMLConfig.fromPartial(object.samlConfig) : void 0; return message; } }; function createBaseApplicationSearchFilter() { return { nameFilter: void 0, stateFilter: void 0, apiAppOnly: void 0, oidcAppOnly: void 0, samlAppOnly: void 0 }; } const ApplicationSearchFilter = { encode(message, writer = new import_wire.BinaryWriter()) { if (message.nameFilter !== void 0) { ApplicationNameQuery.encode(message.nameFilter, writer.uint32(10).fork()).join(); } if (message.stateFilter !== void 0) { writer.uint32(16).int32(message.stateFilter); } if (message.apiAppOnly !== void 0) { writer.uint32(24).bool(message.apiAppOnly); } if (message.oidcAppOnly !== void 0) { writer.uint32(32).bool(message.oidcAppOnly); } if (message.samlAppOnly !== void 0) { writer.uint32(40).bool(message.samlAppOnly); } return writer; }, decode(input, length) { const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input); const end = length === void 0 ? reader.len : reader.pos + length; const message = createBaseApplicationSearchFilter(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: { if (tag !== 10) { break; } message.nameFilter = ApplicationNameQuery.decode(reader, reader.uint32()); continue; } case 2: { if (tag !== 16) { break; } message.stateFilter = reader.int32(); continue; } case 3: { if (tag !== 24) { break; } message.apiAppOnly = reader.bool(); continue; } case 4: { if (tag !== 32) { break; } message.oidcAppOnly = reader.bool(); continue; } case 5: { if (tag !== 40) { break; } message.samlAppOnly = reader.bool(); continue; } } if ((tag & 7) === 4 || tag === 0) { break; } reader.skip(tag & 7); } return message; }, fromJSON(object) { return { nameFilter: isSet(object.nameFilter) ? ApplicationNameQuery.fromJSON(object.nameFilter) : void 0, stateFilter: isSet(object.stateFilter) ? appStateFromJSON(object.stateFilter) : void 0, apiAppOnly: isSet(object.apiAppOnly) ? globalThis.Boolean(object.apiAppOnly) : void 0, oidcAppOnly: isSet(object.oidcAppOnly) ? globalThis.Boolean(object.oidcAppOnly) : void 0, samlAppOnly: isSet(object.samlAppOnly) ? globalThis.Boolean(object.samlAppOnly) : void 0 }; }, toJSON(message) { const obj = {}; if (message.nameFilter !== void 0) { obj.nameFilter = ApplicationNameQuery.toJSON(message.nameFilter); } if (message.stateFilter !== void 0) { obj.stateFilter = appStateToJSON(message.stateFilter); } if (message.apiAppOnly !== void 0) { obj.apiAppOnly = message.apiAppOnly; } if (message.oidcAppOnly !== void 0) { obj.oidcAppOnly = message.oidcAppOnly; } if (message.samlAppOnly !== void 0) { obj.samlAppOnly = message.samlAppOnly; } return obj; }, create(base) { return ApplicationSearchFilter.fromPartial(base ?? {}); }, fromPartial(object) { const message = createBaseApplicationSearchFilter(); message.nameFilter = object.nameFilter !== void 0 && object.nameFilter !== null ? ApplicationNameQuery.fromPartial(object.nameFilter) : void 0; message.stateFilter = object.stateFilter ?? void 0; message.apiAppOnly = object.apiAppOnly ?? void 0; message.oidcAppOnly = object.oidcAppOnly ?? void 0; message.samlAppOnly = object.samlAppOnly ?? void 0; return message; } }; function createBaseApplicationNameQuery() { return { name: "", method: 0 }; } const ApplicationNameQuery = { encode(message, writer = new import_wire.BinaryWriter()) { if (message.name !== "") { writer.uint32(10).string(message.name); } if (message.method !== 0) { writer.uint32(16).int32(message.method); } return writer; }, decode(input, length) { const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input); const end = length === void 0 ? reader.len : reader.pos + length; const message = createBaseApplicationNameQuery(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: { if (tag !== 10) { break; } message.name = reader.string(); continue; } case 2: { if (tag !== 16) { break; } message.method = reader.int32(); continue; } } if ((tag & 7) === 4 || tag === 0) { break; } reader.skip(tag & 7); } return message; }, fromJSON(object) { return { name: isSet(object.name) ? globalThis.String(object.name) : "", method: isSet(object.method) ? (0, import_filter.textFilterMethodFromJSON)(object.method) : 0 }; }, toJSON(message) { const obj = {}; if (message.name !== "") { obj.name = message.name; } if (message.method !== 0) { obj.method = (0, import_filter.textFilterMethodToJSON)(message.method); } return obj; }, create(base) { return ApplicationNameQuery.fromPartial(base ?? {}); }, fromPartial(object) { const message = createBaseApplicationNameQuery(); message.name = object.name ?? ""; message.method = object.method ?? 0; return message; } }; function createBaseApplicationKey() { return { id: "", applicationId: "", projectId: "", creationDate: void 0, organizationId: "", expirationDate: void 0 }; } const ApplicationKey = { encode(message, writer = new import_wire.BinaryWriter()) { if (message.id !== "") { writer.uint32(10).string(message.id); } if (message.applicationId !== "") { writer.uint32(18).string(message.applicationId); } if (message.projectId !== "") { writer.uint32(26).string(message.projectId); } if (message.creationDate !== void 0) { import_timestamp.Timestamp.encode(toTimestamp(message.creationDate), writer.uint32(34).fork()).join(); } if (message.organizationId !== "") { writer.uint32(42).string(message.organizationId); } if (message.expirationDate !== void 0) { import_timestamp.Timestamp.encode(toTimestamp(message.expirationDate), writer.uint32(50).fork()).join(); } return writer; }, decode(input, length) { const reader = input instanceof import_wire.BinaryReader ? input : new import_wire.BinaryReader(input); const end = length === void 0 ? reader.len : reader.pos + length; const message = createBaseApplicationKey(); while (reader.pos < end) { const tag = reader.uint32(); switch (tag >>> 3) { case 1: { if (tag !== 10) { break; } message.id = reader.string(); continue; } case 2: { if (tag !== 18) { break; } message.applicationId = reader.string(); continue; } case 3: { if (tag !== 26) { break; } message.projectId = reader.string(); continue; } case 4: { if (tag !== 34) { break; } message.creationDate = fromTimestamp(import_timestamp.Timestamp.decode(reader, reader.uint32())); continue; } case 5: { if (tag !== 42) { break; } message.organizationId = reader.string(); continue; } case 6: { if (tag !== 50) { break; } message.expirationDate = fromTimestamp(import_timestamp.Timestamp.decode(reader, reader.uint32())); continue; } } if ((tag & 7) === 4 || tag === 0) { break; } reader.skip(tag & 7); } return message; }, fromJSON(object) { return { id: isSet(object.id) ? globalThis.String(object.id) : "", applicationId: isSet(object.applicationId) ? globalThis.String(object.applicationId) : "", projectId: isSet(object.projectId) ? globalThis.String(object.projectId) : "", creationDate: isSet(object.creationDate) ? fromJsonTimestamp(object.creationDate) : void 0, organizationId: isSet(object.organizationId) ? globalThis.String(object.organizationId) : "", expirationDate: isSet(object.expirationDate) ? fromJsonTimestamp(object.expirationDate) : void 0 }; }, toJSON(message) { const obj = {}; if (message.id !== "") { obj.id = message.id; } if (message.applicationId !== "") { obj.applicationId = message.applicationId; } if (message.projectId !== "") { obj.projectId = message.projectId; } if (message.creationDate !== void 0) { obj.creationDate = message.creationDate.toISOString(); } if (message.organizationId !== "") { obj.organizationId = message.organizationId; } if (message.expirationDate !== void 0) { obj.expirationDate = message.expirationDate.toISOString(); } return obj; }, create(base) { return ApplicationKey.fromPartial(base ?? {}); }, fromPartial(object) { const message = createBaseApplicationKey(); message.id = object.id ?? ""; message.applicationId = object.applicationId ?? ""; message.projectId = object.projectId ?? ""; message.creationDate = object.creationDate ?? void 0; message.organizationId = object.organizationId ?? ""; message.expirationDate = object.expirationDate ?? void 0; return message; } }; function toTimestamp(date) { const seconds = numberToLong(Math.trunc(date.getTime() / 1e3)); const nanos = date.getTime() % 1e3 * 1e6; return { seconds, nanos }; } function fromTimestamp(t) { let millis = (t.seconds.toNumber() || 0) * 1e3; millis += (t.nanos || 0) / 1e6; return new globalThis.Date(millis); } function fromJsonTimestamp(o) { if (o instanceof globalThis.Date) { return o; } else if (typeof o === "string") { return new globalThis.Date(o); } else { return fromTimestamp(import_timestamp.Timestamp.fromJSON(o)); } } function numberToLong(number) { return import_long.default.fromNumber(number); } function isSet(value) { return value !== null && value !== void 0; } // Annotate the CommonJS export names for ESM import in node: 0 && (module.exports = { AppSorting, AppState, Application, ApplicationKey, ApplicationKeysSorting, ApplicationNameQuery, ApplicationSearchFilter, appSortingFromJSON, appSortingToJSON, appStateFromJSON, appStateToJSON, applicationKeysSortingFromJSON, applicationKeysSortingToJSON, protobufPackage }); //# sourceMappingURL=app.js.map