@seamapi/types 1.711.0 → 1.713.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.
@@ -31878,6 +31878,55 @@ export type Routes = {
31878
31878
  [x: string]: string | boolean;
31879
31879
  } | undefined;
31880
31880
  event_type: 'connected_account.disconnected';
31881
+ /** Errors associated with the connected account. */
31882
+ connected_account_errors: ({
31883
+ /** Date and time at which Seam created the error. */
31884
+ created_at: string;
31885
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
31886
+ message: string;
31887
+ /** Indicates whether the error is related specifically to the connected account. */
31888
+ is_connected_account_error?: boolean | undefined;
31889
+ /** Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge). */
31890
+ is_bridge_error?: boolean | undefined;
31891
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
31892
+ error_code: 'account_disconnected';
31893
+ } | {
31894
+ /** Date and time at which Seam created the error. */
31895
+ created_at: string;
31896
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
31897
+ message: string;
31898
+ /** Indicates whether the error is related specifically to the connected account. */
31899
+ is_connected_account_error?: boolean | undefined;
31900
+ /** Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge). */
31901
+ is_bridge_error?: boolean | undefined;
31902
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
31903
+ error_code: 'bridge_disconnected';
31904
+ } | {
31905
+ /** Date and time at which Seam created the error. */
31906
+ created_at: string;
31907
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
31908
+ message: string;
31909
+ /** Indicates whether the error is related specifically to the connected account. */
31910
+ is_connected_account_error?: boolean | undefined;
31911
+ /** Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge). */
31912
+ is_bridge_error?: boolean | undefined;
31913
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
31914
+ error_code: 'salto_ks_subscription_limit_exceeded';
31915
+ /** Salto KS metadata associated with the connected account that has an error. */
31916
+ salto_ks_metadata: {
31917
+ /** Salto sites associated with the connected account that has an error. */
31918
+ sites: {
31919
+ /** ID of a Salto site associated with the connected account that has an error. */
31920
+ site_id: string;
31921
+ /** Name of a Salto site associated with the connected account that has an error. */
31922
+ site_name: string;
31923
+ /** Count of subscribed site users for a Salto site associated with the connected account that has an error. */
31924
+ subscribed_site_user_count: number;
31925
+ /** Subscription limit of site users for a Salto site associated with the connected account that has an error. */
31926
+ site_user_subscription_limit: number;
31927
+ }[];
31928
+ };
31929
+ })[];
31881
31930
  } | {
31882
31931
  /** ID of the event. */
31883
31932
  event_id: string;
@@ -33946,6 +33995,55 @@ export type Routes = {
33946
33995
  [x: string]: string | boolean;
33947
33996
  } | undefined;
33948
33997
  event_type: 'connected_account.disconnected';
33998
+ /** Errors associated with the connected account. */
33999
+ connected_account_errors: ({
34000
+ /** Date and time at which Seam created the error. */
34001
+ created_at: string;
34002
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
34003
+ message: string;
34004
+ /** Indicates whether the error is related specifically to the connected account. */
34005
+ is_connected_account_error?: boolean | undefined;
34006
+ /** Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge). */
34007
+ is_bridge_error?: boolean | undefined;
34008
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
34009
+ error_code: 'account_disconnected';
34010
+ } | {
34011
+ /** Date and time at which Seam created the error. */
34012
+ created_at: string;
34013
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
34014
+ message: string;
34015
+ /** Indicates whether the error is related specifically to the connected account. */
34016
+ is_connected_account_error?: boolean | undefined;
34017
+ /** Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge). */
34018
+ is_bridge_error?: boolean | undefined;
34019
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
34020
+ error_code: 'bridge_disconnected';
34021
+ } | {
34022
+ /** Date and time at which Seam created the error. */
34023
+ created_at: string;
34024
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
34025
+ message: string;
34026
+ /** Indicates whether the error is related specifically to the connected account. */
34027
+ is_connected_account_error?: boolean | undefined;
34028
+ /** Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge). */
34029
+ is_bridge_error?: boolean | undefined;
34030
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
34031
+ error_code: 'salto_ks_subscription_limit_exceeded';
34032
+ /** Salto KS metadata associated with the connected account that has an error. */
34033
+ salto_ks_metadata: {
34034
+ /** Salto sites associated with the connected account that has an error. */
34035
+ sites: {
34036
+ /** ID of a Salto site associated with the connected account that has an error. */
34037
+ site_id: string;
34038
+ /** Name of a Salto site associated with the connected account that has an error. */
34039
+ site_name: string;
34040
+ /** Count of subscribed site users for a Salto site associated with the connected account that has an error. */
34041
+ subscribed_site_user_count: number;
34042
+ /** Subscription limit of site users for a Salto site associated with the connected account that has an error. */
34043
+ site_user_subscription_limit: number;
34044
+ }[];
34045
+ };
34046
+ })[];
33949
34047
  } | {
33950
34048
  /** ID of the event. */
33951
34049
  event_id: string;
@@ -52984,11 +53082,9 @@ export type Routes = {
52984
53082
  /** ID of the connector to sync */
52985
53083
  connector_id: string;
52986
53084
  /** Type of the connector to sync */
52987
- connector_type?: string | undefined;
52988
- /** ID of the customer to sync */
52989
- customer_id?: string | undefined;
53085
+ connector_type: string;
52990
53086
  /** Key of the customer to sync */
52991
- customer_key?: string | undefined;
53087
+ customer_key: string;
52992
53088
  /** ID of the connector customer to sync */
52993
53089
  connector_customer_id?: (string | null) | undefined;
52994
53090
  /** Unique provider resource key of the connector to sync */
@@ -54054,6 +54150,55 @@ export type Routes = {
54054
54150
  [x: string]: string | boolean;
54055
54151
  } | undefined;
54056
54152
  event_type: 'connected_account.disconnected';
54153
+ /** Errors associated with the connected account. */
54154
+ connected_account_errors: ({
54155
+ /** Date and time at which Seam created the error. */
54156
+ created_at: string;
54157
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
54158
+ message: string;
54159
+ /** Indicates whether the error is related specifically to the connected account. */
54160
+ is_connected_account_error?: boolean | undefined;
54161
+ /** Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge). */
54162
+ is_bridge_error?: boolean | undefined;
54163
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
54164
+ error_code: 'account_disconnected';
54165
+ } | {
54166
+ /** Date and time at which Seam created the error. */
54167
+ created_at: string;
54168
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
54169
+ message: string;
54170
+ /** Indicates whether the error is related specifically to the connected account. */
54171
+ is_connected_account_error?: boolean | undefined;
54172
+ /** Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge). */
54173
+ is_bridge_error?: boolean | undefined;
54174
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
54175
+ error_code: 'bridge_disconnected';
54176
+ } | {
54177
+ /** Date and time at which Seam created the error. */
54178
+ created_at: string;
54179
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
54180
+ message: string;
54181
+ /** Indicates whether the error is related specifically to the connected account. */
54182
+ is_connected_account_error?: boolean | undefined;
54183
+ /** Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge). */
54184
+ is_bridge_error?: boolean | undefined;
54185
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
54186
+ error_code: 'salto_ks_subscription_limit_exceeded';
54187
+ /** Salto KS metadata associated with the connected account that has an error. */
54188
+ salto_ks_metadata: {
54189
+ /** Salto sites associated with the connected account that has an error. */
54190
+ sites: {
54191
+ /** ID of a Salto site associated with the connected account that has an error. */
54192
+ site_id: string;
54193
+ /** Name of a Salto site associated with the connected account that has an error. */
54194
+ site_name: string;
54195
+ /** Count of subscribed site users for a Salto site associated with the connected account that has an error. */
54196
+ subscribed_site_user_count: number;
54197
+ /** Subscription limit of site users for a Salto site associated with the connected account that has an error. */
54198
+ site_user_subscription_limit: number;
54199
+ }[];
54200
+ };
54201
+ })[];
54057
54202
  } | {
54058
54203
  /** ID of the event. */
54059
54204
  event_id: string;
@@ -83291,6 +83436,55 @@ export type Routes = {
83291
83436
  [x: string]: string | boolean;
83292
83437
  } | undefined;
83293
83438
  event_type: 'connected_account.disconnected';
83439
+ /** Errors associated with the connected account. */
83440
+ connected_account_errors: ({
83441
+ /** Date and time at which Seam created the error. */
83442
+ created_at: string;
83443
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
83444
+ message: string;
83445
+ /** Indicates whether the error is related specifically to the connected account. */
83446
+ is_connected_account_error?: boolean | undefined;
83447
+ /** Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge). */
83448
+ is_bridge_error?: boolean | undefined;
83449
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
83450
+ error_code: 'account_disconnected';
83451
+ } | {
83452
+ /** Date and time at which Seam created the error. */
83453
+ created_at: string;
83454
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
83455
+ message: string;
83456
+ /** Indicates whether the error is related specifically to the connected account. */
83457
+ is_connected_account_error?: boolean | undefined;
83458
+ /** Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge). */
83459
+ is_bridge_error?: boolean | undefined;
83460
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
83461
+ error_code: 'bridge_disconnected';
83462
+ } | {
83463
+ /** Date and time at which Seam created the error. */
83464
+ created_at: string;
83465
+ /** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
83466
+ message: string;
83467
+ /** Indicates whether the error is related specifically to the connected account. */
83468
+ is_connected_account_error?: boolean | undefined;
83469
+ /** Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge). */
83470
+ is_bridge_error?: boolean | undefined;
83471
+ /** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
83472
+ error_code: 'salto_ks_subscription_limit_exceeded';
83473
+ /** Salto KS metadata associated with the connected account that has an error. */
83474
+ salto_ks_metadata: {
83475
+ /** Salto sites associated with the connected account that has an error. */
83476
+ sites: {
83477
+ /** ID of a Salto site associated with the connected account that has an error. */
83478
+ site_id: string;
83479
+ /** Name of a Salto site associated with the connected account that has an error. */
83480
+ site_name: string;
83481
+ /** Count of subscribed site users for a Salto site associated with the connected account that has an error. */
83482
+ subscribed_site_user_count: number;
83483
+ /** Subscription limit of site users for a Salto site associated with the connected account that has an error. */
83484
+ site_user_subscription_limit: number;
83485
+ }[];
83486
+ };
83487
+ })[];
83294
83488
  } | {
83295
83489
  /** ID of the event. */
83296
83490
  event_id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.711.0",
3
+ "version": "1.713.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1,5 +1,6 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ import { connected_account_error } from '../connected-accounts/index.js'
3
4
  import { custom_metadata } from '../custom-metadata.js'
4
5
  import { common_event } from './common.js'
5
6
 
@@ -80,6 +81,9 @@ export type ConnectedAccountSuccessfulLoginEvent = z.infer<
80
81
  export const connected_account_disconnected_event =
81
82
  connected_account_event.extend({
82
83
  event_type: z.literal('connected_account.disconnected'),
84
+ connected_account_errors: z
85
+ .array(connected_account_error)
86
+ .describe('Errors associated with the connected account.'),
83
87
  }).describe(`
84
88
  ---
85
89
  route_path: /connected_accounts
@@ -16612,6 +16612,173 @@ export default {
16612
16612
  'Custom metadata of the connected account, present when connected_account_id is provided.',
16613
16613
  type: 'object',
16614
16614
  },
16615
+ connected_account_errors: {
16616
+ description: 'Errors associated with the connected account.',
16617
+ items: {
16618
+ discriminator: { propertyName: 'error_code' },
16619
+ oneOf: [
16620
+ {
16621
+ description:
16622
+ 'Indicates that the account is disconnected.',
16623
+ properties: {
16624
+ created_at: {
16625
+ description:
16626
+ 'Date and time at which Seam created the error.',
16627
+ format: 'date-time',
16628
+ type: 'string',
16629
+ },
16630
+ error_code: {
16631
+ description:
16632
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
16633
+ enum: ['account_disconnected'],
16634
+ type: 'string',
16635
+ },
16636
+ is_bridge_error: {
16637
+ description:
16638
+ 'Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge).',
16639
+ type: 'boolean',
16640
+ },
16641
+ is_connected_account_error: {
16642
+ description:
16643
+ 'Indicates whether the error is related specifically to the connected account.',
16644
+ type: 'boolean',
16645
+ },
16646
+ message: {
16647
+ description:
16648
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
16649
+ type: 'string',
16650
+ },
16651
+ },
16652
+ required: ['created_at', 'message', 'error_code'],
16653
+ type: 'object',
16654
+ },
16655
+ {
16656
+ description:
16657
+ 'Indicates that the Seam API cannot communicate with [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge), for example, if the Seam Bridge executable has stopped or if the computer running the Seam Bridge executable is offline. See also [Troubleshooting Your Access Control System](https://docs.seam.co/latest/capability-guides/access-systems/troubleshooting-your-access-control-system#acs_system.errors.seam_bridge_disconnected).',
16658
+ properties: {
16659
+ created_at: {
16660
+ description:
16661
+ 'Date and time at which Seam created the error.',
16662
+ format: 'date-time',
16663
+ type: 'string',
16664
+ },
16665
+ error_code: {
16666
+ description:
16667
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
16668
+ enum: ['bridge_disconnected'],
16669
+ type: 'string',
16670
+ },
16671
+ is_bridge_error: {
16672
+ description:
16673
+ 'Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge).',
16674
+ type: 'boolean',
16675
+ },
16676
+ is_connected_account_error: {
16677
+ description:
16678
+ 'Indicates whether the error is related specifically to the connected account.',
16679
+ type: 'boolean',
16680
+ },
16681
+ message: {
16682
+ description:
16683
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
16684
+ type: 'string',
16685
+ },
16686
+ },
16687
+ required: ['created_at', 'message', 'error_code'],
16688
+ type: 'object',
16689
+ },
16690
+ {
16691
+ description:
16692
+ '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.',
16693
+ properties: {
16694
+ created_at: {
16695
+ description:
16696
+ 'Date and time at which Seam created the error.',
16697
+ format: 'date-time',
16698
+ type: 'string',
16699
+ },
16700
+ error_code: {
16701
+ description:
16702
+ 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
16703
+ enum: ['salto_ks_subscription_limit_exceeded'],
16704
+ type: 'string',
16705
+ },
16706
+ is_bridge_error: {
16707
+ description:
16708
+ 'Indicates whether the error is related to [Seam Bridge](https://docs.seam.co/latest/capability-guides/seam-bridge).',
16709
+ type: 'boolean',
16710
+ },
16711
+ is_connected_account_error: {
16712
+ description:
16713
+ 'Indicates whether the error is related specifically to the connected account.',
16714
+ type: 'boolean',
16715
+ },
16716
+ message: {
16717
+ description:
16718
+ 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
16719
+ type: 'string',
16720
+ },
16721
+ salto_ks_metadata: {
16722
+ description:
16723
+ 'Salto KS metadata associated with the connected account that has an error.',
16724
+ properties: {
16725
+ sites: {
16726
+ description:
16727
+ 'Salto sites associated with the connected account that has an error.',
16728
+ items: {
16729
+ description:
16730
+ 'Salto site associated with the connected account that has an error.',
16731
+ properties: {
16732
+ site_id: {
16733
+ description:
16734
+ 'ID of a Salto site associated with the connected account that has an error.',
16735
+ type: 'string',
16736
+ },
16737
+ site_name: {
16738
+ description:
16739
+ 'Name of a Salto site associated with the connected account that has an error.',
16740
+ type: 'string',
16741
+ },
16742
+ site_user_subscription_limit: {
16743
+ description:
16744
+ 'Subscription limit of site users for a Salto site associated with the connected account that has an error.',
16745
+ minimum: 0,
16746
+ type: 'integer',
16747
+ },
16748
+ subscribed_site_user_count: {
16749
+ description:
16750
+ 'Count of subscribed site users for a Salto site associated with the connected account that has an error.',
16751
+ minimum: 0,
16752
+ type: 'integer',
16753
+ },
16754
+ },
16755
+ required: [
16756
+ 'site_id',
16757
+ 'site_name',
16758
+ 'subscribed_site_user_count',
16759
+ 'site_user_subscription_limit',
16760
+ ],
16761
+ type: 'object',
16762
+ },
16763
+ type: 'array',
16764
+ },
16765
+ },
16766
+ required: ['sites'],
16767
+ type: 'object',
16768
+ },
16769
+ },
16770
+ required: [
16771
+ 'created_at',
16772
+ 'message',
16773
+ 'error_code',
16774
+ 'salto_ks_metadata',
16775
+ ],
16776
+ type: 'object',
16777
+ },
16778
+ ],
16779
+ },
16780
+ type: 'array',
16781
+ },
16615
16782
  connected_account_id: {
16616
16783
  description:
16617
16784
  'ID of the affected [connected account](https://docs.seam.co/latest/core-concepts/connected-accounts).',
@@ -16651,6 +16818,7 @@ export default {
16651
16818
  'occurred_at',
16652
16819
  'connected_account_id',
16653
16820
  'event_type',
16821
+ 'connected_account_errors',
16654
16822
  ],
16655
16823
  type: 'object',
16656
16824
  'x-route-path': '/connected_accounts',
@@ -55213,10 +55381,6 @@ export default {
55213
55381
  description: 'Type of the connector to sync',
55214
55382
  type: 'string',
55215
55383
  },
55216
- customer_id: {
55217
- description: 'ID of the customer to sync',
55218
- type: 'string',
55219
- },
55220
55384
  customer_key: {
55221
55385
  description: 'Key of the customer to sync',
55222
55386
  type: 'string',
@@ -55228,7 +55392,7 @@ export default {
55228
55392
  type: 'string',
55229
55393
  },
55230
55394
  },
55231
- required: ['connector_id'],
55395
+ required: ['connector_id', 'connector_type', 'customer_key'],
55232
55396
  type: 'object',
55233
55397
  },
55234
55398
  },