@seamapi/types 1.56.1 → 1.58.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.
@@ -789,7 +789,7 @@ export interface Routes {
789
789
  acs_credential_pool_id?: string | undefined;
790
790
  acs_system_id: string;
791
791
  display_name: string;
792
- code: string | null;
792
+ code?: (string | undefined) | null;
793
793
  external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
794
794
  external_type_display_name: string;
795
795
  created_at: string;
@@ -814,7 +814,7 @@ export interface Routes {
814
814
  acs_credential_pool_id?: string | undefined;
815
815
  acs_system_id: string;
816
816
  display_name: string;
817
- code: string | null;
817
+ code?: (string | undefined) | null;
818
818
  external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
819
819
  external_type_display_name: string;
820
820
  created_at: string;
@@ -849,7 +849,7 @@ export interface Routes {
849
849
  acs_credential_pool_id?: string | undefined;
850
850
  acs_system_id: string;
851
851
  display_name: string;
852
- code: string | null;
852
+ code?: (string | undefined) | null;
853
853
  external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
854
854
  external_type_display_name: string;
855
855
  created_at: string;
@@ -878,7 +878,7 @@ export interface Routes {
878
878
  acs_credential_pool_id?: string | undefined;
879
879
  acs_system_id: string;
880
880
  display_name: string;
881
- code: string | null;
881
+ code?: (string | undefined) | null;
882
882
  external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
883
883
  external_type_display_name: string;
884
884
  created_at: string;
@@ -903,7 +903,7 @@ export interface Routes {
903
903
  acs_credential_pool_id?: string | undefined;
904
904
  acs_system_id: string;
905
905
  display_name: string;
906
- code: string | null;
906
+ code?: (string | undefined) | null;
907
907
  external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
908
908
  external_type_display_name: string;
909
909
  created_at: string;
@@ -913,13 +913,13 @@ export interface Routes {
913
913
  };
914
914
  '/acs/credentials/update': {
915
915
  route: '/acs/credentials/update';
916
- method: 'POST';
916
+ method: 'PATCH' | 'POST';
917
917
  queryParams: {};
918
- jsonBody: {};
919
- commonParams: {
920
- code?: string | undefined;
921
- name?: string | undefined;
918
+ jsonBody: {
919
+ acs_credential_id: string;
920
+ code: string;
922
921
  };
922
+ commonParams: {};
923
923
  formData: {};
924
924
  jsonResponse: {
925
925
  acs_credential: {
@@ -928,7 +928,7 @@ export interface Routes {
928
928
  acs_credential_pool_id?: string | undefined;
929
929
  acs_system_id: string;
930
930
  display_name: string;
931
- code: string | null;
931
+ code?: (string | undefined) | null;
932
932
  external_type: 'pti_card' | 'brivo_credential' | 'hid_credential';
933
933
  external_type_display_name: string;
934
934
  created_at: string;
@@ -7,13 +7,12 @@ export declare const acs_credential: z.ZodObject<{
7
7
  acs_credential_pool_id: z.ZodOptional<z.ZodString>;
8
8
  acs_system_id: z.ZodString;
9
9
  display_name: z.ZodString;
10
- code: z.ZodNullable<z.ZodString>;
10
+ code: z.ZodNullable<z.ZodOptional<z.ZodString>>;
11
11
  external_type: z.ZodEnum<["pti_card", "brivo_credential", "hid_credential"]>;
12
12
  external_type_display_name: z.ZodString;
13
13
  created_at: z.ZodString;
14
14
  workspace_id: z.ZodString;
15
15
  }, "strip", z.ZodTypeAny, {
16
- code: string | null;
17
16
  workspace_id: string;
18
17
  created_at: string;
19
18
  acs_system_id: string;
@@ -23,8 +22,8 @@ export declare const acs_credential: z.ZodObject<{
23
22
  acs_credential_id: string;
24
23
  acs_user_id?: string | undefined;
25
24
  acs_credential_pool_id?: string | undefined;
25
+ code?: string | null | undefined;
26
26
  }, {
27
- code: string | null;
28
27
  workspace_id: string;
29
28
  created_at: string;
30
29
  acs_system_id: string;
@@ -34,5 +33,6 @@ export declare const acs_credential: z.ZodObject<{
34
33
  acs_credential_id: string;
35
34
  acs_user_id?: string | undefined;
36
35
  acs_credential_pool_id?: string | undefined;
36
+ code?: string | null | undefined;
37
37
  }>;
38
38
  export type AcsCredential = z.output<typeof acs_credential>;
@@ -10,7 +10,7 @@ export const acs_credential = z.object({
10
10
  acs_credential_pool_id: z.string().uuid().optional(),
11
11
  acs_system_id: z.string().uuid(),
12
12
  display_name: z.string().nonempty(),
13
- code: z.string().nullable(),
13
+ code: z.string().optional().nullable(),
14
14
  external_type: acs_credential_external_type,
15
15
  external_type_display_name: z.string(),
16
16
  created_at: z.string().datetime(),
@@ -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;IAClB,gBAAgB;CACjB,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,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACpD,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,gBAAgB;CACjB,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,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;IACpD,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,CAAC,QAAQ,EAAE;IACtC,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.56.1",
3
+ "version": "1.58.0",
4
4
  "description": "TypeScript types for the Seam API.",
5
5
  "type": "module",
6
6
  "main": "index.js",
@@ -3509,7 +3509,6 @@ export default {
3509
3509
  'acs_credential_id',
3510
3510
  'acs_system_id',
3511
3511
  'display_name',
3512
- 'code',
3513
3512
  'external_type',
3514
3513
  'external_type_display_name',
3515
3514
  'created_at',
@@ -3587,7 +3586,6 @@ export default {
3587
3586
  'acs_credential_id',
3588
3587
  'acs_system_id',
3589
3588
  'display_name',
3590
- 'code',
3591
3589
  'external_type',
3592
3590
  'external_type_display_name',
3593
3591
  'created_at',
@@ -3668,7 +3666,6 @@ export default {
3668
3666
  'acs_credential_id',
3669
3667
  'acs_system_id',
3670
3668
  'display_name',
3671
- 'code',
3672
3669
  'external_type',
3673
3670
  'external_type_display_name',
3674
3671
  'created_at',
@@ -3791,7 +3788,6 @@ export default {
3791
3788
  'acs_credential_id',
3792
3789
  'acs_system_id',
3793
3790
  'display_name',
3794
- 'code',
3795
3791
  'external_type',
3796
3792
  'external_type_display_name',
3797
3793
  'created_at',
@@ -3891,7 +3887,6 @@ export default {
3891
3887
  'acs_credential_id',
3892
3888
  'acs_system_id',
3893
3889
  'display_name',
3894
- 'code',
3895
3890
  'external_type',
3896
3891
  'external_type_display_name',
3897
3892
  'created_at',
@@ -3975,7 +3970,6 @@ export default {
3975
3970
  'acs_credential_id',
3976
3971
  'acs_system_id',
3977
3972
  'display_name',
3978
- 'code',
3979
3973
  'external_type',
3980
3974
  'external_type_display_name',
3981
3975
  'created_at',
@@ -4053,7 +4047,6 @@ export default {
4053
4047
  'acs_credential_id',
4054
4048
  'acs_system_id',
4055
4049
  'display_name',
4056
- 'code',
4057
4050
  'external_type',
4058
4051
  'external_type_display_name',
4059
4052
  'created_at',
@@ -4085,6 +4078,83 @@ export default {
4085
4078
  },
4086
4079
  },
4087
4080
  '/acs/credentials/update': {
4081
+ patch: {
4082
+ operationId: 'acsCredentialsUpdatePatch',
4083
+ requestBody: {
4084
+ content: {
4085
+ 'application/json': {
4086
+ schema: {
4087
+ properties: {
4088
+ acs_credential_id: { type: 'string' },
4089
+ code: { pattern: '^\\d+$', type: 'string' },
4090
+ },
4091
+ required: ['acs_credential_id', 'code'],
4092
+ type: 'object',
4093
+ },
4094
+ },
4095
+ },
4096
+ },
4097
+ responses: {
4098
+ 200: {
4099
+ content: {
4100
+ 'application/json': {
4101
+ schema: {
4102
+ properties: {
4103
+ acs_credential: {
4104
+ properties: {
4105
+ acs_credential_id: { format: 'uuid', type: 'string' },
4106
+ acs_credential_pool_id: {
4107
+ format: 'uuid',
4108
+ type: 'string',
4109
+ },
4110
+ acs_system_id: { format: 'uuid', type: 'string' },
4111
+ acs_user_id: { format: 'uuid', type: 'string' },
4112
+ code: { nullable: true, type: 'string' },
4113
+ created_at: { format: 'date-time', type: 'string' },
4114
+ display_name: { minLength: 1, type: 'string' },
4115
+ external_type: {
4116
+ enum: [
4117
+ 'pti_card',
4118
+ 'brivo_credential',
4119
+ 'hid_credential',
4120
+ ],
4121
+ type: 'string',
4122
+ },
4123
+ external_type_display_name: { type: 'string' },
4124
+ workspace_id: { format: 'uuid', type: 'string' },
4125
+ },
4126
+ required: [
4127
+ 'acs_credential_id',
4128
+ 'acs_system_id',
4129
+ 'display_name',
4130
+ 'external_type',
4131
+ 'external_type_display_name',
4132
+ 'created_at',
4133
+ 'workspace_id',
4134
+ ],
4135
+ type: 'object',
4136
+ },
4137
+ ok: { type: 'boolean' },
4138
+ },
4139
+ required: ['acs_credential', 'ok'],
4140
+ type: 'object',
4141
+ },
4142
+ },
4143
+ },
4144
+ description: 'OK',
4145
+ },
4146
+ 400: { description: 'Bad Request' },
4147
+ 401: { description: 'Unauthorized' },
4148
+ },
4149
+ security: [
4150
+ { access_token: [], seam_workspace: [] },
4151
+ { seam_client_session_token: [] },
4152
+ { client_session_token: [] },
4153
+ ],
4154
+ summary: '/acs/credentials/update',
4155
+ tags: [],
4156
+ 'x-fern-ignore': true,
4157
+ },
4088
4158
  post: {
4089
4159
  operationId: 'acsCredentialsUpdatePost',
4090
4160
  requestBody: {
@@ -4092,9 +4162,10 @@ export default {
4092
4162
  'application/json': {
4093
4163
  schema: {
4094
4164
  properties: {
4165
+ acs_credential_id: { type: 'string' },
4095
4166
  code: { pattern: '^\\d+$', type: 'string' },
4096
- name: { maxLength: 10, type: 'string' },
4097
4167
  },
4168
+ required: ['acs_credential_id', 'code'],
4098
4169
  type: 'object',
4099
4170
  },
4100
4171
  },
@@ -4133,7 +4204,6 @@ export default {
4133
4204
  'acs_credential_id',
4134
4205
  'acs_system_id',
4135
4206
  'display_name',
4136
- 'code',
4137
4207
  'external_type',
4138
4208
  'external_type_display_name',
4139
4209
  'created_at',
@@ -817,7 +817,7 @@ export interface Routes {
817
817
  acs_credential_pool_id?: string | undefined
818
818
  acs_system_id: string
819
819
  display_name: string
820
- code: string | null
820
+ code?: (string | undefined) | null
821
821
  external_type: 'pti_card' | 'brivo_credential' | 'hid_credential'
822
822
  external_type_display_name: string
823
823
  created_at: string
@@ -842,7 +842,7 @@ export interface Routes {
842
842
  acs_credential_pool_id?: string | undefined
843
843
  acs_system_id: string
844
844
  display_name: string
845
- code: string | null
845
+ code?: (string | undefined) | null
846
846
  external_type: 'pti_card' | 'brivo_credential' | 'hid_credential'
847
847
  external_type_display_name: string
848
848
  created_at: string
@@ -877,7 +877,7 @@ export interface Routes {
877
877
  acs_credential_pool_id?: string | undefined
878
878
  acs_system_id: string
879
879
  display_name: string
880
- code: string | null
880
+ code?: (string | undefined) | null
881
881
  external_type: 'pti_card' | 'brivo_credential' | 'hid_credential'
882
882
  external_type_display_name: string
883
883
  created_at: string
@@ -909,7 +909,7 @@ export interface Routes {
909
909
  acs_credential_pool_id?: string | undefined
910
910
  acs_system_id: string
911
911
  display_name: string
912
- code: string | null
912
+ code?: (string | undefined) | null
913
913
  external_type: 'pti_card' | 'brivo_credential' | 'hid_credential'
914
914
  external_type_display_name: string
915
915
  created_at: string
@@ -934,7 +934,7 @@ export interface Routes {
934
934
  acs_credential_pool_id?: string | undefined
935
935
  acs_system_id: string
936
936
  display_name: string
937
- code: string | null
937
+ code?: (string | undefined) | null
938
938
  external_type: 'pti_card' | 'brivo_credential' | 'hid_credential'
939
939
  external_type_display_name: string
940
940
  created_at: string
@@ -944,13 +944,13 @@ export interface Routes {
944
944
  }
945
945
  '/acs/credentials/update': {
946
946
  route: '/acs/credentials/update'
947
- method: 'POST'
947
+ method: 'PATCH' | 'POST'
948
948
  queryParams: {}
949
- jsonBody: {}
950
- commonParams: {
951
- code?: string | undefined
952
- name?: string | undefined
949
+ jsonBody: {
950
+ acs_credential_id: string
951
+ code: string
953
952
  }
953
+ commonParams: {}
954
954
  formData: {}
955
955
  jsonResponse: {
956
956
  acs_credential: {
@@ -959,7 +959,7 @@ export interface Routes {
959
959
  acs_credential_pool_id?: string | undefined
960
960
  acs_system_id: string
961
961
  display_name: string
962
- code: string | null
962
+ code?: (string | undefined) | null
963
963
  external_type: 'pti_card' | 'brivo_credential' | 'hid_credential'
964
964
  external_type_display_name: string
965
965
  created_at: string
@@ -16,7 +16,7 @@ export const acs_credential = z.object({
16
16
  acs_credential_pool_id: z.string().uuid().optional(),
17
17
  acs_system_id: z.string().uuid(),
18
18
  display_name: z.string().nonempty(),
19
- code: z.string().nullable(),
19
+ code: z.string().optional().nullable(),
20
20
  external_type: acs_credential_external_type,
21
21
  external_type_display_name: z.string(),
22
22
  created_at: z.string().datetime(),