@seamapi/types 1.290.0 → 1.291.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.
@@ -140,4 +140,64 @@ export declare const acs_events: readonly [import("zod").ZodObject<import("zod")
140
140
  occurred_at: string;
141
141
  event_type: "acs_user.deleted";
142
142
  connected_account_id?: string | undefined;
143
+ }>, import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
144
+ event_id: import("zod").ZodString;
145
+ workspace_id: import("zod").ZodString;
146
+ created_at: import("zod").ZodString;
147
+ occurred_at: import("zod").ZodString;
148
+ }, {
149
+ connected_account_id: import("zod").ZodOptional<import("zod").ZodString>;
150
+ acs_system_id: import("zod").ZodString;
151
+ }>, {
152
+ acs_encoder_id: import("zod").ZodString;
153
+ }>, {
154
+ event_type: import("zod").ZodLiteral<"acs_encoder.added">;
155
+ }>, "strip", import("zod").ZodTypeAny, {
156
+ created_at: string;
157
+ workspace_id: string;
158
+ acs_system_id: string;
159
+ acs_encoder_id: string;
160
+ event_id: string;
161
+ occurred_at: string;
162
+ event_type: "acs_encoder.added";
163
+ connected_account_id?: string | undefined;
164
+ }, {
165
+ created_at: string;
166
+ workspace_id: string;
167
+ acs_system_id: string;
168
+ acs_encoder_id: string;
169
+ event_id: string;
170
+ occurred_at: string;
171
+ event_type: "acs_encoder.added";
172
+ connected_account_id?: string | undefined;
173
+ }>, import("zod").ZodObject<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<import("zod").objectUtil.extendShape<{
174
+ event_id: import("zod").ZodString;
175
+ workspace_id: import("zod").ZodString;
176
+ created_at: import("zod").ZodString;
177
+ occurred_at: import("zod").ZodString;
178
+ }, {
179
+ connected_account_id: import("zod").ZodOptional<import("zod").ZodString>;
180
+ acs_system_id: import("zod").ZodString;
181
+ }>, {
182
+ acs_encoder_id: import("zod").ZodString;
183
+ }>, {
184
+ event_type: import("zod").ZodLiteral<"acs_encoder.removed">;
185
+ }>, "strip", import("zod").ZodTypeAny, {
186
+ created_at: string;
187
+ workspace_id: string;
188
+ acs_system_id: string;
189
+ acs_encoder_id: string;
190
+ event_id: string;
191
+ occurred_at: string;
192
+ event_type: "acs_encoder.removed";
193
+ connected_account_id?: string | undefined;
194
+ }, {
195
+ created_at: string;
196
+ workspace_id: string;
197
+ acs_system_id: string;
198
+ acs_encoder_id: string;
199
+ event_id: string;
200
+ occurred_at: string;
201
+ event_type: "acs_encoder.removed";
202
+ connected_account_id?: string | undefined;
143
203
  }>];
@@ -1,9 +1,11 @@
1
1
  import { acs_credential_events } from './credentials.js';
2
+ import { acs_encoder_events } from './encoders.js';
2
3
  import { acs_system_events } from './systems.js';
3
4
  import { acs_user_events } from './users.js';
4
5
  export const acs_events = [
5
6
  ...acs_system_events,
6
7
  ...acs_credential_events,
7
8
  ...acs_user_events,
9
+ ...acs_encoder_events,
8
10
  ];
9
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/events/acs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAE5C,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,GAAG,iBAAiB;IACpB,GAAG,qBAAqB;IACxB,GAAG,eAAe;CACV,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/events/acs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,qBAAqB,EAAE,MAAM,kBAAkB,CAAA;AACxD,OAAO,EAAE,kBAAkB,EAAE,MAAM,eAAe,CAAA;AAClD,OAAO,EAAE,iBAAiB,EAAE,MAAM,cAAc,CAAA;AAChD,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAA;AAE5C,MAAM,CAAC,MAAM,UAAU,GAAG;IACxB,GAAG,iBAAiB;IACpB,GAAG,qBAAqB;IACxB,GAAG,eAAe;IAClB,GAAG,kBAAkB;CACb,CAAA"}
@@ -646,6 +646,66 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
646
646
  occurred_at: string;
647
647
  event_type: "acs_user.deleted";
648
648
  connected_account_id?: string | undefined;
649
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
650
+ event_id: z.ZodString;
651
+ workspace_id: z.ZodString;
652
+ created_at: z.ZodString;
653
+ occurred_at: z.ZodString;
654
+ }, {
655
+ connected_account_id: z.ZodOptional<z.ZodString>;
656
+ acs_system_id: z.ZodString;
657
+ }>, {
658
+ acs_encoder_id: z.ZodString;
659
+ }>, {
660
+ event_type: z.ZodLiteral<"acs_encoder.added">;
661
+ }>, "strip", z.ZodTypeAny, {
662
+ created_at: string;
663
+ workspace_id: string;
664
+ acs_system_id: string;
665
+ acs_encoder_id: string;
666
+ event_id: string;
667
+ occurred_at: string;
668
+ event_type: "acs_encoder.added";
669
+ connected_account_id?: string | undefined;
670
+ }, {
671
+ created_at: string;
672
+ workspace_id: string;
673
+ acs_system_id: string;
674
+ acs_encoder_id: string;
675
+ event_id: string;
676
+ occurred_at: string;
677
+ event_type: "acs_encoder.added";
678
+ connected_account_id?: string | undefined;
679
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
680
+ event_id: z.ZodString;
681
+ workspace_id: z.ZodString;
682
+ created_at: z.ZodString;
683
+ occurred_at: z.ZodString;
684
+ }, {
685
+ connected_account_id: z.ZodOptional<z.ZodString>;
686
+ acs_system_id: z.ZodString;
687
+ }>, {
688
+ acs_encoder_id: z.ZodString;
689
+ }>, {
690
+ event_type: z.ZodLiteral<"acs_encoder.removed">;
691
+ }>, "strip", z.ZodTypeAny, {
692
+ created_at: string;
693
+ workspace_id: string;
694
+ acs_system_id: string;
695
+ acs_encoder_id: string;
696
+ event_id: string;
697
+ occurred_at: string;
698
+ event_type: "acs_encoder.removed";
699
+ connected_account_id?: string | undefined;
700
+ }, {
701
+ created_at: string;
702
+ workspace_id: string;
703
+ acs_system_id: string;
704
+ acs_encoder_id: string;
705
+ event_id: string;
706
+ occurred_at: string;
707
+ event_type: "acs_encoder.removed";
708
+ connected_account_id?: string | undefined;
649
709
  }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
650
710
  event_id: z.ZodString;
651
711
  workspace_id: z.ZodString;
@@ -663,7 +663,7 @@ declare const _default: {
663
663
  description: string;
664
664
  items: {
665
665
  description: string;
666
- oneOf: ({
666
+ oneOf: {
667
667
  description: string;
668
668
  properties: {
669
669
  created_at: {
@@ -683,27 +683,7 @@ declare const _default: {
683
683
  };
684
684
  required: string[];
685
685
  type: string;
686
- } | {
687
- properties: {
688
- created_at: {
689
- description: string;
690
- format: string;
691
- type: string;
692
- };
693
- error_code: {
694
- description: string;
695
- enum: string[];
696
- type: string;
697
- };
698
- message: {
699
- description: string;
700
- type: string;
701
- };
702
- };
703
- required: string[];
704
- type: string;
705
- description?: never;
706
- })[];
686
+ }[];
707
687
  };
708
688
  type: string;
709
689
  };
@@ -649,6 +649,7 @@ export default {
649
649
  type: 'object',
650
650
  },
651
651
  {
652
+ description: 'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.',
652
653
  properties: {
653
654
  created_at: {
654
655
  description: 'Date and time at which Seam created the error.',
@@ -656,7 +657,7 @@ export default {
656
657
  type: 'string',
657
658
  },
658
659
  error_code: {
659
- description: 'Indicates that the maximum number of users allowed for the site has been reached. This means that new access codes cannot be created. Contact Salto support to increase the user limit.',
660
+ description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
660
661
  enum: ['salto_ks_subscription_limit_exceeded'],
661
662
  type: 'string',
662
663
  },
@@ -669,6 +670,7 @@ export default {
669
670
  type: 'object',
670
671
  },
671
672
  {
673
+ description: 'Indicates that the access system has been disconnected. See [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue.',
672
674
  properties: {
673
675
  created_at: {
674
676
  description: 'Date and time at which Seam created the error.',
@@ -676,7 +678,7 @@ export default {
676
678
  type: 'string',
677
679
  },
678
680
  error_code: {
679
- description: 'Indicates that the access system has been disconnected. Please refer to [this guide](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system guide) to resolve the issue.',
681
+ description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
680
682
  enum: ['acs_system_disconnected'],
681
683
  type: 'string',
682
684
  },
@@ -689,6 +691,7 @@ export default {
689
691
  type: 'object',
690
692
  },
691
693
  {
694
+ description: 'Indicates that the login credentials are invalid. Reconnect the account using the Connect Webview to restore access.',
692
695
  properties: {
693
696
  created_at: {
694
697
  description: 'Date and time at which Seam created the error.',
@@ -696,7 +699,7 @@ export default {
696
699
  type: 'string',
697
700
  },
698
701
  error_code: {
699
- description: 'Indicates that the login credentials are invalid. Please reconnect the account using the Connect Webview to restore access.',
702
+ description: 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
700
703
  enum: ['account_disconnected'],
701
704
  type: 'string',
702
705
  },
@@ -13340,6 +13343,8 @@ export default {
13340
13343
  'acs_user.deleted',
13341
13344
  'acs_credential.deleted',
13342
13345
  'acs_credential.issued',
13346
+ 'acs_encoder.added',
13347
+ 'acs_encoder.removed',
13343
13348
  'enrollment_automation.deleted',
13344
13349
  'client_session.deleted',
13345
13350
  'action_attempt.lock_door.succeeded',
@@ -13414,6 +13419,8 @@ export default {
13414
13419
  'acs_user.deleted',
13415
13420
  'acs_credential.deleted',
13416
13421
  'acs_credential.issued',
13422
+ 'acs_encoder.added',
13423
+ 'acs_encoder.removed',
13417
13424
  'enrollment_automation.deleted',
13418
13425
  'client_session.deleted',
13419
13426
  'action_attempt.lock_door.succeeded',