@kurrent/kurrentdb-client 1.1.0 → 1.2.0-alpha.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/dist/index.d.ts +1 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -1
- package/dist/schemaRegistry/checkSchemaCompatibility.d.ts +12 -0
- package/dist/schemaRegistry/checkSchemaCompatibility.js +60 -0
- package/dist/schemaRegistry/checkSchemaCompatibility.js.map +1 -0
- package/dist/schemaRegistry/createSchema.d.ts +13 -0
- package/dist/schemaRegistry/createSchema.js +36 -0
- package/dist/schemaRegistry/createSchema.js.map +1 -0
- package/dist/schemaRegistry/deleteSchema.d.ts +11 -0
- package/dist/schemaRegistry/deleteSchema.js +23 -0
- package/dist/schemaRegistry/deleteSchema.js.map +1 -0
- package/dist/schemaRegistry/deleteSchemaVersions.d.ts +13 -0
- package/dist/schemaRegistry/deleteSchemaVersions.js +29 -0
- package/dist/schemaRegistry/deleteSchemaVersions.js.map +1 -0
- package/dist/schemaRegistry/getSchema.d.ts +12 -0
- package/dist/schemaRegistry/getSchema.js +28 -0
- package/dist/schemaRegistry/getSchema.js.map +1 -0
- package/dist/schemaRegistry/getSchemaVersion.d.ts +12 -0
- package/dist/schemaRegistry/getSchemaVersion.js +33 -0
- package/dist/schemaRegistry/getSchemaVersion.js.map +1 -0
- package/dist/schemaRegistry/getSchemaVersionById.d.ts +12 -0
- package/dist/schemaRegistry/getSchemaVersionById.js +28 -0
- package/dist/schemaRegistry/getSchemaVersionById.js.map +1 -0
- package/dist/schemaRegistry/index.d.ts +14 -0
- package/dist/schemaRegistry/index.js +35 -0
- package/dist/schemaRegistry/index.js.map +1 -0
- package/dist/schemaRegistry/listRegisteredSchemas.d.ts +11 -0
- package/dist/schemaRegistry/listRegisteredSchemas.js +41 -0
- package/dist/schemaRegistry/listRegisteredSchemas.js.map +1 -0
- package/dist/schemaRegistry/listSchemaVersions.d.ts +12 -0
- package/dist/schemaRegistry/listSchemaVersions.js +28 -0
- package/dist/schemaRegistry/listSchemaVersions.js.map +1 -0
- package/dist/schemaRegistry/listSchemas.d.ts +11 -0
- package/dist/schemaRegistry/listSchemas.js +35 -0
- package/dist/schemaRegistry/listSchemas.js.map +1 -0
- package/dist/schemaRegistry/lookupSchemaName.d.ts +12 -0
- package/dist/schemaRegistry/lookupSchemaName.js +23 -0
- package/dist/schemaRegistry/lookupSchemaName.js.map +1 -0
- package/dist/schemaRegistry/registerSchemaVersion.d.ts +13 -0
- package/dist/schemaRegistry/registerSchemaVersion.js +31 -0
- package/dist/schemaRegistry/registerSchemaVersion.js.map +1 -0
- package/dist/schemaRegistry/types.d.ts +347 -0
- package/dist/schemaRegistry/types.js +3 -0
- package/dist/schemaRegistry/types.js.map +1 -0
- package/dist/schemaRegistry/updateSchema.d.ts +11 -0
- package/dist/schemaRegistry/updateSchema.js +51 -0
- package/dist/schemaRegistry/updateSchema.js.map +1 -0
- package/dist/schemaRegistry/utils/index.d.ts +1 -0
- package/dist/schemaRegistry/utils/index.js +18 -0
- package/dist/schemaRegistry/utils/index.js.map +1 -0
- package/dist/schemaRegistry/utils/mappers.d.ts +24 -0
- package/dist/schemaRegistry/utils/mappers.js +198 -0
- package/dist/schemaRegistry/utils/mappers.js.map +1 -0
- package/generated/kurrentdb/protocols/v2/registry/errors_grpc_pb.js +1 -0
- package/generated/kurrentdb/protocols/v2/registry/errors_pb.d.ts +75 -0
- package/generated/kurrentdb/protocols/v2/registry/errors_pb.js +493 -0
- package/generated/kurrentdb/protocols/v2/registry/events_grpc_pb.js +1 -0
- package/generated/kurrentdb/protocols/v2/registry/events_pb.d.ts +255 -0
- package/generated/kurrentdb/protocols/v2/registry/events_pb.js +2057 -0
- package/generated/kurrentdb/protocols/v2/registry/groups_grpc_pb.js +1 -0
- package/generated/kurrentdb/protocols/v2/registry/groups_pb.d.ts +474 -0
- package/generated/kurrentdb/protocols/v2/registry/groups_pb.js +3593 -0
- package/generated/kurrentdb/protocols/v2/registry/schemas_grpc_pb.js +1 -0
- package/generated/kurrentdb/protocols/v2/registry/schemas_pb.d.ts +825 -0
- package/generated/kurrentdb/protocols/v2/registry/schemas_pb.js +6500 -0
- package/generated/kurrentdb/protocols/v2/registry/service_grpc_pb.d.ts +350 -0
- package/generated/kurrentdb/protocols/v2/registry/service_grpc_pb.js +654 -0
- package/generated/kurrentdb/protocols/v2/registry/service_pb.d.ts +10 -0
- package/generated/kurrentdb/protocols/v2/registry/service_pb.js +29 -0
- package/generated/kurrentdb/protocols/v2/registry/shared_grpc_pb.js +1 -0
- package/generated/kurrentdb/protocols/v2/registry/shared_pb.d.ts +26 -0
- package/generated/kurrentdb/protocols/v2/registry/shared_pb.js +51 -0
- package/generated/kurrentdb/protocols/v2/registry/validation_grpc_pb.js +1 -0
- package/generated/kurrentdb/protocols/v2/registry/validation_pb.d.ts +247 -0
- package/generated/kurrentdb/protocols/v2/registry/validation_pb.js +1789 -0
- package/package.json +1 -1
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
// source: kurrentdb/protocols/v2/registry/service.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
23
|
+
|
|
24
|
+
var kurrentdb_protocols_v2_registry_groups_pb = require('../../../../kurrentdb/protocols/v2/registry/groups_pb.js');
|
|
25
|
+
goog.object.extend(proto, kurrentdb_protocols_v2_registry_groups_pb);
|
|
26
|
+
var kurrentdb_protocols_v2_registry_schemas_pb = require('../../../../kurrentdb/protocols/v2/registry/schemas_pb.js');
|
|
27
|
+
goog.object.extend(proto, kurrentdb_protocols_v2_registry_schemas_pb);
|
|
28
|
+
var kurrentdb_protocols_v2_registry_validation_pb = require('../../../../kurrentdb/protocols/v2/registry/validation_pb.js');
|
|
29
|
+
goog.object.extend(proto, kurrentdb_protocols_v2_registry_validation_pb);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
// package: kurrentdb.protocol.registry.v2
|
|
2
|
+
// file: kurrentdb/protocols/v2/registry/shared.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
|
|
9
|
+
export enum SchemaDataFormat {
|
|
10
|
+
SCHEMA_DATA_FORMAT_UNSPECIFIED = 0,
|
|
11
|
+
SCHEMA_DATA_FORMAT_JSON = 1,
|
|
12
|
+
SCHEMA_DATA_FORMAT_PROTOBUF = 2,
|
|
13
|
+
SCHEMA_DATA_FORMAT_AVRO = 3,
|
|
14
|
+
SCHEMA_DATA_FORMAT_BYTES = 4,
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export enum CompatibilityMode {
|
|
18
|
+
COMPATIBILITY_MODE_UNSPECIFIED = 0,
|
|
19
|
+
COMPATIBILITY_MODE_BACKWARD = 1,
|
|
20
|
+
COMPATIBILITY_MODE_FORWARD = 2,
|
|
21
|
+
COMPATIBILITY_MODE_FULL = 3,
|
|
22
|
+
COMPATIBILITY_MODE_BACKWARD_ALL = 4,
|
|
23
|
+
COMPATIBILITY_MODE_FORWARD_ALL = 5,
|
|
24
|
+
COMPATIBILITY_MODE_FULL_ALL = 6,
|
|
25
|
+
COMPATIBILITY_MODE_NONE = 7,
|
|
26
|
+
}
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
// source: kurrentdb/protocols/v2/registry/shared.proto
|
|
2
|
+
/**
|
|
3
|
+
* @fileoverview
|
|
4
|
+
* @enhanceable
|
|
5
|
+
* @suppress {missingRequire} reports error on implicit type usages.
|
|
6
|
+
* @suppress {messageConventions} JS Compiler reports an error if a variable or
|
|
7
|
+
* field starts with 'MSG_' and isn't a translatable message.
|
|
8
|
+
* @public
|
|
9
|
+
*/
|
|
10
|
+
// GENERATED CODE -- DO NOT EDIT!
|
|
11
|
+
/* eslint-disable */
|
|
12
|
+
// @ts-nocheck
|
|
13
|
+
|
|
14
|
+
var jspb = require('google-protobuf');
|
|
15
|
+
var goog = jspb;
|
|
16
|
+
var global = (function() {
|
|
17
|
+
if (this) { return this; }
|
|
18
|
+
if (typeof window !== 'undefined') { return window; }
|
|
19
|
+
if (typeof global !== 'undefined') { return global; }
|
|
20
|
+
if (typeof self !== 'undefined') { return self; }
|
|
21
|
+
return Function('return this')();
|
|
22
|
+
}.call(null));
|
|
23
|
+
|
|
24
|
+
goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.CompatibilityMode', null, global);
|
|
25
|
+
goog.exportSymbol('proto.kurrentdb.protocol.registry.v2.SchemaDataFormat', null, global);
|
|
26
|
+
/**
|
|
27
|
+
* @enum {number}
|
|
28
|
+
*/
|
|
29
|
+
proto.kurrentdb.protocol.registry.v2.SchemaDataFormat = {
|
|
30
|
+
SCHEMA_DATA_FORMAT_UNSPECIFIED: 0,
|
|
31
|
+
SCHEMA_DATA_FORMAT_JSON: 1,
|
|
32
|
+
SCHEMA_DATA_FORMAT_PROTOBUF: 2,
|
|
33
|
+
SCHEMA_DATA_FORMAT_AVRO: 3,
|
|
34
|
+
SCHEMA_DATA_FORMAT_BYTES: 4
|
|
35
|
+
};
|
|
36
|
+
|
|
37
|
+
/**
|
|
38
|
+
* @enum {number}
|
|
39
|
+
*/
|
|
40
|
+
proto.kurrentdb.protocol.registry.v2.CompatibilityMode = {
|
|
41
|
+
COMPATIBILITY_MODE_UNSPECIFIED: 0,
|
|
42
|
+
COMPATIBILITY_MODE_BACKWARD: 1,
|
|
43
|
+
COMPATIBILITY_MODE_FORWARD: 2,
|
|
44
|
+
COMPATIBILITY_MODE_FULL: 3,
|
|
45
|
+
COMPATIBILITY_MODE_BACKWARD_ALL: 4,
|
|
46
|
+
COMPATIBILITY_MODE_FORWARD_ALL: 5,
|
|
47
|
+
COMPATIBILITY_MODE_FULL_ALL: 6,
|
|
48
|
+
COMPATIBILITY_MODE_NONE: 7
|
|
49
|
+
};
|
|
50
|
+
|
|
51
|
+
goog.object.extend(exports, proto.kurrentdb.protocol.registry.v2);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
// GENERATED CODE -- NO SERVICES IN PROTO
|
|
@@ -0,0 +1,247 @@
|
|
|
1
|
+
// package: kurrentdb.protocol.registry.v2
|
|
2
|
+
// file: kurrentdb/protocols/v2/registry/validation.proto
|
|
3
|
+
|
|
4
|
+
/* tslint:disable */
|
|
5
|
+
/* eslint-disable */
|
|
6
|
+
|
|
7
|
+
import * as jspb from "google-protobuf";
|
|
8
|
+
import * as kurrentdb_protocols_v2_registry_shared_pb from "../../../../kurrentdb/protocols/v2/registry/shared_pb";
|
|
9
|
+
|
|
10
|
+
export class SchemaCompatibilityError extends jspb.Message {
|
|
11
|
+
getKind(): SchemaCompatibilityErrorKind;
|
|
12
|
+
setKind(value: SchemaCompatibilityErrorKind): SchemaCompatibilityError;
|
|
13
|
+
getDetails(): string;
|
|
14
|
+
setDetails(value: string): SchemaCompatibilityError;
|
|
15
|
+
|
|
16
|
+
hasPropertyPath(): boolean;
|
|
17
|
+
clearPropertyPath(): void;
|
|
18
|
+
getPropertyPath(): string | undefined;
|
|
19
|
+
setPropertyPath(value: string): SchemaCompatibilityError;
|
|
20
|
+
|
|
21
|
+
hasOriginalType(): boolean;
|
|
22
|
+
clearOriginalType(): void;
|
|
23
|
+
getOriginalType(): string | undefined;
|
|
24
|
+
setOriginalType(value: string): SchemaCompatibilityError;
|
|
25
|
+
|
|
26
|
+
hasNewType(): boolean;
|
|
27
|
+
clearNewType(): void;
|
|
28
|
+
getNewType(): string | undefined;
|
|
29
|
+
setNewType(value: string): SchemaCompatibilityError;
|
|
30
|
+
|
|
31
|
+
serializeBinary(): Uint8Array;
|
|
32
|
+
toObject(includeInstance?: boolean): SchemaCompatibilityError.AsObject;
|
|
33
|
+
static toObject(includeInstance: boolean, msg: SchemaCompatibilityError): SchemaCompatibilityError.AsObject;
|
|
34
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
35
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
36
|
+
static serializeBinaryToWriter(message: SchemaCompatibilityError, writer: jspb.BinaryWriter): void;
|
|
37
|
+
static deserializeBinary(bytes: Uint8Array): SchemaCompatibilityError;
|
|
38
|
+
static deserializeBinaryFromReader(message: SchemaCompatibilityError, reader: jspb.BinaryReader): SchemaCompatibilityError;
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export namespace SchemaCompatibilityError {
|
|
42
|
+
export type AsObject = {
|
|
43
|
+
kind: SchemaCompatibilityErrorKind,
|
|
44
|
+
details: string,
|
|
45
|
+
propertyPath?: string,
|
|
46
|
+
originalType?: string,
|
|
47
|
+
newType?: string,
|
|
48
|
+
}
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export class SchemaCompatibilityResult extends jspb.Message {
|
|
52
|
+
getIsCompatible(): boolean;
|
|
53
|
+
setIsCompatible(value: boolean): SchemaCompatibilityResult;
|
|
54
|
+
getSchemaVersionId(): string;
|
|
55
|
+
setSchemaVersionId(value: string): SchemaCompatibilityResult;
|
|
56
|
+
clearErrorsList(): void;
|
|
57
|
+
getErrorsList(): Array<SchemaCompatibilityError>;
|
|
58
|
+
setErrorsList(value: Array<SchemaCompatibilityError>): SchemaCompatibilityResult;
|
|
59
|
+
addErrors(value?: SchemaCompatibilityError, index?: number): SchemaCompatibilityError;
|
|
60
|
+
|
|
61
|
+
serializeBinary(): Uint8Array;
|
|
62
|
+
toObject(includeInstance?: boolean): SchemaCompatibilityResult.AsObject;
|
|
63
|
+
static toObject(includeInstance: boolean, msg: SchemaCompatibilityResult): SchemaCompatibilityResult.AsObject;
|
|
64
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
65
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
66
|
+
static serializeBinaryToWriter(message: SchemaCompatibilityResult, writer: jspb.BinaryWriter): void;
|
|
67
|
+
static deserializeBinary(bytes: Uint8Array): SchemaCompatibilityResult;
|
|
68
|
+
static deserializeBinaryFromReader(message: SchemaCompatibilityResult, reader: jspb.BinaryReader): SchemaCompatibilityResult;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export namespace SchemaCompatibilityResult {
|
|
72
|
+
export type AsObject = {
|
|
73
|
+
isCompatible: boolean,
|
|
74
|
+
schemaVersionId: string,
|
|
75
|
+
errorsList: Array<SchemaCompatibilityError.AsObject>,
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export class CheckSchemaCompatibilityRequest extends jspb.Message {
|
|
80
|
+
|
|
81
|
+
hasSchemaName(): boolean;
|
|
82
|
+
clearSchemaName(): void;
|
|
83
|
+
getSchemaName(): string;
|
|
84
|
+
setSchemaName(value: string): CheckSchemaCompatibilityRequest;
|
|
85
|
+
|
|
86
|
+
hasSchemaVersionId(): boolean;
|
|
87
|
+
clearSchemaVersionId(): void;
|
|
88
|
+
getSchemaVersionId(): string;
|
|
89
|
+
setSchemaVersionId(value: string): CheckSchemaCompatibilityRequest;
|
|
90
|
+
getDefinition(): Uint8Array | string;
|
|
91
|
+
getDefinition_asU8(): Uint8Array;
|
|
92
|
+
getDefinition_asB64(): string;
|
|
93
|
+
setDefinition(value: Uint8Array | string): CheckSchemaCompatibilityRequest;
|
|
94
|
+
getDataFormat(): kurrentdb_protocols_v2_registry_shared_pb.SchemaDataFormat;
|
|
95
|
+
setDataFormat(value: kurrentdb_protocols_v2_registry_shared_pb.SchemaDataFormat): CheckSchemaCompatibilityRequest;
|
|
96
|
+
|
|
97
|
+
getSchemaIdentifierCase(): CheckSchemaCompatibilityRequest.SchemaIdentifierCase;
|
|
98
|
+
|
|
99
|
+
serializeBinary(): Uint8Array;
|
|
100
|
+
toObject(includeInstance?: boolean): CheckSchemaCompatibilityRequest.AsObject;
|
|
101
|
+
static toObject(includeInstance: boolean, msg: CheckSchemaCompatibilityRequest): CheckSchemaCompatibilityRequest.AsObject;
|
|
102
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
103
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
104
|
+
static serializeBinaryToWriter(message: CheckSchemaCompatibilityRequest, writer: jspb.BinaryWriter): void;
|
|
105
|
+
static deserializeBinary(bytes: Uint8Array): CheckSchemaCompatibilityRequest;
|
|
106
|
+
static deserializeBinaryFromReader(message: CheckSchemaCompatibilityRequest, reader: jspb.BinaryReader): CheckSchemaCompatibilityRequest;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export namespace CheckSchemaCompatibilityRequest {
|
|
110
|
+
export type AsObject = {
|
|
111
|
+
schemaName: string,
|
|
112
|
+
schemaVersionId: string,
|
|
113
|
+
definition: Uint8Array | string,
|
|
114
|
+
dataFormat: kurrentdb_protocols_v2_registry_shared_pb.SchemaDataFormat,
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export enum SchemaIdentifierCase {
|
|
118
|
+
SCHEMA_IDENTIFIER_NOT_SET = 0,
|
|
119
|
+
SCHEMA_NAME = 1,
|
|
120
|
+
SCHEMA_VERSION_ID = 2,
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export class CheckSchemaCompatibilityResponse extends jspb.Message {
|
|
126
|
+
|
|
127
|
+
hasSuccess(): boolean;
|
|
128
|
+
clearSuccess(): void;
|
|
129
|
+
getSuccess(): CheckSchemaCompatibilityResponse.Success | undefined;
|
|
130
|
+
setSuccess(value?: CheckSchemaCompatibilityResponse.Success): CheckSchemaCompatibilityResponse;
|
|
131
|
+
|
|
132
|
+
hasFailure(): boolean;
|
|
133
|
+
clearFailure(): void;
|
|
134
|
+
getFailure(): CheckSchemaCompatibilityResponse.Failure | undefined;
|
|
135
|
+
setFailure(value?: CheckSchemaCompatibilityResponse.Failure): CheckSchemaCompatibilityResponse;
|
|
136
|
+
|
|
137
|
+
getResultCase(): CheckSchemaCompatibilityResponse.ResultCase;
|
|
138
|
+
|
|
139
|
+
serializeBinary(): Uint8Array;
|
|
140
|
+
toObject(includeInstance?: boolean): CheckSchemaCompatibilityResponse.AsObject;
|
|
141
|
+
static toObject(includeInstance: boolean, msg: CheckSchemaCompatibilityResponse): CheckSchemaCompatibilityResponse.AsObject;
|
|
142
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
143
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
144
|
+
static serializeBinaryToWriter(message: CheckSchemaCompatibilityResponse, writer: jspb.BinaryWriter): void;
|
|
145
|
+
static deserializeBinary(bytes: Uint8Array): CheckSchemaCompatibilityResponse;
|
|
146
|
+
static deserializeBinaryFromReader(message: CheckSchemaCompatibilityResponse, reader: jspb.BinaryReader): CheckSchemaCompatibilityResponse;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export namespace CheckSchemaCompatibilityResponse {
|
|
150
|
+
export type AsObject = {
|
|
151
|
+
success?: CheckSchemaCompatibilityResponse.Success.AsObject,
|
|
152
|
+
failure?: CheckSchemaCompatibilityResponse.Failure.AsObject,
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
|
|
156
|
+
export class Success extends jspb.Message {
|
|
157
|
+
getSchemaVersionId(): string;
|
|
158
|
+
setSchemaVersionId(value: string): Success;
|
|
159
|
+
|
|
160
|
+
serializeBinary(): Uint8Array;
|
|
161
|
+
toObject(includeInstance?: boolean): Success.AsObject;
|
|
162
|
+
static toObject(includeInstance: boolean, msg: Success): Success.AsObject;
|
|
163
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
164
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
165
|
+
static serializeBinaryToWriter(message: Success, writer: jspb.BinaryWriter): void;
|
|
166
|
+
static deserializeBinary(bytes: Uint8Array): Success;
|
|
167
|
+
static deserializeBinaryFromReader(message: Success, reader: jspb.BinaryReader): Success;
|
|
168
|
+
}
|
|
169
|
+
|
|
170
|
+
export namespace Success {
|
|
171
|
+
export type AsObject = {
|
|
172
|
+
schemaVersionId: string,
|
|
173
|
+
}
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export class Failure extends jspb.Message {
|
|
177
|
+
clearErrorsList(): void;
|
|
178
|
+
getErrorsList(): Array<SchemaCompatibilityError>;
|
|
179
|
+
setErrorsList(value: Array<SchemaCompatibilityError>): Failure;
|
|
180
|
+
addErrors(value?: SchemaCompatibilityError, index?: number): SchemaCompatibilityError;
|
|
181
|
+
|
|
182
|
+
serializeBinary(): Uint8Array;
|
|
183
|
+
toObject(includeInstance?: boolean): Failure.AsObject;
|
|
184
|
+
static toObject(includeInstance: boolean, msg: Failure): Failure.AsObject;
|
|
185
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
186
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
187
|
+
static serializeBinaryToWriter(message: Failure, writer: jspb.BinaryWriter): void;
|
|
188
|
+
static deserializeBinary(bytes: Uint8Array): Failure;
|
|
189
|
+
static deserializeBinaryFromReader(message: Failure, reader: jspb.BinaryReader): Failure;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export namespace Failure {
|
|
193
|
+
export type AsObject = {
|
|
194
|
+
errorsList: Array<SchemaCompatibilityError.AsObject>,
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
|
|
199
|
+
export enum ResultCase {
|
|
200
|
+
RESULT_NOT_SET = 0,
|
|
201
|
+
SUCCESS = 1,
|
|
202
|
+
FAILURE = 2,
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
}
|
|
206
|
+
|
|
207
|
+
export class SchemaValidationInfo extends jspb.Message {
|
|
208
|
+
getSchemaVersionId(): string;
|
|
209
|
+
setSchemaVersionId(value: string): SchemaValidationInfo;
|
|
210
|
+
getSchemaDefinition(): Uint8Array | string;
|
|
211
|
+
getSchemaDefinition_asU8(): Uint8Array;
|
|
212
|
+
getSchemaDefinition_asB64(): string;
|
|
213
|
+
setSchemaDefinition(value: Uint8Array | string): SchemaValidationInfo;
|
|
214
|
+
getDataFormat(): kurrentdb_protocols_v2_registry_shared_pb.SchemaDataFormat;
|
|
215
|
+
setDataFormat(value: kurrentdb_protocols_v2_registry_shared_pb.SchemaDataFormat): SchemaValidationInfo;
|
|
216
|
+
getCompatibility(): kurrentdb_protocols_v2_registry_shared_pb.CompatibilityMode;
|
|
217
|
+
setCompatibility(value: kurrentdb_protocols_v2_registry_shared_pb.CompatibilityMode): SchemaValidationInfo;
|
|
218
|
+
|
|
219
|
+
serializeBinary(): Uint8Array;
|
|
220
|
+
toObject(includeInstance?: boolean): SchemaValidationInfo.AsObject;
|
|
221
|
+
static toObject(includeInstance: boolean, msg: SchemaValidationInfo): SchemaValidationInfo.AsObject;
|
|
222
|
+
static extensions: {[key: number]: jspb.ExtensionFieldInfo<jspb.Message>};
|
|
223
|
+
static extensionsBinary: {[key: number]: jspb.ExtensionFieldBinaryInfo<jspb.Message>};
|
|
224
|
+
static serializeBinaryToWriter(message: SchemaValidationInfo, writer: jspb.BinaryWriter): void;
|
|
225
|
+
static deserializeBinary(bytes: Uint8Array): SchemaValidationInfo;
|
|
226
|
+
static deserializeBinaryFromReader(message: SchemaValidationInfo, reader: jspb.BinaryReader): SchemaValidationInfo;
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export namespace SchemaValidationInfo {
|
|
230
|
+
export type AsObject = {
|
|
231
|
+
schemaVersionId: string,
|
|
232
|
+
schemaDefinition: Uint8Array | string,
|
|
233
|
+
dataFormat: kurrentdb_protocols_v2_registry_shared_pb.SchemaDataFormat,
|
|
234
|
+
compatibility: kurrentdb_protocols_v2_registry_shared_pb.CompatibilityMode,
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export enum SchemaCompatibilityErrorKind {
|
|
239
|
+
SCHEMA_COMPATIBILITY_ERROR_KIND_UNSPECIFIED = 0,
|
|
240
|
+
SCHEMA_COMPATIBILITY_ERROR_KIND_MISSING_REQUIRED_PROPERTY = 1,
|
|
241
|
+
SCHEMA_COMPATIBILITY_ERROR_KIND_INCOMPATIBLE_TYPE_CHANGE = 2,
|
|
242
|
+
SCHEMA_COMPATIBILITY_ERROR_KIND_OPTIONAL_TO_REQUIRED = 3,
|
|
243
|
+
SCHEMA_COMPATIBILITY_ERROR_KIND_NEW_REQUIRED_PROPERTY = 4,
|
|
244
|
+
SCHEMA_COMPATIBILITY_ERROR_KIND_REMOVED_PROPERTY = 5,
|
|
245
|
+
SCHEMA_COMPATIBILITY_ERROR_KIND_ARRAY_TYPE_INCOMPATIBILITY = 6,
|
|
246
|
+
SCHEMA_COMPATIBILITY_ERROR_KIND_DATA_FORMAT_MISMATCH = 7,
|
|
247
|
+
}
|