@seamapi/types 1.1007.0 → 1.1008.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/lib/seam/connect/models/phones/phone-session.d.ts +10 -0
- package/lib/seam/connect/models/user-identities/user-identity.d.ts +12 -0
- package/lib/seam/connect/models/user-identities/user-identity.js +6 -0
- package/lib/seam/connect/models/user-identities/user-identity.js.map +1 -1
- package/lib/seam/connect/openapi.js +118 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +52 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/user-identities/user-identity.ts +10 -0
- package/src/lib/seam/connect/openapi.ts +128 -0
- package/src/lib/seam/connect/route-types.ts +54 -0
|
@@ -3083,6 +3083,8 @@ export declare const phone_session: z.ZodObject<{
|
|
|
3083
3083
|
phone_number: z.ZodNullable<z.ZodString>;
|
|
3084
3084
|
display_name: z.ZodString;
|
|
3085
3085
|
full_name: z.ZodNullable<z.ZodString>;
|
|
3086
|
+
merged_user_identity_ids: z.ZodArray<z.ZodString, "many">;
|
|
3087
|
+
merged_user_identity_keys: z.ZodArray<z.ZodString, "many">;
|
|
3086
3088
|
created_at: z.ZodString;
|
|
3087
3089
|
workspace_id: z.ZodString;
|
|
3088
3090
|
errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
|
|
@@ -3158,6 +3160,8 @@ export declare const phone_session: z.ZodObject<{
|
|
|
3158
3160
|
full_name: string | null;
|
|
3159
3161
|
phone_number: string | null;
|
|
3160
3162
|
user_identity_key: string | null;
|
|
3163
|
+
merged_user_identity_ids: string[];
|
|
3164
|
+
merged_user_identity_keys: string[];
|
|
3161
3165
|
acs_user_ids: string[];
|
|
3162
3166
|
}, {
|
|
3163
3167
|
display_name: string;
|
|
@@ -3184,6 +3188,8 @@ export declare const phone_session: z.ZodObject<{
|
|
|
3184
3188
|
full_name: string | null;
|
|
3185
3189
|
phone_number: string | null;
|
|
3186
3190
|
user_identity_key: string | null;
|
|
3191
|
+
merged_user_identity_ids: string[];
|
|
3192
|
+
merged_user_identity_keys: string[];
|
|
3187
3193
|
acs_user_ids: string[];
|
|
3188
3194
|
}>;
|
|
3189
3195
|
workspace_id: z.ZodString;
|
|
@@ -3419,6 +3425,8 @@ export declare const phone_session: z.ZodObject<{
|
|
|
3419
3425
|
full_name: string | null;
|
|
3420
3426
|
phone_number: string | null;
|
|
3421
3427
|
user_identity_key: string | null;
|
|
3428
|
+
merged_user_identity_ids: string[];
|
|
3429
|
+
merged_user_identity_keys: string[];
|
|
3422
3430
|
acs_user_ids: string[];
|
|
3423
3431
|
};
|
|
3424
3432
|
is_sandbox_workspace: boolean;
|
|
@@ -3653,6 +3661,8 @@ export declare const phone_session: z.ZodObject<{
|
|
|
3653
3661
|
full_name: string | null;
|
|
3654
3662
|
phone_number: string | null;
|
|
3655
3663
|
user_identity_key: string | null;
|
|
3664
|
+
merged_user_identity_ids: string[];
|
|
3665
|
+
merged_user_identity_keys: string[];
|
|
3656
3666
|
acs_user_ids: string[];
|
|
3657
3667
|
};
|
|
3658
3668
|
is_sandbox_workspace: boolean;
|
|
@@ -98,6 +98,8 @@ export declare const user_identity: z.ZodObject<{
|
|
|
98
98
|
phone_number: z.ZodNullable<z.ZodString>;
|
|
99
99
|
display_name: z.ZodString;
|
|
100
100
|
full_name: z.ZodNullable<z.ZodString>;
|
|
101
|
+
merged_user_identity_ids: z.ZodArray<z.ZodString, "many">;
|
|
102
|
+
merged_user_identity_keys: z.ZodArray<z.ZodString, "many">;
|
|
101
103
|
created_at: z.ZodString;
|
|
102
104
|
workspace_id: z.ZodString;
|
|
103
105
|
errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
|
|
@@ -173,6 +175,8 @@ export declare const user_identity: z.ZodObject<{
|
|
|
173
175
|
full_name: string | null;
|
|
174
176
|
phone_number: string | null;
|
|
175
177
|
user_identity_key: string | null;
|
|
178
|
+
merged_user_identity_ids: string[];
|
|
179
|
+
merged_user_identity_keys: string[];
|
|
176
180
|
acs_user_ids: string[];
|
|
177
181
|
}, {
|
|
178
182
|
display_name: string;
|
|
@@ -199,6 +203,8 @@ export declare const user_identity: z.ZodObject<{
|
|
|
199
203
|
full_name: string | null;
|
|
200
204
|
phone_number: string | null;
|
|
201
205
|
user_identity_key: string | null;
|
|
206
|
+
merged_user_identity_ids: string[];
|
|
207
|
+
merged_user_identity_keys: string[];
|
|
202
208
|
acs_user_ids: string[];
|
|
203
209
|
}>;
|
|
204
210
|
export type UserIdentity = z.output<typeof user_identity>;
|
|
@@ -209,6 +215,8 @@ export declare const unmanaged_user_identity: z.ZodObject<Omit<{
|
|
|
209
215
|
phone_number: z.ZodNullable<z.ZodString>;
|
|
210
216
|
display_name: z.ZodString;
|
|
211
217
|
full_name: z.ZodNullable<z.ZodString>;
|
|
218
|
+
merged_user_identity_ids: z.ZodArray<z.ZodString, "many">;
|
|
219
|
+
merged_user_identity_keys: z.ZodArray<z.ZodString, "many">;
|
|
212
220
|
created_at: z.ZodString;
|
|
213
221
|
workspace_id: z.ZodString;
|
|
214
222
|
errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<{
|
|
@@ -283,6 +291,8 @@ export declare const unmanaged_user_identity: z.ZodObject<Omit<{
|
|
|
283
291
|
email_address: string | null;
|
|
284
292
|
full_name: string | null;
|
|
285
293
|
phone_number: string | null;
|
|
294
|
+
merged_user_identity_ids: string[];
|
|
295
|
+
merged_user_identity_keys: string[];
|
|
286
296
|
acs_user_ids: string[];
|
|
287
297
|
}, {
|
|
288
298
|
display_name: string;
|
|
@@ -308,6 +318,8 @@ export declare const unmanaged_user_identity: z.ZodObject<Omit<{
|
|
|
308
318
|
email_address: string | null;
|
|
309
319
|
full_name: string | null;
|
|
310
320
|
phone_number: string | null;
|
|
321
|
+
merged_user_identity_ids: string[];
|
|
322
|
+
merged_user_identity_keys: string[];
|
|
311
323
|
acs_user_ids: string[];
|
|
312
324
|
}>;
|
|
313
325
|
export type UnmanagedUserIdentity = z.output<typeof unmanaged_user_identity>;
|
|
@@ -94,6 +94,12 @@ export const user_identity = z.object({
|
|
|
94
94
|
.min(1)
|
|
95
95
|
.nullable()
|
|
96
96
|
.describe('Full name of the user associated with the user identity.'),
|
|
97
|
+
merged_user_identity_ids: z
|
|
98
|
+
.array(z.string().uuid())
|
|
99
|
+
.describe('IDs that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.'),
|
|
100
|
+
merged_user_identity_keys: z
|
|
101
|
+
.array(z.string())
|
|
102
|
+
.describe('Keys that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.'),
|
|
97
103
|
created_at: z
|
|
98
104
|
.string()
|
|
99
105
|
.datetime()
|
|
@@ -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,EAAE,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAEvD,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC,CAAA;AAEF,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,0GAA0G,CAC3G;CACJ,CAAC,CAAA;AAEF,MAAM,2BAA2B,GAAG,4BAA4B;KAC7D,MAAM,CAAC;IACN,YAAY,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sZAAsZ,CACvZ;IACH,YAAY,EAAE,CAAC;SACZ,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,oEAAoE,CACrE;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA;AAIF,kGAAkG;AAClG,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,IAAI,CAAC;IACxD,iBAAiB,EAAE,IAAI;CACxB,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMT,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,kBAAkB,EAAE,MAAM,oBAAoB,CAAA;AAEvD,MAAM,0BAA0B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC1C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,gDAAgD,CAAC;IAC7D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC,CAAA;AAEF,MAAM,4BAA4B,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,kDAAkD,CAAC;IAC/D,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,0GAA0G,CAC3G;CACJ,CAAC,CAAA;AAEF,MAAM,2BAA2B,GAAG,4BAA4B;KAC7D,MAAM,CAAC;IACN,YAAY,EAAE,CAAC;SACZ,OAAO,CAAC,eAAe,CAAC;SACxB,QAAQ,CACP,sGAAsG,CACvG;CACJ,CAAC;KACD,QAAQ,CAAC,8DAA8D,CAAC,CAAA;AAE3E,MAAM,6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P,0YAA0Y,CAC3Y;IACH,QAAQ,EAAE,CAAC;SACR,KAAK,CAAC,sBAAsB,CAAC;SAC7B,QAAQ,CACP,sZAAsZ,CACvZ;IACH,YAAY,EAAE,CAAC;SACZ,KAAK,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC;SACxB,QAAQ,CACP,oEAAoE,CACrE;CACJ,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA;AAIF,kGAAkG;AAClG,MAAM,CAAC,MAAM,uBAAuB,GAAG,aAAa,CAAC,IAAI,CAAC;IACxD,iBAAiB,EAAE,IAAI;CACxB,CAAC,CAAC,QAAQ,CAAC;;;;;;GAMT,CAAC,CAAA"}
|
|
@@ -26521,6 +26521,16 @@ const openapi = {
|
|
|
26521
26521
|
nullable: true,
|
|
26522
26522
|
type: 'string',
|
|
26523
26523
|
},
|
|
26524
|
+
merged_user_identity_ids: {
|
|
26525
|
+
description: 'IDs that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.',
|
|
26526
|
+
items: { format: 'uuid', type: 'string' },
|
|
26527
|
+
type: 'array',
|
|
26528
|
+
},
|
|
26529
|
+
merged_user_identity_keys: {
|
|
26530
|
+
description: 'Keys that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.',
|
|
26531
|
+
items: { type: 'string' },
|
|
26532
|
+
type: 'array',
|
|
26533
|
+
},
|
|
26524
26534
|
phone_number: {
|
|
26525
26535
|
description: 'Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).',
|
|
26526
26536
|
nullable: true,
|
|
@@ -26604,6 +26614,8 @@ const openapi = {
|
|
|
26604
26614
|
'phone_number',
|
|
26605
26615
|
'display_name',
|
|
26606
26616
|
'full_name',
|
|
26617
|
+
'merged_user_identity_ids',
|
|
26618
|
+
'merged_user_identity_keys',
|
|
26607
26619
|
'created_at',
|
|
26608
26620
|
'workspace_id',
|
|
26609
26621
|
'errors',
|
|
@@ -32370,6 +32382,16 @@ const openapi = {
|
|
|
32370
32382
|
nullable: true,
|
|
32371
32383
|
type: 'string',
|
|
32372
32384
|
},
|
|
32385
|
+
merged_user_identity_ids: {
|
|
32386
|
+
description: 'IDs that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.',
|
|
32387
|
+
items: { format: 'uuid', type: 'string' },
|
|
32388
|
+
type: 'array',
|
|
32389
|
+
},
|
|
32390
|
+
merged_user_identity_keys: {
|
|
32391
|
+
description: 'Keys that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.',
|
|
32392
|
+
items: { type: 'string' },
|
|
32393
|
+
type: 'array',
|
|
32394
|
+
},
|
|
32373
32395
|
phone_number: {
|
|
32374
32396
|
description: 'Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).',
|
|
32375
32397
|
nullable: true,
|
|
@@ -32444,6 +32466,8 @@ const openapi = {
|
|
|
32444
32466
|
'phone_number',
|
|
32445
32467
|
'display_name',
|
|
32446
32468
|
'full_name',
|
|
32469
|
+
'merged_user_identity_ids',
|
|
32470
|
+
'merged_user_identity_keys',
|
|
32447
32471
|
'created_at',
|
|
32448
32472
|
'workspace_id',
|
|
32449
32473
|
'errors',
|
|
@@ -32532,6 +32556,16 @@ const openapi = {
|
|
|
32532
32556
|
nullable: true,
|
|
32533
32557
|
type: 'string',
|
|
32534
32558
|
},
|
|
32559
|
+
merged_user_identity_ids: {
|
|
32560
|
+
description: 'IDs that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.',
|
|
32561
|
+
items: { format: 'uuid', type: 'string' },
|
|
32562
|
+
type: 'array',
|
|
32563
|
+
},
|
|
32564
|
+
merged_user_identity_keys: {
|
|
32565
|
+
description: 'Keys that other user identities used to have before they were merged into this user identity. Looking up any of them returns this user identity.',
|
|
32566
|
+
items: { type: 'string' },
|
|
32567
|
+
type: 'array',
|
|
32568
|
+
},
|
|
32535
32569
|
phone_number: {
|
|
32536
32570
|
description: 'Unique phone number for the user identity in [E.164 format](https://www.itu.int/rec/T-REC-E.164/en) (for example, +15555550100).',
|
|
32537
32571
|
nullable: true,
|
|
@@ -32613,6 +32647,8 @@ const openapi = {
|
|
|
32613
32647
|
'phone_number',
|
|
32614
32648
|
'display_name',
|
|
32615
32649
|
'full_name',
|
|
32650
|
+
'merged_user_identity_ids',
|
|
32651
|
+
'merged_user_identity_keys',
|
|
32616
32652
|
'created_at',
|
|
32617
32653
|
'workspace_id',
|
|
32618
32654
|
'errors',
|
|
@@ -79526,6 +79562,88 @@ const openapi = {
|
|
|
79526
79562
|
'x-title': 'List ACS Users Associated with a User Identity',
|
|
79527
79563
|
},
|
|
79528
79564
|
},
|
|
79565
|
+
'/user_identities/merge': {
|
|
79566
|
+
post: {
|
|
79567
|
+
description: 'Merges one or more [user identities](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity) into a primary user identity, for when the same person ended up with more than one user identity.\n\nThe primary user identity takes on any email address or phone number it was missing from the user identities merged into it, and the merged user identities are then deleted. Their IDs and keys keep working: looking one up returns the primary user identity, and they are listed on it as `merged_user_identity_ids` and `merged_user_identity_keys`.\n\nAccess grants, access system users, client sessions and other resources belonging to the merged user identities are moved to the primary user identity.\n\nIdentify the user identities either by ID or by key, but not both in the same request. Repeating a merge that has already been applied makes no further changes.',
|
|
79568
|
+
operationId: 'userIdentitiesMergePost',
|
|
79569
|
+
requestBody: {
|
|
79570
|
+
content: {
|
|
79571
|
+
'application/json': {
|
|
79572
|
+
schema: {
|
|
79573
|
+
oneOf: [
|
|
79574
|
+
{
|
|
79575
|
+
properties: {
|
|
79576
|
+
merged_user_identity_ids: {
|
|
79577
|
+
description: 'IDs of the user identities to merge into the primary user identity. These user identities are deleted.',
|
|
79578
|
+
items: { format: 'uuid', type: 'string' },
|
|
79579
|
+
maxItems: 20,
|
|
79580
|
+
minItems: 1,
|
|
79581
|
+
type: 'array',
|
|
79582
|
+
},
|
|
79583
|
+
user_identity_id: {
|
|
79584
|
+
description: 'ID of the primary user identity to keep.',
|
|
79585
|
+
format: 'uuid',
|
|
79586
|
+
type: 'string',
|
|
79587
|
+
},
|
|
79588
|
+
},
|
|
79589
|
+
required: ['user_identity_id', 'merged_user_identity_ids'],
|
|
79590
|
+
type: 'object',
|
|
79591
|
+
},
|
|
79592
|
+
{
|
|
79593
|
+
properties: {
|
|
79594
|
+
merged_user_identity_keys: {
|
|
79595
|
+
description: 'Keys of the user identities to merge into the primary user identity. These user identities are deleted.',
|
|
79596
|
+
items: { minLength: 1, type: 'string' },
|
|
79597
|
+
maxItems: 20,
|
|
79598
|
+
minItems: 1,
|
|
79599
|
+
type: 'array',
|
|
79600
|
+
},
|
|
79601
|
+
user_identity_key: {
|
|
79602
|
+
description: 'Key of the primary user identity to keep.',
|
|
79603
|
+
minLength: 1,
|
|
79604
|
+
type: 'string',
|
|
79605
|
+
},
|
|
79606
|
+
},
|
|
79607
|
+
required: [
|
|
79608
|
+
'user_identity_key',
|
|
79609
|
+
'merged_user_identity_keys',
|
|
79610
|
+
],
|
|
79611
|
+
type: 'object',
|
|
79612
|
+
},
|
|
79613
|
+
],
|
|
79614
|
+
},
|
|
79615
|
+
},
|
|
79616
|
+
},
|
|
79617
|
+
},
|
|
79618
|
+
responses: {
|
|
79619
|
+
'200': {
|
|
79620
|
+
content: {
|
|
79621
|
+
'application/json': {
|
|
79622
|
+
schema: {
|
|
79623
|
+
properties: { ok: { type: 'boolean' } },
|
|
79624
|
+
required: ['ok'],
|
|
79625
|
+
type: 'object',
|
|
79626
|
+
},
|
|
79627
|
+
},
|
|
79628
|
+
},
|
|
79629
|
+
description: 'OK',
|
|
79630
|
+
},
|
|
79631
|
+
'400': { description: 'Bad Request' },
|
|
79632
|
+
'401': { description: 'Unauthorized' },
|
|
79633
|
+
},
|
|
79634
|
+
security: [
|
|
79635
|
+
{ api_key: [] },
|
|
79636
|
+
{ pat_with_workspace: [] },
|
|
79637
|
+
{ console_session_with_workspace: [] },
|
|
79638
|
+
],
|
|
79639
|
+
summary: '/user_identities/merge',
|
|
79640
|
+
tags: ['/user_identities'],
|
|
79641
|
+
'x-fern-sdk-group-name': ['user_identities'],
|
|
79642
|
+
'x-fern-sdk-method-name': 'merge',
|
|
79643
|
+
'x-response-key': null,
|
|
79644
|
+
'x-title': 'Merge User Identities',
|
|
79645
|
+
},
|
|
79646
|
+
},
|
|
79529
79647
|
'/user_identities/remove_acs_user': {
|
|
79530
79648
|
delete: {
|
|
79531
79649
|
description: 'Removes a specified [access system user](https://docs.seam.co/low-level-apis/access-systems/user-management) from a specified [user identity](https://docs.seam.co/capability-guides/mobile-access/managing-mobile-app-user-accounts-with-user-identities#what-is-a-user-identity).',
|