@seamapi/types 1.47.0 → 1.48.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.
@@ -592,7 +592,19 @@ export interface Routes {
592
592
  };
593
593
  commonParams: {};
594
594
  formData: {};
595
- jsonResponse: {};
595
+ jsonResponse: {
596
+ acs_credential: {
597
+ acs_credential_id: string;
598
+ acs_user_id?: string | undefined;
599
+ acs_system_id: string;
600
+ display_name: string;
601
+ code: string | null;
602
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential';
603
+ external_type_display_name: string;
604
+ created_at: string;
605
+ workspace_id: string;
606
+ };
607
+ };
596
608
  };
597
609
  '/acs/credentials/create': {
598
610
  route: '/acs/credentials/create';
@@ -611,7 +623,7 @@ export interface Routes {
611
623
  acs_system_id: string;
612
624
  display_name: string;
613
625
  code: string | null;
614
- external_type: 'pti_card' | 'brivo_credential';
626
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential';
615
627
  external_type_display_name: string;
616
628
  created_at: string;
617
629
  workspace_id: string;
@@ -645,7 +657,7 @@ export interface Routes {
645
657
  acs_system_id: string;
646
658
  display_name: string;
647
659
  code: string | null;
648
- external_type: 'pti_card' | 'brivo_credential';
660
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential';
649
661
  external_type_display_name: string;
650
662
  created_at: string;
651
663
  workspace_id: string;
@@ -673,7 +685,7 @@ export interface Routes {
673
685
  acs_system_id: string;
674
686
  display_name: string;
675
687
  code: string | null;
676
- external_type: 'pti_card' | 'brivo_credential';
688
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential';
677
689
  external_type_display_name: string;
678
690
  created_at: string;
679
691
  workspace_id: string;
@@ -697,7 +709,7 @@ export interface Routes {
697
709
  acs_system_id: string;
698
710
  display_name: string;
699
711
  code: string | null;
700
- external_type: 'pti_card' | 'brivo_credential';
712
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential';
701
713
  external_type_display_name: string;
702
714
  created_at: string;
703
715
  workspace_id: string;
@@ -1,5 +1,5 @@
1
1
  import { z } from 'zod';
2
- export declare const acs_credential_external_type: z.ZodEnum<["pti_card", "brivo_credential"]>;
2
+ export declare const acs_credential_external_type: z.ZodEnum<["pti_card", "brivo_credential", "hid_cm_credential"]>;
3
3
  export type AcsCredentialExternalType = z.infer<typeof acs_credential_external_type>;
4
4
  export declare const acs_credential: z.ZodObject<{
5
5
  acs_credential_id: z.ZodString;
@@ -7,7 +7,7 @@ export declare const acs_credential: z.ZodObject<{
7
7
  acs_system_id: z.ZodString;
8
8
  display_name: z.ZodString;
9
9
  code: z.ZodNullable<z.ZodString>;
10
- external_type: z.ZodEnum<["pti_card", "brivo_credential"]>;
10
+ external_type: z.ZodEnum<["pti_card", "brivo_credential", "hid_cm_credential"]>;
11
11
  external_type_display_name: z.ZodString;
12
12
  created_at: z.ZodString;
13
13
  workspace_id: z.ZodString;
@@ -16,7 +16,7 @@ export declare const acs_credential: z.ZodObject<{
16
16
  workspace_id: string;
17
17
  created_at: string;
18
18
  acs_system_id: string;
19
- external_type: "pti_card" | "brivo_credential";
19
+ external_type: "pti_card" | "brivo_credential" | "hid_cm_credential";
20
20
  external_type_display_name: string;
21
21
  display_name: string;
22
22
  acs_credential_id: string;
@@ -26,7 +26,7 @@ export declare const acs_credential: z.ZodObject<{
26
26
  workspace_id: string;
27
27
  created_at: string;
28
28
  acs_system_id: string;
29
- external_type: "pti_card" | "brivo_credential";
29
+ external_type: "pti_card" | "brivo_credential" | "hid_cm_credential";
30
30
  external_type_display_name: string;
31
31
  display_name: string;
32
32
  acs_credential_id: string;
@@ -2,6 +2,7 @@ import { z } from 'zod';
2
2
  export const acs_credential_external_type = z.enum([
3
3
  'pti_card',
4
4
  'brivo_credential',
5
+ 'hid_cm_credential',
5
6
  ]);
6
7
  export const acs_credential = z.object({
7
8
  acs_credential_id: z.string().uuid(),
@@ -1 +1 @@
1
- {"version":3,"file":"credential.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,UAAU;IACV,kBAAkB;CACnB,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACpC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACzC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,aAAa,EAAE,4BAA4B;IAC3C,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CAChC,CAAC,CAAA"}
1
+ {"version":3,"file":"credential.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/credential.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,4BAA4B,GAAG,CAAC,CAAC,IAAI,CAAC;IACjD,UAAU;IACV,kBAAkB;IAClB,mBAAmB;CACpB,CAAC,CAAA;AAMF,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IACpC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACzC,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnC,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC3B,aAAa,EAAE,4BAA4B;IAC3C,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;IACtC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;CAChC,CAAC,CAAA"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@seamapi/types",
3
- "version": "1.47.0",
3
+ "version": "1.48.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -1374,6 +1374,24 @@ export default {
1374
1374
  ],
1375
1375
  type: 'object',
1376
1376
  },
1377
+ device_provider: {
1378
+ properties: {
1379
+ device_provider_name: { type: 'string' },
1380
+ display_name: { type: 'string' },
1381
+ image_url: { type: 'string' },
1382
+ provider_categories: {
1383
+ items: { enum: ['stable', 'consumer_smartlocks'], type: 'string' },
1384
+ type: 'array',
1385
+ },
1386
+ },
1387
+ required: [
1388
+ 'device_provider_name',
1389
+ 'display_name',
1390
+ 'image_url',
1391
+ 'provider_categories',
1392
+ ],
1393
+ type: 'object',
1394
+ },
1377
1395
  event: {
1378
1396
  properties: {
1379
1397
  created_at: { format: 'date-time', type: 'string' },
@@ -3022,8 +3040,41 @@ export default {
3022
3040
  content: {
3023
3041
  'application/json': {
3024
3042
  schema: {
3025
- properties: { ok: { type: 'boolean' } },
3026
- required: ['ok'],
3043
+ properties: {
3044
+ acs_credential: {
3045
+ properties: {
3046
+ acs_credential_id: { format: 'uuid', type: 'string' },
3047
+ acs_system_id: { format: 'uuid', type: 'string' },
3048
+ acs_user_id: { format: 'uuid', type: 'string' },
3049
+ code: { nullable: true, type: 'string' },
3050
+ created_at: { format: 'date-time', type: 'string' },
3051
+ display_name: { minLength: 1, type: 'string' },
3052
+ external_type: {
3053
+ enum: [
3054
+ 'pti_card',
3055
+ 'brivo_credential',
3056
+ 'hid_cm_credential',
3057
+ ],
3058
+ type: 'string',
3059
+ },
3060
+ external_type_display_name: { type: 'string' },
3061
+ workspace_id: { format: 'uuid', type: 'string' },
3062
+ },
3063
+ required: [
3064
+ 'acs_credential_id',
3065
+ 'acs_system_id',
3066
+ 'display_name',
3067
+ 'code',
3068
+ 'external_type',
3069
+ 'external_type_display_name',
3070
+ 'created_at',
3071
+ 'workspace_id',
3072
+ ],
3073
+ type: 'object',
3074
+ },
3075
+ ok: { type: 'boolean' },
3076
+ },
3077
+ required: ['acs_credential', 'ok'],
3027
3078
  type: 'object',
3028
3079
  },
3029
3080
  },
@@ -3063,8 +3114,41 @@ export default {
3063
3114
  content: {
3064
3115
  'application/json': {
3065
3116
  schema: {
3066
- properties: { ok: { type: 'boolean' } },
3067
- required: ['ok'],
3117
+ properties: {
3118
+ acs_credential: {
3119
+ properties: {
3120
+ acs_credential_id: { format: 'uuid', type: 'string' },
3121
+ acs_system_id: { format: 'uuid', type: 'string' },
3122
+ acs_user_id: { format: 'uuid', type: 'string' },
3123
+ code: { nullable: true, type: 'string' },
3124
+ created_at: { format: 'date-time', type: 'string' },
3125
+ display_name: { minLength: 1, type: 'string' },
3126
+ external_type: {
3127
+ enum: [
3128
+ 'pti_card',
3129
+ 'brivo_credential',
3130
+ 'hid_cm_credential',
3131
+ ],
3132
+ type: 'string',
3133
+ },
3134
+ external_type_display_name: { type: 'string' },
3135
+ workspace_id: { format: 'uuid', type: 'string' },
3136
+ },
3137
+ required: [
3138
+ 'acs_credential_id',
3139
+ 'acs_system_id',
3140
+ 'display_name',
3141
+ 'code',
3142
+ 'external_type',
3143
+ 'external_type_display_name',
3144
+ 'created_at',
3145
+ 'workspace_id',
3146
+ ],
3147
+ type: 'object',
3148
+ },
3149
+ ok: { type: 'boolean' },
3150
+ },
3151
+ required: ['acs_credential', 'ok'],
3068
3152
  type: 'object',
3069
3153
  },
3070
3154
  },
@@ -3117,7 +3201,11 @@ export default {
3117
3201
  created_at: { format: 'date-time', type: 'string' },
3118
3202
  display_name: { minLength: 1, type: 'string' },
3119
3203
  external_type: {
3120
- enum: ['pti_card', 'brivo_credential'],
3204
+ enum: [
3205
+ 'pti_card',
3206
+ 'brivo_credential',
3207
+ 'hid_cm_credential',
3208
+ ],
3121
3209
  type: 'string',
3122
3210
  },
3123
3211
  external_type_display_name: { type: 'string' },
@@ -3232,7 +3320,11 @@ export default {
3232
3320
  created_at: { format: 'date-time', type: 'string' },
3233
3321
  display_name: { minLength: 1, type: 'string' },
3234
3322
  external_type: {
3235
- enum: ['pti_card', 'brivo_credential'],
3323
+ enum: [
3324
+ 'pti_card',
3325
+ 'brivo_credential',
3326
+ 'hid_cm_credential',
3327
+ ],
3236
3328
  type: 'string',
3237
3329
  },
3238
3330
  external_type_display_name: { type: 'string' },
@@ -3324,7 +3416,11 @@ export default {
3324
3416
  created_at: { format: 'date-time', type: 'string' },
3325
3417
  display_name: { minLength: 1, type: 'string' },
3326
3418
  external_type: {
3327
- enum: ['pti_card', 'brivo_credential'],
3419
+ enum: [
3420
+ 'pti_card',
3421
+ 'brivo_credential',
3422
+ 'hid_cm_credential',
3423
+ ],
3328
3424
  type: 'string',
3329
3425
  },
3330
3426
  external_type_display_name: { type: 'string' },
@@ -3399,7 +3495,11 @@ export default {
3399
3495
  created_at: { format: 'date-time', type: 'string' },
3400
3496
  display_name: { minLength: 1, type: 'string' },
3401
3497
  external_type: {
3402
- enum: ['pti_card', 'brivo_credential'],
3498
+ enum: [
3499
+ 'pti_card',
3500
+ 'brivo_credential',
3501
+ 'hid_cm_credential',
3502
+ ],
3403
3503
  type: 'string',
3404
3504
  },
3405
3505
  external_type_display_name: { type: 'string' },
@@ -3469,7 +3569,11 @@ export default {
3469
3569
  created_at: { format: 'date-time', type: 'string' },
3470
3570
  display_name: { minLength: 1, type: 'string' },
3471
3571
  external_type: {
3472
- enum: ['pti_card', 'brivo_credential'],
3572
+ enum: [
3573
+ 'pti_card',
3574
+ 'brivo_credential',
3575
+ 'hid_cm_credential',
3576
+ ],
3473
3577
  type: 'string',
3474
3578
  },
3475
3579
  external_type_display_name: { type: 'string' },
@@ -5594,27 +5698,7 @@ export default {
5594
5698
  schema: {
5595
5699
  properties: {
5596
5700
  device_providers: {
5597
- items: {
5598
- properties: {
5599
- device_provider_name: { type: 'string' },
5600
- display_name: { type: 'string' },
5601
- image_url: { type: 'string' },
5602
- provider_categories: {
5603
- items: {
5604
- enum: ['stable', 'consumer_smartlocks'],
5605
- type: 'string',
5606
- },
5607
- type: 'array',
5608
- },
5609
- },
5610
- required: [
5611
- 'device_provider_name',
5612
- 'display_name',
5613
- 'image_url',
5614
- 'provider_categories',
5615
- ],
5616
- type: 'object',
5617
- },
5701
+ items: { $ref: '#/components/schemas/device_provider' },
5618
5702
  type: 'array',
5619
5703
  },
5620
5704
  ok: { type: 'boolean' },
@@ -620,7 +620,19 @@ export interface Routes {
620
620
  }
621
621
  commonParams: {}
622
622
  formData: {}
623
- jsonResponse: {}
623
+ jsonResponse: {
624
+ acs_credential: {
625
+ acs_credential_id: string
626
+ acs_user_id?: string | undefined
627
+ acs_system_id: string
628
+ display_name: string
629
+ code: string | null
630
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential'
631
+ external_type_display_name: string
632
+ created_at: string
633
+ workspace_id: string
634
+ }
635
+ }
624
636
  }
625
637
  '/acs/credentials/create': {
626
638
  route: '/acs/credentials/create'
@@ -639,7 +651,7 @@ export interface Routes {
639
651
  acs_system_id: string
640
652
  display_name: string
641
653
  code: string | null
642
- external_type: 'pti_card' | 'brivo_credential'
654
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential'
643
655
  external_type_display_name: string
644
656
  created_at: string
645
657
  workspace_id: string
@@ -673,7 +685,7 @@ export interface Routes {
673
685
  acs_system_id: string
674
686
  display_name: string
675
687
  code: string | null
676
- external_type: 'pti_card' | 'brivo_credential'
688
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential'
677
689
  external_type_display_name: string
678
690
  created_at: string
679
691
  workspace_id: string
@@ -704,7 +716,7 @@ export interface Routes {
704
716
  acs_system_id: string
705
717
  display_name: string
706
718
  code: string | null
707
- external_type: 'pti_card' | 'brivo_credential'
719
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential'
708
720
  external_type_display_name: string
709
721
  created_at: string
710
722
  workspace_id: string
@@ -728,7 +740,7 @@ export interface Routes {
728
740
  acs_system_id: string
729
741
  display_name: string
730
742
  code: string | null
731
- external_type: 'pti_card' | 'brivo_credential'
743
+ external_type: 'pti_card' | 'brivo_credential' | 'hid_cm_credential'
732
744
  external_type_display_name: string
733
745
  created_at: string
734
746
  workspace_id: string
@@ -3,6 +3,7 @@ import { z } from 'zod'
3
3
  export const acs_credential_external_type = z.enum([
4
4
  'pti_card',
5
5
  'brivo_credential',
6
+ 'hid_cm_credential',
6
7
  ])
7
8
 
8
9
  export type AcsCredentialExternalType = z.infer<