@miradorlabs/web-grpc 2.28.0 → 2.29.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/package.json
CHANGED
|
@@ -426,6 +426,23 @@ export interface ListProjectsResponse {
|
|
|
426
426
|
projects: Project[];
|
|
427
427
|
}
|
|
428
428
|
|
|
429
|
+
export interface AddDemoProjectRequest {
|
|
430
|
+
organizationId: string;
|
|
431
|
+
}
|
|
432
|
+
|
|
433
|
+
export interface AddDemoProjectResponse {
|
|
434
|
+
status: ResponseStatus | undefined;
|
|
435
|
+
project: Project | undefined;
|
|
436
|
+
}
|
|
437
|
+
|
|
438
|
+
export interface RemoveDemoProjectRequest {
|
|
439
|
+
organizationId: string;
|
|
440
|
+
}
|
|
441
|
+
|
|
442
|
+
export interface RemoveDemoProjectResponse {
|
|
443
|
+
status: ResponseStatus | undefined;
|
|
444
|
+
}
|
|
445
|
+
|
|
429
446
|
export interface Project {
|
|
430
447
|
projectId: string;
|
|
431
448
|
organizationId: string;
|
|
@@ -438,6 +455,11 @@ export interface Project {
|
|
|
438
455
|
| undefined;
|
|
439
456
|
/** user_id (UUID) who created the project */
|
|
440
457
|
createdBy: string;
|
|
458
|
+
/**
|
|
459
|
+
* demo marks the shared demo project: read-only, and owned by the demo
|
|
460
|
+
* organization named in organization_id rather than by the caller's.
|
|
461
|
+
*/
|
|
462
|
+
demo: boolean;
|
|
441
463
|
}
|
|
442
464
|
|
|
443
465
|
export interface CreateWebApiKeyRequest {
|
|
@@ -1720,6 +1742,274 @@ export const ListProjectsResponse: MessageFns<ListProjectsResponse> = {
|
|
|
1720
1742
|
},
|
|
1721
1743
|
};
|
|
1722
1744
|
|
|
1745
|
+
function createBaseAddDemoProjectRequest(): AddDemoProjectRequest {
|
|
1746
|
+
return { organizationId: "" };
|
|
1747
|
+
}
|
|
1748
|
+
|
|
1749
|
+
export const AddDemoProjectRequest: MessageFns<AddDemoProjectRequest> = {
|
|
1750
|
+
encode(message: AddDemoProjectRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1751
|
+
if (message.organizationId !== "") {
|
|
1752
|
+
writer.uint32(10).string(message.organizationId);
|
|
1753
|
+
}
|
|
1754
|
+
return writer;
|
|
1755
|
+
},
|
|
1756
|
+
|
|
1757
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AddDemoProjectRequest {
|
|
1758
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1759
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1760
|
+
const message = createBaseAddDemoProjectRequest();
|
|
1761
|
+
while (reader.pos < end) {
|
|
1762
|
+
const tag = reader.uint32();
|
|
1763
|
+
switch (tag >>> 3) {
|
|
1764
|
+
case 1: {
|
|
1765
|
+
if (tag !== 10) {
|
|
1766
|
+
break;
|
|
1767
|
+
}
|
|
1768
|
+
|
|
1769
|
+
message.organizationId = reader.string();
|
|
1770
|
+
continue;
|
|
1771
|
+
}
|
|
1772
|
+
}
|
|
1773
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1774
|
+
break;
|
|
1775
|
+
}
|
|
1776
|
+
reader.skip(tag & 7);
|
|
1777
|
+
}
|
|
1778
|
+
return message;
|
|
1779
|
+
},
|
|
1780
|
+
|
|
1781
|
+
fromJSON(object: any): AddDemoProjectRequest {
|
|
1782
|
+
return {
|
|
1783
|
+
organizationId: isSet(object.organizationId)
|
|
1784
|
+
? globalThis.String(object.organizationId)
|
|
1785
|
+
: isSet(object.organization_id)
|
|
1786
|
+
? globalThis.String(object.organization_id)
|
|
1787
|
+
: "",
|
|
1788
|
+
};
|
|
1789
|
+
},
|
|
1790
|
+
|
|
1791
|
+
toJSON(message: AddDemoProjectRequest): unknown {
|
|
1792
|
+
const obj: any = {};
|
|
1793
|
+
if (message.organizationId !== "") {
|
|
1794
|
+
obj.organizationId = message.organizationId;
|
|
1795
|
+
}
|
|
1796
|
+
return obj;
|
|
1797
|
+
},
|
|
1798
|
+
|
|
1799
|
+
create<I extends Exact<DeepPartial<AddDemoProjectRequest>, I>>(base?: I): AddDemoProjectRequest {
|
|
1800
|
+
return AddDemoProjectRequest.fromPartial(base ?? ({} as any));
|
|
1801
|
+
},
|
|
1802
|
+
fromPartial<I extends Exact<DeepPartial<AddDemoProjectRequest>, I>>(object: I): AddDemoProjectRequest {
|
|
1803
|
+
const message = createBaseAddDemoProjectRequest();
|
|
1804
|
+
message.organizationId = object.organizationId ?? "";
|
|
1805
|
+
return message;
|
|
1806
|
+
},
|
|
1807
|
+
};
|
|
1808
|
+
|
|
1809
|
+
function createBaseAddDemoProjectResponse(): AddDemoProjectResponse {
|
|
1810
|
+
return { status: undefined, project: undefined };
|
|
1811
|
+
}
|
|
1812
|
+
|
|
1813
|
+
export const AddDemoProjectResponse: MessageFns<AddDemoProjectResponse> = {
|
|
1814
|
+
encode(message: AddDemoProjectResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1815
|
+
if (message.status !== undefined) {
|
|
1816
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
1817
|
+
}
|
|
1818
|
+
if (message.project !== undefined) {
|
|
1819
|
+
Project.encode(message.project, writer.uint32(18).fork()).join();
|
|
1820
|
+
}
|
|
1821
|
+
return writer;
|
|
1822
|
+
},
|
|
1823
|
+
|
|
1824
|
+
decode(input: BinaryReader | Uint8Array, length?: number): AddDemoProjectResponse {
|
|
1825
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1826
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1827
|
+
const message = createBaseAddDemoProjectResponse();
|
|
1828
|
+
while (reader.pos < end) {
|
|
1829
|
+
const tag = reader.uint32();
|
|
1830
|
+
switch (tag >>> 3) {
|
|
1831
|
+
case 1: {
|
|
1832
|
+
if (tag !== 10) {
|
|
1833
|
+
break;
|
|
1834
|
+
}
|
|
1835
|
+
|
|
1836
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
1837
|
+
continue;
|
|
1838
|
+
}
|
|
1839
|
+
case 2: {
|
|
1840
|
+
if (tag !== 18) {
|
|
1841
|
+
break;
|
|
1842
|
+
}
|
|
1843
|
+
|
|
1844
|
+
message.project = Project.decode(reader, reader.uint32());
|
|
1845
|
+
continue;
|
|
1846
|
+
}
|
|
1847
|
+
}
|
|
1848
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1849
|
+
break;
|
|
1850
|
+
}
|
|
1851
|
+
reader.skip(tag & 7);
|
|
1852
|
+
}
|
|
1853
|
+
return message;
|
|
1854
|
+
},
|
|
1855
|
+
|
|
1856
|
+
fromJSON(object: any): AddDemoProjectResponse {
|
|
1857
|
+
return {
|
|
1858
|
+
status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined,
|
|
1859
|
+
project: isSet(object.project) ? Project.fromJSON(object.project) : undefined,
|
|
1860
|
+
};
|
|
1861
|
+
},
|
|
1862
|
+
|
|
1863
|
+
toJSON(message: AddDemoProjectResponse): unknown {
|
|
1864
|
+
const obj: any = {};
|
|
1865
|
+
if (message.status !== undefined) {
|
|
1866
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
1867
|
+
}
|
|
1868
|
+
if (message.project !== undefined) {
|
|
1869
|
+
obj.project = Project.toJSON(message.project);
|
|
1870
|
+
}
|
|
1871
|
+
return obj;
|
|
1872
|
+
},
|
|
1873
|
+
|
|
1874
|
+
create<I extends Exact<DeepPartial<AddDemoProjectResponse>, I>>(base?: I): AddDemoProjectResponse {
|
|
1875
|
+
return AddDemoProjectResponse.fromPartial(base ?? ({} as any));
|
|
1876
|
+
},
|
|
1877
|
+
fromPartial<I extends Exact<DeepPartial<AddDemoProjectResponse>, I>>(object: I): AddDemoProjectResponse {
|
|
1878
|
+
const message = createBaseAddDemoProjectResponse();
|
|
1879
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
1880
|
+
? ResponseStatus.fromPartial(object.status)
|
|
1881
|
+
: undefined;
|
|
1882
|
+
message.project = (object.project !== undefined && object.project !== null)
|
|
1883
|
+
? Project.fromPartial(object.project)
|
|
1884
|
+
: undefined;
|
|
1885
|
+
return message;
|
|
1886
|
+
},
|
|
1887
|
+
};
|
|
1888
|
+
|
|
1889
|
+
function createBaseRemoveDemoProjectRequest(): RemoveDemoProjectRequest {
|
|
1890
|
+
return { organizationId: "" };
|
|
1891
|
+
}
|
|
1892
|
+
|
|
1893
|
+
export const RemoveDemoProjectRequest: MessageFns<RemoveDemoProjectRequest> = {
|
|
1894
|
+
encode(message: RemoveDemoProjectRequest, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1895
|
+
if (message.organizationId !== "") {
|
|
1896
|
+
writer.uint32(10).string(message.organizationId);
|
|
1897
|
+
}
|
|
1898
|
+
return writer;
|
|
1899
|
+
},
|
|
1900
|
+
|
|
1901
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RemoveDemoProjectRequest {
|
|
1902
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1903
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1904
|
+
const message = createBaseRemoveDemoProjectRequest();
|
|
1905
|
+
while (reader.pos < end) {
|
|
1906
|
+
const tag = reader.uint32();
|
|
1907
|
+
switch (tag >>> 3) {
|
|
1908
|
+
case 1: {
|
|
1909
|
+
if (tag !== 10) {
|
|
1910
|
+
break;
|
|
1911
|
+
}
|
|
1912
|
+
|
|
1913
|
+
message.organizationId = reader.string();
|
|
1914
|
+
continue;
|
|
1915
|
+
}
|
|
1916
|
+
}
|
|
1917
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1918
|
+
break;
|
|
1919
|
+
}
|
|
1920
|
+
reader.skip(tag & 7);
|
|
1921
|
+
}
|
|
1922
|
+
return message;
|
|
1923
|
+
},
|
|
1924
|
+
|
|
1925
|
+
fromJSON(object: any): RemoveDemoProjectRequest {
|
|
1926
|
+
return {
|
|
1927
|
+
organizationId: isSet(object.organizationId)
|
|
1928
|
+
? globalThis.String(object.organizationId)
|
|
1929
|
+
: isSet(object.organization_id)
|
|
1930
|
+
? globalThis.String(object.organization_id)
|
|
1931
|
+
: "",
|
|
1932
|
+
};
|
|
1933
|
+
},
|
|
1934
|
+
|
|
1935
|
+
toJSON(message: RemoveDemoProjectRequest): unknown {
|
|
1936
|
+
const obj: any = {};
|
|
1937
|
+
if (message.organizationId !== "") {
|
|
1938
|
+
obj.organizationId = message.organizationId;
|
|
1939
|
+
}
|
|
1940
|
+
return obj;
|
|
1941
|
+
},
|
|
1942
|
+
|
|
1943
|
+
create<I extends Exact<DeepPartial<RemoveDemoProjectRequest>, I>>(base?: I): RemoveDemoProjectRequest {
|
|
1944
|
+
return RemoveDemoProjectRequest.fromPartial(base ?? ({} as any));
|
|
1945
|
+
},
|
|
1946
|
+
fromPartial<I extends Exact<DeepPartial<RemoveDemoProjectRequest>, I>>(object: I): RemoveDemoProjectRequest {
|
|
1947
|
+
const message = createBaseRemoveDemoProjectRequest();
|
|
1948
|
+
message.organizationId = object.organizationId ?? "";
|
|
1949
|
+
return message;
|
|
1950
|
+
},
|
|
1951
|
+
};
|
|
1952
|
+
|
|
1953
|
+
function createBaseRemoveDemoProjectResponse(): RemoveDemoProjectResponse {
|
|
1954
|
+
return { status: undefined };
|
|
1955
|
+
}
|
|
1956
|
+
|
|
1957
|
+
export const RemoveDemoProjectResponse: MessageFns<RemoveDemoProjectResponse> = {
|
|
1958
|
+
encode(message: RemoveDemoProjectResponse, writer: BinaryWriter = new BinaryWriter()): BinaryWriter {
|
|
1959
|
+
if (message.status !== undefined) {
|
|
1960
|
+
ResponseStatus.encode(message.status, writer.uint32(10).fork()).join();
|
|
1961
|
+
}
|
|
1962
|
+
return writer;
|
|
1963
|
+
},
|
|
1964
|
+
|
|
1965
|
+
decode(input: BinaryReader | Uint8Array, length?: number): RemoveDemoProjectResponse {
|
|
1966
|
+
const reader = input instanceof BinaryReader ? input : new BinaryReader(input);
|
|
1967
|
+
const end = length === undefined ? reader.len : reader.pos + length;
|
|
1968
|
+
const message = createBaseRemoveDemoProjectResponse();
|
|
1969
|
+
while (reader.pos < end) {
|
|
1970
|
+
const tag = reader.uint32();
|
|
1971
|
+
switch (tag >>> 3) {
|
|
1972
|
+
case 1: {
|
|
1973
|
+
if (tag !== 10) {
|
|
1974
|
+
break;
|
|
1975
|
+
}
|
|
1976
|
+
|
|
1977
|
+
message.status = ResponseStatus.decode(reader, reader.uint32());
|
|
1978
|
+
continue;
|
|
1979
|
+
}
|
|
1980
|
+
}
|
|
1981
|
+
if ((tag & 7) === 4 || tag === 0) {
|
|
1982
|
+
break;
|
|
1983
|
+
}
|
|
1984
|
+
reader.skip(tag & 7);
|
|
1985
|
+
}
|
|
1986
|
+
return message;
|
|
1987
|
+
},
|
|
1988
|
+
|
|
1989
|
+
fromJSON(object: any): RemoveDemoProjectResponse {
|
|
1990
|
+
return { status: isSet(object.status) ? ResponseStatus.fromJSON(object.status) : undefined };
|
|
1991
|
+
},
|
|
1992
|
+
|
|
1993
|
+
toJSON(message: RemoveDemoProjectResponse): unknown {
|
|
1994
|
+
const obj: any = {};
|
|
1995
|
+
if (message.status !== undefined) {
|
|
1996
|
+
obj.status = ResponseStatus.toJSON(message.status);
|
|
1997
|
+
}
|
|
1998
|
+
return obj;
|
|
1999
|
+
},
|
|
2000
|
+
|
|
2001
|
+
create<I extends Exact<DeepPartial<RemoveDemoProjectResponse>, I>>(base?: I): RemoveDemoProjectResponse {
|
|
2002
|
+
return RemoveDemoProjectResponse.fromPartial(base ?? ({} as any));
|
|
2003
|
+
},
|
|
2004
|
+
fromPartial<I extends Exact<DeepPartial<RemoveDemoProjectResponse>, I>>(object: I): RemoveDemoProjectResponse {
|
|
2005
|
+
const message = createBaseRemoveDemoProjectResponse();
|
|
2006
|
+
message.status = (object.status !== undefined && object.status !== null)
|
|
2007
|
+
? ResponseStatus.fromPartial(object.status)
|
|
2008
|
+
: undefined;
|
|
2009
|
+
return message;
|
|
2010
|
+
},
|
|
2011
|
+
};
|
|
2012
|
+
|
|
1723
2013
|
function createBaseProject(): Project {
|
|
1724
2014
|
return {
|
|
1725
2015
|
projectId: "",
|
|
@@ -1730,6 +2020,7 @@ function createBaseProject(): Project {
|
|
|
1730
2020
|
createdAt: undefined,
|
|
1731
2021
|
updatedAt: undefined,
|
|
1732
2022
|
createdBy: "",
|
|
2023
|
+
demo: false,
|
|
1733
2024
|
};
|
|
1734
2025
|
}
|
|
1735
2026
|
|
|
@@ -1759,6 +2050,9 @@ export const Project: MessageFns<Project> = {
|
|
|
1759
2050
|
if (message.createdBy !== "") {
|
|
1760
2051
|
writer.uint32(66).string(message.createdBy);
|
|
1761
2052
|
}
|
|
2053
|
+
if (message.demo !== false) {
|
|
2054
|
+
writer.uint32(72).bool(message.demo);
|
|
2055
|
+
}
|
|
1762
2056
|
return writer;
|
|
1763
2057
|
},
|
|
1764
2058
|
|
|
@@ -1833,6 +2127,14 @@ export const Project: MessageFns<Project> = {
|
|
|
1833
2127
|
message.createdBy = reader.string();
|
|
1834
2128
|
continue;
|
|
1835
2129
|
}
|
|
2130
|
+
case 9: {
|
|
2131
|
+
if (tag !== 72) {
|
|
2132
|
+
break;
|
|
2133
|
+
}
|
|
2134
|
+
|
|
2135
|
+
message.demo = reader.bool();
|
|
2136
|
+
continue;
|
|
2137
|
+
}
|
|
1836
2138
|
}
|
|
1837
2139
|
if ((tag & 7) === 4 || tag === 0) {
|
|
1838
2140
|
break;
|
|
@@ -1872,6 +2174,7 @@ export const Project: MessageFns<Project> = {
|
|
|
1872
2174
|
: isSet(object.created_by)
|
|
1873
2175
|
? globalThis.String(object.created_by)
|
|
1874
2176
|
: "",
|
|
2177
|
+
demo: isSet(object.demo) ? globalThis.Boolean(object.demo) : false,
|
|
1875
2178
|
};
|
|
1876
2179
|
},
|
|
1877
2180
|
|
|
@@ -1901,6 +2204,9 @@ export const Project: MessageFns<Project> = {
|
|
|
1901
2204
|
if (message.createdBy !== "") {
|
|
1902
2205
|
obj.createdBy = message.createdBy;
|
|
1903
2206
|
}
|
|
2207
|
+
if (message.demo !== false) {
|
|
2208
|
+
obj.demo = message.demo;
|
|
2209
|
+
}
|
|
1904
2210
|
return obj;
|
|
1905
2211
|
},
|
|
1906
2212
|
|
|
@@ -1917,6 +2223,7 @@ export const Project: MessageFns<Project> = {
|
|
|
1917
2223
|
message.createdAt = object.createdAt ?? undefined;
|
|
1918
2224
|
message.updatedAt = object.updatedAt ?? undefined;
|
|
1919
2225
|
message.createdBy = object.createdBy ?? "";
|
|
2226
|
+
message.demo = object.demo ?? false;
|
|
1920
2227
|
return message;
|
|
1921
2228
|
},
|
|
1922
2229
|
};
|
|
@@ -6906,6 +7213,9 @@ export interface AccountGatewayService {
|
|
|
6906
7213
|
ListProjects(request: ListProjectsRequest, metadata?: Metadata): Promise<ListProjectsResponse>;
|
|
6907
7214
|
UpdateProject(request: UpdateProjectRequest, metadata?: Metadata): Promise<UpdateProjectResponse>;
|
|
6908
7215
|
DeleteProject(request: DeleteProjectRequest, metadata?: Metadata): Promise<DeleteProjectResponse>;
|
|
7216
|
+
/** Demo project: self-service add/remove of the shared, read-only demo project */
|
|
7217
|
+
AddDemoProject(request: AddDemoProjectRequest, metadata?: Metadata): Promise<AddDemoProjectResponse>;
|
|
7218
|
+
RemoveDemoProject(request: RemoveDemoProjectRequest, metadata?: Metadata): Promise<RemoveDemoProjectResponse>;
|
|
6909
7219
|
/** Web API Key operations */
|
|
6910
7220
|
CreateWebApiKey(request: CreateWebApiKeyRequest, metadata?: Metadata): Promise<CreateWebApiKeyResponse>;
|
|
6911
7221
|
ListWebApiKeys(request: ListWebApiKeysRequest, metadata?: Metadata): Promise<ListWebApiKeysResponse>;
|
|
@@ -6952,6 +7262,8 @@ export class AccountGatewayServiceClientImpl implements AccountGatewayService {
|
|
|
6952
7262
|
this.ListProjects = this.ListProjects.bind(this);
|
|
6953
7263
|
this.UpdateProject = this.UpdateProject.bind(this);
|
|
6954
7264
|
this.DeleteProject = this.DeleteProject.bind(this);
|
|
7265
|
+
this.AddDemoProject = this.AddDemoProject.bind(this);
|
|
7266
|
+
this.RemoveDemoProject = this.RemoveDemoProject.bind(this);
|
|
6955
7267
|
this.CreateWebApiKey = this.CreateWebApiKey.bind(this);
|
|
6956
7268
|
this.ListWebApiKeys = this.ListWebApiKeys.bind(this);
|
|
6957
7269
|
this.UpdateWebApiKeyStatus = this.UpdateWebApiKeyStatus.bind(this);
|
|
@@ -7003,6 +7315,18 @@ export class AccountGatewayServiceClientImpl implements AccountGatewayService {
|
|
|
7003
7315
|
return promise.then((data) => DeleteProjectResponse.decode(new BinaryReader(data)));
|
|
7004
7316
|
}
|
|
7005
7317
|
|
|
7318
|
+
AddDemoProject(request: AddDemoProjectRequest, metadata?: Metadata): Promise<AddDemoProjectResponse> {
|
|
7319
|
+
const data = AddDemoProjectRequest.encode(request).finish();
|
|
7320
|
+
const promise = this.rpc.request(this.service, "AddDemoProject", data, metadata);
|
|
7321
|
+
return promise.then((data) => AddDemoProjectResponse.decode(new BinaryReader(data)));
|
|
7322
|
+
}
|
|
7323
|
+
|
|
7324
|
+
RemoveDemoProject(request: RemoveDemoProjectRequest, metadata?: Metadata): Promise<RemoveDemoProjectResponse> {
|
|
7325
|
+
const data = RemoveDemoProjectRequest.encode(request).finish();
|
|
7326
|
+
const promise = this.rpc.request(this.service, "RemoveDemoProject", data, metadata);
|
|
7327
|
+
return promise.then((data) => RemoveDemoProjectResponse.decode(new BinaryReader(data)));
|
|
7328
|
+
}
|
|
7329
|
+
|
|
7006
7330
|
CreateWebApiKey(request: CreateWebApiKeyRequest, metadata?: Metadata): Promise<CreateWebApiKeyResponse> {
|
|
7007
7331
|
const data = CreateWebApiKeyRequest.encode(request).finish();
|
|
7008
7332
|
const promise = this.rpc.request(this.service, "CreateWebApiKey", data, metadata);
|
|
@@ -6,6 +6,28 @@ var proto_gateway_web_v1_account_gateway_pb = require('../../../../proto/gateway
|
|
|
6
6
|
var google_protobuf_timestamp_pb = require('google-protobuf/google/protobuf/timestamp_pb.js');
|
|
7
7
|
var proto_gateway_common_v1_status_pb = require('../../../../proto/gateway/common/v1/status_pb.js');
|
|
8
8
|
|
|
9
|
+
function serialize_gateway_web_v1_AddDemoProjectRequest(arg) {
|
|
10
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.AddDemoProjectRequest)) {
|
|
11
|
+
throw new Error('Expected argument of type gateway.web.v1.AddDemoProjectRequest');
|
|
12
|
+
}
|
|
13
|
+
return Buffer.from(arg.serializeBinary());
|
|
14
|
+
}
|
|
15
|
+
|
|
16
|
+
function deserialize_gateway_web_v1_AddDemoProjectRequest(buffer_arg) {
|
|
17
|
+
return proto_gateway_web_v1_account_gateway_pb.AddDemoProjectRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
function serialize_gateway_web_v1_AddDemoProjectResponse(arg) {
|
|
21
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.AddDemoProjectResponse)) {
|
|
22
|
+
throw new Error('Expected argument of type gateway.web.v1.AddDemoProjectResponse');
|
|
23
|
+
}
|
|
24
|
+
return Buffer.from(arg.serializeBinary());
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
function deserialize_gateway_web_v1_AddDemoProjectResponse(buffer_arg) {
|
|
28
|
+
return proto_gateway_web_v1_account_gateway_pb.AddDemoProjectResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
29
|
+
}
|
|
30
|
+
|
|
9
31
|
function serialize_gateway_web_v1_CreateOrganizationRequest(arg) {
|
|
10
32
|
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.CreateOrganizationRequest)) {
|
|
11
33
|
throw new Error('Expected argument of type gateway.web.v1.CreateOrganizationRequest');
|
|
@@ -325,6 +347,28 @@ function deserialize_gateway_web_v1_ProjectsStatsEnvelope(buffer_arg) {
|
|
|
325
347
|
return proto_gateway_web_v1_account_gateway_pb.ProjectsStatsEnvelope.deserializeBinary(new Uint8Array(buffer_arg));
|
|
326
348
|
}
|
|
327
349
|
|
|
350
|
+
function serialize_gateway_web_v1_RemoveDemoProjectRequest(arg) {
|
|
351
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.RemoveDemoProjectRequest)) {
|
|
352
|
+
throw new Error('Expected argument of type gateway.web.v1.RemoveDemoProjectRequest');
|
|
353
|
+
}
|
|
354
|
+
return Buffer.from(arg.serializeBinary());
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
function deserialize_gateway_web_v1_RemoveDemoProjectRequest(buffer_arg) {
|
|
358
|
+
return proto_gateway_web_v1_account_gateway_pb.RemoveDemoProjectRequest.deserializeBinary(new Uint8Array(buffer_arg));
|
|
359
|
+
}
|
|
360
|
+
|
|
361
|
+
function serialize_gateway_web_v1_RemoveDemoProjectResponse(arg) {
|
|
362
|
+
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.RemoveDemoProjectResponse)) {
|
|
363
|
+
throw new Error('Expected argument of type gateway.web.v1.RemoveDemoProjectResponse');
|
|
364
|
+
}
|
|
365
|
+
return Buffer.from(arg.serializeBinary());
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
function deserialize_gateway_web_v1_RemoveDemoProjectResponse(buffer_arg) {
|
|
369
|
+
return proto_gateway_web_v1_account_gateway_pb.RemoveDemoProjectResponse.deserializeBinary(new Uint8Array(buffer_arg));
|
|
370
|
+
}
|
|
371
|
+
|
|
328
372
|
function serialize_gateway_web_v1_RemoveUserRequest(arg) {
|
|
329
373
|
if (!(arg instanceof proto_gateway_web_v1_account_gateway_pb.RemoveUserRequest)) {
|
|
330
374
|
throw new Error('Expected argument of type gateway.web.v1.RemoveUserRequest');
|
|
@@ -615,6 +659,29 @@ createProject: {
|
|
|
615
659
|
responseSerialize: serialize_gateway_web_v1_DeleteProjectResponse,
|
|
616
660
|
responseDeserialize: deserialize_gateway_web_v1_DeleteProjectResponse,
|
|
617
661
|
},
|
|
662
|
+
// Demo project: self-service add/remove of the shared, read-only demo project
|
|
663
|
+
addDemoProject: {
|
|
664
|
+
path: '/gateway.web.v1.AccountGatewayService/AddDemoProject',
|
|
665
|
+
requestStream: false,
|
|
666
|
+
responseStream: false,
|
|
667
|
+
requestType: proto_gateway_web_v1_account_gateway_pb.AddDemoProjectRequest,
|
|
668
|
+
responseType: proto_gateway_web_v1_account_gateway_pb.AddDemoProjectResponse,
|
|
669
|
+
requestSerialize: serialize_gateway_web_v1_AddDemoProjectRequest,
|
|
670
|
+
requestDeserialize: deserialize_gateway_web_v1_AddDemoProjectRequest,
|
|
671
|
+
responseSerialize: serialize_gateway_web_v1_AddDemoProjectResponse,
|
|
672
|
+
responseDeserialize: deserialize_gateway_web_v1_AddDemoProjectResponse,
|
|
673
|
+
},
|
|
674
|
+
removeDemoProject: {
|
|
675
|
+
path: '/gateway.web.v1.AccountGatewayService/RemoveDemoProject',
|
|
676
|
+
requestStream: false,
|
|
677
|
+
responseStream: false,
|
|
678
|
+
requestType: proto_gateway_web_v1_account_gateway_pb.RemoveDemoProjectRequest,
|
|
679
|
+
responseType: proto_gateway_web_v1_account_gateway_pb.RemoveDemoProjectResponse,
|
|
680
|
+
requestSerialize: serialize_gateway_web_v1_RemoveDemoProjectRequest,
|
|
681
|
+
requestDeserialize: deserialize_gateway_web_v1_RemoveDemoProjectRequest,
|
|
682
|
+
responseSerialize: serialize_gateway_web_v1_RemoveDemoProjectResponse,
|
|
683
|
+
responseDeserialize: deserialize_gateway_web_v1_RemoveDemoProjectResponse,
|
|
684
|
+
},
|
|
618
685
|
// Web API Key operations
|
|
619
686
|
createWebApiKey: {
|
|
620
687
|
path: '/gateway.web.v1.AccountGatewayService/CreateWebApiKey',
|