@seamapi/types 1.1119.0 → 1.1121.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.
@@ -2002,15 +2002,20 @@ const openapi = {
2002
2002
  type: 'object',
2003
2003
  },
2004
2004
  {
2005
- description: 'Indicates that the requested PIN code was already in use on a device, so a different code was assigned.',
2005
+ description: 'Indicates that the requested PIN code could not be used, so a different code was assigned. For example, the code was already in use on a device, or the access system rejected it because it did not meet its PIN rules.',
2006
2006
  properties: {
2007
+ access_method_id: {
2008
+ description: 'ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code.',
2009
+ format: 'uuid',
2010
+ type: 'string',
2011
+ },
2007
2012
  created_at: {
2008
2013
  description: 'Date and time at which Seam created the warning.',
2009
2014
  format: 'date-time',
2010
2015
  type: 'string',
2011
2016
  },
2012
2017
  device_id: {
2013
- description: 'ID of the device where the requested code was unavailable.',
2018
+ description: 'ID of the device where the requested code was unavailable. Present when the code was set directly on a device.',
2014
2019
  format: 'uuid',
2015
2020
  type: 'string',
2016
2021
  },
@@ -2036,7 +2041,6 @@ const openapi = {
2036
2041
  'created_at',
2037
2042
  'message',
2038
2043
  'warning_code',
2039
- 'device_id',
2040
2044
  'original_code',
2041
2045
  'new_code',
2042
2046
  ],
@@ -2605,6 +2609,41 @@ const openapi = {
2605
2609
  required: ['created_at', 'message', 'warning_code'],
2606
2610
  type: 'object',
2607
2611
  },
2612
+ {
2613
+ description: "Indicates that the access system could not use the PIN code requested for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), for example because it did not meet the access system's PIN rules, so the access system assigned a different code. Give the recipient the assigned code.",
2614
+ properties: {
2615
+ created_at: {
2616
+ description: 'Date and time at which Seam created the warning.',
2617
+ format: 'date-time',
2618
+ type: 'string',
2619
+ },
2620
+ message: {
2621
+ description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
2622
+ type: 'string',
2623
+ },
2624
+ new_code: {
2625
+ description: 'The PIN code that was assigned instead.',
2626
+ type: 'string',
2627
+ },
2628
+ original_code: {
2629
+ description: 'The originally requested PIN code that could not be used.',
2630
+ type: 'string',
2631
+ },
2632
+ warning_code: {
2633
+ description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
2634
+ enum: ['requested_code_unavailable'],
2635
+ type: 'string',
2636
+ },
2637
+ },
2638
+ required: [
2639
+ 'created_at',
2640
+ 'message',
2641
+ 'warning_code',
2642
+ 'original_code',
2643
+ 'new_code',
2644
+ ],
2645
+ type: 'object',
2646
+ },
2608
2647
  ],
2609
2648
  },
2610
2649
  type: 'array',
@@ -9178,6 +9217,41 @@ const openapi = {
9178
9217
  required: ['created_at', 'message', 'warning_code'],
9179
9218
  type: 'object',
9180
9219
  },
9220
+ {
9221
+ description: "Indicates that the access system could not use the PIN code requested for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), for example because it did not meet the access system's PIN rules, so the access system assigned a different code. Give the recipient the assigned code.",
9222
+ properties: {
9223
+ created_at: {
9224
+ description: 'Date and time at which Seam created the warning.',
9225
+ format: 'date-time',
9226
+ type: 'string',
9227
+ },
9228
+ message: {
9229
+ description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
9230
+ type: 'string',
9231
+ },
9232
+ new_code: {
9233
+ description: 'The PIN code that was assigned instead.',
9234
+ type: 'string',
9235
+ },
9236
+ original_code: {
9237
+ description: 'The originally requested PIN code that could not be used.',
9238
+ type: 'string',
9239
+ },
9240
+ warning_code: {
9241
+ description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
9242
+ enum: ['requested_code_unavailable'],
9243
+ type: 'string',
9244
+ },
9245
+ },
9246
+ required: [
9247
+ 'created_at',
9248
+ 'message',
9249
+ 'warning_code',
9250
+ 'original_code',
9251
+ 'new_code',
9252
+ ],
9253
+ type: 'object',
9254
+ },
9181
9255
  ],
9182
9256
  },
9183
9257
  type: 'array',
@@ -32978,15 +33052,20 @@ const openapi = {
32978
33052
  type: 'object',
32979
33053
  },
32980
33054
  {
32981
- description: 'Indicates that the requested PIN code was already in use on a device, so a different code was assigned.',
33055
+ description: 'Indicates that the requested PIN code could not be used, so a different code was assigned. For example, the code was already in use on a device, or the access system rejected it because it did not meet its PIN rules.',
32982
33056
  properties: {
33057
+ access_method_id: {
33058
+ description: 'ID of the access method whose requested code was unavailable. Present when an access system, such as Salto KS, assigned a different code.',
33059
+ format: 'uuid',
33060
+ type: 'string',
33061
+ },
32983
33062
  created_at: {
32984
33063
  description: 'Date and time at which Seam created the warning.',
32985
33064
  format: 'date-time',
32986
33065
  type: 'string',
32987
33066
  },
32988
33067
  device_id: {
32989
- description: 'ID of the device where the requested code was unavailable.',
33068
+ description: 'ID of the device where the requested code was unavailable. Present when the code was set directly on a device.',
32990
33069
  format: 'uuid',
32991
33070
  type: 'string',
32992
33071
  },
@@ -33012,7 +33091,6 @@ const openapi = {
33012
33091
  'created_at',
33013
33092
  'message',
33014
33093
  'warning_code',
33015
- 'device_id',
33016
33094
  'original_code',
33017
33095
  'new_code',
33018
33096
  ],
@@ -33565,6 +33643,41 @@ const openapi = {
33565
33643
  required: ['created_at', 'message', 'warning_code'],
33566
33644
  type: 'object',
33567
33645
  },
33646
+ {
33647
+ description: "Indicates that the access system could not use the PIN code requested for this [access method](https://www.seam.co/docs/use-cases/granting-access/creating-an-access-grant), for example because it did not meet the access system's PIN rules, so the access system assigned a different code. Give the recipient the assigned code.",
33648
+ properties: {
33649
+ created_at: {
33650
+ description: 'Date and time at which Seam created the warning.',
33651
+ format: 'date-time',
33652
+ type: 'string',
33653
+ },
33654
+ message: {
33655
+ description: 'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
33656
+ type: 'string',
33657
+ },
33658
+ new_code: {
33659
+ description: 'The PIN code that was assigned instead.',
33660
+ type: 'string',
33661
+ },
33662
+ original_code: {
33663
+ description: 'The originally requested PIN code that could not be used.',
33664
+ type: 'string',
33665
+ },
33666
+ warning_code: {
33667
+ description: 'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
33668
+ enum: ['requested_code_unavailable'],
33669
+ type: 'string',
33670
+ },
33671
+ },
33672
+ required: [
33673
+ 'created_at',
33674
+ 'message',
33675
+ 'warning_code',
33676
+ 'original_code',
33677
+ 'new_code',
33678
+ ],
33679
+ type: 'object',
33680
+ },
33568
33681
  ],
33569
33682
  },
33570
33683
  type: 'array',
@@ -57928,6 +58041,88 @@ const openapi = {
57928
58041
  'x-undocumented': 'Internal endpoint for customer portals.',
57929
58042
  },
57930
58043
  },
58044
+ '/seam/customer/v1/automations/get_guest_phone_last4_usage': {
58045
+ get: {
58046
+ description: 'Lists the automations in the workspace, workspace-level and per-customer, that still use the deprecated prefer_guest_phone_last4_as_code setting.',
58047
+ operationId: 'seamCustomerV1AutomationsGetGuestPhoneLast4UsageGet',
58048
+ parameters: [],
58049
+ responses: {
58050
+ '200': {
58051
+ content: {
58052
+ 'application/json': {
58053
+ schema: {
58054
+ properties: {
58055
+ customer_count: {
58056
+ description: 'Number of customers whose automation uses prefer_guest_phone_last4_as_code.',
58057
+ type: 'integer',
58058
+ },
58059
+ is_used_by_workspace: {
58060
+ description: 'Whether the workspace-level automation uses prefer_guest_phone_last4_as_code.',
58061
+ type: 'boolean',
58062
+ },
58063
+ ok: { type: 'boolean' },
58064
+ },
58065
+ required: ['is_used_by_workspace', 'customer_count', 'ok'],
58066
+ type: 'object',
58067
+ },
58068
+ },
58069
+ },
58070
+ description: 'OK',
58071
+ },
58072
+ '400': { description: 'Bad Request' },
58073
+ '401': { description: 'Unauthorized' },
58074
+ },
58075
+ security: [{ console_session_with_workspace: [] }, { api_key: [] }],
58076
+ summary: '/seam/customer/v1/automations/get_guest_phone_last4_usage',
58077
+ tags: [],
58078
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'automations'],
58079
+ 'x-fern-sdk-method-name': 'get_guest_phone_last4_usage',
58080
+ 'x-response-key': null,
58081
+ 'x-title': 'Get Guest Phone Last 4 Usage',
58082
+ 'x-undocumented': 'Internal endpoint for the console.',
58083
+ },
58084
+ },
58085
+ '/seam/customer/v1/automations/switch_to_guest_phone_last_digits': {
58086
+ post: {
58087
+ description: 'Switches every automation in the workspace, workspace-level and per-customer, from the deprecated prefer_guest_phone_last4_as_code setting to prefer_guest_phone_last_digits_as_code.',
58088
+ operationId: 'seamCustomerV1AutomationsSwitchToGuestPhoneLastDigitsPost',
58089
+ requestBody: {
58090
+ content: {
58091
+ 'application/json': { schema: { properties: {}, type: 'object' } },
58092
+ },
58093
+ },
58094
+ responses: {
58095
+ '200': {
58096
+ content: {
58097
+ 'application/json': {
58098
+ schema: {
58099
+ properties: {
58100
+ ok: { type: 'boolean' },
58101
+ switched_count: {
58102
+ description: 'Number of automations that were switched.',
58103
+ type: 'integer',
58104
+ },
58105
+ },
58106
+ required: ['switched_count', 'ok'],
58107
+ type: 'object',
58108
+ },
58109
+ },
58110
+ },
58111
+ description: 'OK',
58112
+ },
58113
+ '400': { description: 'Bad Request' },
58114
+ '401': { description: 'Unauthorized' },
58115
+ },
58116
+ security: [{ console_session_with_workspace: [] }, { api_key: [] }],
58117
+ summary: '/seam/customer/v1/automations/switch_to_guest_phone_last_digits',
58118
+ tags: [],
58119
+ 'x-fern-sdk-group-name': ['seam', 'customer', 'v1', 'automations'],
58120
+ 'x-fern-sdk-method-name': 'switch_to_guest_phone_last_digits',
58121
+ 'x-response-key': null,
58122
+ 'x-title': 'Switch to Guest Phone Last Digits',
58123
+ 'x-undocumented': 'Internal endpoint for the console.',
58124
+ },
58125
+ },
57931
58126
  '/seam/customer/v1/automations/update': {
57932
58127
  patch: {
57933
58128
  description: 'Updates the automation configuration for a customer portal workspace.',