nuki-api-js 1.2.0 → 3.0.2

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 (41) hide show
  1. package/LICENSE +15 -0
  2. package/README.md +13 -3
  3. package/dist/components-b80s6chi.d.ts +1407 -0
  4. package/dist/components-b80s6chi.d.ts.map +1 -0
  5. package/dist/components-dzxfxa30.d.ts +1407 -0
  6. package/dist/components-dzxfxa30.d.ts.map +1 -0
  7. package/dist/components.cjs +2496 -108
  8. package/dist/components.d.cts +2 -0
  9. package/dist/components.d.cts.map +1 -0
  10. package/dist/components.d.mts +1 -1596
  11. package/dist/components.d.mts.map +1 -1
  12. package/dist/components.mjs +2393 -1
  13. package/dist/effect.cjs +131 -24
  14. package/dist/effect.d.cts +317 -0
  15. package/dist/effect.d.cts.map +1 -0
  16. package/dist/effect.d.mts +75 -5
  17. package/dist/effect.d.mts.map +1 -1
  18. package/dist/effect.mjs +125 -4
  19. package/dist/index.cjs +107 -22
  20. package/dist/index.d.cts +148 -0
  21. package/dist/index.d.cts.map +1 -0
  22. package/dist/index.d.mts +148 -0
  23. package/dist/index.d.mts.map +1 -0
  24. package/dist/index.d.ts +2092 -1923
  25. package/dist/index.d.ts.map +1 -1
  26. package/dist/index.mjs +29 -24
  27. package/dist/{schemas-geox71wk.js → schemas-eegfu8of.js} +560 -154
  28. package/dist/{schemas-fong721w.cjs → schemas-noervfwu.cjs} +639 -153
  29. package/dist/schemas.cjs +81 -1
  30. package/dist/schemas.d.cts +38740 -0
  31. package/dist/schemas.d.cts.map +1 -0
  32. package/dist/schemas.d.mts +1498 -1226
  33. package/dist/schemas.d.mts.map +1 -1
  34. package/dist/schemas.mjs +1 -1
  35. package/dist/types.d.cts +7238 -0
  36. package/dist/types.d.cts.map +1 -0
  37. package/dist/types.d.mts +256 -171
  38. package/dist/types.d.mts.map +1 -1
  39. package/package.json +74 -30
  40. package/dist/components-eiu9qz9x.js +0 -2351
  41. package/dist/components-iddduu87.cjs +0 -2458
package/dist/effect.cjs CHANGED
@@ -1,30 +1,137 @@
1
1
  Object.defineProperty(exports, '__esModule', { value: true });
2
2
 
3
- var effect = require('@sferadev/openapi-utils/effect');
4
- var components = require('./components-iddduu87.cjs');
3
+ var effect = require('effect');
4
+ var components = require('./components.cjs');
5
5
 
6
- const ApiService = effect.createEffectApi(components.operationsByTag);
7
- const effectByPath = effect.createEffectByPath(components.operationsByPath);
6
+ // ============================================================================
7
+ // Error Types
8
+ // ============================================================================
9
+ /**
10
+ * Validation error for client-side input validation failures.
11
+ * Use this for missing required parameters or invalid input formats.
12
+ */ class ValidationError extends effect.Data.TaggedError("ValidationError") {
13
+ get message() {
14
+ return `Validation error for '${this.field}': ${this.reason}`;
15
+ }
16
+ }
17
+ /**
18
+ * API error with status code and error payload.
19
+ * Uses Effect's Data.TaggedError for pattern matching support.
20
+ */ class ApiError extends effect.Data.TaggedError("ApiError") {
21
+ get message() {
22
+ const message = errorMessage(this.error);
23
+ return message ? `API error ${this.status}: ${message}` : `API Error: ${this.status}`;
24
+ }
25
+ }
26
+ // Error bodies vary by API: `{ message }`, `{ error }`, `{ error: { message } }`, `{ errors: [{ message }] }` or text.
27
+ function errorMessage(value) {
28
+ if (isRecord(value) && "payload" in value) {
29
+ const fromPayload = errorMessage(value.payload);
30
+ if (fromPayload) return fromPayload;
31
+ }
32
+ if (typeof value === "string") return value.trim() || undefined;
33
+ if (!isRecord(value)) return undefined;
34
+ if (typeof value.message === "string" && value.message) return value.message;
35
+ if ("error" in value) {
36
+ const fromError = errorMessage(value.error);
37
+ if (fromError) return fromError;
38
+ }
39
+ if (Array.isArray(value.errors)) return errorMessage(value.errors[0]);
40
+ return undefined;
41
+ }
42
+ function isRecord(value) {
43
+ return typeof value === "object" && value !== null && !Array.isArray(value);
44
+ }
45
+ /**
46
+ * Network error for fetch failures (timeouts, DNS errors, etc).
47
+ */ class NetworkError extends effect.Data.TaggedError("NetworkError") {
48
+ get message() {
49
+ if (this.cause instanceof Error) {
50
+ return `Network error: ${this.cause.message}`;
51
+ }
52
+ if (isRecord(this.cause) && typeof this.cause.message === "string" && this.cause.message) {
53
+ return `Network error: ${this.cause.message}`;
54
+ }
55
+ return "Network error";
56
+ }
57
+ }
58
+ class ApiConfig extends effect.Context.Service()("ApiConfig") {
59
+ }
60
+ /**
61
+ * Create a Layer providing ApiConfig values.
62
+ */ const makeApiLayer = (config)=>effect.Layer.succeed(ApiConfig, config);
63
+ // ============================================================================
64
+ // Error Conversion
65
+ // ============================================================================
66
+ function convertError(error) {
67
+ if (error instanceof Error && error.message.includes("Missing required path parameter")) {
68
+ const field = error.message.replace("Missing required path parameter: ", "");
69
+ return new ValidationError({
70
+ field,
71
+ reason: "Missing required path parameter"
72
+ });
73
+ }
74
+ if (typeof error === "object" && error !== null && "status" in error) {
75
+ return new ApiError({
76
+ status: error.status,
77
+ error
78
+ });
79
+ }
80
+ return new NetworkError({
81
+ cause: error
82
+ });
83
+ }
84
+ // ============================================================================
85
+ // Proxy Factories
86
+ // ============================================================================
87
+ function ownValue(target, key) {
88
+ return Object.hasOwn(target, key) ? target[key] : undefined;
89
+ }
90
+ function toEffect(op) {
91
+ return (params)=>effect.Effect.gen(function*() {
92
+ const config = yield* ApiConfig;
93
+ return yield* effect.Effect.tryPromise({
94
+ try: (signal)=>op({
95
+ ...params ?? {},
96
+ config: {
97
+ ...config,
98
+ signal
99
+ }
100
+ }),
101
+ catch: convertError
102
+ });
103
+ });
104
+ }
105
+ function createEffectApi(operationsByTag) {
106
+ return new Proxy({}, {
107
+ get: (_, tag)=>{
108
+ const tagOps = ownValue(operationsByTag, tag);
109
+ if (!tagOps) return undefined;
110
+ return new Proxy({}, {
111
+ get: (_, operation)=>{
112
+ const op = ownValue(tagOps, operation);
113
+ return op ? toEffect(op) : undefined;
114
+ }
115
+ });
116
+ }
117
+ });
118
+ }
119
+ function createEffectByPath(operationsByPath) {
120
+ return new Proxy({}, {
121
+ get: (_, endpoint)=>{
122
+ const op = ownValue(operationsByPath, endpoint);
123
+ return op ? toEffect(op) : undefined;
124
+ }
125
+ });
126
+ }
8
127
 
9
- Object.defineProperty(exports, "ApiConfig", {
10
- enumerable: true,
11
- get: function () { return effect.ApiConfig; }
12
- });
13
- Object.defineProperty(exports, "ApiError", {
14
- enumerable: true,
15
- get: function () { return effect.ApiError; }
16
- });
17
- Object.defineProperty(exports, "NetworkError", {
18
- enumerable: true,
19
- get: function () { return effect.NetworkError; }
20
- });
21
- Object.defineProperty(exports, "ValidationError", {
22
- enumerable: true,
23
- get: function () { return effect.ValidationError; }
24
- });
25
- Object.defineProperty(exports, "makeApiLayer", {
26
- enumerable: true,
27
- get: function () { return effect.makeApiLayer; }
28
- });
128
+ const ApiService = createEffectApi(components.operationsByTag);
129
+ const effectByPath = createEffectByPath(components.operationsByPath);
130
+
131
+ exports.ApiConfig = ApiConfig;
132
+ exports.ApiError = ApiError;
29
133
  exports.ApiService = ApiService;
134
+ exports.NetworkError = NetworkError;
135
+ exports.ValidationError = ValidationError;
30
136
  exports.effectByPath = effectByPath;
137
+ exports.makeApiLayer = makeApiLayer;
@@ -0,0 +1,317 @@
1
+ import * as effect_Cause from 'effect/Cause';
2
+ import * as effect_Types from 'effect/Types';
3
+ import { Context, Effect, Layer } from 'effect';
4
+ import { getAccountsResource, postAccountsResource, deleteAccountsResource, postAccountEmailChangeResource, postAccountEmailVerifyResource, getAccountIntegrationsResource, deleteAccountIntegrationsResource, postAccountOtpResource, putAccountOtpResource, deleteAccountOtpResource, postAccountPasswordResetResource, getAccountSettingResource, putAccountSettingResource, deleteAccountSettingResource, getAccountSubsResource, putAccountSubsResource, getAccountSubResource, postAccountSubResource, deleteAccountSubResource, getAccountUsersResource, putAccountUsersResource, getAccountUserResource, postAccountUserResource, deleteAccountUserResource, getAddressesResource, putAddressesResource, postAddressResource, deleteAddressResource, getAddressUnitsResource, putAddressUnitsResource, deleteAddressUnitsResource, deleteAddressUnitResource, getAddressTokenResource, getAddressTokenRedeemResource, postAddressTokenRedeemResource, getAddressTokensResource, getAddressReservationsResource, postAddressReservationIssueResource, postAddressReservationRevokeResource, postReservationAccessTimesUpdateResource, getDecentralWebhooksResource, putDecentralWebhooksResource, deleteDecentralWebhookResource, getWebhookLogsResource, putSmartlockAuthsAdvancedResource, postSmartlockActionAdvancedResource, postSmartlockLockActionAdvancedResource, postSmartlockUnlockActionAdvancedResource, getApiKeysResource, putApiKeysResource, postApiKeyResource, deleteApiKeyResource, getApiKeyAdvancedResource, postApiKeyAdvancedResource, putApiKeyAdvancedResource, deleteApiKeyAdvancedResource, postApiKeyAdvancedReactivateResource, getApiKeyTokensResource, putApiKeyTokensResource, postApiKeyTokenResource, deleteApiKeyTokenResource, postSmartlockBulkWebConfigResource, getSmartlocksResource, getSmartlockResource, postSmartlockResource, deleteSmartlockResource, postSmartlockActionResource, postSmartlockLockActionResource, postSmartlockUnlockActionResource, postSmartlockAdminPinResource, postSmartlockAdvancedConfigResource, postSmartlockOpenerAdvancedConfigResource, postSmartdoorAdvancedConfigResource, postSmartlockConfigResource, postSmartlockSyncResource, postSmartlockWebConfigResource, getCompaniesResource, getNotificationsResource, putNotificationsResource, getNotificationResource, postNotificationResource, deleteNotificationResource, getOpenerBrandsResource, getOpenerBrandResource, getOpenerIntercomsResource, getOpenerIntercomResource, getServicesResource, getServiceResource, postServiceLinkResource, postServiceSyncResource, postServiceUnlinkResource, getSmartlocksAuthsResource, postSmartlocksAuthsResource, putSmartlocksAuthsResource, deleteSmartlocksAuthsResource, getSmartlocksAuthsPaginatedResource, getSmartlockAuthsResource, putSmartlockAuthsResource, postSmartlockAuthWithSharedKeyResource, getSmartlockAuthResource, postSmartlockAuthResource, deleteSmartlockAuthResource, getSmartlocksLogsResource, getSmartlockLogsResource } from './components.cjs';
5
+
6
+ declare const ValidationError_base: new <A extends Record<string, any> = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
7
+ readonly _tag: "ValidationError";
8
+ } & Readonly<A>;
9
+ /**
10
+ * Validation error for client-side input validation failures.
11
+ * Use this for missing required parameters or invalid input formats.
12
+ */
13
+ declare class ValidationError extends ValidationError_base<{
14
+ readonly field: string;
15
+ readonly reason: string;
16
+ }> {
17
+ get message(): string;
18
+ }
19
+ declare const ApiError_base: new <A extends Record<string, any> = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
20
+ readonly _tag: "ApiError";
21
+ } & Readonly<A>;
22
+ /**
23
+ * API error with status code and error payload.
24
+ * Uses Effect's Data.TaggedError for pattern matching support.
25
+ */
26
+ declare class ApiError extends ApiError_base<{
27
+ readonly status: number;
28
+ readonly error: unknown;
29
+ }> {
30
+ get message(): string;
31
+ }
32
+ declare const NetworkError_base: new <A extends Record<string, any> = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
33
+ readonly _tag: "NetworkError";
34
+ } & Readonly<A>;
35
+ /**
36
+ * Network error for fetch failures (timeouts, DNS errors, etc).
37
+ */
38
+ declare class NetworkError extends NetworkError_base<{
39
+ readonly cause: unknown;
40
+ }> {
41
+ get message(): string;
42
+ }
43
+ /**
44
+ * Effect service key for API configuration.
45
+ * Used by the proxy-based Effect API to inject config into operations.
46
+ */
47
+ type ApiConfigShape = {
48
+ token?: string;
49
+ baseUrl?: string;
50
+ fetchImpl?: (url: string, init?: any) => Promise<any>;
51
+ headers?: Record<string, string>;
52
+ };
53
+ declare const ApiConfig_base: Context.ServiceClass<ApiConfig, "ApiConfig", ApiConfigShape>;
54
+ declare class ApiConfig extends ApiConfig_base {
55
+ }
56
+ /**
57
+ * Create a Layer providing ApiConfig values.
58
+ */
59
+ declare const makeApiLayer: (config: ApiConfigShape) => Layer.Layer<ApiConfig>;
60
+
61
+ type RequiredKeys<T> = {
62
+ [K in keyof T]-?: {} extends Pick<T, K> ? never : K;
63
+ }[keyof T];
64
+ type EffectOperation<Op> = Op extends (params: infer P) => Promise<infer R> ? Omit<NonNullable<P>, "config"> extends infer Params ? [RequiredKeys<Params>] extends [never] ? (params?: Params) => Effect.Effect<R, ApiError | ValidationError | NetworkError, ApiConfig> : (params: Params) => Effect.Effect<R, ApiError | ValidationError | NetworkError, ApiConfig> : never : never;
65
+ type EffectApi<Tags extends Record<string, Record<string, (...args: any[]) => any>>> = {
66
+ [Tag in keyof Tags]: {
67
+ [Op in keyof Tags[Tag]]: EffectOperation<Tags[Tag][Op]>;
68
+ };
69
+ };
70
+ type EffectByPath<Paths extends Record<string, (...args: any[]) => any>> = {
71
+ [K in keyof Paths]: EffectOperation<Paths[K]>;
72
+ };
73
+
74
+ declare const ApiService: EffectApi<{
75
+ account: {
76
+ getAccountsResource: typeof getAccountsResource;
77
+ postAccountsResource: typeof postAccountsResource;
78
+ deleteAccountsResource: typeof deleteAccountsResource;
79
+ postAccountEmailChangeResource: typeof postAccountEmailChangeResource;
80
+ postAccountEmailVerifyResource: typeof postAccountEmailVerifyResource;
81
+ getAccountIntegrationsResource: typeof getAccountIntegrationsResource;
82
+ deleteAccountIntegrationsResource: typeof deleteAccountIntegrationsResource;
83
+ postAccountOtpResource: typeof postAccountOtpResource;
84
+ putAccountOtpResource: typeof putAccountOtpResource;
85
+ deleteAccountOtpResource: typeof deleteAccountOtpResource;
86
+ postAccountPasswordResetResource: typeof postAccountPasswordResetResource;
87
+ getAccountSettingResource: typeof getAccountSettingResource;
88
+ putAccountSettingResource: typeof putAccountSettingResource;
89
+ deleteAccountSettingResource: typeof deleteAccountSettingResource;
90
+ getAccountSubsResource: typeof getAccountSubsResource;
91
+ putAccountSubsResource: typeof putAccountSubsResource;
92
+ getAccountSubResource: typeof getAccountSubResource;
93
+ postAccountSubResource: typeof postAccountSubResource;
94
+ deleteAccountSubResource: typeof deleteAccountSubResource;
95
+ };
96
+ accountuser: {
97
+ getAccountUsersResource: typeof getAccountUsersResource;
98
+ putAccountUsersResource: typeof putAccountUsersResource;
99
+ getAccountUserResource: typeof getAccountUserResource;
100
+ postAccountUserResource: typeof postAccountUserResource;
101
+ deleteAccountUserResource: typeof deleteAccountUserResource;
102
+ };
103
+ address: {
104
+ getAddressesResource: typeof getAddressesResource;
105
+ putAddressesResource: typeof putAddressesResource;
106
+ postAddressResource: typeof postAddressResource;
107
+ deleteAddressResource: typeof deleteAddressResource;
108
+ getAddressUnitsResource: typeof getAddressUnitsResource;
109
+ putAddressUnitsResource: typeof putAddressUnitsResource;
110
+ deleteAddressUnitsResource: typeof deleteAddressUnitsResource;
111
+ deleteAddressUnitResource: typeof deleteAddressUnitResource;
112
+ };
113
+ addresstoken: {
114
+ getAddressTokenResource: typeof getAddressTokenResource;
115
+ getAddressTokenRedeemResource: typeof getAddressTokenRedeemResource;
116
+ postAddressTokenRedeemResource: typeof postAddressTokenRedeemResource;
117
+ getAddressTokensResource: typeof getAddressTokensResource;
118
+ };
119
+ addressreservation: {
120
+ getAddressReservationsResource: typeof getAddressReservationsResource;
121
+ postAddressReservationIssueResource: typeof postAddressReservationIssueResource;
122
+ postAddressReservationRevokeResource: typeof postAddressReservationRevokeResource;
123
+ postReservationAccessTimesUpdateResource: typeof postReservationAccessTimesUpdateResource;
124
+ };
125
+ advancedapi: {
126
+ getDecentralWebhooksResource: typeof getDecentralWebhooksResource;
127
+ putDecentralWebhooksResource: typeof putDecentralWebhooksResource;
128
+ deleteDecentralWebhookResource: typeof deleteDecentralWebhookResource;
129
+ getWebhookLogsResource: typeof getWebhookLogsResource;
130
+ putSmartlockAuthsAdvancedResource: typeof putSmartlockAuthsAdvancedResource;
131
+ postSmartlockActionAdvancedResource: typeof postSmartlockActionAdvancedResource;
132
+ postSmartlockLockActionAdvancedResource: typeof postSmartlockLockActionAdvancedResource;
133
+ postSmartlockUnlockActionAdvancedResource: typeof postSmartlockUnlockActionAdvancedResource;
134
+ };
135
+ apikey: {
136
+ getApiKeysResource: typeof getApiKeysResource;
137
+ putApiKeysResource: typeof putApiKeysResource;
138
+ postApiKeyResource: typeof postApiKeyResource;
139
+ deleteApiKeyResource: typeof deleteApiKeyResource;
140
+ getApiKeyAdvancedResource: typeof getApiKeyAdvancedResource;
141
+ postApiKeyAdvancedResource: typeof postApiKeyAdvancedResource;
142
+ putApiKeyAdvancedResource: typeof putApiKeyAdvancedResource;
143
+ deleteApiKeyAdvancedResource: typeof deleteApiKeyAdvancedResource;
144
+ postApiKeyAdvancedReactivateResource: typeof postApiKeyAdvancedReactivateResource;
145
+ getApiKeyTokensResource: typeof getApiKeyTokensResource;
146
+ putApiKeyTokensResource: typeof putApiKeyTokensResource;
147
+ postApiKeyTokenResource: typeof postApiKeyTokenResource;
148
+ deleteApiKeyTokenResource: typeof deleteApiKeyTokenResource;
149
+ };
150
+ smartlock: {
151
+ postSmartlockBulkWebConfigResource: typeof postSmartlockBulkWebConfigResource;
152
+ getSmartlocksResource: typeof getSmartlocksResource;
153
+ getSmartlockResource: typeof getSmartlockResource;
154
+ postSmartlockResource: typeof postSmartlockResource;
155
+ deleteSmartlockResource: typeof deleteSmartlockResource;
156
+ postSmartlockActionResource: typeof postSmartlockActionResource;
157
+ postSmartlockLockActionResource: typeof postSmartlockLockActionResource;
158
+ postSmartlockUnlockActionResource: typeof postSmartlockUnlockActionResource;
159
+ postSmartlockAdminPinResource: typeof postSmartlockAdminPinResource;
160
+ postSmartlockAdvancedConfigResource: typeof postSmartlockAdvancedConfigResource;
161
+ postSmartlockOpenerAdvancedConfigResource: typeof postSmartlockOpenerAdvancedConfigResource;
162
+ postSmartdoorAdvancedConfigResource: typeof postSmartdoorAdvancedConfigResource;
163
+ postSmartlockConfigResource: typeof postSmartlockConfigResource;
164
+ postSmartlockSyncResource: typeof postSmartlockSyncResource;
165
+ postSmartlockWebConfigResource: typeof postSmartlockWebConfigResource;
166
+ };
167
+ company: {
168
+ getCompaniesResource: typeof getCompaniesResource;
169
+ };
170
+ notification: {
171
+ getNotificationsResource: typeof getNotificationsResource;
172
+ putNotificationsResource: typeof putNotificationsResource;
173
+ getNotificationResource: typeof getNotificationResource;
174
+ postNotificationResource: typeof postNotificationResource;
175
+ deleteNotificationResource: typeof deleteNotificationResource;
176
+ };
177
+ opener: {
178
+ getOpenerBrandsResource: typeof getOpenerBrandsResource;
179
+ getOpenerBrandResource: typeof getOpenerBrandResource;
180
+ getOpenerIntercomsResource: typeof getOpenerIntercomsResource;
181
+ getOpenerIntercomResource: typeof getOpenerIntercomResource;
182
+ };
183
+ service: {
184
+ getServicesResource: typeof getServicesResource;
185
+ getServiceResource: typeof getServiceResource;
186
+ postServiceLinkResource: typeof postServiceLinkResource;
187
+ postServiceSyncResource: typeof postServiceSyncResource;
188
+ postServiceUnlinkResource: typeof postServiceUnlinkResource;
189
+ };
190
+ smartlockauth: {
191
+ getSmartlocksAuthsResource: typeof getSmartlocksAuthsResource;
192
+ postSmartlocksAuthsResource: typeof postSmartlocksAuthsResource;
193
+ putSmartlocksAuthsResource: typeof putSmartlocksAuthsResource;
194
+ deleteSmartlocksAuthsResource: typeof deleteSmartlocksAuthsResource;
195
+ getSmartlocksAuthsPaginatedResource: typeof getSmartlocksAuthsPaginatedResource;
196
+ getSmartlockAuthsResource: typeof getSmartlockAuthsResource;
197
+ putSmartlockAuthsResource: typeof putSmartlockAuthsResource;
198
+ postSmartlockAuthWithSharedKeyResource: typeof postSmartlockAuthWithSharedKeyResource;
199
+ getSmartlockAuthResource: typeof getSmartlockAuthResource;
200
+ postSmartlockAuthResource: typeof postSmartlockAuthResource;
201
+ deleteSmartlockAuthResource: typeof deleteSmartlockAuthResource;
202
+ };
203
+ smartlocklog: {
204
+ getSmartlocksLogsResource: typeof getSmartlocksLogsResource;
205
+ getSmartlockLogsResource: typeof getSmartlockLogsResource;
206
+ };
207
+ }>;
208
+ declare const effectByPath: EffectByPath<{
209
+ "GET /account": typeof getAccountsResource;
210
+ "POST /account": typeof postAccountsResource;
211
+ "DELETE /account": typeof deleteAccountsResource;
212
+ "POST /account/email/change": typeof postAccountEmailChangeResource;
213
+ "POST /account/email/verify": typeof postAccountEmailVerifyResource;
214
+ "GET /account/integration": typeof getAccountIntegrationsResource;
215
+ "DELETE /account/integration": typeof deleteAccountIntegrationsResource;
216
+ "POST /account/otp": typeof postAccountOtpResource;
217
+ "PUT /account/otp": typeof putAccountOtpResource;
218
+ "DELETE /account/otp": typeof deleteAccountOtpResource;
219
+ "POST /account/password/reset": typeof postAccountPasswordResetResource;
220
+ "GET /account/setting": typeof getAccountSettingResource;
221
+ "PUT /account/setting": typeof putAccountSettingResource;
222
+ "DELETE /account/setting": typeof deleteAccountSettingResource;
223
+ "GET /account/sub": typeof getAccountSubsResource;
224
+ "PUT /account/sub": typeof putAccountSubsResource;
225
+ "GET /account/sub/{accountId}": typeof getAccountSubResource;
226
+ "POST /account/sub/{accountId}": typeof postAccountSubResource;
227
+ "DELETE /account/sub/{accountId}": typeof deleteAccountSubResource;
228
+ "GET /account/user": typeof getAccountUsersResource;
229
+ "PUT /account/user": typeof putAccountUsersResource;
230
+ "GET /account/user/{accountUserId}": typeof getAccountUserResource;
231
+ "POST /account/user/{accountUserId}": typeof postAccountUserResource;
232
+ "DELETE /account/user/{accountUserId}": typeof deleteAccountUserResource;
233
+ "GET /address": typeof getAddressesResource;
234
+ "PUT /address": typeof putAddressesResource;
235
+ "GET /address/token/{id}": typeof getAddressTokenResource;
236
+ "GET /address/token/{id}/redeem": typeof getAddressTokenRedeemResource;
237
+ "POST /address/token/{id}/redeem": typeof postAddressTokenRedeemResource;
238
+ "POST /address/{addressId}": typeof postAddressResource;
239
+ "DELETE /address/{addressId}": typeof deleteAddressResource;
240
+ "GET /address/{addressId}/reservation": typeof getAddressReservationsResource;
241
+ "POST /address/{addressId}/reservation/{id}/issue": typeof postAddressReservationIssueResource;
242
+ "POST /address/{addressId}/reservation/{id}/revoke": typeof postAddressReservationRevokeResource;
243
+ "POST /address/{addressId}/reservation/{id}/update/accesstimes": typeof postReservationAccessTimesUpdateResource;
244
+ "GET /address/{addressId}/token": typeof getAddressTokensResource;
245
+ "GET /address/{addressId}/unit": typeof getAddressUnitsResource;
246
+ "PUT /address/{addressId}/unit": typeof putAddressUnitsResource;
247
+ "DELETE /address/{addressId}/unit": typeof deleteAddressUnitsResource;
248
+ "DELETE /address/{addressId}/unit/{id}": typeof deleteAddressUnitResource;
249
+ "GET /api/decentralWebhook": typeof getDecentralWebhooksResource;
250
+ "PUT /api/decentralWebhook": typeof putDecentralWebhooksResource;
251
+ "DELETE /api/decentralWebhook/{id}": typeof deleteDecentralWebhookResource;
252
+ "GET /api/key": typeof getApiKeysResource;
253
+ "PUT /api/key": typeof putApiKeysResource;
254
+ "POST /api/key/{apiKeyId}": typeof postApiKeyResource;
255
+ "DELETE /api/key/{apiKeyId}": typeof deleteApiKeyResource;
256
+ "GET /api/key/{apiKeyId}/advanced": typeof getApiKeyAdvancedResource;
257
+ "POST /api/key/{apiKeyId}/advanced": typeof postApiKeyAdvancedResource;
258
+ "PUT /api/key/{apiKeyId}/advanced": typeof putApiKeyAdvancedResource;
259
+ "DELETE /api/key/{apiKeyId}/advanced": typeof deleteApiKeyAdvancedResource;
260
+ "POST /api/key/{apiKeyId}/advanced/reactivate": typeof postApiKeyAdvancedReactivateResource;
261
+ "GET /api/key/{apiKeyId}/token": typeof getApiKeyTokensResource;
262
+ "PUT /api/key/{apiKeyId}/token": typeof putApiKeyTokensResource;
263
+ "POST /api/key/{apiKeyId}/token/{id}": typeof postApiKeyTokenResource;
264
+ "DELETE /api/key/{apiKeyId}/token/{id}": typeof deleteApiKeyTokenResource;
265
+ "GET /api/key/{apiKeyId}/webhook/logs": typeof getWebhookLogsResource;
266
+ "POST /bulk-web-config": typeof postSmartlockBulkWebConfigResource;
267
+ "GET /company": typeof getCompaniesResource;
268
+ "GET /notification": typeof getNotificationsResource;
269
+ "PUT /notification": typeof putNotificationsResource;
270
+ "GET /notification/{notificationId}": typeof getNotificationResource;
271
+ "POST /notification/{notificationId}": typeof postNotificationResource;
272
+ "DELETE /notification/{notificationId}": typeof deleteNotificationResource;
273
+ "GET /opener/brand": typeof getOpenerBrandsResource;
274
+ "GET /opener/brand/{brandId}": typeof getOpenerBrandResource;
275
+ "GET /opener/intercom": typeof getOpenerIntercomsResource;
276
+ "GET /opener/intercom/{intercomId}": typeof getOpenerIntercomResource;
277
+ "GET /service": typeof getServicesResource;
278
+ "GET /service/{serviceId}": typeof getServiceResource;
279
+ "POST /service/{serviceId}/link": typeof postServiceLinkResource;
280
+ "POST /service/{serviceId}/sync": typeof postServiceSyncResource;
281
+ "POST /service/{serviceId}/unlink": typeof postServiceUnlinkResource;
282
+ "GET /smartlock": typeof getSmartlocksResource;
283
+ "GET /smartlock/auth": typeof getSmartlocksAuthsResource;
284
+ "POST /smartlock/auth": typeof postSmartlocksAuthsResource;
285
+ "PUT /smartlock/auth": typeof putSmartlocksAuthsResource;
286
+ "DELETE /smartlock/auth": typeof deleteSmartlocksAuthsResource;
287
+ "PUT /smartlock/auth/advanced": typeof putSmartlockAuthsAdvancedResource;
288
+ "GET /smartlock/auth/paged": typeof getSmartlocksAuthsPaginatedResource;
289
+ "GET /smartlock/log": typeof getSmartlocksLogsResource;
290
+ "GET /smartlock/{smartlockId}": typeof getSmartlockResource;
291
+ "POST /smartlock/{smartlockId}": typeof postSmartlockResource;
292
+ "DELETE /smartlock/{smartlockId}": typeof deleteSmartlockResource;
293
+ "POST /smartlock/{smartlockId}/action": typeof postSmartlockActionResource;
294
+ "POST /smartlock/{smartlockId}/action/advanced": typeof postSmartlockActionAdvancedResource;
295
+ "POST /smartlock/{smartlockId}/action/lock": typeof postSmartlockLockActionResource;
296
+ "POST /smartlock/{smartlockId}/action/lock/advanced": typeof postSmartlockLockActionAdvancedResource;
297
+ "POST /smartlock/{smartlockId}/action/unlock": typeof postSmartlockUnlockActionResource;
298
+ "POST /smartlock/{smartlockId}/action/unlock/advanced": typeof postSmartlockUnlockActionAdvancedResource;
299
+ "POST /smartlock/{smartlockId}/admin/pin": typeof postSmartlockAdminPinResource;
300
+ "POST /smartlock/{smartlockId}/advanced/config": typeof postSmartlockAdvancedConfigResource;
301
+ "POST /smartlock/{smartlockId}/advanced/openerconfig": typeof postSmartlockOpenerAdvancedConfigResource;
302
+ "POST /smartlock/{smartlockId}/advanced/smartdoorconfig": typeof postSmartdoorAdvancedConfigResource;
303
+ "GET /smartlock/{smartlockId}/auth": typeof getSmartlockAuthsResource;
304
+ "PUT /smartlock/{smartlockId}/auth": typeof putSmartlockAuthsResource;
305
+ "POST /smartlock/{smartlockId}/auth/advanced/sharedkey": typeof postSmartlockAuthWithSharedKeyResource;
306
+ "GET /smartlock/{smartlockId}/auth/{id}": typeof getSmartlockAuthResource;
307
+ "POST /smartlock/{smartlockId}/auth/{id}": typeof postSmartlockAuthResource;
308
+ "DELETE /smartlock/{smartlockId}/auth/{id}": typeof deleteSmartlockAuthResource;
309
+ "POST /smartlock/{smartlockId}/config": typeof postSmartlockConfigResource;
310
+ "GET /smartlock/{smartlockId}/log": typeof getSmartlockLogsResource;
311
+ "POST /smartlock/{smartlockId}/sync": typeof postSmartlockSyncResource;
312
+ "POST /smartlock/{smartlockId}/web/config": typeof postSmartlockWebConfigResource;
313
+ }>;
314
+
315
+ export { ApiConfig, ApiError, ApiService, NetworkError, ValidationError, effectByPath, makeApiLayer };
316
+ export type { EffectApi };
317
+ //# sourceMappingURL=effect.d.cts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"effect.d.cts","sources":["../../openapi-utils/dist/effect/index.d.mts","../src/effect.ts"],"mappings":";;;;;AAIA,cAAc,oBAAoB,iBAAiB,MAAM,0BAA0B,YAAY,CAAC,WAAW,yEAAyE,YAAY,CAAC,cAAc;AAC/M;AACA,IAAI,QAAQ;AACZ;AACA;AACA;AACA;AACA,cAAc,eAAe,SAAS,oBAAoB;AAC1D;AACA;AACA;AACA;AACA;AACA,cAAc,aAAa,iBAAiB,MAAM,0BAA0B,YAAY,CAAC,WAAW,yEAAyE,YAAY,CAAC,cAAc;A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DAAwDC,2BAAwC;AAChG,mDAAmD5B,2BAAwC;AAC3F,+CAA+C8B,wBAAqC;AACpF,iDAAiD7B,yBAAsC;AACvF,uDAAuDC,8BAA2C;AAClG","names":["_sferadev_openapi_utils_effect.EffectApi","__components.getAccountsResource","__components.postAccountsResource","__components.deleteAccountsResource","__components.postAccountEmailChangeResource","__components.postAccountEmailVerifyResource","__components.getAccountIntegrationsResource","__components.deleteAccountIntegrationsResource","__components.postAccountOtpResource","__components.putAccountOtpResource","__components.deleteAccountOtpResource","__components.postAccountPasswordResetResource","__components.getAccountSettingResource","__components.putAccountSettingResource","__components.deleteAccountSettingResource","__components.getAccountSubsResource","__components.putAccountSubsResource","__components.getAccountSubResource","__components.postAccountSubResource","__components.deleteAccountSubResource","__components.getAccountUsersResource","__components.putAccountUsersResource","__components.getAccountUserResource","__components.postAccountUserResource","__components.deleteAccountUserResource","__components.getAddressesResource","__components.putAddressesResource","__components.postAddressResource","__components.deleteAddressResource","__components.getAddressUnitsResource","__components.putAddressUnitsResource","__components.deleteAddressUnitsResource","__components.deleteAddressUnitResource","__components.getAddressTokenResource","__components.getAddressTokenRedeemResource","__components.postAddressTokenRedeemResource","__components.getAddressTokensResource","__components.getAddressReservationsResource","__components.postAddressReservationIssueResource","__components.postAddressReservationRevokeResource","__components.postReservationAccessTimesUpdateResource","__components.getDecentralWebhooksResource","__components.putDecentralWebhooksResource","__components.deleteDecentralWebhookResource","__components.getWebhookLogsResource","__components.putSmartlockAuthsAdvancedResource","__components.postSmartlockActionAdvancedResource","__components.postSmartlockLockActionAdvancedResource","__components.postSmartlockUnlockActionAdvancedResource","__components.getApiKeysResource","__components.putApiKeysResource","__components.postApiKeyResource","__components.deleteApiKeyResource","__components.getApiKeyAdvancedResource","__components.postApiKeyAdvancedResource","__components.putApiKeyAdvancedResource","__components.deleteApiKeyAdvancedResource","__components.postApiKeyAdvancedReactivateResource","__components.getApiKeyTokensResource","__components.putApiKeyTokensResource","__components.postApiKeyTokenResource","__components.deleteApiKeyTokenResource","__components.postSmartlockBulkWebConfigResource","__components.getSmartlocksResource","__components.getSmartlockResource","__components.postSmartlockResource","__components.deleteSmartlockResource","__components.postSmartlockActionResource","__components.postSmartlockLockActionResource","__components.postSmartlockUnlockActionResource","__components.postSmartlockAdminPinResource","__components.postSmartlockAdvancedConfigResource","__components.postSmartlockOpenerAdvancedConfigResource","__components.postSmartdoorAdvancedConfigResource","__components.postSmartlockConfigResource","__components.postSmartlockSyncResource","__components.postSmartlockWebConfigResource","__components.getCompaniesResource","__components.getNotificationsResource","__components.putNotificationsResource","__components.getNotificationResource","__components.postNotificationResource","__components.deleteNotificationResource","__components.getOpenerBrandsResource","__components.getOpenerBrandResource","__components.getOpenerIntercomsResource","__components.getOpenerIntercomResource","__components.getServicesResource","__components.getServiceResource","__components.postServiceLinkResource","__components.postServiceSyncResource","__components.postServiceUnlinkResource","__components.getSmartlocksAuthsResource","__components.postSmartlocksAuthsResource","__components.putSmartlocksAuthsResource","__components.deleteSmartlocksAuthsResource","__components.getSmartlocksAuthsPaginatedResource","__components.getSmartlockAuthsResource","__components.putSmartlockAuthsResource","__components.postSmartlockAuthWithSharedKeyResource","__components.getSmartlockAuthResource","__components.postSmartlockAuthResource","__components.deleteSmartlockAuthResource","__components.getSmartlocksLogsResource","__components.getSmartlockLogsResource","_sferadev_openapi_utils_effect.EffectByPath"]}
package/dist/effect.d.mts CHANGED
@@ -1,8 +1,77 @@
1
- import * as _sferadev_openapi_utils_effect from '@sferadev/openapi-utils/effect';
2
- export { ApiConfig, ApiError, EffectApi, NetworkError, ValidationError, makeApiLayer } from '@sferadev/openapi-utils/effect';
1
+ import * as effect_Cause from 'effect/Cause';
2
+ import * as effect_Types from 'effect/Types';
3
+ import { Context, Effect, Layer } from 'effect';
3
4
  import { getAccountsResource, postAccountsResource, deleteAccountsResource, postAccountEmailChangeResource, postAccountEmailVerifyResource, getAccountIntegrationsResource, deleteAccountIntegrationsResource, postAccountOtpResource, putAccountOtpResource, deleteAccountOtpResource, postAccountPasswordResetResource, getAccountSettingResource, putAccountSettingResource, deleteAccountSettingResource, getAccountSubsResource, putAccountSubsResource, getAccountSubResource, postAccountSubResource, deleteAccountSubResource, getAccountUsersResource, putAccountUsersResource, getAccountUserResource, postAccountUserResource, deleteAccountUserResource, getAddressesResource, putAddressesResource, postAddressResource, deleteAddressResource, getAddressUnitsResource, putAddressUnitsResource, deleteAddressUnitsResource, deleteAddressUnitResource, getAddressTokenResource, getAddressTokenRedeemResource, postAddressTokenRedeemResource, getAddressTokensResource, getAddressReservationsResource, postAddressReservationIssueResource, postAddressReservationRevokeResource, postReservationAccessTimesUpdateResource, getDecentralWebhooksResource, putDecentralWebhooksResource, deleteDecentralWebhookResource, getWebhookLogsResource, putSmartlockAuthsAdvancedResource, postSmartlockActionAdvancedResource, postSmartlockLockActionAdvancedResource, postSmartlockUnlockActionAdvancedResource, getApiKeysResource, putApiKeysResource, postApiKeyResource, deleteApiKeyResource, getApiKeyAdvancedResource, postApiKeyAdvancedResource, putApiKeyAdvancedResource, deleteApiKeyAdvancedResource, postApiKeyAdvancedReactivateResource, getApiKeyTokensResource, putApiKeyTokensResource, postApiKeyTokenResource, deleteApiKeyTokenResource, postSmartlockBulkWebConfigResource, getSmartlocksResource, getSmartlockResource, postSmartlockResource, deleteSmartlockResource, postSmartlockActionResource, postSmartlockLockActionResource, postSmartlockUnlockActionResource, postSmartlockAdminPinResource, postSmartlockAdvancedConfigResource, postSmartlockOpenerAdvancedConfigResource, postSmartdoorAdvancedConfigResource, postSmartlockConfigResource, postSmartlockSyncResource, postSmartlockWebConfigResource, getCompaniesResource, getNotificationsResource, putNotificationsResource, getNotificationResource, postNotificationResource, deleteNotificationResource, getOpenerBrandsResource, getOpenerBrandResource, getOpenerIntercomsResource, getOpenerIntercomResource, getServicesResource, getServiceResource, postServiceLinkResource, postServiceSyncResource, postServiceUnlinkResource, getSmartlocksAuthsResource, postSmartlocksAuthsResource, putSmartlocksAuthsResource, deleteSmartlocksAuthsResource, getSmartlocksAuthsPaginatedResource, getSmartlockAuthsResource, putSmartlockAuthsResource, postSmartlockAuthWithSharedKeyResource, getSmartlockAuthResource, postSmartlockAuthResource, deleteSmartlockAuthResource, getSmartlocksLogsResource, getSmartlockLogsResource } from './components.mjs';
4
5
 
5
- declare const ApiService: _sferadev_openapi_utils_effect.EffectApi<{
6
+ declare const ValidationError_base: new <A extends Record<string, any> = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
7
+ readonly _tag: "ValidationError";
8
+ } & Readonly<A>;
9
+ /**
10
+ * Validation error for client-side input validation failures.
11
+ * Use this for missing required parameters or invalid input formats.
12
+ */
13
+ declare class ValidationError extends ValidationError_base<{
14
+ readonly field: string;
15
+ readonly reason: string;
16
+ }> {
17
+ get message(): string;
18
+ }
19
+ declare const ApiError_base: new <A extends Record<string, any> = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
20
+ readonly _tag: "ApiError";
21
+ } & Readonly<A>;
22
+ /**
23
+ * API error with status code and error payload.
24
+ * Uses Effect's Data.TaggedError for pattern matching support.
25
+ */
26
+ declare class ApiError extends ApiError_base<{
27
+ readonly status: number;
28
+ readonly error: unknown;
29
+ }> {
30
+ get message(): string;
31
+ }
32
+ declare const NetworkError_base: new <A extends Record<string, any> = {}>(args: effect_Types.VoidIfEmpty<{ readonly [P in keyof A as P extends "_tag" ? never : P]: A[P]; }>) => effect_Cause.YieldableError & {
33
+ readonly _tag: "NetworkError";
34
+ } & Readonly<A>;
35
+ /**
36
+ * Network error for fetch failures (timeouts, DNS errors, etc).
37
+ */
38
+ declare class NetworkError extends NetworkError_base<{
39
+ readonly cause: unknown;
40
+ }> {
41
+ get message(): string;
42
+ }
43
+ /**
44
+ * Effect service key for API configuration.
45
+ * Used by the proxy-based Effect API to inject config into operations.
46
+ */
47
+ type ApiConfigShape = {
48
+ token?: string;
49
+ baseUrl?: string;
50
+ fetchImpl?: (url: string, init?: any) => Promise<any>;
51
+ headers?: Record<string, string>;
52
+ };
53
+ declare const ApiConfig_base: Context.ServiceClass<ApiConfig, "ApiConfig", ApiConfigShape>;
54
+ declare class ApiConfig extends ApiConfig_base {
55
+ }
56
+ /**
57
+ * Create a Layer providing ApiConfig values.
58
+ */
59
+ declare const makeApiLayer: (config: ApiConfigShape) => Layer.Layer<ApiConfig>;
60
+
61
+ type RequiredKeys<T> = {
62
+ [K in keyof T]-?: {} extends Pick<T, K> ? never : K;
63
+ }[keyof T];
64
+ type EffectOperation<Op> = Op extends (params: infer P) => Promise<infer R> ? Omit<NonNullable<P>, "config"> extends infer Params ? [RequiredKeys<Params>] extends [never] ? (params?: Params) => Effect.Effect<R, ApiError | ValidationError | NetworkError, ApiConfig> : (params: Params) => Effect.Effect<R, ApiError | ValidationError | NetworkError, ApiConfig> : never : never;
65
+ type EffectApi<Tags extends Record<string, Record<string, (...args: any[]) => any>>> = {
66
+ [Tag in keyof Tags]: {
67
+ [Op in keyof Tags[Tag]]: EffectOperation<Tags[Tag][Op]>;
68
+ };
69
+ };
70
+ type EffectByPath<Paths extends Record<string, (...args: any[]) => any>> = {
71
+ [K in keyof Paths]: EffectOperation<Paths[K]>;
72
+ };
73
+
74
+ declare const ApiService: EffectApi<{
6
75
  account: {
7
76
  getAccountsResource: typeof getAccountsResource;
8
77
  postAccountsResource: typeof postAccountsResource;
@@ -136,7 +205,7 @@ declare const ApiService: _sferadev_openapi_utils_effect.EffectApi<{
136
205
  getSmartlockLogsResource: typeof getSmartlockLogsResource;
137
206
  };
138
207
  }>;
139
- declare const effectByPath: _sferadev_openapi_utils_effect.EffectByPath<{
208
+ declare const effectByPath: EffectByPath<{
140
209
  "GET /account": typeof getAccountsResource;
141
210
  "POST /account": typeof postAccountsResource;
142
211
  "DELETE /account": typeof deleteAccountsResource;
@@ -243,5 +312,6 @@ declare const effectByPath: _sferadev_openapi_utils_effect.EffectByPath<{
243
312
  "POST /smartlock/{smartlockId}/web/config": typeof postSmartlockWebConfigResource;
244
313
  }>;
245
314
 
246
- export { ApiService, effectByPath };
315
+ export { ApiConfig, ApiError, ApiService, NetworkError, ValidationError, effectByPath, makeApiLayer };
316
+ export type { EffectApi };
247
317
  //# sourceMappingURL=effect.d.mts.map