@metal-stack/api 0.4.4 → 0.5.2
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/{js/Makefile → Makefile} +5 -2
- package/bun.lock +74 -0
- package/client-test.d.ts +1 -0
- package/client-test.js +45 -0
- package/client-test.ts +49 -0
- package/client.d.ts +97 -0
- package/client.js +347 -0
- package/client.ts +662 -0
- package/{js/metalstack → metalstack}/admin/v2/audit_pb.d.ts +5 -5
- package/{js/metalstack → metalstack}/admin/v2/audit_pb.ts +5 -5
- package/{js/metalstack → metalstack}/admin/v2/component_pb.d.ts +6 -6
- package/{js/metalstack → metalstack}/admin/v2/component_pb.ts +6 -6
- package/{js/metalstack → metalstack}/admin/v2/filesystem_pb.d.ts +28 -28
- package/{js/metalstack → metalstack}/admin/v2/filesystem_pb.ts +28 -28
- package/{js/metalstack → metalstack}/admin/v2/image_pb.d.ts +16 -16
- package/{js/metalstack → metalstack}/admin/v2/image_pb.ts +16 -16
- package/{js/metalstack → metalstack}/admin/v2/ip_pb.d.ts +2 -2
- package/{js/metalstack → metalstack}/admin/v2/ip_pb.ts +2 -2
- package/{js/metalstack → metalstack}/admin/v2/machine_pb.d.ts +47 -55
- package/{js/metalstack → metalstack}/admin/v2/machine_pb.js +1 -1
- package/{js/metalstack → metalstack}/admin/v2/machine_pb.ts +48 -55
- package/{js/metalstack → metalstack}/admin/v2/network_pb.d.ts +195 -37
- package/{js/metalstack → metalstack}/admin/v2/network_pb.js +36 -5
- package/{js/metalstack → metalstack}/admin/v2/network_pb.ts +222 -42
- package/{js/metalstack → metalstack}/admin/v2/partition_pb.d.ts +26 -26
- package/{js/metalstack → metalstack}/admin/v2/partition_pb.ts +26 -26
- package/{js/metalstack → metalstack}/admin/v2/project_pb.d.ts +2 -2
- package/{js/metalstack → metalstack}/admin/v2/project_pb.ts +2 -2
- package/{js/metalstack → metalstack}/admin/v2/size_imageconstraint_pb.d.ts +18 -18
- package/{js/metalstack → metalstack}/admin/v2/size_imageconstraint_pb.ts +18 -18
- package/{js/metalstack → metalstack}/admin/v2/size_pb.d.ts +11 -11
- package/{js/metalstack → metalstack}/admin/v2/size_pb.ts +11 -11
- package/{js/metalstack → metalstack}/admin/v2/size_reservation_pb.d.ts +14 -14
- package/{js/metalstack → metalstack}/admin/v2/size_reservation_pb.ts +14 -14
- package/{js/metalstack → metalstack}/admin/v2/switch_pb.d.ts +29 -29
- package/{js/metalstack → metalstack}/admin/v2/switch_pb.ts +29 -29
- package/{js/metalstack → metalstack}/admin/v2/task_pb.d.ts +47 -47
- package/{js/metalstack → metalstack}/admin/v2/task_pb.js +8 -8
- package/{js/metalstack → metalstack}/admin/v2/task_pb.ts +47 -47
- package/{js/metalstack → metalstack}/admin/v2/tenant_pb.d.ts +22 -22
- package/{js/metalstack → metalstack}/admin/v2/tenant_pb.ts +22 -22
- package/{js/metalstack → metalstack}/admin/v2/token_pb.d.ts +8 -8
- package/{js/metalstack → metalstack}/admin/v2/token_pb.ts +8 -8
- package/{js/metalstack → metalstack}/admin/v2/vpn_pb.d.ts +13 -13
- package/{js/metalstack → metalstack}/admin/v2/vpn_pb.ts +13 -13
- package/{js/metalstack → metalstack}/api/v2/audit_pb.d.ts +37 -37
- package/{js/metalstack → metalstack}/api/v2/audit_pb.js +3 -3
- package/{js/metalstack → metalstack}/api/v2/audit_pb.ts +37 -37
- package/{js/metalstack → metalstack}/api/v2/common_pb.d.ts +68 -68
- package/{js/metalstack → metalstack}/api/v2/common_pb.js +47 -47
- package/{js/metalstack → metalstack}/api/v2/common_pb.ts +68 -68
- package/{js/metalstack → metalstack}/api/v2/component_pb.d.ts +17 -17
- package/{js/metalstack → metalstack}/api/v2/component_pb.js +8 -8
- package/{js/metalstack → metalstack}/api/v2/component_pb.ts +17 -17
- package/{js/metalstack → metalstack}/api/v2/filesystem_pb.d.ts +82 -82
- package/{js/metalstack → metalstack}/api/v2/filesystem_pb.js +23 -23
- package/{js/metalstack → metalstack}/api/v2/filesystem_pb.ts +82 -82
- package/{js/metalstack → metalstack}/api/v2/health_pb.d.ts +21 -21
- package/{js/metalstack → metalstack}/api/v2/health_pb.js +13 -13
- package/{js/metalstack → metalstack}/api/v2/health_pb.ts +21 -21
- package/{js/metalstack → metalstack}/api/v2/image_pb.d.ts +45 -45
- package/{js/metalstack → metalstack}/api/v2/image_pb.js +9 -9
- package/{js/metalstack → metalstack}/api/v2/image_pb.ts +45 -45
- package/{js/metalstack → metalstack}/api/v2/ip_pb.d.ts +67 -67
- package/{js/metalstack → metalstack}/api/v2/ip_pb.js +8 -8
- package/{js/metalstack → metalstack}/api/v2/ip_pb.ts +67 -67
- package/{js/metalstack → metalstack}/api/v2/machine_pb.d.ts +422 -374
- package/{js/metalstack → metalstack}/api/v2/machine_pb.js +94 -89
- package/{js/metalstack → metalstack}/api/v2/machine_pb.ts +453 -396
- package/{js/metalstack → metalstack}/api/v2/method_pb.d.ts +7 -7
- package/{js/metalstack → metalstack}/api/v2/method_pb.ts +7 -7
- package/{js/metalstack → metalstack}/api/v2/network_pb.d.ts +146 -98
- package/{js/metalstack → metalstack}/api/v2/network_pb.js +30 -20
- package/{js/metalstack → metalstack}/api/v2/network_pb.ts +158 -102
- package/{js/metalstack → metalstack}/api/v2/partition_pb.d.ts +28 -28
- package/{js/metalstack → metalstack}/api/v2/partition_pb.ts +28 -28
- package/{js/metalstack → metalstack}/api/v2/predefined_rules_pb.d.ts +30 -24
- package/{js/metalstack → metalstack}/api/v2/predefined_rules_pb.js +40 -34
- package/{js/metalstack → metalstack}/api/v2/predefined_rules_pb.ts +42 -34
- package/{js/metalstack → metalstack}/api/v2/project_pb.d.ts +114 -114
- package/{js/metalstack → metalstack}/api/v2/project_pb.ts +114 -114
- package/{js/metalstack → metalstack}/api/v2/size_imageconstraint_pb.d.ts +21 -22
- package/{js/metalstack → metalstack}/api/v2/size_imageconstraint_pb.ts +21 -22
- package/{js/metalstack → metalstack}/api/v2/size_pb.d.ts +29 -29
- package/{js/metalstack → metalstack}/api/v2/size_pb.js +6 -6
- package/{js/metalstack → metalstack}/api/v2/size_pb.ts +29 -29
- package/{js/metalstack → metalstack}/api/v2/size_reservation_pb.d.ts +27 -27
- package/{js/metalstack → metalstack}/api/v2/size_reservation_pb.ts +27 -27
- package/{js/metalstack → metalstack}/api/v2/switch_pb.d.ts +8 -8
- package/{js/metalstack → metalstack}/api/v2/switch_pb.js +1 -1
- package/{js/metalstack → metalstack}/api/v2/switch_pb.ts +9 -9
- package/{js/metalstack → metalstack}/api/v2/tenant_pb.d.ts +114 -116
- package/{js/metalstack → metalstack}/api/v2/tenant_pb.ts +114 -116
- package/{js/metalstack → metalstack}/api/v2/token_pb.d.ts +103 -103
- package/{js/metalstack → metalstack}/api/v2/token_pb.js +3 -3
- package/{js/metalstack → metalstack}/api/v2/token_pb.ts +103 -103
- package/{js/metalstack → metalstack}/api/v2/user_pb.d.ts +8 -8
- package/{js/metalstack → metalstack}/api/v2/user_pb.ts +8 -8
- package/{js/metalstack → metalstack}/api/v2/version_pb.d.ts +5 -5
- package/{js/metalstack → metalstack}/api/v2/version_pb.ts +5 -5
- package/{js/metalstack → metalstack}/api/v2/vpn_pb.d.ts +6 -6
- package/{js/metalstack → metalstack}/api/v2/vpn_pb.ts +6 -6
- package/{js/metalstack → metalstack}/infra/v2/bmc_pb.d.ts +15 -17
- package/{js/metalstack → metalstack}/infra/v2/bmc_pb.js +1 -1
- package/{js/metalstack → metalstack}/infra/v2/bmc_pb.ts +16 -16
- package/{js/metalstack → metalstack}/infra/v2/boot_pb.d.ts +36 -36
- package/{js/metalstack → metalstack}/infra/v2/boot_pb.ts +36 -36
- package/{js/metalstack → metalstack}/infra/v2/component_pb.d.ts +5 -5
- package/{js/metalstack → metalstack}/infra/v2/component_pb.ts +5 -5
- package/{js/metalstack → metalstack}/infra/v2/event_pb.d.ts +3 -3
- package/{js/metalstack → metalstack}/infra/v2/event_pb.ts +3 -3
- package/{js/metalstack → metalstack}/infra/v2/switch_pb.d.ts +12 -12
- package/{js/metalstack → metalstack}/infra/v2/switch_pb.ts +12 -12
- package/package.json +4 -3
- package/test-interceptor.d.ts +9 -0
- package/test-interceptor.js +33 -0
- package/test-interceptor.ts +49 -0
- package/tsconfig.json +14 -0
- package/LICENSE +0 -21
- package/README.md +0 -117
- package/js/tsconfig.json +0 -70
- /package/{js/buf → buf}/validate/validate_pb.d.ts +0 -0
- /package/{js/buf → buf}/validate/validate_pb.js +0 -0
- /package/{js/buf → buf}/validate/validate_pb.ts +0 -0
- /package/{js/metalstack → metalstack}/admin/v2/audit_pb.js +0 -0
- /package/{js/metalstack → metalstack}/admin/v2/component_pb.js +0 -0
- /package/{js/metalstack → metalstack}/admin/v2/filesystem_pb.js +0 -0
- /package/{js/metalstack → metalstack}/admin/v2/image_pb.js +0 -0
- /package/{js/metalstack → metalstack}/admin/v2/ip_pb.js +0 -0
- /package/{js/metalstack → metalstack}/admin/v2/partition_pb.js +0 -0
- /package/{js/metalstack → metalstack}/admin/v2/project_pb.js +0 -0
- /package/{js/metalstack → metalstack}/admin/v2/size_imageconstraint_pb.js +0 -0
- /package/{js/metalstack → metalstack}/admin/v2/size_pb.js +0 -0
- /package/{js/metalstack → metalstack}/admin/v2/size_reservation_pb.js +0 -0
- /package/{js/metalstack → metalstack}/admin/v2/switch_pb.js +0 -0
- /package/{js/metalstack → metalstack}/admin/v2/tenant_pb.js +0 -0
- /package/{js/metalstack → metalstack}/admin/v2/token_pb.js +0 -0
- /package/{js/metalstack → metalstack}/admin/v2/vpn_pb.js +0 -0
- /package/{js/metalstack → metalstack}/api/v2/method_pb.js +0 -0
- /package/{js/metalstack → metalstack}/api/v2/partition_pb.js +0 -0
- /package/{js/metalstack → metalstack}/api/v2/project_pb.js +0 -0
- /package/{js/metalstack → metalstack}/api/v2/size_imageconstraint_pb.js +0 -0
- /package/{js/metalstack → metalstack}/api/v2/size_reservation_pb.js +0 -0
- /package/{js/metalstack → metalstack}/api/v2/tenant_pb.js +0 -0
- /package/{js/metalstack → metalstack}/api/v2/user_pb.js +0 -0
- /package/{js/metalstack → metalstack}/api/v2/version_pb.js +0 -0
- /package/{js/metalstack → metalstack}/api/v2/vpn_pb.js +0 -0
- /package/{js/metalstack → metalstack}/infra/v2/boot_pb.js +0 -0
- /package/{js/metalstack → metalstack}/infra/v2/component_pb.js +0 -0
- /package/{js/metalstack → metalstack}/infra/v2/event_pb.js +0 -0
- /package/{js/metalstack → metalstack}/infra/v2/switch_pb.js +0 -0
|
@@ -24,7 +24,7 @@ export declare const MethodServiceListRequestSchema: GenMessage<MethodServiceLis
|
|
|
24
24
|
*/
|
|
25
25
|
export type MethodServiceListResponse = Message<"metalstack.api.v2.MethodServiceListResponse"> & {
|
|
26
26
|
/**
|
|
27
|
-
* Methods is a list of methods public callable
|
|
27
|
+
* Methods is a list of methods public callable.
|
|
28
28
|
*
|
|
29
29
|
* @generated from field: repeated string methods = 1;
|
|
30
30
|
*/
|
|
@@ -53,13 +53,13 @@ export declare const MethodServiceTokenScopedListRequestSchema: GenMessage<Metho
|
|
|
53
53
|
*/
|
|
54
54
|
export type MethodServiceTokenScopedListResponse = Message<"metalstack.api.v2.MethodServiceTokenScopedListResponse"> & {
|
|
55
55
|
/**
|
|
56
|
-
* Permissions contains a list of methods which can be called
|
|
56
|
+
* Permissions contains a list of methods which can be called.
|
|
57
57
|
*
|
|
58
58
|
* @generated from field: repeated metalstack.api.v2.MethodPermission permissions = 1;
|
|
59
59
|
*/
|
|
60
60
|
permissions: MethodPermission[];
|
|
61
61
|
/**
|
|
62
|
-
* ProjectRoles associates a project ID with the corresponding role of the token owner
|
|
62
|
+
* ProjectRoles associates a project ID with the corresponding role of the token owner.
|
|
63
63
|
*
|
|
64
64
|
* @generated from field: map<string, metalstack.api.v2.ProjectRole> project_roles = 2;
|
|
65
65
|
*/
|
|
@@ -67,7 +67,7 @@ export type MethodServiceTokenScopedListResponse = Message<"metalstack.api.v2.Me
|
|
|
67
67
|
[key: string]: ProjectRole;
|
|
68
68
|
};
|
|
69
69
|
/**
|
|
70
|
-
* TenantRoles associates a tenant ID with the corresponding role of the token owner
|
|
70
|
+
* TenantRoles associates a tenant ID with the corresponding role of the token owner.
|
|
71
71
|
*
|
|
72
72
|
* @generated from field: map<string, metalstack.api.v2.TenantRole> tenant_roles = 3;
|
|
73
73
|
*/
|
|
@@ -75,19 +75,19 @@ export type MethodServiceTokenScopedListResponse = Message<"metalstack.api.v2.Me
|
|
|
75
75
|
[key: string]: TenantRole;
|
|
76
76
|
};
|
|
77
77
|
/**
|
|
78
|
-
* AdminRole defines the admin role of the token owner
|
|
78
|
+
* AdminRole defines the admin role of the token owner.
|
|
79
79
|
*
|
|
80
80
|
* @generated from field: optional metalstack.api.v2.AdminRole admin_role = 4;
|
|
81
81
|
*/
|
|
82
82
|
adminRole?: AdminRole | undefined;
|
|
83
83
|
/**
|
|
84
|
-
* InfraRole defines the infrastructure role of the token owner
|
|
84
|
+
* InfraRole defines the infrastructure role of the token owner.
|
|
85
85
|
*
|
|
86
86
|
* @generated from field: optional metalstack.api.v2.InfraRole infra_role = 5;
|
|
87
87
|
*/
|
|
88
88
|
infraRole?: InfraRole | undefined;
|
|
89
89
|
/**
|
|
90
|
-
* MachineRoles defines the machine roles of the token owner
|
|
90
|
+
* MachineRoles defines the machine roles of the token owner.
|
|
91
91
|
*
|
|
92
92
|
* @generated from field: map<string, metalstack.api.v2.MachineRole> machine_roles = 6;
|
|
93
93
|
*/
|
|
@@ -39,7 +39,7 @@ export const MethodServiceListRequestSchema: GenMessage<MethodServiceListRequest
|
|
|
39
39
|
*/
|
|
40
40
|
export type MethodServiceListResponse = Message<"metalstack.api.v2.MethodServiceListResponse"> & {
|
|
41
41
|
/**
|
|
42
|
-
* Methods is a list of methods public callable
|
|
42
|
+
* Methods is a list of methods public callable.
|
|
43
43
|
*
|
|
44
44
|
* @generated from field: repeated string methods = 1;
|
|
45
45
|
*/
|
|
@@ -75,42 +75,42 @@ export const MethodServiceTokenScopedListRequestSchema: GenMessage<MethodService
|
|
|
75
75
|
*/
|
|
76
76
|
export type MethodServiceTokenScopedListResponse = Message<"metalstack.api.v2.MethodServiceTokenScopedListResponse"> & {
|
|
77
77
|
/**
|
|
78
|
-
* Permissions contains a list of methods which can be called
|
|
78
|
+
* Permissions contains a list of methods which can be called.
|
|
79
79
|
*
|
|
80
80
|
* @generated from field: repeated metalstack.api.v2.MethodPermission permissions = 1;
|
|
81
81
|
*/
|
|
82
82
|
permissions: MethodPermission[];
|
|
83
83
|
|
|
84
84
|
/**
|
|
85
|
-
* ProjectRoles associates a project ID with the corresponding role of the token owner
|
|
85
|
+
* ProjectRoles associates a project ID with the corresponding role of the token owner.
|
|
86
86
|
*
|
|
87
87
|
* @generated from field: map<string, metalstack.api.v2.ProjectRole> project_roles = 2;
|
|
88
88
|
*/
|
|
89
89
|
projectRoles: { [key: string]: ProjectRole };
|
|
90
90
|
|
|
91
91
|
/**
|
|
92
|
-
* TenantRoles associates a tenant ID with the corresponding role of the token owner
|
|
92
|
+
* TenantRoles associates a tenant ID with the corresponding role of the token owner.
|
|
93
93
|
*
|
|
94
94
|
* @generated from field: map<string, metalstack.api.v2.TenantRole> tenant_roles = 3;
|
|
95
95
|
*/
|
|
96
96
|
tenantRoles: { [key: string]: TenantRole };
|
|
97
97
|
|
|
98
98
|
/**
|
|
99
|
-
* AdminRole defines the admin role of the token owner
|
|
99
|
+
* AdminRole defines the admin role of the token owner.
|
|
100
100
|
*
|
|
101
101
|
* @generated from field: optional metalstack.api.v2.AdminRole admin_role = 4;
|
|
102
102
|
*/
|
|
103
103
|
adminRole?: AdminRole | undefined;
|
|
104
104
|
|
|
105
105
|
/**
|
|
106
|
-
* InfraRole defines the infrastructure role of the token owner
|
|
106
|
+
* InfraRole defines the infrastructure role of the token owner.
|
|
107
107
|
*
|
|
108
108
|
* @generated from field: optional metalstack.api.v2.InfraRole infra_role = 5;
|
|
109
109
|
*/
|
|
110
110
|
infraRole?: InfraRole | undefined;
|
|
111
111
|
|
|
112
112
|
/**
|
|
113
|
-
* MachineRoles defines the machine roles of the token owner
|
|
113
|
+
* MachineRoles defines the machine roles of the token owner.
|
|
114
114
|
*
|
|
115
115
|
* @generated from field: map<string, metalstack.api.v2.MachineRole> machine_roles = 6;
|
|
116
116
|
*/
|