@ketrics/sdk-backend 0.10.0 → 0.12.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.
@@ -0,0 +1,172 @@
1
+ /**
2
+ * Ketrics SDK - Applications Error Classes
3
+ *
4
+ * Provides typed errors for cross-app function invocation operations
5
+ * in tenant applications.
6
+ *
7
+ * Error Hierarchy:
8
+ * - ApplicationsError (base)
9
+ * - ApplicationNotFoundError
10
+ * - ApplicationNotDeployedError
11
+ * - ApplicationPermissionDeniedError
12
+ * - ApplicationInvocationError
13
+ * - ApplicationTimeoutError
14
+ */
15
+ /**
16
+ * Base error class for all Applications errors
17
+ *
18
+ * All Applications errors extend this class and include:
19
+ * - applicationCode: The target application code
20
+ * - operation: The operation that failed
21
+ * - timestamp: When the error occurred
22
+ */
23
+ export declare abstract class ApplicationsError extends Error {
24
+ /** Target application code */
25
+ readonly applicationCode: string;
26
+ /** Operation that failed */
27
+ readonly operation: string;
28
+ /** When the error occurred */
29
+ readonly timestamp: Date;
30
+ constructor(message: string, operation: string, applicationCode: string);
31
+ /**
32
+ * Serialize error for logging
33
+ */
34
+ toJSON(): Record<string, unknown>;
35
+ }
36
+ /**
37
+ * Error thrown when target application is not found
38
+ *
39
+ * @example
40
+ * ```typescript
41
+ * try {
42
+ * const app = await ketrics.Applications.connect('nonexistent');
43
+ * } catch (error) {
44
+ * if (error instanceof ketrics.Applications.NotFoundError) {
45
+ * console.log('Application not found:', error.applicationCode);
46
+ * }
47
+ * }
48
+ * ```
49
+ */
50
+ export declare class ApplicationNotFoundError extends ApplicationsError {
51
+ constructor(applicationCode: string);
52
+ }
53
+ /**
54
+ * Error thrown when target application has no active deployment
55
+ *
56
+ * @example
57
+ * ```typescript
58
+ * try {
59
+ * const app = await ketrics.Applications.connect('inactive-app');
60
+ * } catch (error) {
61
+ * if (error instanceof ketrics.Applications.NotDeployedError) {
62
+ * console.log('Application not deployed:', error.applicationCode);
63
+ * }
64
+ * }
65
+ * ```
66
+ */
67
+ export declare class ApplicationNotDeployedError extends ApplicationsError {
68
+ constructor(applicationCode: string);
69
+ }
70
+ /**
71
+ * Error thrown when the calling application lacks permission to invoke the target
72
+ *
73
+ * @example
74
+ * ```typescript
75
+ * try {
76
+ * const app = await ketrics.Applications.connect('restricted-app');
77
+ * } catch (error) {
78
+ * if (error instanceof ketrics.Applications.PermissionDeniedError) {
79
+ * console.log('Permission denied:', error.sourceApplicationCode, '->', error.applicationCode);
80
+ * }
81
+ * }
82
+ * ```
83
+ */
84
+ export declare class ApplicationPermissionDeniedError extends ApplicationsError {
85
+ /** Source application code */
86
+ readonly sourceApplicationCode: string;
87
+ constructor(sourceApplicationCode: string, targetApplicationCode: string, detail?: string);
88
+ toJSON(): Record<string, unknown>;
89
+ }
90
+ /**
91
+ * Error thrown when the invoked function fails during execution
92
+ *
93
+ * @example
94
+ * ```typescript
95
+ * try {
96
+ * const result = await app.invoke('processData', { items: [] });
97
+ * } catch (error) {
98
+ * if (error instanceof ketrics.Applications.InvocationError) {
99
+ * console.log('Function failed:', error.functionName, error.errorCode);
100
+ * }
101
+ * }
102
+ * ```
103
+ */
104
+ export declare class ApplicationInvocationError extends ApplicationsError {
105
+ /** Error code from the target function */
106
+ readonly errorCode: string;
107
+ /** Function that failed */
108
+ readonly functionName: string;
109
+ constructor(applicationCode: string, functionName: string, errorCode: string, message: string);
110
+ toJSON(): Record<string, unknown>;
111
+ }
112
+ /**
113
+ * Error thrown when cross-app function invocation times out
114
+ *
115
+ * @example
116
+ * ```typescript
117
+ * try {
118
+ * const result = await app.invoke('longRunningTask', { data: 'large' });
119
+ * } catch (error) {
120
+ * if (error instanceof ketrics.Applications.TimeoutError) {
121
+ * console.log('Timed out after', error.timeoutMs, 'ms');
122
+ * }
123
+ * }
124
+ * ```
125
+ */
126
+ export declare class ApplicationTimeoutError extends ApplicationsError {
127
+ /** Function that timed out */
128
+ readonly functionName: string;
129
+ /** Timeout in milliseconds */
130
+ readonly timeoutMs: number;
131
+ constructor(applicationCode: string, functionName: string, timeoutMs: number);
132
+ toJSON(): Record<string, unknown>;
133
+ }
134
+ /**
135
+ * Type guard to check if an error is an ApplicationsError
136
+ *
137
+ * @param error - The error to check
138
+ * @returns True if the error is an ApplicationsError
139
+ *
140
+ * @example
141
+ * ```typescript
142
+ * try {
143
+ * const app = await ketrics.Applications.connect('appb');
144
+ * const result = await app.invoke('calculate', { x: 1 });
145
+ * } catch (error) {
146
+ * if (isApplicationsError(error)) {
147
+ * console.log(`Applications error: ${error.applicationCode} - ${error.operation}`);
148
+ * }
149
+ * }
150
+ * ```
151
+ */
152
+ export declare function isApplicationsError(error: unknown): error is ApplicationsError;
153
+ /**
154
+ * Type guard to check if an error is a specific ApplicationsError type
155
+ *
156
+ * @param error - The error to check
157
+ * @param errorClass - The error class to check against
158
+ * @returns True if the error is an instance of the specified class
159
+ *
160
+ * @example
161
+ * ```typescript
162
+ * try {
163
+ * const app = await ketrics.Applications.connect('appb');
164
+ * } catch (error) {
165
+ * if (isApplicationsErrorType(error, ApplicationNotFoundError)) {
166
+ * console.log('Application not found:', error.applicationCode);
167
+ * }
168
+ * }
169
+ * ```
170
+ */
171
+ export declare function isApplicationsErrorType<T extends ApplicationsError>(error: unknown, errorClass: new (...args: any[]) => T): error is T;
172
+ //# sourceMappingURL=applications-errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applications-errors.d.ts","sourceRoot":"","sources":["../src/applications-errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;GAaG;AAMH;;;;;;;GAOG;AACH,8BAAsB,iBAAkB,SAAQ,KAAK;IACnD,8BAA8B;IAC9B,QAAQ,CAAC,eAAe,EAAE,MAAM,CAAC;IAEjC,4BAA4B;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,8BAA8B;IAC9B,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;gBAEb,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM,EAA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;;;;GAiBG;AACH,wBAAgB,mBAAmB,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,iBAAiB,CAE9E;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,uBAAuB,CAAC,CAAC,SAAS,iBAAiB,EACjE,KAAK,EAAE,OAAO,EAEd,UAAU,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GACpC,KAAK,IAAI,CAAC,CAEZ"}
@@ -0,0 +1,233 @@
1
+ "use strict";
2
+ /**
3
+ * Ketrics SDK - Applications Error Classes
4
+ *
5
+ * Provides typed errors for cross-app function invocation operations
6
+ * in tenant applications.
7
+ *
8
+ * Error Hierarchy:
9
+ * - ApplicationsError (base)
10
+ * - ApplicationNotFoundError
11
+ * - ApplicationNotDeployedError
12
+ * - ApplicationPermissionDeniedError
13
+ * - ApplicationInvocationError
14
+ * - ApplicationTimeoutError
15
+ */
16
+ Object.defineProperty(exports, "__esModule", { value: true });
17
+ exports.ApplicationTimeoutError = exports.ApplicationInvocationError = exports.ApplicationPermissionDeniedError = exports.ApplicationNotDeployedError = exports.ApplicationNotFoundError = exports.ApplicationsError = void 0;
18
+ exports.isApplicationsError = isApplicationsError;
19
+ exports.isApplicationsErrorType = isApplicationsErrorType;
20
+ // ============================================================================
21
+ // Base Error Class
22
+ // ============================================================================
23
+ /**
24
+ * Base error class for all Applications errors
25
+ *
26
+ * All Applications errors extend this class and include:
27
+ * - applicationCode: The target application code
28
+ * - operation: The operation that failed
29
+ * - timestamp: When the error occurred
30
+ */
31
+ class ApplicationsError extends Error {
32
+ constructor(message, operation, applicationCode) {
33
+ super(message);
34
+ this.name = this.constructor.name;
35
+ this.operation = operation;
36
+ this.applicationCode = applicationCode;
37
+ this.timestamp = new Date();
38
+ // Maintains proper stack trace for where error was thrown
39
+ if (Error.captureStackTrace) {
40
+ Error.captureStackTrace(this, this.constructor);
41
+ }
42
+ }
43
+ /**
44
+ * Serialize error for logging
45
+ */
46
+ toJSON() {
47
+ return {
48
+ name: this.name,
49
+ message: this.message,
50
+ applicationCode: this.applicationCode,
51
+ operation: this.operation,
52
+ timestamp: this.timestamp.toISOString(),
53
+ };
54
+ }
55
+ }
56
+ exports.ApplicationsError = ApplicationsError;
57
+ // ============================================================================
58
+ // Specific Error Classes
59
+ // ============================================================================
60
+ /**
61
+ * Error thrown when target application is not found
62
+ *
63
+ * @example
64
+ * ```typescript
65
+ * try {
66
+ * const app = await ketrics.Applications.connect('nonexistent');
67
+ * } catch (error) {
68
+ * if (error instanceof ketrics.Applications.NotFoundError) {
69
+ * console.log('Application not found:', error.applicationCode);
70
+ * }
71
+ * }
72
+ * ```
73
+ */
74
+ class ApplicationNotFoundError extends ApplicationsError {
75
+ constructor(applicationCode) {
76
+ super(`Application '${applicationCode}' not found. Verify the application code is correct.`, 'connect', applicationCode);
77
+ }
78
+ }
79
+ exports.ApplicationNotFoundError = ApplicationNotFoundError;
80
+ /**
81
+ * Error thrown when target application has no active deployment
82
+ *
83
+ * @example
84
+ * ```typescript
85
+ * try {
86
+ * const app = await ketrics.Applications.connect('inactive-app');
87
+ * } catch (error) {
88
+ * if (error instanceof ketrics.Applications.NotDeployedError) {
89
+ * console.log('Application not deployed:', error.applicationCode);
90
+ * }
91
+ * }
92
+ * ```
93
+ */
94
+ class ApplicationNotDeployedError extends ApplicationsError {
95
+ constructor(applicationCode) {
96
+ super(`Application '${applicationCode}' is not deployed or is inactive.`, 'connect', applicationCode);
97
+ }
98
+ }
99
+ exports.ApplicationNotDeployedError = ApplicationNotDeployedError;
100
+ /**
101
+ * Error thrown when the calling application lacks permission to invoke the target
102
+ *
103
+ * @example
104
+ * ```typescript
105
+ * try {
106
+ * const app = await ketrics.Applications.connect('restricted-app');
107
+ * } catch (error) {
108
+ * if (error instanceof ketrics.Applications.PermissionDeniedError) {
109
+ * console.log('Permission denied:', error.sourceApplicationCode, '->', error.applicationCode);
110
+ * }
111
+ * }
112
+ * ```
113
+ */
114
+ class ApplicationPermissionDeniedError extends ApplicationsError {
115
+ constructor(sourceApplicationCode, targetApplicationCode, detail) {
116
+ const detailMsg = detail ? ` ${detail}` : '';
117
+ super(`Application '${sourceApplicationCode}' does not have permission to invoke functions on '${targetApplicationCode}'.${detailMsg}`, 'connect', targetApplicationCode);
118
+ this.sourceApplicationCode = sourceApplicationCode;
119
+ }
120
+ toJSON() {
121
+ return {
122
+ ...super.toJSON(),
123
+ sourceApplicationCode: this.sourceApplicationCode,
124
+ };
125
+ }
126
+ }
127
+ exports.ApplicationPermissionDeniedError = ApplicationPermissionDeniedError;
128
+ /**
129
+ * Error thrown when the invoked function fails during execution
130
+ *
131
+ * @example
132
+ * ```typescript
133
+ * try {
134
+ * const result = await app.invoke('processData', { items: [] });
135
+ * } catch (error) {
136
+ * if (error instanceof ketrics.Applications.InvocationError) {
137
+ * console.log('Function failed:', error.functionName, error.errorCode);
138
+ * }
139
+ * }
140
+ * ```
141
+ */
142
+ class ApplicationInvocationError extends ApplicationsError {
143
+ constructor(applicationCode, functionName, errorCode, message) {
144
+ super(`Function '${functionName}' on application '${applicationCode}' failed: ${message}`, 'invoke', applicationCode);
145
+ this.errorCode = errorCode;
146
+ this.functionName = functionName;
147
+ }
148
+ toJSON() {
149
+ return {
150
+ ...super.toJSON(),
151
+ errorCode: this.errorCode,
152
+ functionName: this.functionName,
153
+ };
154
+ }
155
+ }
156
+ exports.ApplicationInvocationError = ApplicationInvocationError;
157
+ /**
158
+ * Error thrown when cross-app function invocation times out
159
+ *
160
+ * @example
161
+ * ```typescript
162
+ * try {
163
+ * const result = await app.invoke('longRunningTask', { data: 'large' });
164
+ * } catch (error) {
165
+ * if (error instanceof ketrics.Applications.TimeoutError) {
166
+ * console.log('Timed out after', error.timeoutMs, 'ms');
167
+ * }
168
+ * }
169
+ * ```
170
+ */
171
+ class ApplicationTimeoutError extends ApplicationsError {
172
+ constructor(applicationCode, functionName, timeoutMs) {
173
+ super(`Function '${functionName}' on application '${applicationCode}' timed out after ${timeoutMs}ms.`, 'invoke', applicationCode);
174
+ this.functionName = functionName;
175
+ this.timeoutMs = timeoutMs;
176
+ }
177
+ toJSON() {
178
+ return {
179
+ ...super.toJSON(),
180
+ functionName: this.functionName,
181
+ timeoutMs: this.timeoutMs,
182
+ };
183
+ }
184
+ }
185
+ exports.ApplicationTimeoutError = ApplicationTimeoutError;
186
+ // ============================================================================
187
+ // Type Guards
188
+ // ============================================================================
189
+ /**
190
+ * Type guard to check if an error is an ApplicationsError
191
+ *
192
+ * @param error - The error to check
193
+ * @returns True if the error is an ApplicationsError
194
+ *
195
+ * @example
196
+ * ```typescript
197
+ * try {
198
+ * const app = await ketrics.Applications.connect('appb');
199
+ * const result = await app.invoke('calculate', { x: 1 });
200
+ * } catch (error) {
201
+ * if (isApplicationsError(error)) {
202
+ * console.log(`Applications error: ${error.applicationCode} - ${error.operation}`);
203
+ * }
204
+ * }
205
+ * ```
206
+ */
207
+ function isApplicationsError(error) {
208
+ return error instanceof ApplicationsError;
209
+ }
210
+ /**
211
+ * Type guard to check if an error is a specific ApplicationsError type
212
+ *
213
+ * @param error - The error to check
214
+ * @param errorClass - The error class to check against
215
+ * @returns True if the error is an instance of the specified class
216
+ *
217
+ * @example
218
+ * ```typescript
219
+ * try {
220
+ * const app = await ketrics.Applications.connect('appb');
221
+ * } catch (error) {
222
+ * if (isApplicationsErrorType(error, ApplicationNotFoundError)) {
223
+ * console.log('Application not found:', error.applicationCode);
224
+ * }
225
+ * }
226
+ * ```
227
+ */
228
+ function isApplicationsErrorType(error,
229
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
230
+ errorClass) {
231
+ return error instanceof errorClass;
232
+ }
233
+ //# sourceMappingURL=applications-errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applications-errors.js","sourceRoot":"","sources":["../src/applications-errors.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;GAaG;;;AAiPH,kDAEC;AAoBD,0DAMC;AA3QD,+EAA+E;AAC/E,mBAAmB;AACnB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,SAAS,GAAG,SAAS,CAAC;IAC7B,CAAC;IAED,MAAM;QACJ,OAAO;YACL,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,YAAY,EAAE,IAAI,CAAC,YAAY;YAC/B,SAAS,EAAE,IAAI,CAAC,SAAS;SAC1B,CAAC;IACJ,CAAC;CACF;AAxBD,0DAwBC;AAED,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,mBAAmB,CAAC,KAAc;IAChD,OAAO,KAAK,YAAY,iBAAiB,CAAC;AAC5C,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,uBAAuB,CACrC,KAAc;AACd,8DAA8D;AAC9D,UAAqC;IAErC,OAAO,KAAK,YAAY,UAAU,CAAC;AACrC,CAAC"}
@@ -0,0 +1,67 @@
1
+ /**
2
+ * Ketrics SDK - Applications Interfaces
3
+ *
4
+ * Provides type definitions for cross-app function invocation
5
+ * in tenant applications.
6
+ *
7
+ * Usage in tenant code:
8
+ * ```typescript
9
+ * // Connect to another application (eagerly validates)
10
+ * const appb = await ketrics.Applications.connect('appb');
11
+ *
12
+ * // Invoke a function on the connected application
13
+ * const result = await appb.invoke('calculateTotal', { items: [...] });
14
+ * console.log(result.success); // true
15
+ * console.log(result.result); // function return value
16
+ * console.log(result.executionTime); // execution time in ms
17
+ * ```
18
+ *
19
+ * Authorization:
20
+ * - Uses role-based permissions (app_domain roles)
21
+ * - The calling application's requestor must have permissions for the target app
22
+ * - No grants required - permissions flow through RBAC
23
+ */
24
+ /**
25
+ * Result of invoking a function on a connected application
26
+ */
27
+ export interface ApplicationInvokeResult {
28
+ /** Whether the invocation succeeded */
29
+ success: boolean;
30
+ /** Return value from the target function */
31
+ result?: unknown;
32
+ /** Execution time in milliseconds */
33
+ executionTime?: number;
34
+ /** Error details (only present when success is false) */
35
+ error?: {
36
+ code: string;
37
+ message: string;
38
+ };
39
+ }
40
+ /**
41
+ * Connected Application Interface
42
+ *
43
+ * Represents a validated connection to another application.
44
+ * Returned by Applications.connect() after permission checks pass.
45
+ */
46
+ export interface IApplicationConnection {
47
+ /** Target application code (read-only) */
48
+ readonly code: string;
49
+ /** Target application display name (read-only) */
50
+ readonly name: string;
51
+ /** Target application UUID (read-only) */
52
+ readonly applicationId: string;
53
+ /**
54
+ * Invoke a function on the connected application
55
+ *
56
+ * Executes the specified function in the target application's VM sandbox.
57
+ * The response is wrapped in a standard envelope.
58
+ *
59
+ * @param functionName - Name of the exported function to call
60
+ * @param payload - Optional data to pass to the function
61
+ * @returns Invoke result envelope with success, result, and executionTime
62
+ * @throws ApplicationInvocationError if the function fails
63
+ * @throws ApplicationTimeoutError if the function exceeds the timeout
64
+ */
65
+ invoke(functionName: string, payload?: Record<string, unknown>): Promise<ApplicationInvokeResult>;
66
+ }
67
+ //# sourceMappingURL=applications.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applications.d.ts","sourceRoot":"","sources":["../src/applications.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG;AAMH;;GAEG;AACH,MAAM,WAAW,uBAAuB;IACtC,uCAAuC;IACvC,OAAO,EAAE,OAAO,CAAC;IACjB,4CAA4C;IAC5C,MAAM,CAAC,EAAE,OAAO,CAAC;IACjB,qCAAqC;IACrC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,yDAAyD;IACzD,KAAK,CAAC,EAAE;QACN,IAAI,EAAE,MAAM,CAAC;QACb,OAAO,EAAE,MAAM,CAAC;KACjB,CAAC;CACH;AAMD;;;;;GAKG;AACH,MAAM,WAAW,sBAAsB;IACrC,0CAA0C;IAC1C,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,kDAAkD;IAClD,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC;IACtB,0CAA0C;IAC1C,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAE/B;;;;;;;;;;;OAWG;IACH,MAAM,CAAC,YAAY,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,GAAG,OAAO,CAAC,uBAAuB,CAAC,CAAC;CACnG"}
@@ -0,0 +1,26 @@
1
+ "use strict";
2
+ /**
3
+ * Ketrics SDK - Applications Interfaces
4
+ *
5
+ * Provides type definitions for cross-app function invocation
6
+ * in tenant applications.
7
+ *
8
+ * Usage in tenant code:
9
+ * ```typescript
10
+ * // Connect to another application (eagerly validates)
11
+ * const appb = await ketrics.Applications.connect('appb');
12
+ *
13
+ * // Invoke a function on the connected application
14
+ * const result = await appb.invoke('calculateTotal', { items: [...] });
15
+ * console.log(result.success); // true
16
+ * console.log(result.result); // function return value
17
+ * console.log(result.executionTime); // execution time in ms
18
+ * ```
19
+ *
20
+ * Authorization:
21
+ * - Uses role-based permissions (app_domain roles)
22
+ * - The calling application's requestor must have permissions for the target app
23
+ * - No grants required - permissions flow through RBAC
24
+ */
25
+ Object.defineProperty(exports, "__esModule", { value: true });
26
+ //# sourceMappingURL=applications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"applications.js","sourceRoot":"","sources":["../src/applications.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;GAsBG"}
package/dist/index.d.ts CHANGED
@@ -72,6 +72,10 @@ export { MessagePriorityLevel, MessageChannelConfig, SendMessageParams, SendBulk
72
72
  export { MessageError, MessageValidationError, GroupNotFoundError, TenantGrantPermissionDeniedError, isMessageError, isMessageErrorType, } from "./messages-errors";
73
73
  export { DocumentDbListOptions, DocumentDbListResult, DocumentDbPutOptions, DocumentDbQueryOptions, IDocumentDbConnection, } from "./documentdb";
74
74
  export { DocumentDbError, DocumentDbNotFoundError, DocumentDbAccessDeniedError, DocumentDbPermissionDeniedError, DocumentDbValidationError, DocumentDbOperationError, isDocumentDbError, isDocumentDbErrorType, } from "./documentdb-errors";
75
+ export { TenantUserInfo } from "./users";
76
+ export { UsersError, UsersPermissionDeniedError, isUsersError, isUsersErrorType } from "./users-errors";
77
+ export { ApplicationInvokeResult, IApplicationConnection } from "./applications";
78
+ export { ApplicationsError, ApplicationNotFoundError, ApplicationNotDeployedError, ApplicationPermissionDeniedError, ApplicationInvocationError, ApplicationTimeoutError, isApplicationsError, isApplicationsErrorType, } from "./applications-errors";
75
79
  export { PutContent, FileContent, FileMetadata, FileInfo, PutOptions, PutResult, DeleteResult, DeleteError, DeleteByPrefixResult, ListOptions, ListResult, CopyOptions, CopyResult, MoveOptions, MoveResult, DownloadUrlOptions, UploadUrlOptions, PresignedUrl, IVolume, } from "./volumes";
76
80
  export { VolumePermissionValue, VolumeError, VolumeNotFoundError, VolumeAccessDeniedError, VolumePermissionDeniedError, FileNotFoundError, FileAlreadyExistsError, InvalidPathError, FileSizeLimitError, ContentTypeNotAllowedError, isVolumeError, isVolumeErrorType, } from "./errors";
77
81
  import type { TenantContext, ApplicationContext, RequestorContext, RuntimeContext, EnvironmentVariables } from "./context";
@@ -84,6 +88,8 @@ import type { IPdfDocument, PdfRgbColor } from "./pdf";
84
88
  import type { RunInBackgroundParams, JobStatus, JobListParams, JobListResult } from "./job";
85
89
  import type { SendMessageParams, SendBulkMessageParams, SendGroupMessageParams, SendMessageResult, SendBulkMessageResult } from "./messages";
86
90
  import type { IDocumentDbConnection } from "./documentdb";
91
+ import type { TenantUserInfo } from "./users";
92
+ import type { IApplicationConnection } from "./applications";
87
93
  /**
88
94
  * Base class for all Volume errors
89
95
  */
@@ -166,6 +172,26 @@ export interface DocumentDbErrorClass extends Error {
166
172
  }
167
173
  export type AbstractDocumentDbErrorConstructor = abstract new (...args: any[]) => DocumentDbErrorClass;
168
174
  export type DocumentDbErrorConstructor = new (...args: any[]) => DocumentDbErrorClass;
175
+ /**
176
+ * Base class for all Users errors
177
+ */
178
+ export interface UsersErrorClass extends Error {
179
+ readonly operation: string;
180
+ readonly timestamp: Date;
181
+ toJSON(): Record<string, unknown>;
182
+ }
183
+ export type UsersErrorConstructor = new (...args: any[]) => UsersErrorClass;
184
+ /**
185
+ * Base class for all Applications errors
186
+ */
187
+ export interface ApplicationsErrorClass extends Error {
188
+ readonly applicationCode: string;
189
+ readonly operation: string;
190
+ readonly timestamp: Date;
191
+ toJSON(): Record<string, unknown>;
192
+ }
193
+ export type AbstractApplicationsErrorConstructor = abstract new (...args: any[]) => ApplicationsErrorClass;
194
+ export type ApplicationsErrorConstructor = new (...args: any[]) => ApplicationsErrorClass;
169
195
  /**
170
196
  * Volume Module
171
197
  *
@@ -405,6 +431,78 @@ export interface DocumentDbModule {
405
431
  isError: (error: unknown) => error is DocumentDbErrorClass;
406
432
  isErrorType: <T extends DocumentDbErrorClass>(error: unknown, errorClass: new (...args: never[]) => T) => error is T;
407
433
  }
434
+ /**
435
+ * Users Module (Grouped)
436
+ *
437
+ * Groups Users operations, error classes, and type guards under a single namespace.
438
+ *
439
+ * @example
440
+ * ```typescript
441
+ * try {
442
+ * const users = await ketrics.Users.list();
443
+ * for (const user of users) {
444
+ * console.log(user.email, user.firstName, user.lastName);
445
+ * }
446
+ * } catch (error) {
447
+ * if (error instanceof ketrics.Users.PermissionDeniedError) {
448
+ * console.log('Missing iam:ListUsers permission');
449
+ * }
450
+ * }
451
+ * ```
452
+ */
453
+ export interface UsersModule {
454
+ /** List all tenant users */
455
+ list(): Promise<TenantUserInfo[]>;
456
+ /** Base error class for all Users errors */
457
+ Error: UsersErrorConstructor;
458
+ /** Error thrown when application lacks iam:ListUsers permission */
459
+ PermissionDeniedError: UsersErrorConstructor;
460
+ /** Type guard to check if error is a UsersError */
461
+ isError: (error: unknown) => error is UsersErrorClass;
462
+ /** Type guard to check if error is a specific UsersError type */
463
+ isErrorType: <T extends UsersErrorClass>(error: unknown, errorClass: new (...args: any[]) => T) => error is T;
464
+ }
465
+ /**
466
+ * Applications Module (Grouped)
467
+ *
468
+ * Groups cross-app function invocation operations, error classes, and type guards
469
+ * under a single namespace.
470
+ *
471
+ * @example
472
+ * ```typescript
473
+ * try {
474
+ * const appb = await ketrics.Applications.connect('appb');
475
+ * const result = await appb.invoke('calculateTotal', { items: [...] });
476
+ * console.log(result.success, result.result, result.executionTime);
477
+ * } catch (error) {
478
+ * if (error instanceof ketrics.Applications.NotFoundError) {
479
+ * console.log('Application not found');
480
+ * } else if (error instanceof ketrics.Applications.PermissionDeniedError) {
481
+ * console.log('No permission to invoke');
482
+ * }
483
+ * }
484
+ * ```
485
+ */
486
+ export interface ApplicationsModule {
487
+ /** Connect to another application by code (eagerly validates) */
488
+ connect(applicationCode: string): Promise<IApplicationConnection>;
489
+ /** Base error class for all Applications errors (abstract) */
490
+ Error: AbstractApplicationsErrorConstructor;
491
+ /** Error thrown when target application doesn't exist */
492
+ NotFoundError: ApplicationsErrorConstructor;
493
+ /** Error thrown when target application is not deployed or inactive */
494
+ NotDeployedError: ApplicationsErrorConstructor;
495
+ /** Error thrown when requestor lacks permission for target application */
496
+ PermissionDeniedError: ApplicationsErrorConstructor;
497
+ /** Error thrown when the invoked function fails */
498
+ InvocationError: ApplicationsErrorConstructor;
499
+ /** Error thrown when cross-app invocation times out */
500
+ TimeoutError: ApplicationsErrorConstructor;
501
+ /** Type guard to check if error is an ApplicationsError */
502
+ isError: (error: unknown) => error is ApplicationsErrorClass;
503
+ /** Type guard to check if error is a specific ApplicationsError type */
504
+ isErrorType: <T extends ApplicationsErrorClass>(error: unknown, errorClass: new (...args: any[]) => T) => error is T;
505
+ }
408
506
  /**
409
507
  * Ketrics Platform SDK Interface
410
508
  *
@@ -481,6 +579,10 @@ export interface KetricsSdkV1 {
481
579
  Messages: MessagesGroupedModule;
482
580
  /** DocumentDb SDK - DynamoDB-backed document storage */
483
581
  DocumentDb: DocumentDbModule;
582
+ /** Users SDK - Tenant user listing */
583
+ Users: UsersModule;
584
+ /** Applications SDK - Cross-app function invocation */
585
+ Applications: ApplicationsModule;
484
586
  }
485
587
  /**
486
588
  * Volume - S3-backed storage for tenant applications
@@ -892,6 +994,94 @@ export declare class DocumentDb {
892
994
  */
893
995
  static connect(databaseCode: string): Promise<IDocumentDbConnection>;
894
996
  }
997
+ /**
998
+ * Users - Tenant user listing for tenant applications
999
+ *
1000
+ * Access via `ketrics.Users.list()` to list all tenant users.
1001
+ * Requires the `iam:ListUsers` permission assigned to the application.
1002
+ *
1003
+ * @example
1004
+ * ```typescript
1005
+ * export async function handler() {
1006
+ * try {
1007
+ * // List all tenant users
1008
+ * const users = await ketrics.Users.list();
1009
+ * for (const user of users) {
1010
+ * console.log(user.email, user.firstName, user.lastName);
1011
+ * console.log('Groups:', user.groups.map(g => g.groupCode).join(', '));
1012
+ * }
1013
+ *
1014
+ * } catch (error) {
1015
+ * if (error instanceof ketrics.Users.PermissionDeniedError) {
1016
+ * console.log('Missing iam:ListUsers permission');
1017
+ * }
1018
+ * }
1019
+ * }
1020
+ * ```
1021
+ */
1022
+ export declare class Users {
1023
+ private constructor();
1024
+ /**
1025
+ * List all tenant users
1026
+ *
1027
+ * Returns sanitized user data (no password hashes, tokens, etc.)
1028
+ *
1029
+ * @returns Array of sanitized user objects
1030
+ * @throws UsersPermissionDeniedError if app lacks iam:ListUsers permission
1031
+ */
1032
+ static list(): Promise<TenantUserInfo[]>;
1033
+ }
1034
+ /**
1035
+ * Applications - Cross-app function invocation for tenant applications
1036
+ *
1037
+ * Access via `ketrics.Applications.connect()` to obtain a connection handle,
1038
+ * then invoke functions on the connected application.
1039
+ *
1040
+ * @example
1041
+ * ```typescript
1042
+ * export async function handler() {
1043
+ * try {
1044
+ * // Connect to another application (eagerly validates)
1045
+ * const appb = await ketrics.Applications.connect('appb');
1046
+ *
1047
+ * // Invoke a function on the connected application
1048
+ * const result = await appb.invoke('calculateTotal', { items: [...] });
1049
+ * console.log(result.success); // true
1050
+ * console.log(result.result); // function return value
1051
+ * console.log(result.executionTime); // execution time in ms
1052
+ *
1053
+ * } catch (error) {
1054
+ * if (error instanceof ketrics.Applications.NotFoundError) {
1055
+ * console.log('Application not found');
1056
+ * } else if (error instanceof ketrics.Applications.NotDeployedError) {
1057
+ * console.log('Application not deployed');
1058
+ * } else if (error instanceof ketrics.Applications.PermissionDeniedError) {
1059
+ * console.log('No permission to invoke');
1060
+ * } else if (error instanceof ketrics.Applications.InvocationError) {
1061
+ * console.log('Function execution failed');
1062
+ * } else if (error instanceof ketrics.Applications.TimeoutError) {
1063
+ * console.log('Function timed out');
1064
+ * }
1065
+ * }
1066
+ * }
1067
+ * ```
1068
+ */
1069
+ export declare class Applications {
1070
+ private constructor();
1071
+ /**
1072
+ * Connect to another application by code
1073
+ *
1074
+ * Eagerly validates that the target application exists, is active and deployed,
1075
+ * and that the current requestor has permission via app_domain roles.
1076
+ *
1077
+ * @param applicationCode - Target application code (e.g., "inventory", "billing")
1078
+ * @returns Connected application handle with invoke() method
1079
+ * @throws ApplicationNotFoundError if application doesn't exist
1080
+ * @throws ApplicationNotDeployedError if application is not active/deployed
1081
+ * @throws ApplicationPermissionDeniedError if requestor lacks permission
1082
+ */
1083
+ static connect(applicationCode: string): Promise<IApplicationConnection>;
1084
+ }
895
1085
  /**
896
1086
  * Global declaration for the Ketrics VM sandbox.
897
1087
  *
@@ -906,6 +1096,8 @@ export declare class DocumentDb {
906
1096
  * - Job: Background job execution (runInBackground, getStatus, list, errors, type guards)
907
1097
  * - Messages: Application messaging (send, sendBulk, sendToGroup, errors, type guards)
908
1098
  * - DocumentDb: DynamoDB-backed document storage (connect, put, get, delete, list, query, errors, type guards)
1099
+ * - Users: Tenant user listing (list, errors, type guards)
1100
+ * - Applications: Cross-app function invocation (connect, invoke, errors, type guards)
909
1101
  */
910
1102
  declare global {
911
1103
  /** Ketrics SDK global object - available in all tenant application code */
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;AAMH,OAAO,EAAE,aAAa,EAAE,kBAAkB,EAAE,WAAW,EAAE,gBAAgB,EAAE,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C;QACzC,UAAU,IAAI,MAAM,CAAC;KACtB,CAAC;CACH"}
package/dist/index.js CHANGED
@@ -57,8 +57,8 @@
57
57
  * ```
58
58
  */
59
59
  Object.defineProperty(exports, "__esModule", { value: true });
60
- exports.FileNotFoundError = exports.VolumePermissionDeniedError = exports.VolumeAccessDeniedError = exports.VolumeNotFoundError = exports.VolumeError = exports.isDocumentDbErrorType = exports.isDocumentDbError = exports.DocumentDbOperationError = exports.DocumentDbValidationError = exports.DocumentDbPermissionDeniedError = exports.DocumentDbAccessDeniedError = exports.DocumentDbNotFoundError = exports.DocumentDbError = exports.isMessageErrorType = exports.isMessageError = exports.TenantGrantPermissionDeniedError = exports.GroupNotFoundError = exports.MessageValidationError = exports.MessageError = exports.isJobErrorType = exports.isJobError = exports.EltJobExecutionError = exports.CrossAppPermissionError = exports.InvalidFunctionError = exports.JobNotFoundError = exports.JobError = exports.isPdfErrorType = exports.isPdfError = exports.PdfWriteError = exports.PdfParseError = exports.PdfError = exports.isExcelErrorType = exports.isExcelError = exports.ExcelWriteError = exports.ExcelParseError = exports.ExcelError = exports.isSecretErrorType = exports.isSecretError = exports.SecretDecryptionError = exports.SecretAccessDeniedError = exports.SecretNotFoundError = exports.SecretError = exports.isDatabaseErrorType = exports.isDatabaseError = exports.DatabaseTransactionError = exports.DatabaseQueryError = exports.DatabaseConnectionError = exports.DatabaseAccessDeniedError = exports.DatabaseNotFoundError = exports.DatabaseError = void 0;
61
- exports.isVolumeErrorType = exports.isVolumeError = exports.ContentTypeNotAllowedError = exports.FileSizeLimitError = exports.InvalidPathError = exports.FileAlreadyExistsError = void 0;
60
+ exports.ApplicationsError = exports.isUsersErrorType = exports.isUsersError = exports.UsersPermissionDeniedError = exports.UsersError = exports.isDocumentDbErrorType = exports.isDocumentDbError = exports.DocumentDbOperationError = exports.DocumentDbValidationError = exports.DocumentDbPermissionDeniedError = exports.DocumentDbAccessDeniedError = exports.DocumentDbNotFoundError = exports.DocumentDbError = exports.isMessageErrorType = exports.isMessageError = exports.TenantGrantPermissionDeniedError = exports.GroupNotFoundError = exports.MessageValidationError = exports.MessageError = exports.isJobErrorType = exports.isJobError = exports.EltJobExecutionError = exports.CrossAppPermissionError = exports.InvalidFunctionError = exports.JobNotFoundError = exports.JobError = exports.isPdfErrorType = exports.isPdfError = exports.PdfWriteError = exports.PdfParseError = exports.PdfError = exports.isExcelErrorType = exports.isExcelError = exports.ExcelWriteError = exports.ExcelParseError = exports.ExcelError = exports.isSecretErrorType = exports.isSecretError = exports.SecretDecryptionError = exports.SecretAccessDeniedError = exports.SecretNotFoundError = exports.SecretError = exports.isDatabaseErrorType = exports.isDatabaseError = exports.DatabaseTransactionError = exports.DatabaseQueryError = exports.DatabaseConnectionError = exports.DatabaseAccessDeniedError = exports.DatabaseNotFoundError = exports.DatabaseError = void 0;
61
+ exports.isVolumeErrorType = exports.isVolumeError = exports.ContentTypeNotAllowedError = exports.FileSizeLimitError = exports.InvalidPathError = exports.FileAlreadyExistsError = exports.FileNotFoundError = exports.VolumePermissionDeniedError = exports.VolumeAccessDeniedError = exports.VolumeNotFoundError = exports.VolumeError = exports.isApplicationsErrorType = exports.isApplicationsError = exports.ApplicationTimeoutError = exports.ApplicationInvocationError = exports.ApplicationPermissionDeniedError = exports.ApplicationNotDeployedError = exports.ApplicationNotFoundError = void 0;
62
62
  // ============================================================================
63
63
  // Database Error Exports
64
64
  // ============================================================================
@@ -133,6 +133,26 @@ Object.defineProperty(exports, "DocumentDbOperationError", { enumerable: true, g
133
133
  Object.defineProperty(exports, "isDocumentDbError", { enumerable: true, get: function () { return documentdb_errors_1.isDocumentDbError; } });
134
134
  Object.defineProperty(exports, "isDocumentDbErrorType", { enumerable: true, get: function () { return documentdb_errors_1.isDocumentDbErrorType; } });
135
135
  // ============================================================================
136
+ // Users Error Exports
137
+ // ============================================================================
138
+ var users_errors_1 = require("./users-errors");
139
+ Object.defineProperty(exports, "UsersError", { enumerable: true, get: function () { return users_errors_1.UsersError; } });
140
+ Object.defineProperty(exports, "UsersPermissionDeniedError", { enumerable: true, get: function () { return users_errors_1.UsersPermissionDeniedError; } });
141
+ Object.defineProperty(exports, "isUsersError", { enumerable: true, get: function () { return users_errors_1.isUsersError; } });
142
+ Object.defineProperty(exports, "isUsersErrorType", { enumerable: true, get: function () { return users_errors_1.isUsersErrorType; } });
143
+ // ============================================================================
144
+ // Applications Error Exports
145
+ // ============================================================================
146
+ var applications_errors_1 = require("./applications-errors");
147
+ Object.defineProperty(exports, "ApplicationsError", { enumerable: true, get: function () { return applications_errors_1.ApplicationsError; } });
148
+ Object.defineProperty(exports, "ApplicationNotFoundError", { enumerable: true, get: function () { return applications_errors_1.ApplicationNotFoundError; } });
149
+ Object.defineProperty(exports, "ApplicationNotDeployedError", { enumerable: true, get: function () { return applications_errors_1.ApplicationNotDeployedError; } });
150
+ Object.defineProperty(exports, "ApplicationPermissionDeniedError", { enumerable: true, get: function () { return applications_errors_1.ApplicationPermissionDeniedError; } });
151
+ Object.defineProperty(exports, "ApplicationInvocationError", { enumerable: true, get: function () { return applications_errors_1.ApplicationInvocationError; } });
152
+ Object.defineProperty(exports, "ApplicationTimeoutError", { enumerable: true, get: function () { return applications_errors_1.ApplicationTimeoutError; } });
153
+ Object.defineProperty(exports, "isApplicationsError", { enumerable: true, get: function () { return applications_errors_1.isApplicationsError; } });
154
+ Object.defineProperty(exports, "isApplicationsErrorType", { enumerable: true, get: function () { return applications_errors_1.isApplicationsErrorType; } });
155
+ // ============================================================================
136
156
  // Volume Error Exports
137
157
  // ============================================================================
138
158
  var errors_1 = require("./errors");
package/dist/index.js.map CHANGED
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwDG;;;;AA0BH,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E,qDAS2B;AARzB,gHAAA,aAAa,OAAA;A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A;AACjB,0HAAA,qBAAqB,OAAA;AASvB,+EAA+E;AAC/E,sBAAsB;AACtB,+EAA+E;AAE/E,+CAAwG;AAA/F,0GAAA,UAAU,OAAA;AAAE,0HAAA,0BAA0B,OAAA;AAAE,4GAAA,YAAY,OAAA;AAAE,gHAAA,gBAAgB,OAAA;AAQ/E,+EAA+E;AAC/E,6BAA6B;AAC7B,+EAA+E;AAE/E,6DAS+B;AAR7B,wHAAA,iBAAiB,OAAA;AACjB,+HAAA,wBAAwB,OAAA;AACxB,kIAAA,2BAA2B,OAAA;AAC3B,uIAAA,gCAAgC,OAAA;AAChC,iIAAA,0BAA0B,OAAA;AAC1B,8HAAA,uBAAuB,OAAA;AACvB,0HAAA,mBAAmB,OAAA;AACnB,8HAAA,uBAAuB,OAAA;AAqCzB,+EAA+E;AAC/E,uBAAuB;AACvB,+EAA+E;AAE/E,mCAgBkB;AAbhB,gBAAgB;AAChB,qGAAA,WAAW,OAAA;AACX,6GAAA,mBAAmB,OAAA;AACnB,iHAAA,uBAAuB,OAAA;AACvB,qHAAA,2BAA2B,OAAA;AAC3B,2GAAA,iBAAiB,OAAA;AACjB,gHAAA,sBAAsB,OAAA;AACtB,0GAAA,gBAAgB,OAAA;AAChB,4GAAA,kBAAkB,OAAA;AAClB,oHAAA,0BAA0B,OAAA;AAC1B,cAAc;AACd,uGAAA,aAAa,OAAA;AACb,2GAAA,iBAAiB,OAAA"}
@@ -0,0 +1,85 @@
1
+ /**
2
+ * Ketrics SDK - Users Error Classes
3
+ *
4
+ * Provides typed errors for Users operations in tenant applications.
5
+ *
6
+ * Error Hierarchy:
7
+ * - UsersError (base)
8
+ * - UsersPermissionDeniedError
9
+ */
10
+ /**
11
+ * Base error class for all Users errors
12
+ *
13
+ * All Users errors extend this class and include:
14
+ * - operation: The operation that failed
15
+ * - timestamp: When the error occurred
16
+ */
17
+ export declare abstract class UsersError extends Error {
18
+ /** Operation that failed */
19
+ readonly operation: string;
20
+ /** When the error occurred */
21
+ readonly timestamp: Date;
22
+ constructor(message: string, operation: string);
23
+ /**
24
+ * Serialize error for logging
25
+ */
26
+ toJSON(): Record<string, unknown>;
27
+ }
28
+ /**
29
+ * Error thrown when application lacks iam:ListUsers permission
30
+ *
31
+ * @example
32
+ * ```typescript
33
+ * try {
34
+ * const users = await ketrics.Users.list();
35
+ * } catch (error) {
36
+ * if (error instanceof ketrics.Users.PermissionDeniedError) {
37
+ * console.log('Missing iam:ListUsers permission');
38
+ * }
39
+ * }
40
+ * ```
41
+ */
42
+ export declare class UsersPermissionDeniedError extends UsersError {
43
+ /** Permissions that are missing */
44
+ readonly missingPermissions: string[];
45
+ constructor(missingPermissions: string[]);
46
+ toJSON(): Record<string, unknown>;
47
+ }
48
+ /**
49
+ * Type guard to check if an error is a UsersError
50
+ *
51
+ * @param error - The error to check
52
+ * @returns True if the error is a UsersError
53
+ *
54
+ * @example
55
+ * ```typescript
56
+ * try {
57
+ * const users = await ketrics.Users.list();
58
+ * } catch (error) {
59
+ * if (isUsersError(error)) {
60
+ * console.log(`Users error: ${error.operation}`);
61
+ * }
62
+ * }
63
+ * ```
64
+ */
65
+ export declare function isUsersError(error: unknown): error is UsersError;
66
+ /**
67
+ * Type guard to check if an error is a specific UsersError type
68
+ *
69
+ * @param error - The error to check
70
+ * @param errorClass - The error class to check against
71
+ * @returns True if the error is an instance of the specified class
72
+ *
73
+ * @example
74
+ * ```typescript
75
+ * try {
76
+ * const users = await ketrics.Users.list();
77
+ * } catch (error) {
78
+ * if (isUsersErrorType(error, UsersPermissionDeniedError)) {
79
+ * console.log('Permission denied');
80
+ * }
81
+ * }
82
+ * ```
83
+ */
84
+ export declare function isUsersErrorType<T extends UsersError>(error: unknown, errorClass: new (...args: any[]) => T): error is T;
85
+ //# sourceMappingURL=users-errors.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users-errors.d.ts","sourceRoot":"","sources":["../src/users-errors.ts"],"names":[],"mappings":"AAAA;;;;;;;;GAQG;AAMH;;;;;;GAMG;AACH,8BAAsB,UAAW,SAAQ,KAAK;IAC5C,4BAA4B;IAC5B,QAAQ,CAAC,SAAS,EAAE,MAAM,CAAC;IAE3B,8BAA8B;IAC9B,QAAQ,CAAC,SAAS,EAAE,IAAI,CAAC;gBAEb,OAAO,EAAE,MAAM,EAAE,SAAS,EAAE,MAAM;IAY9C;;OAEG;IACH,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAQlC;AAMD;;;;;;;;;;;;;GAaG;AACH,qBAAa,0BAA2B,SAAQ,UAAU;IACxD,mCAAmC;IACnC,QAAQ,CAAC,kBAAkB,EAAE,MAAM,EAAE,CAAC;gBAE1B,kBAAkB,EAAE,MAAM,EAAE;IAUxC,MAAM,IAAI,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC;CAMlC;AAMD;;;;;;;;;;;;;;;;GAgBG;AACH,wBAAgB,YAAY,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,UAAU,CAEhE;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,wBAAgB,gBAAgB,CAAC,CAAC,SAAS,UAAU,EACnD,KAAK,EAAE,OAAO,EAEd,UAAU,EAAE,KAAK,GAAG,IAAI,EAAE,GAAG,EAAE,KAAK,CAAC,GACpC,KAAK,IAAI,CAAC,CAEZ"}
@@ -0,0 +1,127 @@
1
+ "use strict";
2
+ /**
3
+ * Ketrics SDK - Users Error Classes
4
+ *
5
+ * Provides typed errors for Users operations in tenant applications.
6
+ *
7
+ * Error Hierarchy:
8
+ * - UsersError (base)
9
+ * - UsersPermissionDeniedError
10
+ */
11
+ Object.defineProperty(exports, "__esModule", { value: true });
12
+ exports.UsersPermissionDeniedError = exports.UsersError = void 0;
13
+ exports.isUsersError = isUsersError;
14
+ exports.isUsersErrorType = isUsersErrorType;
15
+ // ============================================================================
16
+ // Base Error Class
17
+ // ============================================================================
18
+ /**
19
+ * Base error class for all Users errors
20
+ *
21
+ * All Users errors extend this class and include:
22
+ * - operation: The operation that failed
23
+ * - timestamp: When the error occurred
24
+ */
25
+ class UsersError extends Error {
26
+ constructor(message, operation) {
27
+ super(message);
28
+ this.name = this.constructor.name;
29
+ this.operation = operation;
30
+ this.timestamp = new Date();
31
+ // Maintains proper stack trace for where error was thrown
32
+ if (Error.captureStackTrace) {
33
+ Error.captureStackTrace(this, this.constructor);
34
+ }
35
+ }
36
+ /**
37
+ * Serialize error for logging
38
+ */
39
+ toJSON() {
40
+ return {
41
+ name: this.name,
42
+ message: this.message,
43
+ operation: this.operation,
44
+ timestamp: this.timestamp.toISOString(),
45
+ };
46
+ }
47
+ }
48
+ exports.UsersError = UsersError;
49
+ // ============================================================================
50
+ // Specific Error Classes
51
+ // ============================================================================
52
+ /**
53
+ * Error thrown when application lacks iam:ListUsers permission
54
+ *
55
+ * @example
56
+ * ```typescript
57
+ * try {
58
+ * const users = await ketrics.Users.list();
59
+ * } catch (error) {
60
+ * if (error instanceof ketrics.Users.PermissionDeniedError) {
61
+ * console.log('Missing iam:ListUsers permission');
62
+ * }
63
+ * }
64
+ * ```
65
+ */
66
+ class UsersPermissionDeniedError extends UsersError {
67
+ constructor(missingPermissions) {
68
+ const permissionList = missingPermissions.join(', ');
69
+ super(`Application lacks required permissions: ${permissionList}. ` +
70
+ `Assign a role with these permissions to the application.`, 'list');
71
+ this.missingPermissions = missingPermissions;
72
+ }
73
+ toJSON() {
74
+ return {
75
+ ...super.toJSON(),
76
+ missingPermissions: this.missingPermissions,
77
+ };
78
+ }
79
+ }
80
+ exports.UsersPermissionDeniedError = UsersPermissionDeniedError;
81
+ // ============================================================================
82
+ // Type Guards
83
+ // ============================================================================
84
+ /**
85
+ * Type guard to check if an error is a UsersError
86
+ *
87
+ * @param error - The error to check
88
+ * @returns True if the error is a UsersError
89
+ *
90
+ * @example
91
+ * ```typescript
92
+ * try {
93
+ * const users = await ketrics.Users.list();
94
+ * } catch (error) {
95
+ * if (isUsersError(error)) {
96
+ * console.log(`Users error: ${error.operation}`);
97
+ * }
98
+ * }
99
+ * ```
100
+ */
101
+ function isUsersError(error) {
102
+ return error instanceof UsersError;
103
+ }
104
+ /**
105
+ * Type guard to check if an error is a specific UsersError type
106
+ *
107
+ * @param error - The error to check
108
+ * @param errorClass - The error class to check against
109
+ * @returns True if the error is an instance of the specified class
110
+ *
111
+ * @example
112
+ * ```typescript
113
+ * try {
114
+ * const users = await ketrics.Users.list();
115
+ * } catch (error) {
116
+ * if (isUsersErrorType(error, UsersPermissionDeniedError)) {
117
+ * console.log('Permission denied');
118
+ * }
119
+ * }
120
+ * ```
121
+ */
122
+ function isUsersErrorType(error,
123
+ // eslint-disable-next-line @typescript-eslint/no-explicit-any
124
+ errorClass) {
125
+ return error instanceof errorClass;
126
+ }
127
+ //# sourceMappingURL=users-errors.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users-errors.js","sourceRoot":"","sources":["../src/users-errors.ts"],"names":[],"mappings":";AAAA;;;;;;;;GAQG;;;AA0GH,oCAEC;AAoBD,4CAMC;AApID,+EAA+E;AAC/E,mBAAmB;AACnB,+EAA+E;AAE/E;;;;;;GAMG;AACH,MAAsB,UAAW,SAAQ,KAAK;IAO5C,YAAY,OAAe,EAAE,SAAiB;QAC5C,KAAK,CAAC,OAAO,CAAC,CAAC;QACf,IAAI,CAAC,IAAI,GAAG,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC;QAClC,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,SAAS,GAAG,IAAI,IAAI,EAAE,CAAC;QAE5B,0DAA0D;QAC1D,IAAI,KAAK,CAAC,iBAAiB,EAAE,CAAC;YAC5B,KAAK,CAAC,iBAAiB,CAAC,IAAI,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAClD,CAAC;IACH,CAAC;IAED;;OAEG;IACH,MAAM;QACJ,OAAO;YACL,IAAI,EAAE,IAAI,CAAC,IAAI;YACf,OAAO,EAAE,IAAI,CAAC,OAAO;YACrB,SAAS,EAAE,IAAI,CAAC,SAAS;YACzB,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC,WAAW,EAAE;SACxC,CAAC;IACJ,CAAC;CACF;AA9BD,gCA8BC;AAED,+EAA+E;AAC/E,yBAAyB;AACzB,+EAA+E;AAE/E;;;;;;;;;;;;;GAaG;AACH,MAAa,0BAA2B,SAAQ,UAAU;IAIxD,YAAY,kBAA4B;QACtC,MAAM,cAAc,GAAG,kBAAkB,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QACrD,KAAK,CACH,2CAA2C,cAAc,IAAI;YAC3D,0DAA0D,EAC5D,MAAM,CACP,CAAC;QACF,IAAI,CAAC,kBAAkB,GAAG,kBAAkB,CAAC;IAC/C,CAAC;IAED,MAAM;QACJ,OAAO;YACL,GAAG,KAAK,CAAC,MAAM,EAAE;YACjB,kBAAkB,EAAE,IAAI,CAAC,kBAAkB;SAC5C,CAAC;IACJ,CAAC;CACF;AApBD,gEAoBC;AAED,+EAA+E;AAC/E,cAAc;AACd,+EAA+E;AAE/E;;;;;;;;;;;;;;;;GAgBG;AACH,SAAgB,YAAY,CAAC,KAAc;IACzC,OAAO,KAAK,YAAY,UAAU,CAAC;AACrC,CAAC;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH,SAAgB,gBAAgB,CAC9B,KAAc;AACd,8DAA8D;AAC9D,UAAqC;IAErC,OAAO,KAAK,YAAY,UAAU,CAAC;AACrC,CAAC"}
@@ -0,0 +1,40 @@
1
+ /**
2
+ * Ketrics SDK - Users Interfaces
3
+ *
4
+ * Provides type definitions for listing tenant users
5
+ * from tenant applications.
6
+ *
7
+ * Usage in tenant code:
8
+ * ```typescript
9
+ * // List all tenant users
10
+ * const users = await ketrics.Users.list();
11
+ * for (const user of users) {
12
+ * console.log(user.email, user.firstName, user.lastName);
13
+ * }
14
+ * ```
15
+ *
16
+ * Requires the `iam:ListUsers` permission assigned to the application via its role.
17
+ */
18
+ /**
19
+ * Sanitized tenant user info returned by Users.list()
20
+ *
21
+ * Only includes safe fields - no password hashes, tokens, or internal data.
22
+ */
23
+ export interface TenantUserInfo {
24
+ /** User UUID */
25
+ id: string;
26
+ /** User email address */
27
+ email: string;
28
+ /** User first name */
29
+ firstName: string;
30
+ /** User last name */
31
+ lastName: string;
32
+ /** User status */
33
+ status: string;
34
+ /** User group assignments */
35
+ groups: Array<{
36
+ groupId: string;
37
+ groupCode: string;
38
+ }>;
39
+ }
40
+ //# sourceMappingURL=users.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.d.ts","sourceRoot":"","sources":["../src/users.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;GAgBG;AAMH;;;;GAIG;AACH,MAAM,WAAW,cAAc;IAC7B,gBAAgB;IAChB,EAAE,EAAE,MAAM,CAAC;IACX,yBAAyB;IACzB,KAAK,EAAE,MAAM,CAAC;IACd,sBAAsB;IACtB,SAAS,EAAE,MAAM,CAAC;IAClB,qBAAqB;IACrB,QAAQ,EAAE,MAAM,CAAC;IACjB,kBAAkB;IAClB,MAAM,EAAE,MAAM,CAAC;IACf,6BAA6B;IAC7B,MAAM,EAAE,KAAK,CAAC;QAAE,OAAO,EAAE,MAAM,CAAC;QAAC,SAAS,EAAE,MAAM,CAAA;KAAE,CAAC,CAAC;CACvD"}
package/dist/users.js ADDED
@@ -0,0 +1,20 @@
1
+ "use strict";
2
+ /**
3
+ * Ketrics SDK - Users Interfaces
4
+ *
5
+ * Provides type definitions for listing tenant users
6
+ * from tenant applications.
7
+ *
8
+ * Usage in tenant code:
9
+ * ```typescript
10
+ * // List all tenant users
11
+ * const users = await ketrics.Users.list();
12
+ * for (const user of users) {
13
+ * console.log(user.email, user.firstName, user.lastName);
14
+ * }
15
+ * ```
16
+ *
17
+ * Requires the `iam:ListUsers` permission assigned to the application via its role.
18
+ */
19
+ Object.defineProperty(exports, "__esModule", { value: true });
20
+ //# sourceMappingURL=users.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"users.js","sourceRoot":"","sources":["../src/users.ts"],"names":[],"mappings":";AAAA;;;;;;;;;;;;;;;;GAgBG"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ketrics/sdk-backend",
3
- "version": "0.10.0",
3
+ "version": "0.12.0",
4
4
  "description": "Ketrics SDK for backend tenant application code (VM sandbox)",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",