@seamapi/types 1.430.0 → 1.432.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.
Files changed (25) hide show
  1. package/dist/connect.cjs +142 -60
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +519 -166
  4. package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.js +2 -2
  5. package/lib/seam/connect/models/acs/acs-credential-provisioning-automation.js.map +1 -1
  6. package/lib/seam/connect/models/acs/acs-credential.d.ts +6 -0
  7. package/lib/seam/connect/models/acs/acs-credential.js +7 -2
  8. package/lib/seam/connect/models/acs/acs-credential.js.map +1 -1
  9. package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +24 -0
  10. package/lib/seam/connect/models/action-attempts/encode-credential.d.ts +10 -0
  11. package/lib/seam/connect/models/action-attempts/scan-credential.d.ts +14 -0
  12. package/lib/seam/connect/models/phones/phone-session.d.ts +12 -0
  13. package/lib/seam/connect/models/user-identities/user-identity.d.ts +57 -4
  14. package/lib/seam/connect/models/user-identities/user-identity.js +27 -3
  15. package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
  16. package/lib/seam/connect/openapi.d.ts +69 -12
  17. package/lib/seam/connect/openapi.js +118 -55
  18. package/lib/seam/connect/openapi.js.map +1 -1
  19. package/lib/seam/connect/route-types.d.ts +401 -151
  20. package/package.json +1 -1
  21. package/src/lib/seam/connect/models/acs/acs-credential-provisioning-automation.ts +2 -2
  22. package/src/lib/seam/connect/models/acs/acs-credential.ts +9 -2
  23. package/src/lib/seam/connect/models/user-identities/user-identity.ts +37 -3
  24. package/src/lib/seam/connect/openapi.ts +130 -55
  25. package/src/lib/seam/connect/route-types.ts +401 -151
@@ -1,5 +1,42 @@
1
1
  import { z } from 'zod';
2
- export declare const user_identity_error_map: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
2
+ export declare const user_identity_error_map: z.ZodObject<{
3
+ issue_with_acs_user: z.ZodNullable<z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodObject<z.objectUtil.extendShape<{
4
+ created_at: z.ZodString;
5
+ message: z.ZodString;
6
+ }, {
7
+ error_code: z.ZodLiteral<"issue_with_acs_user">;
8
+ acs_user_id: z.ZodString;
9
+ acs_system_id: z.ZodString;
10
+ }>, "strip", z.ZodTypeAny, {
11
+ message: string;
12
+ created_at: string;
13
+ error_code: "issue_with_acs_user";
14
+ acs_system_id: string;
15
+ acs_user_id: string;
16
+ }, {
17
+ message: string;
18
+ created_at: string;
19
+ error_code: "issue_with_acs_user";
20
+ acs_system_id: string;
21
+ acs_user_id: string;
22
+ }>>>>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ issue_with_acs_user?: Record<string, {
25
+ message: string;
26
+ created_at: string;
27
+ error_code: "issue_with_acs_user";
28
+ acs_system_id: string;
29
+ acs_user_id: string;
30
+ }> | null | undefined;
31
+ }, {
32
+ issue_with_acs_user?: Record<string, {
33
+ message: string;
34
+ created_at: string;
35
+ error_code: "issue_with_acs_user";
36
+ acs_system_id: string;
37
+ acs_user_id: string;
38
+ }> | null | undefined;
39
+ }>;
3
40
  export type UserIdentityErrorMap = z.infer<typeof user_identity_error_map>;
4
41
  export declare const user_identity_warning_map: z.ZodObject<{
5
42
  user_identity_being_deleted: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
@@ -39,16 +76,26 @@ export declare const user_identity: z.ZodObject<{
39
76
  full_name: z.ZodNullable<z.ZodString>;
40
77
  created_at: z.ZodString;
41
78
  workspace_id: z.ZodString;
42
- errors: z.ZodArray<z.ZodObject<{
79
+ errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<z.objectUtil.extendShape<{
43
80
  created_at: z.ZodString;
44
81
  message: z.ZodString;
45
- }, "strip", z.ZodTypeAny, {
82
+ }, {
83
+ error_code: z.ZodLiteral<"issue_with_acs_user">;
84
+ acs_user_id: z.ZodString;
85
+ acs_system_id: z.ZodString;
86
+ }>, "strip", z.ZodTypeAny, {
46
87
  message: string;
47
88
  created_at: string;
89
+ error_code: "issue_with_acs_user";
90
+ acs_system_id: string;
91
+ acs_user_id: string;
48
92
  }, {
49
93
  message: string;
50
94
  created_at: string;
51
- }>, "many">;
95
+ error_code: "issue_with_acs_user";
96
+ acs_system_id: string;
97
+ acs_user_id: string;
98
+ }>]>, "many">;
52
99
  warnings: z.ZodArray<z.ZodDiscriminatedUnion<"warning_code", [z.ZodObject<z.objectUtil.extendShape<{
53
100
  created_at: z.ZodString;
54
101
  message: z.ZodString;
@@ -70,6 +117,9 @@ export declare const user_identity: z.ZodObject<{
70
117
  errors: {
71
118
  message: string;
72
119
  created_at: string;
120
+ error_code: "issue_with_acs_user";
121
+ acs_system_id: string;
122
+ acs_user_id: string;
73
123
  }[];
74
124
  warnings: {
75
125
  message: string;
@@ -88,6 +138,9 @@ export declare const user_identity: z.ZodObject<{
88
138
  errors: {
89
139
  message: string;
90
140
  created_at: string;
141
+ error_code: "issue_with_acs_user";
142
+ acs_system_id: string;
143
+ acs_user_id: string;
91
144
  }[];
92
145
  warnings: {
93
146
  message: string;
@@ -25,7 +25,28 @@ const user_identity_being_deleted = common_user_identity_warning
25
25
  .describe('Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.'),
26
26
  })
27
27
  .describe('Indicates that the user identity is currently being deleted.');
28
- export const user_identity_error_map = z.object({});
28
+ const user_identity_issue_with_acs_user = common_user_identity_error
29
+ .extend({
30
+ error_code: z
31
+ .literal('issue_with_acs_user')
32
+ .describe('Unique identifier of the type of error. Enables quick recognition and categorization of the issue.'),
33
+ acs_user_id: z
34
+ .string()
35
+ .uuid()
36
+ .describe('ID of the access system user that has an issue.'),
37
+ acs_system_id: z
38
+ .string()
39
+ .uuid()
40
+ .describe('ID of the access system that the user identity is associated with.'),
41
+ })
42
+ .describe('Indicates that there is an issue with an access system user associated with this user identity.');
43
+ export const user_identity_error_map = z.object({
44
+ issue_with_acs_user: z
45
+ .record(z.string().uuid(), user_identity_issue_with_acs_user)
46
+ .optional()
47
+ .nullable()
48
+ .describe('Map of access system user IDs to issues with the access system user. The key is the access system user ID, and the value is the issue with the access system user.'),
49
+ });
29
50
  const user_identity_warnings = z
30
51
  .discriminatedUnion('warning_code', [user_identity_being_deleted])
31
52
  .describe('Warnings associated with the user identity.');
@@ -34,6 +55,9 @@ export const user_identity_warning_map = z.object({
34
55
  .optional()
35
56
  .nullable(),
36
57
  });
58
+ const user_identity_errors = z
59
+ .discriminatedUnion('error_code', [user_identity_issue_with_acs_user])
60
+ .describe('Errors associated with the user identity.');
37
61
  export const user_identity = z.object({
38
62
  user_identity_id: z.string().uuid().describe('ID of the user identity.'),
39
63
  user_identity_key: z
@@ -60,8 +84,8 @@ export const user_identity = z.object({
60
84
  .uuid()
61
85
  .describe('ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) that contains the user identity.'),
62
86
  errors: z
63
- .array(common_user_identity_error)
64
- .describe('Array of errors associated with the user identity. Each error object within the array contains two fields: "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.'),
87
+ .array(user_identity_errors)
88
+ .describe('Array of errors associated with the user identity. Each error object within the array contains fields like "error_code" and "message." "error_code" is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.'),
65
89
  warnings: z
66
90
  .array(user_identity_warnings)
67
91
  .describe('Array of warnings associated with the user identity. Each warning object within the array contains two fields: "warning_code" and "message." "warning_code" is a string that uniquely identifies the type of warning, enabling quick recognition and categorization of the issue. "message" provides a more detailed description of the warning, offering insights into the issue and potentially how to rectify it.'),
@@ -1 +1 @@
1
- {"version":3,"file":"user-identity.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/user-identities/user-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,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EAAE,CAAC;SACjB,MAAM,EAAE;SACR,GAAG,CAAC,CAAC,CAAC;SACN,QAAQ,EAAE;SACV,QAAQ,CAAC,mCAAmC,CAAC;IAChD,aAAa,EAAE,CAAC;SACb,MAAM,EAAE;SACR,KAAK,EAAE;SACP,QAAQ,EAAE;SACV,QAAQ,CAAC,6CAA6C,CAAC;IAC1D,YAAY,EAAE,YAAY;SACvB,QAAQ,EAAE;SACV,QAAQ,CACP,kIAAkI,CACnI;IACH,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC;IAC/B,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,QAAQ,EAAE;IACvC,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,uDAAuD,CAAC;IACpE,YAAY,EAAE,CAAC;SACZ,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CACP,8GAA8G,CAC/G;IACH,MAAM,EAAE,CAAC;SACN,KAAK,CAAC,0BAA0B,CAAC;SACjC,QAAQ,CACP,0YAA0Y,CAC3Y;IACH,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,sBAAsB,CAAC;SAC7B,QAAQ,CACP,sZAAsZ,CACvZ;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
1
+ {"version":3,"file":"user-identity.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/user-identities/user-identity.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,EAAE,MAAM,oBAAoB,CAAA;AAEjD,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,OAAO,EAA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AC;SACR,KAAK,CAAC,sBAAsB,CAAC;SAC7B,QAAQ,CACP,sZAAsZ,CACvZ;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
@@ -772,6 +772,11 @@ declare const _default: {
772
772
  description: string;
773
773
  type: string;
774
774
  };
775
+ user_identity_id: {
776
+ description: string;
777
+ format: string;
778
+ type: string;
779
+ };
775
780
  visionline_metadata: {
776
781
  description: string;
777
782
  properties: {
@@ -2322,6 +2327,11 @@ declare const _default: {
2322
2327
  description: string;
2323
2328
  type: string;
2324
2329
  };
2330
+ user_identity_id: {
2331
+ description: string;
2332
+ format: string;
2333
+ type: string;
2334
+ };
2325
2335
  visionline_metadata: {
2326
2336
  description: string;
2327
2337
  properties: {
@@ -2574,6 +2584,11 @@ declare const _default: {
2574
2584
  description: string;
2575
2585
  type: string;
2576
2586
  };
2587
+ user_identity_id: {
2588
+ description: string;
2589
+ format: string;
2590
+ type: string;
2591
+ };
2577
2592
  visionline_metadata: {
2578
2593
  description: string;
2579
2594
  properties: {
@@ -2938,6 +2953,11 @@ declare const _default: {
2938
2953
  description: string;
2939
2954
  type: string;
2940
2955
  };
2956
+ user_identity_id: {
2957
+ description: string;
2958
+ format: string;
2959
+ type: string;
2960
+ };
2941
2961
  visionline_metadata: {
2942
2962
  description: string;
2943
2963
  properties: {
@@ -3190,6 +3210,11 @@ declare const _default: {
3190
3210
  description: string;
3191
3211
  type: string;
3192
3212
  };
3213
+ user_identity_id: {
3214
+ description: string;
3215
+ format: string;
3216
+ type: string;
3217
+ };
3193
3218
  visionline_metadata: {
3194
3219
  description: string;
3195
3220
  properties: {
@@ -10458,6 +10483,11 @@ declare const _default: {
10458
10483
  description: string;
10459
10484
  type: string;
10460
10485
  };
10486
+ user_identity_id: {
10487
+ description: string;
10488
+ format: string;
10489
+ type: string;
10490
+ };
10461
10491
  visionline_metadata: {
10462
10492
  description: string;
10463
10493
  properties: {
@@ -11331,6 +11361,11 @@ declare const _default: {
11331
11361
  description: string;
11332
11362
  type: string;
11333
11363
  };
11364
+ user_identity_id: {
11365
+ description: string;
11366
+ format: string;
11367
+ type: string;
11368
+ };
11334
11369
  visionline_metadata: {
11335
11370
  description: string;
11336
11371
  properties: {
@@ -12453,19 +12488,41 @@ declare const _default: {
12453
12488
  errors: {
12454
12489
  description: string;
12455
12490
  items: {
12456
- properties: {
12457
- created_at: {
12458
- description: string;
12459
- format: string;
12460
- type: string;
12461
- };
12462
- message: {
12463
- description: string;
12464
- type: string;
12465
- };
12491
+ description: string;
12492
+ discriminator: {
12493
+ propertyName: string;
12466
12494
  };
12467
- required: string[];
12468
- type: string;
12495
+ oneOf: {
12496
+ description: string;
12497
+ properties: {
12498
+ acs_system_id: {
12499
+ description: string;
12500
+ format: string;
12501
+ type: string;
12502
+ };
12503
+ acs_user_id: {
12504
+ description: string;
12505
+ format: string;
12506
+ type: string;
12507
+ };
12508
+ created_at: {
12509
+ description: string;
12510
+ format: string;
12511
+ type: string;
12512
+ };
12513
+ error_code: {
12514
+ description: string;
12515
+ enum: string[];
12516
+ type: string;
12517
+ };
12518
+ message: {
12519
+ description: string;
12520
+ type: string;
12521
+ };
12522
+ };
12523
+ required: string[];
12524
+ type: string;
12525
+ }[];
12469
12526
  };
12470
12527
  type: string;
12471
12528
  };