@qlever-llc/trellis 0.6.0 → 0.7.0-rc.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/README.md +6 -2
- package/esm/auth/device_activation.d.ts +194 -0
- package/esm/auth/device_activation.d.ts.map +1 -0
- package/esm/auth/{workload_activation.js → device_activation.js} +85 -60
- package/esm/auth/mod.d.ts +2 -2
- package/esm/auth/mod.d.ts.map +1 -1
- package/esm/auth/mod.js +2 -2
- package/esm/auth/protocol.d.ts +175 -72
- package/esm/auth/protocol.d.ts.map +1 -1
- package/esm/auth/protocol.js +126 -78
- package/esm/contracts/mod.d.ts +22 -2
- package/esm/contracts/mod.d.ts.map +1 -1
- package/esm/contracts/mod.js +30 -4
- package/esm/contracts/protocol.d.ts +34 -0
- package/esm/contracts/protocol.d.ts.map +1 -1
- package/esm/contracts/protocol.js +15 -0
- package/esm/server/deno.d.ts +1 -6
- package/esm/server/deno.d.ts.map +1 -1
- package/esm/server/deno.js +1 -16
- package/esm/server/mod.d.ts +3 -2
- package/esm/server/mod.d.ts.map +1 -1
- package/esm/server/mod.js +2 -2
- package/esm/server/node.d.ts +1 -6
- package/esm/server/node.d.ts.map +1 -1
- package/esm/server/node.js +1 -16
- package/esm/server/service.d.ts +32 -10
- package/esm/server/service.d.ts.map +1 -1
- package/esm/server/service.js +188 -41
- package/esm/server/transfer.d.ts +41 -0
- package/esm/server/transfer.d.ts.map +1 -0
- package/esm/server/transfer.js +418 -0
- package/esm/telemetry/init.d.ts +4 -0
- package/esm/telemetry/init.d.ts.map +1 -0
- package/esm/telemetry/init.js +7 -0
- package/esm/telemetry/mod.d.ts +1 -2
- package/esm/telemetry/mod.d.ts.map +1 -1
- package/esm/telemetry/mod.js +1 -2
- package/esm/telemetry/runtime.d.ts.map +1 -1
- package/esm/telemetry/runtime.js +9 -5
- package/esm/telemetry/trellis.d.ts +0 -1
- package/esm/telemetry/trellis.d.ts.map +1 -1
- package/esm/telemetry/trellis.js +0 -6
- package/esm/trellis/_sdk/activity/contract.d.ts +1 -1
- package/esm/trellis/_sdk/activity/contract.d.ts.map +1 -1
- package/esm/trellis/_sdk/activity/contract.js +2 -2
- package/esm/trellis/_sdk/activity/types.d.ts +1 -1
- package/esm/trellis/_sdk/activity/types.js +1 -1
- package/esm/trellis/_sdk/auth/api.d.ts.map +1 -1
- package/esm/trellis/_sdk/auth/api.js +132 -110
- package/esm/trellis/_sdk/auth/contract.d.ts +1 -1
- package/esm/trellis/_sdk/auth/contract.d.ts.map +1 -1
- package/esm/trellis/_sdk/auth/contract.js +2 -2
- package/esm/trellis/_sdk/auth/schemas.d.ts +4212 -3069
- package/esm/trellis/_sdk/auth/schemas.d.ts.map +1 -1
- package/esm/trellis/_sdk/auth/schemas.js +144 -125
- package/esm/trellis/_sdk/auth/types.d.ts +417 -267
- package/esm/trellis/_sdk/auth/types.d.ts.map +1 -1
- package/esm/trellis/_sdk/auth/types.js +1 -1
- package/esm/trellis/_sdk/core/contract.d.ts +1 -1
- package/esm/trellis/_sdk/core/contract.d.ts.map +1 -1
- package/esm/trellis/_sdk/core/contract.js +2 -2
- package/esm/trellis/_sdk/core/schemas.d.ts +122 -0
- package/esm/trellis/_sdk/core/schemas.d.ts.map +1 -1
- package/esm/trellis/_sdk/core/schemas.js +4 -4
- package/esm/trellis/_sdk/core/types.d.ts +18 -1
- package/esm/trellis/_sdk/core/types.d.ts.map +1 -1
- package/esm/trellis/_sdk/core/types.js +1 -1
- package/esm/trellis/_sdk/state/_dnt.polyfills.d.ts +12 -0
- package/esm/trellis/_sdk/state/_dnt.polyfills.d.ts.map +1 -0
- package/esm/trellis/_sdk/state/_dnt.polyfills.js +15 -0
- package/esm/trellis/_sdk/state/api.d.ts +10 -0
- package/esm/trellis/_sdk/state/api.d.ts.map +1 -0
- package/esm/trellis/_sdk/state/api.js +71 -0
- package/esm/trellis/_sdk/state/contract.d.ts +8 -0
- package/esm/trellis/_sdk/state/contract.d.ts.map +1 -0
- package/esm/trellis/_sdk/state/contract.js +59 -0
- package/esm/trellis/_sdk/state/mod.d.ts +7 -0
- package/esm/trellis/_sdk/state/mod.d.ts.map +1 -0
- package/esm/trellis/_sdk/state/mod.js +5 -0
- package/esm/trellis/_sdk/state/package.json +3 -0
- package/esm/trellis/_sdk/state/schemas.d.ts +1437 -0
- package/esm/trellis/_sdk/state/schemas.d.ts.map +1 -0
- package/esm/trellis/_sdk/state/schemas.js +62 -0
- package/esm/trellis/_sdk/state/types.d.ts +206 -0
- package/esm/trellis/_sdk/state/types.d.ts.map +1 -0
- package/esm/trellis/_sdk/state/types.js +3 -0
- package/esm/trellis/client_connect.d.ts +53 -0
- package/esm/trellis/client_connect.d.ts.map +1 -0
- package/esm/trellis/client_connect.js +300 -0
- package/esm/trellis/contract.d.ts +1 -7
- package/esm/trellis/contract.d.ts.map +1 -1
- package/esm/trellis/contract.js +1 -12
- package/esm/trellis/device.d.ts +41 -0
- package/esm/trellis/device.d.ts.map +1 -0
- package/esm/trellis/device.js +209 -0
- package/esm/trellis/errors/AuthError.d.ts +1 -1
- package/esm/trellis/errors/AuthError.js +9 -9
- package/esm/trellis/errors/StoreError.d.ts +22 -0
- package/esm/trellis/errors/StoreError.d.ts.map +1 -0
- package/esm/trellis/errors/StoreError.js +41 -0
- package/esm/trellis/errors/TransferError.d.ts +22 -0
- package/esm/trellis/errors/TransferError.d.ts.map +1 -0
- package/esm/trellis/errors/TransferError.js +41 -0
- package/esm/trellis/errors/index.d.ts +8 -0
- package/esm/trellis/errors/index.d.ts.map +1 -1
- package/esm/trellis/errors/index.js +8 -0
- package/esm/trellis/index.d.ts +10 -4
- package/esm/trellis/index.d.ts.map +1 -1
- package/esm/trellis/index.js +6 -4
- package/esm/trellis/kv.d.ts +2 -0
- package/esm/trellis/kv.d.ts.map +1 -1
- package/esm/trellis/kv.js +6 -0
- package/esm/trellis/models/trellis/TrellisError.d.ts +15 -1
- package/esm/trellis/models/trellis/TrellisError.d.ts.map +1 -1
- package/esm/trellis/models/trellis/TrellisError.js +4 -0
- package/esm/trellis/runtime_transport.d.ts +12 -0
- package/esm/trellis/runtime_transport.d.ts.map +1 -0
- package/esm/trellis/runtime_transport.js +35 -0
- package/esm/trellis/sdk/state.d.ts +4 -0
- package/esm/trellis/sdk/state.d.ts.map +1 -0
- package/esm/trellis/sdk/state.js +3 -0
- package/esm/trellis/store.d.ts +51 -0
- package/esm/trellis/store.d.ts.map +1 -0
- package/esm/trellis/store.js +310 -0
- package/esm/trellis/tracing.js +1 -1
- package/esm/trellis/transfer.d.ts +118 -0
- package/esm/trellis/transfer.d.ts.map +1 -0
- package/esm/trellis/transfer.js +357 -0
- package/esm/trellis/trellis.d.ts +3 -0
- package/esm/trellis/trellis.d.ts.map +1 -1
- package/esm/trellis/trellis.js +48 -17
- package/package.json +8 -3
- package/script/auth/device_activation.d.ts +194 -0
- package/script/auth/device_activation.d.ts.map +1 -0
- package/script/auth/{workload_activation.js → device_activation.js} +99 -74
- package/script/auth/mod.d.ts +2 -2
- package/script/auth/mod.d.ts.map +1 -1
- package/script/auth/mod.js +84 -76
- package/script/auth/protocol.d.ts +175 -72
- package/script/auth/protocol.d.ts.map +1 -1
- package/script/auth/protocol.js +129 -81
- package/script/contracts/mod.d.ts +22 -2
- package/script/contracts/mod.d.ts.map +1 -1
- package/script/contracts/mod.js +32 -4
- package/script/contracts/protocol.d.ts +34 -0
- package/script/contracts/protocol.d.ts.map +1 -1
- package/script/contracts/protocol.js +16 -1
- package/script/telemetry/init.d.ts +4 -0
- package/script/telemetry/init.d.ts.map +1 -0
- package/script/telemetry/init.js +11 -0
- package/script/telemetry/mod.d.ts +1 -2
- package/script/telemetry/mod.d.ts.map +1 -1
- package/script/telemetry/mod.js +1 -4
- package/script/telemetry/runtime.d.ts.map +1 -1
- package/script/telemetry/runtime.js +9 -28
- package/script/telemetry/trellis.d.ts +0 -1
- package/script/telemetry/trellis.d.ts.map +1 -1
- package/script/telemetry/trellis.js +0 -7
- package/script/trellis/_sdk/activity/contract.d.ts +1 -1
- package/script/trellis/_sdk/activity/contract.d.ts.map +1 -1
- package/script/trellis/_sdk/activity/contract.js +2 -2
- package/script/trellis/_sdk/activity/types.d.ts +1 -1
- package/script/trellis/_sdk/activity/types.js +1 -1
- package/script/trellis/_sdk/auth/api.d.ts.map +1 -1
- package/script/trellis/_sdk/auth/api.js +132 -110
- package/script/trellis/_sdk/auth/contract.d.ts +1 -1
- package/script/trellis/_sdk/auth/contract.d.ts.map +1 -1
- package/script/trellis/_sdk/auth/contract.js +2 -2
- package/script/trellis/_sdk/auth/schemas.d.ts +4212 -3069
- package/script/trellis/_sdk/auth/schemas.d.ts.map +1 -1
- package/script/trellis/_sdk/auth/schemas.js +144 -125
- package/script/trellis/_sdk/auth/types.d.ts +417 -267
- package/script/trellis/_sdk/auth/types.d.ts.map +1 -1
- package/script/trellis/_sdk/auth/types.js +1 -1
- package/script/trellis/_sdk/core/contract.d.ts +1 -1
- package/script/trellis/_sdk/core/contract.d.ts.map +1 -1
- package/script/trellis/_sdk/core/contract.js +2 -2
- package/script/trellis/_sdk/core/schemas.d.ts +122 -0
- package/script/trellis/_sdk/core/schemas.d.ts.map +1 -1
- package/script/trellis/_sdk/core/schemas.js +4 -4
- package/script/trellis/_sdk/core/types.d.ts +18 -1
- package/script/trellis/_sdk/core/types.d.ts.map +1 -1
- package/script/trellis/_sdk/core/types.js +1 -1
- package/script/trellis/_sdk/state/_dnt.polyfills.d.ts +12 -0
- package/script/trellis/_sdk/state/_dnt.polyfills.d.ts.map +1 -0
- package/script/trellis/_sdk/state/_dnt.polyfills.js +16 -0
- package/script/trellis/_sdk/state/api.d.ts +10 -0
- package/script/trellis/_sdk/state/api.d.ts.map +1 -0
- package/script/trellis/_sdk/state/api.js +74 -0
- package/script/trellis/_sdk/state/contract.d.ts +8 -0
- package/script/trellis/_sdk/state/contract.d.ts.map +1 -0
- package/script/trellis/_sdk/state/contract.js +62 -0
- package/script/trellis/_sdk/state/mod.d.ts +7 -0
- package/script/trellis/_sdk/state/mod.d.ts.map +1 -0
- package/script/trellis/_sdk/state/mod.js +30 -0
- package/script/trellis/_sdk/state/package.json +3 -0
- package/script/trellis/_sdk/state/schemas.d.ts +1437 -0
- package/script/trellis/_sdk/state/schemas.d.ts.map +1 -0
- package/script/trellis/_sdk/state/schemas.js +65 -0
- package/script/trellis/_sdk/state/types.d.ts +206 -0
- package/script/trellis/_sdk/state/types.d.ts.map +1 -0
- package/script/trellis/_sdk/state/types.js +6 -0
- package/script/trellis/client_connect.d.ts +53 -0
- package/script/trellis/client_connect.d.ts.map +1 -0
- package/script/trellis/client_connect.js +304 -0
- package/script/trellis/contract.d.ts +1 -7
- package/script/trellis/contract.d.ts.map +1 -1
- package/script/trellis/contract.js +1 -12
- package/script/trellis/device.d.ts +41 -0
- package/script/trellis/device.d.ts.map +1 -0
- package/script/trellis/device.js +213 -0
- package/script/trellis/errors/AuthError.d.ts +1 -1
- package/script/trellis/errors/AuthError.js +9 -9
- package/script/trellis/errors/StoreError.d.ts +22 -0
- package/script/trellis/errors/StoreError.d.ts.map +1 -0
- package/script/trellis/errors/StoreError.js +48 -0
- package/script/trellis/errors/TransferError.d.ts +22 -0
- package/script/trellis/errors/TransferError.d.ts.map +1 -0
- package/script/trellis/errors/TransferError.js +48 -0
- package/script/trellis/errors/index.d.ts +8 -0
- package/script/trellis/errors/index.d.ts.map +1 -1
- package/script/trellis/errors/index.js +13 -1
- package/script/trellis/index.d.ts +10 -4
- package/script/trellis/index.d.ts.map +1 -1
- package/script/trellis/index.js +17 -6
- package/script/trellis/kv.d.ts +2 -0
- package/script/trellis/kv.d.ts.map +1 -1
- package/script/trellis/kv.js +6 -0
- package/script/trellis/models/trellis/TrellisError.d.ts +15 -1
- package/script/trellis/models/trellis/TrellisError.d.ts.map +1 -1
- package/script/trellis/models/trellis/TrellisError.js +4 -0
- package/script/trellis/runtime_transport.d.ts +12 -0
- package/script/trellis/runtime_transport.d.ts.map +1 -0
- package/script/trellis/runtime_transport.js +37 -0
- package/script/trellis/store.d.ts +51 -0
- package/script/trellis/store.d.ts.map +1 -0
- package/script/trellis/store.js +316 -0
- package/script/trellis/tracing.js +1 -1
- package/script/trellis/transfer.d.ts +118 -0
- package/script/trellis/transfer.d.ts.map +1 -0
- package/script/trellis/transfer.js +367 -0
- package/script/trellis/trellis.d.ts +3 -0
- package/script/trellis/trellis.d.ts.map +1 -1
- package/script/trellis/trellis.js +48 -17
- package/esm/auth/workload_activation.d.ts +0 -192
- package/esm/auth/workload_activation.d.ts.map +0 -1
- package/esm/trellis/workload.d.ts +0 -45
- package/esm/trellis/workload.d.ts.map +0 -1
- package/esm/trellis/workload.js +0 -144
- package/script/auth/workload_activation.d.ts +0 -192
- package/script/auth/workload_activation.d.ts.map +0 -1
- package/script/trellis/workload.d.ts +0 -45
- package/script/trellis/workload.d.ts.map +0 -1
- package/script/trellis/workload.js +0 -172
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
export declare const CONTRACT_ID: "trellis.auth@v1";
|
|
2
|
-
export declare const CONTRACT_DIGEST: "
|
|
3
|
-
export type
|
|
2
|
+
export declare const CONTRACT_DIGEST: "dBWD48FOHG2R_AEBJ12qvODGydooKoRjRsJO0y-d4hc";
|
|
3
|
+
export type AuthActivateDeviceInput = {
|
|
4
4
|
handoffId: string;
|
|
5
|
+
linkRequestId: string;
|
|
5
6
|
};
|
|
6
|
-
export type
|
|
7
|
+
export type AuthActivateDeviceOutput = ({
|
|
7
8
|
activatedAt: string;
|
|
8
9
|
confirmationCode?: string;
|
|
9
10
|
instanceId: string;
|
|
@@ -11,6 +12,7 @@ export type AuthActivateWorkloadOutput = ({
|
|
|
11
12
|
status: "activated";
|
|
12
13
|
} | {
|
|
13
14
|
instanceId: string;
|
|
15
|
+
linkRequestId: string;
|
|
14
16
|
profileId: string;
|
|
15
17
|
requestedAt: string;
|
|
16
18
|
reviewId: string;
|
|
@@ -19,32 +21,19 @@ export type AuthActivateWorkloadOutput = ({
|
|
|
19
21
|
reason?: string;
|
|
20
22
|
status: "rejected";
|
|
21
23
|
});
|
|
22
|
-
export type
|
|
23
|
-
contractId: string;
|
|
24
|
-
};
|
|
25
|
-
export type AuthClearLoginPortalSelectionOutput = {
|
|
26
|
-
success: boolean;
|
|
27
|
-
};
|
|
28
|
-
export type AuthClearWorkloadPortalSelectionInput = {
|
|
24
|
+
export type AuthClearDevicePortalSelectionInput = {
|
|
29
25
|
profileId: string;
|
|
30
26
|
};
|
|
31
|
-
export type
|
|
27
|
+
export type AuthClearDevicePortalSelectionOutput = {
|
|
32
28
|
success: boolean;
|
|
33
29
|
};
|
|
34
|
-
export type
|
|
35
|
-
|
|
36
|
-
entryUrl: string;
|
|
37
|
-
portalId: string;
|
|
30
|
+
export type AuthClearLoginPortalSelectionInput = {
|
|
31
|
+
contractId: string;
|
|
38
32
|
};
|
|
39
|
-
export type
|
|
40
|
-
|
|
41
|
-
appContractId?: string;
|
|
42
|
-
disabled: boolean;
|
|
43
|
-
entryUrl: string;
|
|
44
|
-
portalId: string;
|
|
45
|
-
};
|
|
33
|
+
export type AuthClearLoginPortalSelectionOutput = {
|
|
34
|
+
success: boolean;
|
|
46
35
|
};
|
|
47
|
-
export type
|
|
36
|
+
export type AuthCreateDeviceProfileInput = {
|
|
48
37
|
allowedDigests: Array<string>;
|
|
49
38
|
contract?: {
|
|
50
39
|
[k: string]: unknown;
|
|
@@ -53,7 +42,7 @@ export type AuthCreateWorkloadProfileInput = {
|
|
|
53
42
|
profileId: string;
|
|
54
43
|
reviewMode?: ("none" | "required");
|
|
55
44
|
};
|
|
56
|
-
export type
|
|
45
|
+
export type AuthCreateDeviceProfileOutput = {
|
|
57
46
|
profile: {
|
|
58
47
|
allowedDigests: Array<string>;
|
|
59
48
|
contractId: string;
|
|
@@ -62,12 +51,25 @@ export type AuthCreateWorkloadProfileOutput = {
|
|
|
62
51
|
reviewMode?: ("none" | "required");
|
|
63
52
|
};
|
|
64
53
|
};
|
|
65
|
-
export type
|
|
54
|
+
export type AuthCreatePortalInput = {
|
|
55
|
+
appContractId?: string;
|
|
56
|
+
entryUrl: string;
|
|
57
|
+
portalId: string;
|
|
58
|
+
};
|
|
59
|
+
export type AuthCreatePortalOutput = {
|
|
60
|
+
portal: {
|
|
61
|
+
appContractId?: string;
|
|
62
|
+
disabled: boolean;
|
|
63
|
+
entryUrl: string;
|
|
64
|
+
portalId: string;
|
|
65
|
+
};
|
|
66
|
+
};
|
|
67
|
+
export type AuthDecideDeviceActivationReviewInput = {
|
|
66
68
|
decision: ("approve" | "reject");
|
|
67
69
|
reason?: string;
|
|
68
70
|
reviewId: string;
|
|
69
71
|
};
|
|
70
|
-
export type
|
|
72
|
+
export type AuthDecideDeviceActivationReviewOutput = {
|
|
71
73
|
activation?: {
|
|
72
74
|
activatedAt: string;
|
|
73
75
|
activatedBy?: {
|
|
@@ -84,6 +86,7 @@ export type AuthDecideWorkloadActivationReviewOutput = {
|
|
|
84
86
|
review: {
|
|
85
87
|
decidedAt: (string | null);
|
|
86
88
|
instanceId: string;
|
|
89
|
+
linkRequestId: string;
|
|
87
90
|
profileId: string;
|
|
88
91
|
publicIdentityKey: string;
|
|
89
92
|
reason?: string;
|
|
@@ -92,23 +95,99 @@ export type AuthDecideWorkloadActivationReviewOutput = {
|
|
|
92
95
|
state: ("pending" | "approved" | "rejected");
|
|
93
96
|
};
|
|
94
97
|
};
|
|
98
|
+
export type AuthDisableDeviceInstanceInput = {
|
|
99
|
+
instanceId: string;
|
|
100
|
+
};
|
|
101
|
+
export type AuthDisableDeviceInstanceOutput = {
|
|
102
|
+
success: boolean;
|
|
103
|
+
};
|
|
104
|
+
export type AuthDisableDeviceProfileInput = {
|
|
105
|
+
profileId: string;
|
|
106
|
+
};
|
|
107
|
+
export type AuthDisableDeviceProfileOutput = {
|
|
108
|
+
success: boolean;
|
|
109
|
+
};
|
|
110
|
+
export type AuthDisableInstanceGrantPolicyInput = {
|
|
111
|
+
contractId: string;
|
|
112
|
+
};
|
|
113
|
+
export type AuthDisableInstanceGrantPolicyOutput = {
|
|
114
|
+
policy: {
|
|
115
|
+
allowedOrigins?: Array<string>;
|
|
116
|
+
contractId: string;
|
|
117
|
+
createdAt: string;
|
|
118
|
+
disabled: boolean;
|
|
119
|
+
impliedCapabilities: Array<string>;
|
|
120
|
+
source: {
|
|
121
|
+
createdBy?: {
|
|
122
|
+
id: string;
|
|
123
|
+
origin: string;
|
|
124
|
+
};
|
|
125
|
+
kind: "admin_policy";
|
|
126
|
+
updatedBy?: {
|
|
127
|
+
id: string;
|
|
128
|
+
origin: string;
|
|
129
|
+
};
|
|
130
|
+
};
|
|
131
|
+
updatedAt: string;
|
|
132
|
+
};
|
|
133
|
+
};
|
|
95
134
|
export type AuthDisablePortalInput = {
|
|
96
135
|
portalId: string;
|
|
97
136
|
};
|
|
98
137
|
export type AuthDisablePortalOutput = {
|
|
99
138
|
success: boolean;
|
|
100
139
|
};
|
|
101
|
-
export type
|
|
102
|
-
|
|
103
|
-
};
|
|
104
|
-
export type AuthDisableWorkloadInstanceOutput = {
|
|
105
|
-
success: boolean;
|
|
140
|
+
export type AuthGetDeviceActivationStatusInput = {
|
|
141
|
+
handoffId: string;
|
|
106
142
|
};
|
|
107
|
-
export type
|
|
143
|
+
export type AuthGetDeviceActivationStatusOutput = ({
|
|
144
|
+
activatedAt: string;
|
|
145
|
+
confirmationCode?: string;
|
|
146
|
+
instanceId: string;
|
|
108
147
|
profileId: string;
|
|
148
|
+
status: "activated";
|
|
149
|
+
} | {
|
|
150
|
+
instanceId: string;
|
|
151
|
+
linkRequestId: string;
|
|
152
|
+
profileId: string;
|
|
153
|
+
requestedAt: string;
|
|
154
|
+
reviewId: string;
|
|
155
|
+
status: "pending_review";
|
|
156
|
+
} | {
|
|
157
|
+
reason?: string;
|
|
158
|
+
status: "rejected";
|
|
159
|
+
});
|
|
160
|
+
export type AuthGetDeviceConnectInfoInput = {
|
|
161
|
+
contractDigest: string;
|
|
162
|
+
iat: number;
|
|
163
|
+
publicIdentityKey: string;
|
|
164
|
+
sig: string;
|
|
109
165
|
};
|
|
110
|
-
export type
|
|
111
|
-
|
|
166
|
+
export type AuthGetDeviceConnectInfoOutput = {
|
|
167
|
+
connectInfo: {
|
|
168
|
+
auth: {
|
|
169
|
+
iatSkewSeconds: number;
|
|
170
|
+
mode: "device_identity";
|
|
171
|
+
};
|
|
172
|
+
contractDigest: string;
|
|
173
|
+
contractId: string;
|
|
174
|
+
instanceId: string;
|
|
175
|
+
profileId: string;
|
|
176
|
+
transport: {
|
|
177
|
+
natsServers: Array<string>;
|
|
178
|
+
sentinel: {
|
|
179
|
+
jwt: string;
|
|
180
|
+
seed: string;
|
|
181
|
+
};
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
status: "ready";
|
|
185
|
+
};
|
|
186
|
+
export type AuthGetDevicePortalDefaultInput = {};
|
|
187
|
+
export type AuthGetDevicePortalDefaultOutput = {
|
|
188
|
+
defaultPortal: {
|
|
189
|
+
portalId: (string | null);
|
|
190
|
+
};
|
|
112
191
|
};
|
|
113
192
|
export type AuthGetInstalledContractInput = {
|
|
114
193
|
digest: string;
|
|
@@ -253,6 +332,14 @@ export type AuthGetInstalledContractOutput = {
|
|
|
253
332
|
ttlMs: number;
|
|
254
333
|
};
|
|
255
334
|
};
|
|
335
|
+
store?: {
|
|
336
|
+
[k: string]: {
|
|
337
|
+
maxObjectBytes?: number;
|
|
338
|
+
maxTotalBytes?: number;
|
|
339
|
+
name: string;
|
|
340
|
+
ttlMs: number;
|
|
341
|
+
};
|
|
342
|
+
};
|
|
256
343
|
streams?: {
|
|
257
344
|
[k: string]: {
|
|
258
345
|
discard?: string;
|
|
@@ -303,6 +390,15 @@ export type AuthGetInstalledContractOutput = {
|
|
|
303
390
|
ttlMs?: number;
|
|
304
391
|
};
|
|
305
392
|
};
|
|
393
|
+
store?: {
|
|
394
|
+
[k: string]: {
|
|
395
|
+
maxObjectBytes?: number;
|
|
396
|
+
maxTotalBytes?: number;
|
|
397
|
+
purpose: string;
|
|
398
|
+
required?: boolean;
|
|
399
|
+
ttlMs?: number;
|
|
400
|
+
};
|
|
401
|
+
};
|
|
306
402
|
streams?: {
|
|
307
403
|
[k: string]: {
|
|
308
404
|
discard?: string;
|
|
@@ -332,57 +428,6 @@ export type AuthGetLoginPortalDefaultOutput = {
|
|
|
332
428
|
portalId: (string | null);
|
|
333
429
|
};
|
|
334
430
|
};
|
|
335
|
-
export type AuthGetWorkloadActivationStatusInput = {
|
|
336
|
-
handoffId: string;
|
|
337
|
-
};
|
|
338
|
-
export type AuthGetWorkloadActivationStatusOutput = ({
|
|
339
|
-
activatedAt: string;
|
|
340
|
-
confirmationCode?: string;
|
|
341
|
-
instanceId: string;
|
|
342
|
-
profileId: string;
|
|
343
|
-
status: "activated";
|
|
344
|
-
} | {
|
|
345
|
-
instanceId: string;
|
|
346
|
-
profileId: string;
|
|
347
|
-
requestedAt: string;
|
|
348
|
-
reviewId: string;
|
|
349
|
-
status: "pending_review";
|
|
350
|
-
} | {
|
|
351
|
-
reason?: string;
|
|
352
|
-
status: "rejected";
|
|
353
|
-
});
|
|
354
|
-
export type AuthGetWorkloadConnectInfoInput = {
|
|
355
|
-
contractDigest: string;
|
|
356
|
-
iat: number;
|
|
357
|
-
publicIdentityKey: string;
|
|
358
|
-
sig: string;
|
|
359
|
-
};
|
|
360
|
-
export type AuthGetWorkloadConnectInfoOutput = {
|
|
361
|
-
connectInfo: {
|
|
362
|
-
auth: {
|
|
363
|
-
iatSkewSeconds: number;
|
|
364
|
-
mode: "workload_identity";
|
|
365
|
-
};
|
|
366
|
-
contractDigest: string;
|
|
367
|
-
contractId: string;
|
|
368
|
-
instanceId: string;
|
|
369
|
-
profileId: string;
|
|
370
|
-
transport: {
|
|
371
|
-
natsServers: Array<string>;
|
|
372
|
-
sentinel: {
|
|
373
|
-
jwt: string;
|
|
374
|
-
seed: string;
|
|
375
|
-
};
|
|
376
|
-
};
|
|
377
|
-
};
|
|
378
|
-
status: "ready";
|
|
379
|
-
};
|
|
380
|
-
export type AuthGetWorkloadPortalDefaultInput = {};
|
|
381
|
-
export type AuthGetWorkloadPortalDefaultOutput = {
|
|
382
|
-
defaultPortal: {
|
|
383
|
-
portalId: (string | null);
|
|
384
|
-
};
|
|
385
|
-
};
|
|
386
431
|
export type AuthHealthInput = {};
|
|
387
432
|
export type AuthHealthOutput = {
|
|
388
433
|
checks: Array<{
|
|
@@ -440,6 +485,14 @@ export type AuthInstallServiceOutput = {
|
|
|
440
485
|
ttlMs: number;
|
|
441
486
|
};
|
|
442
487
|
};
|
|
488
|
+
store?: {
|
|
489
|
+
[k: string]: {
|
|
490
|
+
maxObjectBytes?: number;
|
|
491
|
+
maxTotalBytes?: number;
|
|
492
|
+
name: string;
|
|
493
|
+
ttlMs: number;
|
|
494
|
+
};
|
|
495
|
+
};
|
|
443
496
|
streams?: {
|
|
444
497
|
[k: string]: {
|
|
445
498
|
discard?: string;
|
|
@@ -500,6 +553,81 @@ export type AuthListConnectionsOutput = {
|
|
|
500
553
|
serverId: string;
|
|
501
554
|
}>;
|
|
502
555
|
};
|
|
556
|
+
export type AuthListDeviceActivationReviewsInput = {
|
|
557
|
+
instanceId?: string;
|
|
558
|
+
profileId?: string;
|
|
559
|
+
state?: ("pending" | "approved" | "rejected");
|
|
560
|
+
};
|
|
561
|
+
export type AuthListDeviceActivationReviewsOutput = {
|
|
562
|
+
reviews: Array<{
|
|
563
|
+
decidedAt: (string | null);
|
|
564
|
+
instanceId: string;
|
|
565
|
+
linkRequestId: string;
|
|
566
|
+
profileId: string;
|
|
567
|
+
publicIdentityKey: string;
|
|
568
|
+
reason?: string;
|
|
569
|
+
requestedAt: string;
|
|
570
|
+
reviewId: string;
|
|
571
|
+
state: ("pending" | "approved" | "rejected");
|
|
572
|
+
}>;
|
|
573
|
+
};
|
|
574
|
+
export type AuthListDeviceActivationsInput = {
|
|
575
|
+
instanceId?: string;
|
|
576
|
+
profileId?: string;
|
|
577
|
+
state?: ("activated" | "revoked");
|
|
578
|
+
};
|
|
579
|
+
export type AuthListDeviceActivationsOutput = {
|
|
580
|
+
activations: Array<{
|
|
581
|
+
activatedAt: string;
|
|
582
|
+
activatedBy?: {
|
|
583
|
+
id: string;
|
|
584
|
+
origin: string;
|
|
585
|
+
};
|
|
586
|
+
instanceId: string;
|
|
587
|
+
profileId: string;
|
|
588
|
+
publicIdentityKey: string;
|
|
589
|
+
revokedAt: (string | null);
|
|
590
|
+
state: ("activated" | "revoked");
|
|
591
|
+
}>;
|
|
592
|
+
};
|
|
593
|
+
export type AuthListDeviceInstancesInput = {
|
|
594
|
+
profileId?: string;
|
|
595
|
+
state?: ("registered" | "activated" | "revoked" | "disabled");
|
|
596
|
+
};
|
|
597
|
+
export type AuthListDeviceInstancesOutput = {
|
|
598
|
+
instances: Array<{
|
|
599
|
+
activatedAt: (string | null);
|
|
600
|
+
createdAt: string;
|
|
601
|
+
instanceId: string;
|
|
602
|
+
metadata?: {
|
|
603
|
+
[k: string]: string;
|
|
604
|
+
};
|
|
605
|
+
profileId: string;
|
|
606
|
+
publicIdentityKey: string;
|
|
607
|
+
revokedAt: (string | null);
|
|
608
|
+
state: ("registered" | "activated" | "revoked" | "disabled");
|
|
609
|
+
}>;
|
|
610
|
+
};
|
|
611
|
+
export type AuthListDevicePortalSelectionsInput = {};
|
|
612
|
+
export type AuthListDevicePortalSelectionsOutput = {
|
|
613
|
+
selections: Array<{
|
|
614
|
+
portalId: (string | null);
|
|
615
|
+
profileId: string;
|
|
616
|
+
}>;
|
|
617
|
+
};
|
|
618
|
+
export type AuthListDeviceProfilesInput = {
|
|
619
|
+
contractId?: string;
|
|
620
|
+
disabled?: boolean;
|
|
621
|
+
};
|
|
622
|
+
export type AuthListDeviceProfilesOutput = {
|
|
623
|
+
profiles: Array<{
|
|
624
|
+
allowedDigests: Array<string>;
|
|
625
|
+
contractId: string;
|
|
626
|
+
disabled: boolean;
|
|
627
|
+
profileId: string;
|
|
628
|
+
reviewMode?: ("none" | "required");
|
|
629
|
+
}>;
|
|
630
|
+
};
|
|
503
631
|
export type AuthListInstalledContractsInput = {
|
|
504
632
|
sessionKey?: string;
|
|
505
633
|
};
|
|
@@ -554,6 +682,14 @@ export type AuthListInstalledContractsOutput = {
|
|
|
554
682
|
ttlMs: number;
|
|
555
683
|
};
|
|
556
684
|
};
|
|
685
|
+
store?: {
|
|
686
|
+
[k: string]: {
|
|
687
|
+
maxObjectBytes?: number;
|
|
688
|
+
maxTotalBytes?: number;
|
|
689
|
+
name: string;
|
|
690
|
+
ttlMs: number;
|
|
691
|
+
};
|
|
692
|
+
};
|
|
557
693
|
streams?: {
|
|
558
694
|
[k: string]: {
|
|
559
695
|
discard?: string;
|
|
@@ -577,6 +713,28 @@ export type AuthListInstalledContractsOutput = {
|
|
|
577
713
|
sessionKey?: string;
|
|
578
714
|
}>;
|
|
579
715
|
};
|
|
716
|
+
export type AuthListInstanceGrantPoliciesInput = {};
|
|
717
|
+
export type AuthListInstanceGrantPoliciesOutput = {
|
|
718
|
+
policies: Array<{
|
|
719
|
+
allowedOrigins?: Array<string>;
|
|
720
|
+
contractId: string;
|
|
721
|
+
createdAt: string;
|
|
722
|
+
disabled: boolean;
|
|
723
|
+
impliedCapabilities: Array<string>;
|
|
724
|
+
source: {
|
|
725
|
+
createdBy?: {
|
|
726
|
+
id: string;
|
|
727
|
+
origin: string;
|
|
728
|
+
};
|
|
729
|
+
kind: "admin_policy";
|
|
730
|
+
updatedBy?: {
|
|
731
|
+
id: string;
|
|
732
|
+
origin: string;
|
|
733
|
+
};
|
|
734
|
+
};
|
|
735
|
+
updatedAt: string;
|
|
736
|
+
}>;
|
|
737
|
+
};
|
|
580
738
|
export type AuthListLoginPortalSelectionsInput = {};
|
|
581
739
|
export type AuthListLoginPortalSelectionsOutput = {
|
|
582
740
|
selections: Array<{
|
|
@@ -638,6 +796,14 @@ export type AuthListServicesOutput = {
|
|
|
638
796
|
ttlMs: number;
|
|
639
797
|
};
|
|
640
798
|
};
|
|
799
|
+
store?: {
|
|
800
|
+
[k: string]: {
|
|
801
|
+
maxObjectBytes?: number;
|
|
802
|
+
maxTotalBytes?: number;
|
|
803
|
+
name: string;
|
|
804
|
+
ttlMs: number;
|
|
805
|
+
};
|
|
806
|
+
};
|
|
641
807
|
streams?: {
|
|
642
808
|
[k: string]: {
|
|
643
809
|
discard?: string;
|
|
@@ -669,7 +835,7 @@ export type AuthListSessionsOutput = {
|
|
|
669
835
|
createdAt: string;
|
|
670
836
|
key: string;
|
|
671
837
|
lastAuth: string;
|
|
672
|
-
type: ("user" | "service" | "
|
|
838
|
+
type: ("user" | "service" | "device");
|
|
673
839
|
}>;
|
|
674
840
|
};
|
|
675
841
|
export type AuthListUsersInput = {};
|
|
@@ -683,83 +849,21 @@ export type AuthListUsersOutput = {
|
|
|
683
849
|
origin: string;
|
|
684
850
|
}>;
|
|
685
851
|
};
|
|
686
|
-
export type AuthListWorkloadActivationReviewsInput = {
|
|
687
|
-
instanceId?: string;
|
|
688
|
-
profileId?: string;
|
|
689
|
-
state?: ("pending" | "approved" | "rejected");
|
|
690
|
-
};
|
|
691
|
-
export type AuthListWorkloadActivationReviewsOutput = {
|
|
692
|
-
reviews: Array<{
|
|
693
|
-
decidedAt: (string | null);
|
|
694
|
-
instanceId: string;
|
|
695
|
-
profileId: string;
|
|
696
|
-
publicIdentityKey: string;
|
|
697
|
-
reason?: string;
|
|
698
|
-
requestedAt: string;
|
|
699
|
-
reviewId: string;
|
|
700
|
-
state: ("pending" | "approved" | "rejected");
|
|
701
|
-
}>;
|
|
702
|
-
};
|
|
703
|
-
export type AuthListWorkloadActivationsInput = {
|
|
704
|
-
instanceId?: string;
|
|
705
|
-
profileId?: string;
|
|
706
|
-
state?: ("activated" | "revoked");
|
|
707
|
-
};
|
|
708
|
-
export type AuthListWorkloadActivationsOutput = {
|
|
709
|
-
activations: Array<{
|
|
710
|
-
activatedAt: string;
|
|
711
|
-
activatedBy?: {
|
|
712
|
-
id: string;
|
|
713
|
-
origin: string;
|
|
714
|
-
};
|
|
715
|
-
instanceId: string;
|
|
716
|
-
profileId: string;
|
|
717
|
-
publicIdentityKey: string;
|
|
718
|
-
revokedAt: (string | null);
|
|
719
|
-
state: ("activated" | "revoked");
|
|
720
|
-
}>;
|
|
721
|
-
};
|
|
722
|
-
export type AuthListWorkloadInstancesInput = {
|
|
723
|
-
profileId?: string;
|
|
724
|
-
state?: ("registered" | "activated" | "revoked" | "disabled");
|
|
725
|
-
};
|
|
726
|
-
export type AuthListWorkloadInstancesOutput = {
|
|
727
|
-
instances: Array<{
|
|
728
|
-
activatedAt: (string | null);
|
|
729
|
-
createdAt: string;
|
|
730
|
-
instanceId: string;
|
|
731
|
-
profileId: string;
|
|
732
|
-
publicIdentityKey: string;
|
|
733
|
-
revokedAt: (string | null);
|
|
734
|
-
state: ("registered" | "activated" | "revoked" | "disabled");
|
|
735
|
-
}>;
|
|
736
|
-
};
|
|
737
|
-
export type AuthListWorkloadPortalSelectionsInput = {};
|
|
738
|
-
export type AuthListWorkloadPortalSelectionsOutput = {
|
|
739
|
-
selections: Array<{
|
|
740
|
-
portalId: (string | null);
|
|
741
|
-
profileId: string;
|
|
742
|
-
}>;
|
|
743
|
-
};
|
|
744
|
-
export type AuthListWorkloadProfilesInput = {
|
|
745
|
-
contractId?: string;
|
|
746
|
-
disabled?: boolean;
|
|
747
|
-
};
|
|
748
|
-
export type AuthListWorkloadProfilesOutput = {
|
|
749
|
-
profiles: Array<{
|
|
750
|
-
allowedDigests: Array<string>;
|
|
751
|
-
contractId: string;
|
|
752
|
-
disabled: boolean;
|
|
753
|
-
profileId: string;
|
|
754
|
-
reviewMode?: ("none" | "required");
|
|
755
|
-
}>;
|
|
756
|
-
};
|
|
757
852
|
export type AuthLogoutInput = {};
|
|
758
853
|
export type AuthLogoutOutput = {
|
|
759
854
|
success: boolean;
|
|
760
855
|
};
|
|
761
856
|
export type AuthMeInput = {};
|
|
762
857
|
export type AuthMeOutput = {
|
|
858
|
+
device: ({
|
|
859
|
+
active: boolean;
|
|
860
|
+
capabilities: Array<string>;
|
|
861
|
+
deviceId: string;
|
|
862
|
+
deviceType: string;
|
|
863
|
+
profileId: string;
|
|
864
|
+
runtimePublicKey: string;
|
|
865
|
+
type: "device";
|
|
866
|
+
} | null);
|
|
763
867
|
service: ({
|
|
764
868
|
active: boolean;
|
|
765
869
|
capabilities: Array<string>;
|
|
@@ -777,25 +881,23 @@ export type AuthMeOutput = {
|
|
|
777
881
|
name: string;
|
|
778
882
|
origin: string;
|
|
779
883
|
} | null);
|
|
780
|
-
workload: ({
|
|
781
|
-
active: boolean;
|
|
782
|
-
capabilities: Array<string>;
|
|
783
|
-
instanceId: string;
|
|
784
|
-
profileId: string;
|
|
785
|
-
publicIdentityKey: string;
|
|
786
|
-
type: "workload";
|
|
787
|
-
} | null);
|
|
788
884
|
};
|
|
789
|
-
export type
|
|
885
|
+
export type AuthProvisionDeviceInstanceInput = {
|
|
790
886
|
activationKey: string;
|
|
887
|
+
metadata?: {
|
|
888
|
+
[k: string]: string;
|
|
889
|
+
};
|
|
791
890
|
profileId: string;
|
|
792
891
|
publicIdentityKey: string;
|
|
793
892
|
};
|
|
794
|
-
export type
|
|
893
|
+
export type AuthProvisionDeviceInstanceOutput = {
|
|
795
894
|
instance: {
|
|
796
895
|
activatedAt: (string | null);
|
|
797
896
|
createdAt: string;
|
|
798
897
|
instanceId: string;
|
|
898
|
+
metadata?: {
|
|
899
|
+
[k: string]: string;
|
|
900
|
+
};
|
|
799
901
|
profileId: string;
|
|
800
902
|
publicIdentityKey: string;
|
|
801
903
|
revokedAt: (string | null);
|
|
@@ -821,52 +923,52 @@ export type AuthRevokeApprovalInput = {
|
|
|
821
923
|
export type AuthRevokeApprovalOutput = {
|
|
822
924
|
success: boolean;
|
|
823
925
|
};
|
|
824
|
-
export type
|
|
825
|
-
|
|
926
|
+
export type AuthRevokeDeviceActivationInput = {
|
|
927
|
+
instanceId: string;
|
|
826
928
|
};
|
|
827
|
-
export type
|
|
929
|
+
export type AuthRevokeDeviceActivationOutput = {
|
|
828
930
|
success: boolean;
|
|
829
931
|
};
|
|
830
|
-
export type
|
|
831
|
-
|
|
932
|
+
export type AuthRevokeSessionInput = {
|
|
933
|
+
sessionKey: string;
|
|
832
934
|
};
|
|
833
|
-
export type
|
|
935
|
+
export type AuthRevokeSessionOutput = {
|
|
834
936
|
success: boolean;
|
|
835
937
|
};
|
|
836
|
-
export type
|
|
938
|
+
export type AuthSetDevicePortalDefaultInput = {
|
|
837
939
|
portalId: (string | null);
|
|
838
940
|
};
|
|
839
|
-
export type
|
|
941
|
+
export type AuthSetDevicePortalDefaultOutput = {
|
|
840
942
|
defaultPortal: {
|
|
841
943
|
portalId: (string | null);
|
|
842
944
|
};
|
|
843
945
|
};
|
|
844
|
-
export type
|
|
845
|
-
contractId: string;
|
|
946
|
+
export type AuthSetDevicePortalSelectionInput = {
|
|
846
947
|
portalId: (string | null);
|
|
948
|
+
profileId: string;
|
|
847
949
|
};
|
|
848
|
-
export type
|
|
950
|
+
export type AuthSetDevicePortalSelectionOutput = {
|
|
849
951
|
selection: {
|
|
850
|
-
contractId: string;
|
|
851
952
|
portalId: (string | null);
|
|
953
|
+
profileId: string;
|
|
852
954
|
};
|
|
853
955
|
};
|
|
854
|
-
export type
|
|
956
|
+
export type AuthSetLoginPortalDefaultInput = {
|
|
855
957
|
portalId: (string | null);
|
|
856
958
|
};
|
|
857
|
-
export type
|
|
959
|
+
export type AuthSetLoginPortalDefaultOutput = {
|
|
858
960
|
defaultPortal: {
|
|
859
961
|
portalId: (string | null);
|
|
860
962
|
};
|
|
861
963
|
};
|
|
862
|
-
export type
|
|
964
|
+
export type AuthSetLoginPortalSelectionInput = {
|
|
965
|
+
contractId: string;
|
|
863
966
|
portalId: (string | null);
|
|
864
|
-
profileId: string;
|
|
865
967
|
};
|
|
866
|
-
export type
|
|
968
|
+
export type AuthSetLoginPortalSelectionOutput = {
|
|
867
969
|
selection: {
|
|
970
|
+
contractId: string;
|
|
868
971
|
portalId: (string | null);
|
|
869
|
-
profileId: string;
|
|
870
972
|
};
|
|
871
973
|
};
|
|
872
974
|
export type AuthUpdateUserInput = {
|
|
@@ -919,6 +1021,14 @@ export type AuthUpgradeServiceContractOutput = {
|
|
|
919
1021
|
ttlMs: number;
|
|
920
1022
|
};
|
|
921
1023
|
};
|
|
1024
|
+
store?: {
|
|
1025
|
+
[k: string]: {
|
|
1026
|
+
maxObjectBytes?: number;
|
|
1027
|
+
maxTotalBytes?: number;
|
|
1028
|
+
name: string;
|
|
1029
|
+
ttlMs: number;
|
|
1030
|
+
};
|
|
1031
|
+
};
|
|
922
1032
|
streams?: {
|
|
923
1033
|
[k: string]: {
|
|
924
1034
|
discard?: string;
|
|
@@ -942,6 +1052,32 @@ export type AuthUpgradeServiceContractOutput = {
|
|
|
942
1052
|
sessionKey: string;
|
|
943
1053
|
success: boolean;
|
|
944
1054
|
};
|
|
1055
|
+
export type AuthUpsertInstanceGrantPolicyInput = {
|
|
1056
|
+
allowedOrigins?: Array<string>;
|
|
1057
|
+
contractId: string;
|
|
1058
|
+
impliedCapabilities: Array<string>;
|
|
1059
|
+
};
|
|
1060
|
+
export type AuthUpsertInstanceGrantPolicyOutput = {
|
|
1061
|
+
policy: {
|
|
1062
|
+
allowedOrigins?: Array<string>;
|
|
1063
|
+
contractId: string;
|
|
1064
|
+
createdAt: string;
|
|
1065
|
+
disabled: boolean;
|
|
1066
|
+
impliedCapabilities: Array<string>;
|
|
1067
|
+
source: {
|
|
1068
|
+
createdBy?: {
|
|
1069
|
+
id: string;
|
|
1070
|
+
origin: string;
|
|
1071
|
+
};
|
|
1072
|
+
kind: "admin_policy";
|
|
1073
|
+
updatedBy?: {
|
|
1074
|
+
id: string;
|
|
1075
|
+
origin: string;
|
|
1076
|
+
};
|
|
1077
|
+
};
|
|
1078
|
+
updatedAt: string;
|
|
1079
|
+
};
|
|
1080
|
+
};
|
|
945
1081
|
export type AuthValidateRequestInput = {
|
|
946
1082
|
capabilities?: Array<string>;
|
|
947
1083
|
payloadHash: string;
|
|
@@ -969,10 +1105,11 @@ export type AuthValidateRequestOutput = {
|
|
|
969
1105
|
} | {
|
|
970
1106
|
active: boolean;
|
|
971
1107
|
capabilities: Array<string>;
|
|
972
|
-
|
|
1108
|
+
deviceId: string;
|
|
1109
|
+
deviceType: string;
|
|
973
1110
|
profileId: string;
|
|
974
|
-
|
|
975
|
-
type: "
|
|
1111
|
+
runtimePublicKey: string;
|
|
1112
|
+
type: "device";
|
|
976
1113
|
});
|
|
977
1114
|
inboxPrefix: string;
|
|
978
1115
|
};
|
|
@@ -998,6 +1135,19 @@ export type AuthConnectionKickedEvent = ({
|
|
|
998
1135
|
origin: string;
|
|
999
1136
|
userNkey: string;
|
|
1000
1137
|
});
|
|
1138
|
+
export type AuthDeviceActivationReviewRequestedEvent = {
|
|
1139
|
+
handoffId: string;
|
|
1140
|
+
instanceId: string;
|
|
1141
|
+
linkRequestId: string;
|
|
1142
|
+
profileId: string;
|
|
1143
|
+
publicIdentityKey: string;
|
|
1144
|
+
requestedAt: string;
|
|
1145
|
+
requestedBy: {
|
|
1146
|
+
id: string;
|
|
1147
|
+
origin: string;
|
|
1148
|
+
};
|
|
1149
|
+
reviewId: string;
|
|
1150
|
+
};
|
|
1001
1151
|
export type AuthDisconnectEvent = ({
|
|
1002
1152
|
header: {
|
|
1003
1153
|
id: string;
|
|
@@ -1020,54 +1170,58 @@ export type AuthSessionRevokedEvent = ({
|
|
|
1020
1170
|
revokedBy: string;
|
|
1021
1171
|
sessionKey: string;
|
|
1022
1172
|
});
|
|
1023
|
-
export type AuthWorkloadActivationReviewRequestedEvent = {
|
|
1024
|
-
handoffId: string;
|
|
1025
|
-
instanceId: string;
|
|
1026
|
-
profileId: string;
|
|
1027
|
-
publicIdentityKey: string;
|
|
1028
|
-
requestedAt: string;
|
|
1029
|
-
requestedBy: {
|
|
1030
|
-
id: string;
|
|
1031
|
-
origin: string;
|
|
1032
|
-
};
|
|
1033
|
-
reviewId: string;
|
|
1034
|
-
};
|
|
1035
1173
|
export interface RpcMap {
|
|
1036
|
-
"Auth.
|
|
1037
|
-
input:
|
|
1038
|
-
output:
|
|
1174
|
+
"Auth.ActivateDevice": {
|
|
1175
|
+
input: AuthActivateDeviceInput;
|
|
1176
|
+
output: AuthActivateDeviceOutput;
|
|
1177
|
+
};
|
|
1178
|
+
"Auth.ClearDevicePortalSelection": {
|
|
1179
|
+
input: AuthClearDevicePortalSelectionInput;
|
|
1180
|
+
output: AuthClearDevicePortalSelectionOutput;
|
|
1039
1181
|
};
|
|
1040
1182
|
"Auth.ClearLoginPortalSelection": {
|
|
1041
1183
|
input: AuthClearLoginPortalSelectionInput;
|
|
1042
1184
|
output: AuthClearLoginPortalSelectionOutput;
|
|
1043
1185
|
};
|
|
1044
|
-
"Auth.
|
|
1045
|
-
input:
|
|
1046
|
-
output:
|
|
1186
|
+
"Auth.CreateDeviceProfile": {
|
|
1187
|
+
input: AuthCreateDeviceProfileInput;
|
|
1188
|
+
output: AuthCreateDeviceProfileOutput;
|
|
1047
1189
|
};
|
|
1048
1190
|
"Auth.CreatePortal": {
|
|
1049
1191
|
input: AuthCreatePortalInput;
|
|
1050
1192
|
output: AuthCreatePortalOutput;
|
|
1051
1193
|
};
|
|
1052
|
-
"Auth.
|
|
1053
|
-
input:
|
|
1054
|
-
output:
|
|
1194
|
+
"Auth.DecideDeviceActivationReview": {
|
|
1195
|
+
input: AuthDecideDeviceActivationReviewInput;
|
|
1196
|
+
output: AuthDecideDeviceActivationReviewOutput;
|
|
1197
|
+
};
|
|
1198
|
+
"Auth.DisableDeviceInstance": {
|
|
1199
|
+
input: AuthDisableDeviceInstanceInput;
|
|
1200
|
+
output: AuthDisableDeviceInstanceOutput;
|
|
1055
1201
|
};
|
|
1056
|
-
"Auth.
|
|
1057
|
-
input:
|
|
1058
|
-
output:
|
|
1202
|
+
"Auth.DisableDeviceProfile": {
|
|
1203
|
+
input: AuthDisableDeviceProfileInput;
|
|
1204
|
+
output: AuthDisableDeviceProfileOutput;
|
|
1205
|
+
};
|
|
1206
|
+
"Auth.DisableInstanceGrantPolicy": {
|
|
1207
|
+
input: AuthDisableInstanceGrantPolicyInput;
|
|
1208
|
+
output: AuthDisableInstanceGrantPolicyOutput;
|
|
1059
1209
|
};
|
|
1060
1210
|
"Auth.DisablePortal": {
|
|
1061
1211
|
input: AuthDisablePortalInput;
|
|
1062
1212
|
output: AuthDisablePortalOutput;
|
|
1063
1213
|
};
|
|
1064
|
-
"Auth.
|
|
1065
|
-
input:
|
|
1066
|
-
output:
|
|
1214
|
+
"Auth.GetDeviceActivationStatus": {
|
|
1215
|
+
input: AuthGetDeviceActivationStatusInput;
|
|
1216
|
+
output: AuthGetDeviceActivationStatusOutput;
|
|
1217
|
+
};
|
|
1218
|
+
"Auth.GetDeviceConnectInfo": {
|
|
1219
|
+
input: AuthGetDeviceConnectInfoInput;
|
|
1220
|
+
output: AuthGetDeviceConnectInfoOutput;
|
|
1067
1221
|
};
|
|
1068
|
-
"Auth.
|
|
1069
|
-
input:
|
|
1070
|
-
output:
|
|
1222
|
+
"Auth.GetDevicePortalDefault": {
|
|
1223
|
+
input: AuthGetDevicePortalDefaultInput;
|
|
1224
|
+
output: AuthGetDevicePortalDefaultOutput;
|
|
1071
1225
|
};
|
|
1072
1226
|
"Auth.GetInstalledContract": {
|
|
1073
1227
|
input: AuthGetInstalledContractInput;
|
|
@@ -1077,18 +1231,6 @@ export interface RpcMap {
|
|
|
1077
1231
|
input: AuthGetLoginPortalDefaultInput;
|
|
1078
1232
|
output: AuthGetLoginPortalDefaultOutput;
|
|
1079
1233
|
};
|
|
1080
|
-
"Auth.GetWorkloadActivationStatus": {
|
|
1081
|
-
input: AuthGetWorkloadActivationStatusInput;
|
|
1082
|
-
output: AuthGetWorkloadActivationStatusOutput;
|
|
1083
|
-
};
|
|
1084
|
-
"Auth.GetWorkloadConnectInfo": {
|
|
1085
|
-
input: AuthGetWorkloadConnectInfoInput;
|
|
1086
|
-
output: AuthGetWorkloadConnectInfoOutput;
|
|
1087
|
-
};
|
|
1088
|
-
"Auth.GetWorkloadPortalDefault": {
|
|
1089
|
-
input: AuthGetWorkloadPortalDefaultInput;
|
|
1090
|
-
output: AuthGetWorkloadPortalDefaultOutput;
|
|
1091
|
-
};
|
|
1092
1234
|
"Auth.Health": {
|
|
1093
1235
|
input: AuthHealthInput;
|
|
1094
1236
|
output: AuthHealthOutput;
|
|
@@ -1109,10 +1251,34 @@ export interface RpcMap {
|
|
|
1109
1251
|
input: AuthListConnectionsInput;
|
|
1110
1252
|
output: AuthListConnectionsOutput;
|
|
1111
1253
|
};
|
|
1254
|
+
"Auth.ListDeviceActivationReviews": {
|
|
1255
|
+
input: AuthListDeviceActivationReviewsInput;
|
|
1256
|
+
output: AuthListDeviceActivationReviewsOutput;
|
|
1257
|
+
};
|
|
1258
|
+
"Auth.ListDeviceActivations": {
|
|
1259
|
+
input: AuthListDeviceActivationsInput;
|
|
1260
|
+
output: AuthListDeviceActivationsOutput;
|
|
1261
|
+
};
|
|
1262
|
+
"Auth.ListDeviceInstances": {
|
|
1263
|
+
input: AuthListDeviceInstancesInput;
|
|
1264
|
+
output: AuthListDeviceInstancesOutput;
|
|
1265
|
+
};
|
|
1266
|
+
"Auth.ListDevicePortalSelections": {
|
|
1267
|
+
input: AuthListDevicePortalSelectionsInput;
|
|
1268
|
+
output: AuthListDevicePortalSelectionsOutput;
|
|
1269
|
+
};
|
|
1270
|
+
"Auth.ListDeviceProfiles": {
|
|
1271
|
+
input: AuthListDeviceProfilesInput;
|
|
1272
|
+
output: AuthListDeviceProfilesOutput;
|
|
1273
|
+
};
|
|
1112
1274
|
"Auth.ListInstalledContracts": {
|
|
1113
1275
|
input: AuthListInstalledContractsInput;
|
|
1114
1276
|
output: AuthListInstalledContractsOutput;
|
|
1115
1277
|
};
|
|
1278
|
+
"Auth.ListInstanceGrantPolicies": {
|
|
1279
|
+
input: AuthListInstanceGrantPoliciesInput;
|
|
1280
|
+
output: AuthListInstanceGrantPoliciesOutput;
|
|
1281
|
+
};
|
|
1116
1282
|
"Auth.ListLoginPortalSelections": {
|
|
1117
1283
|
input: AuthListLoginPortalSelectionsInput;
|
|
1118
1284
|
output: AuthListLoginPortalSelectionsOutput;
|
|
@@ -1133,26 +1299,6 @@ export interface RpcMap {
|
|
|
1133
1299
|
input: AuthListUsersInput;
|
|
1134
1300
|
output: AuthListUsersOutput;
|
|
1135
1301
|
};
|
|
1136
|
-
"Auth.ListWorkloadActivationReviews": {
|
|
1137
|
-
input: AuthListWorkloadActivationReviewsInput;
|
|
1138
|
-
output: AuthListWorkloadActivationReviewsOutput;
|
|
1139
|
-
};
|
|
1140
|
-
"Auth.ListWorkloadActivations": {
|
|
1141
|
-
input: AuthListWorkloadActivationsInput;
|
|
1142
|
-
output: AuthListWorkloadActivationsOutput;
|
|
1143
|
-
};
|
|
1144
|
-
"Auth.ListWorkloadInstances": {
|
|
1145
|
-
input: AuthListWorkloadInstancesInput;
|
|
1146
|
-
output: AuthListWorkloadInstancesOutput;
|
|
1147
|
-
};
|
|
1148
|
-
"Auth.ListWorkloadPortalSelections": {
|
|
1149
|
-
input: AuthListWorkloadPortalSelectionsInput;
|
|
1150
|
-
output: AuthListWorkloadPortalSelectionsOutput;
|
|
1151
|
-
};
|
|
1152
|
-
"Auth.ListWorkloadProfiles": {
|
|
1153
|
-
input: AuthListWorkloadProfilesInput;
|
|
1154
|
-
output: AuthListWorkloadProfilesOutput;
|
|
1155
|
-
};
|
|
1156
1302
|
"Auth.Logout": {
|
|
1157
1303
|
input: AuthLogoutInput;
|
|
1158
1304
|
output: AuthLogoutOutput;
|
|
@@ -1161,9 +1307,9 @@ export interface RpcMap {
|
|
|
1161
1307
|
input: AuthMeInput;
|
|
1162
1308
|
output: AuthMeOutput;
|
|
1163
1309
|
};
|
|
1164
|
-
"Auth.
|
|
1165
|
-
input:
|
|
1166
|
-
output:
|
|
1310
|
+
"Auth.ProvisionDeviceInstance": {
|
|
1311
|
+
input: AuthProvisionDeviceInstanceInput;
|
|
1312
|
+
output: AuthProvisionDeviceInstanceOutput;
|
|
1167
1313
|
};
|
|
1168
1314
|
"Auth.RenewBindingToken": {
|
|
1169
1315
|
input: AuthRenewBindingTokenInput;
|
|
@@ -1173,13 +1319,21 @@ export interface RpcMap {
|
|
|
1173
1319
|
input: AuthRevokeApprovalInput;
|
|
1174
1320
|
output: AuthRevokeApprovalOutput;
|
|
1175
1321
|
};
|
|
1322
|
+
"Auth.RevokeDeviceActivation": {
|
|
1323
|
+
input: AuthRevokeDeviceActivationInput;
|
|
1324
|
+
output: AuthRevokeDeviceActivationOutput;
|
|
1325
|
+
};
|
|
1176
1326
|
"Auth.RevokeSession": {
|
|
1177
1327
|
input: AuthRevokeSessionInput;
|
|
1178
1328
|
output: AuthRevokeSessionOutput;
|
|
1179
1329
|
};
|
|
1180
|
-
"Auth.
|
|
1181
|
-
input:
|
|
1182
|
-
output:
|
|
1330
|
+
"Auth.SetDevicePortalDefault": {
|
|
1331
|
+
input: AuthSetDevicePortalDefaultInput;
|
|
1332
|
+
output: AuthSetDevicePortalDefaultOutput;
|
|
1333
|
+
};
|
|
1334
|
+
"Auth.SetDevicePortalSelection": {
|
|
1335
|
+
input: AuthSetDevicePortalSelectionInput;
|
|
1336
|
+
output: AuthSetDevicePortalSelectionOutput;
|
|
1183
1337
|
};
|
|
1184
1338
|
"Auth.SetLoginPortalDefault": {
|
|
1185
1339
|
input: AuthSetLoginPortalDefaultInput;
|
|
@@ -1189,14 +1343,6 @@ export interface RpcMap {
|
|
|
1189
1343
|
input: AuthSetLoginPortalSelectionInput;
|
|
1190
1344
|
output: AuthSetLoginPortalSelectionOutput;
|
|
1191
1345
|
};
|
|
1192
|
-
"Auth.SetWorkloadPortalDefault": {
|
|
1193
|
-
input: AuthSetWorkloadPortalDefaultInput;
|
|
1194
|
-
output: AuthSetWorkloadPortalDefaultOutput;
|
|
1195
|
-
};
|
|
1196
|
-
"Auth.SetWorkloadPortalSelection": {
|
|
1197
|
-
input: AuthSetWorkloadPortalSelectionInput;
|
|
1198
|
-
output: AuthSetWorkloadPortalSelectionOutput;
|
|
1199
|
-
};
|
|
1200
1346
|
"Auth.UpdateUser": {
|
|
1201
1347
|
input: AuthUpdateUserInput;
|
|
1202
1348
|
output: AuthUpdateUserOutput;
|
|
@@ -1205,6 +1351,10 @@ export interface RpcMap {
|
|
|
1205
1351
|
input: AuthUpgradeServiceContractInput;
|
|
1206
1352
|
output: AuthUpgradeServiceContractOutput;
|
|
1207
1353
|
};
|
|
1354
|
+
"Auth.UpsertInstanceGrantPolicy": {
|
|
1355
|
+
input: AuthUpsertInstanceGrantPolicyInput;
|
|
1356
|
+
output: AuthUpsertInstanceGrantPolicyOutput;
|
|
1357
|
+
};
|
|
1208
1358
|
"Auth.ValidateRequest": {
|
|
1209
1359
|
input: AuthValidateRequestInput;
|
|
1210
1360
|
output: AuthValidateRequestOutput;
|
|
@@ -1217,15 +1367,15 @@ export interface EventMap {
|
|
|
1217
1367
|
"Auth.ConnectionKicked": {
|
|
1218
1368
|
event: AuthConnectionKickedEvent;
|
|
1219
1369
|
};
|
|
1370
|
+
"Auth.DeviceActivationReviewRequested": {
|
|
1371
|
+
event: AuthDeviceActivationReviewRequestedEvent;
|
|
1372
|
+
};
|
|
1220
1373
|
"Auth.Disconnect": {
|
|
1221
1374
|
event: AuthDisconnectEvent;
|
|
1222
1375
|
};
|
|
1223
1376
|
"Auth.SessionRevoked": {
|
|
1224
1377
|
event: AuthSessionRevokedEvent;
|
|
1225
1378
|
};
|
|
1226
|
-
"Auth.WorkloadActivationReviewRequested": {
|
|
1227
|
-
event: AuthWorkloadActivationReviewRequestedEvent;
|
|
1228
|
-
};
|
|
1229
1379
|
}
|
|
1230
1380
|
export interface SubjectMap {
|
|
1231
1381
|
}
|