@seamapi/types 1.682.0 → 1.684.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 +336 -35
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +614 -87
- package/dist/index.cjs +336 -35
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/models/acs/acs-access-group.d.ts +78 -12
- package/lib/seam/connect/models/acs/acs-access-group.js +9 -1
- package/lib/seam/connect/models/acs/acs-access-group.js.map +1 -1
- package/lib/seam/connect/models/batch.d.ts +78 -20
- package/lib/seam/connect/models/customer/customer.d.ts +15 -0
- package/lib/seam/connect/models/customer/customer.js +21 -0
- package/lib/seam/connect/models/customer/customer.js.map +1 -0
- package/lib/seam/connect/models/customer/index.d.ts +1 -0
- package/lib/seam/connect/models/customer/index.js +1 -0
- package/lib/seam/connect/models/customer/index.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +366 -34
- package/lib/seam/connect/openapi.js +329 -32
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +109 -14
- package/package.json +1 -1
- package/src/lib/seam/connect/internal/schemas.ts +1 -0
- package/src/lib/seam/connect/models/acs/acs-access-group.ts +12 -3
- package/src/lib/seam/connect/models/customer/customer.ts +25 -0
- package/src/lib/seam/connect/models/customer/index.ts +1 -0
- package/src/lib/seam/connect/openapi.ts +349 -34
- package/src/lib/seam/connect/route-types.ts +172 -56
|
@@ -11971,14 +11971,21 @@ export type Routes = {
|
|
|
11971
11971
|
/** Date and time at which the access group was created. */
|
|
11972
11972
|
created_at: string;
|
|
11973
11973
|
/** Warnings associated with the `acs_access_group`. */
|
|
11974
|
-
warnings: {
|
|
11974
|
+
warnings: ({
|
|
11975
11975
|
/** Date and time at which Seam created the warning. */
|
|
11976
11976
|
created_at: string;
|
|
11977
11977
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
11978
11978
|
message: string;
|
|
11979
11979
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
11980
11980
|
warning_code: 'unknown_issue_with_acs_access_group';
|
|
11981
|
-
}
|
|
11981
|
+
} | {
|
|
11982
|
+
/** Date and time at which Seam created the warning. */
|
|
11983
|
+
created_at: string;
|
|
11984
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
11985
|
+
message: string;
|
|
11986
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
11987
|
+
warning_code: 'being_deleted';
|
|
11988
|
+
})[];
|
|
11982
11989
|
is_managed: true;
|
|
11983
11990
|
}[] | undefined;
|
|
11984
11991
|
};
|
|
@@ -15494,6 +15501,19 @@ export type Routes = {
|
|
|
15494
15501
|
jsonResponse: {};
|
|
15495
15502
|
maxDuration: undefined;
|
|
15496
15503
|
};
|
|
15504
|
+
'/acs/access_groups/delete': {
|
|
15505
|
+
route: '/acs/access_groups/delete';
|
|
15506
|
+
method: 'DELETE' | 'POST';
|
|
15507
|
+
queryParams: {};
|
|
15508
|
+
jsonBody: {};
|
|
15509
|
+
commonParams: {
|
|
15510
|
+
/** ID of the access group that you want to delete. */
|
|
15511
|
+
acs_access_group_id: string;
|
|
15512
|
+
};
|
|
15513
|
+
formData: {};
|
|
15514
|
+
jsonResponse: {};
|
|
15515
|
+
maxDuration: undefined;
|
|
15516
|
+
};
|
|
15497
15517
|
'/acs/access_groups/get': {
|
|
15498
15518
|
route: '/acs/access_groups/get';
|
|
15499
15519
|
method: 'GET' | 'POST';
|
|
@@ -15535,14 +15555,21 @@ export type Routes = {
|
|
|
15535
15555
|
/** Date and time at which the access group was created. */
|
|
15536
15556
|
created_at: string;
|
|
15537
15557
|
/** Warnings associated with the `acs_access_group`. */
|
|
15538
|
-
warnings: {
|
|
15558
|
+
warnings: ({
|
|
15539
15559
|
/** Date and time at which Seam created the warning. */
|
|
15540
15560
|
created_at: string;
|
|
15541
15561
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
15542
15562
|
message: string;
|
|
15543
15563
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
15544
15564
|
warning_code: 'unknown_issue_with_acs_access_group';
|
|
15545
|
-
}
|
|
15565
|
+
} | {
|
|
15566
|
+
/** Date and time at which Seam created the warning. */
|
|
15567
|
+
created_at: string;
|
|
15568
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
15569
|
+
message: string;
|
|
15570
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
15571
|
+
warning_code: 'being_deleted';
|
|
15572
|
+
})[];
|
|
15546
15573
|
is_managed: true;
|
|
15547
15574
|
};
|
|
15548
15575
|
};
|
|
@@ -15588,14 +15615,21 @@ export type Routes = {
|
|
|
15588
15615
|
/** Date and time at which the access group was created. */
|
|
15589
15616
|
created_at: string;
|
|
15590
15617
|
/** Warnings associated with the `acs_access_group`. */
|
|
15591
|
-
warnings: {
|
|
15618
|
+
warnings: ({
|
|
15592
15619
|
/** Date and time at which Seam created the warning. */
|
|
15593
15620
|
created_at: string;
|
|
15594
15621
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
15595
15622
|
message: string;
|
|
15596
15623
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
15597
15624
|
warning_code: 'unknown_issue_with_acs_access_group';
|
|
15598
|
-
}
|
|
15625
|
+
} | {
|
|
15626
|
+
/** Date and time at which Seam created the warning. */
|
|
15627
|
+
created_at: string;
|
|
15628
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
15629
|
+
message: string;
|
|
15630
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
15631
|
+
warning_code: 'being_deleted';
|
|
15632
|
+
})[];
|
|
15599
15633
|
is_managed: true;
|
|
15600
15634
|
}[];
|
|
15601
15635
|
};
|
|
@@ -16030,14 +16064,21 @@ export type Routes = {
|
|
|
16030
16064
|
/** Date and time at which the access group was created. */
|
|
16031
16065
|
created_at: string;
|
|
16032
16066
|
/** Warnings associated with the `acs_access_group`. */
|
|
16033
|
-
warnings: {
|
|
16067
|
+
warnings: ({
|
|
16034
16068
|
/** Date and time at which Seam created the warning. */
|
|
16035
16069
|
created_at: string;
|
|
16036
16070
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
16037
16071
|
message: string;
|
|
16038
16072
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
16039
16073
|
warning_code: 'unknown_issue_with_acs_access_group';
|
|
16040
|
-
}
|
|
16074
|
+
} | {
|
|
16075
|
+
/** Date and time at which Seam created the warning. */
|
|
16076
|
+
created_at: string;
|
|
16077
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
16078
|
+
message: string;
|
|
16079
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
16080
|
+
warning_code: 'being_deleted';
|
|
16081
|
+
})[];
|
|
16041
16082
|
is_managed: false;
|
|
16042
16083
|
};
|
|
16043
16084
|
};
|
|
@@ -16081,14 +16122,21 @@ export type Routes = {
|
|
|
16081
16122
|
/** Date and time at which the access group was created. */
|
|
16082
16123
|
created_at: string;
|
|
16083
16124
|
/** Warnings associated with the `acs_access_group`. */
|
|
16084
|
-
warnings: {
|
|
16125
|
+
warnings: ({
|
|
16085
16126
|
/** Date and time at which Seam created the warning. */
|
|
16086
16127
|
created_at: string;
|
|
16087
16128
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
16088
16129
|
message: string;
|
|
16089
16130
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
16090
16131
|
warning_code: 'unknown_issue_with_acs_access_group';
|
|
16091
|
-
}
|
|
16132
|
+
} | {
|
|
16133
|
+
/** Date and time at which Seam created the warning. */
|
|
16134
|
+
created_at: string;
|
|
16135
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
16136
|
+
message: string;
|
|
16137
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
16138
|
+
warning_code: 'being_deleted';
|
|
16139
|
+
})[];
|
|
16092
16140
|
is_managed: false;
|
|
16093
16141
|
}[];
|
|
16094
16142
|
};
|
|
@@ -52694,6 +52742,39 @@ export type Routes = {
|
|
|
52694
52742
|
};
|
|
52695
52743
|
maxDuration: undefined;
|
|
52696
52744
|
};
|
|
52745
|
+
'/seam/customer/v1/customers/list': {
|
|
52746
|
+
route: '/seam/customer/v1/customers/list';
|
|
52747
|
+
method: 'GET' | 'POST';
|
|
52748
|
+
queryParams: {};
|
|
52749
|
+
jsonBody: {};
|
|
52750
|
+
commonParams: {
|
|
52751
|
+
/** Maximum number of records to return per page. */
|
|
52752
|
+
limit?: number;
|
|
52753
|
+
/** Identifies the specific page of results to return, obtained from the previous page's `next_page_cursor`. */
|
|
52754
|
+
page_cursor?: ((string | undefined) | null) | undefined;
|
|
52755
|
+
};
|
|
52756
|
+
formData: {};
|
|
52757
|
+
jsonResponse: {
|
|
52758
|
+
customers: {
|
|
52759
|
+
/** Unique key for the customer within the workspace. */
|
|
52760
|
+
customer_key: string;
|
|
52761
|
+
/** ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer. */
|
|
52762
|
+
workspace_id: string;
|
|
52763
|
+
/** Date and time at which the customer was created. */
|
|
52764
|
+
created_at: string;
|
|
52765
|
+
}[];
|
|
52766
|
+
/** Information about the current page of results. */
|
|
52767
|
+
pagination: {
|
|
52768
|
+
/** Opaque value that can be used to select the next page of results via the `page_cursor` parameter. */
|
|
52769
|
+
next_page_cursor: string | null;
|
|
52770
|
+
/** Indicates whether there is another page of results after this one. */
|
|
52771
|
+
has_next_page: boolean;
|
|
52772
|
+
/** URL to get the next page of results. */
|
|
52773
|
+
next_page_url: string | null;
|
|
52774
|
+
};
|
|
52775
|
+
};
|
|
52776
|
+
maxDuration: undefined;
|
|
52777
|
+
};
|
|
52697
52778
|
'/seam/customer/v1/events/list': {
|
|
52698
52779
|
route: '/seam/customer/v1/events/list';
|
|
52699
52780
|
method: 'GET' | 'POST';
|
|
@@ -79109,14 +79190,21 @@ export type Routes = {
|
|
|
79109
79190
|
/** Date and time at which the access group was created. */
|
|
79110
79191
|
created_at: string;
|
|
79111
79192
|
/** Warnings associated with the `acs_access_group`. */
|
|
79112
|
-
warnings: {
|
|
79193
|
+
warnings: ({
|
|
79113
79194
|
/** Date and time at which Seam created the warning. */
|
|
79114
79195
|
created_at: string;
|
|
79115
79196
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
79116
79197
|
message: string;
|
|
79117
79198
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
79118
79199
|
warning_code: 'unknown_issue_with_acs_access_group';
|
|
79119
|
-
}
|
|
79200
|
+
} | {
|
|
79201
|
+
/** Date and time at which Seam created the warning. */
|
|
79202
|
+
created_at: string;
|
|
79203
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
79204
|
+
message: string;
|
|
79205
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
79206
|
+
warning_code: 'being_deleted';
|
|
79207
|
+
})[];
|
|
79120
79208
|
is_managed: true;
|
|
79121
79209
|
}[] | undefined;
|
|
79122
79210
|
acs_encoders?: {
|
|
@@ -80668,14 +80756,21 @@ export type Routes = {
|
|
|
80668
80756
|
/** Date and time at which the access group was created. */
|
|
80669
80757
|
created_at: string;
|
|
80670
80758
|
/** Warnings associated with the `acs_access_group`. */
|
|
80671
|
-
warnings: {
|
|
80759
|
+
warnings: ({
|
|
80672
80760
|
/** Date and time at which Seam created the warning. */
|
|
80673
80761
|
created_at: string;
|
|
80674
80762
|
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
80675
80763
|
message: string;
|
|
80676
80764
|
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
80677
80765
|
warning_code: 'unknown_issue_with_acs_access_group';
|
|
80678
|
-
}
|
|
80766
|
+
} | {
|
|
80767
|
+
/** Date and time at which Seam created the warning. */
|
|
80768
|
+
created_at: string;
|
|
80769
|
+
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
|
|
80770
|
+
message: string;
|
|
80771
|
+
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
|
|
80772
|
+
warning_code: 'being_deleted';
|
|
80773
|
+
})[];
|
|
80679
80774
|
is_managed: false;
|
|
80680
80775
|
}[] | undefined;
|
|
80681
80776
|
unmanaged_devices?: {
|
package/package.json
CHANGED
|
@@ -41,14 +41,23 @@ export const unknown_issue_with_acs_access_group =
|
|
|
41
41
|
'An unknown issue occurred while syncing the state of this access group with the provider. This issue may affect the proper functioning of this access group.',
|
|
42
42
|
)
|
|
43
43
|
|
|
44
|
-
const
|
|
45
|
-
|
|
46
|
-
)
|
|
44
|
+
const acs_access_group_being_deleted = common_acs_access_group_warning
|
|
45
|
+
.extend({
|
|
46
|
+
warning_code: z.literal('being_deleted').describe(warning_code_description),
|
|
47
|
+
})
|
|
48
|
+
.describe(
|
|
49
|
+
'Indicates that the access group is being deleted from the access system. This is a temporary state, and the access group will be deleted shortly.',
|
|
50
|
+
)
|
|
51
|
+
|
|
52
|
+
const acs_access_group_warning = z
|
|
53
|
+
.union([unknown_issue_with_acs_access_group, acs_access_group_being_deleted])
|
|
54
|
+
.describe('Warning associated with the `acs_access_group`.')
|
|
47
55
|
|
|
48
56
|
const _acs_access_group_warning_map = z.object({
|
|
49
57
|
unknown_issue_with_acs_access_group: unknown_issue_with_acs_access_group
|
|
50
58
|
.optional()
|
|
51
59
|
.nullable(),
|
|
60
|
+
being_deleted: acs_access_group_being_deleted.optional().nullable(),
|
|
52
61
|
})
|
|
53
62
|
|
|
54
63
|
export type AcsAccessGroupWarningMap = z.infer<
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
import { z } from 'zod'
|
|
2
|
+
|
|
3
|
+
export const customer = z.object({
|
|
4
|
+
customer_key: z
|
|
5
|
+
.string()
|
|
6
|
+
.describe('Unique key for the customer within the workspace.'),
|
|
7
|
+
workspace_id: z
|
|
8
|
+
.string()
|
|
9
|
+
.uuid()
|
|
10
|
+
.describe(
|
|
11
|
+
'ID of the [workspace](https://docs.seam.co/latest/core-concepts/workspaces) associated with the customer.',
|
|
12
|
+
),
|
|
13
|
+
created_at: z
|
|
14
|
+
.string()
|
|
15
|
+
.datetime()
|
|
16
|
+
.describe('Date and time at which the customer was created.'),
|
|
17
|
+
}).describe(`
|
|
18
|
+
---
|
|
19
|
+
route_path: /customers
|
|
20
|
+
undocumented: Internal resource.
|
|
21
|
+
---
|
|
22
|
+
Represents a customer within a workspace. Customers are used to organize resources and manage access for different clients, such as hotels, property managers, and more.
|
|
23
|
+
`)
|
|
24
|
+
|
|
25
|
+
export type Customer = z.infer<typeof customer>
|