weave-typescript 0.51.3 → 0.52.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/google/protobuf/duration.pb.d.ts +99 -0
- package/dist/google/protobuf/duration.pb.js +93 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.js +2 -1
- package/dist/weave/authz/v1/index.d.ts +1 -0
- package/dist/weave/authz/v1/index.js +38 -0
- package/dist/weave/authz/v1/options.pb.d.ts +52 -0
- package/dist/weave/authz/v1/options.pb.js +403 -0
- package/dist/weave/filter/v1/index.d.ts +1 -0
- package/dist/weave/filter/v1/index.js +38 -0
- package/dist/{weaveapi/atc/v1/message.pb.d.ts → weave/filter/v1/options.pb.d.ts} +33 -21
- package/dist/weave/filter/v1/options.pb.js +417 -0
- package/dist/weave/index.d.ts +2 -0
- package/dist/weave/index.js +39 -0
- package/dist/weaveapi/agent/v1/agent.pb.d.ts +137 -188
- package/dist/weaveapi/agent/v1/agent.pb.js +891 -2151
- package/dist/weaveapi/agent/v1/index.d.ts +1 -1
- package/dist/weaveapi/agent/v1/index.js +2 -2
- package/dist/weaveapi/agent/v1/run.pb.d.ts +289 -0
- package/dist/weaveapi/agent/v1/run.pb.js +2763 -0
- package/dist/weaveapi/auth/v1/auth.pb.d.ts +67 -14
- package/dist/weaveapi/auth/v1/auth.pb.js +829 -89
- package/dist/weaveapi/auth/v1/index.d.ts +4 -1
- package/dist/weaveapi/auth/v1/index.js +5 -2
- package/dist/weaveapi/auth/v1/{service.pb.d.ts → organization_admin.pb.d.ts} +39 -530
- package/dist/weaveapi/auth/v1/{service.pb.js → organization_admin.pb.js} +2978 -5812
- package/dist/weaveapi/auth/v1/personal_access_token.pb.d.ts +114 -0
- package/dist/weaveapi/auth/v1/personal_access_token.pb.js +750 -0
- package/dist/weaveapi/auth/v1/profile.pb.d.ts +161 -0
- package/dist/weaveapi/auth/v1/profile.pb.js +1007 -0
- package/dist/weaveapi/auth/v1/session.pb.d.ts +460 -0
- package/dist/weaveapi/auth/v1/session.pb.js +3544 -0
- package/dist/weaveapi/chat/v1/chat.pb.d.ts +377 -149
- package/dist/weaveapi/chat/v1/chat.pb.js +3492 -1614
- package/dist/weaveapi/chat/v1/index.d.ts +0 -1
- package/dist/weaveapi/chat/v1/index.js +1 -2
- package/dist/weaveapi/consolidation/v1/consolidation.pb.d.ts +95 -0
- package/dist/weaveapi/consolidation/v1/consolidation.pb.js +770 -1
- package/dist/weaveapi/consolidation/v1/index.d.ts +0 -1
- package/dist/weaveapi/consolidation/v1/index.js +1 -2
- package/dist/weaveapi/content/v1/content.pb.d.ts +63 -0
- package/dist/weaveapi/content/v1/content.pb.js +470 -0
- package/dist/weaveapi/content/v1/index.d.ts +1 -0
- package/dist/weaveapi/content/v1/index.js +38 -0
- package/dist/weaveapi/gateway/v1/gateway.pb.d.ts +247 -523
- package/dist/weaveapi/gateway/v1/gateway.pb.js +1648 -5783
- package/dist/weaveapi/gateway/v1/index.d.ts +0 -1
- package/dist/weaveapi/gateway/v1/index.js +1 -2
- package/dist/weaveapi/index.d.ts +5 -5
- package/dist/weaveapi/index.js +6 -6
- package/dist/weaveapi/inference/v1/generate.pb.d.ts +120 -0
- package/dist/weaveapi/inference/v1/generate.pb.js +1159 -0
- package/dist/weaveapi/inference/v1/index.d.ts +4 -0
- package/dist/weaveapi/{provider → inference}/v1/index.js +4 -2
- package/dist/weaveapi/{model → inference}/v1/model.pb.d.ts +52 -15
- package/dist/weaveapi/{model → inference}/v1/model.pb.js +529 -116
- package/dist/weaveapi/{model/v1/service.pb.d.ts → inference/v1/model_route.pb.d.ts} +182 -110
- package/dist/weaveapi/{model/v1/service.pb.js → inference/v1/model_route.pb.js} +2197 -1061
- package/dist/weaveapi/inference/v1/provider.pb.d.ts +264 -0
- package/dist/weaveapi/inference/v1/provider.pb.js +2590 -0
- package/dist/weaveapi/ingestion/v1/index.d.ts +0 -2
- package/dist/weaveapi/ingestion/v1/index.js +1 -3
- package/dist/weaveapi/ingestion/v1/ingestion.pb.d.ts +543 -0
- package/dist/weaveapi/ingestion/v1/ingestion.pb.js +5550 -16
- package/dist/weaveapi/initialization/v1/index.d.ts +1 -0
- package/dist/weaveapi/initialization/v1/index.js +38 -0
- package/dist/weaveapi/initialization/v1/initialization.pb.d.ts +99 -0
- package/dist/weaveapi/initialization/v1/initialization.pb.js +510 -0
- package/dist/weaveapi/organization/v1/index.d.ts +0 -1
- package/dist/weaveapi/organization/v1/index.js +1 -2
- package/dist/weaveapi/organization/v1/organization.pb.d.ts +241 -0
- package/dist/weaveapi/organization/v1/organization.pb.js +1838 -1
- package/dist/weaveapi/reporting/index.d.ts +1 -0
- package/dist/weaveapi/reporting/index.js +38 -0
- package/dist/weaveapi/{task → reporting}/v1/index.d.ts +1 -1
- package/dist/weaveapi/{model → reporting}/v1/index.js +2 -2
- package/dist/weaveapi/reporting/v1/service.pb.d.ts +38 -0
- package/dist/weaveapi/reporting/v1/service.pb.js +167 -0
- package/dist/weaveapi/reporting/v1/usage.pb.d.ts +150 -0
- package/dist/weaveapi/reporting/v1/usage.pb.js +1837 -0
- package/dist/weaveapi/retrieval/v1/index.d.ts +0 -1
- package/dist/weaveapi/retrieval/v1/index.js +1 -2
- package/dist/weaveapi/retrieval/v1/retrieval.pb.d.ts +96 -2
- package/dist/weaveapi/retrieval/v1/retrieval.pb.js +690 -10
- package/dist/weaveapi/tool/index.d.ts +1 -0
- package/dist/weaveapi/tool/index.js +38 -0
- package/dist/weaveapi/tool/v1/index.d.ts +1 -0
- package/dist/weaveapi/tool/v1/index.js +38 -0
- package/dist/weaveapi/tool/v1/tool.pb.d.ts +370 -0
- package/dist/weaveapi/tool/v1/tool.pb.js +2717 -0
- package/dist/weaveapi/workflow/v1/index.d.ts +1 -1
- package/dist/weaveapi/workflow/v1/index.js +2 -2
- package/dist/weaveapi/workflow/v1/run.pb.d.ts +244 -0
- package/dist/weaveapi/workflow/v1/run.pb.js +2084 -0
- package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +122 -275
- package/dist/weaveapi/workflow/v1/workflow.pb.js +790 -3261
- package/dist/weavesql/weavedb/agent_sql.d.ts +173 -477
- package/dist/weavesql/weavedb/agent_sql.js +281 -758
- package/dist/weavesql/weavedb/authorization_outbox_sql.d.ts +261 -0
- package/dist/weavesql/weavedb/authorization_outbox_sql.js +445 -0
- package/dist/weavesql/weavedb/chat_sql.d.ts +103 -345
- package/dist/weavesql/weavedb/chat_sql.js +312 -597
- package/dist/weavesql/weavedb/document_consolidation_sql.d.ts +217 -0
- package/dist/weavesql/weavedb/document_consolidation_sql.js +486 -0
- package/dist/weavesql/weavedb/document_ingestion_sql.d.ts +1433 -0
- package/dist/weavesql/weavedb/document_ingestion_sql.js +3488 -0
- package/dist/weavesql/weavedb/document_retrieval_sql.d.ts +314 -0
- package/dist/weavesql/weavedb/document_retrieval_sql.js +965 -0
- package/dist/weavesql/weavedb/document_table_sql.d.ts +6 -6
- package/dist/weavesql/weavedb/document_table_sql.js +12 -12
- package/dist/weavesql/weavedb/identity_sql.d.ts +1014 -0
- package/dist/weavesql/weavedb/identity_sql.js +1811 -0
- package/dist/weavesql/weavedb/inference_model_route_sql.d.ts +161 -0
- package/dist/weavesql/weavedb/inference_model_route_sql.js +408 -0
- package/dist/weavesql/weavedb/inference_provider_sql.d.ts +125 -0
- package/dist/weavesql/weavedb/inference_provider_sql.js +228 -0
- package/dist/weavesql/weavedb/initialization_sql.d.ts +15 -0
- package/dist/weavesql/weavedb/initialization_sql.js +33 -0
- package/dist/weavesql/weavedb/model_catalog_sql.d.ts +6 -6
- package/dist/weavesql/weavedb/model_catalog_sql.js +6 -6
- package/dist/weavesql/weavedb/organization_sql.d.ts +22 -102
- package/dist/weavesql/weavedb/organization_sql.js +54 -262
- package/dist/weavesql/weavedb/tool_sql.d.ts +209 -0
- package/dist/weavesql/weavedb/tool_sql.js +407 -0
- package/dist/weavesql/weavedb/usage_sql.d.ts +356 -0
- package/dist/weavesql/weavedb/usage_sql.js +568 -0
- package/dist/weavesql/weavedb/workflow_sql.d.ts +159 -546
- package/dist/weavesql/weavedb/workflow_sql.js +281 -909
- package/package.json +1 -1
- package/dist/weaveapi/agent/v1/service.pb.d.ts +0 -397
- package/dist/weaveapi/agent/v1/service.pb.js +0 -3152
- package/dist/weaveapi/atc/v1/event.pb.d.ts +0 -134
- package/dist/weaveapi/atc/v1/event.pb.js +0 -1124
- package/dist/weaveapi/atc/v1/index.d.ts +0 -5
- package/dist/weaveapi/atc/v1/index.js +0 -42
- package/dist/weaveapi/atc/v1/message.pb.js +0 -287
- package/dist/weaveapi/atc/v1/process.pb.d.ts +0 -91
- package/dist/weaveapi/atc/v1/process.pb.js +0 -658
- package/dist/weaveapi/atc/v1/run.pb.d.ts +0 -71
- package/dist/weaveapi/atc/v1/run.pb.js +0 -525
- package/dist/weaveapi/atc/v1/service.pb.d.ts +0 -472
- package/dist/weaveapi/atc/v1/service.pb.js +0 -3093
- package/dist/weaveapi/chat/v1/service.pb.d.ts +0 -345
- package/dist/weaveapi/chat/v1/service.pb.js +0 -2545
- package/dist/weaveapi/consolidation/v1/service.pb.d.ts +0 -93
- package/dist/weaveapi/consolidation/v1/service.pb.js +0 -427
- package/dist/weaveapi/gateway/v1/service.pb.d.ts +0 -235
- package/dist/weaveapi/gateway/v1/service.pb.js +0 -651
- package/dist/weaveapi/ingestion/v1/service.pb.d.ts +0 -420
- package/dist/weaveapi/ingestion/v1/service.pb.js +0 -2311
- package/dist/weaveapi/ingestion/v1/table.pb.d.ts +0 -121
- package/dist/weaveapi/ingestion/v1/table.pb.js +0 -1478
- package/dist/weaveapi/model/v1/index.d.ts +0 -2
- package/dist/weaveapi/organization/v1/service.pb.d.ts +0 -261
- package/dist/weaveapi/organization/v1/service.pb.js +0 -1561
- package/dist/weaveapi/project/v1/index.d.ts +0 -2
- package/dist/weaveapi/project/v1/index.js +0 -39
- package/dist/weaveapi/project/v1/project.pb.d.ts +0 -105
- package/dist/weaveapi/project/v1/project.pb.js +0 -1004
- package/dist/weaveapi/project/v1/service.pb.d.ts +0 -247
- package/dist/weaveapi/project/v1/service.pb.js +0 -1994
- package/dist/weaveapi/provider/v1/index.d.ts +0 -2
- package/dist/weaveapi/provider/v1/provider.pb.d.ts +0 -137
- package/dist/weaveapi/provider/v1/provider.pb.js +0 -1000
- package/dist/weaveapi/provider/v1/service.pb.d.ts +0 -223
- package/dist/weaveapi/provider/v1/service.pb.js +0 -1888
- package/dist/weaveapi/retrieval/v1/service.pb.d.ts +0 -93
- package/dist/weaveapi/retrieval/v1/service.pb.js +0 -385
- package/dist/weaveapi/task/v1/index.js +0 -39
- package/dist/weaveapi/task/v1/service.pb.d.ts +0 -172
- package/dist/weaveapi/task/v1/service.pb.js +0 -1436
- package/dist/weaveapi/task/v1/task.pb.d.ts +0 -85
- package/dist/weaveapi/task/v1/task.pb.js +0 -802
- package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -392
- package/dist/weaveapi/workflow/v1/service.pb.js +0 -3146
- /package/dist/{weaveapi/atc → weave/authz}/index.d.ts +0 -0
- /package/dist/{weaveapi/atc → weave/authz}/index.js +0 -0
- /package/dist/{weaveapi/model → weave/filter}/index.d.ts +0 -0
- /package/dist/{weaveapi/model → weave/filter}/index.js +0 -0
- /package/dist/weaveapi/{project → content}/index.d.ts +0 -0
- /package/dist/weaveapi/{project → content}/index.js +0 -0
- /package/dist/weaveapi/{provider → inference}/index.d.ts +0 -0
- /package/dist/weaveapi/{provider → inference}/index.js +0 -0
- /package/dist/weaveapi/{task → initialization}/index.d.ts +0 -0
- /package/dist/weaveapi/{task → initialization}/index.js +0 -0
|
@@ -5,11 +5,1146 @@
|
|
|
5
5
|
// protoc unknown
|
|
6
6
|
// source: weaveapi/organization/v1/organization.proto
|
|
7
7
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
8
|
-
exports.Organization = exports.protobufPackage = void 0;
|
|
8
|
+
exports.OrganizationServiceDefinition = exports.OrganizationServiceClientImpl = exports.OrganizationServiceServiceName = exports.Organization = exports.DeleteOrganizationLogoResponse = exports.DeleteOrganizationLogoRequest = exports.PutOrganizationLogoResponse = exports.PutOrganizationLogoRequest = exports.GetOrganizationLogoResponse = exports.GetOrganizationLogoRequest = exports.DeleteOrganizationResponse = exports.DeleteOrganizationRequest = exports.UpdateOrganizationResponse = exports.UpdateOrganizationRequest = exports.GetOrganizationResponse = exports.GetOrganizationRequest = exports.CreateOrganizationResponse = exports.CreateOrganizationRequest = exports.ListOrganizationsResponse = exports.ListOrganizationsRequest = exports.protobufPackage = void 0;
|
|
9
9
|
/* eslint-disable */
|
|
10
10
|
const wire_1 = require("@bufbuild/protobuf/wire");
|
|
11
11
|
const timestamp_pb_1 = require("../../../google/protobuf/timestamp.pb");
|
|
12
12
|
exports.protobufPackage = "weaveapi.organization.v1";
|
|
13
|
+
function createBaseListOrganizationsRequest() {
|
|
14
|
+
return { pageSize: 0, pageToken: "", filter: "" };
|
|
15
|
+
}
|
|
16
|
+
exports.ListOrganizationsRequest = {
|
|
17
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
18
|
+
if (message.pageSize !== 0) {
|
|
19
|
+
writer.uint32(8).int32(message.pageSize);
|
|
20
|
+
}
|
|
21
|
+
if (message.pageToken !== "") {
|
|
22
|
+
writer.uint32(18).string(message.pageToken);
|
|
23
|
+
}
|
|
24
|
+
if (message.filter !== "") {
|
|
25
|
+
writer.uint32(26).string(message.filter);
|
|
26
|
+
}
|
|
27
|
+
return writer;
|
|
28
|
+
},
|
|
29
|
+
decode(input, length) {
|
|
30
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
31
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
32
|
+
const message = createBaseListOrganizationsRequest();
|
|
33
|
+
while (reader.pos < end) {
|
|
34
|
+
const tag = reader.uint32();
|
|
35
|
+
switch (tag >>> 3) {
|
|
36
|
+
case 1: {
|
|
37
|
+
if (tag !== 8) {
|
|
38
|
+
break;
|
|
39
|
+
}
|
|
40
|
+
message.pageSize = reader.int32();
|
|
41
|
+
continue;
|
|
42
|
+
}
|
|
43
|
+
case 2: {
|
|
44
|
+
if (tag !== 18) {
|
|
45
|
+
break;
|
|
46
|
+
}
|
|
47
|
+
message.pageToken = reader.string();
|
|
48
|
+
continue;
|
|
49
|
+
}
|
|
50
|
+
case 3: {
|
|
51
|
+
if (tag !== 26) {
|
|
52
|
+
break;
|
|
53
|
+
}
|
|
54
|
+
message.filter = reader.string();
|
|
55
|
+
continue;
|
|
56
|
+
}
|
|
57
|
+
}
|
|
58
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
59
|
+
break;
|
|
60
|
+
}
|
|
61
|
+
reader.skip(tag & 7);
|
|
62
|
+
}
|
|
63
|
+
return message;
|
|
64
|
+
},
|
|
65
|
+
fromJSON(object) {
|
|
66
|
+
return {
|
|
67
|
+
pageSize: isSet(object.pageSize)
|
|
68
|
+
? globalThis.Number(object.pageSize)
|
|
69
|
+
: isSet(object.page_size)
|
|
70
|
+
? globalThis.Number(object.page_size)
|
|
71
|
+
: 0,
|
|
72
|
+
pageToken: isSet(object.pageToken)
|
|
73
|
+
? globalThis.String(object.pageToken)
|
|
74
|
+
: isSet(object.page_token)
|
|
75
|
+
? globalThis.String(object.page_token)
|
|
76
|
+
: "",
|
|
77
|
+
filter: isSet(object.filter) ? globalThis.String(object.filter) : "",
|
|
78
|
+
};
|
|
79
|
+
},
|
|
80
|
+
toJSON(message) {
|
|
81
|
+
const obj = {};
|
|
82
|
+
if (message.pageSize !== 0) {
|
|
83
|
+
obj.pageSize = Math.round(message.pageSize);
|
|
84
|
+
}
|
|
85
|
+
if (message.pageToken !== "") {
|
|
86
|
+
obj.pageToken = message.pageToken;
|
|
87
|
+
}
|
|
88
|
+
if (message.filter !== "") {
|
|
89
|
+
obj.filter = message.filter;
|
|
90
|
+
}
|
|
91
|
+
return obj;
|
|
92
|
+
},
|
|
93
|
+
create(base) {
|
|
94
|
+
return exports.ListOrganizationsRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
95
|
+
},
|
|
96
|
+
fromPartial(object) {
|
|
97
|
+
var _a, _b, _c;
|
|
98
|
+
const message = createBaseListOrganizationsRequest();
|
|
99
|
+
message.pageSize = (_a = object.pageSize) !== null && _a !== void 0 ? _a : 0;
|
|
100
|
+
message.pageToken = (_b = object.pageToken) !== null && _b !== void 0 ? _b : "";
|
|
101
|
+
message.filter = (_c = object.filter) !== null && _c !== void 0 ? _c : "";
|
|
102
|
+
return message;
|
|
103
|
+
},
|
|
104
|
+
};
|
|
105
|
+
function createBaseListOrganizationsResponse() {
|
|
106
|
+
return { organizations: [], nextPageToken: "" };
|
|
107
|
+
}
|
|
108
|
+
exports.ListOrganizationsResponse = {
|
|
109
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
110
|
+
for (const v of message.organizations) {
|
|
111
|
+
exports.Organization.encode(v, writer.uint32(10).fork()).join();
|
|
112
|
+
}
|
|
113
|
+
if (message.nextPageToken !== "") {
|
|
114
|
+
writer.uint32(18).string(message.nextPageToken);
|
|
115
|
+
}
|
|
116
|
+
return writer;
|
|
117
|
+
},
|
|
118
|
+
decode(input, length) {
|
|
119
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
120
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
121
|
+
const message = createBaseListOrganizationsResponse();
|
|
122
|
+
while (reader.pos < end) {
|
|
123
|
+
const tag = reader.uint32();
|
|
124
|
+
switch (tag >>> 3) {
|
|
125
|
+
case 1: {
|
|
126
|
+
if (tag !== 10) {
|
|
127
|
+
break;
|
|
128
|
+
}
|
|
129
|
+
message.organizations.push(exports.Organization.decode(reader, reader.uint32()));
|
|
130
|
+
continue;
|
|
131
|
+
}
|
|
132
|
+
case 2: {
|
|
133
|
+
if (tag !== 18) {
|
|
134
|
+
break;
|
|
135
|
+
}
|
|
136
|
+
message.nextPageToken = reader.string();
|
|
137
|
+
continue;
|
|
138
|
+
}
|
|
139
|
+
}
|
|
140
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
141
|
+
break;
|
|
142
|
+
}
|
|
143
|
+
reader.skip(tag & 7);
|
|
144
|
+
}
|
|
145
|
+
return message;
|
|
146
|
+
},
|
|
147
|
+
fromJSON(object) {
|
|
148
|
+
return {
|
|
149
|
+
organizations: globalThis.Array.isArray(object === null || object === void 0 ? void 0 : object.organizations)
|
|
150
|
+
? object.organizations.map((e) => exports.Organization.fromJSON(e))
|
|
151
|
+
: [],
|
|
152
|
+
nextPageToken: isSet(object.nextPageToken)
|
|
153
|
+
? globalThis.String(object.nextPageToken)
|
|
154
|
+
: isSet(object.next_page_token)
|
|
155
|
+
? globalThis.String(object.next_page_token)
|
|
156
|
+
: "",
|
|
157
|
+
};
|
|
158
|
+
},
|
|
159
|
+
toJSON(message) {
|
|
160
|
+
var _a;
|
|
161
|
+
const obj = {};
|
|
162
|
+
if ((_a = message.organizations) === null || _a === void 0 ? void 0 : _a.length) {
|
|
163
|
+
obj.organizations = message.organizations.map((e) => exports.Organization.toJSON(e));
|
|
164
|
+
}
|
|
165
|
+
if (message.nextPageToken !== "") {
|
|
166
|
+
obj.nextPageToken = message.nextPageToken;
|
|
167
|
+
}
|
|
168
|
+
return obj;
|
|
169
|
+
},
|
|
170
|
+
create(base) {
|
|
171
|
+
return exports.ListOrganizationsResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
172
|
+
},
|
|
173
|
+
fromPartial(object) {
|
|
174
|
+
var _a;
|
|
175
|
+
var _b;
|
|
176
|
+
const message = createBaseListOrganizationsResponse();
|
|
177
|
+
message.organizations = ((_a = object.organizations) === null || _a === void 0 ? void 0 : _a.map((e) => exports.Organization.fromPartial(e))) || [];
|
|
178
|
+
message.nextPageToken = (_b = object.nextPageToken) !== null && _b !== void 0 ? _b : "";
|
|
179
|
+
return message;
|
|
180
|
+
},
|
|
181
|
+
};
|
|
182
|
+
function createBaseCreateOrganizationRequest() {
|
|
183
|
+
return {
|
|
184
|
+
name: "",
|
|
185
|
+
description: "",
|
|
186
|
+
primaryColor: "",
|
|
187
|
+
timezone: "",
|
|
188
|
+
location: "",
|
|
189
|
+
logo: new Uint8Array(0),
|
|
190
|
+
logoContentType: "",
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
exports.CreateOrganizationRequest = {
|
|
194
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
195
|
+
if (message.name !== "") {
|
|
196
|
+
writer.uint32(10).string(message.name);
|
|
197
|
+
}
|
|
198
|
+
if (message.description !== "") {
|
|
199
|
+
writer.uint32(18).string(message.description);
|
|
200
|
+
}
|
|
201
|
+
if (message.primaryColor !== "") {
|
|
202
|
+
writer.uint32(26).string(message.primaryColor);
|
|
203
|
+
}
|
|
204
|
+
if (message.timezone !== "") {
|
|
205
|
+
writer.uint32(34).string(message.timezone);
|
|
206
|
+
}
|
|
207
|
+
if (message.location !== "") {
|
|
208
|
+
writer.uint32(42).string(message.location);
|
|
209
|
+
}
|
|
210
|
+
if (message.logo.length !== 0) {
|
|
211
|
+
writer.uint32(50).bytes(message.logo);
|
|
212
|
+
}
|
|
213
|
+
if (message.logoContentType !== "") {
|
|
214
|
+
writer.uint32(58).string(message.logoContentType);
|
|
215
|
+
}
|
|
216
|
+
return writer;
|
|
217
|
+
},
|
|
218
|
+
decode(input, length) {
|
|
219
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
220
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
221
|
+
const message = createBaseCreateOrganizationRequest();
|
|
222
|
+
while (reader.pos < end) {
|
|
223
|
+
const tag = reader.uint32();
|
|
224
|
+
switch (tag >>> 3) {
|
|
225
|
+
case 1: {
|
|
226
|
+
if (tag !== 10) {
|
|
227
|
+
break;
|
|
228
|
+
}
|
|
229
|
+
message.name = reader.string();
|
|
230
|
+
continue;
|
|
231
|
+
}
|
|
232
|
+
case 2: {
|
|
233
|
+
if (tag !== 18) {
|
|
234
|
+
break;
|
|
235
|
+
}
|
|
236
|
+
message.description = reader.string();
|
|
237
|
+
continue;
|
|
238
|
+
}
|
|
239
|
+
case 3: {
|
|
240
|
+
if (tag !== 26) {
|
|
241
|
+
break;
|
|
242
|
+
}
|
|
243
|
+
message.primaryColor = reader.string();
|
|
244
|
+
continue;
|
|
245
|
+
}
|
|
246
|
+
case 4: {
|
|
247
|
+
if (tag !== 34) {
|
|
248
|
+
break;
|
|
249
|
+
}
|
|
250
|
+
message.timezone = reader.string();
|
|
251
|
+
continue;
|
|
252
|
+
}
|
|
253
|
+
case 5: {
|
|
254
|
+
if (tag !== 42) {
|
|
255
|
+
break;
|
|
256
|
+
}
|
|
257
|
+
message.location = reader.string();
|
|
258
|
+
continue;
|
|
259
|
+
}
|
|
260
|
+
case 6: {
|
|
261
|
+
if (tag !== 50) {
|
|
262
|
+
break;
|
|
263
|
+
}
|
|
264
|
+
message.logo = reader.bytes();
|
|
265
|
+
continue;
|
|
266
|
+
}
|
|
267
|
+
case 7: {
|
|
268
|
+
if (tag !== 58) {
|
|
269
|
+
break;
|
|
270
|
+
}
|
|
271
|
+
message.logoContentType = reader.string();
|
|
272
|
+
continue;
|
|
273
|
+
}
|
|
274
|
+
}
|
|
275
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
276
|
+
break;
|
|
277
|
+
}
|
|
278
|
+
reader.skip(tag & 7);
|
|
279
|
+
}
|
|
280
|
+
return message;
|
|
281
|
+
},
|
|
282
|
+
fromJSON(object) {
|
|
283
|
+
return {
|
|
284
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
285
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
286
|
+
primaryColor: isSet(object.primaryColor)
|
|
287
|
+
? globalThis.String(object.primaryColor)
|
|
288
|
+
: isSet(object.primary_color)
|
|
289
|
+
? globalThis.String(object.primary_color)
|
|
290
|
+
: "",
|
|
291
|
+
timezone: isSet(object.timezone) ? globalThis.String(object.timezone) : "",
|
|
292
|
+
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
293
|
+
logo: isSet(object.logo) ? bytesFromBase64(object.logo) : new Uint8Array(0),
|
|
294
|
+
logoContentType: isSet(object.logoContentType)
|
|
295
|
+
? globalThis.String(object.logoContentType)
|
|
296
|
+
: isSet(object.logo_content_type)
|
|
297
|
+
? globalThis.String(object.logo_content_type)
|
|
298
|
+
: "",
|
|
299
|
+
};
|
|
300
|
+
},
|
|
301
|
+
toJSON(message) {
|
|
302
|
+
const obj = {};
|
|
303
|
+
if (message.name !== "") {
|
|
304
|
+
obj.name = message.name;
|
|
305
|
+
}
|
|
306
|
+
if (message.description !== "") {
|
|
307
|
+
obj.description = message.description;
|
|
308
|
+
}
|
|
309
|
+
if (message.primaryColor !== "") {
|
|
310
|
+
obj.primaryColor = message.primaryColor;
|
|
311
|
+
}
|
|
312
|
+
if (message.timezone !== "") {
|
|
313
|
+
obj.timezone = message.timezone;
|
|
314
|
+
}
|
|
315
|
+
if (message.location !== "") {
|
|
316
|
+
obj.location = message.location;
|
|
317
|
+
}
|
|
318
|
+
if (message.logo.length !== 0) {
|
|
319
|
+
obj.logo = base64FromBytes(message.logo);
|
|
320
|
+
}
|
|
321
|
+
if (message.logoContentType !== "") {
|
|
322
|
+
obj.logoContentType = message.logoContentType;
|
|
323
|
+
}
|
|
324
|
+
return obj;
|
|
325
|
+
},
|
|
326
|
+
create(base) {
|
|
327
|
+
return exports.CreateOrganizationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
328
|
+
},
|
|
329
|
+
fromPartial(object) {
|
|
330
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
331
|
+
const message = createBaseCreateOrganizationRequest();
|
|
332
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
333
|
+
message.description = (_b = object.description) !== null && _b !== void 0 ? _b : "";
|
|
334
|
+
message.primaryColor = (_c = object.primaryColor) !== null && _c !== void 0 ? _c : "";
|
|
335
|
+
message.timezone = (_d = object.timezone) !== null && _d !== void 0 ? _d : "";
|
|
336
|
+
message.location = (_e = object.location) !== null && _e !== void 0 ? _e : "";
|
|
337
|
+
message.logo = (_f = object.logo) !== null && _f !== void 0 ? _f : new Uint8Array(0);
|
|
338
|
+
message.logoContentType = (_g = object.logoContentType) !== null && _g !== void 0 ? _g : "";
|
|
339
|
+
return message;
|
|
340
|
+
},
|
|
341
|
+
};
|
|
342
|
+
function createBaseCreateOrganizationResponse() {
|
|
343
|
+
return { organization: undefined };
|
|
344
|
+
}
|
|
345
|
+
exports.CreateOrganizationResponse = {
|
|
346
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
347
|
+
if (message.organization !== undefined) {
|
|
348
|
+
exports.Organization.encode(message.organization, writer.uint32(10).fork()).join();
|
|
349
|
+
}
|
|
350
|
+
return writer;
|
|
351
|
+
},
|
|
352
|
+
decode(input, length) {
|
|
353
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
354
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
355
|
+
const message = createBaseCreateOrganizationResponse();
|
|
356
|
+
while (reader.pos < end) {
|
|
357
|
+
const tag = reader.uint32();
|
|
358
|
+
switch (tag >>> 3) {
|
|
359
|
+
case 1: {
|
|
360
|
+
if (tag !== 10) {
|
|
361
|
+
break;
|
|
362
|
+
}
|
|
363
|
+
message.organization = exports.Organization.decode(reader, reader.uint32());
|
|
364
|
+
continue;
|
|
365
|
+
}
|
|
366
|
+
}
|
|
367
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
368
|
+
break;
|
|
369
|
+
}
|
|
370
|
+
reader.skip(tag & 7);
|
|
371
|
+
}
|
|
372
|
+
return message;
|
|
373
|
+
},
|
|
374
|
+
fromJSON(object) {
|
|
375
|
+
return { organization: isSet(object.organization) ? exports.Organization.fromJSON(object.organization) : undefined };
|
|
376
|
+
},
|
|
377
|
+
toJSON(message) {
|
|
378
|
+
const obj = {};
|
|
379
|
+
if (message.organization !== undefined) {
|
|
380
|
+
obj.organization = exports.Organization.toJSON(message.organization);
|
|
381
|
+
}
|
|
382
|
+
return obj;
|
|
383
|
+
},
|
|
384
|
+
create(base) {
|
|
385
|
+
return exports.CreateOrganizationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
386
|
+
},
|
|
387
|
+
fromPartial(object) {
|
|
388
|
+
const message = createBaseCreateOrganizationResponse();
|
|
389
|
+
message.organization = (object.organization !== undefined && object.organization !== null)
|
|
390
|
+
? exports.Organization.fromPartial(object.organization)
|
|
391
|
+
: undefined;
|
|
392
|
+
return message;
|
|
393
|
+
},
|
|
394
|
+
};
|
|
395
|
+
function createBaseGetOrganizationRequest() {
|
|
396
|
+
return { name: "" };
|
|
397
|
+
}
|
|
398
|
+
exports.GetOrganizationRequest = {
|
|
399
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
400
|
+
if (message.name !== "") {
|
|
401
|
+
writer.uint32(10).string(message.name);
|
|
402
|
+
}
|
|
403
|
+
return writer;
|
|
404
|
+
},
|
|
405
|
+
decode(input, length) {
|
|
406
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
407
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
408
|
+
const message = createBaseGetOrganizationRequest();
|
|
409
|
+
while (reader.pos < end) {
|
|
410
|
+
const tag = reader.uint32();
|
|
411
|
+
switch (tag >>> 3) {
|
|
412
|
+
case 1: {
|
|
413
|
+
if (tag !== 10) {
|
|
414
|
+
break;
|
|
415
|
+
}
|
|
416
|
+
message.name = reader.string();
|
|
417
|
+
continue;
|
|
418
|
+
}
|
|
419
|
+
}
|
|
420
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
421
|
+
break;
|
|
422
|
+
}
|
|
423
|
+
reader.skip(tag & 7);
|
|
424
|
+
}
|
|
425
|
+
return message;
|
|
426
|
+
},
|
|
427
|
+
fromJSON(object) {
|
|
428
|
+
return { name: isSet(object.name) ? globalThis.String(object.name) : "" };
|
|
429
|
+
},
|
|
430
|
+
toJSON(message) {
|
|
431
|
+
const obj = {};
|
|
432
|
+
if (message.name !== "") {
|
|
433
|
+
obj.name = message.name;
|
|
434
|
+
}
|
|
435
|
+
return obj;
|
|
436
|
+
},
|
|
437
|
+
create(base) {
|
|
438
|
+
return exports.GetOrganizationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
439
|
+
},
|
|
440
|
+
fromPartial(object) {
|
|
441
|
+
var _a;
|
|
442
|
+
const message = createBaseGetOrganizationRequest();
|
|
443
|
+
message.name = (_a = object.name) !== null && _a !== void 0 ? _a : "";
|
|
444
|
+
return message;
|
|
445
|
+
},
|
|
446
|
+
};
|
|
447
|
+
function createBaseGetOrganizationResponse() {
|
|
448
|
+
return { organization: undefined };
|
|
449
|
+
}
|
|
450
|
+
exports.GetOrganizationResponse = {
|
|
451
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
452
|
+
if (message.organization !== undefined) {
|
|
453
|
+
exports.Organization.encode(message.organization, writer.uint32(10).fork()).join();
|
|
454
|
+
}
|
|
455
|
+
return writer;
|
|
456
|
+
},
|
|
457
|
+
decode(input, length) {
|
|
458
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
459
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
460
|
+
const message = createBaseGetOrganizationResponse();
|
|
461
|
+
while (reader.pos < end) {
|
|
462
|
+
const tag = reader.uint32();
|
|
463
|
+
switch (tag >>> 3) {
|
|
464
|
+
case 1: {
|
|
465
|
+
if (tag !== 10) {
|
|
466
|
+
break;
|
|
467
|
+
}
|
|
468
|
+
message.organization = exports.Organization.decode(reader, reader.uint32());
|
|
469
|
+
continue;
|
|
470
|
+
}
|
|
471
|
+
}
|
|
472
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
473
|
+
break;
|
|
474
|
+
}
|
|
475
|
+
reader.skip(tag & 7);
|
|
476
|
+
}
|
|
477
|
+
return message;
|
|
478
|
+
},
|
|
479
|
+
fromJSON(object) {
|
|
480
|
+
return { organization: isSet(object.organization) ? exports.Organization.fromJSON(object.organization) : undefined };
|
|
481
|
+
},
|
|
482
|
+
toJSON(message) {
|
|
483
|
+
const obj = {};
|
|
484
|
+
if (message.organization !== undefined) {
|
|
485
|
+
obj.organization = exports.Organization.toJSON(message.organization);
|
|
486
|
+
}
|
|
487
|
+
return obj;
|
|
488
|
+
},
|
|
489
|
+
create(base) {
|
|
490
|
+
return exports.GetOrganizationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
491
|
+
},
|
|
492
|
+
fromPartial(object) {
|
|
493
|
+
const message = createBaseGetOrganizationResponse();
|
|
494
|
+
message.organization = (object.organization !== undefined && object.organization !== null)
|
|
495
|
+
? exports.Organization.fromPartial(object.organization)
|
|
496
|
+
: undefined;
|
|
497
|
+
return message;
|
|
498
|
+
},
|
|
499
|
+
};
|
|
500
|
+
function createBaseUpdateOrganizationRequest() {
|
|
501
|
+
return { slug: "", newSlug: "", name: "", description: "", primaryColor: "", timezone: "", location: "" };
|
|
502
|
+
}
|
|
503
|
+
exports.UpdateOrganizationRequest = {
|
|
504
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
505
|
+
if (message.slug !== "") {
|
|
506
|
+
writer.uint32(10).string(message.slug);
|
|
507
|
+
}
|
|
508
|
+
if (message.newSlug !== "") {
|
|
509
|
+
writer.uint32(18).string(message.newSlug);
|
|
510
|
+
}
|
|
511
|
+
if (message.name !== "") {
|
|
512
|
+
writer.uint32(26).string(message.name);
|
|
513
|
+
}
|
|
514
|
+
if (message.description !== "") {
|
|
515
|
+
writer.uint32(34).string(message.description);
|
|
516
|
+
}
|
|
517
|
+
if (message.primaryColor !== "") {
|
|
518
|
+
writer.uint32(42).string(message.primaryColor);
|
|
519
|
+
}
|
|
520
|
+
if (message.timezone !== "") {
|
|
521
|
+
writer.uint32(50).string(message.timezone);
|
|
522
|
+
}
|
|
523
|
+
if (message.location !== "") {
|
|
524
|
+
writer.uint32(58).string(message.location);
|
|
525
|
+
}
|
|
526
|
+
return writer;
|
|
527
|
+
},
|
|
528
|
+
decode(input, length) {
|
|
529
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
530
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
531
|
+
const message = createBaseUpdateOrganizationRequest();
|
|
532
|
+
while (reader.pos < end) {
|
|
533
|
+
const tag = reader.uint32();
|
|
534
|
+
switch (tag >>> 3) {
|
|
535
|
+
case 1: {
|
|
536
|
+
if (tag !== 10) {
|
|
537
|
+
break;
|
|
538
|
+
}
|
|
539
|
+
message.slug = reader.string();
|
|
540
|
+
continue;
|
|
541
|
+
}
|
|
542
|
+
case 2: {
|
|
543
|
+
if (tag !== 18) {
|
|
544
|
+
break;
|
|
545
|
+
}
|
|
546
|
+
message.newSlug = reader.string();
|
|
547
|
+
continue;
|
|
548
|
+
}
|
|
549
|
+
case 3: {
|
|
550
|
+
if (tag !== 26) {
|
|
551
|
+
break;
|
|
552
|
+
}
|
|
553
|
+
message.name = reader.string();
|
|
554
|
+
continue;
|
|
555
|
+
}
|
|
556
|
+
case 4: {
|
|
557
|
+
if (tag !== 34) {
|
|
558
|
+
break;
|
|
559
|
+
}
|
|
560
|
+
message.description = reader.string();
|
|
561
|
+
continue;
|
|
562
|
+
}
|
|
563
|
+
case 5: {
|
|
564
|
+
if (tag !== 42) {
|
|
565
|
+
break;
|
|
566
|
+
}
|
|
567
|
+
message.primaryColor = reader.string();
|
|
568
|
+
continue;
|
|
569
|
+
}
|
|
570
|
+
case 6: {
|
|
571
|
+
if (tag !== 50) {
|
|
572
|
+
break;
|
|
573
|
+
}
|
|
574
|
+
message.timezone = reader.string();
|
|
575
|
+
continue;
|
|
576
|
+
}
|
|
577
|
+
case 7: {
|
|
578
|
+
if (tag !== 58) {
|
|
579
|
+
break;
|
|
580
|
+
}
|
|
581
|
+
message.location = reader.string();
|
|
582
|
+
continue;
|
|
583
|
+
}
|
|
584
|
+
}
|
|
585
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
586
|
+
break;
|
|
587
|
+
}
|
|
588
|
+
reader.skip(tag & 7);
|
|
589
|
+
}
|
|
590
|
+
return message;
|
|
591
|
+
},
|
|
592
|
+
fromJSON(object) {
|
|
593
|
+
return {
|
|
594
|
+
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
595
|
+
newSlug: isSet(object.newSlug)
|
|
596
|
+
? globalThis.String(object.newSlug)
|
|
597
|
+
: isSet(object.new_slug)
|
|
598
|
+
? globalThis.String(object.new_slug)
|
|
599
|
+
: "",
|
|
600
|
+
name: isSet(object.name) ? globalThis.String(object.name) : "",
|
|
601
|
+
description: isSet(object.description) ? globalThis.String(object.description) : "",
|
|
602
|
+
primaryColor: isSet(object.primaryColor)
|
|
603
|
+
? globalThis.String(object.primaryColor)
|
|
604
|
+
: isSet(object.primary_color)
|
|
605
|
+
? globalThis.String(object.primary_color)
|
|
606
|
+
: "",
|
|
607
|
+
timezone: isSet(object.timezone) ? globalThis.String(object.timezone) : "",
|
|
608
|
+
location: isSet(object.location) ? globalThis.String(object.location) : "",
|
|
609
|
+
};
|
|
610
|
+
},
|
|
611
|
+
toJSON(message) {
|
|
612
|
+
const obj = {};
|
|
613
|
+
if (message.slug !== "") {
|
|
614
|
+
obj.slug = message.slug;
|
|
615
|
+
}
|
|
616
|
+
if (message.newSlug !== "") {
|
|
617
|
+
obj.newSlug = message.newSlug;
|
|
618
|
+
}
|
|
619
|
+
if (message.name !== "") {
|
|
620
|
+
obj.name = message.name;
|
|
621
|
+
}
|
|
622
|
+
if (message.description !== "") {
|
|
623
|
+
obj.description = message.description;
|
|
624
|
+
}
|
|
625
|
+
if (message.primaryColor !== "") {
|
|
626
|
+
obj.primaryColor = message.primaryColor;
|
|
627
|
+
}
|
|
628
|
+
if (message.timezone !== "") {
|
|
629
|
+
obj.timezone = message.timezone;
|
|
630
|
+
}
|
|
631
|
+
if (message.location !== "") {
|
|
632
|
+
obj.location = message.location;
|
|
633
|
+
}
|
|
634
|
+
return obj;
|
|
635
|
+
},
|
|
636
|
+
create(base) {
|
|
637
|
+
return exports.UpdateOrganizationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
638
|
+
},
|
|
639
|
+
fromPartial(object) {
|
|
640
|
+
var _a, _b, _c, _d, _e, _f, _g;
|
|
641
|
+
const message = createBaseUpdateOrganizationRequest();
|
|
642
|
+
message.slug = (_a = object.slug) !== null && _a !== void 0 ? _a : "";
|
|
643
|
+
message.newSlug = (_b = object.newSlug) !== null && _b !== void 0 ? _b : "";
|
|
644
|
+
message.name = (_c = object.name) !== null && _c !== void 0 ? _c : "";
|
|
645
|
+
message.description = (_d = object.description) !== null && _d !== void 0 ? _d : "";
|
|
646
|
+
message.primaryColor = (_e = object.primaryColor) !== null && _e !== void 0 ? _e : "";
|
|
647
|
+
message.timezone = (_f = object.timezone) !== null && _f !== void 0 ? _f : "";
|
|
648
|
+
message.location = (_g = object.location) !== null && _g !== void 0 ? _g : "";
|
|
649
|
+
return message;
|
|
650
|
+
},
|
|
651
|
+
};
|
|
652
|
+
function createBaseUpdateOrganizationResponse() {
|
|
653
|
+
return { organization: undefined };
|
|
654
|
+
}
|
|
655
|
+
exports.UpdateOrganizationResponse = {
|
|
656
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
657
|
+
if (message.organization !== undefined) {
|
|
658
|
+
exports.Organization.encode(message.organization, writer.uint32(10).fork()).join();
|
|
659
|
+
}
|
|
660
|
+
return writer;
|
|
661
|
+
},
|
|
662
|
+
decode(input, length) {
|
|
663
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
664
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
665
|
+
const message = createBaseUpdateOrganizationResponse();
|
|
666
|
+
while (reader.pos < end) {
|
|
667
|
+
const tag = reader.uint32();
|
|
668
|
+
switch (tag >>> 3) {
|
|
669
|
+
case 1: {
|
|
670
|
+
if (tag !== 10) {
|
|
671
|
+
break;
|
|
672
|
+
}
|
|
673
|
+
message.organization = exports.Organization.decode(reader, reader.uint32());
|
|
674
|
+
continue;
|
|
675
|
+
}
|
|
676
|
+
}
|
|
677
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
678
|
+
break;
|
|
679
|
+
}
|
|
680
|
+
reader.skip(tag & 7);
|
|
681
|
+
}
|
|
682
|
+
return message;
|
|
683
|
+
},
|
|
684
|
+
fromJSON(object) {
|
|
685
|
+
return { organization: isSet(object.organization) ? exports.Organization.fromJSON(object.organization) : undefined };
|
|
686
|
+
},
|
|
687
|
+
toJSON(message) {
|
|
688
|
+
const obj = {};
|
|
689
|
+
if (message.organization !== undefined) {
|
|
690
|
+
obj.organization = exports.Organization.toJSON(message.organization);
|
|
691
|
+
}
|
|
692
|
+
return obj;
|
|
693
|
+
},
|
|
694
|
+
create(base) {
|
|
695
|
+
return exports.UpdateOrganizationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
696
|
+
},
|
|
697
|
+
fromPartial(object) {
|
|
698
|
+
const message = createBaseUpdateOrganizationResponse();
|
|
699
|
+
message.organization = (object.organization !== undefined && object.organization !== null)
|
|
700
|
+
? exports.Organization.fromPartial(object.organization)
|
|
701
|
+
: undefined;
|
|
702
|
+
return message;
|
|
703
|
+
},
|
|
704
|
+
};
|
|
705
|
+
function createBaseDeleteOrganizationRequest() {
|
|
706
|
+
return { slug: "" };
|
|
707
|
+
}
|
|
708
|
+
exports.DeleteOrganizationRequest = {
|
|
709
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
710
|
+
if (message.slug !== "") {
|
|
711
|
+
writer.uint32(10).string(message.slug);
|
|
712
|
+
}
|
|
713
|
+
return writer;
|
|
714
|
+
},
|
|
715
|
+
decode(input, length) {
|
|
716
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
717
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
718
|
+
const message = createBaseDeleteOrganizationRequest();
|
|
719
|
+
while (reader.pos < end) {
|
|
720
|
+
const tag = reader.uint32();
|
|
721
|
+
switch (tag >>> 3) {
|
|
722
|
+
case 1: {
|
|
723
|
+
if (tag !== 10) {
|
|
724
|
+
break;
|
|
725
|
+
}
|
|
726
|
+
message.slug = reader.string();
|
|
727
|
+
continue;
|
|
728
|
+
}
|
|
729
|
+
}
|
|
730
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
731
|
+
break;
|
|
732
|
+
}
|
|
733
|
+
reader.skip(tag & 7);
|
|
734
|
+
}
|
|
735
|
+
return message;
|
|
736
|
+
},
|
|
737
|
+
fromJSON(object) {
|
|
738
|
+
return { slug: isSet(object.slug) ? globalThis.String(object.slug) : "" };
|
|
739
|
+
},
|
|
740
|
+
toJSON(message) {
|
|
741
|
+
const obj = {};
|
|
742
|
+
if (message.slug !== "") {
|
|
743
|
+
obj.slug = message.slug;
|
|
744
|
+
}
|
|
745
|
+
return obj;
|
|
746
|
+
},
|
|
747
|
+
create(base) {
|
|
748
|
+
return exports.DeleteOrganizationRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
749
|
+
},
|
|
750
|
+
fromPartial(object) {
|
|
751
|
+
var _a;
|
|
752
|
+
const message = createBaseDeleteOrganizationRequest();
|
|
753
|
+
message.slug = (_a = object.slug) !== null && _a !== void 0 ? _a : "";
|
|
754
|
+
return message;
|
|
755
|
+
},
|
|
756
|
+
};
|
|
757
|
+
function createBaseDeleteOrganizationResponse() {
|
|
758
|
+
return { deleted: false };
|
|
759
|
+
}
|
|
760
|
+
exports.DeleteOrganizationResponse = {
|
|
761
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
762
|
+
if (message.deleted !== false) {
|
|
763
|
+
writer.uint32(8).bool(message.deleted);
|
|
764
|
+
}
|
|
765
|
+
return writer;
|
|
766
|
+
},
|
|
767
|
+
decode(input, length) {
|
|
768
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
769
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
770
|
+
const message = createBaseDeleteOrganizationResponse();
|
|
771
|
+
while (reader.pos < end) {
|
|
772
|
+
const tag = reader.uint32();
|
|
773
|
+
switch (tag >>> 3) {
|
|
774
|
+
case 1: {
|
|
775
|
+
if (tag !== 8) {
|
|
776
|
+
break;
|
|
777
|
+
}
|
|
778
|
+
message.deleted = reader.bool();
|
|
779
|
+
continue;
|
|
780
|
+
}
|
|
781
|
+
}
|
|
782
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
783
|
+
break;
|
|
784
|
+
}
|
|
785
|
+
reader.skip(tag & 7);
|
|
786
|
+
}
|
|
787
|
+
return message;
|
|
788
|
+
},
|
|
789
|
+
fromJSON(object) {
|
|
790
|
+
return { deleted: isSet(object.deleted) ? globalThis.Boolean(object.deleted) : false };
|
|
791
|
+
},
|
|
792
|
+
toJSON(message) {
|
|
793
|
+
const obj = {};
|
|
794
|
+
if (message.deleted !== false) {
|
|
795
|
+
obj.deleted = message.deleted;
|
|
796
|
+
}
|
|
797
|
+
return obj;
|
|
798
|
+
},
|
|
799
|
+
create(base) {
|
|
800
|
+
return exports.DeleteOrganizationResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
801
|
+
},
|
|
802
|
+
fromPartial(object) {
|
|
803
|
+
var _a;
|
|
804
|
+
const message = createBaseDeleteOrganizationResponse();
|
|
805
|
+
message.deleted = (_a = object.deleted) !== null && _a !== void 0 ? _a : false;
|
|
806
|
+
return message;
|
|
807
|
+
},
|
|
808
|
+
};
|
|
809
|
+
function createBaseGetOrganizationLogoRequest() {
|
|
810
|
+
return { slug: "" };
|
|
811
|
+
}
|
|
812
|
+
exports.GetOrganizationLogoRequest = {
|
|
813
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
814
|
+
if (message.slug !== "") {
|
|
815
|
+
writer.uint32(10).string(message.slug);
|
|
816
|
+
}
|
|
817
|
+
return writer;
|
|
818
|
+
},
|
|
819
|
+
decode(input, length) {
|
|
820
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
821
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
822
|
+
const message = createBaseGetOrganizationLogoRequest();
|
|
823
|
+
while (reader.pos < end) {
|
|
824
|
+
const tag = reader.uint32();
|
|
825
|
+
switch (tag >>> 3) {
|
|
826
|
+
case 1: {
|
|
827
|
+
if (tag !== 10) {
|
|
828
|
+
break;
|
|
829
|
+
}
|
|
830
|
+
message.slug = reader.string();
|
|
831
|
+
continue;
|
|
832
|
+
}
|
|
833
|
+
}
|
|
834
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
835
|
+
break;
|
|
836
|
+
}
|
|
837
|
+
reader.skip(tag & 7);
|
|
838
|
+
}
|
|
839
|
+
return message;
|
|
840
|
+
},
|
|
841
|
+
fromJSON(object) {
|
|
842
|
+
return { slug: isSet(object.slug) ? globalThis.String(object.slug) : "" };
|
|
843
|
+
},
|
|
844
|
+
toJSON(message) {
|
|
845
|
+
const obj = {};
|
|
846
|
+
if (message.slug !== "") {
|
|
847
|
+
obj.slug = message.slug;
|
|
848
|
+
}
|
|
849
|
+
return obj;
|
|
850
|
+
},
|
|
851
|
+
create(base) {
|
|
852
|
+
return exports.GetOrganizationLogoRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
853
|
+
},
|
|
854
|
+
fromPartial(object) {
|
|
855
|
+
var _a;
|
|
856
|
+
const message = createBaseGetOrganizationLogoRequest();
|
|
857
|
+
message.slug = (_a = object.slug) !== null && _a !== void 0 ? _a : "";
|
|
858
|
+
return message;
|
|
859
|
+
},
|
|
860
|
+
};
|
|
861
|
+
function createBaseGetOrganizationLogoResponse() {
|
|
862
|
+
return { logo: new Uint8Array(0), logoContentType: "" };
|
|
863
|
+
}
|
|
864
|
+
exports.GetOrganizationLogoResponse = {
|
|
865
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
866
|
+
if (message.logo.length !== 0) {
|
|
867
|
+
writer.uint32(10).bytes(message.logo);
|
|
868
|
+
}
|
|
869
|
+
if (message.logoContentType !== "") {
|
|
870
|
+
writer.uint32(18).string(message.logoContentType);
|
|
871
|
+
}
|
|
872
|
+
return writer;
|
|
873
|
+
},
|
|
874
|
+
decode(input, length) {
|
|
875
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
876
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
877
|
+
const message = createBaseGetOrganizationLogoResponse();
|
|
878
|
+
while (reader.pos < end) {
|
|
879
|
+
const tag = reader.uint32();
|
|
880
|
+
switch (tag >>> 3) {
|
|
881
|
+
case 1: {
|
|
882
|
+
if (tag !== 10) {
|
|
883
|
+
break;
|
|
884
|
+
}
|
|
885
|
+
message.logo = reader.bytes();
|
|
886
|
+
continue;
|
|
887
|
+
}
|
|
888
|
+
case 2: {
|
|
889
|
+
if (tag !== 18) {
|
|
890
|
+
break;
|
|
891
|
+
}
|
|
892
|
+
message.logoContentType = reader.string();
|
|
893
|
+
continue;
|
|
894
|
+
}
|
|
895
|
+
}
|
|
896
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
897
|
+
break;
|
|
898
|
+
}
|
|
899
|
+
reader.skip(tag & 7);
|
|
900
|
+
}
|
|
901
|
+
return message;
|
|
902
|
+
},
|
|
903
|
+
fromJSON(object) {
|
|
904
|
+
return {
|
|
905
|
+
logo: isSet(object.logo) ? bytesFromBase64(object.logo) : new Uint8Array(0),
|
|
906
|
+
logoContentType: isSet(object.logoContentType)
|
|
907
|
+
? globalThis.String(object.logoContentType)
|
|
908
|
+
: isSet(object.logo_content_type)
|
|
909
|
+
? globalThis.String(object.logo_content_type)
|
|
910
|
+
: "",
|
|
911
|
+
};
|
|
912
|
+
},
|
|
913
|
+
toJSON(message) {
|
|
914
|
+
const obj = {};
|
|
915
|
+
if (message.logo.length !== 0) {
|
|
916
|
+
obj.logo = base64FromBytes(message.logo);
|
|
917
|
+
}
|
|
918
|
+
if (message.logoContentType !== "") {
|
|
919
|
+
obj.logoContentType = message.logoContentType;
|
|
920
|
+
}
|
|
921
|
+
return obj;
|
|
922
|
+
},
|
|
923
|
+
create(base) {
|
|
924
|
+
return exports.GetOrganizationLogoResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
925
|
+
},
|
|
926
|
+
fromPartial(object) {
|
|
927
|
+
var _a, _b;
|
|
928
|
+
const message = createBaseGetOrganizationLogoResponse();
|
|
929
|
+
message.logo = (_a = object.logo) !== null && _a !== void 0 ? _a : new Uint8Array(0);
|
|
930
|
+
message.logoContentType = (_b = object.logoContentType) !== null && _b !== void 0 ? _b : "";
|
|
931
|
+
return message;
|
|
932
|
+
},
|
|
933
|
+
};
|
|
934
|
+
function createBasePutOrganizationLogoRequest() {
|
|
935
|
+
return { slug: "", logo: new Uint8Array(0), logoContentType: "" };
|
|
936
|
+
}
|
|
937
|
+
exports.PutOrganizationLogoRequest = {
|
|
938
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
939
|
+
if (message.slug !== "") {
|
|
940
|
+
writer.uint32(10).string(message.slug);
|
|
941
|
+
}
|
|
942
|
+
if (message.logo.length !== 0) {
|
|
943
|
+
writer.uint32(18).bytes(message.logo);
|
|
944
|
+
}
|
|
945
|
+
if (message.logoContentType !== "") {
|
|
946
|
+
writer.uint32(26).string(message.logoContentType);
|
|
947
|
+
}
|
|
948
|
+
return writer;
|
|
949
|
+
},
|
|
950
|
+
decode(input, length) {
|
|
951
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
952
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
953
|
+
const message = createBasePutOrganizationLogoRequest();
|
|
954
|
+
while (reader.pos < end) {
|
|
955
|
+
const tag = reader.uint32();
|
|
956
|
+
switch (tag >>> 3) {
|
|
957
|
+
case 1: {
|
|
958
|
+
if (tag !== 10) {
|
|
959
|
+
break;
|
|
960
|
+
}
|
|
961
|
+
message.slug = reader.string();
|
|
962
|
+
continue;
|
|
963
|
+
}
|
|
964
|
+
case 2: {
|
|
965
|
+
if (tag !== 18) {
|
|
966
|
+
break;
|
|
967
|
+
}
|
|
968
|
+
message.logo = reader.bytes();
|
|
969
|
+
continue;
|
|
970
|
+
}
|
|
971
|
+
case 3: {
|
|
972
|
+
if (tag !== 26) {
|
|
973
|
+
break;
|
|
974
|
+
}
|
|
975
|
+
message.logoContentType = reader.string();
|
|
976
|
+
continue;
|
|
977
|
+
}
|
|
978
|
+
}
|
|
979
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
980
|
+
break;
|
|
981
|
+
}
|
|
982
|
+
reader.skip(tag & 7);
|
|
983
|
+
}
|
|
984
|
+
return message;
|
|
985
|
+
},
|
|
986
|
+
fromJSON(object) {
|
|
987
|
+
return {
|
|
988
|
+
slug: isSet(object.slug) ? globalThis.String(object.slug) : "",
|
|
989
|
+
logo: isSet(object.logo) ? bytesFromBase64(object.logo) : new Uint8Array(0),
|
|
990
|
+
logoContentType: isSet(object.logoContentType)
|
|
991
|
+
? globalThis.String(object.logoContentType)
|
|
992
|
+
: isSet(object.logo_content_type)
|
|
993
|
+
? globalThis.String(object.logo_content_type)
|
|
994
|
+
: "",
|
|
995
|
+
};
|
|
996
|
+
},
|
|
997
|
+
toJSON(message) {
|
|
998
|
+
const obj = {};
|
|
999
|
+
if (message.slug !== "") {
|
|
1000
|
+
obj.slug = message.slug;
|
|
1001
|
+
}
|
|
1002
|
+
if (message.logo.length !== 0) {
|
|
1003
|
+
obj.logo = base64FromBytes(message.logo);
|
|
1004
|
+
}
|
|
1005
|
+
if (message.logoContentType !== "") {
|
|
1006
|
+
obj.logoContentType = message.logoContentType;
|
|
1007
|
+
}
|
|
1008
|
+
return obj;
|
|
1009
|
+
},
|
|
1010
|
+
create(base) {
|
|
1011
|
+
return exports.PutOrganizationLogoRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1012
|
+
},
|
|
1013
|
+
fromPartial(object) {
|
|
1014
|
+
var _a, _b, _c;
|
|
1015
|
+
const message = createBasePutOrganizationLogoRequest();
|
|
1016
|
+
message.slug = (_a = object.slug) !== null && _a !== void 0 ? _a : "";
|
|
1017
|
+
message.logo = (_b = object.logo) !== null && _b !== void 0 ? _b : new Uint8Array(0);
|
|
1018
|
+
message.logoContentType = (_c = object.logoContentType) !== null && _c !== void 0 ? _c : "";
|
|
1019
|
+
return message;
|
|
1020
|
+
},
|
|
1021
|
+
};
|
|
1022
|
+
function createBasePutOrganizationLogoResponse() {
|
|
1023
|
+
return {};
|
|
1024
|
+
}
|
|
1025
|
+
exports.PutOrganizationLogoResponse = {
|
|
1026
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1027
|
+
return writer;
|
|
1028
|
+
},
|
|
1029
|
+
decode(input, length) {
|
|
1030
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1031
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1032
|
+
const message = createBasePutOrganizationLogoResponse();
|
|
1033
|
+
while (reader.pos < end) {
|
|
1034
|
+
const tag = reader.uint32();
|
|
1035
|
+
switch (tag >>> 3) {
|
|
1036
|
+
}
|
|
1037
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1038
|
+
break;
|
|
1039
|
+
}
|
|
1040
|
+
reader.skip(tag & 7);
|
|
1041
|
+
}
|
|
1042
|
+
return message;
|
|
1043
|
+
},
|
|
1044
|
+
fromJSON(_) {
|
|
1045
|
+
return {};
|
|
1046
|
+
},
|
|
1047
|
+
toJSON(_) {
|
|
1048
|
+
const obj = {};
|
|
1049
|
+
return obj;
|
|
1050
|
+
},
|
|
1051
|
+
create(base) {
|
|
1052
|
+
return exports.PutOrganizationLogoResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1053
|
+
},
|
|
1054
|
+
fromPartial(_) {
|
|
1055
|
+
const message = createBasePutOrganizationLogoResponse();
|
|
1056
|
+
return message;
|
|
1057
|
+
},
|
|
1058
|
+
};
|
|
1059
|
+
function createBaseDeleteOrganizationLogoRequest() {
|
|
1060
|
+
return { slug: "" };
|
|
1061
|
+
}
|
|
1062
|
+
exports.DeleteOrganizationLogoRequest = {
|
|
1063
|
+
encode(message, writer = new wire_1.BinaryWriter()) {
|
|
1064
|
+
if (message.slug !== "") {
|
|
1065
|
+
writer.uint32(10).string(message.slug);
|
|
1066
|
+
}
|
|
1067
|
+
return writer;
|
|
1068
|
+
},
|
|
1069
|
+
decode(input, length) {
|
|
1070
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1071
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1072
|
+
const message = createBaseDeleteOrganizationLogoRequest();
|
|
1073
|
+
while (reader.pos < end) {
|
|
1074
|
+
const tag = reader.uint32();
|
|
1075
|
+
switch (tag >>> 3) {
|
|
1076
|
+
case 1: {
|
|
1077
|
+
if (tag !== 10) {
|
|
1078
|
+
break;
|
|
1079
|
+
}
|
|
1080
|
+
message.slug = reader.string();
|
|
1081
|
+
continue;
|
|
1082
|
+
}
|
|
1083
|
+
}
|
|
1084
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1085
|
+
break;
|
|
1086
|
+
}
|
|
1087
|
+
reader.skip(tag & 7);
|
|
1088
|
+
}
|
|
1089
|
+
return message;
|
|
1090
|
+
},
|
|
1091
|
+
fromJSON(object) {
|
|
1092
|
+
return { slug: isSet(object.slug) ? globalThis.String(object.slug) : "" };
|
|
1093
|
+
},
|
|
1094
|
+
toJSON(message) {
|
|
1095
|
+
const obj = {};
|
|
1096
|
+
if (message.slug !== "") {
|
|
1097
|
+
obj.slug = message.slug;
|
|
1098
|
+
}
|
|
1099
|
+
return obj;
|
|
1100
|
+
},
|
|
1101
|
+
create(base) {
|
|
1102
|
+
return exports.DeleteOrganizationLogoRequest.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1103
|
+
},
|
|
1104
|
+
fromPartial(object) {
|
|
1105
|
+
var _a;
|
|
1106
|
+
const message = createBaseDeleteOrganizationLogoRequest();
|
|
1107
|
+
message.slug = (_a = object.slug) !== null && _a !== void 0 ? _a : "";
|
|
1108
|
+
return message;
|
|
1109
|
+
},
|
|
1110
|
+
};
|
|
1111
|
+
function createBaseDeleteOrganizationLogoResponse() {
|
|
1112
|
+
return {};
|
|
1113
|
+
}
|
|
1114
|
+
exports.DeleteOrganizationLogoResponse = {
|
|
1115
|
+
encode(_, writer = new wire_1.BinaryWriter()) {
|
|
1116
|
+
return writer;
|
|
1117
|
+
},
|
|
1118
|
+
decode(input, length) {
|
|
1119
|
+
const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
|
|
1120
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1121
|
+
const message = createBaseDeleteOrganizationLogoResponse();
|
|
1122
|
+
while (reader.pos < end) {
|
|
1123
|
+
const tag = reader.uint32();
|
|
1124
|
+
switch (tag >>> 3) {
|
|
1125
|
+
}
|
|
1126
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1127
|
+
break;
|
|
1128
|
+
}
|
|
1129
|
+
reader.skip(tag & 7);
|
|
1130
|
+
}
|
|
1131
|
+
return message;
|
|
1132
|
+
},
|
|
1133
|
+
fromJSON(_) {
|
|
1134
|
+
return {};
|
|
1135
|
+
},
|
|
1136
|
+
toJSON(_) {
|
|
1137
|
+
const obj = {};
|
|
1138
|
+
return obj;
|
|
1139
|
+
},
|
|
1140
|
+
create(base) {
|
|
1141
|
+
return exports.DeleteOrganizationLogoResponse.fromPartial(base !== null && base !== void 0 ? base : {});
|
|
1142
|
+
},
|
|
1143
|
+
fromPartial(_) {
|
|
1144
|
+
const message = createBaseDeleteOrganizationLogoResponse();
|
|
1145
|
+
return message;
|
|
1146
|
+
},
|
|
1147
|
+
};
|
|
13
1148
|
function createBaseOrganization() {
|
|
14
1149
|
return {
|
|
15
1150
|
id: "",
|
|
@@ -226,6 +1361,708 @@ exports.Organization = {
|
|
|
226
1361
|
return message;
|
|
227
1362
|
},
|
|
228
1363
|
};
|
|
1364
|
+
exports.OrganizationServiceServiceName = "weaveapi.organization.v1.OrganizationService";
|
|
1365
|
+
class OrganizationServiceClientImpl {
|
|
1366
|
+
constructor(rpc, opts) {
|
|
1367
|
+
this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.OrganizationServiceServiceName;
|
|
1368
|
+
this.rpc = rpc;
|
|
1369
|
+
this.ListOrganizations = this.ListOrganizations.bind(this);
|
|
1370
|
+
this.CreateOrganization = this.CreateOrganization.bind(this);
|
|
1371
|
+
this.GetOrganization = this.GetOrganization.bind(this);
|
|
1372
|
+
this.UpdateOrganization = this.UpdateOrganization.bind(this);
|
|
1373
|
+
this.DeleteOrganization = this.DeleteOrganization.bind(this);
|
|
1374
|
+
this.GetOrganizationLogo = this.GetOrganizationLogo.bind(this);
|
|
1375
|
+
this.PutOrganizationLogo = this.PutOrganizationLogo.bind(this);
|
|
1376
|
+
this.DeleteOrganizationLogo = this.DeleteOrganizationLogo.bind(this);
|
|
1377
|
+
}
|
|
1378
|
+
ListOrganizations(request) {
|
|
1379
|
+
const data = exports.ListOrganizationsRequest.encode(request).finish();
|
|
1380
|
+
const promise = this.rpc.request(this.service, "ListOrganizations", data);
|
|
1381
|
+
return promise.then((data) => exports.ListOrganizationsResponse.decode(new wire_1.BinaryReader(data)));
|
|
1382
|
+
}
|
|
1383
|
+
CreateOrganization(request) {
|
|
1384
|
+
const data = exports.CreateOrganizationRequest.encode(request).finish();
|
|
1385
|
+
const promise = this.rpc.request(this.service, "CreateOrganization", data);
|
|
1386
|
+
return promise.then((data) => exports.CreateOrganizationResponse.decode(new wire_1.BinaryReader(data)));
|
|
1387
|
+
}
|
|
1388
|
+
GetOrganization(request) {
|
|
1389
|
+
const data = exports.GetOrganizationRequest.encode(request).finish();
|
|
1390
|
+
const promise = this.rpc.request(this.service, "GetOrganization", data);
|
|
1391
|
+
return promise.then((data) => exports.GetOrganizationResponse.decode(new wire_1.BinaryReader(data)));
|
|
1392
|
+
}
|
|
1393
|
+
UpdateOrganization(request) {
|
|
1394
|
+
const data = exports.UpdateOrganizationRequest.encode(request).finish();
|
|
1395
|
+
const promise = this.rpc.request(this.service, "UpdateOrganization", data);
|
|
1396
|
+
return promise.then((data) => exports.UpdateOrganizationResponse.decode(new wire_1.BinaryReader(data)));
|
|
1397
|
+
}
|
|
1398
|
+
DeleteOrganization(request) {
|
|
1399
|
+
const data = exports.DeleteOrganizationRequest.encode(request).finish();
|
|
1400
|
+
const promise = this.rpc.request(this.service, "DeleteOrganization", data);
|
|
1401
|
+
return promise.then((data) => exports.DeleteOrganizationResponse.decode(new wire_1.BinaryReader(data)));
|
|
1402
|
+
}
|
|
1403
|
+
GetOrganizationLogo(request) {
|
|
1404
|
+
const data = exports.GetOrganizationLogoRequest.encode(request).finish();
|
|
1405
|
+
const promise = this.rpc.request(this.service, "GetOrganizationLogo", data);
|
|
1406
|
+
return promise.then((data) => exports.GetOrganizationLogoResponse.decode(new wire_1.BinaryReader(data)));
|
|
1407
|
+
}
|
|
1408
|
+
PutOrganizationLogo(request) {
|
|
1409
|
+
const data = exports.PutOrganizationLogoRequest.encode(request).finish();
|
|
1410
|
+
const promise = this.rpc.request(this.service, "PutOrganizationLogo", data);
|
|
1411
|
+
return promise.then((data) => exports.PutOrganizationLogoResponse.decode(new wire_1.BinaryReader(data)));
|
|
1412
|
+
}
|
|
1413
|
+
DeleteOrganizationLogo(request) {
|
|
1414
|
+
const data = exports.DeleteOrganizationLogoRequest.encode(request).finish();
|
|
1415
|
+
const promise = this.rpc.request(this.service, "DeleteOrganizationLogo", data);
|
|
1416
|
+
return promise.then((data) => exports.DeleteOrganizationLogoResponse.decode(new wire_1.BinaryReader(data)));
|
|
1417
|
+
}
|
|
1418
|
+
}
|
|
1419
|
+
exports.OrganizationServiceClientImpl = OrganizationServiceClientImpl;
|
|
1420
|
+
exports.OrganizationServiceDefinition = {
|
|
1421
|
+
name: "OrganizationService",
|
|
1422
|
+
fullName: "weaveapi.organization.v1.OrganizationService",
|
|
1423
|
+
methods: {
|
|
1424
|
+
listOrganizations: {
|
|
1425
|
+
name: "ListOrganizations",
|
|
1426
|
+
requestType: exports.ListOrganizationsRequest,
|
|
1427
|
+
requestStream: false,
|
|
1428
|
+
responseType: exports.ListOrganizationsResponse,
|
|
1429
|
+
responseStream: false,
|
|
1430
|
+
options: {
|
|
1431
|
+
_unknownFields: {
|
|
1432
|
+
408002: [
|
|
1433
|
+
new Uint8Array([
|
|
1434
|
+
26,
|
|
1435
|
+
10,
|
|
1436
|
+
12,
|
|
1437
|
+
111,
|
|
1438
|
+
114,
|
|
1439
|
+
103,
|
|
1440
|
+
97,
|
|
1441
|
+
110,
|
|
1442
|
+
105,
|
|
1443
|
+
122,
|
|
1444
|
+
97,
|
|
1445
|
+
116,
|
|
1446
|
+
105,
|
|
1447
|
+
111,
|
|
1448
|
+
110,
|
|
1449
|
+
18,
|
|
1450
|
+
6,
|
|
1451
|
+
109,
|
|
1452
|
+
101,
|
|
1453
|
+
109,
|
|
1454
|
+
98,
|
|
1455
|
+
101,
|
|
1456
|
+
114,
|
|
1457
|
+
26,
|
|
1458
|
+
2,
|
|
1459
|
+
8,
|
|
1460
|
+
1,
|
|
1461
|
+
]),
|
|
1462
|
+
],
|
|
1463
|
+
578365826: [
|
|
1464
|
+
new Uint8Array([
|
|
1465
|
+
19,
|
|
1466
|
+
18,
|
|
1467
|
+
17,
|
|
1468
|
+
47,
|
|
1469
|
+
118,
|
|
1470
|
+
49,
|
|
1471
|
+
47,
|
|
1472
|
+
111,
|
|
1473
|
+
114,
|
|
1474
|
+
103,
|
|
1475
|
+
97,
|
|
1476
|
+
110,
|
|
1477
|
+
105,
|
|
1478
|
+
122,
|
|
1479
|
+
97,
|
|
1480
|
+
116,
|
|
1481
|
+
105,
|
|
1482
|
+
111,
|
|
1483
|
+
110,
|
|
1484
|
+
115,
|
|
1485
|
+
]),
|
|
1486
|
+
],
|
|
1487
|
+
},
|
|
1488
|
+
},
|
|
1489
|
+
},
|
|
1490
|
+
createOrganization: {
|
|
1491
|
+
name: "CreateOrganization",
|
|
1492
|
+
requestType: exports.CreateOrganizationRequest,
|
|
1493
|
+
requestStream: false,
|
|
1494
|
+
responseType: exports.CreateOrganizationResponse,
|
|
1495
|
+
responseStream: false,
|
|
1496
|
+
options: {
|
|
1497
|
+
_unknownFields: {
|
|
1498
|
+
408002: [
|
|
1499
|
+
new Uint8Array([
|
|
1500
|
+
52,
|
|
1501
|
+
10,
|
|
1502
|
+
12,
|
|
1503
|
+
111,
|
|
1504
|
+
114,
|
|
1505
|
+
103,
|
|
1506
|
+
97,
|
|
1507
|
+
110,
|
|
1508
|
+
105,
|
|
1509
|
+
122,
|
|
1510
|
+
97,
|
|
1511
|
+
116,
|
|
1512
|
+
105,
|
|
1513
|
+
111,
|
|
1514
|
+
110,
|
|
1515
|
+
18,
|
|
1516
|
+
32,
|
|
1517
|
+
99,
|
|
1518
|
+
97,
|
|
1519
|
+
110,
|
|
1520
|
+
95,
|
|
1521
|
+
117,
|
|
1522
|
+
112,
|
|
1523
|
+
100,
|
|
1524
|
+
97,
|
|
1525
|
+
116,
|
|
1526
|
+
101,
|
|
1527
|
+
95,
|
|
1528
|
+
111,
|
|
1529
|
+
114,
|
|
1530
|
+
103,
|
|
1531
|
+
97,
|
|
1532
|
+
110,
|
|
1533
|
+
105,
|
|
1534
|
+
122,
|
|
1535
|
+
97,
|
|
1536
|
+
116,
|
|
1537
|
+
105,
|
|
1538
|
+
111,
|
|
1539
|
+
110,
|
|
1540
|
+
95,
|
|
1541
|
+
115,
|
|
1542
|
+
101,
|
|
1543
|
+
116,
|
|
1544
|
+
116,
|
|
1545
|
+
105,
|
|
1546
|
+
110,
|
|
1547
|
+
103,
|
|
1548
|
+
115,
|
|
1549
|
+
26,
|
|
1550
|
+
2,
|
|
1551
|
+
8,
|
|
1552
|
+
1,
|
|
1553
|
+
]),
|
|
1554
|
+
],
|
|
1555
|
+
578365826: [
|
|
1556
|
+
new Uint8Array([
|
|
1557
|
+
22,
|
|
1558
|
+
58,
|
|
1559
|
+
1,
|
|
1560
|
+
42,
|
|
1561
|
+
34,
|
|
1562
|
+
17,
|
|
1563
|
+
47,
|
|
1564
|
+
118,
|
|
1565
|
+
49,
|
|
1566
|
+
47,
|
|
1567
|
+
111,
|
|
1568
|
+
114,
|
|
1569
|
+
103,
|
|
1570
|
+
97,
|
|
1571
|
+
110,
|
|
1572
|
+
105,
|
|
1573
|
+
122,
|
|
1574
|
+
97,
|
|
1575
|
+
116,
|
|
1576
|
+
105,
|
|
1577
|
+
111,
|
|
1578
|
+
110,
|
|
1579
|
+
115,
|
|
1580
|
+
]),
|
|
1581
|
+
],
|
|
1582
|
+
},
|
|
1583
|
+
},
|
|
1584
|
+
},
|
|
1585
|
+
getOrganization: {
|
|
1586
|
+
name: "GetOrganization",
|
|
1587
|
+
requestType: exports.GetOrganizationRequest,
|
|
1588
|
+
requestStream: false,
|
|
1589
|
+
responseType: exports.GetOrganizationResponse,
|
|
1590
|
+
responseStream: false,
|
|
1591
|
+
options: {
|
|
1592
|
+
_unknownFields: {
|
|
1593
|
+
408002: [
|
|
1594
|
+
new Uint8Array([
|
|
1595
|
+
26,
|
|
1596
|
+
10,
|
|
1597
|
+
12,
|
|
1598
|
+
111,
|
|
1599
|
+
114,
|
|
1600
|
+
103,
|
|
1601
|
+
97,
|
|
1602
|
+
110,
|
|
1603
|
+
105,
|
|
1604
|
+
122,
|
|
1605
|
+
97,
|
|
1606
|
+
116,
|
|
1607
|
+
105,
|
|
1608
|
+
111,
|
|
1609
|
+
110,
|
|
1610
|
+
18,
|
|
1611
|
+
6,
|
|
1612
|
+
109,
|
|
1613
|
+
101,
|
|
1614
|
+
109,
|
|
1615
|
+
98,
|
|
1616
|
+
101,
|
|
1617
|
+
114,
|
|
1618
|
+
26,
|
|
1619
|
+
2,
|
|
1620
|
+
8,
|
|
1621
|
+
1,
|
|
1622
|
+
]),
|
|
1623
|
+
],
|
|
1624
|
+
578365826: [
|
|
1625
|
+
new Uint8Array([
|
|
1626
|
+
28,
|
|
1627
|
+
18,
|
|
1628
|
+
26,
|
|
1629
|
+
47,
|
|
1630
|
+
118,
|
|
1631
|
+
49,
|
|
1632
|
+
47,
|
|
1633
|
+
123,
|
|
1634
|
+
110,
|
|
1635
|
+
97,
|
|
1636
|
+
109,
|
|
1637
|
+
101,
|
|
1638
|
+
61,
|
|
1639
|
+
111,
|
|
1640
|
+
114,
|
|
1641
|
+
103,
|
|
1642
|
+
97,
|
|
1643
|
+
110,
|
|
1644
|
+
105,
|
|
1645
|
+
122,
|
|
1646
|
+
97,
|
|
1647
|
+
116,
|
|
1648
|
+
105,
|
|
1649
|
+
111,
|
|
1650
|
+
110,
|
|
1651
|
+
115,
|
|
1652
|
+
47,
|
|
1653
|
+
42,
|
|
1654
|
+
125,
|
|
1655
|
+
]),
|
|
1656
|
+
],
|
|
1657
|
+
},
|
|
1658
|
+
},
|
|
1659
|
+
},
|
|
1660
|
+
updateOrganization: {
|
|
1661
|
+
name: "UpdateOrganization",
|
|
1662
|
+
requestType: exports.UpdateOrganizationRequest,
|
|
1663
|
+
requestStream: false,
|
|
1664
|
+
responseType: exports.UpdateOrganizationResponse,
|
|
1665
|
+
responseStream: false,
|
|
1666
|
+
options: {
|
|
1667
|
+
_unknownFields: {
|
|
1668
|
+
408002: [
|
|
1669
|
+
new Uint8Array([
|
|
1670
|
+
52,
|
|
1671
|
+
10,
|
|
1672
|
+
12,
|
|
1673
|
+
111,
|
|
1674
|
+
114,
|
|
1675
|
+
103,
|
|
1676
|
+
97,
|
|
1677
|
+
110,
|
|
1678
|
+
105,
|
|
1679
|
+
122,
|
|
1680
|
+
97,
|
|
1681
|
+
116,
|
|
1682
|
+
105,
|
|
1683
|
+
111,
|
|
1684
|
+
110,
|
|
1685
|
+
18,
|
|
1686
|
+
32,
|
|
1687
|
+
99,
|
|
1688
|
+
97,
|
|
1689
|
+
110,
|
|
1690
|
+
95,
|
|
1691
|
+
117,
|
|
1692
|
+
112,
|
|
1693
|
+
100,
|
|
1694
|
+
97,
|
|
1695
|
+
116,
|
|
1696
|
+
101,
|
|
1697
|
+
95,
|
|
1698
|
+
111,
|
|
1699
|
+
114,
|
|
1700
|
+
103,
|
|
1701
|
+
97,
|
|
1702
|
+
110,
|
|
1703
|
+
105,
|
|
1704
|
+
122,
|
|
1705
|
+
97,
|
|
1706
|
+
116,
|
|
1707
|
+
105,
|
|
1708
|
+
111,
|
|
1709
|
+
110,
|
|
1710
|
+
95,
|
|
1711
|
+
115,
|
|
1712
|
+
101,
|
|
1713
|
+
116,
|
|
1714
|
+
116,
|
|
1715
|
+
105,
|
|
1716
|
+
110,
|
|
1717
|
+
103,
|
|
1718
|
+
115,
|
|
1719
|
+
26,
|
|
1720
|
+
2,
|
|
1721
|
+
8,
|
|
1722
|
+
1,
|
|
1723
|
+
]),
|
|
1724
|
+
],
|
|
1725
|
+
578365826: [
|
|
1726
|
+
new Uint8Array([
|
|
1727
|
+
29,
|
|
1728
|
+
58,
|
|
1729
|
+
1,
|
|
1730
|
+
42,
|
|
1731
|
+
50,
|
|
1732
|
+
24,
|
|
1733
|
+
47,
|
|
1734
|
+
118,
|
|
1735
|
+
49,
|
|
1736
|
+
47,
|
|
1737
|
+
111,
|
|
1738
|
+
114,
|
|
1739
|
+
103,
|
|
1740
|
+
97,
|
|
1741
|
+
110,
|
|
1742
|
+
105,
|
|
1743
|
+
122,
|
|
1744
|
+
97,
|
|
1745
|
+
116,
|
|
1746
|
+
105,
|
|
1747
|
+
111,
|
|
1748
|
+
110,
|
|
1749
|
+
115,
|
|
1750
|
+
47,
|
|
1751
|
+
123,
|
|
1752
|
+
115,
|
|
1753
|
+
108,
|
|
1754
|
+
117,
|
|
1755
|
+
103,
|
|
1756
|
+
125,
|
|
1757
|
+
]),
|
|
1758
|
+
],
|
|
1759
|
+
},
|
|
1760
|
+
},
|
|
1761
|
+
},
|
|
1762
|
+
deleteOrganization: {
|
|
1763
|
+
name: "DeleteOrganization",
|
|
1764
|
+
requestType: exports.DeleteOrganizationRequest,
|
|
1765
|
+
requestStream: false,
|
|
1766
|
+
responseType: exports.DeleteOrganizationResponse,
|
|
1767
|
+
responseStream: false,
|
|
1768
|
+
options: {
|
|
1769
|
+
_unknownFields: {
|
|
1770
|
+
408002: [
|
|
1771
|
+
new Uint8Array([
|
|
1772
|
+
52,
|
|
1773
|
+
10,
|
|
1774
|
+
12,
|
|
1775
|
+
111,
|
|
1776
|
+
114,
|
|
1777
|
+
103,
|
|
1778
|
+
97,
|
|
1779
|
+
110,
|
|
1780
|
+
105,
|
|
1781
|
+
122,
|
|
1782
|
+
97,
|
|
1783
|
+
116,
|
|
1784
|
+
105,
|
|
1785
|
+
111,
|
|
1786
|
+
110,
|
|
1787
|
+
18,
|
|
1788
|
+
32,
|
|
1789
|
+
99,
|
|
1790
|
+
97,
|
|
1791
|
+
110,
|
|
1792
|
+
95,
|
|
1793
|
+
117,
|
|
1794
|
+
112,
|
|
1795
|
+
100,
|
|
1796
|
+
97,
|
|
1797
|
+
116,
|
|
1798
|
+
101,
|
|
1799
|
+
95,
|
|
1800
|
+
111,
|
|
1801
|
+
114,
|
|
1802
|
+
103,
|
|
1803
|
+
97,
|
|
1804
|
+
110,
|
|
1805
|
+
105,
|
|
1806
|
+
122,
|
|
1807
|
+
97,
|
|
1808
|
+
116,
|
|
1809
|
+
105,
|
|
1810
|
+
111,
|
|
1811
|
+
110,
|
|
1812
|
+
95,
|
|
1813
|
+
115,
|
|
1814
|
+
101,
|
|
1815
|
+
116,
|
|
1816
|
+
116,
|
|
1817
|
+
105,
|
|
1818
|
+
110,
|
|
1819
|
+
103,
|
|
1820
|
+
115,
|
|
1821
|
+
26,
|
|
1822
|
+
2,
|
|
1823
|
+
8,
|
|
1824
|
+
1,
|
|
1825
|
+
]),
|
|
1826
|
+
],
|
|
1827
|
+
578365826: [
|
|
1828
|
+
new Uint8Array([
|
|
1829
|
+
26,
|
|
1830
|
+
42,
|
|
1831
|
+
24,
|
|
1832
|
+
47,
|
|
1833
|
+
118,
|
|
1834
|
+
49,
|
|
1835
|
+
47,
|
|
1836
|
+
111,
|
|
1837
|
+
114,
|
|
1838
|
+
103,
|
|
1839
|
+
97,
|
|
1840
|
+
110,
|
|
1841
|
+
105,
|
|
1842
|
+
122,
|
|
1843
|
+
97,
|
|
1844
|
+
116,
|
|
1845
|
+
105,
|
|
1846
|
+
111,
|
|
1847
|
+
110,
|
|
1848
|
+
115,
|
|
1849
|
+
47,
|
|
1850
|
+
123,
|
|
1851
|
+
115,
|
|
1852
|
+
108,
|
|
1853
|
+
117,
|
|
1854
|
+
103,
|
|
1855
|
+
125,
|
|
1856
|
+
]),
|
|
1857
|
+
],
|
|
1858
|
+
},
|
|
1859
|
+
},
|
|
1860
|
+
},
|
|
1861
|
+
getOrganizationLogo: {
|
|
1862
|
+
name: "GetOrganizationLogo",
|
|
1863
|
+
requestType: exports.GetOrganizationLogoRequest,
|
|
1864
|
+
requestStream: false,
|
|
1865
|
+
responseType: exports.GetOrganizationLogoResponse,
|
|
1866
|
+
responseStream: false,
|
|
1867
|
+
options: {
|
|
1868
|
+
_unknownFields: {
|
|
1869
|
+
408002: [
|
|
1870
|
+
new Uint8Array([
|
|
1871
|
+
26,
|
|
1872
|
+
10,
|
|
1873
|
+
12,
|
|
1874
|
+
111,
|
|
1875
|
+
114,
|
|
1876
|
+
103,
|
|
1877
|
+
97,
|
|
1878
|
+
110,
|
|
1879
|
+
105,
|
|
1880
|
+
122,
|
|
1881
|
+
97,
|
|
1882
|
+
116,
|
|
1883
|
+
105,
|
|
1884
|
+
111,
|
|
1885
|
+
110,
|
|
1886
|
+
18,
|
|
1887
|
+
6,
|
|
1888
|
+
109,
|
|
1889
|
+
101,
|
|
1890
|
+
109,
|
|
1891
|
+
98,
|
|
1892
|
+
101,
|
|
1893
|
+
114,
|
|
1894
|
+
26,
|
|
1895
|
+
2,
|
|
1896
|
+
8,
|
|
1897
|
+
1,
|
|
1898
|
+
]),
|
|
1899
|
+
],
|
|
1900
|
+
},
|
|
1901
|
+
},
|
|
1902
|
+
},
|
|
1903
|
+
putOrganizationLogo: {
|
|
1904
|
+
name: "PutOrganizationLogo",
|
|
1905
|
+
requestType: exports.PutOrganizationLogoRequest,
|
|
1906
|
+
requestStream: false,
|
|
1907
|
+
responseType: exports.PutOrganizationLogoResponse,
|
|
1908
|
+
responseStream: false,
|
|
1909
|
+
options: {
|
|
1910
|
+
_unknownFields: {
|
|
1911
|
+
408002: [
|
|
1912
|
+
new Uint8Array([
|
|
1913
|
+
52,
|
|
1914
|
+
10,
|
|
1915
|
+
12,
|
|
1916
|
+
111,
|
|
1917
|
+
114,
|
|
1918
|
+
103,
|
|
1919
|
+
97,
|
|
1920
|
+
110,
|
|
1921
|
+
105,
|
|
1922
|
+
122,
|
|
1923
|
+
97,
|
|
1924
|
+
116,
|
|
1925
|
+
105,
|
|
1926
|
+
111,
|
|
1927
|
+
110,
|
|
1928
|
+
18,
|
|
1929
|
+
32,
|
|
1930
|
+
99,
|
|
1931
|
+
97,
|
|
1932
|
+
110,
|
|
1933
|
+
95,
|
|
1934
|
+
117,
|
|
1935
|
+
112,
|
|
1936
|
+
100,
|
|
1937
|
+
97,
|
|
1938
|
+
116,
|
|
1939
|
+
101,
|
|
1940
|
+
95,
|
|
1941
|
+
111,
|
|
1942
|
+
114,
|
|
1943
|
+
103,
|
|
1944
|
+
97,
|
|
1945
|
+
110,
|
|
1946
|
+
105,
|
|
1947
|
+
122,
|
|
1948
|
+
97,
|
|
1949
|
+
116,
|
|
1950
|
+
105,
|
|
1951
|
+
111,
|
|
1952
|
+
110,
|
|
1953
|
+
95,
|
|
1954
|
+
115,
|
|
1955
|
+
101,
|
|
1956
|
+
116,
|
|
1957
|
+
116,
|
|
1958
|
+
105,
|
|
1959
|
+
110,
|
|
1960
|
+
103,
|
|
1961
|
+
115,
|
|
1962
|
+
26,
|
|
1963
|
+
2,
|
|
1964
|
+
8,
|
|
1965
|
+
1,
|
|
1966
|
+
]),
|
|
1967
|
+
],
|
|
1968
|
+
},
|
|
1969
|
+
},
|
|
1970
|
+
},
|
|
1971
|
+
deleteOrganizationLogo: {
|
|
1972
|
+
name: "DeleteOrganizationLogo",
|
|
1973
|
+
requestType: exports.DeleteOrganizationLogoRequest,
|
|
1974
|
+
requestStream: false,
|
|
1975
|
+
responseType: exports.DeleteOrganizationLogoResponse,
|
|
1976
|
+
responseStream: false,
|
|
1977
|
+
options: {
|
|
1978
|
+
_unknownFields: {
|
|
1979
|
+
408002: [
|
|
1980
|
+
new Uint8Array([
|
|
1981
|
+
52,
|
|
1982
|
+
10,
|
|
1983
|
+
12,
|
|
1984
|
+
111,
|
|
1985
|
+
114,
|
|
1986
|
+
103,
|
|
1987
|
+
97,
|
|
1988
|
+
110,
|
|
1989
|
+
105,
|
|
1990
|
+
122,
|
|
1991
|
+
97,
|
|
1992
|
+
116,
|
|
1993
|
+
105,
|
|
1994
|
+
111,
|
|
1995
|
+
110,
|
|
1996
|
+
18,
|
|
1997
|
+
32,
|
|
1998
|
+
99,
|
|
1999
|
+
97,
|
|
2000
|
+
110,
|
|
2001
|
+
95,
|
|
2002
|
+
117,
|
|
2003
|
+
112,
|
|
2004
|
+
100,
|
|
2005
|
+
97,
|
|
2006
|
+
116,
|
|
2007
|
+
101,
|
|
2008
|
+
95,
|
|
2009
|
+
111,
|
|
2010
|
+
114,
|
|
2011
|
+
103,
|
|
2012
|
+
97,
|
|
2013
|
+
110,
|
|
2014
|
+
105,
|
|
2015
|
+
122,
|
|
2016
|
+
97,
|
|
2017
|
+
116,
|
|
2018
|
+
105,
|
|
2019
|
+
111,
|
|
2020
|
+
110,
|
|
2021
|
+
95,
|
|
2022
|
+
115,
|
|
2023
|
+
101,
|
|
2024
|
+
116,
|
|
2025
|
+
116,
|
|
2026
|
+
105,
|
|
2027
|
+
110,
|
|
2028
|
+
103,
|
|
2029
|
+
115,
|
|
2030
|
+
26,
|
|
2031
|
+
2,
|
|
2032
|
+
8,
|
|
2033
|
+
1,
|
|
2034
|
+
]),
|
|
2035
|
+
],
|
|
2036
|
+
},
|
|
2037
|
+
},
|
|
2038
|
+
},
|
|
2039
|
+
},
|
|
2040
|
+
};
|
|
2041
|
+
function bytesFromBase64(b64) {
|
|
2042
|
+
if (globalThis.Buffer) {
|
|
2043
|
+
return Uint8Array.from(globalThis.Buffer.from(b64, "base64"));
|
|
2044
|
+
}
|
|
2045
|
+
else {
|
|
2046
|
+
const bin = globalThis.atob(b64);
|
|
2047
|
+
const arr = new Uint8Array(bin.length);
|
|
2048
|
+
for (let i = 0; i < bin.length; ++i) {
|
|
2049
|
+
arr[i] = bin.charCodeAt(i);
|
|
2050
|
+
}
|
|
2051
|
+
return arr;
|
|
2052
|
+
}
|
|
2053
|
+
}
|
|
2054
|
+
function base64FromBytes(arr) {
|
|
2055
|
+
if (globalThis.Buffer) {
|
|
2056
|
+
return globalThis.Buffer.from(arr).toString("base64");
|
|
2057
|
+
}
|
|
2058
|
+
else {
|
|
2059
|
+
const bin = [];
|
|
2060
|
+
arr.forEach((byte) => {
|
|
2061
|
+
bin.push(globalThis.String.fromCharCode(byte));
|
|
2062
|
+
});
|
|
2063
|
+
return globalThis.btoa(bin.join(""));
|
|
2064
|
+
}
|
|
2065
|
+
}
|
|
229
2066
|
function toTimestamp(date) {
|
|
230
2067
|
const seconds = Math.trunc(date.getTime() / 1000);
|
|
231
2068
|
const nanos = (date.getTime() % 1000) * 1000000;
|