@fraym/proto 0.29.0 → 0.30.0-alpha.1
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/package.json +12 -18
- package/freym/auth/management/migration.d.ts +0 -68
- package/freym/auth/management/migration.js +0 -509
- package/freym/auth/management/role_delete.d.ts +0 -31
- package/freym/auth/management/role_delete.js +0 -132
- package/freym/auth/management/role_upsert.d.ts +0 -33
- package/freym/auth/management/role_upsert.js +0 -165
- package/freym/auth/management/roles_get.d.ts +0 -35
- package/freym/auth/management/roles_get.js +0 -186
- package/freym/auth/management/service.d.ts +0 -165
- package/freym/auth/management/service.js +0 -115
- package/freym/auth/management/shared.d.ts +0 -33
- package/freym/auth/management/shared.js +0 -176
- package/freym/auth/management/user_create.d.ts +0 -39
- package/freym/auth/management/user_create.js +0 -269
- package/freym/auth/management/user_delete.d.ts +0 -31
- package/freym/auth/management/user_delete.js +0 -132
- package/freym/auth/management/user_update.d.ts +0 -38
- package/freym/auth/management/user_update.js +0 -251
- package/freym/auth/management/users_get.d.ts +0 -41
- package/freym/auth/management/users_get.js +0 -300
- package/freym/auth/management.d.ts +0 -10
- package/freym/auth/management.js +0 -43
- package/freym/crud/delivery/clone.d.ts +0 -58
- package/freym/crud/delivery/clone.js +0 -494
- package/freym/crud/delivery/create.d.ts +0 -57
- package/freym/crud/delivery/create.js +0 -479
- package/freym/crud/delivery/delete.d.ts +0 -34
- package/freym/crud/delivery/delete.js +0 -183
- package/freym/crud/delivery/get_data.d.ts +0 -74
- package/freym/crud/delivery/get_data.js +0 -762
- package/freym/crud/delivery/service.d.ts +0 -97
- package/freym/crud/delivery/service.js +0 -67
- package/freym/crud/delivery/shared.d.ts +0 -60
- package/freym/crud/delivery/shared.js +0 -542
- package/freym/crud/delivery/update.d.ts +0 -57
- package/freym/crud/delivery/update.js +0 -479
- package/freym/crud/delivery.d.ts +0 -7
- package/freym/crud/delivery.js +0 -43
- package/freym/crud/management/migration.d.ts +0 -98
- package/freym/crud/management/migration.js +0 -945
- package/freym/crud/management/service.d.ts +0 -67
- package/freym/crud/management/service.js +0 -45
- package/freym/crud/management.d.ts +0 -2
- package/freym/crud/management.js +0 -21
- package/freym/index.d.ts +0 -0
- package/freym/index.js +0 -1
- package/freym/migrations/management/confirm.d.ts +0 -28
- package/freym/migrations/management/confirm.js +0 -97
- package/freym/migrations/management/create.d.ts +0 -88
- package/freym/migrations/management/create.js +0 -858
- package/freym/migrations/management/deployment.d.ts +0 -34
- package/freym/migrations/management/deployment.js +0 -186
- package/freym/migrations/management/rollback.d.ts +0 -28
- package/freym/migrations/management/rollback.js +0 -97
- package/freym/migrations/management/service.d.ts +0 -70
- package/freym/migrations/management/service.js +0 -48
- package/freym/migrations/management.d.ts +0 -5
- package/freym/migrations/management.js +0 -27
- package/freym/projections/delivery/delete.d.ts +0 -34
- package/freym/projections/delivery/delete.js +0 -183
- package/freym/projections/delivery/get_data.d.ts +0 -58
- package/freym/projections/delivery/get_data.js +0 -548
- package/freym/projections/delivery/get_view_data.d.ts +0 -50
- package/freym/projections/delivery/get_view_data.js +0 -422
- package/freym/projections/delivery/service.d.ts +0 -96
- package/freym/projections/delivery/service.js +0 -66
- package/freym/projections/delivery/shared.d.ts +0 -76
- package/freym/projections/delivery/shared.js +0 -753
- package/freym/projections/delivery/upsert.d.ts +0 -58
- package/freym/projections/delivery/upsert.js +0 -494
- package/freym/projections/delivery.d.ts +0 -6
- package/freym/projections/delivery.js +0 -36
- package/freym/projections/management/migration.d.ts +0 -107
- package/freym/projections/management/migration.js +0 -1089
- package/freym/projections/management/service.d.ts +0 -67
- package/freym/projections/management/service.js +0 -45
- package/freym/projections/management.d.ts +0 -2
- package/freym/projections/management.js +0 -23
- package/freym/streams/management/backchannel.d.ts +0 -35
- package/freym/streams/management/backchannel.js +0 -134
- package/freym/streams/management/event.d.ts +0 -80
- package/freym/streams/management/event.js +0 -849
- package/freym/streams/management/gdpr.d.ts +0 -43
- package/freym/streams/management/gdpr.js +0 -310
- package/freym/streams/management/paginate.d.ts +0 -72
- package/freym/streams/management/paginate.js +0 -709
- package/freym/streams/management/publish.d.ts +0 -59
- package/freym/streams/management/publish.js +0 -536
- package/freym/streams/management/service.d.ts +0 -204
- package/freym/streams/management/service.js +0 -142
- package/freym/streams/management/snapshot.d.ts +0 -34
- package/freym/streams/management/snapshot.js +0 -186
- package/freym/streams/management/stream.d.ts +0 -31
- package/freym/streams/management/stream.js +0 -144
- package/freym/streams/management/subscribe.d.ts +0 -70
- package/freym/streams/management/subscribe.js +0 -550
- package/freym/streams/management.d.ts +0 -9
- package/freym/streams/management.js +0 -54
- package/freym/sync/management/lease.d.ts +0 -62
- package/freym/sync/management/lease.js +0 -574
- package/freym/sync/management/lock.d.ts +0 -59
- package/freym/sync/management/lock.js +0 -522
- package/freym/sync/management/peer_nodes.d.ts +0 -29
- package/freym/sync/management/peer_nodes.js +0 -117
- package/freym/sync/management/service.d.ts +0 -120
- package/freym/sync/management/service.js +0 -83
- package/freym/sync/management.d.ts +0 -4
- package/freym/sync/management.js +0 -27
package/package.json
CHANGED
|
@@ -1,37 +1,31 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@fraym/proto",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.30.0-alpha.1",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"homepage": "https://github.com/fraym/
|
|
5
|
+
"homepage": "https://github.com/fraym/freym-api",
|
|
6
6
|
"repository": {
|
|
7
7
|
"type": "git",
|
|
8
|
-
"url": "git+https://github.com/fraym/
|
|
8
|
+
"url": "git+https://github.com/fraym/freym-api.git"
|
|
9
9
|
},
|
|
10
10
|
"description": "JS generated protobuf code for our Freym services",
|
|
11
11
|
"scripts": {
|
|
12
|
-
"
|
|
13
|
-
"build": "
|
|
14
|
-
"
|
|
15
|
-
"
|
|
16
|
-
"
|
|
17
|
-
"proto": "./proto.sh"
|
|
12
|
+
"generate": "./proto.sh && npm run fix",
|
|
13
|
+
"build": "rm -rf dist && tsc",
|
|
14
|
+
"lint": "eslint && prettier --check \"**/*.{ts,tsx,json,scss,css}\"",
|
|
15
|
+
"fix": "eslint --fix && prettier --write \"**/*.{ts,tsx,json,scss,css}\"",
|
|
16
|
+
"prepublish": "npm run build"
|
|
18
17
|
},
|
|
19
18
|
"files": [
|
|
20
|
-
"
|
|
19
|
+
"dist/**/*"
|
|
21
20
|
],
|
|
22
21
|
"engines": {
|
|
23
|
-
"node": ">=
|
|
22
|
+
"node": ">=20"
|
|
24
23
|
},
|
|
25
|
-
"main": "
|
|
26
|
-
"types": "
|
|
24
|
+
"main": "dist/index.js",
|
|
25
|
+
"types": "dist/index.d.ts",
|
|
27
26
|
"dependencies": {
|
|
28
27
|
"@grpc/grpc-js": "^1.12.5",
|
|
29
28
|
"ts-proto": "^2.6.1"
|
|
30
29
|
},
|
|
31
|
-
"devDependencies": {
|
|
32
|
-
"@becklyn/prettier": "^2.1.1",
|
|
33
|
-
"np": "^10.2.0",
|
|
34
|
-
"typescript": "^5.7.3"
|
|
35
|
-
},
|
|
36
30
|
"prettier": "@becklyn/prettier"
|
|
37
31
|
}
|
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
export declare const protobufPackage = "freym.auth.management";
|
|
3
|
-
export declare const DeploymentTarget: {
|
|
4
|
-
readonly DEPLOYMENT_TARGET_BLUE: "DEPLOYMENT_TARGET_BLUE";
|
|
5
|
-
readonly DEPLOYMENT_TARGET_GREEN: "DEPLOYMENT_TARGET_GREEN";
|
|
6
|
-
};
|
|
7
|
-
export type DeploymentTarget = typeof DeploymentTarget[keyof typeof DeploymentTarget];
|
|
8
|
-
export declare namespace DeploymentTarget {
|
|
9
|
-
type DEPLOYMENT_TARGET_BLUE = typeof DeploymentTarget.DEPLOYMENT_TARGET_BLUE;
|
|
10
|
-
type DEPLOYMENT_TARGET_GREEN = typeof DeploymentTarget.DEPLOYMENT_TARGET_GREEN;
|
|
11
|
-
}
|
|
12
|
-
export declare function deploymentTargetFromJSON(object: any): DeploymentTarget;
|
|
13
|
-
export declare function deploymentTargetToJSON(object: DeploymentTarget): string;
|
|
14
|
-
export declare function deploymentTargetToNumber(object: DeploymentTarget): number;
|
|
15
|
-
export interface DeploySchemaRequest {
|
|
16
|
-
namespace: string;
|
|
17
|
-
permissions: string[];
|
|
18
|
-
options: DeploymentOptions | undefined;
|
|
19
|
-
}
|
|
20
|
-
export interface DeploySchemaResponse {
|
|
21
|
-
}
|
|
22
|
-
export interface ConfirmSchemaRequest {
|
|
23
|
-
deploymentId: string;
|
|
24
|
-
}
|
|
25
|
-
export interface ConfirmSchemaResponse {
|
|
26
|
-
}
|
|
27
|
-
export interface RollbackSchemaRequest {
|
|
28
|
-
deploymentId: string;
|
|
29
|
-
}
|
|
30
|
-
export interface RollbackSchemaResponse {
|
|
31
|
-
}
|
|
32
|
-
export interface GetSchemaDeploymentRequest {
|
|
33
|
-
deploymentId: string;
|
|
34
|
-
}
|
|
35
|
-
export interface GetSchemaDeploymentResponse {
|
|
36
|
-
progress: number;
|
|
37
|
-
}
|
|
38
|
-
export interface DeploymentOptions {
|
|
39
|
-
target: DeploymentTarget;
|
|
40
|
-
}
|
|
41
|
-
export declare const DeploySchemaRequest: MessageFns<DeploySchemaRequest>;
|
|
42
|
-
export declare const DeploySchemaResponse: MessageFns<DeploySchemaResponse>;
|
|
43
|
-
export declare const ConfirmSchemaRequest: MessageFns<ConfirmSchemaRequest>;
|
|
44
|
-
export declare const ConfirmSchemaResponse: MessageFns<ConfirmSchemaResponse>;
|
|
45
|
-
export declare const RollbackSchemaRequest: MessageFns<RollbackSchemaRequest>;
|
|
46
|
-
export declare const RollbackSchemaResponse: MessageFns<RollbackSchemaResponse>;
|
|
47
|
-
export declare const GetSchemaDeploymentRequest: MessageFns<GetSchemaDeploymentRequest>;
|
|
48
|
-
export declare const GetSchemaDeploymentResponse: MessageFns<GetSchemaDeploymentResponse>;
|
|
49
|
-
export declare const DeploymentOptions: MessageFns<DeploymentOptions>;
|
|
50
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
51
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
52
|
-
$case: string;
|
|
53
|
-
} ? {
|
|
54
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
55
|
-
} & {
|
|
56
|
-
$case: T["$case"];
|
|
57
|
-
} : T extends {} ? {
|
|
58
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
59
|
-
} : Partial<T>;
|
|
60
|
-
export interface MessageFns<T> {
|
|
61
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
62
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
63
|
-
fromJSON(object: any): T;
|
|
64
|
-
toJSON(message: T): unknown;
|
|
65
|
-
create(base?: DeepPartial<T>): T;
|
|
66
|
-
fromPartial(object: DeepPartial<T>): T;
|
|
67
|
-
}
|
|
68
|
-
export {};
|
|
@@ -1,509 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.DeploymentOptions = exports.GetSchemaDeploymentResponse = exports.GetSchemaDeploymentRequest = exports.RollbackSchemaResponse = exports.RollbackSchemaRequest = exports.ConfirmSchemaResponse = exports.ConfirmSchemaRequest = exports.DeploySchemaResponse = exports.DeploySchemaRequest = exports.DeploymentTarget = exports.protobufPackage = void 0;
|
|
4
|
-
exports.deploymentTargetFromJSON = deploymentTargetFromJSON;
|
|
5
|
-
exports.deploymentTargetToJSON = deploymentTargetToJSON;
|
|
6
|
-
exports.deploymentTargetToNumber = deploymentTargetToNumber;
|
|
7
|
-
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
8
|
-
exports.protobufPackage = "freym.auth.management";
|
|
9
|
-
exports.DeploymentTarget = {
|
|
10
|
-
DEPLOYMENT_TARGET_BLUE: "DEPLOYMENT_TARGET_BLUE",
|
|
11
|
-
DEPLOYMENT_TARGET_GREEN: "DEPLOYMENT_TARGET_GREEN",
|
|
12
|
-
};
|
|
13
|
-
function deploymentTargetFromJSON(object) {
|
|
14
|
-
switch (object) {
|
|
15
|
-
case 0:
|
|
16
|
-
case "DEPLOYMENT_TARGET_BLUE":
|
|
17
|
-
return exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE;
|
|
18
|
-
case 1:
|
|
19
|
-
case "DEPLOYMENT_TARGET_GREEN":
|
|
20
|
-
return exports.DeploymentTarget.DEPLOYMENT_TARGET_GREEN;
|
|
21
|
-
default:
|
|
22
|
-
throw new globalThis.Error("Unrecognized enum value " + object + " for enum DeploymentTarget");
|
|
23
|
-
}
|
|
24
|
-
}
|
|
25
|
-
function deploymentTargetToJSON(object) {
|
|
26
|
-
switch (object) {
|
|
27
|
-
case exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE:
|
|
28
|
-
return "DEPLOYMENT_TARGET_BLUE";
|
|
29
|
-
case exports.DeploymentTarget.DEPLOYMENT_TARGET_GREEN:
|
|
30
|
-
return "DEPLOYMENT_TARGET_GREEN";
|
|
31
|
-
default:
|
|
32
|
-
throw new globalThis.Error("Unrecognized enum value " + object + " for enum DeploymentTarget");
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
function deploymentTargetToNumber(object) {
|
|
36
|
-
switch (object) {
|
|
37
|
-
case exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE:
|
|
38
|
-
return 0;
|
|
39
|
-
case exports.DeploymentTarget.DEPLOYMENT_TARGET_GREEN:
|
|
40
|
-
return 1;
|
|
41
|
-
default:
|
|
42
|
-
throw new globalThis.Error("Unrecognized enum value " + object + " for enum DeploymentTarget");
|
|
43
|
-
}
|
|
44
|
-
}
|
|
45
|
-
function createBaseDeploySchemaRequest() {
|
|
46
|
-
return { namespace: "", permissions: [], options: undefined };
|
|
47
|
-
}
|
|
48
|
-
exports.DeploySchemaRequest = {
|
|
49
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
50
|
-
if (message.namespace !== "") {
|
|
51
|
-
writer.uint32(10).string(message.namespace);
|
|
52
|
-
}
|
|
53
|
-
for (const v of message.permissions) {
|
|
54
|
-
writer.uint32(18).string(v);
|
|
55
|
-
}
|
|
56
|
-
if (message.options !== undefined) {
|
|
57
|
-
exports.DeploymentOptions.encode(message.options, writer.uint32(26).fork()).join();
|
|
58
|
-
}
|
|
59
|
-
return writer;
|
|
60
|
-
},
|
|
61
|
-
decode(input, length) {
|
|
62
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
63
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
64
|
-
const message = createBaseDeploySchemaRequest();
|
|
65
|
-
while (reader.pos < end) {
|
|
66
|
-
const tag = reader.uint32();
|
|
67
|
-
switch (tag >>> 3) {
|
|
68
|
-
case 1: {
|
|
69
|
-
if (tag !== 10) {
|
|
70
|
-
break;
|
|
71
|
-
}
|
|
72
|
-
message.namespace = reader.string();
|
|
73
|
-
continue;
|
|
74
|
-
}
|
|
75
|
-
case 2: {
|
|
76
|
-
if (tag !== 18) {
|
|
77
|
-
break;
|
|
78
|
-
}
|
|
79
|
-
message.permissions.push(reader.string());
|
|
80
|
-
continue;
|
|
81
|
-
}
|
|
82
|
-
case 3: {
|
|
83
|
-
if (tag !== 26) {
|
|
84
|
-
break;
|
|
85
|
-
}
|
|
86
|
-
message.options = exports.DeploymentOptions.decode(reader, reader.uint32());
|
|
87
|
-
continue;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
91
|
-
break;
|
|
92
|
-
}
|
|
93
|
-
reader.skip(tag & 7);
|
|
94
|
-
}
|
|
95
|
-
return message;
|
|
96
|
-
},
|
|
97
|
-
fromJSON(object) {
|
|
98
|
-
return {
|
|
99
|
-
namespace: isSet(object.namespace) ? globalThis.String(object.namespace) : "",
|
|
100
|
-
permissions: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.permissions)
|
|
101
|
-
? object.permissions.map((e) => globalThis.String(e))
|
|
102
|
-
: [],
|
|
103
|
-
options: isSet(object.options) ? exports.DeploymentOptions.fromJSON(object.options) : undefined,
|
|
104
|
-
};
|
|
105
|
-
},
|
|
106
|
-
toJSON(message) {
|
|
107
|
-
var _a;
|
|
108
|
-
const obj = {};
|
|
109
|
-
if (message.namespace !== "") {
|
|
110
|
-
obj.namespace = message.namespace;
|
|
111
|
-
}
|
|
112
|
-
if ((_a = message.permissions) === null || _a === void 0 ? void 0 : _a.length) {
|
|
113
|
-
obj.permissions = message.permissions;
|
|
114
|
-
}
|
|
115
|
-
if (message.options !== undefined) {
|
|
116
|
-
obj.options = exports.DeploymentOptions.toJSON(message.options);
|
|
117
|
-
}
|
|
118
|
-
return obj;
|
|
119
|
-
},
|
|
120
|
-
create(base) {
|
|
121
|
-
return exports.DeploySchemaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
122
|
-
},
|
|
123
|
-
fromPartial(object) {
|
|
124
|
-
var _a, _b;
|
|
125
|
-
const message = createBaseDeploySchemaRequest();
|
|
126
|
-
message.namespace = (_a = object.namespace) !== null && _a !== void 0 ? _a : "";
|
|
127
|
-
message.permissions = ((_b = object.permissions) === null || _b === void 0 ? void 0 : _b.map((e) => e)) || [];
|
|
128
|
-
message.options = (object.options !== undefined && object.options !== null)
|
|
129
|
-
? exports.DeploymentOptions.fromPartial(object.options)
|
|
130
|
-
: undefined;
|
|
131
|
-
return message;
|
|
132
|
-
},
|
|
133
|
-
};
|
|
134
|
-
function createBaseDeploySchemaResponse() {
|
|
135
|
-
return {};
|
|
136
|
-
}
|
|
137
|
-
exports.DeploySchemaResponse = {
|
|
138
|
-
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
139
|
-
return writer;
|
|
140
|
-
},
|
|
141
|
-
decode(input, length) {
|
|
142
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
143
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
144
|
-
const message = createBaseDeploySchemaResponse();
|
|
145
|
-
while (reader.pos < end) {
|
|
146
|
-
const tag = reader.uint32();
|
|
147
|
-
switch (tag >>> 3) {
|
|
148
|
-
}
|
|
149
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
150
|
-
break;
|
|
151
|
-
}
|
|
152
|
-
reader.skip(tag & 7);
|
|
153
|
-
}
|
|
154
|
-
return message;
|
|
155
|
-
},
|
|
156
|
-
fromJSON(_) {
|
|
157
|
-
return {};
|
|
158
|
-
},
|
|
159
|
-
toJSON(_) {
|
|
160
|
-
const obj = {};
|
|
161
|
-
return obj;
|
|
162
|
-
},
|
|
163
|
-
create(base) {
|
|
164
|
-
return exports.DeploySchemaResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
165
|
-
},
|
|
166
|
-
fromPartial(_) {
|
|
167
|
-
const message = createBaseDeploySchemaResponse();
|
|
168
|
-
return message;
|
|
169
|
-
},
|
|
170
|
-
};
|
|
171
|
-
function createBaseConfirmSchemaRequest() {
|
|
172
|
-
return { deploymentId: "0" };
|
|
173
|
-
}
|
|
174
|
-
exports.ConfirmSchemaRequest = {
|
|
175
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
176
|
-
if (message.deploymentId !== "0") {
|
|
177
|
-
writer.uint32(8).int64(message.deploymentId);
|
|
178
|
-
}
|
|
179
|
-
return writer;
|
|
180
|
-
},
|
|
181
|
-
decode(input, length) {
|
|
182
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
183
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
184
|
-
const message = createBaseConfirmSchemaRequest();
|
|
185
|
-
while (reader.pos < end) {
|
|
186
|
-
const tag = reader.uint32();
|
|
187
|
-
switch (tag >>> 3) {
|
|
188
|
-
case 1: {
|
|
189
|
-
if (tag !== 8) {
|
|
190
|
-
break;
|
|
191
|
-
}
|
|
192
|
-
message.deploymentId = reader.int64().toString();
|
|
193
|
-
continue;
|
|
194
|
-
}
|
|
195
|
-
}
|
|
196
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
197
|
-
break;
|
|
198
|
-
}
|
|
199
|
-
reader.skip(tag & 7);
|
|
200
|
-
}
|
|
201
|
-
return message;
|
|
202
|
-
},
|
|
203
|
-
fromJSON(object) {
|
|
204
|
-
return { deploymentId: isSet(object.deploymentId) ? globalThis.String(object.deploymentId) : "0" };
|
|
205
|
-
},
|
|
206
|
-
toJSON(message) {
|
|
207
|
-
const obj = {};
|
|
208
|
-
if (message.deploymentId !== "0") {
|
|
209
|
-
obj.deploymentId = message.deploymentId;
|
|
210
|
-
}
|
|
211
|
-
return obj;
|
|
212
|
-
},
|
|
213
|
-
create(base) {
|
|
214
|
-
return exports.ConfirmSchemaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
215
|
-
},
|
|
216
|
-
fromPartial(object) {
|
|
217
|
-
var _a;
|
|
218
|
-
const message = createBaseConfirmSchemaRequest();
|
|
219
|
-
message.deploymentId = (_a = object.deploymentId) !== null && _a !== void 0 ? _a : "0";
|
|
220
|
-
return message;
|
|
221
|
-
},
|
|
222
|
-
};
|
|
223
|
-
function createBaseConfirmSchemaResponse() {
|
|
224
|
-
return {};
|
|
225
|
-
}
|
|
226
|
-
exports.ConfirmSchemaResponse = {
|
|
227
|
-
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
228
|
-
return writer;
|
|
229
|
-
},
|
|
230
|
-
decode(input, length) {
|
|
231
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
232
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
233
|
-
const message = createBaseConfirmSchemaResponse();
|
|
234
|
-
while (reader.pos < end) {
|
|
235
|
-
const tag = reader.uint32();
|
|
236
|
-
switch (tag >>> 3) {
|
|
237
|
-
}
|
|
238
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
239
|
-
break;
|
|
240
|
-
}
|
|
241
|
-
reader.skip(tag & 7);
|
|
242
|
-
}
|
|
243
|
-
return message;
|
|
244
|
-
},
|
|
245
|
-
fromJSON(_) {
|
|
246
|
-
return {};
|
|
247
|
-
},
|
|
248
|
-
toJSON(_) {
|
|
249
|
-
const obj = {};
|
|
250
|
-
return obj;
|
|
251
|
-
},
|
|
252
|
-
create(base) {
|
|
253
|
-
return exports.ConfirmSchemaResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
254
|
-
},
|
|
255
|
-
fromPartial(_) {
|
|
256
|
-
const message = createBaseConfirmSchemaResponse();
|
|
257
|
-
return message;
|
|
258
|
-
},
|
|
259
|
-
};
|
|
260
|
-
function createBaseRollbackSchemaRequest() {
|
|
261
|
-
return { deploymentId: "0" };
|
|
262
|
-
}
|
|
263
|
-
exports.RollbackSchemaRequest = {
|
|
264
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
265
|
-
if (message.deploymentId !== "0") {
|
|
266
|
-
writer.uint32(8).int64(message.deploymentId);
|
|
267
|
-
}
|
|
268
|
-
return writer;
|
|
269
|
-
},
|
|
270
|
-
decode(input, length) {
|
|
271
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
272
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
273
|
-
const message = createBaseRollbackSchemaRequest();
|
|
274
|
-
while (reader.pos < end) {
|
|
275
|
-
const tag = reader.uint32();
|
|
276
|
-
switch (tag >>> 3) {
|
|
277
|
-
case 1: {
|
|
278
|
-
if (tag !== 8) {
|
|
279
|
-
break;
|
|
280
|
-
}
|
|
281
|
-
message.deploymentId = reader.int64().toString();
|
|
282
|
-
continue;
|
|
283
|
-
}
|
|
284
|
-
}
|
|
285
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
286
|
-
break;
|
|
287
|
-
}
|
|
288
|
-
reader.skip(tag & 7);
|
|
289
|
-
}
|
|
290
|
-
return message;
|
|
291
|
-
},
|
|
292
|
-
fromJSON(object) {
|
|
293
|
-
return { deploymentId: isSet(object.deploymentId) ? globalThis.String(object.deploymentId) : "0" };
|
|
294
|
-
},
|
|
295
|
-
toJSON(message) {
|
|
296
|
-
const obj = {};
|
|
297
|
-
if (message.deploymentId !== "0") {
|
|
298
|
-
obj.deploymentId = message.deploymentId;
|
|
299
|
-
}
|
|
300
|
-
return obj;
|
|
301
|
-
},
|
|
302
|
-
create(base) {
|
|
303
|
-
return exports.RollbackSchemaRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
304
|
-
},
|
|
305
|
-
fromPartial(object) {
|
|
306
|
-
var _a;
|
|
307
|
-
const message = createBaseRollbackSchemaRequest();
|
|
308
|
-
message.deploymentId = (_a = object.deploymentId) !== null && _a !== void 0 ? _a : "0";
|
|
309
|
-
return message;
|
|
310
|
-
},
|
|
311
|
-
};
|
|
312
|
-
function createBaseRollbackSchemaResponse() {
|
|
313
|
-
return {};
|
|
314
|
-
}
|
|
315
|
-
exports.RollbackSchemaResponse = {
|
|
316
|
-
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
317
|
-
return writer;
|
|
318
|
-
},
|
|
319
|
-
decode(input, length) {
|
|
320
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
321
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
322
|
-
const message = createBaseRollbackSchemaResponse();
|
|
323
|
-
while (reader.pos < end) {
|
|
324
|
-
const tag = reader.uint32();
|
|
325
|
-
switch (tag >>> 3) {
|
|
326
|
-
}
|
|
327
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
328
|
-
break;
|
|
329
|
-
}
|
|
330
|
-
reader.skip(tag & 7);
|
|
331
|
-
}
|
|
332
|
-
return message;
|
|
333
|
-
},
|
|
334
|
-
fromJSON(_) {
|
|
335
|
-
return {};
|
|
336
|
-
},
|
|
337
|
-
toJSON(_) {
|
|
338
|
-
const obj = {};
|
|
339
|
-
return obj;
|
|
340
|
-
},
|
|
341
|
-
create(base) {
|
|
342
|
-
return exports.RollbackSchemaResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
343
|
-
},
|
|
344
|
-
fromPartial(_) {
|
|
345
|
-
const message = createBaseRollbackSchemaResponse();
|
|
346
|
-
return message;
|
|
347
|
-
},
|
|
348
|
-
};
|
|
349
|
-
function createBaseGetSchemaDeploymentRequest() {
|
|
350
|
-
return { deploymentId: "0" };
|
|
351
|
-
}
|
|
352
|
-
exports.GetSchemaDeploymentRequest = {
|
|
353
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
354
|
-
if (message.deploymentId !== "0") {
|
|
355
|
-
writer.uint32(8).int64(message.deploymentId);
|
|
356
|
-
}
|
|
357
|
-
return writer;
|
|
358
|
-
},
|
|
359
|
-
decode(input, length) {
|
|
360
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
361
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
362
|
-
const message = createBaseGetSchemaDeploymentRequest();
|
|
363
|
-
while (reader.pos < end) {
|
|
364
|
-
const tag = reader.uint32();
|
|
365
|
-
switch (tag >>> 3) {
|
|
366
|
-
case 1: {
|
|
367
|
-
if (tag !== 8) {
|
|
368
|
-
break;
|
|
369
|
-
}
|
|
370
|
-
message.deploymentId = reader.int64().toString();
|
|
371
|
-
continue;
|
|
372
|
-
}
|
|
373
|
-
}
|
|
374
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
375
|
-
break;
|
|
376
|
-
}
|
|
377
|
-
reader.skip(tag & 7);
|
|
378
|
-
}
|
|
379
|
-
return message;
|
|
380
|
-
},
|
|
381
|
-
fromJSON(object) {
|
|
382
|
-
return { deploymentId: isSet(object.deploymentId) ? globalThis.String(object.deploymentId) : "0" };
|
|
383
|
-
},
|
|
384
|
-
toJSON(message) {
|
|
385
|
-
const obj = {};
|
|
386
|
-
if (message.deploymentId !== "0") {
|
|
387
|
-
obj.deploymentId = message.deploymentId;
|
|
388
|
-
}
|
|
389
|
-
return obj;
|
|
390
|
-
},
|
|
391
|
-
create(base) {
|
|
392
|
-
return exports.GetSchemaDeploymentRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
393
|
-
},
|
|
394
|
-
fromPartial(object) {
|
|
395
|
-
var _a;
|
|
396
|
-
const message = createBaseGetSchemaDeploymentRequest();
|
|
397
|
-
message.deploymentId = (_a = object.deploymentId) !== null && _a !== void 0 ? _a : "0";
|
|
398
|
-
return message;
|
|
399
|
-
},
|
|
400
|
-
};
|
|
401
|
-
function createBaseGetSchemaDeploymentResponse() {
|
|
402
|
-
return { progress: 0 };
|
|
403
|
-
}
|
|
404
|
-
exports.GetSchemaDeploymentResponse = {
|
|
405
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
406
|
-
if (message.progress !== 0) {
|
|
407
|
-
writer.uint32(8).uint32(message.progress);
|
|
408
|
-
}
|
|
409
|
-
return writer;
|
|
410
|
-
},
|
|
411
|
-
decode(input, length) {
|
|
412
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
413
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
414
|
-
const message = createBaseGetSchemaDeploymentResponse();
|
|
415
|
-
while (reader.pos < end) {
|
|
416
|
-
const tag = reader.uint32();
|
|
417
|
-
switch (tag >>> 3) {
|
|
418
|
-
case 1: {
|
|
419
|
-
if (tag !== 8) {
|
|
420
|
-
break;
|
|
421
|
-
}
|
|
422
|
-
message.progress = reader.uint32();
|
|
423
|
-
continue;
|
|
424
|
-
}
|
|
425
|
-
}
|
|
426
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
427
|
-
break;
|
|
428
|
-
}
|
|
429
|
-
reader.skip(tag & 7);
|
|
430
|
-
}
|
|
431
|
-
return message;
|
|
432
|
-
},
|
|
433
|
-
fromJSON(object) {
|
|
434
|
-
return { progress: isSet(object.progress) ? globalThis.Number(object.progress) : 0 };
|
|
435
|
-
},
|
|
436
|
-
toJSON(message) {
|
|
437
|
-
const obj = {};
|
|
438
|
-
if (message.progress !== 0) {
|
|
439
|
-
obj.progress = Math.round(message.progress);
|
|
440
|
-
}
|
|
441
|
-
return obj;
|
|
442
|
-
},
|
|
443
|
-
create(base) {
|
|
444
|
-
return exports.GetSchemaDeploymentResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
445
|
-
},
|
|
446
|
-
fromPartial(object) {
|
|
447
|
-
var _a;
|
|
448
|
-
const message = createBaseGetSchemaDeploymentResponse();
|
|
449
|
-
message.progress = (_a = object.progress) !== null && _a !== void 0 ? _a : 0;
|
|
450
|
-
return message;
|
|
451
|
-
},
|
|
452
|
-
};
|
|
453
|
-
function createBaseDeploymentOptions() {
|
|
454
|
-
return { target: exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE };
|
|
455
|
-
}
|
|
456
|
-
exports.DeploymentOptions = {
|
|
457
|
-
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
458
|
-
if (message.target !== exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE) {
|
|
459
|
-
writer.uint32(8).int32(deploymentTargetToNumber(message.target));
|
|
460
|
-
}
|
|
461
|
-
return writer;
|
|
462
|
-
},
|
|
463
|
-
decode(input, length) {
|
|
464
|
-
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
465
|
-
let end = length === undefined ? reader.len : reader.pos + length;
|
|
466
|
-
const message = createBaseDeploymentOptions();
|
|
467
|
-
while (reader.pos < end) {
|
|
468
|
-
const tag = reader.uint32();
|
|
469
|
-
switch (tag >>> 3) {
|
|
470
|
-
case 1: {
|
|
471
|
-
if (tag !== 8) {
|
|
472
|
-
break;
|
|
473
|
-
}
|
|
474
|
-
message.target = deploymentTargetFromJSON(reader.int32());
|
|
475
|
-
continue;
|
|
476
|
-
}
|
|
477
|
-
}
|
|
478
|
-
if ((tag & 7) === 4 || tag === 0) {
|
|
479
|
-
break;
|
|
480
|
-
}
|
|
481
|
-
reader.skip(tag & 7);
|
|
482
|
-
}
|
|
483
|
-
return message;
|
|
484
|
-
},
|
|
485
|
-
fromJSON(object) {
|
|
486
|
-
return {
|
|
487
|
-
target: isSet(object.target) ? deploymentTargetFromJSON(object.target) : exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE,
|
|
488
|
-
};
|
|
489
|
-
},
|
|
490
|
-
toJSON(message) {
|
|
491
|
-
const obj = {};
|
|
492
|
-
if (message.target !== exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE) {
|
|
493
|
-
obj.target = deploymentTargetToJSON(message.target);
|
|
494
|
-
}
|
|
495
|
-
return obj;
|
|
496
|
-
},
|
|
497
|
-
create(base) {
|
|
498
|
-
return exports.DeploymentOptions.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
499
|
-
},
|
|
500
|
-
fromPartial(object) {
|
|
501
|
-
var _a;
|
|
502
|
-
const message = createBaseDeploymentOptions();
|
|
503
|
-
message.target = (_a = object.target) !== null && _a !== void 0 ? _a : exports.DeploymentTarget.DEPLOYMENT_TARGET_BLUE;
|
|
504
|
-
return message;
|
|
505
|
-
},
|
|
506
|
-
};
|
|
507
|
-
function isSet(value) {
|
|
508
|
-
return value !== null && value !== undefined;
|
|
509
|
-
}
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
|
|
2
|
-
import { EventMetadata } from "./shared";
|
|
3
|
-
export declare const protobufPackage = "freym.auth.management";
|
|
4
|
-
export interface DeleteRoleRequest {
|
|
5
|
-
id: string;
|
|
6
|
-
tenantId: string;
|
|
7
|
-
eventMetadata: EventMetadata | undefined;
|
|
8
|
-
}
|
|
9
|
-
export interface DeleteRoleResponse {
|
|
10
|
-
}
|
|
11
|
-
export declare const DeleteRoleRequest: MessageFns<DeleteRoleRequest>;
|
|
12
|
-
export declare const DeleteRoleResponse: MessageFns<DeleteRoleResponse>;
|
|
13
|
-
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
14
|
-
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {
|
|
15
|
-
$case: string;
|
|
16
|
-
} ? {
|
|
17
|
-
[K in keyof Omit<T, "$case">]?: DeepPartial<T[K]>;
|
|
18
|
-
} & {
|
|
19
|
-
$case: T["$case"];
|
|
20
|
-
} : T extends {} ? {
|
|
21
|
-
[K in keyof T]?: DeepPartial<T[K]>;
|
|
22
|
-
} : Partial<T>;
|
|
23
|
-
export interface MessageFns<T> {
|
|
24
|
-
encode(message: T, writer?: BinaryWriter): BinaryWriter;
|
|
25
|
-
decode(input: BinaryReader | Uint8Array, length?: number): T;
|
|
26
|
-
fromJSON(object: any): T;
|
|
27
|
-
toJSON(message: T): unknown;
|
|
28
|
-
create(base?: DeepPartial<T>): T;
|
|
29
|
-
fromPartial(object: DeepPartial<T>): T;
|
|
30
|
-
}
|
|
31
|
-
export {};
|