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.
Files changed (185) hide show
  1. package/dist/google/protobuf/duration.pb.d.ts +99 -0
  2. package/dist/google/protobuf/duration.pb.js +93 -0
  3. package/dist/index.d.ts +1 -0
  4. package/dist/index.js +2 -1
  5. package/dist/weave/authz/v1/index.d.ts +1 -0
  6. package/dist/weave/authz/v1/index.js +38 -0
  7. package/dist/weave/authz/v1/options.pb.d.ts +52 -0
  8. package/dist/weave/authz/v1/options.pb.js +403 -0
  9. package/dist/weave/filter/v1/index.d.ts +1 -0
  10. package/dist/weave/filter/v1/index.js +38 -0
  11. package/dist/{weaveapi/atc/v1/message.pb.d.ts → weave/filter/v1/options.pb.d.ts} +33 -21
  12. package/dist/weave/filter/v1/options.pb.js +417 -0
  13. package/dist/weave/index.d.ts +2 -0
  14. package/dist/weave/index.js +39 -0
  15. package/dist/weaveapi/agent/v1/agent.pb.d.ts +137 -188
  16. package/dist/weaveapi/agent/v1/agent.pb.js +891 -2151
  17. package/dist/weaveapi/agent/v1/index.d.ts +1 -1
  18. package/dist/weaveapi/agent/v1/index.js +2 -2
  19. package/dist/weaveapi/agent/v1/run.pb.d.ts +289 -0
  20. package/dist/weaveapi/agent/v1/run.pb.js +2763 -0
  21. package/dist/weaveapi/auth/v1/auth.pb.d.ts +67 -14
  22. package/dist/weaveapi/auth/v1/auth.pb.js +829 -89
  23. package/dist/weaveapi/auth/v1/index.d.ts +4 -1
  24. package/dist/weaveapi/auth/v1/index.js +5 -2
  25. package/dist/weaveapi/auth/v1/{service.pb.d.ts → organization_admin.pb.d.ts} +39 -530
  26. package/dist/weaveapi/auth/v1/{service.pb.js → organization_admin.pb.js} +2978 -5812
  27. package/dist/weaveapi/auth/v1/personal_access_token.pb.d.ts +114 -0
  28. package/dist/weaveapi/auth/v1/personal_access_token.pb.js +750 -0
  29. package/dist/weaveapi/auth/v1/profile.pb.d.ts +161 -0
  30. package/dist/weaveapi/auth/v1/profile.pb.js +1007 -0
  31. package/dist/weaveapi/auth/v1/session.pb.d.ts +460 -0
  32. package/dist/weaveapi/auth/v1/session.pb.js +3544 -0
  33. package/dist/weaveapi/chat/v1/chat.pb.d.ts +377 -149
  34. package/dist/weaveapi/chat/v1/chat.pb.js +3492 -1614
  35. package/dist/weaveapi/chat/v1/index.d.ts +0 -1
  36. package/dist/weaveapi/chat/v1/index.js +1 -2
  37. package/dist/weaveapi/consolidation/v1/consolidation.pb.d.ts +95 -0
  38. package/dist/weaveapi/consolidation/v1/consolidation.pb.js +770 -1
  39. package/dist/weaveapi/consolidation/v1/index.d.ts +0 -1
  40. package/dist/weaveapi/consolidation/v1/index.js +1 -2
  41. package/dist/weaveapi/content/v1/content.pb.d.ts +63 -0
  42. package/dist/weaveapi/content/v1/content.pb.js +470 -0
  43. package/dist/weaveapi/content/v1/index.d.ts +1 -0
  44. package/dist/weaveapi/content/v1/index.js +38 -0
  45. package/dist/weaveapi/gateway/v1/gateway.pb.d.ts +247 -523
  46. package/dist/weaveapi/gateway/v1/gateway.pb.js +1648 -5783
  47. package/dist/weaveapi/gateway/v1/index.d.ts +0 -1
  48. package/dist/weaveapi/gateway/v1/index.js +1 -2
  49. package/dist/weaveapi/index.d.ts +5 -5
  50. package/dist/weaveapi/index.js +6 -6
  51. package/dist/weaveapi/inference/v1/generate.pb.d.ts +120 -0
  52. package/dist/weaveapi/inference/v1/generate.pb.js +1159 -0
  53. package/dist/weaveapi/inference/v1/index.d.ts +4 -0
  54. package/dist/weaveapi/{provider → inference}/v1/index.js +4 -2
  55. package/dist/weaveapi/{model → inference}/v1/model.pb.d.ts +52 -15
  56. package/dist/weaveapi/{model → inference}/v1/model.pb.js +529 -116
  57. package/dist/weaveapi/{model/v1/service.pb.d.ts → inference/v1/model_route.pb.d.ts} +182 -110
  58. package/dist/weaveapi/{model/v1/service.pb.js → inference/v1/model_route.pb.js} +2197 -1061
  59. package/dist/weaveapi/inference/v1/provider.pb.d.ts +264 -0
  60. package/dist/weaveapi/inference/v1/provider.pb.js +2590 -0
  61. package/dist/weaveapi/ingestion/v1/index.d.ts +0 -2
  62. package/dist/weaveapi/ingestion/v1/index.js +1 -3
  63. package/dist/weaveapi/ingestion/v1/ingestion.pb.d.ts +543 -0
  64. package/dist/weaveapi/ingestion/v1/ingestion.pb.js +5550 -16
  65. package/dist/weaveapi/initialization/v1/index.d.ts +1 -0
  66. package/dist/weaveapi/initialization/v1/index.js +38 -0
  67. package/dist/weaveapi/initialization/v1/initialization.pb.d.ts +99 -0
  68. package/dist/weaveapi/initialization/v1/initialization.pb.js +510 -0
  69. package/dist/weaveapi/organization/v1/index.d.ts +0 -1
  70. package/dist/weaveapi/organization/v1/index.js +1 -2
  71. package/dist/weaveapi/organization/v1/organization.pb.d.ts +241 -0
  72. package/dist/weaveapi/organization/v1/organization.pb.js +1838 -1
  73. package/dist/weaveapi/reporting/index.d.ts +1 -0
  74. package/dist/weaveapi/reporting/index.js +38 -0
  75. package/dist/weaveapi/{task → reporting}/v1/index.d.ts +1 -1
  76. package/dist/weaveapi/{model → reporting}/v1/index.js +2 -2
  77. package/dist/weaveapi/reporting/v1/service.pb.d.ts +38 -0
  78. package/dist/weaveapi/reporting/v1/service.pb.js +167 -0
  79. package/dist/weaveapi/reporting/v1/usage.pb.d.ts +150 -0
  80. package/dist/weaveapi/reporting/v1/usage.pb.js +1837 -0
  81. package/dist/weaveapi/retrieval/v1/index.d.ts +0 -1
  82. package/dist/weaveapi/retrieval/v1/index.js +1 -2
  83. package/dist/weaveapi/retrieval/v1/retrieval.pb.d.ts +96 -2
  84. package/dist/weaveapi/retrieval/v1/retrieval.pb.js +690 -10
  85. package/dist/weaveapi/tool/index.d.ts +1 -0
  86. package/dist/weaveapi/tool/index.js +38 -0
  87. package/dist/weaveapi/tool/v1/index.d.ts +1 -0
  88. package/dist/weaveapi/tool/v1/index.js +38 -0
  89. package/dist/weaveapi/tool/v1/tool.pb.d.ts +370 -0
  90. package/dist/weaveapi/tool/v1/tool.pb.js +2717 -0
  91. package/dist/weaveapi/workflow/v1/index.d.ts +1 -1
  92. package/dist/weaveapi/workflow/v1/index.js +2 -2
  93. package/dist/weaveapi/workflow/v1/run.pb.d.ts +244 -0
  94. package/dist/weaveapi/workflow/v1/run.pb.js +2084 -0
  95. package/dist/weaveapi/workflow/v1/workflow.pb.d.ts +122 -275
  96. package/dist/weaveapi/workflow/v1/workflow.pb.js +790 -3261
  97. package/dist/weavesql/weavedb/agent_sql.d.ts +173 -477
  98. package/dist/weavesql/weavedb/agent_sql.js +281 -758
  99. package/dist/weavesql/weavedb/authorization_outbox_sql.d.ts +261 -0
  100. package/dist/weavesql/weavedb/authorization_outbox_sql.js +445 -0
  101. package/dist/weavesql/weavedb/chat_sql.d.ts +103 -345
  102. package/dist/weavesql/weavedb/chat_sql.js +312 -597
  103. package/dist/weavesql/weavedb/document_consolidation_sql.d.ts +217 -0
  104. package/dist/weavesql/weavedb/document_consolidation_sql.js +486 -0
  105. package/dist/weavesql/weavedb/document_ingestion_sql.d.ts +1433 -0
  106. package/dist/weavesql/weavedb/document_ingestion_sql.js +3488 -0
  107. package/dist/weavesql/weavedb/document_retrieval_sql.d.ts +314 -0
  108. package/dist/weavesql/weavedb/document_retrieval_sql.js +965 -0
  109. package/dist/weavesql/weavedb/document_table_sql.d.ts +6 -6
  110. package/dist/weavesql/weavedb/document_table_sql.js +12 -12
  111. package/dist/weavesql/weavedb/identity_sql.d.ts +1014 -0
  112. package/dist/weavesql/weavedb/identity_sql.js +1811 -0
  113. package/dist/weavesql/weavedb/inference_model_route_sql.d.ts +161 -0
  114. package/dist/weavesql/weavedb/inference_model_route_sql.js +408 -0
  115. package/dist/weavesql/weavedb/inference_provider_sql.d.ts +125 -0
  116. package/dist/weavesql/weavedb/inference_provider_sql.js +228 -0
  117. package/dist/weavesql/weavedb/initialization_sql.d.ts +15 -0
  118. package/dist/weavesql/weavedb/initialization_sql.js +33 -0
  119. package/dist/weavesql/weavedb/model_catalog_sql.d.ts +6 -6
  120. package/dist/weavesql/weavedb/model_catalog_sql.js +6 -6
  121. package/dist/weavesql/weavedb/organization_sql.d.ts +22 -102
  122. package/dist/weavesql/weavedb/organization_sql.js +54 -262
  123. package/dist/weavesql/weavedb/tool_sql.d.ts +209 -0
  124. package/dist/weavesql/weavedb/tool_sql.js +407 -0
  125. package/dist/weavesql/weavedb/usage_sql.d.ts +356 -0
  126. package/dist/weavesql/weavedb/usage_sql.js +568 -0
  127. package/dist/weavesql/weavedb/workflow_sql.d.ts +159 -546
  128. package/dist/weavesql/weavedb/workflow_sql.js +281 -909
  129. package/package.json +1 -1
  130. package/dist/weaveapi/agent/v1/service.pb.d.ts +0 -397
  131. package/dist/weaveapi/agent/v1/service.pb.js +0 -3152
  132. package/dist/weaveapi/atc/v1/event.pb.d.ts +0 -134
  133. package/dist/weaveapi/atc/v1/event.pb.js +0 -1124
  134. package/dist/weaveapi/atc/v1/index.d.ts +0 -5
  135. package/dist/weaveapi/atc/v1/index.js +0 -42
  136. package/dist/weaveapi/atc/v1/message.pb.js +0 -287
  137. package/dist/weaveapi/atc/v1/process.pb.d.ts +0 -91
  138. package/dist/weaveapi/atc/v1/process.pb.js +0 -658
  139. package/dist/weaveapi/atc/v1/run.pb.d.ts +0 -71
  140. package/dist/weaveapi/atc/v1/run.pb.js +0 -525
  141. package/dist/weaveapi/atc/v1/service.pb.d.ts +0 -472
  142. package/dist/weaveapi/atc/v1/service.pb.js +0 -3093
  143. package/dist/weaveapi/chat/v1/service.pb.d.ts +0 -345
  144. package/dist/weaveapi/chat/v1/service.pb.js +0 -2545
  145. package/dist/weaveapi/consolidation/v1/service.pb.d.ts +0 -93
  146. package/dist/weaveapi/consolidation/v1/service.pb.js +0 -427
  147. package/dist/weaveapi/gateway/v1/service.pb.d.ts +0 -235
  148. package/dist/weaveapi/gateway/v1/service.pb.js +0 -651
  149. package/dist/weaveapi/ingestion/v1/service.pb.d.ts +0 -420
  150. package/dist/weaveapi/ingestion/v1/service.pb.js +0 -2311
  151. package/dist/weaveapi/ingestion/v1/table.pb.d.ts +0 -121
  152. package/dist/weaveapi/ingestion/v1/table.pb.js +0 -1478
  153. package/dist/weaveapi/model/v1/index.d.ts +0 -2
  154. package/dist/weaveapi/organization/v1/service.pb.d.ts +0 -261
  155. package/dist/weaveapi/organization/v1/service.pb.js +0 -1561
  156. package/dist/weaveapi/project/v1/index.d.ts +0 -2
  157. package/dist/weaveapi/project/v1/index.js +0 -39
  158. package/dist/weaveapi/project/v1/project.pb.d.ts +0 -105
  159. package/dist/weaveapi/project/v1/project.pb.js +0 -1004
  160. package/dist/weaveapi/project/v1/service.pb.d.ts +0 -247
  161. package/dist/weaveapi/project/v1/service.pb.js +0 -1994
  162. package/dist/weaveapi/provider/v1/index.d.ts +0 -2
  163. package/dist/weaveapi/provider/v1/provider.pb.d.ts +0 -137
  164. package/dist/weaveapi/provider/v1/provider.pb.js +0 -1000
  165. package/dist/weaveapi/provider/v1/service.pb.d.ts +0 -223
  166. package/dist/weaveapi/provider/v1/service.pb.js +0 -1888
  167. package/dist/weaveapi/retrieval/v1/service.pb.d.ts +0 -93
  168. package/dist/weaveapi/retrieval/v1/service.pb.js +0 -385
  169. package/dist/weaveapi/task/v1/index.js +0 -39
  170. package/dist/weaveapi/task/v1/service.pb.d.ts +0 -172
  171. package/dist/weaveapi/task/v1/service.pb.js +0 -1436
  172. package/dist/weaveapi/task/v1/task.pb.d.ts +0 -85
  173. package/dist/weaveapi/task/v1/task.pb.js +0 -802
  174. package/dist/weaveapi/workflow/v1/service.pb.d.ts +0 -392
  175. package/dist/weaveapi/workflow/v1/service.pb.js +0 -3146
  176. /package/dist/{weaveapi/atc → weave/authz}/index.d.ts +0 -0
  177. /package/dist/{weaveapi/atc → weave/authz}/index.js +0 -0
  178. /package/dist/{weaveapi/model → weave/filter}/index.d.ts +0 -0
  179. /package/dist/{weaveapi/model → weave/filter}/index.js +0 -0
  180. /package/dist/weaveapi/{project → content}/index.d.ts +0 -0
  181. /package/dist/weaveapi/{project → content}/index.js +0 -0
  182. /package/dist/weaveapi/{provider → inference}/index.d.ts +0 -0
  183. /package/dist/weaveapi/{provider → inference}/index.js +0 -0
  184. /package/dist/weaveapi/{task → initialization}/index.d.ts +0 -0
  185. /package/dist/weaveapi/{task → initialization}/index.js +0 -0
@@ -0,0 +1 @@
1
+ export * as initialization from './initialization.pb';
@@ -0,0 +1,38 @@
1
+ "use strict";
2
+ // Code generated by barrel.js. DO NOT EDIT.
3
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
4
+ if (k2 === undefined) k2 = k;
5
+ var desc = Object.getOwnPropertyDescriptor(m, k);
6
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
7
+ desc = { enumerable: true, get: function() { return m[k]; } };
8
+ }
9
+ Object.defineProperty(o, k2, desc);
10
+ }) : (function(o, m, k, k2) {
11
+ if (k2 === undefined) k2 = k;
12
+ o[k2] = m[k];
13
+ }));
14
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
15
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
16
+ }) : function(o, v) {
17
+ o["default"] = v;
18
+ });
19
+ var __importStar = (this && this.__importStar) || (function () {
20
+ var ownKeys = function(o) {
21
+ ownKeys = Object.getOwnPropertyNames || function (o) {
22
+ var ar = [];
23
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
24
+ return ar;
25
+ };
26
+ return ownKeys(o);
27
+ };
28
+ return function (mod) {
29
+ if (mod && mod.__esModule) return mod;
30
+ var result = {};
31
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
32
+ __setModuleDefault(result, mod);
33
+ return result;
34
+ };
35
+ })();
36
+ Object.defineProperty(exports, "__esModule", { value: true });
37
+ exports.initialization = void 0;
38
+ exports.initialization = __importStar(require("./initialization.pb"));
@@ -0,0 +1,99 @@
1
+ import { BinaryReader, BinaryWriter } from "@bufbuild/protobuf/wire";
2
+ export declare const protobufPackage = "weaveapi.initialization.v1";
3
+ export declare enum InitializationStatus {
4
+ INITIALIZATION_STATUS_UNSPECIFIED = 0,
5
+ INITIALIZATION_STATUS_REQUIRED = 1,
6
+ INITIALIZATION_STATUS_INITIALIZED = 2,
7
+ UNRECOGNIZED = -1
8
+ }
9
+ export declare function initializationStatusFromJSON(object: any): InitializationStatus;
10
+ export declare function initializationStatusToJSON(object: InitializationStatus): string;
11
+ export interface GetInitializationStateRequest {
12
+ }
13
+ export interface GetInitializationStateResponse {
14
+ status: InitializationStatus;
15
+ }
16
+ export interface InitializeEnvironmentRequest {
17
+ setupToken: string;
18
+ organizationName: string;
19
+ adminEmail: string;
20
+ adminName: string;
21
+ adminPassword: string;
22
+ }
23
+ export interface InitializeEnvironmentResponse {
24
+ organizationId: string;
25
+ userId: string;
26
+ applicationSessionId: string;
27
+ organizationSlug: string;
28
+ }
29
+ export declare const GetInitializationStateRequest: MessageFns<GetInitializationStateRequest>;
30
+ export declare const GetInitializationStateResponse: MessageFns<GetInitializationStateResponse>;
31
+ export declare const InitializeEnvironmentRequest: MessageFns<InitializeEnvironmentRequest>;
32
+ export declare const InitializeEnvironmentResponse: MessageFns<InitializeEnvironmentResponse>;
33
+ export interface InitializationService {
34
+ GetInitializationState(request: GetInitializationStateRequest): Promise<GetInitializationStateResponse>;
35
+ InitializeEnvironment(request: InitializeEnvironmentRequest): Promise<InitializeEnvironmentResponse>;
36
+ }
37
+ export declare const InitializationServiceServiceName = "weaveapi.initialization.v1.InitializationService";
38
+ export declare class InitializationServiceClientImpl implements InitializationService {
39
+ private readonly rpc;
40
+ private readonly service;
41
+ constructor(rpc: Rpc, opts?: {
42
+ service?: string;
43
+ });
44
+ GetInitializationState(request: GetInitializationStateRequest): Promise<GetInitializationStateResponse>;
45
+ InitializeEnvironment(request: InitializeEnvironmentRequest): Promise<InitializeEnvironmentResponse>;
46
+ }
47
+ export type InitializationServiceDefinition = typeof InitializationServiceDefinition;
48
+ export declare const InitializationServiceDefinition: {
49
+ readonly name: "InitializationService";
50
+ readonly fullName: "weaveapi.initialization.v1.InitializationService";
51
+ readonly methods: {
52
+ readonly getInitializationState: {
53
+ readonly name: "GetInitializationState";
54
+ readonly requestType: typeof GetInitializationStateRequest;
55
+ readonly requestStream: false;
56
+ readonly responseType: typeof GetInitializationStateResponse;
57
+ readonly responseStream: false;
58
+ readonly options: {
59
+ readonly _unknownFields: {
60
+ readonly 578365826: readonly [Uint8Array];
61
+ };
62
+ };
63
+ };
64
+ readonly initializeEnvironment: {
65
+ readonly name: "InitializeEnvironment";
66
+ readonly requestType: typeof InitializeEnvironmentRequest;
67
+ readonly requestStream: false;
68
+ readonly responseType: typeof InitializeEnvironmentResponse;
69
+ readonly responseStream: false;
70
+ readonly options: {
71
+ readonly _unknownFields: {
72
+ readonly 578365826: readonly [Uint8Array];
73
+ };
74
+ };
75
+ };
76
+ };
77
+ };
78
+ interface Rpc {
79
+ request(service: string, method: string, data: Uint8Array): Promise<Uint8Array>;
80
+ }
81
+ type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
82
+ export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
83
+ [K in keyof T]?: DeepPartial<T[K]>;
84
+ } : Partial<T>;
85
+ type KeysOfUnion<T> = T extends T ? keyof T : never;
86
+ export type Exact<P, I extends P> = P extends Builtin ? P : P & {
87
+ [K in keyof P]: Exact<P[K], I[K]>;
88
+ } & {
89
+ [K in Exclude<keyof I, KeysOfUnion<P>>]: never;
90
+ };
91
+ export interface MessageFns<T> {
92
+ encode(message: T, writer?: BinaryWriter): BinaryWriter;
93
+ decode(input: BinaryReader | Uint8Array, length?: number): T;
94
+ fromJSON(object: any): T;
95
+ toJSON(message: T): unknown;
96
+ create<I extends Exact<DeepPartial<T>, I>>(base?: I): T;
97
+ fromPartial<I extends Exact<DeepPartial<T>, I>>(object: I): T;
98
+ }
99
+ export {};
@@ -0,0 +1,510 @@
1
+ "use strict";
2
+ // Code generated by protoc-gen-ts_proto. DO NOT EDIT.
3
+ // versions:
4
+ // protoc-gen-ts_proto v2.11.8
5
+ // protoc unknown
6
+ // source: weaveapi/initialization/v1/initialization.proto
7
+ Object.defineProperty(exports, "__esModule", { value: true });
8
+ exports.InitializationServiceDefinition = exports.InitializationServiceClientImpl = exports.InitializationServiceServiceName = exports.InitializeEnvironmentResponse = exports.InitializeEnvironmentRequest = exports.GetInitializationStateResponse = exports.GetInitializationStateRequest = exports.InitializationStatus = exports.protobufPackage = void 0;
9
+ exports.initializationStatusFromJSON = initializationStatusFromJSON;
10
+ exports.initializationStatusToJSON = initializationStatusToJSON;
11
+ /* eslint-disable */
12
+ const wire_1 = require("@bufbuild/protobuf/wire");
13
+ exports.protobufPackage = "weaveapi.initialization.v1";
14
+ var InitializationStatus;
15
+ (function (InitializationStatus) {
16
+ InitializationStatus[InitializationStatus["INITIALIZATION_STATUS_UNSPECIFIED"] = 0] = "INITIALIZATION_STATUS_UNSPECIFIED";
17
+ InitializationStatus[InitializationStatus["INITIALIZATION_STATUS_REQUIRED"] = 1] = "INITIALIZATION_STATUS_REQUIRED";
18
+ InitializationStatus[InitializationStatus["INITIALIZATION_STATUS_INITIALIZED"] = 2] = "INITIALIZATION_STATUS_INITIALIZED";
19
+ InitializationStatus[InitializationStatus["UNRECOGNIZED"] = -1] = "UNRECOGNIZED";
20
+ })(InitializationStatus || (exports.InitializationStatus = InitializationStatus = {}));
21
+ function initializationStatusFromJSON(object) {
22
+ switch (object) {
23
+ case 0:
24
+ case "INITIALIZATION_STATUS_UNSPECIFIED":
25
+ return InitializationStatus.INITIALIZATION_STATUS_UNSPECIFIED;
26
+ case 1:
27
+ case "INITIALIZATION_STATUS_REQUIRED":
28
+ return InitializationStatus.INITIALIZATION_STATUS_REQUIRED;
29
+ case 2:
30
+ case "INITIALIZATION_STATUS_INITIALIZED":
31
+ return InitializationStatus.INITIALIZATION_STATUS_INITIALIZED;
32
+ case -1:
33
+ case "UNRECOGNIZED":
34
+ default:
35
+ return InitializationStatus.UNRECOGNIZED;
36
+ }
37
+ }
38
+ function initializationStatusToJSON(object) {
39
+ switch (object) {
40
+ case InitializationStatus.INITIALIZATION_STATUS_UNSPECIFIED:
41
+ return "INITIALIZATION_STATUS_UNSPECIFIED";
42
+ case InitializationStatus.INITIALIZATION_STATUS_REQUIRED:
43
+ return "INITIALIZATION_STATUS_REQUIRED";
44
+ case InitializationStatus.INITIALIZATION_STATUS_INITIALIZED:
45
+ return "INITIALIZATION_STATUS_INITIALIZED";
46
+ case InitializationStatus.UNRECOGNIZED:
47
+ default:
48
+ return "UNRECOGNIZED";
49
+ }
50
+ }
51
+ function createBaseGetInitializationStateRequest() {
52
+ return {};
53
+ }
54
+ exports.GetInitializationStateRequest = {
55
+ encode(_, writer = new wire_1.BinaryWriter()) {
56
+ return writer;
57
+ },
58
+ decode(input, length) {
59
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
60
+ const end = length === undefined ? reader.len : reader.pos + length;
61
+ const message = createBaseGetInitializationStateRequest();
62
+ while (reader.pos < end) {
63
+ const tag = reader.uint32();
64
+ switch (tag >>> 3) {
65
+ }
66
+ if ((tag & 7) === 4 || tag === 0) {
67
+ break;
68
+ }
69
+ reader.skip(tag & 7);
70
+ }
71
+ return message;
72
+ },
73
+ fromJSON(_) {
74
+ return {};
75
+ },
76
+ toJSON(_) {
77
+ const obj = {};
78
+ return obj;
79
+ },
80
+ create(base) {
81
+ return exports.GetInitializationStateRequest.fromPartial(base !== null && base !== void 0 ? base : {});
82
+ },
83
+ fromPartial(_) {
84
+ const message = createBaseGetInitializationStateRequest();
85
+ return message;
86
+ },
87
+ };
88
+ function createBaseGetInitializationStateResponse() {
89
+ return { status: 0 };
90
+ }
91
+ exports.GetInitializationStateResponse = {
92
+ encode(message, writer = new wire_1.BinaryWriter()) {
93
+ if (message.status !== 0) {
94
+ writer.uint32(8).int32(message.status);
95
+ }
96
+ return writer;
97
+ },
98
+ decode(input, length) {
99
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
100
+ const end = length === undefined ? reader.len : reader.pos + length;
101
+ const message = createBaseGetInitializationStateResponse();
102
+ while (reader.pos < end) {
103
+ const tag = reader.uint32();
104
+ switch (tag >>> 3) {
105
+ case 1: {
106
+ if (tag !== 8) {
107
+ break;
108
+ }
109
+ message.status = reader.int32();
110
+ continue;
111
+ }
112
+ }
113
+ if ((tag & 7) === 4 || tag === 0) {
114
+ break;
115
+ }
116
+ reader.skip(tag & 7);
117
+ }
118
+ return message;
119
+ },
120
+ fromJSON(object) {
121
+ return { status: isSet(object.status) ? initializationStatusFromJSON(object.status) : 0 };
122
+ },
123
+ toJSON(message) {
124
+ const obj = {};
125
+ if (message.status !== 0) {
126
+ obj.status = initializationStatusToJSON(message.status);
127
+ }
128
+ return obj;
129
+ },
130
+ create(base) {
131
+ return exports.GetInitializationStateResponse.fromPartial(base !== null && base !== void 0 ? base : {});
132
+ },
133
+ fromPartial(object) {
134
+ var _a;
135
+ const message = createBaseGetInitializationStateResponse();
136
+ message.status = (_a = object.status) !== null && _a !== void 0 ? _a : 0;
137
+ return message;
138
+ },
139
+ };
140
+ function createBaseInitializeEnvironmentRequest() {
141
+ return { setupToken: "", organizationName: "", adminEmail: "", adminName: "", adminPassword: "" };
142
+ }
143
+ exports.InitializeEnvironmentRequest = {
144
+ encode(message, writer = new wire_1.BinaryWriter()) {
145
+ if (message.setupToken !== "") {
146
+ writer.uint32(10).string(message.setupToken);
147
+ }
148
+ if (message.organizationName !== "") {
149
+ writer.uint32(18).string(message.organizationName);
150
+ }
151
+ if (message.adminEmail !== "") {
152
+ writer.uint32(26).string(message.adminEmail);
153
+ }
154
+ if (message.adminName !== "") {
155
+ writer.uint32(34).string(message.adminName);
156
+ }
157
+ if (message.adminPassword !== "") {
158
+ writer.uint32(42).string(message.adminPassword);
159
+ }
160
+ return writer;
161
+ },
162
+ decode(input, length) {
163
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
164
+ const end = length === undefined ? reader.len : reader.pos + length;
165
+ const message = createBaseInitializeEnvironmentRequest();
166
+ while (reader.pos < end) {
167
+ const tag = reader.uint32();
168
+ switch (tag >>> 3) {
169
+ case 1: {
170
+ if (tag !== 10) {
171
+ break;
172
+ }
173
+ message.setupToken = reader.string();
174
+ continue;
175
+ }
176
+ case 2: {
177
+ if (tag !== 18) {
178
+ break;
179
+ }
180
+ message.organizationName = reader.string();
181
+ continue;
182
+ }
183
+ case 3: {
184
+ if (tag !== 26) {
185
+ break;
186
+ }
187
+ message.adminEmail = reader.string();
188
+ continue;
189
+ }
190
+ case 4: {
191
+ if (tag !== 34) {
192
+ break;
193
+ }
194
+ message.adminName = reader.string();
195
+ continue;
196
+ }
197
+ case 5: {
198
+ if (tag !== 42) {
199
+ break;
200
+ }
201
+ message.adminPassword = reader.string();
202
+ continue;
203
+ }
204
+ }
205
+ if ((tag & 7) === 4 || tag === 0) {
206
+ break;
207
+ }
208
+ reader.skip(tag & 7);
209
+ }
210
+ return message;
211
+ },
212
+ fromJSON(object) {
213
+ return {
214
+ setupToken: isSet(object.setupToken)
215
+ ? globalThis.String(object.setupToken)
216
+ : isSet(object.setup_token)
217
+ ? globalThis.String(object.setup_token)
218
+ : "",
219
+ organizationName: isSet(object.organizationName)
220
+ ? globalThis.String(object.organizationName)
221
+ : isSet(object.organization_name)
222
+ ? globalThis.String(object.organization_name)
223
+ : "",
224
+ adminEmail: isSet(object.adminEmail)
225
+ ? globalThis.String(object.adminEmail)
226
+ : isSet(object.admin_email)
227
+ ? globalThis.String(object.admin_email)
228
+ : "",
229
+ adminName: isSet(object.adminName)
230
+ ? globalThis.String(object.adminName)
231
+ : isSet(object.admin_name)
232
+ ? globalThis.String(object.admin_name)
233
+ : "",
234
+ adminPassword: isSet(object.adminPassword)
235
+ ? globalThis.String(object.adminPassword)
236
+ : isSet(object.admin_password)
237
+ ? globalThis.String(object.admin_password)
238
+ : "",
239
+ };
240
+ },
241
+ toJSON(message) {
242
+ const obj = {};
243
+ if (message.setupToken !== "") {
244
+ obj.setupToken = message.setupToken;
245
+ }
246
+ if (message.organizationName !== "") {
247
+ obj.organizationName = message.organizationName;
248
+ }
249
+ if (message.adminEmail !== "") {
250
+ obj.adminEmail = message.adminEmail;
251
+ }
252
+ if (message.adminName !== "") {
253
+ obj.adminName = message.adminName;
254
+ }
255
+ if (message.adminPassword !== "") {
256
+ obj.adminPassword = message.adminPassword;
257
+ }
258
+ return obj;
259
+ },
260
+ create(base) {
261
+ return exports.InitializeEnvironmentRequest.fromPartial(base !== null && base !== void 0 ? base : {});
262
+ },
263
+ fromPartial(object) {
264
+ var _a, _b, _c, _d, _e;
265
+ const message = createBaseInitializeEnvironmentRequest();
266
+ message.setupToken = (_a = object.setupToken) !== null && _a !== void 0 ? _a : "";
267
+ message.organizationName = (_b = object.organizationName) !== null && _b !== void 0 ? _b : "";
268
+ message.adminEmail = (_c = object.adminEmail) !== null && _c !== void 0 ? _c : "";
269
+ message.adminName = (_d = object.adminName) !== null && _d !== void 0 ? _d : "";
270
+ message.adminPassword = (_e = object.adminPassword) !== null && _e !== void 0 ? _e : "";
271
+ return message;
272
+ },
273
+ };
274
+ function createBaseInitializeEnvironmentResponse() {
275
+ return { organizationId: "", userId: "", applicationSessionId: "", organizationSlug: "" };
276
+ }
277
+ exports.InitializeEnvironmentResponse = {
278
+ encode(message, writer = new wire_1.BinaryWriter()) {
279
+ if (message.organizationId !== "") {
280
+ writer.uint32(10).string(message.organizationId);
281
+ }
282
+ if (message.userId !== "") {
283
+ writer.uint32(18).string(message.userId);
284
+ }
285
+ if (message.applicationSessionId !== "") {
286
+ writer.uint32(26).string(message.applicationSessionId);
287
+ }
288
+ if (message.organizationSlug !== "") {
289
+ writer.uint32(34).string(message.organizationSlug);
290
+ }
291
+ return writer;
292
+ },
293
+ decode(input, length) {
294
+ const reader = input instanceof wire_1.BinaryReader ? input : new wire_1.BinaryReader(input);
295
+ const end = length === undefined ? reader.len : reader.pos + length;
296
+ const message = createBaseInitializeEnvironmentResponse();
297
+ while (reader.pos < end) {
298
+ const tag = reader.uint32();
299
+ switch (tag >>> 3) {
300
+ case 1: {
301
+ if (tag !== 10) {
302
+ break;
303
+ }
304
+ message.organizationId = reader.string();
305
+ continue;
306
+ }
307
+ case 2: {
308
+ if (tag !== 18) {
309
+ break;
310
+ }
311
+ message.userId = reader.string();
312
+ continue;
313
+ }
314
+ case 3: {
315
+ if (tag !== 26) {
316
+ break;
317
+ }
318
+ message.applicationSessionId = reader.string();
319
+ continue;
320
+ }
321
+ case 4: {
322
+ if (tag !== 34) {
323
+ break;
324
+ }
325
+ message.organizationSlug = reader.string();
326
+ continue;
327
+ }
328
+ }
329
+ if ((tag & 7) === 4 || tag === 0) {
330
+ break;
331
+ }
332
+ reader.skip(tag & 7);
333
+ }
334
+ return message;
335
+ },
336
+ fromJSON(object) {
337
+ return {
338
+ organizationId: isSet(object.organizationId)
339
+ ? globalThis.String(object.organizationId)
340
+ : isSet(object.organization_id)
341
+ ? globalThis.String(object.organization_id)
342
+ : "",
343
+ userId: isSet(object.userId)
344
+ ? globalThis.String(object.userId)
345
+ : isSet(object.user_id)
346
+ ? globalThis.String(object.user_id)
347
+ : "",
348
+ applicationSessionId: isSet(object.applicationSessionId)
349
+ ? globalThis.String(object.applicationSessionId)
350
+ : isSet(object.application_session_id)
351
+ ? globalThis.String(object.application_session_id)
352
+ : "",
353
+ organizationSlug: isSet(object.organizationSlug)
354
+ ? globalThis.String(object.organizationSlug)
355
+ : isSet(object.organization_slug)
356
+ ? globalThis.String(object.organization_slug)
357
+ : "",
358
+ };
359
+ },
360
+ toJSON(message) {
361
+ const obj = {};
362
+ if (message.organizationId !== "") {
363
+ obj.organizationId = message.organizationId;
364
+ }
365
+ if (message.userId !== "") {
366
+ obj.userId = message.userId;
367
+ }
368
+ if (message.applicationSessionId !== "") {
369
+ obj.applicationSessionId = message.applicationSessionId;
370
+ }
371
+ if (message.organizationSlug !== "") {
372
+ obj.organizationSlug = message.organizationSlug;
373
+ }
374
+ return obj;
375
+ },
376
+ create(base) {
377
+ return exports.InitializeEnvironmentResponse.fromPartial(base !== null && base !== void 0 ? base : {});
378
+ },
379
+ fromPartial(object) {
380
+ var _a, _b, _c, _d;
381
+ const message = createBaseInitializeEnvironmentResponse();
382
+ message.organizationId = (_a = object.organizationId) !== null && _a !== void 0 ? _a : "";
383
+ message.userId = (_b = object.userId) !== null && _b !== void 0 ? _b : "";
384
+ message.applicationSessionId = (_c = object.applicationSessionId) !== null && _c !== void 0 ? _c : "";
385
+ message.organizationSlug = (_d = object.organizationSlug) !== null && _d !== void 0 ? _d : "";
386
+ return message;
387
+ },
388
+ };
389
+ exports.InitializationServiceServiceName = "weaveapi.initialization.v1.InitializationService";
390
+ class InitializationServiceClientImpl {
391
+ constructor(rpc, opts) {
392
+ this.service = (opts === null || opts === void 0 ? void 0 : opts.service) || exports.InitializationServiceServiceName;
393
+ this.rpc = rpc;
394
+ this.GetInitializationState = this.GetInitializationState.bind(this);
395
+ this.InitializeEnvironment = this.InitializeEnvironment.bind(this);
396
+ }
397
+ GetInitializationState(request) {
398
+ const data = exports.GetInitializationStateRequest.encode(request).finish();
399
+ const promise = this.rpc.request(this.service, "GetInitializationState", data);
400
+ return promise.then((data) => exports.GetInitializationStateResponse.decode(new wire_1.BinaryReader(data)));
401
+ }
402
+ InitializeEnvironment(request) {
403
+ const data = exports.InitializeEnvironmentRequest.encode(request).finish();
404
+ const promise = this.rpc.request(this.service, "InitializeEnvironment", data);
405
+ return promise.then((data) => exports.InitializeEnvironmentResponse.decode(new wire_1.BinaryReader(data)));
406
+ }
407
+ }
408
+ exports.InitializationServiceClientImpl = InitializationServiceClientImpl;
409
+ exports.InitializationServiceDefinition = {
410
+ name: "InitializationService",
411
+ fullName: "weaveapi.initialization.v1.InitializationService",
412
+ methods: {
413
+ getInitializationState: {
414
+ name: "GetInitializationState",
415
+ requestType: exports.GetInitializationStateRequest,
416
+ requestStream: false,
417
+ responseType: exports.GetInitializationStateResponse,
418
+ responseStream: false,
419
+ options: {
420
+ _unknownFields: {
421
+ 578365826: [
422
+ new Uint8Array([
423
+ 26,
424
+ 18,
425
+ 24,
426
+ 47,
427
+ 118,
428
+ 49,
429
+ 47,
430
+ 105,
431
+ 110,
432
+ 105,
433
+ 116,
434
+ 105,
435
+ 97,
436
+ 108,
437
+ 105,
438
+ 122,
439
+ 97,
440
+ 116,
441
+ 105,
442
+ 111,
443
+ 110,
444
+ 47,
445
+ 115,
446
+ 116,
447
+ 97,
448
+ 116,
449
+ 101,
450
+ ]),
451
+ ],
452
+ },
453
+ },
454
+ },
455
+ initializeEnvironment: {
456
+ name: "InitializeEnvironment",
457
+ requestType: exports.InitializeEnvironmentRequest,
458
+ requestStream: false,
459
+ responseType: exports.InitializeEnvironmentResponse,
460
+ responseStream: false,
461
+ options: {
462
+ _unknownFields: {
463
+ 578365826: [
464
+ new Uint8Array([
465
+ 35,
466
+ 58,
467
+ 1,
468
+ 42,
469
+ 34,
470
+ 30,
471
+ 47,
472
+ 118,
473
+ 49,
474
+ 47,
475
+ 105,
476
+ 110,
477
+ 105,
478
+ 116,
479
+ 105,
480
+ 97,
481
+ 108,
482
+ 105,
483
+ 122,
484
+ 97,
485
+ 116,
486
+ 105,
487
+ 111,
488
+ 110,
489
+ 47,
490
+ 101,
491
+ 110,
492
+ 118,
493
+ 105,
494
+ 114,
495
+ 111,
496
+ 110,
497
+ 109,
498
+ 101,
499
+ 110,
500
+ 116,
501
+ ]),
502
+ ],
503
+ },
504
+ },
505
+ },
506
+ },
507
+ };
508
+ function isSet(value) {
509
+ return value !== null && value !== undefined;
510
+ }
@@ -1,2 +1 @@
1
1
  export * as organization from './organization.pb';
2
- export * as service from './service.pb';
@@ -34,6 +34,5 @@ var __importStar = (this && this.__importStar) || (function () {
34
34
  };
35
35
  })();
36
36
  Object.defineProperty(exports, "__esModule", { value: true });
37
- exports.service = exports.organization = void 0;
37
+ exports.organization = void 0;
38
38
  exports.organization = __importStar(require("./organization.pb"));
39
- exports.service = __importStar(require("./service.pb"));