@seamapi/types 1.365.0 → 1.367.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 (32) hide show
  1. package/dist/connect.cjs +708 -7
  2. package/dist/connect.cjs.map +1 -1
  3. package/dist/connect.d.cts +1802 -95
  4. package/lib/seam/connect/models/acs/{acs-user.d.ts → acs-users/acs-user.d.ts} +540 -18
  5. package/lib/seam/connect/models/acs/{acs-user.js → acs-users/acs-user.js} +9 -2
  6. package/lib/seam/connect/models/acs/acs-users/acs-user.js.map +1 -0
  7. package/lib/seam/connect/models/acs/acs-users/index.d.ts +2 -0
  8. package/lib/seam/connect/models/acs/acs-users/index.js +3 -0
  9. package/lib/seam/connect/models/acs/acs-users/index.js.map +1 -0
  10. package/lib/seam/connect/models/acs/acs-users/pending-modifications.d.ts +176 -0
  11. package/lib/seam/connect/models/acs/acs-users/pending-modifications.js +42 -0
  12. package/lib/seam/connect/models/acs/acs-users/pending-modifications.js.map +1 -0
  13. package/lib/seam/connect/models/acs/index.d.ts +1 -1
  14. package/lib/seam/connect/models/acs/index.js +1 -1
  15. package/lib/seam/connect/models/acs/index.js.map +1 -1
  16. package/lib/seam/connect/models/bridges/bridge_client_session.d.ts +235 -0
  17. package/lib/seam/connect/models/bridges/bridge_client_session.js +47 -0
  18. package/lib/seam/connect/models/bridges/bridge_client_session.js.map +1 -1
  19. package/lib/seam/connect/models/user-identities/user-identity.d.ts +2 -2
  20. package/lib/seam/connect/openapi.d.ts +716 -0
  21. package/lib/seam/connect/openapi.js +628 -0
  22. package/lib/seam/connect/openapi.js.map +1 -1
  23. package/lib/seam/connect/route-types.d.ts +399 -0
  24. package/package.json +1 -1
  25. package/src/lib/seam/connect/models/acs/{acs-user.ts → acs-users/acs-user.ts} +9 -2
  26. package/src/lib/seam/connect/models/acs/acs-users/index.ts +2 -0
  27. package/src/lib/seam/connect/models/acs/acs-users/pending-modifications.ts +56 -0
  28. package/src/lib/seam/connect/models/acs/index.ts +1 -1
  29. package/src/lib/seam/connect/models/bridges/bridge_client_session.ts +62 -0
  30. package/src/lib/seam/connect/openapi.ts +676 -0
  31. package/src/lib/seam/connect/route-types.ts +457 -0
  32. package/lib/seam/connect/models/acs/acs-user.js.map +0 -1
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/acs-users/index.ts"],"names":[],"mappings":"AAAA,cAAc,eAAe,CAAA;AAC7B,cAAc,4BAA4B,CAAA"}
@@ -0,0 +1,176 @@
1
+ import { z } from 'zod';
2
+ export declare const acs_user_pending_modification: z.ZodDiscriminatedUnion<"modification_code", [z.ZodObject<z.objectUtil.extendShape<{
3
+ created_at: z.ZodString;
4
+ }, {
5
+ modification_code: z.ZodLiteral<"profile">;
6
+ modified_from: z.ZodObject<{
7
+ email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
8
+ full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
9
+ phone_number: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>>;
10
+ }, "strip", z.ZodTypeAny, {
11
+ email_address?: string | null | undefined;
12
+ full_name?: string | null | undefined;
13
+ phone_number?: string | null | undefined;
14
+ }, {
15
+ email_address?: string | null | undefined;
16
+ full_name?: string | null | undefined;
17
+ phone_number?: string | null | undefined;
18
+ }>;
19
+ modified_to: z.ZodObject<{
20
+ email_address: z.ZodOptional<z.ZodNullable<z.ZodString>>;
21
+ full_name: z.ZodOptional<z.ZodNullable<z.ZodString>>;
22
+ phone_number: z.ZodOptional<z.ZodNullable<z.ZodOptional<z.ZodEffects<z.ZodString, string, string>>>>;
23
+ }, "strip", z.ZodTypeAny, {
24
+ email_address?: string | null | undefined;
25
+ full_name?: string | null | undefined;
26
+ phone_number?: string | null | undefined;
27
+ }, {
28
+ email_address?: string | null | undefined;
29
+ full_name?: string | null | undefined;
30
+ phone_number?: string | null | undefined;
31
+ }>;
32
+ }>, "strip", z.ZodTypeAny, {
33
+ created_at: string;
34
+ modification_code: "profile";
35
+ modified_from: {
36
+ email_address?: string | null | undefined;
37
+ full_name?: string | null | undefined;
38
+ phone_number?: string | null | undefined;
39
+ };
40
+ modified_to: {
41
+ email_address?: string | null | undefined;
42
+ full_name?: string | null | undefined;
43
+ phone_number?: string | null | undefined;
44
+ };
45
+ }, {
46
+ created_at: string;
47
+ modification_code: "profile";
48
+ modified_from: {
49
+ email_address?: string | null | undefined;
50
+ full_name?: string | null | undefined;
51
+ phone_number?: string | null | undefined;
52
+ };
53
+ modified_to: {
54
+ email_address?: string | null | undefined;
55
+ full_name?: string | null | undefined;
56
+ phone_number?: string | null | undefined;
57
+ };
58
+ }>, z.ZodObject<z.objectUtil.extendShape<{
59
+ created_at: z.ZodString;
60
+ }, {
61
+ modification_code: z.ZodLiteral<"access_schedule">;
62
+ modified_from: z.ZodObject<{
63
+ starts_at: z.ZodString;
64
+ ends_at: z.ZodNullable<z.ZodString>;
65
+ }, "strip", z.ZodTypeAny, {
66
+ starts_at: string;
67
+ ends_at: string | null;
68
+ }, {
69
+ starts_at: string;
70
+ ends_at: string | null;
71
+ }>;
72
+ modified_to: z.ZodObject<{
73
+ starts_at: z.ZodString;
74
+ ends_at: z.ZodNullable<z.ZodString>;
75
+ }, "strip", z.ZodTypeAny, {
76
+ starts_at: string;
77
+ ends_at: string | null;
78
+ }, {
79
+ starts_at: string;
80
+ ends_at: string | null;
81
+ }>;
82
+ }>, "strip", z.ZodTypeAny, {
83
+ created_at: string;
84
+ modification_code: "access_schedule";
85
+ modified_from: {
86
+ starts_at: string;
87
+ ends_at: string | null;
88
+ };
89
+ modified_to: {
90
+ starts_at: string;
91
+ ends_at: string | null;
92
+ };
93
+ }, {
94
+ created_at: string;
95
+ modification_code: "access_schedule";
96
+ modified_from: {
97
+ starts_at: string;
98
+ ends_at: string | null;
99
+ };
100
+ modified_to: {
101
+ starts_at: string;
102
+ ends_at: string | null;
103
+ };
104
+ }>, z.ZodObject<z.objectUtil.extendShape<{
105
+ created_at: z.ZodString;
106
+ }, {
107
+ modification_code: z.ZodLiteral<"suspension_state">;
108
+ modified_from: z.ZodObject<{
109
+ is_suspended: z.ZodBoolean;
110
+ }, "strip", z.ZodTypeAny, {
111
+ is_suspended: boolean;
112
+ }, {
113
+ is_suspended: boolean;
114
+ }>;
115
+ modified_to: z.ZodObject<{
116
+ is_suspended: z.ZodBoolean;
117
+ }, "strip", z.ZodTypeAny, {
118
+ is_suspended: boolean;
119
+ }, {
120
+ is_suspended: boolean;
121
+ }>;
122
+ }>, "strip", z.ZodTypeAny, {
123
+ created_at: string;
124
+ modification_code: "suspension_state";
125
+ modified_from: {
126
+ is_suspended: boolean;
127
+ };
128
+ modified_to: {
129
+ is_suspended: boolean;
130
+ };
131
+ }, {
132
+ created_at: string;
133
+ modification_code: "suspension_state";
134
+ modified_from: {
135
+ is_suspended: boolean;
136
+ };
137
+ modified_to: {
138
+ is_suspended: boolean;
139
+ };
140
+ }>, z.ZodObject<z.objectUtil.extendShape<{
141
+ created_at: z.ZodString;
142
+ }, {
143
+ modification_code: z.ZodLiteral<"acs_access_group_membership">;
144
+ modified_from: z.ZodObject<{
145
+ acs_access_group_id: z.ZodNullable<z.ZodString>;
146
+ }, "strip", z.ZodTypeAny, {
147
+ acs_access_group_id: string | null;
148
+ }, {
149
+ acs_access_group_id: string | null;
150
+ }>;
151
+ modified_to: z.ZodObject<{
152
+ acs_access_group_id: z.ZodNullable<z.ZodString>;
153
+ }, "strip", z.ZodTypeAny, {
154
+ acs_access_group_id: string | null;
155
+ }, {
156
+ acs_access_group_id: string | null;
157
+ }>;
158
+ }>, "strip", z.ZodTypeAny, {
159
+ created_at: string;
160
+ modification_code: "acs_access_group_membership";
161
+ modified_from: {
162
+ acs_access_group_id: string | null;
163
+ };
164
+ modified_to: {
165
+ acs_access_group_id: string | null;
166
+ };
167
+ }, {
168
+ created_at: string;
169
+ modification_code: "acs_access_group_membership";
170
+ modified_from: {
171
+ acs_access_group_id: string | null;
172
+ };
173
+ modified_to: {
174
+ acs_access_group_id: string | null;
175
+ };
176
+ }>]>;
@@ -0,0 +1,42 @@
1
+ import { z } from 'zod';
2
+ import { phone_number } from '../../phone-number.js';
3
+ import { schedule } from '../../schedule.js';
4
+ const common_pending_modification = z.object({
5
+ created_at: z.string().datetime(),
6
+ });
7
+ const acs_user_profile = z.object({
8
+ email_address: z.string().email().nullable(),
9
+ full_name: z.string().nullable(),
10
+ phone_number: phone_number.optional().nullable(),
11
+ });
12
+ const profile_pending_modification = common_pending_modification.extend({
13
+ modification_code: z.literal('profile'),
14
+ modified_from: acs_user_profile.partial(),
15
+ modified_to: acs_user_profile.partial(),
16
+ });
17
+ const access_schedule_pending_modification = common_pending_modification.extend({
18
+ modification_code: z.literal('access_schedule'),
19
+ modified_from: schedule,
20
+ modified_to: schedule,
21
+ });
22
+ const suspension_state_pending_modification = common_pending_modification.extend({
23
+ modification_code: z.literal('suspension_state'),
24
+ modified_from: z.object({ is_suspended: z.boolean() }),
25
+ modified_to: z.object({ is_suspended: z.boolean() }),
26
+ });
27
+ const acs_access_group_membership_pending_modification = common_pending_modification.extend({
28
+ modification_code: z.literal('acs_access_group_membership'),
29
+ modified_from: z.object({
30
+ acs_access_group_id: z.string().uuid().nullable(),
31
+ }),
32
+ modified_to: z.object({
33
+ acs_access_group_id: z.string().uuid().nullable(),
34
+ }),
35
+ });
36
+ export const acs_user_pending_modification = z.discriminatedUnion('modification_code', [
37
+ profile_pending_modification,
38
+ access_schedule_pending_modification,
39
+ suspension_state_pending_modification,
40
+ acs_access_group_membership_pending_modification,
41
+ ]);
42
+ //# sourceMappingURL=pending-modifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"pending-modifications.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/acs/acs-users/pending-modifications.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,YAAY,E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A2B,CAAC,MAAM,CAAC;IACjC,iBAAiB,EAAE,CAAC,CAAC,OAAO,CAAC,6BAA6B,CAAC;IAC3D,aAAa,EAAE,CAAC,CAAC,MAAM,CAAC;QACtB,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;KAClD,CAAC;IACF,WAAW,EAAE,CAAC,CAAC,MAAM,CAAC;QACpB,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE,CAAC,QAAQ,EAAE;KAClD,CAAC;CACH,CAAC,CAAA;AAEJ,MAAM,CAAC,MAAM,6BAA6B,GAAG,CAAC,CAAC,kBAAkB,CAC/D,mBAAmB,EACnB;IACE,4BAA4B;IAC5B,oCAAoC;IACpC,qCAAqC;IACrC,gDAAgD;CACjD,CACF,CAAA"}
@@ -5,5 +5,5 @@ export * from './acs-credential-provisioning-automation.js';
5
5
  export * from './acs-encoder.js';
6
6
  export * from './acs-entrance.js';
7
7
  export * from './acs-system.js';
8
- export * from './acs-user.js';
8
+ export * from './acs-users/index.js';
9
9
  export * from './metadata/index.js';
@@ -5,6 +5,6 @@ export * from './acs-credential-provisioning-automation.js';
5
5
  export * from './acs-encoder.js';
6
6
  export * from './acs-entrance.js';
7
7
  export * from './acs-system.js';
8
- export * from './acs-user.js';
8
+ export * from './acs-users/index.js';
9
9
  export * from './metadata/index.js';
10
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,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6CAA6C,CAAA;AAC3D,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,eAAe,CAAA;AAC7B,cAAc,qBAAqB,CAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/acs/index.ts"],"names":[],"mappings":"AAAA,cAAc,uBAAuB,CAAA;AACrC,cAAc,qBAAqB,CAAA;AACnC,cAAc,0BAA0B,CAAA;AACxC,cAAc,6CAA6C,CAAA;AAC3D,cAAc,kBAAkB,CAAA;AAChC,cAAc,mBAAmB,CAAA;AACjC,cAAc,iBAAiB,CAAA;AAC/B,cAAc,sBAAsB,CAAA;AACpC,cAAc,qBAAqB,CAAA"}
@@ -1,4 +1,168 @@
1
1
  import { z } from 'zod';
2
+ export declare const bridge_lan_unreachable: z.ZodObject<z.objectUtil.extendShape<{
3
+ message: z.ZodString;
4
+ created_at: z.ZodString;
5
+ }, {
6
+ error_code: z.ZodLiteral<"bridge_lan_unreachable">;
7
+ is_tailscale_proxy_reachable: z.ZodBoolean;
8
+ is_tailscale_proxy_socks_server_healthy: z.ZodBoolean;
9
+ can_tailscale_proxy_reach_tailscale_network: z.ZodBoolean;
10
+ can_tailscale_proxy_reach_bridge: z.ZodBoolean;
11
+ is_bridge_socks_server_healthy: z.ZodBoolean;
12
+ }>, "strip", z.ZodTypeAny, {
13
+ message: string;
14
+ created_at: string;
15
+ error_code: "bridge_lan_unreachable";
16
+ is_tailscale_proxy_reachable: boolean;
17
+ is_tailscale_proxy_socks_server_healthy: boolean;
18
+ can_tailscale_proxy_reach_tailscale_network: boolean;
19
+ can_tailscale_proxy_reach_bridge: boolean;
20
+ is_bridge_socks_server_healthy: boolean;
21
+ }, {
22
+ message: string;
23
+ created_at: string;
24
+ error_code: "bridge_lan_unreachable";
25
+ is_tailscale_proxy_reachable: boolean;
26
+ is_tailscale_proxy_socks_server_healthy: boolean;
27
+ can_tailscale_proxy_reach_tailscale_network: boolean;
28
+ can_tailscale_proxy_reach_bridge: boolean;
29
+ is_bridge_socks_server_healthy: boolean;
30
+ }>;
31
+ export declare const no_communication_from_bridge: z.ZodObject<z.objectUtil.extendShape<{
32
+ message: z.ZodString;
33
+ created_at: z.ZodString;
34
+ }, {
35
+ error_code: z.ZodLiteral<"no_communication_from_bridge">;
36
+ }>, "strip", z.ZodTypeAny, {
37
+ message: string;
38
+ created_at: string;
39
+ error_code: "no_communication_from_bridge";
40
+ }, {
41
+ message: string;
42
+ created_at: string;
43
+ error_code: "no_communication_from_bridge";
44
+ }>;
45
+ export declare const bridge_client_session_error: z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<z.objectUtil.extendShape<{
46
+ message: z.ZodString;
47
+ created_at: z.ZodString;
48
+ }, {
49
+ error_code: z.ZodLiteral<"bridge_lan_unreachable">;
50
+ is_tailscale_proxy_reachable: z.ZodBoolean;
51
+ is_tailscale_proxy_socks_server_healthy: z.ZodBoolean;
52
+ can_tailscale_proxy_reach_tailscale_network: z.ZodBoolean;
53
+ can_tailscale_proxy_reach_bridge: z.ZodBoolean;
54
+ is_bridge_socks_server_healthy: z.ZodBoolean;
55
+ }>, "strip", z.ZodTypeAny, {
56
+ message: string;
57
+ created_at: string;
58
+ error_code: "bridge_lan_unreachable";
59
+ is_tailscale_proxy_reachable: boolean;
60
+ is_tailscale_proxy_socks_server_healthy: boolean;
61
+ can_tailscale_proxy_reach_tailscale_network: boolean;
62
+ can_tailscale_proxy_reach_bridge: boolean;
63
+ is_bridge_socks_server_healthy: boolean;
64
+ }, {
65
+ message: string;
66
+ created_at: string;
67
+ error_code: "bridge_lan_unreachable";
68
+ is_tailscale_proxy_reachable: boolean;
69
+ is_tailscale_proxy_socks_server_healthy: boolean;
70
+ can_tailscale_proxy_reach_tailscale_network: boolean;
71
+ can_tailscale_proxy_reach_bridge: boolean;
72
+ is_bridge_socks_server_healthy: boolean;
73
+ }>, z.ZodObject<z.objectUtil.extendShape<{
74
+ message: z.ZodString;
75
+ created_at: z.ZodString;
76
+ }, {
77
+ error_code: z.ZodLiteral<"no_communication_from_bridge">;
78
+ }>, "strip", z.ZodTypeAny, {
79
+ message: string;
80
+ created_at: string;
81
+ error_code: "no_communication_from_bridge";
82
+ }, {
83
+ message: string;
84
+ created_at: string;
85
+ error_code: "no_communication_from_bridge";
86
+ }>]>;
87
+ export type BridgeClientSessionError = z.infer<typeof bridge_client_session_error>;
88
+ declare const bridge_client_session_error_map: z.ZodObject<{
89
+ bridge_lan_unreachable: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
90
+ message: z.ZodString;
91
+ created_at: z.ZodString;
92
+ }, {
93
+ error_code: z.ZodLiteral<"bridge_lan_unreachable">;
94
+ is_tailscale_proxy_reachable: z.ZodBoolean;
95
+ is_tailscale_proxy_socks_server_healthy: z.ZodBoolean;
96
+ can_tailscale_proxy_reach_tailscale_network: z.ZodBoolean;
97
+ can_tailscale_proxy_reach_bridge: z.ZodBoolean;
98
+ is_bridge_socks_server_healthy: z.ZodBoolean;
99
+ }>, "strip", z.ZodTypeAny, {
100
+ message: string;
101
+ created_at: string;
102
+ error_code: "bridge_lan_unreachable";
103
+ is_tailscale_proxy_reachable: boolean;
104
+ is_tailscale_proxy_socks_server_healthy: boolean;
105
+ can_tailscale_proxy_reach_tailscale_network: boolean;
106
+ can_tailscale_proxy_reach_bridge: boolean;
107
+ is_bridge_socks_server_healthy: boolean;
108
+ }, {
109
+ message: string;
110
+ created_at: string;
111
+ error_code: "bridge_lan_unreachable";
112
+ is_tailscale_proxy_reachable: boolean;
113
+ is_tailscale_proxy_socks_server_healthy: boolean;
114
+ can_tailscale_proxy_reach_tailscale_network: boolean;
115
+ can_tailscale_proxy_reach_bridge: boolean;
116
+ is_bridge_socks_server_healthy: boolean;
117
+ }>>>;
118
+ no_communication_from_bridge: z.ZodNullable<z.ZodOptional<z.ZodObject<z.objectUtil.extendShape<{
119
+ message: z.ZodString;
120
+ created_at: z.ZodString;
121
+ }, {
122
+ error_code: z.ZodLiteral<"no_communication_from_bridge">;
123
+ }>, "strip", z.ZodTypeAny, {
124
+ message: string;
125
+ created_at: string;
126
+ error_code: "no_communication_from_bridge";
127
+ }, {
128
+ message: string;
129
+ created_at: string;
130
+ error_code: "no_communication_from_bridge";
131
+ }>>>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ bridge_lan_unreachable?: {
134
+ message: string;
135
+ created_at: string;
136
+ error_code: "bridge_lan_unreachable";
137
+ is_tailscale_proxy_reachable: boolean;
138
+ is_tailscale_proxy_socks_server_healthy: boolean;
139
+ can_tailscale_proxy_reach_tailscale_network: boolean;
140
+ can_tailscale_proxy_reach_bridge: boolean;
141
+ is_bridge_socks_server_healthy: boolean;
142
+ } | null | undefined;
143
+ no_communication_from_bridge?: {
144
+ message: string;
145
+ created_at: string;
146
+ error_code: "no_communication_from_bridge";
147
+ } | null | undefined;
148
+ }, {
149
+ bridge_lan_unreachable?: {
150
+ message: string;
151
+ created_at: string;
152
+ error_code: "bridge_lan_unreachable";
153
+ is_tailscale_proxy_reachable: boolean;
154
+ is_tailscale_proxy_socks_server_healthy: boolean;
155
+ can_tailscale_proxy_reach_tailscale_network: boolean;
156
+ can_tailscale_proxy_reach_bridge: boolean;
157
+ is_bridge_socks_server_healthy: boolean;
158
+ } | null | undefined;
159
+ no_communication_from_bridge?: {
160
+ message: string;
161
+ created_at: string;
162
+ error_code: "no_communication_from_bridge";
163
+ } | null | undefined;
164
+ }>;
165
+ export type BridgeClientSessionErrorMap = z.infer<typeof bridge_client_session_error_map>;
2
166
  export declare const bridge_client_session: z.ZodObject<{
3
167
  created_at: z.ZodString;
4
168
  bridge_client_session_id: z.ZodString;
@@ -10,8 +174,64 @@ export declare const bridge_client_session: z.ZodObject<{
10
174
  bridge_client_name: z.ZodString;
11
175
  bridge_client_time_zone: z.ZodString;
12
176
  bridge_client_machine_identifier_key: z.ZodString;
177
+ errors: z.ZodArray<z.ZodDiscriminatedUnion<"error_code", [z.ZodObject<z.objectUtil.extendShape<{
178
+ message: z.ZodString;
179
+ created_at: z.ZodString;
180
+ }, {
181
+ error_code: z.ZodLiteral<"bridge_lan_unreachable">;
182
+ is_tailscale_proxy_reachable: z.ZodBoolean;
183
+ is_tailscale_proxy_socks_server_healthy: z.ZodBoolean;
184
+ can_tailscale_proxy_reach_tailscale_network: z.ZodBoolean;
185
+ can_tailscale_proxy_reach_bridge: z.ZodBoolean;
186
+ is_bridge_socks_server_healthy: z.ZodBoolean;
187
+ }>, "strip", z.ZodTypeAny, {
188
+ message: string;
189
+ created_at: string;
190
+ error_code: "bridge_lan_unreachable";
191
+ is_tailscale_proxy_reachable: boolean;
192
+ is_tailscale_proxy_socks_server_healthy: boolean;
193
+ can_tailscale_proxy_reach_tailscale_network: boolean;
194
+ can_tailscale_proxy_reach_bridge: boolean;
195
+ is_bridge_socks_server_healthy: boolean;
196
+ }, {
197
+ message: string;
198
+ created_at: string;
199
+ error_code: "bridge_lan_unreachable";
200
+ is_tailscale_proxy_reachable: boolean;
201
+ is_tailscale_proxy_socks_server_healthy: boolean;
202
+ can_tailscale_proxy_reach_tailscale_network: boolean;
203
+ can_tailscale_proxy_reach_bridge: boolean;
204
+ is_bridge_socks_server_healthy: boolean;
205
+ }>, z.ZodObject<z.objectUtil.extendShape<{
206
+ message: z.ZodString;
207
+ created_at: z.ZodString;
208
+ }, {
209
+ error_code: z.ZodLiteral<"no_communication_from_bridge">;
210
+ }>, "strip", z.ZodTypeAny, {
211
+ message: string;
212
+ created_at: string;
213
+ error_code: "no_communication_from_bridge";
214
+ }, {
215
+ message: string;
216
+ created_at: string;
217
+ error_code: "no_communication_from_bridge";
218
+ }>]>, "many">;
13
219
  }, "strip", z.ZodTypeAny, {
14
220
  created_at: string;
221
+ errors: ({
222
+ message: string;
223
+ created_at: string;
224
+ error_code: "bridge_lan_unreachable";
225
+ is_tailscale_proxy_reachable: boolean;
226
+ is_tailscale_proxy_socks_server_healthy: boolean;
227
+ can_tailscale_proxy_reach_tailscale_network: boolean;
228
+ can_tailscale_proxy_reach_bridge: boolean;
229
+ is_bridge_socks_server_healthy: boolean;
230
+ } | {
231
+ message: string;
232
+ created_at: string;
233
+ error_code: "no_communication_from_bridge";
234
+ })[];
15
235
  bridge_client_session_id: string;
16
236
  bridge_client_session_token: string;
17
237
  pairing_code: string;
@@ -23,6 +243,20 @@ export declare const bridge_client_session: z.ZodObject<{
23
243
  bridge_client_machine_identifier_key: string;
24
244
  }, {
25
245
  created_at: string;
246
+ errors: ({
247
+ message: string;
248
+ created_at: string;
249
+ error_code: "bridge_lan_unreachable";
250
+ is_tailscale_proxy_reachable: boolean;
251
+ is_tailscale_proxy_socks_server_healthy: boolean;
252
+ can_tailscale_proxy_reach_tailscale_network: boolean;
253
+ can_tailscale_proxy_reach_bridge: boolean;
254
+ is_bridge_socks_server_healthy: boolean;
255
+ } | {
256
+ message: string;
257
+ created_at: string;
258
+ error_code: "no_communication_from_bridge";
259
+ })[];
26
260
  bridge_client_session_id: string;
27
261
  bridge_client_session_token: string;
28
262
  pairing_code: string;
@@ -34,3 +268,4 @@ export declare const bridge_client_session: z.ZodObject<{
34
268
  bridge_client_machine_identifier_key: string;
35
269
  }>;
36
270
  export type BridgeClientSession = z.infer<typeof bridge_client_session>;
271
+ export {};
@@ -1,4 +1,50 @@
1
1
  import { z } from 'zod';
2
+ const common_bridge_client_session_error = z.object({
3
+ message: z.string(),
4
+ created_at: z.string().datetime(),
5
+ });
6
+ const error_code_description = 'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.';
7
+ export const bridge_lan_unreachable = common_bridge_client_session_error
8
+ .extend({
9
+ error_code: z
10
+ .literal('bridge_lan_unreachable')
11
+ .describe(error_code_description),
12
+ is_tailscale_proxy_reachable: z
13
+ .boolean()
14
+ .describe('Seam cannot reach the tailscale proxy'),
15
+ is_tailscale_proxy_socks_server_healthy: z
16
+ .boolean()
17
+ .describe("Tailscale proxy's SOCKS server is unhealthy"),
18
+ can_tailscale_proxy_reach_tailscale_network: z
19
+ .boolean()
20
+ .describe('Tailscale proxy cannot reach the Tailscale network'),
21
+ can_tailscale_proxy_reach_bridge: z
22
+ .boolean()
23
+ .describe('Tailscale proxy cannot reach the bridge'),
24
+ is_bridge_socks_server_healthy: z
25
+ .boolean()
26
+ .describe("Bridge's SOCKS server is unhealthy"),
27
+ })
28
+ .describe("Seam cannot reach the bridge's LAN");
29
+ export const no_communication_from_bridge = common_bridge_client_session_error
30
+ .extend({
31
+ error_code: z
32
+ .literal('no_communication_from_bridge')
33
+ .describe(error_code_description),
34
+ })
35
+ .describe('Bridge has stopped communicating with Seam');
36
+ export const bridge_client_session_error = z
37
+ .discriminatedUnion('error_code', [
38
+ bridge_lan_unreachable,
39
+ no_communication_from_bridge,
40
+ ])
41
+ .describe('Error associated with the `bridge_client_session`.');
42
+ const bridge_client_session_error_map = z.object({
43
+ bridge_lan_unreachable: bridge_lan_unreachable.optional().nullable(),
44
+ no_communication_from_bridge: no_communication_from_bridge
45
+ .optional()
46
+ .nullable(),
47
+ });
2
48
  export const bridge_client_session = z.object({
3
49
  created_at: z.string().datetime(),
4
50
  bridge_client_session_id: z.string().uuid(),
@@ -10,6 +56,7 @@ export const bridge_client_session = z.object({
10
56
  bridge_client_name: z.string(),
11
57
  bridge_client_time_zone: z.string(),
12
58
  bridge_client_machine_identifier_key: z.string(),
59
+ errors: z.array(bridge_client_session_error),
13
60
  }).describe(`
14
61
  ---
15
62
  route_path: /seam/bridge/v1/bridge_client_sessions
@@ -1 +1 @@
1
- {"version":3,"file":"bridge_client_session.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/bridges/bridge_client_session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,qBAAqB,GAAG,CAAC,CAAC,MAAM,CAAC;IAC5C,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACjC,wBAAwB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,IAAI,EAAE;IAC3C,2BAA2B,EAAE,CAAC,CAAC,MAAM,EAAE;IACvC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,MAAM,CAAC,CAAC,CAAC;IAClC,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAC9C,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACzC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,uBAAuB,EAAE,CAAC,CAAC,MAAM,EAAE;IACnC,oCAAoC,EAAE,CAAC,CAAC,MAAM,EAAE;CACjD,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
1
+ {"version":3,"file":"bridge_client_session.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/bridges/bridge_client_session.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,kCAAkC,GAAG,CAAC,CAAC,MAAM,CAAC;IAClD,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IACnB,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;CAClC,CAAC,CAAA;AAEF,MAAM,sBAAsB,GAC1B,oGAAoG,CAAA;AAEtG,MAAM,CAAC,MAAM,sBAAsB,GAAG,kCAAkC;KACrE,MAAM,CAAC;IACN,UAAU,EAAE,CAAC;SACV,OAAO,CAAC,wBAAwB,CAAC;SACjC,QAAQ,CAAC,sBAAsB,CAAC;IACnC,4BAA4B,EAAE,CAAC;SAC5B,OAAO,EAAE;SACT,QAAQ,CAAC,uCAAuC,CAAC;IACpD,uCAAuC,EAAE,CAAC;SACvC,OAAO,EAAE;SACT,QAAQ,CAAC,6CAA6C,CAAC;IAC1D,2CAA2C,EAAE,CAAC;SAC3C,OAAO,EAAE;SACT,QAAQ,CAAC,oDAAoD,CAAC;IACjE,gCAAgC,EAAE,CAAC;SAChC,OAAO,EAAE;SACT,QAAQ,CAAC,yCAAyC,CAAC;IACtD,8BAA8B,EAAE,CAA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AAM,EAAE;IACnC,oCAAoC,EAAE,CAAC,CAAC,MAAM,EAAE;IAChD,MAAM,EAAE,CAAC,CAAC,KAAK,CAAC,2BAA2B,CAAC;CAC7C,CAAC,CAAC,QAAQ,CAAC;;;;;CAKX,CAAC,CAAA"}
@@ -13,8 +13,8 @@ export declare const user_identity: z.ZodObject<{
13
13
  created_at: string;
14
14
  workspace_id: string;
15
15
  user_identity_id: string;
16
- full_name: string | null;
17
16
  email_address: string | null;
17
+ full_name: string | null;
18
18
  phone_number: string | null;
19
19
  user_identity_key: string | null;
20
20
  }, {
@@ -22,8 +22,8 @@ export declare const user_identity: z.ZodObject<{
22
22
  created_at: string;
23
23
  workspace_id: string;
24
24
  user_identity_id: string;
25
- full_name: string | null;
26
25
  email_address: string | null;
26
+ full_name: string | null;
27
27
  phone_number: string | null;
28
28
  user_identity_key: string | null;
29
29
  }>;