@seamapi/types 1.178.0 → 1.179.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.
@@ -2311,16 +2311,19 @@ type SeamEventType = SeamEvent['event_type'];
2311
2311
  declare const workspace: z.ZodObject<{
2312
2312
  workspace_id: z.ZodString;
2313
2313
  name: z.ZodString;
2314
+ company_name: z.ZodString;
2314
2315
  is_sandbox: z.ZodBoolean;
2315
- connect_partner_name: z.ZodNullable<z.ZodString>;
2316
+ connect_partner_name: z.ZodNullable<z.ZodNullable<z.ZodString>>;
2316
2317
  }, "strip", z.ZodTypeAny, {
2317
2318
  name: string;
2318
2319
  workspace_id: string;
2320
+ company_name: string;
2319
2321
  is_sandbox: boolean;
2320
2322
  connect_partner_name: string | null;
2321
2323
  }, {
2322
2324
  name: string;
2323
2325
  workspace_id: string;
2326
+ company_name: string;
2324
2327
  is_sandbox: boolean;
2325
2328
  connect_partner_name: string | null;
2326
2329
  }>;
@@ -5618,7 +5621,11 @@ declare const _default: {
5618
5621
  };
5619
5622
  workspace: {
5620
5623
  properties: {
5624
+ company_name: {
5625
+ type: string;
5626
+ };
5621
5627
  connect_partner_name: {
5628
+ description: string;
5622
5629
  nullable: boolean;
5623
5630
  type: string;
5624
5631
  };
@@ -17944,8 +17951,12 @@ declare const _default: {
17944
17951
  'application/json': {
17945
17952
  schema: {
17946
17953
  properties: {
17954
+ company_name: {
17955
+ type: string;
17956
+ };
17947
17957
  connect_partner_name: {
17948
17958
  description: string;
17959
+ nullable: boolean;
17949
17960
  type: string;
17950
17961
  };
17951
17962
  is_sandbox: {
@@ -36370,8 +36381,13 @@ interface Routes {
36370
36381
  queryParams: {};
36371
36382
  jsonBody: {
36372
36383
  name: string;
36373
- /** The name shown inside the connect webview */
36374
- connect_partner_name: string;
36384
+ company_name?: string | undefined;
36385
+ /**
36386
+ ---
36387
+ deprecated: use company_name
36388
+ ---
36389
+ */
36390
+ connect_partner_name?: ((string | null) | null) | undefined;
36375
36391
  is_sandbox?: boolean;
36376
36392
  webview_primary_button_color?: string | undefined;
36377
36393
  webview_logo_shape?: ('circle' | 'square') | undefined;
@@ -36382,8 +36398,14 @@ interface Routes {
36382
36398
  workspace: {
36383
36399
  workspace_id: string;
36384
36400
  name: string;
36401
+ company_name: string;
36385
36402
  is_sandbox: boolean;
36386
- connect_partner_name: string | null;
36403
+ /**
36404
+ ---
36405
+ deprecated: use company_name
36406
+ ---
36407
+ */
36408
+ connect_partner_name: (string | null) | null;
36387
36409
  };
36388
36410
  };
36389
36411
  };
@@ -36398,8 +36420,14 @@ interface Routes {
36398
36420
  workspace: {
36399
36421
  workspace_id: string;
36400
36422
  name: string;
36423
+ company_name: string;
36401
36424
  is_sandbox: boolean;
36402
- connect_partner_name: string | null;
36425
+ /**
36426
+ ---
36427
+ deprecated: use company_name
36428
+ ---
36429
+ */
36430
+ connect_partner_name: (string | null) | null;
36403
36431
  };
36404
36432
  };
36405
36433
  };
@@ -36414,8 +36442,14 @@ interface Routes {
36414
36442
  workspaces: Array<{
36415
36443
  workspace_id: string;
36416
36444
  name: string;
36445
+ company_name: string;
36417
36446
  is_sandbox: boolean;
36418
- connect_partner_name: string | null;
36447
+ /**
36448
+ ---
36449
+ deprecated: use company_name
36450
+ ---
36451
+ */
36452
+ connect_partner_name: (string | null) | null;
36419
36453
  }>;
36420
36454
  };
36421
36455
  };
@@ -4,5 +4,6 @@ export * from './credential.js';
4
4
  export * from './credential_pool.js';
5
5
  export * from './credential_provisioning_automation.js';
6
6
  export * from './entrance.js';
7
+ export * from './seam-bridge.js';
7
8
  export * from './system.js';
8
9
  export * from './user.js';
@@ -4,6 +4,7 @@ export * from './credential.js';
4
4
  export * from './credential_pool.js';
5
5
  export * from './credential_provisioning_automation.js';
6
6
  export * from './entrance.js';
7
+ export * from './seam-bridge.js';
7
8
  export * from './system.js';
8
9
  export * from './user.js';
9
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,kCAAkC,CAAA;AAChD,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,yCAAyC,CAAA;AACvD,cAAc,eAAe,CAAA;AAC7B,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/index.ts"],"names":[],"mappings":"AAAA,cAAc,mBAAmB,CAAA;AACjC,cAAc,kCAAkC,CAAA;AAChD,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,yCAAyC,CAAA;AACvD,cAAc,eAAe,CAAA;AAC7B,cAAc,kBAAkB,CAAA;AAChC,cAAc,aAAa,CAAA;AAC3B,cAAc,WAAW,CAAA"}
@@ -0,0 +1,112 @@
1
+ import { z } from 'zod';
2
+ export declare const seam_bridge_error_map: z.ZodObject<{
3
+ bridge_tunnel_failed: z.ZodNullable<z.ZodOptional<z.ZodObject<{
4
+ message: z.ZodString;
5
+ created_at: z.ZodString;
6
+ error_code: z.ZodLiteral<"bridge_tunnel_failed">;
7
+ }, "strip", z.ZodTypeAny, {
8
+ message: string;
9
+ created_at: string;
10
+ error_code: "bridge_tunnel_failed";
11
+ }, {
12
+ message: string;
13
+ created_at: string;
14
+ error_code: "bridge_tunnel_failed";
15
+ }>>>;
16
+ bridge_proxy_failure: z.ZodNullable<z.ZodOptional<z.ZodObject<{
17
+ message: z.ZodString;
18
+ created_at: z.ZodString;
19
+ error_code: z.ZodLiteral<"bridge_proxy_failure">;
20
+ }, "strip", z.ZodTypeAny, {
21
+ message: string;
22
+ created_at: string;
23
+ error_code: "bridge_proxy_failure";
24
+ }, {
25
+ message: string;
26
+ created_at: string;
27
+ error_code: "bridge_proxy_failure";
28
+ }>>>;
29
+ connection_failure: z.ZodNullable<z.ZodOptional<z.ZodObject<{
30
+ message: z.ZodString;
31
+ created_at: z.ZodString;
32
+ error_code: z.ZodLiteral<"connection_failure">;
33
+ }, "strip", z.ZodTypeAny, {
34
+ message: string;
35
+ created_at: string;
36
+ error_code: "connection_failure";
37
+ }, {
38
+ message: string;
39
+ created_at: string;
40
+ error_code: "connection_failure";
41
+ }>>>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ bridge_tunnel_failed?: {
44
+ message: string;
45
+ created_at: string;
46
+ error_code: "bridge_tunnel_failed";
47
+ } | null | undefined;
48
+ bridge_proxy_failure?: {
49
+ message: string;
50
+ created_at: string;
51
+ error_code: "bridge_proxy_failure";
52
+ } | null | undefined;
53
+ connection_failure?: {
54
+ message: string;
55
+ created_at: string;
56
+ error_code: "connection_failure";
57
+ } | null | undefined;
58
+ }, {
59
+ bridge_tunnel_failed?: {
60
+ message: string;
61
+ created_at: string;
62
+ error_code: "bridge_tunnel_failed";
63
+ } | null | undefined;
64
+ bridge_proxy_failure?: {
65
+ message: string;
66
+ created_at: string;
67
+ error_code: "bridge_proxy_failure";
68
+ } | null | undefined;
69
+ connection_failure?: {
70
+ message: string;
71
+ created_at: string;
72
+ error_code: "connection_failure";
73
+ } | null | undefined;
74
+ }>;
75
+ export declare const seam_bridge_error: z.ZodUnion<[z.ZodObject<{
76
+ message: z.ZodString;
77
+ created_at: z.ZodString;
78
+ error_code: z.ZodLiteral<"connection_failure">;
79
+ }, "strip", z.ZodTypeAny, {
80
+ message: string;
81
+ created_at: string;
82
+ error_code: "connection_failure";
83
+ }, {
84
+ message: string;
85
+ created_at: string;
86
+ error_code: "connection_failure";
87
+ }>, z.ZodObject<{
88
+ message: z.ZodString;
89
+ created_at: z.ZodString;
90
+ error_code: z.ZodLiteral<"bridge_proxy_failure">;
91
+ }, "strip", z.ZodTypeAny, {
92
+ message: string;
93
+ created_at: string;
94
+ error_code: "bridge_proxy_failure";
95
+ }, {
96
+ message: string;
97
+ created_at: string;
98
+ error_code: "bridge_proxy_failure";
99
+ }>, z.ZodObject<{
100
+ message: z.ZodString;
101
+ created_at: z.ZodString;
102
+ error_code: z.ZodLiteral<"bridge_tunnel_failed">;
103
+ }, "strip", z.ZodTypeAny, {
104
+ message: string;
105
+ created_at: string;
106
+ error_code: "bridge_tunnel_failed";
107
+ }, {
108
+ message: string;
109
+ created_at: string;
110
+ error_code: "bridge_tunnel_failed";
111
+ }>]>;
112
+ export type SeamBridgeErrorMap = z.infer<typeof seam_bridge_error_map>;
@@ -0,0 +1,25 @@
1
+ import { z } from 'zod';
2
+ const common_seam_bridge_error = z.object({
3
+ created_at: z.string().datetime(),
4
+ message: z.string(),
5
+ });
6
+ const connection_failure = common_seam_bridge_error.extend({
7
+ error_code: z.literal('connection_failure'),
8
+ });
9
+ const bridge_tunnel_failed = common_seam_bridge_error.extend({
10
+ error_code: z.literal('bridge_tunnel_failed'),
11
+ });
12
+ const bridge_proxy_failure = common_seam_bridge_error.extend({
13
+ error_code: z.literal('bridge_proxy_failure'),
14
+ });
15
+ export const seam_bridge_error_map = z.object({
16
+ bridge_tunnel_failed: bridge_tunnel_failed.optional().nullable(),
17
+ bridge_proxy_failure: bridge_proxy_failure.optional().nullable(),
18
+ connection_failure: connection_failure.optional().nullable(),
19
+ });
20
+ export const seam_bridge_error = z.union([
21
+ connection_failure,
22
+ bridge_proxy_failure,
23
+ bridge_tunnel_failed,
24
+ ]);
25
+ //# sourceMappingURL=seam-bridge.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"seam-bridge.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/seam-bridge.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,wBAAwB,GAAG,CAAC,CAAC,MAAM,CAAC;IACxC,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;CACpB,CAAC,CAAA;AAEF,MAAM,kBAAkB,GAAG,wBAAwB,CAAC,MAAM,CAAC;IACzD,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;CAC5C,CAAC,CAAA;AACF,MAAM,oBAAoB,GAAG,wBAAwB,CAAC,MAAM,CAAC;IAC3D,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC,CAAA;AACF,MAAM,oBAAoB,GAAG,wBAAwB,CAAC,MAAM,CAAC;IAC3D,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC;CAC9C,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,oBAAoB,EAAE,oBAAoB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChE,oBAAoB,EAAE,oBAAoB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;IAChE,kBAAkB,EAAE,kBAAkB,CAAC,QAAQ,EAAE,CAAC,QAAQ,EAAE;CAC7D,CAAC,CAAA;AAEF,MAAM,CAAC,MAAM,iBAAiB,GAAG,CAAC,CAAC,KAAK,CAAC;IACvC,kBAAkB;IAClB,oBAAoB;IACpB,oBAAoB;CACrB,CAAC,CAAA"}
@@ -2,16 +2,19 @@ import { z } from 'zod';
2
2
  export declare const workspace: z.ZodObject<{
3
3
  workspace_id: z.ZodString;
4
4
  name: z.ZodString;
5
+ company_name: z.ZodString;
5
6
  is_sandbox: z.ZodBoolean;
6
- connect_partner_name: z.ZodNullable<z.ZodString>;
7
+ connect_partner_name: z.ZodNullable<z.ZodNullable<z.ZodString>>;
7
8
  }, "strip", z.ZodTypeAny, {
8
9
  name: string;
9
10
  workspace_id: string;
11
+ company_name: string;
10
12
  is_sandbox: boolean;
11
13
  connect_partner_name: string | null;
12
14
  }, {
13
15
  name: string;
14
16
  workspace_id: string;
17
+ company_name: string;
15
18
  is_sandbox: boolean;
16
19
  connect_partner_name: string | null;
17
20
  }>;
@@ -2,7 +2,16 @@ import { z } from 'zod';
2
2
  export const workspace = z.object({
3
3
  workspace_id: z.string().uuid(),
4
4
  name: z.string(),
5
+ company_name: z.string(),
5
6
  is_sandbox: z.boolean(),
6
- connect_partner_name: z.string().nullable(),
7
+ connect_partner_name: z
8
+ .string()
9
+ .nullable()
10
+ .describe(`
11
+ ---
12
+ deprecated: use company_name
13
+ ---
14
+ `)
15
+ .nullable(),
7
16
  });
8
17
  //# sourceMappingURL=workspace.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/workspaces/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,oBAAoB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAC5C,CAAC,CAAA"}
1
+ {"version":3,"file":"workspace.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/workspaces/workspace.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC,MAAM,CAAC;IAChC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC/B,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,oBAAoB,EAAE,CAAC;SACpB,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP;;;;GAIH,CACE;SACA,QAAQ,EAAE;CACd,CAAC,CAAA"}
@@ -3282,7 +3282,11 @@ declare const _default: {
3282
3282
  };
3283
3283
  workspace: {
3284
3284
  properties: {
3285
+ company_name: {
3286
+ type: string;
3287
+ };
3285
3288
  connect_partner_name: {
3289
+ description: string;
3286
3290
  nullable: boolean;
3287
3291
  type: string;
3288
3292
  };
@@ -15608,8 +15612,12 @@ declare const _default: {
15608
15612
  'application/json': {
15609
15613
  schema: {
15610
15614
  properties: {
15615
+ company_name: {
15616
+ type: string;
15617
+ };
15611
15618
  connect_partner_name: {
15612
15619
  description: string;
15620
+ nullable: boolean;
15613
15621
  type: string;
15614
15622
  };
15615
15623
  is_sandbox: {
@@ -3594,7 +3594,12 @@ export default {
3594
3594
  },
3595
3595
  workspace: {
3596
3596
  properties: {
3597
- connect_partner_name: { nullable: true, type: 'string' },
3597
+ company_name: { type: 'string' },
3598
+ connect_partner_name: {
3599
+ description: '\n ---\n deprecated: use company_name\n ---\n ',
3600
+ nullable: true,
3601
+ type: 'string',
3602
+ },
3598
3603
  is_sandbox: { type: 'boolean' },
3599
3604
  name: { type: 'string' },
3600
3605
  workspace_id: { format: 'uuid', type: 'string' },
@@ -3602,6 +3607,7 @@ export default {
3602
3607
  required: [
3603
3608
  'workspace_id',
3604
3609
  'name',
3610
+ 'company_name',
3605
3611
  'is_sandbox',
3606
3612
  'connect_partner_name',
3607
3613
  ],
@@ -12560,8 +12566,10 @@ export default {
12560
12566
  'application/json': {
12561
12567
  schema: {
12562
12568
  properties: {
12569
+ company_name: { type: 'string' },
12563
12570
  connect_partner_name: {
12564
- description: 'The name shown inside the connect webview',
12571
+ description: '\n ---\n deprecated: use company_name\n ---\n ',
12572
+ nullable: true,
12565
12573
  type: 'string',
12566
12574
  },
12567
12575
  is_sandbox: { default: false, type: 'boolean' },
@@ -12572,7 +12580,7 @@ export default {
12572
12580
  },
12573
12581
  webview_primary_button_color: { type: 'string' },
12574
12582
  },
12575
- required: ['name', 'connect_partner_name'],
12583
+ required: ['name'],
12576
12584
  type: 'object',
12577
12585
  },
12578
12586
  },