@seamapi/types 1.1099.0 → 1.1100.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/action-attempts/action-attempt.d.ts +75 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js +2 -0
- package/lib/seam/connect/models/action-attempts/action-attempt.js.map +1 -1
- package/lib/seam/connect/models/action-attempts/convert-access-code-to-managed.d.ts +77 -0
- package/lib/seam/connect/models/action-attempts/convert-access-code-to-managed.js +31 -0
- package/lib/seam/connect/models/action-attempts/convert-access-code-to-managed.js.map +1 -0
- package/lib/seam/connect/openapi.js +105 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +1190 -0
- package/package.json +1 -1
- package/src/lib/seam/connect/models/action-attempts/action-attempt.ts +2 -0
- package/src/lib/seam/connect/models/action-attempts/convert-access-code-to-managed.ts +44 -0
- package/src/lib/seam/connect/openapi.ts +116 -0
- package/src/lib/seam/connect/route-types.ts +1292 -0
|
@@ -5159,6 +5159,81 @@ export declare const action_attempt: z.ZodUnion<[z.ZodObject<{
|
|
|
5159
5159
|
status: z.ZodLiteral<"pending">;
|
|
5160
5160
|
result: z.ZodNull;
|
|
5161
5161
|
error: z.ZodNull;
|
|
5162
|
+
} & {
|
|
5163
|
+
action_type: z.ZodLiteral<"CONVERT_ACCESS_CODE_TO_MANAGED">;
|
|
5164
|
+
}, "strip", z.ZodTypeAny, {
|
|
5165
|
+
status: "pending";
|
|
5166
|
+
action_attempt_id: string;
|
|
5167
|
+
error: null;
|
|
5168
|
+
result: null;
|
|
5169
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
5170
|
+
}, {
|
|
5171
|
+
status: "pending";
|
|
5172
|
+
action_attempt_id: string;
|
|
5173
|
+
error: null;
|
|
5174
|
+
result: null;
|
|
5175
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
5176
|
+
}>, z.ZodObject<{
|
|
5177
|
+
action_attempt_id: z.ZodString;
|
|
5178
|
+
} & {
|
|
5179
|
+
status: z.ZodLiteral<"success">;
|
|
5180
|
+
error: z.ZodNull;
|
|
5181
|
+
} & {
|
|
5182
|
+
action_type: z.ZodLiteral<"CONVERT_ACCESS_CODE_TO_MANAGED">;
|
|
5183
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
5184
|
+
}, "strip", z.ZodTypeAny, {
|
|
5185
|
+
status: "success";
|
|
5186
|
+
action_attempt_id: string;
|
|
5187
|
+
error: null;
|
|
5188
|
+
result: {};
|
|
5189
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
5190
|
+
}, {
|
|
5191
|
+
status: "success";
|
|
5192
|
+
action_attempt_id: string;
|
|
5193
|
+
error: null;
|
|
5194
|
+
result: {};
|
|
5195
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
5196
|
+
}>, z.ZodObject<{
|
|
5197
|
+
action_attempt_id: z.ZodString;
|
|
5198
|
+
} & {
|
|
5199
|
+
status: z.ZodLiteral<"error">;
|
|
5200
|
+
result: z.ZodNull;
|
|
5201
|
+
} & {
|
|
5202
|
+
action_type: z.ZodLiteral<"CONVERT_ACCESS_CODE_TO_MANAGED">;
|
|
5203
|
+
error: z.ZodObject<{
|
|
5204
|
+
type: z.ZodString;
|
|
5205
|
+
message: z.ZodString;
|
|
5206
|
+
}, "strip", z.ZodTypeAny, {
|
|
5207
|
+
message: string;
|
|
5208
|
+
type: string;
|
|
5209
|
+
}, {
|
|
5210
|
+
message: string;
|
|
5211
|
+
type: string;
|
|
5212
|
+
}>;
|
|
5213
|
+
}, "strip", z.ZodTypeAny, {
|
|
5214
|
+
status: "error";
|
|
5215
|
+
action_attempt_id: string;
|
|
5216
|
+
error: {
|
|
5217
|
+
message: string;
|
|
5218
|
+
type: string;
|
|
5219
|
+
};
|
|
5220
|
+
result: null;
|
|
5221
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
5222
|
+
}, {
|
|
5223
|
+
status: "error";
|
|
5224
|
+
action_attempt_id: string;
|
|
5225
|
+
error: {
|
|
5226
|
+
message: string;
|
|
5227
|
+
type: string;
|
|
5228
|
+
};
|
|
5229
|
+
result: null;
|
|
5230
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
5231
|
+
}>, z.ZodObject<{
|
|
5232
|
+
action_attempt_id: z.ZodString;
|
|
5233
|
+
} & {
|
|
5234
|
+
status: z.ZodLiteral<"pending">;
|
|
5235
|
+
result: z.ZodNull;
|
|
5236
|
+
error: z.ZodNull;
|
|
5162
5237
|
} & {
|
|
5163
5238
|
action_type: z.ZodLiteral<"SYNC_ACCESS_CODES">;
|
|
5164
5239
|
}, "strip", z.ZodTypeAny, {
|
|
@@ -3,6 +3,7 @@ import { activate_climate_preset_action_attempt } from './activate-climate-prese
|
|
|
3
3
|
import { activate_weekly_program_action_attempt } from './activate-weekly-program.js';
|
|
4
4
|
import { assign_credential_action_attempt } from './assign-credential.js';
|
|
5
5
|
import { configure_auto_lock_action_attempt } from './configure-auto-lock.js';
|
|
6
|
+
import { convert_access_code_to_managed_action_attempt } from './convert-access-code-to-managed.js';
|
|
6
7
|
import { deprecated_action_attempts } from './deprecated.js';
|
|
7
8
|
import { encode_credential_action_attempt } from './encode-credential.js';
|
|
8
9
|
import { lock_door_action_attempt } from './lock-door.js';
|
|
@@ -31,6 +32,7 @@ export const action_attempt = z.union([
|
|
|
31
32
|
...simulate_manual_lock_via_keypad_action_attempt.options,
|
|
32
33
|
...push_thermostat_programs_action_attempt.options,
|
|
33
34
|
...configure_auto_lock_action_attempt.options,
|
|
35
|
+
...convert_access_code_to_managed_action_attempt.options,
|
|
34
36
|
...deprecated_action_attempts,
|
|
35
37
|
]).describe(`
|
|
36
38
|
---
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAA;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,wCAAwC,CAAC,OAAO;IACnD,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,uCAAuC,CAAC,OAAO;IAClD,GAAG,kCAAkC,CAAC,OAAO;IAC7C,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;CASX,CAAC,CAAA"}
|
|
1
|
+
{"version":3,"file":"action-attempt.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/action-attempt.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,kCAAkC,EAAE,MAAM,0BAA0B,CAAA;AAC7E,OAAO,EAAE,6CAA6C,EAAE,MAAM,qCAAqC,CAAA;AACnG,OAAO,EAAE,0BAA0B,EAAE,MAAM,iBAAiB,CAAA;AAC5D,OAAO,EAAE,gCAAgC,EAAE,MAAM,wBAAwB,CAAA;AACzE,OAAO,EAAE,wBAAwB,EAAE,MAAM,gBAAgB,CAAA;AACzD,OAAO,EAAE,uCAAuC,EAAE,MAAM,+BAA+B,CAAA;AACvF,OAAO,EAAE,sCAAsC,EAAE,MAAM,8BAA8B,CAAA;AACrF,OAAO,EAAE,8BAA8B,EAAE,MAAM,sBAAsB,CAAA;AACrE,OAAO,EAAE,wCAAwC,EAAE,MAAM,gCAAgC,CAAA;AACzF,OAAO,EAAE,2BAA2B,EAAE,MAAM,mBAAmB,CAAA;AAC/D,OAAO,EAAE,4BAA4B,EAAE,MAAM,oBAAoB,CAAA;AACjE,OAAO,EAAE,yCAAyC,EAAE,MAAM,iCAAiC,CAAA;AAC3F,OAAO,EAAE,8CAA8C,EAAE,MAAM,sCAAsC,CAAA;AACrG,OAAO,EAAE,0BAA0B,EAAE,MAAM,kBAAkB,CAAA;AAE7D,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,KAAK,CAAC;IACpC,GAAG,wBAAwB,CAAC,OAAO;IACnC,GAAG,0BAA0B,CAAC,OAAO;IACrC,GAAG,8BAA8B,CAAC,OAAO;IACzC,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,wCAAwC,CAAC,OAAO;IACnD,GAAG,gCAAgC,CAAC,OAAO;IAC3C,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,2BAA2B,CAAC,OAAO;IACtC,GAAG,4BAA4B,CAAC,OAAO;IACvC,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,sCAAsC,CAAC,OAAO;IACjD,GAAG,yCAAyC,CAAC,OAAO;IACpD,GAAG,8CAA8C,CAAC,OAAO;IACzD,GAAG,uCAAuC,CAAC,OAAO;IAClD,GAAG,kCAAkC,CAAC,OAAO;IAC7C,GAAG,6CAA6C,CAAC,OAAO;IACxD,GAAG,0BAA0B;CAC9B,CAAC,CAAC,QAAQ,CAAC;;;;;;;;;CASX,CAAC,CAAA"}
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
import * as z from 'zod/v3';
|
|
2
|
+
export declare const convert_access_code_to_managed_action_attempt: z.ZodDiscriminatedUnion<"status", [z.ZodObject<{
|
|
3
|
+
action_attempt_id: z.ZodString;
|
|
4
|
+
} & {
|
|
5
|
+
status: z.ZodLiteral<"pending">;
|
|
6
|
+
result: z.ZodNull;
|
|
7
|
+
error: z.ZodNull;
|
|
8
|
+
} & {
|
|
9
|
+
action_type: z.ZodLiteral<"CONVERT_ACCESS_CODE_TO_MANAGED">;
|
|
10
|
+
}, "strip", z.ZodTypeAny, {
|
|
11
|
+
status: "pending";
|
|
12
|
+
action_attempt_id: string;
|
|
13
|
+
error: null;
|
|
14
|
+
result: null;
|
|
15
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
16
|
+
}, {
|
|
17
|
+
status: "pending";
|
|
18
|
+
action_attempt_id: string;
|
|
19
|
+
error: null;
|
|
20
|
+
result: null;
|
|
21
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
22
|
+
}>, z.ZodObject<{
|
|
23
|
+
action_attempt_id: z.ZodString;
|
|
24
|
+
} & {
|
|
25
|
+
status: z.ZodLiteral<"success">;
|
|
26
|
+
error: z.ZodNull;
|
|
27
|
+
} & {
|
|
28
|
+
action_type: z.ZodLiteral<"CONVERT_ACCESS_CODE_TO_MANAGED">;
|
|
29
|
+
result: z.ZodObject<{}, "strip", z.ZodTypeAny, {}, {}>;
|
|
30
|
+
}, "strip", z.ZodTypeAny, {
|
|
31
|
+
status: "success";
|
|
32
|
+
action_attempt_id: string;
|
|
33
|
+
error: null;
|
|
34
|
+
result: {};
|
|
35
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
36
|
+
}, {
|
|
37
|
+
status: "success";
|
|
38
|
+
action_attempt_id: string;
|
|
39
|
+
error: null;
|
|
40
|
+
result: {};
|
|
41
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
42
|
+
}>, z.ZodObject<{
|
|
43
|
+
action_attempt_id: z.ZodString;
|
|
44
|
+
} & {
|
|
45
|
+
status: z.ZodLiteral<"error">;
|
|
46
|
+
result: z.ZodNull;
|
|
47
|
+
} & {
|
|
48
|
+
action_type: z.ZodLiteral<"CONVERT_ACCESS_CODE_TO_MANAGED">;
|
|
49
|
+
error: z.ZodObject<{
|
|
50
|
+
type: z.ZodString;
|
|
51
|
+
message: z.ZodString;
|
|
52
|
+
}, "strip", z.ZodTypeAny, {
|
|
53
|
+
message: string;
|
|
54
|
+
type: string;
|
|
55
|
+
}, {
|
|
56
|
+
message: string;
|
|
57
|
+
type: string;
|
|
58
|
+
}>;
|
|
59
|
+
}, "strip", z.ZodTypeAny, {
|
|
60
|
+
status: "error";
|
|
61
|
+
action_attempt_id: string;
|
|
62
|
+
error: {
|
|
63
|
+
message: string;
|
|
64
|
+
type: string;
|
|
65
|
+
};
|
|
66
|
+
result: null;
|
|
67
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
68
|
+
}, {
|
|
69
|
+
status: "error";
|
|
70
|
+
action_attempt_id: string;
|
|
71
|
+
error: {
|
|
72
|
+
message: string;
|
|
73
|
+
type: string;
|
|
74
|
+
};
|
|
75
|
+
result: null;
|
|
76
|
+
action_type: "CONVERT_ACCESS_CODE_TO_MANAGED";
|
|
77
|
+
}>]>;
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as z from 'zod/v3';
|
|
2
|
+
import { common_failed_action_attempt, common_pending_action_attempt, common_succeeded_action_attempt, } from './common.js';
|
|
3
|
+
const action_type = z
|
|
4
|
+
.literal('CONVERT_ACCESS_CODE_TO_MANAGED')
|
|
5
|
+
.describe('Action attempt to track the status of converting an unmanaged access code to a managed access code.');
|
|
6
|
+
const error = z
|
|
7
|
+
.object({
|
|
8
|
+
type: z.string().describe('Type of the error.'),
|
|
9
|
+
message: z
|
|
10
|
+
.string()
|
|
11
|
+
.describe('Detailed description of the error. Provides insights into the issue and potentially how to rectify it.'),
|
|
12
|
+
})
|
|
13
|
+
.describe('Error associated with the action.');
|
|
14
|
+
const result = z.object({}).describe('Result of the action.');
|
|
15
|
+
export const convert_access_code_to_managed_action_attempt = z.discriminatedUnion('status', [
|
|
16
|
+
common_pending_action_attempt
|
|
17
|
+
.extend({
|
|
18
|
+
action_type,
|
|
19
|
+
})
|
|
20
|
+
.describe('Converting an unmanaged access code to managed is pending.'),
|
|
21
|
+
common_succeeded_action_attempt
|
|
22
|
+
.extend({
|
|
23
|
+
action_type,
|
|
24
|
+
result,
|
|
25
|
+
})
|
|
26
|
+
.describe('Converting an unmanaged access code to managed succeeded.'),
|
|
27
|
+
common_failed_action_attempt
|
|
28
|
+
.extend({ action_type, error })
|
|
29
|
+
.describe('Converting an unmanaged access code to managed failed.'),
|
|
30
|
+
]);
|
|
31
|
+
//# sourceMappingURL=convert-access-code-to-managed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"convert-access-code-to-managed.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/action-attempts/convert-access-code-to-managed.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAA;AAE3B,OAAO,EACL,4BAA4B,EAC5B,6BAA6B,EAC7B,+BAA+B,GAChC,MAAM,aAAa,CAAA;AAEpB,MAAM,WAAW,GAAG,CAAC;KAClB,OAAO,CAAC,gCAAgC,CAAC;KACzC,QAAQ,CACP,qGAAqG,CACtG,CAAA;AAEH,MAAM,KAAK,GAAG,CAAC;KACZ,MAAM,CAAC;IACN,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,oBAAoB,CAAC;IAC/C,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,CACP,wGAAwG,CACzG;CACJ,CAAC;KACD,QAAQ,CAAC,mCAAmC,CAAC,CAAA;AAEhD,MAAM,MAAM,GAAG,CAAC,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,uBAAuB,CAAC,CAAA;AAE7D,MAAM,CAAC,MAAM,6CAA6C,GACxD,CAAC,CAAC,kBAAkB,CAAC,QAAQ,EAAE;IAC7B,6BAA6B;SAC1B,MAAM,CAAC;QACN,WAAW;KACZ,CAAC;SACD,QAAQ,CAAC,4DAA4D,CAAC;IACzE,+BAA+B;SAC5B,MAAM,CAAC;QACN,WAAW;QACX,MAAM;KACP,CAAC;SACD,QAAQ,CAAC,2DAA2D,CAAC;IACxE,4BAA4B;SACzB,MAAM,CAAC,EAAE,WAAW,EAAE,KAAK,EAAE,CAAC;SAC9B,QAAQ,CAAC,wDAAwD,CAAC;CACtE,CAAC,CAAA"}
|
|
@@ -10165,6 +10165,111 @@ const openapi = {
|
|
|
10165
10165
|
],
|
|
10166
10166
|
type: 'object',
|
|
10167
10167
|
},
|
|
10168
|
+
{
|
|
10169
|
+
description: 'Converting an unmanaged access code to managed is pending.',
|
|
10170
|
+
properties: {
|
|
10171
|
+
action_attempt_id: {
|
|
10172
|
+
description: 'ID of the action attempt.',
|
|
10173
|
+
format: 'uuid',
|
|
10174
|
+
type: 'string',
|
|
10175
|
+
},
|
|
10176
|
+
action_type: {
|
|
10177
|
+
description: 'Action attempt to track the status of converting an unmanaged access code to a managed access code.',
|
|
10178
|
+
enum: ['CONVERT_ACCESS_CODE_TO_MANAGED'],
|
|
10179
|
+
type: 'string',
|
|
10180
|
+
},
|
|
10181
|
+
error: {
|
|
10182
|
+
description: 'Errors associated with the action attempt. Null for pending action attempts.',
|
|
10183
|
+
nullable: true,
|
|
10184
|
+
},
|
|
10185
|
+
result: {
|
|
10186
|
+
description: 'Result of the action attempt. Null for pending action attempts.',
|
|
10187
|
+
nullable: true,
|
|
10188
|
+
},
|
|
10189
|
+
status: { enum: ['pending'], type: 'string' },
|
|
10190
|
+
},
|
|
10191
|
+
required: [
|
|
10192
|
+
'action_attempt_id',
|
|
10193
|
+
'status',
|
|
10194
|
+
'result',
|
|
10195
|
+
'error',
|
|
10196
|
+
'action_type',
|
|
10197
|
+
],
|
|
10198
|
+
type: 'object',
|
|
10199
|
+
},
|
|
10200
|
+
{
|
|
10201
|
+
description: 'Converting an unmanaged access code to managed succeeded.',
|
|
10202
|
+
properties: {
|
|
10203
|
+
action_attempt_id: {
|
|
10204
|
+
description: 'ID of the action attempt.',
|
|
10205
|
+
format: 'uuid',
|
|
10206
|
+
type: 'string',
|
|
10207
|
+
},
|
|
10208
|
+
action_type: {
|
|
10209
|
+
description: 'Action attempt to track the status of converting an unmanaged access code to a managed access code.',
|
|
10210
|
+
enum: ['CONVERT_ACCESS_CODE_TO_MANAGED'],
|
|
10211
|
+
type: 'string',
|
|
10212
|
+
},
|
|
10213
|
+
error: {
|
|
10214
|
+
description: 'Errors associated with the action attempt. Null for successful action attempts.',
|
|
10215
|
+
nullable: true,
|
|
10216
|
+
},
|
|
10217
|
+
result: {
|
|
10218
|
+
description: 'Result of the action.',
|
|
10219
|
+
properties: {},
|
|
10220
|
+
type: 'object',
|
|
10221
|
+
},
|
|
10222
|
+
status: { enum: ['success'], type: 'string' },
|
|
10223
|
+
},
|
|
10224
|
+
required: [
|
|
10225
|
+
'action_attempt_id',
|
|
10226
|
+
'status',
|
|
10227
|
+
'error',
|
|
10228
|
+
'action_type',
|
|
10229
|
+
'result',
|
|
10230
|
+
],
|
|
10231
|
+
type: 'object',
|
|
10232
|
+
},
|
|
10233
|
+
{
|
|
10234
|
+
description: 'Converting an unmanaged access code to managed failed.',
|
|
10235
|
+
properties: {
|
|
10236
|
+
action_attempt_id: {
|
|
10237
|
+
description: 'ID of the action attempt.',
|
|
10238
|
+
format: 'uuid',
|
|
10239
|
+
type: 'string',
|
|
10240
|
+
},
|
|
10241
|
+
action_type: {
|
|
10242
|
+
description: 'Action attempt to track the status of converting an unmanaged access code to a managed access code.',
|
|
10243
|
+
enum: ['CONVERT_ACCESS_CODE_TO_MANAGED'],
|
|
10244
|
+
type: 'string',
|
|
10245
|
+
},
|
|
10246
|
+
error: {
|
|
10247
|
+
description: 'Error associated with the action.',
|
|
10248
|
+
properties: {
|
|
10249
|
+
message: {
|
|
10250
|
+
description: 'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
|
|
10251
|
+
type: 'string',
|
|
10252
|
+
},
|
|
10253
|
+
type: { description: 'Type of the error.', type: 'string' },
|
|
10254
|
+
},
|
|
10255
|
+
required: ['type', 'message'],
|
|
10256
|
+
type: 'object',
|
|
10257
|
+
},
|
|
10258
|
+
result: {
|
|
10259
|
+
description: 'Result of the action attempt. Null for failed action attempts.',
|
|
10260
|
+
nullable: true,
|
|
10261
|
+
},
|
|
10262
|
+
status: { enum: ['error'], type: 'string' },
|
|
10263
|
+
},
|
|
10264
|
+
required: [
|
|
10265
|
+
'action_attempt_id',
|
|
10266
|
+
'status',
|
|
10267
|
+
'result',
|
|
10268
|
+
'action_type',
|
|
10269
|
+
'error',
|
|
10270
|
+
],
|
|
10271
|
+
type: 'object',
|
|
10272
|
+
},
|
|
10168
10273
|
{
|
|
10169
10274
|
properties: {
|
|
10170
10275
|
action_attempt_id: {
|