@seamapi/types 1.39.0 → 1.40.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.
- package/dist/connect.cjs +21 -4
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +20 -0
- package/lib/seam/connect/openapi.d.ts +8 -0
- package/lib/seam/connect/openapi.js +21 -4
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +12 -0
- package/lib/seam/connect/unstable/models/acs/user.d.ts +3 -0
- package/lib/seam/connect/unstable/models/acs/user.js +6 -1
- package/lib/seam/connect/unstable/models/acs/user.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/openapi.ts +21 -4
- package/src/lib/seam/connect/route-types.ts +12 -0
- package/src/lib/seam/connect/unstable/models/acs/user.ts +6 -1
|
@@ -590,7 +590,9 @@ export interface Routes {
|
|
|
590
590
|
external_type_display_name: string;
|
|
591
591
|
is_suspended: boolean;
|
|
592
592
|
full_name?: string | undefined;
|
|
593
|
+
/** Deprecated: use email_address. */
|
|
593
594
|
email?: string | undefined;
|
|
595
|
+
email_address?: string | undefined;
|
|
594
596
|
phone_number?: string | undefined;
|
|
595
597
|
}>;
|
|
596
598
|
};
|
|
@@ -771,6 +773,7 @@ export interface Routes {
|
|
|
771
773
|
acs_system_id: string;
|
|
772
774
|
acs_access_group_ids?: string[];
|
|
773
775
|
full_name?: string | undefined;
|
|
776
|
+
/** Deprecated: use email_address. */
|
|
774
777
|
email?: string | undefined;
|
|
775
778
|
phone_number?: string | undefined;
|
|
776
779
|
};
|
|
@@ -786,7 +789,9 @@ export interface Routes {
|
|
|
786
789
|
external_type_display_name: string;
|
|
787
790
|
is_suspended: boolean;
|
|
788
791
|
full_name?: string | undefined;
|
|
792
|
+
/** Deprecated: use email_address. */
|
|
789
793
|
email?: string | undefined;
|
|
794
|
+
email_address?: string | undefined;
|
|
790
795
|
phone_number?: string | undefined;
|
|
791
796
|
};
|
|
792
797
|
};
|
|
@@ -822,7 +827,9 @@ export interface Routes {
|
|
|
822
827
|
external_type_display_name: string;
|
|
823
828
|
is_suspended: boolean;
|
|
824
829
|
full_name?: string | undefined;
|
|
830
|
+
/** Deprecated: use email_address. */
|
|
825
831
|
email?: string | undefined;
|
|
832
|
+
email_address?: string | undefined;
|
|
826
833
|
phone_number?: string | undefined;
|
|
827
834
|
};
|
|
828
835
|
};
|
|
@@ -847,7 +854,9 @@ export interface Routes {
|
|
|
847
854
|
external_type_display_name: string;
|
|
848
855
|
is_suspended: boolean;
|
|
849
856
|
full_name?: string | undefined;
|
|
857
|
+
/** Deprecated: use email_address. */
|
|
850
858
|
email?: string | undefined;
|
|
859
|
+
email_address?: string | undefined;
|
|
851
860
|
phone_number?: string | undefined;
|
|
852
861
|
}>;
|
|
853
862
|
};
|
|
@@ -894,6 +903,7 @@ export interface Routes {
|
|
|
894
903
|
commonParams: {
|
|
895
904
|
acs_user_id: string;
|
|
896
905
|
full_name?: string | undefined;
|
|
906
|
+
/** Deprecated: use email_address. */
|
|
897
907
|
email?: string | undefined;
|
|
898
908
|
phone_number?: string | undefined;
|
|
899
909
|
};
|
|
@@ -4187,7 +4197,9 @@ export interface Routes {
|
|
|
4187
4197
|
external_type_display_name: string;
|
|
4188
4198
|
is_suspended: boolean;
|
|
4189
4199
|
full_name?: string | undefined;
|
|
4200
|
+
/** Deprecated: use email_address. */
|
|
4190
4201
|
email?: string | undefined;
|
|
4202
|
+
email_address?: string | undefined;
|
|
4191
4203
|
phone_number?: string | undefined;
|
|
4192
4204
|
}>;
|
|
4193
4205
|
};
|
|
@@ -12,6 +12,7 @@ export declare const acs_user: z.ZodObject<{
|
|
|
12
12
|
is_suspended: z.ZodBoolean;
|
|
13
13
|
full_name: z.ZodOptional<z.ZodString>;
|
|
14
14
|
email: z.ZodOptional<z.ZodString>;
|
|
15
|
+
email_address: z.ZodOptional<z.ZodString>;
|
|
15
16
|
phone_number: z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>;
|
|
16
17
|
}, "strip", z.ZodTypeAny, {
|
|
17
18
|
workspace_id: string;
|
|
@@ -24,6 +25,7 @@ export declare const acs_user: z.ZodObject<{
|
|
|
24
25
|
is_suspended: boolean;
|
|
25
26
|
full_name?: string | undefined;
|
|
26
27
|
email?: string | undefined;
|
|
28
|
+
email_address?: string | undefined;
|
|
27
29
|
phone_number?: string | undefined;
|
|
28
30
|
}, {
|
|
29
31
|
workspace_id: string;
|
|
@@ -36,6 +38,7 @@ export declare const acs_user: z.ZodObject<{
|
|
|
36
38
|
is_suspended: boolean;
|
|
37
39
|
full_name?: string | undefined;
|
|
38
40
|
email?: string | undefined;
|
|
41
|
+
email_address?: string | undefined;
|
|
39
42
|
phone_number?: string | undefined;
|
|
40
43
|
}>;
|
|
41
44
|
export type AcsUser = z.output<typeof acs_user>;
|
|
@@ -11,7 +11,12 @@ const phone_number = z.coerce
|
|
|
11
11
|
});
|
|
12
12
|
const user_fields = z.object({
|
|
13
13
|
full_name: z.string().optional(),
|
|
14
|
-
email: z
|
|
14
|
+
email: z
|
|
15
|
+
.string()
|
|
16
|
+
.email()
|
|
17
|
+
.optional()
|
|
18
|
+
.describe('Deprecated: use email_address.'),
|
|
19
|
+
email_address: z.string().email().optional(),
|
|
15
20
|
phone_number: phone_number.optional(),
|
|
16
21
|
});
|
|
17
22
|
export const acs_user = z
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/unstable/models/acs/user.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,sBAAsB,GAAG,CAAC,CAAC,IAAI,CAAC,CAAC,UAAU,CAAC,CAAC,CAAA;AAI1D,MAAM,YAAY,GAAG,CAAC,CAAC,MAAM;KAC1B,MAAM,EAAE;KACR,IAAI,EAAE;KACN,MAAM,CACL,CAAC,GAAG,EAAE,EAAE;IACN,i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AAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC9B,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAChC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,aAAa,EAAE,sBAAsB;IACrC,0BAA0B,EAAE,CAAC,CAAC,MAAM,EAAE;IACtC,YAAY,EAAE,CAAC,CAAC,OAAO,EAAE;CAC1B,CAAC;KACD,KAAK,CAAC,WAAW,CAAC,CAAA"}
|
package/package.json
CHANGED
|
@@ -129,7 +129,12 @@ export default {
|
|
|
129
129
|
acs_user_id: { format: 'uuid', type: 'string' },
|
|
130
130
|
created_at: { format: 'date-time', type: 'string' },
|
|
131
131
|
display_name: { type: 'string' },
|
|
132
|
-
email: {
|
|
132
|
+
email: {
|
|
133
|
+
description: 'Deprecated: use email_address.',
|
|
134
|
+
format: 'email',
|
|
135
|
+
type: 'string',
|
|
136
|
+
},
|
|
137
|
+
email_address: { format: 'email', type: 'string' },
|
|
133
138
|
external_type: { enum: ['pti_user'], type: 'string' },
|
|
134
139
|
external_type_display_name: { type: 'string' },
|
|
135
140
|
full_name: { type: 'string' },
|
|
@@ -3524,7 +3529,11 @@ export default {
|
|
|
3524
3529
|
type: 'array',
|
|
3525
3530
|
},
|
|
3526
3531
|
acs_system_id: { format: 'uuid', type: 'string' },
|
|
3527
|
-
email: {
|
|
3532
|
+
email: {
|
|
3533
|
+
description: 'Deprecated: use email_address.',
|
|
3534
|
+
format: 'email',
|
|
3535
|
+
type: 'string',
|
|
3536
|
+
},
|
|
3528
3537
|
full_name: { type: 'string' },
|
|
3529
3538
|
phone_number: { nullable: true, type: 'string' },
|
|
3530
3539
|
},
|
|
@@ -3822,7 +3831,11 @@ export default {
|
|
|
3822
3831
|
schema: {
|
|
3823
3832
|
properties: {
|
|
3824
3833
|
acs_user_id: { format: 'uuid', type: 'string' },
|
|
3825
|
-
email: {
|
|
3834
|
+
email: {
|
|
3835
|
+
description: 'Deprecated: use email_address.',
|
|
3836
|
+
format: 'email',
|
|
3837
|
+
type: 'string',
|
|
3838
|
+
},
|
|
3826
3839
|
full_name: { type: 'string' },
|
|
3827
3840
|
phone_number: { nullable: true, type: 'string' },
|
|
3828
3841
|
},
|
|
@@ -3865,7 +3878,11 @@ export default {
|
|
|
3865
3878
|
schema: {
|
|
3866
3879
|
properties: {
|
|
3867
3880
|
acs_user_id: { format: 'uuid', type: 'string' },
|
|
3868
|
-
email: {
|
|
3881
|
+
email: {
|
|
3882
|
+
description: 'Deprecated: use email_address.',
|
|
3883
|
+
format: 'email',
|
|
3884
|
+
type: 'string',
|
|
3885
|
+
},
|
|
3869
3886
|
full_name: { type: 'string' },
|
|
3870
3887
|
phone_number: { nullable: true, type: 'string' },
|
|
3871
3888
|
},
|
|
@@ -626,7 +626,9 @@ export interface Routes {
|
|
|
626
626
|
external_type_display_name: string
|
|
627
627
|
is_suspended: boolean
|
|
628
628
|
full_name?: string | undefined
|
|
629
|
+
/** Deprecated: use email_address. */
|
|
629
630
|
email?: string | undefined
|
|
631
|
+
email_address?: string | undefined
|
|
630
632
|
phone_number?: string | undefined
|
|
631
633
|
}>
|
|
632
634
|
}
|
|
@@ -810,6 +812,7 @@ export interface Routes {
|
|
|
810
812
|
acs_system_id: string
|
|
811
813
|
acs_access_group_ids?: string[]
|
|
812
814
|
full_name?: string | undefined
|
|
815
|
+
/** Deprecated: use email_address. */
|
|
813
816
|
email?: string | undefined
|
|
814
817
|
phone_number?: string | undefined
|
|
815
818
|
}
|
|
@@ -825,7 +828,9 @@ export interface Routes {
|
|
|
825
828
|
external_type_display_name: string
|
|
826
829
|
is_suspended: boolean
|
|
827
830
|
full_name?: string | undefined
|
|
831
|
+
/** Deprecated: use email_address. */
|
|
828
832
|
email?: string | undefined
|
|
833
|
+
email_address?: string | undefined
|
|
829
834
|
phone_number?: string | undefined
|
|
830
835
|
}
|
|
831
836
|
}
|
|
@@ -861,7 +866,9 @@ export interface Routes {
|
|
|
861
866
|
external_type_display_name: string
|
|
862
867
|
is_suspended: boolean
|
|
863
868
|
full_name?: string | undefined
|
|
869
|
+
/** Deprecated: use email_address. */
|
|
864
870
|
email?: string | undefined
|
|
871
|
+
email_address?: string | undefined
|
|
865
872
|
phone_number?: string | undefined
|
|
866
873
|
}
|
|
867
874
|
}
|
|
@@ -886,7 +893,9 @@ export interface Routes {
|
|
|
886
893
|
external_type_display_name: string
|
|
887
894
|
is_suspended: boolean
|
|
888
895
|
full_name?: string | undefined
|
|
896
|
+
/** Deprecated: use email_address. */
|
|
889
897
|
email?: string | undefined
|
|
898
|
+
email_address?: string | undefined
|
|
890
899
|
phone_number?: string | undefined
|
|
891
900
|
}>
|
|
892
901
|
}
|
|
@@ -933,6 +942,7 @@ export interface Routes {
|
|
|
933
942
|
commonParams: {
|
|
934
943
|
acs_user_id: string
|
|
935
944
|
full_name?: string | undefined
|
|
945
|
+
/** Deprecated: use email_address. */
|
|
936
946
|
email?: string | undefined
|
|
937
947
|
phone_number?: string | undefined
|
|
938
948
|
}
|
|
@@ -5798,7 +5808,9 @@ export interface Routes {
|
|
|
5798
5808
|
external_type_display_name: string
|
|
5799
5809
|
is_suspended: boolean
|
|
5800
5810
|
full_name?: string | undefined
|
|
5811
|
+
/** Deprecated: use email_address. */
|
|
5801
5812
|
email?: string | undefined
|
|
5813
|
+
email_address?: string | undefined
|
|
5802
5814
|
phone_number?: string | undefined
|
|
5803
5815
|
}>
|
|
5804
5816
|
}
|
|
@@ -19,7 +19,12 @@ const phone_number = z.coerce
|
|
|
19
19
|
|
|
20
20
|
const user_fields = z.object({
|
|
21
21
|
full_name: z.string().optional(),
|
|
22
|
-
email: z
|
|
22
|
+
email: z
|
|
23
|
+
.string()
|
|
24
|
+
.email()
|
|
25
|
+
.optional()
|
|
26
|
+
.describe('Deprecated: use email_address.'),
|
|
27
|
+
email_address: z.string().email().optional(),
|
|
23
28
|
phone_number: phone_number.optional(),
|
|
24
29
|
})
|
|
25
30
|
|