@refleet/refleet-sdk-ts 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (55) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +56 -0
  3. package/dist/client.js +195 -0
  4. package/dist/client.js.map +1 -0
  5. package/dist/config.js +7 -0
  6. package/dist/config.js.map +1 -0
  7. package/dist/errors.js +96 -0
  8. package/dist/errors.js.map +1 -0
  9. package/dist/index.js +18 -0
  10. package/dist/index.js.map +1 -0
  11. package/dist/proto/api/shared/error_pb.js +7 -0
  12. package/dist/proto/api/shared/error_pb.js.map +1 -0
  13. package/dist/proto/api/shared/user_pb.js +7 -0
  14. package/dist/proto/api/shared/user_pb.js.map +1 -0
  15. package/dist/proto/api/v1/auth_pb.js +12 -0
  16. package/dist/proto/api/v1/auth_pb.js.map +1 -0
  17. package/dist/proto/api/v1/hello_pb.js +9 -0
  18. package/dist/proto/api/v1/hello_pb.js.map +1 -0
  19. package/dist/proto/api/v1/libraries_pb.js +10 -0
  20. package/dist/proto/api/v1/libraries_pb.js.map +1 -0
  21. package/dist/proto/api/v1/teams_pb.js +10 -0
  22. package/dist/proto/api/v1/teams_pb.js.map +1 -0
  23. package/dist/proto/buf/validate/validate_pb.js +7 -0
  24. package/dist/proto/buf/validate/validate_pb.js.map +1 -0
  25. package/dist/proto/google/api/annotations_pb.js +8 -0
  26. package/dist/proto/google/api/annotations_pb.js.map +1 -0
  27. package/dist/proto/google/api/http_pb.js +6 -0
  28. package/dist/proto/google/api/http_pb.js.map +1 -0
  29. package/dist/services/ai.js +217 -0
  30. package/dist/services/ai.js.map +1 -0
  31. package/dist/services/auth.js +105 -0
  32. package/dist/services/auth.js.map +1 -0
  33. package/dist/services/base.js +27 -0
  34. package/dist/services/base.js.map +1 -0
  35. package/dist/services/collections.js +208 -0
  36. package/dist/services/collections.js.map +1 -0
  37. package/dist/services/files.js +82 -0
  38. package/dist/services/files.js.map +1 -0
  39. package/dist/services/libraries.js +162 -0
  40. package/dist/services/libraries.js.map +1 -0
  41. package/dist/services/runtime-vars.js +84 -0
  42. package/dist/services/runtime-vars.js.map +1 -0
  43. package/dist/services/subscriptions.js +178 -0
  44. package/dist/services/subscriptions.js.map +1 -0
  45. package/dist/services/teams.js +194 -0
  46. package/dist/services/teams.js.map +1 -0
  47. package/dist/services/users.js +65 -0
  48. package/dist/services/users.js.map +1 -0
  49. package/dist/transports/grpc.js +194 -0
  50. package/dist/transports/grpc.js.map +1 -0
  51. package/dist/transports/http.js +169 -0
  52. package/dist/transports/http.js.map +1 -0
  53. package/dist/transports/service-registry.js +49 -0
  54. package/dist/transports/service-registry.js.map +1 -0
  55. package/package.json +67 -0
package/LICENSE ADDED
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2023 Vitaly Rtishchev
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
package/README.md ADDED
@@ -0,0 +1,56 @@
1
+ # ts-package-template
2
+
3
+ A template to publish a TypeScript package to npm.
4
+
5
+ Key features:
6
+
7
+ - Ready to use ESM build system
8
+ - Properly configured [exports in package.json](https://publint.dev/@rtivital/ts-package-template) to support all modern bundlers and Node.js
9
+ - CI with GitHub Actions
10
+ - Testing and linting setup ready: Jest, ESLint, Prettier, Knip
11
+ - Publish to npm with an npm script, including support for pre-releases (alpha, beta, rc)
12
+ - `npm pack` validation as part of the testing pipeline: makes sure only necessary files are included in the package
13
+ - Size limit check with [size-limit](https://github.com/ai/size-limit)
14
+
15
+ Included tools:
16
+
17
+ - Yarn v4
18
+ - Rollup
19
+ - esbuild
20
+ - jest
21
+ - prettier
22
+ - ESLint
23
+ - Knip
24
+ - size-limit
25
+ - GitHub workflow for tests
26
+
27
+ ## Usage
28
+
29
+ - Click "Use this template" button to create a new repository from this template
30
+ - Clone the new repository
31
+ - Change `package.json` to your own package name, description, etc. **!important**: change `repository.url` and other repository links to your own repository url
32
+ - Install dependencies: `yarn` (other package managers are not supported)
33
+ - Write your code in `src/` directory
34
+ - Run `npm run release` to build and publish your package to npm
35
+
36
+ ## Testing
37
+
38
+ - Run `npm test` to run all tests (prettier check, typecheck, lint, jest tests, build, package validation with `npm pack`, knip)
39
+ - Run `npm run jest:coverage` to run jest with coverage report
40
+ - Run `npm run jest:watch` to run jest in watch mode
41
+ - Run `npm run size` to validate package size or `npm run analyze` to see size analysis report
42
+
43
+ ## Publishing to npm
44
+
45
+ Use `release` script to publish the package:
46
+
47
+ - `npm run release` – release a new patch version to npm
48
+ - `npm run release minor` – release a new minor version to npm
49
+ - `npm run release major` – release a new major version to npm
50
+ - `npm run release minor -- --stage alpha` – release a new minor alpha version to npm (for example, `1.1.0-alpha.0`)
51
+
52
+ Note that release script will always publish public packages to npm. If you want to publish a private package, change release script in `scripts/release.ts`.
53
+
54
+ ## License
55
+
56
+ MIT
package/dist/client.js ADDED
@@ -0,0 +1,195 @@
1
+ import { DEFAULT_CONFIG } from './config.js';
2
+ import { HttpTransport } from './transports/http.js';
3
+ import { GrpcTransport } from './transports/grpc.js';
4
+ import { AuthService } from './services/auth.js';
5
+ import { TeamsService } from './services/teams.js';
6
+ import { UsersService } from './services/users.js';
7
+ import { CollectionRecordsService } from './services/collections.js';
8
+ import { FilesService } from './services/files.js';
9
+ import { LibrariesService } from './services/libraries.js';
10
+ import { SubscriptionService } from './services/subscriptions.js';
11
+ import { AIChatService } from './services/ai.js';
12
+ import { RuntimeVarsService } from './services/runtime-vars.js';
13
+
14
+ var __defProp = Object.defineProperty;
15
+ var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
16
+ var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
17
+ class Client {
18
+ /**
19
+ * Create a new Refleet client
20
+ *
21
+ * @param config - Client configuration
22
+ *
23
+ * @example
24
+ * ```typescript
25
+ * // With HTTP protocol
26
+ * const client = new Client({
27
+ * protocol: 'http',
28
+ * baseURL: 'https://api.refleet.cloud'
29
+ * })
30
+ *
31
+ * // With gRPC protocol
32
+ * const grpcClient = new Client({
33
+ * protocol: 'grpc',
34
+ * baseURL: 'https://api.refleet.cloud'
35
+ * })
36
+ *
37
+ * // With auth token
38
+ * const client = new Client({
39
+ * protocol: 'http',
40
+ * baseURL: 'https://api.refleet.cloud',
41
+ * authToken: 'your-jwt-token'
42
+ * })
43
+ *
44
+ * // With token refresh
45
+ * const client = new Client({
46
+ * protocol: 'http',
47
+ * baseURL: 'https://api.refleet.cloud',
48
+ * authToken: 'your-jwt-token',
49
+ * refreshAuthToken: async () => {
50
+ * // Logic to refresh token
51
+ * return 'new-jwt-token'
52
+ * }
53
+ * })
54
+ * ```
55
+ */
56
+ constructor(config) {
57
+ __publicField(this, "transport");
58
+ __publicField(this, "config");
59
+ /**
60
+ * Authentication service
61
+ */
62
+ __publicField(this, "auth");
63
+ /**
64
+ * Teams service
65
+ */
66
+ __publicField(this, "teams");
67
+ /**
68
+ * Users service
69
+ */
70
+ __publicField(this, "users");
71
+ /**
72
+ * Collection records service
73
+ */
74
+ __publicField(this, "collections");
75
+ /**
76
+ * Files service
77
+ */
78
+ __publicField(this, "files");
79
+ /**
80
+ * Libraries service
81
+ */
82
+ __publicField(this, "libraries");
83
+ /**
84
+ * Subscription service
85
+ */
86
+ __publicField(this, "subscriptions");
87
+ /**
88
+ * AI Chat service
89
+ */
90
+ __publicField(this, "ai");
91
+ /**
92
+ * Runtime variables service
93
+ */
94
+ __publicField(this, "runtimeVars");
95
+ this.config = { ...DEFAULT_CONFIG, ...config };
96
+ this.transport = this.createTransport();
97
+ this.auth = new AuthService({ transport: this.transport });
98
+ this.teams = new TeamsService({ transport: this.transport });
99
+ this.users = new UsersService({ transport: this.transport });
100
+ this.collections = new CollectionRecordsService({ transport: this.transport });
101
+ this.files = new FilesService({ transport: this.transport });
102
+ this.libraries = new LibrariesService({ transport: this.transport });
103
+ this.subscriptions = new SubscriptionService({ transport: this.transport });
104
+ this.ai = new AIChatService({ transport: this.transport });
105
+ this.runtimeVars = new RuntimeVarsService({ transport: this.transport });
106
+ if (this.config.authToken) {
107
+ this.setAuthToken(this.config.authToken);
108
+ }
109
+ }
110
+ /**
111
+ * Create transport based on protocol configuration
112
+ */
113
+ createTransport() {
114
+ switch (this.config.protocol) {
115
+ case "http":
116
+ return new HttpTransport({
117
+ baseURL: this.config.baseURL,
118
+ timeout: this.config.timeout,
119
+ headers: this.config.headers,
120
+ debug: this.config.debug,
121
+ refreshAuthToken: this.config.refreshAuthToken
122
+ });
123
+ case "grpc":
124
+ return new GrpcTransport({
125
+ baseURL: this.config.baseURL,
126
+ timeout: this.config.timeout,
127
+ debug: this.config.debug,
128
+ refreshAuthToken: this.config.refreshAuthToken
129
+ });
130
+ default:
131
+ throw new Error(`Unknown protocol: ${this.config.protocol}`);
132
+ }
133
+ }
134
+ /**
135
+ * Set authentication token
136
+ * Token will be included in all subsequent requests
137
+ *
138
+ * @param token - JWT token
139
+ *
140
+ * @example
141
+ * ```typescript
142
+ * const client = new Client({ ... })
143
+ * const response = await client.auth.login('user@example.com', 'password')
144
+ * client.setAuthToken(response.token)
145
+ * ```
146
+ */
147
+ setAuthToken(token) {
148
+ this.transport.setAuthToken(token);
149
+ this.config.authToken = token;
150
+ }
151
+ /**
152
+ * Clear authentication token
153
+ *
154
+ * @example
155
+ * ```typescript
156
+ * client.clearAuthToken()
157
+ * ```
158
+ */
159
+ clearAuthToken() {
160
+ this.transport.clearAuthToken();
161
+ this.config.authToken = void 0;
162
+ }
163
+ /**
164
+ * Get current auth token
165
+ */
166
+ getAuthToken() {
167
+ return this.config.authToken;
168
+ }
169
+ /**
170
+ * Close the client and cleanup resources
171
+ *
172
+ * @example
173
+ * ```typescript
174
+ * try {
175
+ * // ... use client
176
+ * } finally {
177
+ * await client.close()
178
+ * }
179
+ * ```
180
+ */
181
+ async close() {
182
+ if (this.transport.close) {
183
+ this.transport.close();
184
+ }
185
+ }
186
+ /**
187
+ * Get client configuration
188
+ */
189
+ getConfig() {
190
+ return { ...this.config };
191
+ }
192
+ }
193
+
194
+ export { Client };
195
+ //# sourceMappingURL=client.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"client.js","sources":["../src/client.ts"],"sourcesContent":["/**\n * Client - Main SDK client\n *\n * @example\n * ```typescript\n * import { Client } from 'refleet-sdk-ts'\n *\n * // Initialize client\n * const client = new Client({\n * protocol: 'http',\n * baseURL: 'https://api.refleet.cloud'\n * })\n *\n * // Login\n * const tokenResponse = await client.auth.login(\n * 'user@example.com',\n * 'password'\n * )\n *\n * // Set auth token for subsequent requests\n * client.setAuthToken(tokenResponse.token)\n *\n * // Use services\n * const teams = await client.teams.listTeams({\n * pageSize: 10,\n * pageToken: '',\n * filter: '',\n * orderBy: ''\n * })\n *\n * // Work with collections\n * const records = await client.collections.listRecords({\n * collectionId: 'posts',\n * teamId: 'team-123'\n * })\n *\n * // AI Chat\n * const models = await client.ai.getModels()\n * ```\n */\n\nimport type { Config } from './config'\nimport { DEFAULT_CONFIG } from './config'\nimport type { Transport } from './transports/base'\nimport { HttpTransport } from './transports/http'\nimport { GrpcTransport } from './transports/grpc'\nimport { AuthService } from './services/auth'\nimport { TeamsService } from './services/teams'\nimport { UsersService } from './services/users'\nimport { CollectionRecordsService } from './services/collections'\nimport { FilesService } from './services/files'\nimport { LibrariesService } from './services/libraries'\nimport { SubscriptionService } from './services/subscriptions'\nimport { AIChatService } from './services/ai'\nimport { RuntimeVarsService } from './services/runtime-vars'\n\n/**\n * Refleet SDK Client\n *\n * Main entry point for interacting with the Refleet API.\n * Supports both HTTP and gRPC protocols.\n */\nexport class Client {\n private readonly transport: Transport\n private readonly config: Config\n\n /**\n * Authentication service\n */\n public readonly auth: AuthService\n\n /**\n * Teams service\n */\n public readonly teams: TeamsService\n\n /**\n * Users service\n */\n public readonly users: UsersService\n\n /**\n * Collection records service\n */\n public readonly collections: CollectionRecordsService\n\n /**\n * Files service\n */\n public readonly files: FilesService\n\n /**\n * Libraries service\n */\n public readonly libraries: LibrariesService\n\n /**\n * Subscription service\n */\n public readonly subscriptions: SubscriptionService\n\n /**\n * AI Chat service\n */\n public readonly ai: AIChatService\n\n /**\n * Runtime variables service\n */\n public readonly runtimeVars: RuntimeVarsService\n\n /**\n * Create a new Refleet client\n *\n * @param config - Client configuration\n *\n * @example\n * ```typescript\n * // With HTTP protocol\n * const client = new Client({\n * protocol: 'http',\n * baseURL: 'https://api.refleet.cloud'\n * })\n *\n * // With gRPC protocol\n * const grpcClient = new Client({\n * protocol: 'grpc',\n * baseURL: 'https://api.refleet.cloud'\n * })\n *\n * // With auth token\n * const client = new Client({\n * protocol: 'http',\n * baseURL: 'https://api.refleet.cloud',\n * authToken: 'your-jwt-token'\n * })\n *\n * // With token refresh\n * const client = new Client({\n * protocol: 'http',\n * baseURL: 'https://api.refleet.cloud',\n * authToken: 'your-jwt-token',\n * refreshAuthToken: async () => {\n * // Logic to refresh token\n * return 'new-jwt-token'\n * }\n * })\n * ```\n */\n constructor(config: Config) {\n this.config = { ...DEFAULT_CONFIG, ...config }\n\n // Create transport based on protocol\n this.transport = this.createTransport()\n\n // Initialize services\n this.auth = new AuthService({ transport: this.transport })\n this.teams = new TeamsService({ transport: this.transport })\n this.users = new UsersService({ transport: this.transport })\n this.collections = new CollectionRecordsService({ transport: this.transport })\n this.files = new FilesService({ transport: this.transport })\n this.libraries = new LibrariesService({ transport: this.transport })\n this.subscriptions = new SubscriptionService({ transport: this.transport })\n this.ai = new AIChatService({ transport: this.transport })\n this.runtimeVars = new RuntimeVarsService({ transport: this.transport })\n\n // Set auth token if provided\n if (this.config.authToken) {\n this.setAuthToken(this.config.authToken)\n }\n }\n\n /**\n * Create transport based on protocol configuration\n */\n private createTransport(): Transport {\n switch (this.config.protocol) {\n case 'http':\n return new HttpTransport({\n baseURL: this.config.baseURL,\n timeout: this.config.timeout,\n headers: this.config.headers,\n debug: this.config.debug,\n refreshAuthToken: this.config.refreshAuthToken,\n })\n\n case 'grpc':\n return new GrpcTransport({\n baseURL: this.config.baseURL,\n timeout: this.config.timeout,\n debug: this.config.debug,\n refreshAuthToken: this.config.refreshAuthToken,\n })\n\n default:\n throw new Error(`Unknown protocol: ${this.config.protocol}`)\n }\n }\n\n /**\n * Set authentication token\n * Token will be included in all subsequent requests\n *\n * @param token - JWT token\n *\n * @example\n * ```typescript\n * const client = new Client({ ... })\n * const response = await client.auth.login('user@example.com', 'password')\n * client.setAuthToken(response.token)\n * ```\n */\n setAuthToken(token: string): void {\n this.transport.setAuthToken(token)\n this.config.authToken = token\n }\n\n /**\n * Clear authentication token\n *\n * @example\n * ```typescript\n * client.clearAuthToken()\n * ```\n */\n clearAuthToken(): void {\n this.transport.clearAuthToken()\n this.config.authToken = undefined\n }\n\n /**\n * Get current auth token\n */\n getAuthToken(): string | undefined {\n return this.config.authToken\n }\n\n /**\n * Close the client and cleanup resources\n *\n * @example\n * ```typescript\n * try {\n * // ... use client\n * } finally {\n * await client.close()\n * }\n * ```\n */\n async close(): Promise<void> {\n if (this.transport.close) {\n this.transport.close()\n }\n }\n\n /**\n * Get client configuration\n */\n getConfig(): Readonly<Config> {\n return { ...this.config }\n }\n}\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;AA8DO,MAAM,MAAA,CAAO;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,EAuFlB,YAAY,MAAA,EAAgB;AAtF5B,IAAA,aAAA,CAAA,IAAA,EAAiB,WAAA,CAAA;AACjB,IAAA,aAAA,CAAA,IAAA,EAAiB,QAAA,CAAA;AAKjB;AAAA;AAAA;AAAA,IAAA,aAAA,CAAA,IAAA,EAAgB,MAAA,CAAA;AAKhB;AAAA;AAAA;AAAA,IAAA,aAAA,CAAA,IAAA,EAAgB,OAAA,CAAA;AAKhB;AAAA;AAAA;AAAA,IAAA,aAAA,CAAA,IAAA,EAAgB,OAAA,CAAA;AAKhB;AAAA;AAAA;AAAA,IAAA,aAAA,CAAA,IAAA,EAAgB,aAAA,CAAA;AAKhB;AAAA;AAAA;AAAA,IAAA,aAAA,CAAA,IAAA,EAAgB,OAAA,CAAA;AAKhB;AAAA;AAAA;AAAA,IAAA,aAAA,CAAA,IAAA,EAAgB,WAAA,CAAA;AAKhB;AAAA;AAAA;AAAA,IAAA,aAAA,CAAA,IAAA,EAAgB,eAAA,CAAA;AAKhB;AAAA;AAAA;AAAA,IAAA,aAAA,CAAA,IAAA,EAAgB,IAAA,CAAA;AAKhB;AAAA;AAAA;AAAA,IAAA,aAAA,CAAA,IAAA,EAAgB,aAAA,CAAA;AAyCd,IAAA,IAAA,CAAK,MAAA,GAAS,EAAE,GAAG,cAAA,EAAgB,GAAG,MAAA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A,IAAI,IAAA,CAAK,UAAU,KAAA,EAAO;AACxB,MAAA,IAAA,CAAK,UAAU,KAAA,EAAM;AAAA,IACvB;AAAA,EACF;AAAA;AAAA;AAAA;AAAA,EAKA,SAAA,GAA8B;AAC5B,IAAA,OAAO,EAAE,GAAG,IAAA,CAAK,MAAA,EAAO;AAAA,EAC1B;AACF;;;;"}
package/dist/config.js ADDED
@@ -0,0 +1,7 @@
1
+ const DEFAULT_CONFIG = {
2
+ timeout: 3e4,
3
+ debug: false
4
+ };
5
+
6
+ export { DEFAULT_CONFIG };
7
+ //# sourceMappingURL=config.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"config.js","sources":["../src/config.ts"],"sourcesContent":["/**\n * Configuration types for Refleet SDK\n */\n\n/**\n * Supported protocols\n */\nexport type Protocol = 'http' | 'grpc'\n\n/**\n * Configuration options for Client\n */\nexport interface Config {\n /**\n * Protocol to use for communication\n * - 'http': Use HTTP API via JSON\n * - 'grpc': Use gRPC via binary protocol\n */\n protocol: Protocol\n\n /**\n * Base URL of the Refleet API\n * @example\n * For HTTP: 'https://api.refleet.cloud'\n * For gRPC: 'https://api.refleet.cloud'\n */\n baseURL: string\n\n /**\n * Authentication token (JWT)\n * Can be set during initialization or later with setAuthToken()\n */\n authToken?: string\n\n /**\n * Request timeout in milliseconds\n * @default 30000 (30 seconds)\n */\n timeout?: number\n\n /**\n * Optional function to refresh auth token\n * Called when receiving a 401 Unauthorized response\n */\n refreshAuthToken?: () => Promise<string>\n\n /**\n * Additional headers to include in all requests\n */\n headers?: Record<string, string>\n\n /**\n * Enable debug logging\n * @default false\n */\n debug?: boolean\n}\n\n/**\n * Default configuration values\n */\nexport const DEFAULT_CONFIG: Partial<Config> = {\n timeout: 30000,\n debug: false,\n}\n"],"names":[],"mappings":"AA6DO,MAAM,cAAA,GAAkC;AAAA,EAC7C,OAAA,EAAS,GAAA;AAAA,EACT,KAAA,EAAO;AACT;;;;"}
package/dist/errors.js ADDED
@@ -0,0 +1,96 @@
1
+ class RefleetError extends Error {
2
+ constructor(message, code, statusCode, details) {
3
+ super(message);
4
+ this.code = code;
5
+ this.statusCode = statusCode;
6
+ this.details = details;
7
+ this.name = "RefleetError";
8
+ }
9
+ }
10
+ class NetworkError extends RefleetError {
11
+ constructor(message, details) {
12
+ super(message, "NETWORK_ERROR", void 0, details);
13
+ this.name = "NetworkError";
14
+ }
15
+ }
16
+ class AuthenticationError extends RefleetError {
17
+ constructor(message, details) {
18
+ super(message, "UNAUTHENTICATED", 401, details);
19
+ this.name = "AuthenticationError";
20
+ }
21
+ }
22
+ class PermissionError extends RefleetError {
23
+ constructor(message, details) {
24
+ super(message, "PERMISSION_DENIED", 403, details);
25
+ this.name = "PermissionError";
26
+ }
27
+ }
28
+ class NotFoundError extends RefleetError {
29
+ constructor(message, details) {
30
+ super(message, "NOT_FOUND", 404, details);
31
+ this.name = "NotFoundError";
32
+ }
33
+ }
34
+ class ValidationError extends RefleetError {
35
+ constructor(message, details) {
36
+ super(message, "INVALID_ARGUMENT", 400, details);
37
+ this.name = "ValidationError";
38
+ }
39
+ }
40
+ class RateLimitError extends RefleetError {
41
+ constructor(message, details) {
42
+ super(message, "RESOURCE_EXHAUSTED", 429, details);
43
+ this.name = "RateLimitError";
44
+ }
45
+ }
46
+ class ServerError extends RefleetError {
47
+ constructor(message, statusCode, details) {
48
+ super(message, "INTERNAL", statusCode, details);
49
+ this.name = "ServerError";
50
+ }
51
+ }
52
+ function parseHttpError(statusCode, body) {
53
+ const message = extractErrorMessage(body);
54
+ switch (statusCode) {
55
+ case 400:
56
+ return new ValidationError(message, body);
57
+ case 401:
58
+ return new AuthenticationError(message, body);
59
+ case 403:
60
+ return new PermissionError(message, body);
61
+ case 404:
62
+ return new NotFoundError(message, body);
63
+ case 429:
64
+ return new RateLimitError(message, body);
65
+ default:
66
+ if (statusCode >= 500) {
67
+ return new ServerError(message, statusCode, body);
68
+ }
69
+ return new RefleetError(message, void 0, statusCode, body);
70
+ }
71
+ }
72
+ function extractErrorMessage(body) {
73
+ if (typeof body === "string") {
74
+ return body;
75
+ }
76
+ if (body && typeof body === "object") {
77
+ const b = body;
78
+ return b.message || b.error || b.error_message || String(body);
79
+ }
80
+ return "An error occurred";
81
+ }
82
+ function isRetryableError(error) {
83
+ if (error instanceof NetworkError) {
84
+ return true;
85
+ }
86
+ if (error instanceof RateLimitError) {
87
+ return true;
88
+ }
89
+ if (error instanceof ServerError) {
90
+ return true;
91
+ }
92
+ return false;
93
+ }
94
+
95
+ export { AuthenticationError, NetworkError, NotFoundError, PermissionError, RateLimitError, RefleetError, ServerError, ValidationError, isRetryableError, parseHttpError };
96
+ //# sourceMappingURL=errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"errors.js","sources":["../src/errors.ts"],"sourcesContent":["/**\n * Error handling utilities for Refleet SDK\n */\n\n/**\n * Refleet SDK error base class\n */\nexport class RefleetError extends Error {\n constructor(\n message: string,\n public code?: string,\n public statusCode?: number,\n public details?: unknown\n ) {\n super(message)\n this.name = 'RefleetError'\n }\n}\n\n/**\n * Network error (connection issues, timeouts, etc.)\n */\nexport class NetworkError extends RefleetError {\n constructor(message: string, details?: unknown) {\n super(message, 'NETWORK_ERROR', undefined, details)\n this.name = 'NetworkError'\n }\n}\n\n/**\n * Authentication error (401)\n */\nexport class AuthenticationError extends RefleetError {\n constructor(message: string, details?: unknown) {\n super(message, 'UNAUTHENTICATED', 401, details)\n this.name = 'AuthenticationError'\n }\n}\n\n/**\n * Permission error (403)\n */\nexport class PermissionError extends RefleetError {\n constructor(message: string, details?: unknown) {\n super(message, 'PERMISSION_DENIED', 403, details)\n this.name = 'PermissionError'\n }\n}\n\n/**\n * Not found error (404)\n */\nexport class NotFoundError extends RefleetError {\n constructor(message: string, details?: unknown) {\n super(message, 'NOT_FOUND', 404, details)\n this.name = 'NotFoundError'\n }\n}\n\n/**\n * Validation error (400)\n */\nexport class ValidationError extends RefleetError {\n constructor(message: string, details?: unknown) {\n super(message, 'INVALID_ARGUMENT', 400, details)\n this.name = 'ValidationError'\n }\n}\n\n/**\n * Rate limit error (429)\n */\nexport class RateLimitError extends RefleetError {\n constructor(message: string, details?: unknown) {\n super(message, 'RESOURCE_EXHAUSTED', 429, details)\n this.name = 'RateLimitError'\n }\n}\n\n/**\n * Server error (5xx)\n */\nexport class ServerError extends RefleetError {\n constructor(message: string, statusCode?: number, details?: unknown) {\n super(message, 'INTERNAL', statusCode, details)\n this.name = 'ServerError'\n }\n}\n\n/**\n * Parse HTTP error response and create appropriate error\n */\nexport function parseHttpError(\n statusCode: number,\n body: unknown\n): RefleetError {\n const message = extractErrorMessage(body)\n\n switch (statusCode) {\n case 400:\n return new ValidationError(message, body)\n case 401:\n return new AuthenticationError(message, body)\n case 403:\n return new PermissionError(message, body)\n case 404:\n return new NotFoundError(message, body)\n case 429:\n return new RateLimitError(message, body)\n default:\n if (statusCode >= 500) {\n return new ServerError(message, statusCode, body)\n }\n return new RefleetError(message, undefined, statusCode, body)\n }\n}\n\n/**\n * Extract error message from response body\n */\nfunction extractErrorMessage(body: unknown): string {\n if (typeof body === 'string') {\n return body\n }\n\n if (body && typeof body === 'object') {\n // Try common error message fields\n const b = body as Record<string, unknown>\n return (b.message || b.error || b.error_message || String(body)) as string\n }\n\n return 'An error occurred'\n}\n\n/**\n * Check if error is retryable\n */\nexport function isRetryableError(error: unknown): boolean {\n if (error instanceof NetworkError) {\n return true\n }\n if (error instanceof RateLimitError) {\n return true\n }\n if (error instanceof ServerError) {\n return true\n }\n return false\n}\n"],"names":[],"mappings":"AAOO,MAAM,qBAAqB,KAAA,CAAM;AAAA,EACtC,WAAA,CACE,OAAA,EACO,IAAA,EACA,UAAA,EACA,OAAA,EACP;AACA,IAAA,KAAA,CAAM,OAAO,CAAA;AAJN,IAAA,IAAA,CAAA,IAAA,GAAA,IAAA;AACA,IAAA,IAAA,CAAA,UAAA,GAAA,UAAA;AACA,IAAA,IAAA,CAAA,OAAA,GAAA,OAAA;AAGP,IAAA,IAAA,CAAK,I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EpC,IAAA,MAAM,CAAA,GAAI,IAAA;AACV,IAAA,OAAQ,EAAE,OAAA,IAAW,CAAA,CAAE,SAAS,CAAA,CAAE,aAAA,IAAiB,OAAO,IAAI,CAAA;AAAA,EAChE;AAEA,EAAA,OAAO,mBAAA;AACT;AAKO,SAAS,iBAAiB,KAAA,EAAyB;AACxD,EAAA,IAAI,iBAAiB,YAAA,EAAc;AACjC,IAAA,OAAO,IAAA;AAAA,EACT;AACA,EAAA,IAAI,iBAAiB,cAAA,EAAgB;AACnC,IAAA,OAAO,IAAA;AAAA,EACT;AACA,EAAA,IAAI,iBAAiB,WAAA,EAAa;AAChC,IAAA,OAAO,IAAA;AAAA,EACT;AACA,EAAA,OAAO,KAAA;AACT;;;;"}
package/dist/index.js ADDED
@@ -0,0 +1,18 @@
1
+ export { Client, Client as RefleetClient } from './client.js';
2
+ export { DEFAULT_CONFIG } from './config.js';
3
+ export { AuthService } from './services/auth.js';
4
+ export { TeamsService } from './services/teams.js';
5
+ export { UsersService } from './services/users.js';
6
+ export { CollectionRecordsService } from './services/collections.js';
7
+ export { FilesService } from './services/files.js';
8
+ export { LibrariesService } from './services/libraries.js';
9
+ export { SubscriptionService } from './services/subscriptions.js';
10
+ export { AIChatService } from './services/ai.js';
11
+ export { RuntimeVarsService } from './services/runtime-vars.js';
12
+ export { HttpTransport } from './transports/http.js';
13
+ export { GrpcTransport, createServiceClient } from './transports/grpc.js';
14
+ export { getService, hasService, initServices, registerService, serviceRegistry } from './transports/service-registry.js';
15
+ export { AuthenticationError, NetworkError, NotFoundError, PermissionError, RateLimitError, RefleetError, ServerError, ValidationError, isRetryableError, parseHttpError } from './errors.js';
16
+ export { createClient } from '@connectrpc/connect';
17
+ export { createConnectTransport } from '@connectrpc/connect-web';
18
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;"}
@@ -0,0 +1,7 @@
1
+ import { fileDesc } from '@bufbuild/protobuf/codegenv2';
2
+ import { file_google_protobuf_struct } from '@bufbuild/protobuf/wkt';
3
+
4
+ const file_api_shared_error = /* @__PURE__ */ fileDesc("ChZhcGkvc2hhcmVkL2Vycm9yLnByb3RvEhJyZWZsZWV0LmFwaS5zaGFyZWQibgoFRXJyb3ISDAoEY29kZRgBIAEoCRIMCgR0eXBlGAIgASgJEg8KB21lc3NhZ2UYAyABKAkSJwoGcGFyYW1zGAQgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBIPCgdkZXRhaWxzGAUgAygJIjkKDUVycm9yUmVzcG9uc2USKAoFZXJyb3IYASABKAsyGS5yZWZsZWV0LmFwaS5zaGFyZWQuRXJyb3JCO1o5Z2l0aHViLmNvbS9yZWZsZWV0aW8vcmVmbGVldC9nZW5wcm90by9hcGkvc2hhcmVkO3NoYXJlZHBiYgZwcm90bzM", [file_google_protobuf_struct]);
5
+
6
+ export { file_api_shared_error };
7
+ //# sourceMappingURL=error_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"error_pb.js","sources":["../../../../src/proto/api/shared/error_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.10.0 with parameter \"target=ts,import_extension=none\"\n// @generated from file api/shared/error.proto (package refleet.api.shared, syntax proto3)\n/* eslint-disable */\n\n// buf:lint:ignore PACKAGE_DIRECTORY_MATCH\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_google_protobuf_struct } from \"@bufbuild/protobuf/wkt\";\nimport type { JsonObject, Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file api/shared/error.proto.\n */\nexport const file_api_shared_error: GenFile = /*@__PURE__*/\n fileDesc(\"ChZhcGkvc2hhcmVkL2Vycm9yLnByb3RvEhJyZWZsZWV0LmFwaS5zaGFyZWQibgoFRXJyb3ISDAoEY29kZRgBIAEoCRIMCgR0eXBlGAIgASgJEg8KB21lc3NhZ2UYAyABKAkSJwoGcGFyYW1zGAQgASgLMhcuZ29vZ2xlLnByb3RvYnVmLlN0cnVjdBIPCgdkZXRhaWxzGAUgAygJIjkKDUVycm9yUmVzcG9uc2USKAoFZXJyb3IYASABKAsyGS5yZWZsZWV0LmFwaS5zaGFyZWQuRXJyb3JCO1o5Z2l0aHViLmNvbS9yZWZsZWV0aW8vcmVmbGVldC9nZW5wcm90by9hcGkvc2hhcmVkO3NoYXJlZHBiYgZwcm90bzM\", [file_google_protobuf_struct]);\n\n/**\n * @generated from message refleet.api.shared.Error\n */\nexport type Error = Message<\"refleet.api.shared.Error\"> & {\n /**\n * @generated from field: string code = 1;\n */\n code: string;\n\n /**\n * @generated from field: string type = 2;\n */\n type: string;\n\n /**\n * @generated from field: string message = 3;\n */\n message: string;\n\n /**\n * @generated from field: google.protobuf.Struct params = 4;\n */\n params?: JsonObject;\n\n /**\n * @generated from field: repeated string details = 5;\n */\n details: string[];\n};\n\n/**\n * Describes the message refleet.api.shared.Error.\n * Use `create(ErrorSchema)` to create a new message.\n */\nexport const ErrorSchema: GenMessage<Error> = /*@__PURE__*/\n messageDesc(file_api_shared_error, 0);\n\n/**\n * @generated from message refleet.api.shared.ErrorResponse\n */\nexport type ErrorResponse = Message<\"refleet.api.shared.ErrorResponse\"> & {\n /**\n * @generated from field: refleet.api.shared.Error error = 1;\n */\n error?: Error;\n};\n\n/**\n * Describes the message refleet.api.shared.ErrorResponse.\n * Use `create(ErrorResponseSchema)` to create a new message.\n */\nexport const ErrorResponseSchema: GenMessage<ErrorResponse> = /*@__PURE__*/\n messageDesc(file_api_shared_error, 1);\n\n"],"names":[],"mappings":";;;AAcO,MAAM,qBAAA,mBACX,QAAA,CAAS,6XAAA,EAA+X,CAAC,2BAA2B,CAAC;;;;"}
@@ -0,0 +1,7 @@
1
+ import { fileDesc } from '@bufbuild/protobuf/codegenv2';
2
+ import { file_google_protobuf_any } from '@bufbuild/protobuf/wkt';
3
+
4
+ const file_api_shared_user = /* @__PURE__ */ fileDesc("ChVhcGkvc2hhcmVkL3VzZXIucHJvdG8SEnJlZmxlZXQuYXBpLnNoYXJlZCKfAwoEVXNlchIKCgJpZBgBIAEoCRIQCgh1c2VybmFtZRgCIAEoCRIUCgxkaXNwbGF5X25hbWUYAyABKAkSEgoKYXZhdGFyX3VybBgEIAEoCRINCgVwaG9uZRgFIAEoCRINCgVlbWFpbBgGIAEoCRIOCgZnZW5kZXIYByABKAUSDgoGc3RhdHVzGAggASgFEhIKCmNyZWF0ZWRfYnkYCSABKAkSFQoNY3JlYXRlZF9hdF9tcxgKIAEoAxISCgp1cGRhdGVkX2J5GAsgASgJEhUKDXVwZGF0ZWRfYXRfbXMYDCABKAMSFwoPYmFubmVkX3VudGlsX21zGA0gASgDEhoKEmxhc3Rfc2lnbl9pbl9hdF9tcxgOIAEoAxIWCg5pc19zdXBlcl9hZG1pbhgPIAEoCBI3Cg11c2VyX21ldGFkYXRhGBUgASgLMiAucmVmbGVldC5hcGkuc2hhcmVkLlVzZXJNZXRhZGF0YRI1CgxhcHBfbWV0YWRhdGEYFiABKAsyHy5yZWZsZWV0LmFwaS5zaGFyZWQuQXBwTWV0YWRhdGEiOwoMVXNlck1ldGFkYXRhEgsKA2JpbxgBIAEoCRIMCgR1cmxzGAIgAygJEhAKCGxhbmd1YWdlGAMgASgJIg0KC0FwcE1ldGFkYXRhQjtaOWdpdGh1Yi5jb20vcmVmbGVldGlvL3JlZmxlZXQvZ2VucHJvdG8vYXBpL3NoYXJlZDtzaGFyZWRwYmIGcHJvdG8z", [file_google_protobuf_any]);
5
+
6
+ export { file_api_shared_user };
7
+ //# sourceMappingURL=user_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"user_pb.js","sources":["../../../../src/proto/api/shared/user_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.10.0 with parameter \"target=ts,import_extension=none\"\n// @generated from file api/shared/user.proto (package refleet.api.shared, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_google_protobuf_any } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file api/shared/user.proto.\n */\nexport const file_api_shared_user: GenFile = /*@__PURE__*/\n fileDesc(\"ChVhcGkvc2hhcmVkL3VzZXIucHJvdG8SEnJlZmxlZXQuYXBpLnNoYXJlZCKfAwoEVXNlchIKCgJpZBgBIAEoCRIQCgh1c2VybmFtZRgCIAEoCRIUCgxkaXNwbGF5X25hbWUYAyABKAkSEgoKYXZhdGFyX3VybBgEIAEoCRINCgVwaG9uZRgFIAEoCRINCgVlbWFpbBgGIAEoCRIOCgZnZW5kZXIYByABKAUSDgoGc3RhdHVzGAggASgFEhIKCmNyZWF0ZWRfYnkYCSABKAkSFQoNY3JlYXRlZF9hdF9tcxgKIAEoAxISCgp1cGRhdGVkX2J5GAsgASgJEhUKDXVwZGF0ZWRfYXRfbXMYDCABKAMSFwoPYmFubmVkX3VudGlsX21zGA0gASgDEhoKEmxhc3Rfc2lnbl9pbl9hdF9tcxgOIAEoAxIWCg5pc19zdXBlcl9hZG1pbhgPIAEoCBI3Cg11c2VyX21ldGFkYXRhGBUgASgLMiAucmVmbGVldC5hcGkuc2hhcmVkLlVzZXJNZXRhZGF0YRI1CgxhcHBfbWV0YWRhdGEYFiABKAsyHy5yZWZsZWV0LmFwaS5zaGFyZWQuQXBwTWV0YWRhdGEiOwoMVXNlck1ldGFkYXRhEgsKA2JpbxgBIAEoCRIMCgR1cmxzGAIgAygJEhAKCGxhbmd1YWdlGAMgASgJIg0KC0FwcE1ldGFkYXRhQjtaOWdpdGh1Yi5jb20vcmVmbGVldGlvL3JlZmxlZXQvZ2VucHJvdG8vYXBpL3NoYXJlZDtzaGFyZWRwYmIGcHJvdG8z\", [file_google_protobuf_any]);\n\n/**\n * @generated from message refleet.api.shared.User\n */\nexport type User = Message<\"refleet.api.shared.User\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string username = 2;\n */\n username: string;\n\n /**\n * @generated from field: string display_name = 3;\n */\n displayName: string;\n\n /**\n * @generated from field: string avatar_url = 4;\n */\n avatarUrl: string;\n\n /**\n * @generated from field: string phone = 5;\n */\n phone: string;\n\n /**\n * @generated from field: string email = 6;\n */\n email: string;\n\n /**\n * @generated from field: int32 gender = 7;\n */\n gender: number;\n\n /**\n * @generated from field: int32 status = 8;\n */\n status: number;\n\n /**\n * @generated from field: string created_by = 9;\n */\n createdBy: string;\n\n /**\n * @generated from field: int64 created_at_ms = 10;\n */\n createdAtMs: bigint;\n\n /**\n * @generated from field: string updated_by = 11;\n */\n updatedBy: string;\n\n /**\n * @generated from field: int64 updated_at_ms = 12;\n */\n updatedAtMs: bigint;\n\n /**\n * @generated from field: int64 banned_until_ms = 13;\n */\n bannedUntilMs: bigint;\n\n /**\n * @generated from field: int64 last_sign_in_at_ms = 14;\n */\n lastSignInAtMs: bigint;\n\n /**\n * @generated from field: bool is_super_admin = 15;\n */\n isSuperAdmin: boolean;\n\n /**\n * @generated from field: refleet.api.shared.UserMetadata user_metadata = 21;\n */\n userMetadata?: UserMetadata;\n\n /**\n * @generated from field: refleet.api.shared.AppMetadata app_metadata = 22;\n */\n appMetadata?: AppMetadata;\n};\n\n/**\n * Describes the message refleet.api.shared.User.\n * Use `create(UserSchema)` to create a new message.\n */\nexport const UserSchema: GenMessage<User> = /*@__PURE__*/\n messageDesc(file_api_shared_user, 0);\n\n/**\n * @generated from message refleet.api.shared.UserMetadata\n */\nexport type UserMetadata = Message<\"refleet.api.shared.UserMetadata\"> & {\n /**\n * @generated from field: string bio = 1;\n */\n bio: string;\n\n /**\n * @generated from field: repeated string urls = 2;\n */\n urls: string[];\n\n /**\n * @generated from field: string language = 3;\n */\n language: string;\n};\n\n/**\n * Describes the message refleet.api.shared.UserMetadata.\n * Use `create(UserMetadataSchema)` to create a new message.\n */\nexport const UserMetadataSchema: GenMessage<UserMetadata> = /*@__PURE__*/\n messageDesc(file_api_shared_user, 1);\n\n/**\n * @generated from message refleet.api.shared.AppMetadata\n */\nexport type AppMetadata = Message<\"refleet.api.shared.AppMetadata\"> & {\n};\n\n/**\n * Describes the message refleet.api.shared.AppMetadata.\n * Use `create(AppMetadataSchema)` to create a new message.\n */\nexport const AppMetadataSchema: GenMessage<AppMetadata> = /*@__PURE__*/\n messageDesc(file_api_shared_user, 2);\n\n"],"names":[],"mappings":";;;AAYO,MAAM,oBAAA,mBACX,QAAA,CAAS,0yBAAA,EAA4yB,CAAC,wBAAwB,CAAC;;;;"}
@@ -0,0 +1,12 @@
1
+ import { serviceDesc, fileDesc } from '@bufbuild/protobuf/codegenv2';
2
+ import { file_api_shared_error } from '../shared/error_pb.js';
3
+ import { file_api_shared_user } from '../shared/user_pb.js';
4
+ import { file_buf_validate_validate } from '../../buf/validate/validate_pb.js';
5
+ import { file_google_api_annotations } from '../../google/api/annotations_pb.js';
6
+ import { file_google_protobuf_timestamp, file_google_protobuf_wrappers } from '@bufbuild/protobuf/wkt';
7
+
8
+ const file_api_v1_auth = /* @__PURE__ */ fileDesc("ChFhcGkvdjEvYXV0aC5wcm90bxIOcmVmbGVldC5hcGkudjEiewoMVG9rZW5SZXF1ZXN0EhIKCmdyYW50X3R5cGUYASABKAkSEAoIdXNlcm5hbWUYAiABKAkSDQoFZW1haWwYAyABKAkSDQoFcGhvbmUYBCABKAkSEAoIcGFzc3dvcmQYBSABKAkSFQoNcmVmcmVzaF90b2tlbhgGIAEoCSJlChhBdXRob3JpemVQYXNzd29yZFJlcXVlc3QSEAoIdXNlcm5hbWUYASABKAkSFgoFZW1haWwYAiABKAlCB7pIBHICYAESDQoFcGhvbmUYAyABKAkSEAoIcGFzc3dvcmQYBCABKAkimAEKDVRva2VuUmVzcG9uc2USDQoFdG9rZW4YAyABKAkSEgoKZXhwaXJlc19hdBgEIAEoAxIVCg1yZWZyZXNoX3Rva2VuGAUgASgJEiAKGHJlZnJlc2hfdG9rZW5fZXhwaXJlc19hdBgGIAEoAxIrCgl1c2VyX2luZm8YByABKAsyGC5yZWZsZWV0LmFwaS5zaGFyZWQuVXNlciIsChNSZWZyZXNoVG9rZW5SZXF1ZXN0EhUKDXJlZnJlc2hfdG9rZW4YASABKAkitQEKDVNpZ25VcFJlcXVlc3QSEAoIdXNlcm5hbWUYASABKAkSDQoFZW1haWwYAiABKAkSDQoFcGhvbmUYAyABKAkSEAoIcGFzc3dvcmQYBCABKAkSNQoEZGF0YRgFIAMoCzInLnJlZmxlZXQuYXBpLnYxLlNpZ25VcFJlcXVlc3QuRGF0YUVudHJ5GisKCURhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIj0KDlNpZ25VcFJlc3BvbnNlEisKCXVzZXJfaW5mbxgDIAEoCzIYLnJlZmxlZXQuYXBpLnNoYXJlZC5Vc2VyMskBCgtBdXRoU2VydmljZRJaCgVUb2tlbhIcLnJlZmxlZXQuYXBpLnYxLlRva2VuUmVxdWVzdBodLnJlZmxlZXQuYXBpLnYxLlRva2VuUmVzcG9uc2UiFILT5JMCDjoBKiIJL3YxL3Rva2VuEl4KBlNpZ25VcBIdLnJlZmxlZXQuYXBpLnYxLlNpZ25VcFJlcXVlc3QaHi5yZWZsZWV0LmFwaS52MS5TaWduVXBSZXNwb25zZSIVgtPkkwIPOgEqIgovdjEvc2lnblVwQjRaMmdpdGh1Yi5jb20vcmVmbGVldGlvL3JlZmxlZXQvZ2VucHJvdG8vYXBpL3YxO2FwaXBiYgZwcm90bzM", [file_api_shared_error, file_api_shared_user, file_buf_validate_validate, file_google_api_annotations, file_google_protobuf_timestamp, file_google_protobuf_wrappers]);
9
+ const AuthService = /* @__PURE__ */ serviceDesc(file_api_v1_auth, 0);
10
+
11
+ export { AuthService, file_api_v1_auth };
12
+ //# sourceMappingURL=auth_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"auth_pb.js","sources":["../../../../src/proto/api/v1/auth_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.10.0 with parameter \"target=ts,import_extension=none\"\n// @generated from file api/v1/auth.proto (package refleet.api.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_api_shared_error } from \"../shared/error_pb\";\nimport type { User } from \"../shared/user_pb\";\nimport { file_api_shared_user } from \"../shared/user_pb\";\nimport { file_buf_validate_validate } from \"../../buf/validate/validate_pb\";\nimport { file_google_api_annotations } from \"../../google/api/annotations_pb\";\nimport { file_google_protobuf_timestamp, file_google_protobuf_wrappers } from \"@bufbuild/protobuf/wkt\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file api/v1/auth.proto.\n */\nexport const file_api_v1_auth: GenFile = /*@__PURE__*/\n fileDesc(\"ChFhcGkvdjEvYXV0aC5wcm90bxIOcmVmbGVldC5hcGkudjEiewoMVG9rZW5SZXF1ZXN0EhIKCmdyYW50X3R5cGUYASABKAkSEAoIdXNlcm5hbWUYAiABKAkSDQoFZW1haWwYAyABKAkSDQoFcGhvbmUYBCABKAkSEAoIcGFzc3dvcmQYBSABKAkSFQoNcmVmcmVzaF90b2tlbhgGIAEoCSJlChhBdXRob3JpemVQYXNzd29yZFJlcXVlc3QSEAoIdXNlcm5hbWUYASABKAkSFgoFZW1haWwYAiABKAlCB7pIBHICYAESDQoFcGhvbmUYAyABKAkSEAoIcGFzc3dvcmQYBCABKAkimAEKDVRva2VuUmVzcG9uc2USDQoFdG9rZW4YAyABKAkSEgoKZXhwaXJlc19hdBgEIAEoAxIVCg1yZWZyZXNoX3Rva2VuGAUgASgJEiAKGHJlZnJlc2hfdG9rZW5fZXhwaXJlc19hdBgGIAEoAxIrCgl1c2VyX2luZm8YByABKAsyGC5yZWZsZWV0LmFwaS5zaGFyZWQuVXNlciIsChNSZWZyZXNoVG9rZW5SZXF1ZXN0EhUKDXJlZnJlc2hfdG9rZW4YASABKAkitQEKDVNpZ25VcFJlcXVlc3QSEAoIdXNlcm5hbWUYASABKAkSDQoFZW1haWwYAiABKAkSDQoFcGhvbmUYAyABKAkSEAoIcGFzc3dvcmQYBCABKAkSNQoEZGF0YRgFIAMoCzInLnJlZmxlZXQuYXBpLnYxLlNpZ25VcFJlcXVlc3QuRGF0YUVudHJ5GisKCURhdGFFbnRyeRILCgNrZXkYASABKAkSDQoFdmFsdWUYAiABKAk6AjgBIj0KDlNpZ25VcFJlc3BvbnNlEisKCXVzZXJfaW5mbxgDIAEoCzIYLnJlZmxlZXQuYXBpLnNoYXJlZC5Vc2VyMskBCgtBdXRoU2VydmljZRJaCgVUb2tlbhIcLnJlZmxlZXQuYXBpLnYxLlRva2VuUmVxdWVzdBodLnJlZmxlZXQuYXBpLnYxLlRva2VuUmVzcG9uc2UiFILT5JMCDjoBKiIJL3YxL3Rva2VuEl4KBlNpZ25VcBIdLnJlZmxlZXQuYXBpLnYxLlNpZ25VcFJlcXVlc3QaHi5yZWZsZWV0LmFwaS52MS5TaWduVXBSZXNwb25zZSIVgtPkkwIPOgEqIgovdjEvc2lnblVwQjRaMmdpdGh1Yi5jb20vcmVmbGVldGlvL3JlZmxlZXQvZ2VucHJvdG8vYXBpL3YxO2FwaXBiYgZwcm90bzM\", [file_api_shared_error, file_api_shared_user, file_buf_validate_validate, file_google_api_annotations, file_google_protobuf_timestamp, file_google_protobuf_wrappers]);\n\n/**\n * @generated from message refleet.api.v1.TokenRequest\n */\nexport type TokenRequest = Message<\"refleet.api.v1.TokenRequest\"> & {\n /**\n * @generated from field: string grant_type = 1;\n */\n grantType: string;\n\n /**\n * @generated from field: string username = 2;\n */\n username: string;\n\n /**\n * @generated from field: string email = 3;\n */\n email: string;\n\n /**\n * @generated from field: string phone = 4;\n */\n phone: string;\n\n /**\n * @generated from field: string password = 5;\n */\n password: string;\n\n /**\n * @generated from field: string refresh_token = 6;\n */\n refreshToken: string;\n};\n\n/**\n * Describes the message refleet.api.v1.TokenRequest.\n * Use `create(TokenRequestSchema)` to create a new message.\n */\nexport const TokenRequestSchema: GenMessage<TokenRequest> = /*@__PURE__*/\n messageDesc(file_api_v1_auth, 0);\n\n/**\n * @generated from message refleet.api.v1.AuthorizePasswordRequest\n */\nexport type AuthorizePasswordRequest = Message<\"refleet.api.v1.AuthorizePasswordRequest\"> & {\n /**\n * @generated from field: string username = 1;\n */\n username: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: string phone = 3;\n */\n phone: string;\n\n /**\n * @generated from field: string password = 4;\n */\n password: string;\n};\n\n/**\n * Describes the message refleet.api.v1.AuthorizePasswordRequest.\n * Use `create(AuthorizePasswordRequestSchema)` to create a new message.\n */\nexport const AuthorizePasswordRequestSchema: GenMessage<AuthorizePasswordRequest> = /*@__PURE__*/\n messageDesc(file_api_v1_auth, 1);\n\n/**\n * @generated from message refleet.api.v1.TokenResponse\n */\nexport type TokenResponse = Message<\"refleet.api.v1.TokenResponse\"> & {\n /**\n * @generated from field: string token = 3;\n */\n token: string;\n\n /**\n * @generated from field: int64 expires_at = 4;\n */\n expiresAt: bigint;\n\n /**\n * @generated from field: string refresh_token = 5;\n */\n refreshToken: string;\n\n /**\n * @generated from field: int64 refresh_token_expires_at = 6;\n */\n refreshTokenExpiresAt: bigint;\n\n /**\n * @generated from field: refleet.api.shared.User user_info = 7;\n */\n userInfo?: User;\n};\n\n/**\n * Describes the message refleet.api.v1.TokenResponse.\n * Use `create(TokenResponseSchema)` to create a new message.\n */\nexport const TokenResponseSchema: GenMessage<TokenResponse> = /*@__PURE__*/\n messageDesc(file_api_v1_auth, 2);\n\n/**\n * @generated from message refleet.api.v1.RefreshTokenRequest\n */\nexport type RefreshTokenRequest = Message<\"refleet.api.v1.RefreshTokenRequest\"> & {\n /**\n * @generated from field: string refresh_token = 1;\n */\n refreshToken: string;\n};\n\n/**\n * Describes the message refleet.api.v1.RefreshTokenRequest.\n * Use `create(RefreshTokenRequestSchema)` to create a new message.\n */\nexport const RefreshTokenRequestSchema: GenMessage<RefreshTokenRequest> = /*@__PURE__*/\n messageDesc(file_api_v1_auth, 3);\n\n/**\n * @generated from message refleet.api.v1.SignUpRequest\n */\nexport type SignUpRequest = Message<\"refleet.api.v1.SignUpRequest\"> & {\n /**\n * @generated from field: string username = 1;\n */\n username: string;\n\n /**\n * @generated from field: string email = 2;\n */\n email: string;\n\n /**\n * @generated from field: string phone = 3;\n */\n phone: string;\n\n /**\n * @generated from field: string password = 4;\n */\n password: string;\n\n /**\n * @generated from field: map<string, string> data = 5;\n */\n data: { [key: string]: string };\n};\n\n/**\n * Describes the message refleet.api.v1.SignUpRequest.\n * Use `create(SignUpRequestSchema)` to create a new message.\n */\nexport const SignUpRequestSchema: GenMessage<SignUpRequest> = /*@__PURE__*/\n messageDesc(file_api_v1_auth, 4);\n\n/**\n * @generated from message refleet.api.v1.SignUpResponse\n */\nexport type SignUpResponse = Message<\"refleet.api.v1.SignUpResponse\"> & {\n /**\n * @generated from field: refleet.api.shared.User user_info = 3;\n */\n userInfo?: User;\n};\n\n/**\n * Describes the message refleet.api.v1.SignUpResponse.\n * Use `create(SignUpResponseSchema)` to create a new message.\n */\nexport const SignUpResponseSchema: GenMessage<SignUpResponse> = /*@__PURE__*/\n messageDesc(file_api_v1_auth, 5);\n\n/**\n * @generated from service refleet.api.v1.AuthService\n */\nexport const AuthService: GenService<{\n /**\n * @generated from rpc refleet.api.v1.AuthService.Token\n */\n token: {\n methodKind: \"unary\";\n input: typeof TokenRequestSchema;\n output: typeof TokenResponseSchema;\n },\n /**\n * @generated from rpc refleet.api.v1.AuthService.SignUp\n */\n signUp: {\n methodKind: \"unary\";\n input: typeof SignUpRequestSchema;\n output: typeof SignUpResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_api_v1_auth, 0);\n\n"],"names":[],"mappings":";;;;;;;AAiBO,MAAM,gBAAA,mBACX,QAAA,CAAS,yxCAAA,EAA2xC,CAAC,qBAAA,EAAuB,sBAAsB,0BAAA,EAA4B,2BAAA,EAA6B,8BAAA,EAAgC,6BAA6B,CAAC;AA2Lp8C,MAAM,WAAA,mBAkBX,WAAA,CAAY,gBAAA,EAAkB,CAAC;;;;"}
@@ -0,0 +1,9 @@
1
+ import { serviceDesc, fileDesc } from '@bufbuild/protobuf/codegenv2';
2
+ import { file_api_shared_error } from '../shared/error_pb.js';
3
+ import { file_google_api_annotations } from '../../google/api/annotations_pb.js';
4
+
5
+ const file_api_v1_hello = /* @__PURE__ */ fileDesc("ChJhcGkvdjEvaGVsbG8ucHJvdG8SDnJlZmxlZXQuYXBpLnYxIjgKDEhlbGxvUmVxdWVzdBIYChBncmVldGluZ19tZXNzYWdlGAEgASgJEg4KBm1zZ19pZBgCIAEoCSJyCg1IZWxsb1Jlc3BvbnNlEigKBWVycm9yGAEgASgLMhkucmVmbGVldC5hcGkuc2hhcmVkLkVycm9yEhgKEGdyZWV0aW5nX21lc3NhZ2UYAiABKAkSHQoVZ3JlZXRpbmdfbWVzc2FnZV9jb3B5GAMgASgJMtkBCgxIZWxsb1NlcnZpY2USYAoFSGVsbG8SHC5yZWZsZWV0LmFwaS52MS5IZWxsb1JlcXVlc3QaHS5yZWZsZWV0LmFwaS52MS5IZWxsb1Jlc3BvbnNlIhqC0+STAhQSEi92MS9oZWxsby97bXNnX2lkfRJnCglIZWxsb0pTT04SHC5yZWZsZWV0LmFwaS52MS5IZWxsb1JlcXVlc3QaHS5yZWZsZWV0LmFwaS52MS5IZWxsb1Jlc3BvbnNlIh2C0+STAhc6ASoiEi92MS9oZWxsby97bXNnX2lkfUI0WjJnaXRodWIuY29tL3JlZmxlZXRpby9yZWZsZWV0L2dlbnByb3RvL2FwaS92MTthcGlwYmIGcHJvdG8z", [file_api_shared_error, file_google_api_annotations]);
6
+ const HelloService = /* @__PURE__ */ serviceDesc(file_api_v1_hello, 0);
7
+
8
+ export { HelloService, file_api_v1_hello };
9
+ //# sourceMappingURL=hello_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hello_pb.js","sources":["../../../../src/proto/api/v1/hello_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.10.0 with parameter \"target=ts,import_extension=none\"\n// @generated from file api/v1/hello.proto (package refleet.api.v1, syntax proto3)\n/* eslint-disable */\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport type { Error } from \"../shared/error_pb\";\nimport { file_api_shared_error } from \"../shared/error_pb\";\nimport { file_google_api_annotations } from \"../../google/api/annotations_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file api/v1/hello.proto.\n */\nexport const file_api_v1_hello: GenFile = /*@__PURE__*/\n fileDesc(\"ChJhcGkvdjEvaGVsbG8ucHJvdG8SDnJlZmxlZXQuYXBpLnYxIjgKDEhlbGxvUmVxdWVzdBIYChBncmVldGluZ19tZXNzYWdlGAEgASgJEg4KBm1zZ19pZBgCIAEoCSJyCg1IZWxsb1Jlc3BvbnNlEigKBWVycm9yGAEgASgLMhkucmVmbGVldC5hcGkuc2hhcmVkLkVycm9yEhgKEGdyZWV0aW5nX21lc3NhZ2UYAiABKAkSHQoVZ3JlZXRpbmdfbWVzc2FnZV9jb3B5GAMgASgJMtkBCgxIZWxsb1NlcnZpY2USYAoFSGVsbG8SHC5yZWZsZWV0LmFwaS52MS5IZWxsb1JlcXVlc3QaHS5yZWZsZWV0LmFwaS52MS5IZWxsb1Jlc3BvbnNlIhqC0+STAhQSEi92MS9oZWxsby97bXNnX2lkfRJnCglIZWxsb0pTT04SHC5yZWZsZWV0LmFwaS52MS5IZWxsb1JlcXVlc3QaHS5yZWZsZWV0LmFwaS52MS5IZWxsb1Jlc3BvbnNlIh2C0+STAhc6ASoiEi92MS9oZWxsby97bXNnX2lkfUI0WjJnaXRodWIuY29tL3JlZmxlZXRpby9yZWZsZWV0L2dlbnByb3RvL2FwaS92MTthcGlwYmIGcHJvdG8z\", [file_api_shared_error, file_google_api_annotations]);\n\n/**\n * @generated from message refleet.api.v1.HelloRequest\n */\nexport type HelloRequest = Message<\"refleet.api.v1.HelloRequest\"> & {\n /**\n * @generated from field: string greeting_message = 1;\n */\n greetingMessage: string;\n\n /**\n * @generated from field: string msg_id = 2;\n */\n msgId: string;\n};\n\n/**\n * Describes the message refleet.api.v1.HelloRequest.\n * Use `create(HelloRequestSchema)` to create a new message.\n */\nexport const HelloRequestSchema: GenMessage<HelloRequest> = /*@__PURE__*/\n messageDesc(file_api_v1_hello, 0);\n\n/**\n * @generated from message refleet.api.v1.HelloResponse\n */\nexport type HelloResponse = Message<\"refleet.api.v1.HelloResponse\"> & {\n /**\n * @generated from field: refleet.api.shared.Error error = 1;\n */\n error?: Error;\n\n /**\n * @generated from field: string greeting_message = 2;\n */\n greetingMessage: string;\n\n /**\n * @generated from field: string greeting_message_copy = 3;\n */\n greetingMessageCopy: string;\n};\n\n/**\n * Describes the message refleet.api.v1.HelloResponse.\n * Use `create(HelloResponseSchema)` to create a new message.\n */\nexport const HelloResponseSchema: GenMessage<HelloResponse> = /*@__PURE__*/\n messageDesc(file_api_v1_hello, 1);\n\n/**\n * @generated from service refleet.api.v1.HelloService\n */\nexport const HelloService: GenService<{\n /**\n * @generated from rpc refleet.api.v1.HelloService.Hello\n */\n hello: {\n methodKind: \"unary\";\n input: typeof HelloRequestSchema;\n output: typeof HelloResponseSchema;\n },\n /**\n * @generated from rpc refleet.api.v1.HelloService.HelloJSON\n */\n helloJSON: {\n methodKind: \"unary\";\n input: typeof HelloRequestSchema;\n output: typeof HelloResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_api_v1_hello, 0);\n\n"],"names":[],"mappings":";;;;AAcO,MAAM,oCACX,QAAA,CAAS,kpBAAA,EAAopB,CAAC,qBAAA,EAAuB,2BAA2B,CAAC;AAsD5sB,MAAM,YAAA,mBAkBX,WAAA,CAAY,iBAAA,EAAmB,CAAC;;;;"}
@@ -0,0 +1,10 @@
1
+ import { serviceDesc, fileDesc } from '@bufbuild/protobuf/codegenv2';
2
+ import { file_google_api_annotations } from '../../google/api/annotations_pb.js';
3
+ import { file_google_protobuf_field_mask, file_google_protobuf_timestamp } from '@bufbuild/protobuf/wkt';
4
+ import { file_buf_validate_validate } from '../../buf/validate/validate_pb.js';
5
+
6
+ const file_api_v1_libraries = /* @__PURE__ */ fileDesc("ChZhcGkvdjEvbGlicmFyaWVzLnByb3RvEg5yZWZsZWV0LmFwaS52MSInChFHZXRMaWJyYXJ5UmVxdWVzdBISCgpsaWJyYXJ5X2lkGAEgASgJIj4KEkdldExpYnJhcnlSZXNwb25zZRIoCgdsaWJyYXJ5GAEgASgLMhcucmVmbGVldC5hcGkudjEuTGlicmFyeSKVAgoHTGlicmFyeRIKCgJpZBgBIAEoCRIUCgRuYW1lGAIgASgJQga6SAPIAQESHAoMZGlzcGxheV9uYW1lGAMgASgJQga6SAPIAQESEwoLZGVzY3JpcHRpb24YBCABKAkSFAoEdHlwZRgFIAEoCUIGukgDyAEBEhcKB3RlYW1faWQYBiABKAlCBrpIA8gBARISCgpjcmVhdGVkX2J5GAsgASgJEi4KCmNyZWF0ZWRfYXQYDCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhIKCnVwZGF0ZWRfYnkYDSABKAkSLgoKdXBkYXRlZF9hdBgOIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAijAEKBlNvdXJjZRIMCgR0eXBlGAEgASgJEgsKA3VyaRgCIAEoCRI2CghtZXRhZGF0YRgDIAMoCzIkLnJlZmxlZXQuYXBpLnYxLlNvdXJjZS5NZXRhZGF0YUVudHJ5Gi8KDU1ldGFkYXRhRW50cnkSCwoDa2V5GAEgASgJEg0KBXZhbHVlGAIgASgJOgI4ASJfChRMaXN0TGlicmFyaWV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nYxLkxpc3RMaWJyYXJpZXNSZXF1ZXN0GiUucmVmbGVldC5hcGkudjEuTGlzdExpYnJhcmllc1Jlc3BvbnNlIhWC0+STAg8SDS92MS9saWJyYXJpZXMSfAoNQ3JlYXRlTGlicmFyeRIkLnJlZmxlZXQuYXBpLnYxLkNyZWF0ZUxpYnJhcnlSZXF1ZXN0GiUucmVmbGVldC5hcGkudjEuQ3JlYXRlTGlicmFyeVJlc3BvbnNlIh6C0+STAhg6B2xpYnJhcnkiDS92MS9saWJyYXJpZXMSiQEKDVVwZGF0ZUxpYnJhcnkSJC5yZWZsZWV0LmFwaS52MS5VcGRhdGVMaWJyYXJ5UmVxdWVzdBolLnJlZmxlZXQuYXBpLnYxLlVwZGF0ZUxpYnJhcnlSZXNwb25zZSIrgtPkkwIlOgdsaWJyYXJ5MhovdjEvbGlicmFyaWVzL3tsaWJyYXJ5LmlkfRKAAQoNRGVsZXRlTGlicmFyeRIkLnJlZmxlZXQuYXBpLnYxLkRlbGV0ZUxpYnJhcnlSZXF1ZXN0GiUucmVmbGVldC5hcGkudjEuRGVsZXRlTGlicmFyeVJlc3BvbnNlIiKC0+STAhwqGi92MS9saWJyYXJpZXMve2xpYnJhcnlfaWR9QjRaMmdpdGh1Yi5jb20vcmVmbGVldGlvL3JlZmxlZXQvZ2VucHJvdG8vYXBpL3YxO2FwaXBiYgZwcm90bzM", [file_google_api_annotations, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_buf_validate_validate]);
7
+ const LibrariesService = /* @__PURE__ */ serviceDesc(file_api_v1_libraries, 0);
8
+
9
+ export { LibrariesService, file_api_v1_libraries };
10
+ //# sourceMappingURL=libraries_pb.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"libraries_pb.js","sources":["../../../../src/proto/api/v1/libraries_pb.ts"],"sourcesContent":["// @generated by protoc-gen-es v2.10.0 with parameter \"target=ts,import_extension=none\"\n// @generated from file api/v1/libraries.proto (package refleet.api.v1, syntax proto3)\n/* eslint-disable */\n\n// buf:lint:ignore PACKAGE_DIRECTORY_MATCH\n\nimport type { GenFile, GenMessage, GenService } from \"@bufbuild/protobuf/codegenv2\";\nimport { fileDesc, messageDesc, serviceDesc } from \"@bufbuild/protobuf/codegenv2\";\nimport { file_google_api_annotations } from \"../../google/api/annotations_pb\";\nimport type { FieldMask, Timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_google_protobuf_field_mask, file_google_protobuf_timestamp } from \"@bufbuild/protobuf/wkt\";\nimport { file_buf_validate_validate } from \"../../buf/validate/validate_pb\";\nimport type { Message } from \"@bufbuild/protobuf\";\n\n/**\n * Describes the file api/v1/libraries.proto.\n */\nexport const file_api_v1_libraries: GenFile = /*@__PURE__*/\n fileDesc(\"ChZhcGkvdjEvbGlicmFyaWVzLnByb3RvEg5yZWZsZWV0LmFwaS52MSInChFHZXRMaWJyYXJ5UmVxdWVzdBISCgpsaWJyYXJ5X2lkGAEgASgJIj4KEkdldExpYnJhcnlSZXNwb25zZRIoCgdsaWJyYXJ5GAEgASgLMhcucmVmbGVldC5hcGkudjEuTGlicmFyeSKVAgoHTGlicmFyeRIKCgJpZBgBIAEoCRIUCgRuYW1lGAIgASgJQga6SAPIAQESHAoMZGlzcGxheV9uYW1lGAMgASgJQga6SAPIAQESEwoLZGVzY3JpcHRpb24YBCABKAkSFAoEdHlwZRgFIAEoCUIGukgDyAEBEhcKB3RlYW1faWQYBiABKAlCBrpIA8gBARISCgpjcmVhdGVkX2J5GAsgASgJEi4KCmNyZWF0ZWRfYXQYDCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhIKCnVwZGF0ZWRfYnkYDSABKAkSLgoKdXBkYXRlZF9hdBgOIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAijAEKBlNvdXJjZRIMCgR0eXBlGAEgASgJEgsKA3VyaRgCIAEoCRI2CghtZXRhZGF0YRgDIAMoCzIkLnJlZmxlZXQuYXBpLnYxLlNvdXJjZS5NZXRhZGF0Y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9uc2UiIoLT5JMCHBIaL3YxL2xpYnJhcmllcy97bGlicmFyeV9pZH0ScwoNTGlzdExpYnJhcmllcxIkLnJlZmxlZXQuYXBpLnYxLkxpc3RMaWJyYXJpZXNSZXF1ZXN0GiUucmVmbGVldC5hcGkudjEuTGlzdExpYnJhcmllc1Jlc3BvbnNlIhWC0+STAg8SDS92MS9saWJyYXJpZXMSfAoNQ3JlYXRlTGlicmFyeRIkLnJlZmxlZXQuYXBpLnYxLkNyZWF0ZUxpYnJhcnlSZXF1ZXN0GiUucmVmbGVldC5hcGkudjEuQ3JlYXRlTGlicmFyeVJlc3BvbnNlIh6C0+STAhg6B2xpYnJhcnkiDS92MS9saWJyYXJpZXMSiQEKDVVwZGF0ZUxpYnJhcnkSJC5yZWZsZWV0LmFwaS52MS5VcGRhdGVMaWJyYXJ5UmVxdWVzdBolLnJlZmxlZXQuYXBpLnYxLlVwZGF0ZUxpYnJhcnlSZXNwb25zZSIrgtPkkwIlOgdsaWJyYXJ5MhovdjEvbGlicmFyaWVzL3tsaWJyYXJ5LmlkfRKAAQoNRGVsZXRlTGlicmFyeRIkLnJlZmxlZXQuYXBpLnYxLkRlbGV0ZUxpYnJhcnlSZXF1ZXN0GiUucmVmbGVldC5hcGkudjEuRGVsZXRlTGlicmFyeVJlc3BvbnNlIiKC0+STAhwqGi92MS9saWJyYXJpZXMve2xpYnJhcnlfaWR9QjRaMmdpdGh1Yi5jb20vcmVmbGVldGlvL3JlZmxlZXQvZ2VucHJvdG8vYXBpL3YxO2FwaXBiYgZwcm90bzM\", [file_google_api_annotations, file_google_protobuf_field_mask, file_google_protobuf_timestamp, file_buf_validate_validate]);\n\n/**\n * @generated from message refleet.api.v1.GetLibraryRequest\n */\nexport type GetLibraryRequest = Message<\"refleet.api.v1.GetLibraryRequest\"> & {\n /**\n * @generated from field: string library_id = 1;\n */\n libraryId: string;\n};\n\n/**\n * Describes the message refleet.api.v1.GetLibraryRequest.\n * Use `create(GetLibraryRequestSchema)` to create a new message.\n */\nexport const GetLibraryRequestSchema: GenMessage<GetLibraryRequest> = /*@__PURE__*/\n messageDesc(file_api_v1_libraries, 0);\n\n/**\n * @generated from message refleet.api.v1.GetLibraryResponse\n */\nexport type GetLibraryResponse = Message<\"refleet.api.v1.GetLibraryResponse\"> & {\n /**\n * @generated from field: refleet.api.v1.Library library = 1;\n */\n library?: Library;\n};\n\n/**\n * Describes the message refleet.api.v1.GetLibraryResponse.\n * Use `create(GetLibraryResponseSchema)` to create a new message.\n */\nexport const GetLibraryResponseSchema: GenMessage<GetLibraryResponse> = /*@__PURE__*/\n messageDesc(file_api_v1_libraries, 1);\n\n/**\n * @generated from message refleet.api.v1.Library\n */\nexport type Library = Message<\"refleet.api.v1.Library\"> & {\n /**\n * @generated from field: string id = 1;\n */\n id: string;\n\n /**\n * @generated from field: string name = 2;\n */\n name: string;\n\n /**\n * @generated from field: string display_name = 3;\n */\n displayName: string;\n\n /**\n * @generated from field: string description = 4;\n */\n description: string;\n\n /**\n * @generated from field: string type = 5;\n */\n type: string;\n\n /**\n * @generated from field: string team_id = 6;\n */\n teamId: string;\n\n /**\n * @generated from field: string created_by = 11;\n */\n createdBy: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp created_at = 12;\n */\n createdAt?: Timestamp;\n\n /**\n * @generated from field: string updated_by = 13;\n */\n updatedBy: string;\n\n /**\n * @generated from field: google.protobuf.Timestamp updated_at = 14;\n */\n updatedAt?: Timestamp;\n};\n\n/**\n * Describes the message refleet.api.v1.Library.\n * Use `create(LibrarySchema)` to create a new message.\n */\nexport const LibrarySchema: GenMessage<Library> = /*@__PURE__*/\n messageDesc(file_api_v1_libraries, 2);\n\n/**\n * @generated from message refleet.api.v1.Source\n */\nexport type Source = Message<\"refleet.api.v1.Source\"> & {\n /**\n * The source type (e.g., \"git\", \"local\", \"s3\").\n *\n * @generated from field: string type = 1;\n */\n type: string;\n\n /**\n * The source URI or path.\n *\n * @generated from field: string uri = 2;\n */\n uri: string;\n\n /**\n * Additional source configuration.\n *\n * @generated from field: map<string, string> metadata = 3;\n */\n metadata: { [key: string]: string };\n};\n\n/**\n * Describes the message refleet.api.v1.Source.\n * Use `create(SourceSchema)` to create a new message.\n */\nexport const SourceSchema: GenMessage<Source> = /*@__PURE__*/\n messageDesc(file_api_v1_libraries, 3);\n\n/**\n * @generated from message refleet.api.v1.ListLibrariesRequest\n */\nexport type ListLibrariesRequest = Message<\"refleet.api.v1.ListLibrariesRequest\"> & {\n /**\n * The maximum number of libraries to return.\n * The service may return fewer than this value.\n * If unspecified, at most 50 libraries will be returned.\n * The maximum value is 1000; values above 1000 will be coerced to 1000.\n *\n * @generated from field: int32 page_size = 1;\n */\n pageSize: number;\n\n /**\n * A page token, received from a previous `ListLibraries` call.\n * Provide this to retrieve the subsequent page.\n *\n * When paginating, all other parameters provided to `ListLibraries` must match\n * the call that provided the page token.\n *\n * @generated from field: string page_token = 2;\n */\n pageToken: string;\n\n /**\n * An optional filter for the query.\n * See https://google.aip.dev/160 for more details.\n *\n * @generated from field: string filter = 3;\n */\n filter: string;\n\n /**\n * An optional order by clause for the query.\n * See https://google.aip.dev/132#ordering for more details.\n *\n * @generated from field: string order_by = 4;\n */\n orderBy: string;\n};\n\n/**\n * Describes the message refleet.api.v1.ListLibrariesRequest.\n * Use `create(ListLibrariesRequestSchema)` to create a new message.\n */\nexport const ListLibrariesRequestSchema: GenMessage<ListLibrariesRequest> = /*@__PURE__*/\n messageDesc(file_api_v1_libraries, 4);\n\n/**\n * @generated from message refleet.api.v1.ListLibrariesResponse\n */\nexport type ListLibrariesResponse = Message<\"refleet.api.v1.ListLibrariesResponse\"> & {\n /**\n * @generated from field: repeated refleet.api.v1.Library libraries = 1;\n */\n libraries: Library[];\n\n /**\n * A token, which can be sent as `page_token` to retrieve the next page.\n * If this field is omitted, there are no subsequent pages.\n *\n * @generated from field: string next_page_token = 2;\n */\n nextPageToken: string;\n\n /**\n * The total number of libraries that match the query.\n * This count is ignored if the query includes a filter.\n *\n * @generated from field: int32 total_size = 3;\n */\n totalSize: number;\n};\n\n/**\n * Describes the message refleet.api.v1.ListLibrariesResponse.\n * Use `create(ListLibrariesResponseSchema)` to create a new message.\n */\nexport const ListLibrariesResponseSchema: GenMessage<ListLibrariesResponse> = /*@__PURE__*/\n messageDesc(file_api_v1_libraries, 5);\n\n/**\n * @generated from message refleet.api.v1.CreateLibraryRequest\n */\nexport type CreateLibraryRequest = Message<\"refleet.api.v1.CreateLibraryRequest\"> & {\n /**\n * The library to create.\n *\n * @generated from field: refleet.api.v1.Library library = 1;\n */\n library?: Library;\n};\n\n/**\n * Describes the message refleet.api.v1.CreateLibraryRequest.\n * Use `create(CreateLibraryRequestSchema)` to create a new message.\n */\nexport const CreateLibraryRequestSchema: GenMessage<CreateLibraryRequest> = /*@__PURE__*/\n messageDesc(file_api_v1_libraries, 6);\n\n/**\n * @generated from message refleet.api.v1.CreateLibraryResponse\n */\nexport type CreateLibraryResponse = Message<\"refleet.api.v1.CreateLibraryResponse\"> & {\n /**\n * The created library.\n *\n * @generated from field: refleet.api.v1.Library library = 1;\n */\n library?: Library;\n};\n\n/**\n * Describes the message refleet.api.v1.CreateLibraryResponse.\n * Use `create(CreateLibraryResponseSchema)` to create a new message.\n */\nexport const CreateLibraryResponseSchema: GenMessage<CreateLibraryResponse> = /*@__PURE__*/\n messageDesc(file_api_v1_libraries, 7);\n\n/**\n * @generated from message refleet.api.v1.UpdateLibraryRequest\n */\nexport type UpdateLibraryRequest = Message<\"refleet.api.v1.UpdateLibraryRequest\"> & {\n /**\n * The library to update.\n *\n * The library's `name` field is used to identify the resource to update.\n *\n * @generated from field: refleet.api.v1.Library library = 1;\n */\n library?: Library;\n\n /**\n * The list of fields to update.\n * Fields not specified in this list will not be modified.\n *\n * Required.\n *\n * @generated from field: google.protobuf.FieldMask update_mask = 2;\n */\n updateMask?: FieldMask;\n\n /**\n * If set to true, and the library is not found, a new library will be created.\n * In this situation, `update_mask` is ignored.\n *\n * @generated from field: bool allow_missing = 3;\n */\n allowMissing: boolean;\n};\n\n/**\n * Describes the message refleet.api.v1.UpdateLibraryRequest.\n * Use `create(UpdateLibraryRequestSchema)` to create a new message.\n */\nexport const UpdateLibraryRequestSchema: GenMessage<UpdateLibraryRequest> = /*@__PURE__*/\n messageDesc(file_api_v1_libraries, 8);\n\n/**\n * @generated from message refleet.api.v1.UpdateLibraryResponse\n */\nexport type UpdateLibraryResponse = Message<\"refleet.api.v1.UpdateLibraryResponse\"> & {\n /**\n * The updated library.\n *\n * @generated from field: refleet.api.v1.Library library = 1;\n */\n library?: Library;\n};\n\n/**\n * Describes the message refleet.api.v1.UpdateLibraryResponse.\n * Use `create(UpdateLibraryResponseSchema)` to create a new message.\n */\nexport const UpdateLibraryResponseSchema: GenMessage<UpdateLibraryResponse> = /*@__PURE__*/\n messageDesc(file_api_v1_libraries, 9);\n\n/**\n * @generated from message refleet.api.v1.DeleteLibraryRequest\n */\nexport type DeleteLibraryRequest = Message<\"refleet.api.v1.DeleteLibraryRequest\"> & {\n /**\n * @generated from field: string library_id = 1;\n */\n libraryId: string;\n\n /**\n * If set to true, and the library is not found, the request will succeed\n * but no action will be taken on the server.\n *\n * @generated from field: bool allow_missing = 2;\n */\n allowMissing: boolean;\n};\n\n/**\n * Describes the message refleet.api.v1.DeleteLibraryRequest.\n * Use `create(DeleteLibraryRequestSchema)` to create a new message.\n */\nexport const DeleteLibraryRequestSchema: GenMessage<DeleteLibraryRequest> = /*@__PURE__*/\n messageDesc(file_api_v1_libraries, 10);\n\n/**\n * Empty message indicates successful deletion.\n *\n * @generated from message refleet.api.v1.DeleteLibraryResponse\n */\nexport type DeleteLibraryResponse = Message<\"refleet.api.v1.DeleteLibraryResponse\"> & {\n};\n\n/**\n * Describes the message refleet.api.v1.DeleteLibraryResponse.\n * Use `create(DeleteLibraryResponseSchema)` to create a new message.\n */\nexport const DeleteLibraryResponseSchema: GenMessage<DeleteLibraryResponse> = /*@__PURE__*/\n messageDesc(file_api_v1_libraries, 11);\n\n/**\n * @generated from service refleet.api.v1.LibrariesService\n */\nexport const LibrariesService: GenService<{\n /**\n * Gets a library.\n *\n * See: https://google.aip.dev/133\n *\n * @generated from rpc refleet.api.v1.LibrariesService.GetLibrary\n */\n getLibrary: {\n methodKind: \"unary\";\n input: typeof GetLibraryRequestSchema;\n output: typeof GetLibraryResponseSchema;\n },\n /**\n * Lists libraries.\n *\n * See: https://google.aip.dev/158\n *\n * @generated from rpc refleet.api.v1.LibrariesService.ListLibraries\n */\n listLibraries: {\n methodKind: \"unary\";\n input: typeof ListLibrariesRequestSchema;\n output: typeof ListLibrariesResponseSchema;\n },\n /**\n * Creates a library.\n *\n * See: https://google.aip.dev/133\n *\n * @generated from rpc refleet.api.v1.LibrariesService.CreateLibrary\n */\n createLibrary: {\n methodKind: \"unary\";\n input: typeof CreateLibraryRequestSchema;\n output: typeof CreateLibraryResponseSchema;\n },\n /**\n * Updates a library.\n *\n * See: https://google.aip.dev/134\n *\n * @generated from rpc refleet.api.v1.LibrariesService.UpdateLibrary\n */\n updateLibrary: {\n methodKind: \"unary\";\n input: typeof UpdateLibraryRequestSchema;\n output: typeof UpdateLibraryResponseSchema;\n },\n /**\n * Deletes a library.\n *\n * See: https://google.aip.dev/135\n *\n * @generated from rpc refleet.api.v1.LibrariesService.DeleteLibrary\n */\n deleteLibrary: {\n methodKind: \"unary\";\n input: typeof DeleteLibraryRequestSchema;\n output: typeof DeleteLibraryResponseSchema;\n },\n}> = /*@__PURE__*/\n serviceDesc(file_api_v1_libraries, 0);\n\n"],"names":[],"mappings":";;;;;AAiBO,MAAM,qBAAA,4BACF,6gFAAA,EAA+gF,CAAC,6BAA6B,+BAAA,EAAiC,8BAAA,EAAgC,0BAA0B,CAAC;AAgW7oF,MAAM,gBAAA,mBA8DX,WAAA,CAAY,qBAAA,EAAuB,CAAC;;;;"}
@@ -0,0 +1,10 @@
1
+ import { serviceDesc, fileDesc } from '@bufbuild/protobuf/codegenv2';
2
+ import { file_google_api_annotations } from '../../google/api/annotations_pb.js';
3
+ import { file_google_protobuf_timestamp } from '@bufbuild/protobuf/wkt';
4
+ import { file_buf_validate_validate } from '../../buf/validate/validate_pb.js';
5
+
6
+ const file_api_v1_teams = /* @__PURE__ */ fileDesc("ChJhcGkvdjEvdGVhbXMucHJvdG8SDnJlZmxlZXQuYXBpLnYxIu8BCgRUZWFtEgoKAmlkGAEgASgJEgwKBG5hbWUYAiABKAkSFAoMZGlzcGxheV9uYW1lGAMgASgJEgwKBGljb24YBCABKAkSEwoLZGVzY3JpcHRpb24YBSABKAkSDAoEcGxhbhgGIAEoCRISCgpjcmVhdGVkX2J5GAcgASgJEi4KCmNyZWF0ZWRfYXQYCCABKAsyGi5nb29nbGUucHJvdG9idWYuVGltZXN0YW1wEhIKCnVwZGF0ZWRfYnkYCSABKAkSLgoKdXBkYXRlZF9hdBgKIAEoCzIaLmdvb2dsZS5wcm90b2J1Zi5UaW1lc3RhbXAiKQoOR2V0VGVhbVJlcXVlc3QSFwoHdGVhbV9pZBgBIAEoCUIGukgDyAEBIlsKEExpc3RUZWFtc1JlcXVlc3QSEQoJcGFnZV9zaXplGAEgASgFEhIKCnBhZ2VfdG9rZW4YAiABKAkSDgoGZmlsdGVyGAMgASgJEhAKCG9yZGVyX2J5GAQgASgJImUKEUxpc3RUZWFtc1Jlc3BvbnNlEiMKBWl0ZW1zGAEgAygLMhQucmVmbGVldC5hcGkudjEuVGVhbRIXCg9uZXh0X3BhZ2VfdG9rZW4YAiABKAkSEgoKdG90YWxfc2l6ZRgDIAEoBSJiChFDcmVhdGVUZWFtUmVxdWVzdBIUCgRuYW1lGAEgASgJQga6SAPIAQESFAoMZGlzcGxheV9uYW1lGAIgASgJEgwKBGljb24YAyABKAkSEwoLZGVzY3JpcHRpb24YBCABKAkingEKEVVwZGF0ZVRlYW1SZXF1ZXN0EhcKB3RlYW1faWQYASABKAlCBrpIA8gBARIZCgxkaXNwbGF5X25hbWUYAiABKAlIAIgBARIRCgRpY29uGAMgASgJSAGIAQESGAoLZGVzY3JpcHRpb24YBCABKAlIAogBAUIPCg1fZGlzcGxheV9uYW1lQgcKBV9pY29uQg4KDF9kZXNjcmlwdGlvbiIsChFEZWxldGVUZWFtUmVxdWVzdBIXCgd0ZWFtX2lkGAEgASgJQga6SAPIAQEiFAoSRGVsZXRlVGVhbVJlc3BvbnNlMocECgxUZWFtc1NlcnZpY2USWwoKQ3JlYXRlVGVhbRIhLnJlZmxlZXQuYXBpLnYxLkNyZWF0ZVRlYW1SZXF1ZXN0GhQucmVmbGVldC5hcGkudjEuVGVhbSIUgtPkkwIOOgEqIgkvdjEvdGVhbXMSXAoHR2V0VGVhbRIeLnJlZmxlZXQuYXBpLnYxLkdldFRlYW1SZXF1ZXN0GhQucmVmbGVldC5hcGkudjEuVGVhbSIbgtPkkwIVEhMvdjEvdGVhbXMve3RlYW1faWR9EmMKCUxpc3RUZWFtcxIgLnJlZmxlZXQuYXBpLnYxLkxpc3RUZWFtc1JlcXVlc3QaIS5yZWZsZWV0LmFwaS52MS5MaXN0VGVhbXNSZXNwb25zZSIRgtPkkwILEgkvdjEvdGVhbXMSZQoKVXBkYXRlVGVhbRIhLnJlZmxlZXQuYXBpLnYxLlVwZGF0ZVRlYW1SZXF1ZXN0GhQucmVmbGVldC5hcGkudjEuVGVhbSIegtPkkwIYOgEqMhMvdjEvdGVhbXMve3RlYW1faWR9EnAKCkRlbGV0ZVRlYW0SIS5yZWZsZWV0LmFwaS52MS5EZWxldGVUZWFtUmVxdWVzdBoiLnJlZmxlZXQuYXBpLnYxLkRlbGV0ZVRlYW1SZXNwb25zZSIbgtPkkwIVKhMvdjEvdGVhbXMve3RlYW1faWR9QjRaMmdpdGh1Yi5jb20vcmVmbGVldGlvL3JlZmxlZXQvZ2VucHJvdG8vYXBpL3YxO2FwaXBiYgZwcm90bzM", [file_google_api_annotations, file_google_protobuf_timestamp, file_buf_validate_validate]);
7
+ const TeamsService = /* @__PURE__ */ serviceDesc(file_api_v1_teams, 0);
8
+
9
+ export { TeamsService, file_api_v1_teams };
10
+ //# sourceMappingURL=teams_pb.js.map