@seamapi/types 1.426.0 → 1.428.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 +150 -437
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +3041 -5161
- package/lib/seam/connect/models/access-grants/access-grant.d.ts +3 -0
- package/lib/seam/connect/models/access-grants/access-grant.js +5 -0
- package/lib/seam/connect/models/access-grants/access-grant.js.map +1 -1
- package/lib/seam/connect/models/access-grants/access-method.d.ts +5 -5
- package/lib/seam/connect/models/access-grants/access-method.js +3 -2
- package/lib/seam/connect/models/access-grants/access-method.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/action-attempt.d.ts +0 -183
- package/lib/seam/connect/models/action-attempts/action-attempt.js +1 -3
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +84 -192
- package/lib/seam/connect/openapi.js +74 -285
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +2571 -4403
- package/package.json +1 -1
- package/src/lib/seam/connect/models/access-grants/access-grant.ts +7 -0
- package/src/lib/seam/connect/models/access-grants/access-method.ts +3 -2
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +1 -3
- package/src/lib/seam/connect/openapi.ts +78 -318
- package/src/lib/seam/connect/route-types.ts +3617 -5657
- package/lib/seam/connect/models/action-attempts/encode-access-method.d.ts +0 -186
- package/lib/seam/connect/models/action-attempts/encode-access-method.js +0 -60
- package/lib/seam/connect/models/action-attempts/encode-access-method.js.map +0 -1
- package/src/lib/seam/connect/models/action-attempts/encode-access-method.ts +0 -101
|
@@ -1,186 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
export declare const encode_access_method_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
3
|
-
action_attempt_id: z.ZodString;
|
|
4
|
-
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
5
|
-
}, {
|
|
6
|
-
status: z.ZodLiteral<"pending">;
|
|
7
|
-
result: z.ZodNull;
|
|
8
|
-
error: z.ZodNull;
|
|
9
|
-
}>, {
|
|
10
|
-
action_type: z.ZodLiteral<"ENCODE_ACCESS_METHOD">;
|
|
11
|
-
}>, "strip", z.ZodTypeAny, {
|
|
12
|
-
error: null;
|
|
13
|
-
status: "pending";
|
|
14
|
-
action_attempt_id: string;
|
|
15
|
-
result: null;
|
|
16
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
17
|
-
}, {
|
|
18
|
-
error: null;
|
|
19
|
-
status: "pending";
|
|
20
|
-
action_attempt_id: string;
|
|
21
|
-
result: null;
|
|
22
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
23
|
-
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
24
|
-
action_attempt_id: z.ZodString;
|
|
25
|
-
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
26
|
-
}, {
|
|
27
|
-
status: z.ZodLiteral<"success">;
|
|
28
|
-
error: z.ZodNull;
|
|
29
|
-
}>, {
|
|
30
|
-
action_type: z.ZodLiteral<"ENCODE_ACCESS_METHOD">;
|
|
31
|
-
result: z.ZodObject<{
|
|
32
|
-
workspace_id: z.ZodString;
|
|
33
|
-
access_method_id: z.ZodString;
|
|
34
|
-
display_name: z.ZodString;
|
|
35
|
-
mode: z.ZodEnum<["code", "card", "mobile_key"]>;
|
|
36
|
-
created_at: z.ZodString;
|
|
37
|
-
issued_at: z.ZodOptional<z.ZodString>;
|
|
38
|
-
instant_key_url: z.ZodOptional<z.ZodString>;
|
|
39
|
-
is_card_encoding_required: z.ZodOptional<z.ZodBoolean>;
|
|
40
|
-
}, "strip", z.ZodTypeAny, {
|
|
41
|
-
display_name: string;
|
|
42
|
-
workspace_id: string;
|
|
43
|
-
created_at: string;
|
|
44
|
-
mode: "code" | "card" | "mobile_key";
|
|
45
|
-
access_method_id: string;
|
|
46
|
-
issued_at?: string | undefined;
|
|
47
|
-
instant_key_url?: string | undefined;
|
|
48
|
-
is_card_encoding_required?: boolean | undefined;
|
|
49
|
-
}, {
|
|
50
|
-
display_name: string;
|
|
51
|
-
workspace_id: string;
|
|
52
|
-
created_at: string;
|
|
53
|
-
mode: "code" | "card" | "mobile_key";
|
|
54
|
-
access_method_id: string;
|
|
55
|
-
issued_at?: string | undefined;
|
|
56
|
-
instant_key_url?: string | undefined;
|
|
57
|
-
is_card_encoding_required?: boolean | undefined;
|
|
58
|
-
}>;
|
|
59
|
-
}>, "strip", z.ZodTypeAny, {
|
|
60
|
-
error: null;
|
|
61
|
-
status: "success";
|
|
62
|
-
action_attempt_id: string;
|
|
63
|
-
result: {
|
|
64
|
-
display_name: string;
|
|
65
|
-
workspace_id: string;
|
|
66
|
-
created_at: string;
|
|
67
|
-
mode: "code" | "card" | "mobile_key";
|
|
68
|
-
access_method_id: string;
|
|
69
|
-
issued_at?: string | undefined;
|
|
70
|
-
instant_key_url?: string | undefined;
|
|
71
|
-
is_card_encoding_required?: boolean | undefined;
|
|
72
|
-
};
|
|
73
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
74
|
-
}, {
|
|
75
|
-
error: null;
|
|
76
|
-
status: "success";
|
|
77
|
-
action_attempt_id: string;
|
|
78
|
-
result: {
|
|
79
|
-
display_name: string;
|
|
80
|
-
workspace_id: string;
|
|
81
|
-
created_at: string;
|
|
82
|
-
mode: "code" | "card" | "mobile_key";
|
|
83
|
-
access_method_id: string;
|
|
84
|
-
issued_at?: string | undefined;
|
|
85
|
-
instant_key_url?: string | undefined;
|
|
86
|
-
is_card_encoding_required?: boolean | undefined;
|
|
87
|
-
};
|
|
88
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
89
|
-
}>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<{
|
|
90
|
-
action_attempt_id: z.ZodString;
|
|
91
|
-
status: z.ZodEnum<["pending", "success", "error"]>;
|
|
92
|
-
}, {
|
|
93
|
-
status: z.ZodLiteral<"error">;
|
|
94
|
-
result: z.ZodNull;
|
|
95
|
-
}>, {
|
|
96
|
-
action_type: z.ZodLiteral<"ENCODE_ACCESS_METHOD">;
|
|
97
|
-
error: z.ZodUnion<[z.ZodObject<{
|
|
98
|
-
type: z.ZodLiteral<"uncategorized_error">;
|
|
99
|
-
message: z.ZodString;
|
|
100
|
-
}, "strip", z.ZodTypeAny, {
|
|
101
|
-
type: "uncategorized_error";
|
|
102
|
-
message: string;
|
|
103
|
-
}, {
|
|
104
|
-
type: "uncategorized_error";
|
|
105
|
-
message: string;
|
|
106
|
-
}>, z.ZodObject<{
|
|
107
|
-
type: z.ZodLiteral<"action_attempt_expired">;
|
|
108
|
-
message: z.ZodString;
|
|
109
|
-
}, "strip", z.ZodTypeAny, {
|
|
110
|
-
type: "action_attempt_expired";
|
|
111
|
-
message: string;
|
|
112
|
-
}, {
|
|
113
|
-
type: "action_attempt_expired";
|
|
114
|
-
message: string;
|
|
115
|
-
}>, z.ZodObject<{
|
|
116
|
-
type: z.ZodLiteral<"no_credential_on_encoder">;
|
|
117
|
-
message: z.ZodString;
|
|
118
|
-
}, "strip", z.ZodTypeAny, {
|
|
119
|
-
type: "no_credential_on_encoder";
|
|
120
|
-
message: string;
|
|
121
|
-
}, {
|
|
122
|
-
type: "no_credential_on_encoder";
|
|
123
|
-
message: string;
|
|
124
|
-
}>, z.ZodObject<{
|
|
125
|
-
type: z.ZodLiteral<"incompatible_card_format">;
|
|
126
|
-
message: z.ZodString;
|
|
127
|
-
}, "strip", z.ZodTypeAny, {
|
|
128
|
-
type: "incompatible_card_format";
|
|
129
|
-
message: string;
|
|
130
|
-
}, {
|
|
131
|
-
type: "incompatible_card_format";
|
|
132
|
-
message: string;
|
|
133
|
-
}>, z.ZodObject<{
|
|
134
|
-
type: z.ZodLiteral<"credential_cannot_be_reissued">;
|
|
135
|
-
message: z.ZodString;
|
|
136
|
-
}, "strip", z.ZodTypeAny, {
|
|
137
|
-
type: "credential_cannot_be_reissued";
|
|
138
|
-
message: string;
|
|
139
|
-
}, {
|
|
140
|
-
type: "credential_cannot_be_reissued";
|
|
141
|
-
message: string;
|
|
142
|
-
}>]>;
|
|
143
|
-
}>, "strip", z.ZodTypeAny, {
|
|
144
|
-
error: {
|
|
145
|
-
type: "uncategorized_error";
|
|
146
|
-
message: string;
|
|
147
|
-
} | {
|
|
148
|
-
type: "action_attempt_expired";
|
|
149
|
-
message: string;
|
|
150
|
-
} | {
|
|
151
|
-
type: "no_credential_on_encoder";
|
|
152
|
-
message: string;
|
|
153
|
-
} | {
|
|
154
|
-
type: "incompatible_card_format";
|
|
155
|
-
message: string;
|
|
156
|
-
} | {
|
|
157
|
-
type: "credential_cannot_be_reissued";
|
|
158
|
-
message: string;
|
|
159
|
-
};
|
|
160
|
-
status: "error";
|
|
161
|
-
action_attempt_id: string;
|
|
162
|
-
result: null;
|
|
163
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
164
|
-
}, {
|
|
165
|
-
error: {
|
|
166
|
-
type: "uncategorized_error";
|
|
167
|
-
message: string;
|
|
168
|
-
} | {
|
|
169
|
-
type: "action_attempt_expired";
|
|
170
|
-
message: string;
|
|
171
|
-
} | {
|
|
172
|
-
type: "no_credential_on_encoder";
|
|
173
|
-
message: string;
|
|
174
|
-
} | {
|
|
175
|
-
type: "incompatible_card_format";
|
|
176
|
-
message: string;
|
|
177
|
-
} | {
|
|
178
|
-
type: "credential_cannot_be_reissued";
|
|
179
|
-
message: string;
|
|
180
|
-
};
|
|
181
|
-
status: "error";
|
|
182
|
-
action_attempt_id: string;
|
|
183
|
-
result: null;
|
|
184
|
-
action_type: "ENCODE_ACCESS_METHOD";
|
|
185
|
-
}>]>;
|
|
186
|
-
export type EncodeAccessMethodActionAttempt = z.infer<typeof encode_access_method_action_attempt>;
|
|
@@ -1,60 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod';
|
|
2
|
-
import { access_method } from '../access-grants/access-method.js';
|
|
3
|
-
import { common_action_attempt_errors, common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
4
|
-
const action_type = z
|
|
5
|
-
.literal('ENCODE_ACCESS_METHOD')
|
|
6
|
-
.describe('Action attempt to track the status of encoding an access method from the physical encoder onto a card.');
|
|
7
|
-
const no_credential_on_encoder_error = z
|
|
8
|
-
.object({
|
|
9
|
-
type: z
|
|
10
|
-
.literal('no_credential_on_encoder')
|
|
11
|
-
.describe('Error type to indicate that there is no credential on the encoder.'),
|
|
12
|
-
message: z
|
|
13
|
-
.string()
|
|
14
|
-
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
15
|
-
})
|
|
16
|
-
.describe('Error to indicate that there is no credential on the encoder.');
|
|
17
|
-
const incompatible_card_format_error = z
|
|
18
|
-
.object({
|
|
19
|
-
type: z
|
|
20
|
-
.literal('incompatible_card_format')
|
|
21
|
-
.describe('Error type to indicate an incompatible card format.'),
|
|
22
|
-
message: z
|
|
23
|
-
.string()
|
|
24
|
-
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
25
|
-
})
|
|
26
|
-
.describe('Error to indicate an incompatible card format.');
|
|
27
|
-
const credential_cannot_be_reissued = z
|
|
28
|
-
.object({
|
|
29
|
-
type: z
|
|
30
|
-
.literal('credential_cannot_be_reissued')
|
|
31
|
-
.describe('Error type to indicate that the affected credential cannot be reissued.'),
|
|
32
|
-
message: z
|
|
33
|
-
.string()
|
|
34
|
-
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
35
|
-
})
|
|
36
|
-
.describe('Error to indicate that the affected credential cannot be reissued.');
|
|
37
|
-
const error = z.union([
|
|
38
|
-
...common_action_attempt_errors,
|
|
39
|
-
no_credential_on_encoder_error,
|
|
40
|
-
incompatible_card_format_error,
|
|
41
|
-
credential_cannot_be_reissued,
|
|
42
|
-
]);
|
|
43
|
-
const result = access_method.describe('Result of an encoding attempt. If the attempt was successful, includes the access method data that was encoded onto the card.');
|
|
44
|
-
export const encode_access_method_action_attempt = z.discriminatedUnion('status', [
|
|
45
|
-
common_pending_action_attempt
|
|
46
|
-
.extend({
|
|
47
|
-
action_type,
|
|
48
|
-
})
|
|
49
|
-
.describe('Encoding access method data from the physical encoder onto a card is pending.'),
|
|
50
|
-
common_succeeded_action_attempt
|
|
51
|
-
.extend({
|
|
52
|
-
action_type,
|
|
53
|
-
result,
|
|
54
|
-
})
|
|
55
|
-
.describe('Encoding access method data from the physical encoder onto a card succeeded.'),
|
|
56
|
-
common_failed_action_attempt
|
|
57
|
-
.extend({ action_type, error })
|
|
58
|
-
.describe('Encoding access method data from the physical encoder onto a card failed.'),
|
|
59
|
-
]);
|
|
60
|
-
//# sourceMappingURL=encode-access-method.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"encode-access-method.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/encode-access-method.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,aAAa,EAAE,MAAM,mCAAmC,CAAA;AACjE,OAAO,EACL,4BAA4B,EAC5B,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,sBAAsB,CAAC;KAC/B,QAAQ,CACP,wGAAwG,CACzG,CAAA;AAEH,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CACP,oEAAoE,CACrE;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,+DAA+D,CAAC,CAAA;AAE5E,MAAM,8BAA8B,GAAG,CAAC;KACrC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,0BAA0B,CAAC;SACnC,QAAQ,CAAC,qDAAqD,CAAC;IAClE,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,gDAAgD,CAAC,CAAA;AAE7D,MAAM,6BAA6B,GAAG,CAAC;KACpC,MAAM,CAAC;IACN,IAAI,EAAE,CAAC;SACJ,OAAO,CAAC,+BAA+B,CAAC;SACxC,QAAQ,CACP,yEAAyE,CAC1E;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CACP,oEAAoE,CACrE,CAAA;AAEH,MAAM,KAAK,GAAG,CAAC,CAAC,KAAK,CAAC;IACpB,GAAG,4BAA4B;IAC/B,8BAA8B;IAC9B,8BAA8B;IAC9B,6BAA6B;CAC9B,CAAC,CAAA;AAEF,MAAM,MAAM,GAAG,aAAa,CAAC,QAAQ,CACnC,+HAA+H,CAChI,CAAA;AAED,MAAM,CAAC,MAAM,mCAAmC,GAAG,CAAC,CAAC,kBAAkB,CACrE,QAAQ,EACR;IACE,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CACP,+EAA+E,CAChF;IACH,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CACP,8EAA8E,CAC/E;IACH,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CACP,2EAA2E,CAC5E;CACJ,CACF,CAAA"}
|
|
@@ -1,101 +0,0 @@
|
|
|
1
|
-
import { z } from 'zod'
|
|
2
|
-
|
|
3
|
-
import { access_method } from '../access-grants/access-method.js'
|
|
4
|
-
import {
|
|
5
|
-
common_action_attempt_errors,
|
|
6
|
-
common_failed_action_attempt,
|
|
7
|
-
common_pending_action_attempt,
|
|
8
|
-
common_succeeded_action_attempt,
|
|
9
|
-
} from './common.js'
|
|
10
|
-
|
|
11
|
-
const action_type = z
|
|
12
|
-
.literal('ENCODE_ACCESS_METHOD')
|
|
13
|
-
.describe(
|
|
14
|
-
'Action attempt to track the status of encoding an access method from the physical encoder onto a card.',
|
|
15
|
-
)
|
|
16
|
-
|
|
17
|
-
const no_credential_on_encoder_error = z
|
|
18
|
-
.object({
|
|
19
|
-
type: z
|
|
20
|
-
.literal('no_credential_on_encoder')
|
|
21
|
-
.describe(
|
|
22
|
-
'Error type to indicate that there is no credential on the encoder.',
|
|
23
|
-
),
|
|
24
|
-
message: z
|
|
25
|
-
.string()
|
|
26
|
-
.describe(
|
|
27
|
-
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
28
|
-
),
|
|
29
|
-
})
|
|
30
|
-
.describe('Error to indicate that there is no credential on the encoder.')
|
|
31
|
-
|
|
32
|
-
const incompatible_card_format_error = z
|
|
33
|
-
.object({
|
|
34
|
-
type: z
|
|
35
|
-
.literal('incompatible_card_format')
|
|
36
|
-
.describe('Error type to indicate an incompatible card format.'),
|
|
37
|
-
message: z
|
|
38
|
-
.string()
|
|
39
|
-
.describe(
|
|
40
|
-
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
41
|
-
),
|
|
42
|
-
})
|
|
43
|
-
.describe('Error to indicate an incompatible card format.')
|
|
44
|
-
|
|
45
|
-
const credential_cannot_be_reissued = z
|
|
46
|
-
.object({
|
|
47
|
-
type: z
|
|
48
|
-
.literal('credential_cannot_be_reissued')
|
|
49
|
-
.describe(
|
|
50
|
-
'Error type to indicate that the affected credential cannot be reissued.',
|
|
51
|
-
),
|
|
52
|
-
message: z
|
|
53
|
-
.string()
|
|
54
|
-
.describe(
|
|
55
|
-
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
56
|
-
),
|
|
57
|
-
})
|
|
58
|
-
.describe(
|
|
59
|
-
'Error to indicate that the affected credential cannot be reissued.',
|
|
60
|
-
)
|
|
61
|
-
|
|
62
|
-
const error = z.union([
|
|
63
|
-
...common_action_attempt_errors,
|
|
64
|
-
no_credential_on_encoder_error,
|
|
65
|
-
incompatible_card_format_error,
|
|
66
|
-
credential_cannot_be_reissued,
|
|
67
|
-
])
|
|
68
|
-
|
|
69
|
-
const result = access_method.describe(
|
|
70
|
-
'Result of an encoding attempt. If the attempt was successful, includes the access method data that was encoded onto the card.',
|
|
71
|
-
)
|
|
72
|
-
|
|
73
|
-
export const encode_access_method_action_attempt = z.discriminatedUnion(
|
|
74
|
-
'status',
|
|
75
|
-
[
|
|
76
|
-
common_pending_action_attempt
|
|
77
|
-
.extend({
|
|
78
|
-
action_type,
|
|
79
|
-
})
|
|
80
|
-
.describe(
|
|
81
|
-
'Encoding access method data from the physical encoder onto a card is pending.',
|
|
82
|
-
),
|
|
83
|
-
common_succeeded_action_attempt
|
|
84
|
-
.extend({
|
|
85
|
-
action_type,
|
|
86
|
-
result,
|
|
87
|
-
})
|
|
88
|
-
.describe(
|
|
89
|
-
'Encoding access method data from the physical encoder onto a card succeeded.',
|
|
90
|
-
),
|
|
91
|
-
common_failed_action_attempt
|
|
92
|
-
.extend({ action_type, error })
|
|
93
|
-
.describe(
|
|
94
|
-
'Encoding access method data from the physical encoder onto a card failed.',
|
|
95
|
-
),
|
|
96
|
-
],
|
|
97
|
-
)
|
|
98
|
-
|
|
99
|
-
export type EncodeAccessMethodActionAttempt = z.infer<
|
|
100
|
-
typeof encode_access_method_action_attempt
|
|
101
|
-
>
|