@seamapi/types 1.1116.0 → 1.1117.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.
@@ -44,5 +44,5 @@ export declare const common_event_warning: z.ZodObject<{
44
44
  created_at: string;
45
45
  warning_code: string;
46
46
  }>;
47
- export declare const lock_access_denied_reason: z.ZodEnum<["unknown_code", "expired_code", "blocklisted_code", "too_many_attempts", "blocked_by_privacy_mode", "credential_error"]>;
47
+ export declare const lock_access_denied_reason: z.ZodEnum<["unknown_code", "expired_code", "blocklisted_code", "too_many_attempts", "blocked_by_privacy_mode", "credential_error", "connection_error"]>;
48
48
  export type LockAccessDeniedReason = z.infer<typeof lock_access_denied_reason>;
@@ -41,6 +41,7 @@ export const lock_access_denied_reason = z
41
41
  'too_many_attempts',
42
42
  'blocked_by_privacy_mode',
43
43
  'credential_error',
44
+ 'connection_error',
44
45
  ])
45
46
  .describe('Normalized reason a lock denied access. Provider-agnostic; not all providers report every value.');
46
47
  //# sourceMappingURL=common.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,CAAC;IACnC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,CAAC,kBAAkB,CAAC;IACxD,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,+CAA+C,CAChD;IACD,WAAW,EAAE,QAAQ,CAAC,QAAQ,CAAC,4CAA4C,CAAC;IAC5E,iBAAiB,EAAE,CAAC;SACjB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,oMAAoM,CACrM;CACJ,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAC1B,oGAAoG,CAAA;AACtG,MAAM,wBAAwB,GAC5B,sGAAsG,CAAA;AAExG,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC;KAChC,MAAM,CAAC;IACN,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,gDAAgD,CACjD;IACD,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;IACH,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,sBAAsB,CAAC;CACxD,CAAC;KACD,QAAQ,CACP,gGAAgG,CACjG,CAAA;AAEH,MAAM,CAAC,MAAM,oBAAoB,GAAG,CAAC;KAClC,MAAM,CAAC;IACN,UAAU,EAAE,QAAQ,CAAC,QAAQ,CAC3B,kDAAkD,CACnD;IACD,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,0GAA0G,CAC3G;IACH,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,wBAAwB,CAAC;CAC5D,CAAC;KACD,QAAQ,CACP,oGAAoG,CACrG,CAAA;AAEH,MAAM,CAAC,MAAM,yBAAyB,GAAG,CAAC;KACvC,IAAI,CAAC;IACJ,cAAc;IACd,cAAc;IACd,kBAAkB;IAClB,mBAAmB;IACnB,yBAAyB;IACzB,kBAAkB;CACnB,CAAC;KACD,QAAQ,CACP,kGAAkG,CACnG,CAAA"}
1
+ {"version":3,"file":"common.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/events/common.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAA;AAEzC,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM,C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,kBAAkB;IAClB,mBAAmB;IACnB,yBAAyB;IACzB,kBAAkB;IAClB,kBAAkB;CACnB,CAAC;KACD,QAAQ,CACP,kGAAkG,CACnG,CAAA"}
@@ -1592,14 +1592,14 @@ export declare const lock_access_denied_event: z.ZodObject<{
1592
1592
  acs_entrance_id: z.ZodOptional<z.ZodString>;
1593
1593
  device_id: z.ZodOptional<z.ZodString>;
1594
1594
  reason: z.ZodOptional<z.ZodObject<{
1595
- reason_code: z.ZodEnum<["unknown_code", "expired_code", "blocklisted_code", "too_many_attempts", "blocked_by_privacy_mode", "credential_error"]>;
1595
+ reason_code: z.ZodEnum<["unknown_code", "expired_code", "blocklisted_code", "too_many_attempts", "blocked_by_privacy_mode", "credential_error", "connection_error"]>;
1596
1596
  message: z.ZodString;
1597
1597
  }, "strip", z.ZodTypeAny, {
1598
1598
  message: string;
1599
- reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error";
1599
+ reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error" | "connection_error";
1600
1600
  }, {
1601
1601
  message: string;
1602
- reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error";
1602
+ reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error" | "connection_error";
1603
1603
  }>>;
1604
1604
  }, "strip", z.ZodTypeAny, {
1605
1605
  workspace_id: string;
@@ -1613,7 +1613,7 @@ export declare const lock_access_denied_event: z.ZodObject<{
1613
1613
  access_code_id?: string | undefined;
1614
1614
  reason?: {
1615
1615
  message: string;
1616
- reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error";
1616
+ reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error" | "connection_error";
1617
1617
  } | undefined;
1618
1618
  user_identity_id?: string | undefined;
1619
1619
  acs_user_id?: string | undefined;
@@ -1634,7 +1634,7 @@ export declare const lock_access_denied_event: z.ZodObject<{
1634
1634
  access_code_id?: string | undefined;
1635
1635
  reason?: {
1636
1636
  message: string;
1637
- reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error";
1637
+ reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error" | "connection_error";
1638
1638
  } | undefined;
1639
1639
  user_identity_id?: string | undefined;
1640
1640
  acs_user_id?: string | undefined;
@@ -3680,14 +3680,14 @@ export declare const device_events: readonly [z.ZodObject<{
3680
3680
  acs_entrance_id: z.ZodOptional<z.ZodString>;
3681
3681
  device_id: z.ZodOptional<z.ZodString>;
3682
3682
  reason: z.ZodOptional<z.ZodObject<{
3683
- reason_code: z.ZodEnum<["unknown_code", "expired_code", "blocklisted_code", "too_many_attempts", "blocked_by_privacy_mode", "credential_error"]>;
3683
+ reason_code: z.ZodEnum<["unknown_code", "expired_code", "blocklisted_code", "too_many_attempts", "blocked_by_privacy_mode", "credential_error", "connection_error"]>;
3684
3684
  message: z.ZodString;
3685
3685
  }, "strip", z.ZodTypeAny, {
3686
3686
  message: string;
3687
- reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error";
3687
+ reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error" | "connection_error";
3688
3688
  }, {
3689
3689
  message: string;
3690
- reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error";
3690
+ reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error" | "connection_error";
3691
3691
  }>>;
3692
3692
  }, "strip", z.ZodTypeAny, {
3693
3693
  workspace_id: string;
@@ -3701,7 +3701,7 @@ export declare const device_events: readonly [z.ZodObject<{
3701
3701
  access_code_id?: string | undefined;
3702
3702
  reason?: {
3703
3703
  message: string;
3704
- reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error";
3704
+ reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error" | "connection_error";
3705
3705
  } | undefined;
3706
3706
  user_identity_id?: string | undefined;
3707
3707
  acs_user_id?: string | undefined;
@@ -3722,7 +3722,7 @@ export declare const device_events: readonly [z.ZodObject<{
3722
3722
  access_code_id?: string | undefined;
3723
3723
  reason?: {
3724
3724
  message: string;
3725
- reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error";
3725
+ reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error" | "connection_error";
3726
3726
  } | undefined;
3727
3727
  user_identity_id?: string | undefined;
3728
3728
  acs_user_id?: string | undefined;
@@ -5688,14 +5688,14 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
5688
5688
  acs_entrance_id: z.ZodOptional<z.ZodString>;
5689
5689
  device_id: z.ZodOptional<z.ZodString>;
5690
5690
  reason: z.ZodOptional<z.ZodObject<{
5691
- reason_code: z.ZodEnum<["unknown_code", "expired_code", "blocklisted_code", "too_many_attempts", "blocked_by_privacy_mode", "credential_error"]>;
5691
+ reason_code: z.ZodEnum<["unknown_code", "expired_code", "blocklisted_code", "too_many_attempts", "blocked_by_privacy_mode", "credential_error", "connection_error"]>;
5692
5692
  message: z.ZodString;
5693
5693
  }, "strip", z.ZodTypeAny, {
5694
5694
  message: string;
5695
- reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error";
5695
+ reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error" | "connection_error";
5696
5696
  }, {
5697
5697
  message: string;
5698
- reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error";
5698
+ reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error" | "connection_error";
5699
5699
  }>>;
5700
5700
  }, "strip", z.ZodTypeAny, {
5701
5701
  workspace_id: string;
@@ -5709,7 +5709,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
5709
5709
  access_code_id?: string | undefined;
5710
5710
  reason?: {
5711
5711
  message: string;
5712
- reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error";
5712
+ reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error" | "connection_error";
5713
5713
  } | undefined;
5714
5714
  user_identity_id?: string | undefined;
5715
5715
  acs_user_id?: string | undefined;
@@ -5730,7 +5730,7 @@ export declare const seam_event: z.ZodDiscriminatedUnion<"event_type", [z.ZodObj
5730
5730
  access_code_id?: string | undefined;
5731
5731
  reason?: {
5732
5732
  message: string;
5733
- reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error";
5733
+ reason_code: "unknown_code" | "expired_code" | "blocklisted_code" | "too_many_attempts" | "blocked_by_privacy_mode" | "credential_error" | "connection_error";
5734
5734
  } | undefined;
5735
5735
  user_identity_id?: string | undefined;
5736
5736
  acs_user_id?: string | undefined;
@@ -26667,6 +26667,7 @@ const openapi = {
26667
26667
  'too_many_attempts',
26668
26668
  'blocked_by_privacy_mode',
26669
26669
  'credential_error',
26670
+ 'connection_error',
26670
26671
  ],
26671
26672
  type: 'string',
26672
26673
  },
@@ -63678,6 +63679,71 @@ const openapi = {
63678
63679
  'x-undocumented': 'Seam support agent only.',
63679
63680
  },
63680
63681
  },
63682
+ '/seam/mobile_sdk/v1/acs/credentials/get_unlock_result': {
63683
+ post: {
63684
+ description: "Returns the lock's decision for a mobile key unlock attempt, read from the access system's event feed. Returns `pending` until the access system reports the attempt, and `failed` if it hasn't within 30 seconds of the attempt.",
63685
+ operationId: 'seamMobileSdkV1AcsCredentialsGetUnlockResultPost',
63686
+ requestBody: {
63687
+ content: {
63688
+ 'application/json': {
63689
+ schema: {
63690
+ properties: {
63691
+ acs_credential_id: { format: 'uuid', type: 'string' },
63692
+ unlock_attempted_at: { format: 'date-time', type: 'string' },
63693
+ },
63694
+ required: ['acs_credential_id', 'unlock_attempted_at'],
63695
+ type: 'object',
63696
+ },
63697
+ },
63698
+ },
63699
+ },
63700
+ responses: {
63701
+ '200': {
63702
+ content: {
63703
+ 'application/json': {
63704
+ schema: {
63705
+ properties: {
63706
+ ok: { type: 'boolean' },
63707
+ unlock_result: {
63708
+ properties: {
63709
+ acs_entrance_id: { format: 'uuid', type: 'string' },
63710
+ occurred_at: { format: 'date-time', type: 'string' },
63711
+ status: {
63712
+ enum: ['granted', 'denied', 'pending', 'failed'],
63713
+ type: 'string',
63714
+ },
63715
+ },
63716
+ required: ['status'],
63717
+ type: 'object',
63718
+ },
63719
+ },
63720
+ required: ['unlock_result', 'ok'],
63721
+ type: 'object',
63722
+ },
63723
+ },
63724
+ },
63725
+ description: 'OK',
63726
+ },
63727
+ '400': { description: 'Bad Request' },
63728
+ '401': { description: 'Unauthorized' },
63729
+ },
63730
+ security: [{ client_session: [] }],
63731
+ summary: '/seam/mobile_sdk/v1/acs/credentials/get_unlock_result',
63732
+ tags: ['/acs'],
63733
+ 'x-fern-sdk-group-name': [
63734
+ 'seam',
63735
+ 'mobile_sdk',
63736
+ 'v1',
63737
+ 'acs',
63738
+ 'credentials',
63739
+ ],
63740
+ 'x-fern-sdk-method-name': 'get_unlock_result',
63741
+ 'x-fern-sdk-return-value': 'unlock_result',
63742
+ 'x-response-key': 'unlock_result',
63743
+ 'x-title': 'Get Unlock Result',
63744
+ 'x-undocumented': 'Mobile SDK only.',
63745
+ },
63746
+ },
63681
63747
  '/seam/mobile_sdk/v1/acs/credentials/list': {
63682
63748
  get: {
63683
63749
  description: 'Returns a list of all [credentials](https://www.seam.co/docs/low-level-apis/access-systems/managing-credentials).',