Socket
Socket
Sign inDemoInstall

@zitadel/node

Package Overview
Dependencies
Maintainers
3
Versions
163
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@zitadel/node - npm Package Compare versions

Comparing version 1.1.108 to 1.1.109

10

dist/grpc/generated/zitadel/object.d.ts

@@ -23,2 +23,12 @@ import Long from "long";

export declare function listQueryMethodToJSON(object: ListQueryMethod): string;
export declare enum TimestampQueryMethod {
TIMESTAMP_QUERY_METHOD_EQUALS = 0,
TIMESTAMP_QUERY_METHOD_GREATER = 1,
TIMESTAMP_QUERY_METHOD_GREATER_OR_EQUALS = 2,
TIMESTAMP_QUERY_METHOD_LESS = 3,
TIMESTAMP_QUERY_METHOD_LESS_OR_EQUALS = 4,
UNRECOGNIZED = -1
}
export declare function timestampQueryMethodFromJSON(object: any): TimestampQueryMethod;
export declare function timestampQueryMethodToJSON(object: TimestampQueryMethod): string;
export interface ObjectDetails {

@@ -25,0 +35,0 @@ /**

53

dist/grpc/generated/zitadel/object.js

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.ListDetails = exports.ListQuery = exports.ObjectDetails = exports.listQueryMethodToJSON = exports.listQueryMethodFromJSON = exports.ListQueryMethod = exports.textQueryMethodToJSON = exports.textQueryMethodFromJSON = exports.TextQueryMethod = exports.protobufPackage = void 0;
exports.ListDetails = exports.ListQuery = exports.ObjectDetails = exports.timestampQueryMethodToJSON = exports.timestampQueryMethodFromJSON = exports.TimestampQueryMethod = exports.listQueryMethodToJSON = exports.listQueryMethodFromJSON = exports.ListQueryMethod = exports.textQueryMethodToJSON = exports.textQueryMethodFromJSON = exports.TextQueryMethod = exports.protobufPackage = void 0;
/* eslint-disable */

@@ -109,2 +109,53 @@ const long_1 = __importDefault(require("long"));

exports.listQueryMethodToJSON = listQueryMethodToJSON;
var TimestampQueryMethod;
(function (TimestampQueryMethod) {
TimestampQueryMethod[TimestampQueryMethod["TIMESTAMP_QUERY_METHOD_EQUALS"] = 0] = "TIMESTAMP_QUERY_METHOD_EQUALS";
TimestampQueryMethod[TimestampQueryMethod["TIMESTAMP_QUERY_METHOD_GREATER"] = 1] = "TIMESTAMP_QUERY_METHOD_GREATER";
TimestampQueryMethod[TimestampQueryMethod["TIMESTAMP_QUERY_METHOD_GREATER_OR_EQUALS"] = 2] = "TIMESTAMP_QUERY_METHOD_GREATER_OR_EQUALS";
TimestampQueryMethod[TimestampQueryMethod["TIMESTAMP_QUERY_METHOD_LESS"] = 3] = "TIMESTAMP_QUERY_METHOD_LESS";
TimestampQueryMethod[TimestampQueryMethod["TIMESTAMP_QUERY_METHOD_LESS_OR_EQUALS"] = 4] = "TIMESTAMP_QUERY_METHOD_LESS_OR_EQUALS";
TimestampQueryMethod[TimestampQueryMethod["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(TimestampQueryMethod || (exports.TimestampQueryMethod = TimestampQueryMethod = {}));
function timestampQueryMethodFromJSON(object) {
switch (object) {
case 0:
case "TIMESTAMP_QUERY_METHOD_EQUALS":
return TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_EQUALS;
case 1:
case "TIMESTAMP_QUERY_METHOD_GREATER":
return TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_GREATER;
case 2:
case "TIMESTAMP_QUERY_METHOD_GREATER_OR_EQUALS":
return TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_GREATER_OR_EQUALS;
case 3:
case "TIMESTAMP_QUERY_METHOD_LESS":
return TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_LESS;
case 4:
case "TIMESTAMP_QUERY_METHOD_LESS_OR_EQUALS":
return TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_LESS_OR_EQUALS;
case -1:
case "UNRECOGNIZED":
default:
return TimestampQueryMethod.UNRECOGNIZED;
}
}
exports.timestampQueryMethodFromJSON = timestampQueryMethodFromJSON;
function timestampQueryMethodToJSON(object) {
switch (object) {
case TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_EQUALS:
return "TIMESTAMP_QUERY_METHOD_EQUALS";
case TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_GREATER:
return "TIMESTAMP_QUERY_METHOD_GREATER";
case TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_GREATER_OR_EQUALS:
return "TIMESTAMP_QUERY_METHOD_GREATER_OR_EQUALS";
case TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_LESS:
return "TIMESTAMP_QUERY_METHOD_LESS";
case TimestampQueryMethod.TIMESTAMP_QUERY_METHOD_LESS_OR_EQUALS:
return "TIMESTAMP_QUERY_METHOD_LESS_OR_EQUALS";
case TimestampQueryMethod.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
exports.timestampQueryMethodToJSON = timestampQueryMethodToJSON;
function createBaseObjectDetails() {

@@ -111,0 +162,0 @@ return { sequence: long_1.default.UZERO, creationDate: undefined, changeDate: undefined, resourceOwner: "" };

@@ -5,5 +5,6 @@ /// <reference types="node" />

import _m0 from "protobufjs/minimal";
import { Duration } from "../../../google/protobuf/duration";
import { Details, ListDetails, ListQuery } from "../../object/v2beta/object";
import { Challenges, RequestChallenges } from "./challenge";
import { SearchQuery, Session, UserAgent } from "./session";
import { SearchQuery, Session, SessionFieldName, UserAgent } from "./session";
export declare const protobufPackage = "zitadel.session.v2beta";

@@ -13,2 +14,3 @@ export interface ListSessionsRequest {

queries: SearchQuery[];
sortingColumn: SessionFieldName;
}

@@ -33,2 +35,3 @@ export interface ListSessionsResponse {

userAgent: UserAgent | undefined;
lifetime?: Duration | undefined;
}

@@ -53,2 +56,3 @@ export interface CreateSessionRequest_MetadataEntry {

challenges: RequestChallenges | undefined;
lifetime?: Duration | undefined;
}

@@ -55,0 +59,0 @@ export interface SetSessionRequest_MetadataEntry {

/// <reference types="node" />
import Long from "long";
import _m0 from "protobufjs/minimal";
import { TimestampQueryMethod } from "../../object";
export declare const protobufPackage = "zitadel.session.v2beta";
export declare enum SessionFieldName {
SESSION_FIELD_NAME_UNSPECIFIED = 0,
SESSION_FIELD_NAME_CREATION_DATE = 1,
UNRECOGNIZED = -1
}
export declare function sessionFieldNameFromJSON(object: any): SessionFieldName;
export declare function sessionFieldNameToJSON(object: SessionFieldName): string;
export interface Session {

@@ -15,2 +23,3 @@ id: string;

userAgent: UserAgent | undefined;
expirationDate?: Date | undefined;
}

@@ -57,2 +66,4 @@ export interface Session_MetadataEntry {

idsQuery?: IDsQuery | undefined;
userIdQuery?: UserIDQuery | undefined;
creationDateQuery?: CreationDateQuery | undefined;
}

@@ -62,2 +73,9 @@ export interface IDsQuery {

}
export interface UserIDQuery {
id: string;
}
export interface CreationDateQuery {
creationDate: Date | undefined;
method: TimestampQueryMethod;
}
export interface UserAgent {

@@ -172,2 +190,18 @@ fingerprintId?: string | undefined;

};
export declare const UserIDQuery: {
encode(message: UserIDQuery, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): UserIDQuery;
fromJSON(object: any): UserIDQuery;
toJSON(message: UserIDQuery): unknown;
create(base?: DeepPartial<UserIDQuery>): UserIDQuery;
fromPartial(object: DeepPartial<UserIDQuery>): UserIDQuery;
};
export declare const CreationDateQuery: {
encode(message: CreationDateQuery, writer?: _m0.Writer): _m0.Writer;
decode(input: _m0.Reader | Uint8Array, length?: number): CreationDateQuery;
fromJSON(object: any): CreationDateQuery;
toJSON(message: CreationDateQuery): unknown;
create(base?: DeepPartial<CreationDateQuery>): CreationDateQuery;
fromPartial(object: DeepPartial<CreationDateQuery>): CreationDateQuery;
};
export declare const UserAgent: {

@@ -174,0 +208,0 @@ encode(message: UserAgent, writer?: _m0.Writer): _m0.Writer;

@@ -6,3 +6,3 @@ "use strict";

Object.defineProperty(exports, "__esModule", { value: true });
exports.UserAgent_HeaderEntry = exports.UserAgent_HeaderValues = exports.UserAgent = exports.IDsQuery = exports.SearchQuery = exports.OTPFactor = exports.TOTPFactor = exports.WebAuthNFactor = exports.IntentFactor = exports.PasswordFactor = exports.UserFactor = exports.Factors = exports.Session_MetadataEntry = exports.Session = exports.protobufPackage = void 0;
exports.UserAgent_HeaderEntry = exports.UserAgent_HeaderValues = exports.UserAgent = exports.CreationDateQuery = exports.UserIDQuery = exports.IDsQuery = exports.SearchQuery = exports.OTPFactor = exports.TOTPFactor = exports.WebAuthNFactor = exports.IntentFactor = exports.PasswordFactor = exports.UserFactor = exports.Factors = exports.Session_MetadataEntry = exports.Session = exports.sessionFieldNameToJSON = exports.sessionFieldNameFromJSON = exports.SessionFieldName = exports.protobufPackage = void 0;
/* eslint-disable */

@@ -12,3 +12,37 @@ const long_1 = __importDefault(require("long"));

const timestamp_1 = require("../../../google/protobuf/timestamp");
const object_1 = require("../../object");
exports.protobufPackage = "zitadel.session.v2beta";
var SessionFieldName;
(function (SessionFieldName) {
SessionFieldName[SessionFieldName["SESSION_FIELD_NAME_UNSPECIFIED"] = 0] = "SESSION_FIELD_NAME_UNSPECIFIED";
SessionFieldName[SessionFieldName["SESSION_FIELD_NAME_CREATION_DATE"] = 1] = "SESSION_FIELD_NAME_CREATION_DATE";
SessionFieldName[SessionFieldName["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
})(SessionFieldName || (exports.SessionFieldName = SessionFieldName = {}));
function sessionFieldNameFromJSON(object) {
switch (object) {
case 0:
case "SESSION_FIELD_NAME_UNSPECIFIED":
return SessionFieldName.SESSION_FIELD_NAME_UNSPECIFIED;
case 1:
case "SESSION_FIELD_NAME_CREATION_DATE":
return SessionFieldName.SESSION_FIELD_NAME_CREATION_DATE;
case -1:
case "UNRECOGNIZED":
default:
return SessionFieldName.UNRECOGNIZED;
}
}
exports.sessionFieldNameFromJSON = sessionFieldNameFromJSON;
function sessionFieldNameToJSON(object) {
switch (object) {
case SessionFieldName.SESSION_FIELD_NAME_UNSPECIFIED:
return "SESSION_FIELD_NAME_UNSPECIFIED";
case SessionFieldName.SESSION_FIELD_NAME_CREATION_DATE:
return "SESSION_FIELD_NAME_CREATION_DATE";
case SessionFieldName.UNRECOGNIZED:
default:
return "UNRECOGNIZED";
}
}
exports.sessionFieldNameToJSON = sessionFieldNameToJSON;
function createBaseSession() {

@@ -23,2 +57,3 @@ return {

userAgent: undefined,
expirationDate: undefined,
};

@@ -49,2 +84,5 @@ }

}
if (message.expirationDate !== undefined) {
timestamp_1.Timestamp.encode(toTimestamp(message.expirationDate), writer.uint32(66).fork()).ldelim();
}
return writer;

@@ -104,2 +142,8 @@ },

continue;
case 8:
if (tag !== 66) {
break;
}
message.expirationDate = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
continue;
}

@@ -127,2 +171,3 @@ if ((tag & 7) === 4 || tag === 0) {

userAgent: isSet(object.userAgent) ? exports.UserAgent.fromJSON(object.userAgent) : undefined,
expirationDate: isSet(object.expirationDate) ? fromJsonTimestamp(object.expirationDate) : undefined,
};

@@ -145,2 +190,3 @@ },

(obj.userAgent = message.userAgent ? exports.UserAgent.toJSON(message.userAgent) : undefined);
message.expirationDate !== undefined && (obj.expirationDate = message.expirationDate.toISOString());
return obj;

@@ -171,2 +217,3 @@ },

: undefined;
message.expirationDate = object.expirationDate ?? undefined;
return message;

@@ -750,3 +797,3 @@ },

function createBaseSearchQuery() {
return { idsQuery: undefined };
return { idsQuery: undefined, userIdQuery: undefined, creationDateQuery: undefined };
}

@@ -758,2 +805,8 @@ exports.SearchQuery = {

}
if (message.userIdQuery !== undefined) {
exports.UserIDQuery.encode(message.userIdQuery, writer.uint32(18).fork()).ldelim();
}
if (message.creationDateQuery !== undefined) {
exports.CreationDateQuery.encode(message.creationDateQuery, writer.uint32(26).fork()).ldelim();
}
return writer;

@@ -774,2 +827,14 @@ },

continue;
case 2:
if (tag !== 18) {
break;
}
message.userIdQuery = exports.UserIDQuery.decode(reader, reader.uint32());
continue;
case 3:
if (tag !== 26) {
break;
}
message.creationDateQuery = exports.CreationDateQuery.decode(reader, reader.uint32());
continue;
}

@@ -784,3 +849,9 @@ if ((tag & 7) === 4 || tag === 0) {

fromJSON(object) {
return { idsQuery: isSet(object.idsQuery) ? exports.IDsQuery.fromJSON(object.idsQuery) : undefined };
return {
idsQuery: isSet(object.idsQuery) ? exports.IDsQuery.fromJSON(object.idsQuery) : undefined,
userIdQuery: isSet(object.userIdQuery) ? exports.UserIDQuery.fromJSON(object.userIdQuery) : undefined,
creationDateQuery: isSet(object.creationDateQuery)
? exports.CreationDateQuery.fromJSON(object.creationDateQuery)
: undefined,
};
},

@@ -790,2 +861,7 @@ toJSON(message) {

message.idsQuery !== undefined && (obj.idsQuery = message.idsQuery ? exports.IDsQuery.toJSON(message.idsQuery) : undefined);
message.userIdQuery !== undefined &&
(obj.userIdQuery = message.userIdQuery ? exports.UserIDQuery.toJSON(message.userIdQuery) : undefined);
message.creationDateQuery !== undefined && (obj.creationDateQuery = message.creationDateQuery
? exports.CreationDateQuery.toJSON(message.creationDateQuery)
: undefined);
return obj;

@@ -801,2 +877,8 @@ },

: undefined;
message.userIdQuery = (object.userIdQuery !== undefined && object.userIdQuery !== null)
? exports.UserIDQuery.fromPartial(object.userIdQuery)
: undefined;
message.creationDateQuery = (object.creationDateQuery !== undefined && object.creationDateQuery !== null)
? exports.CreationDateQuery.fromPartial(object.creationDateQuery)
: undefined;
return message;

@@ -858,2 +940,112 @@ },

};
function createBaseUserIDQuery() {
return { id: "" };
}
exports.UserIDQuery = {
encode(message, writer = minimal_1.default.Writer.create()) {
if (message.id !== "") {
writer.uint32(10).string(message.id);
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseUserIDQuery();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.id = reader.string();
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return { id: isSet(object.id) ? String(object.id) : "" };
},
toJSON(message) {
const obj = {};
message.id !== undefined && (obj.id = message.id);
return obj;
},
create(base) {
return exports.UserIDQuery.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseUserIDQuery();
message.id = object.id ?? "";
return message;
},
};
function createBaseCreationDateQuery() {
return { creationDate: undefined, method: 0 };
}
exports.CreationDateQuery = {
encode(message, writer = minimal_1.default.Writer.create()) {
if (message.creationDate !== undefined) {
timestamp_1.Timestamp.encode(toTimestamp(message.creationDate), writer.uint32(10).fork()).ldelim();
}
if (message.method !== 0) {
writer.uint32(16).int32(message.method);
}
return writer;
},
decode(input, length) {
const reader = input instanceof minimal_1.default.Reader ? input : minimal_1.default.Reader.create(input);
let end = length === undefined ? reader.len : reader.pos + length;
const message = createBaseCreationDateQuery();
while (reader.pos < end) {
const tag = reader.uint32();
switch (tag >>> 3) {
case 1:
if (tag !== 10) {
break;
}
message.creationDate = fromTimestamp(timestamp_1.Timestamp.decode(reader, reader.uint32()));
continue;
case 2:
if (tag !== 16) {
break;
}
message.method = reader.int32();
continue;
}
if ((tag & 7) === 4 || tag === 0) {
break;
}
reader.skipType(tag & 7);
}
return message;
},
fromJSON(object) {
return {
creationDate: isSet(object.creationDate) ? fromJsonTimestamp(object.creationDate) : undefined,
method: isSet(object.method) ? (0, object_1.timestampQueryMethodFromJSON)(object.method) : 0,
};
},
toJSON(message) {
const obj = {};
message.creationDate !== undefined && (obj.creationDate = message.creationDate.toISOString());
message.method !== undefined && (obj.method = (0, object_1.timestampQueryMethodToJSON)(message.method));
return obj;
},
create(base) {
return exports.CreationDateQuery.fromPartial(base ?? {});
},
fromPartial(object) {
const message = createBaseCreationDateQuery();
message.creationDate = object.creationDate ?? undefined;
message.method = object.method ?? 0;
return message;
},
};
function createBaseUserAgent() {

@@ -860,0 +1052,0 @@ return { fingerprintId: undefined, ip: undefined, description: undefined, header: {} };

6

package.json
{
"name": "@zitadel/node",
"version": "1.1.108",
"version": "1.1.109",
"description": "Library for API access to ZITADEL. Provides compiled gRPC service clients and helpers for applications and service accounts.",

@@ -37,3 +37,3 @@ "type": "commonjs",

"@bufbuild/buf": "^1.18.0-1",
"@types/node-rsa": "1.1.3",
"@types/node-rsa": "1.1.4",
"ava": "4.3.3",

@@ -49,3 +49,3 @@ "grpc-tools": "1.12.4",

"dependencies": {
"axios": "1.6.0",
"axios": "1.6.1",
"jose": "5.1.0",

@@ -52,0 +52,0 @@ "long": "5.2.3",

Sorry, the diff of this file is too big to display

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