@dynamic-labs/sdk-api 0.93.0 → 0.94.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/package.json +1 -1
- package/src/apis/ServerApi.cjs +5 -2
- package/src/apis/ServerApi.d.ts +3 -2
- package/src/apis/ServerApi.js +5 -2
- package/src/apis/WaasApi.cjs +4 -31
- package/src/apis/WaasApi.d.ts +4 -16
- package/src/apis/WaasApi.js +4 -31
- package/src/models/RegisterServerSigningKeyRequest.cjs +2 -2
- package/src/models/RegisterServerSigningKeyRequest.d.ts +1 -1
- package/src/models/RegisterServerSigningKeyRequest.js +2 -2
- package/src/models/ServerSigningKeySummary.cjs +2 -0
- package/src/models/ServerSigningKeySummary.d.ts +6 -0
- package/src/models/ServerSigningKeySummary.js +2 -0
package/package.json
CHANGED
package/src/apis/ServerApi.cjs
CHANGED
|
@@ -478,7 +478,7 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
478
478
|
return await response.value();
|
|
479
479
|
}
|
|
480
480
|
/**
|
|
481
|
-
* Resolves the userId
|
|
481
|
+
* Resolves the userId of a server identity. With `serverIdentifier`, that identity once confirmed to exist in the environment; otherwise the environment\'s default. Feed it into addMember\'s targetIdentity.userId to add the server as a business-account member.
|
|
482
482
|
* Get the environment\'s server identity
|
|
483
483
|
*/
|
|
484
484
|
async getServerIdentityServerRaw(requestParameters, initOverrides) {
|
|
@@ -486,6 +486,9 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
486
486
|
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getServerIdentityServer.');
|
|
487
487
|
}
|
|
488
488
|
const queryParameters = {};
|
|
489
|
+
if (requestParameters.serverIdentifier !== undefined) {
|
|
490
|
+
queryParameters['serverIdentifier'] = requestParameters.serverIdentifier;
|
|
491
|
+
}
|
|
489
492
|
const headerParameters = {};
|
|
490
493
|
const response = await this.request({
|
|
491
494
|
path: `/server/{environmentId}/serverIdentity`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
@@ -496,7 +499,7 @@ class ServerApi extends runtime.BaseAPI {
|
|
|
496
499
|
return new runtime.JSONApiResponse(response, (jsonValue) => ServerIdentityResponse.ServerIdentityResponseFromJSON(jsonValue));
|
|
497
500
|
}
|
|
498
501
|
/**
|
|
499
|
-
* Resolves the userId
|
|
502
|
+
* Resolves the userId of a server identity. With `serverIdentifier`, that identity once confirmed to exist in the environment; otherwise the environment\'s default. Feed it into addMember\'s targetIdentity.userId to add the server as a business-account member.
|
|
500
503
|
* Get the environment\'s server identity
|
|
501
504
|
*/
|
|
502
505
|
async getServerIdentityServer(requestParameters, initOverrides) {
|
package/src/apis/ServerApi.d.ts
CHANGED
|
@@ -49,6 +49,7 @@ export interface GetFlowServerRequest {
|
|
|
49
49
|
}
|
|
50
50
|
export interface GetServerIdentityServerRequest {
|
|
51
51
|
environmentId: string;
|
|
52
|
+
serverIdentifier?: string;
|
|
52
53
|
}
|
|
53
54
|
export interface GetWaasTransactionBroadcastByIdempotencyKeyServerRequest {
|
|
54
55
|
environmentId: string;
|
|
@@ -172,12 +173,12 @@ export declare class ServerApi extends runtime.BaseAPI {
|
|
|
172
173
|
*/
|
|
173
174
|
getFlowServer(requestParameters: GetFlowServerRequest, initOverrides?: RequestInit): Promise<Flow>;
|
|
174
175
|
/**
|
|
175
|
-
* Resolves the userId
|
|
176
|
+
* Resolves the userId of a server identity. With `serverIdentifier`, that identity once confirmed to exist in the environment; otherwise the environment\'s default. Feed it into addMember\'s targetIdentity.userId to add the server as a business-account member.
|
|
176
177
|
* Get the environment\'s server identity
|
|
177
178
|
*/
|
|
178
179
|
getServerIdentityServerRaw(requestParameters: GetServerIdentityServerRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ServerIdentityResponse>>;
|
|
179
180
|
/**
|
|
180
|
-
* Resolves the userId
|
|
181
|
+
* Resolves the userId of a server identity. With `serverIdentifier`, that identity once confirmed to exist in the environment; otherwise the environment\'s default. Feed it into addMember\'s targetIdentity.userId to add the server as a business-account member.
|
|
181
182
|
* Get the environment\'s server identity
|
|
182
183
|
*/
|
|
183
184
|
getServerIdentityServer(requestParameters: GetServerIdentityServerRequest, initOverrides?: RequestInit): Promise<ServerIdentityResponse>;
|
package/src/apis/ServerApi.js
CHANGED
|
@@ -474,7 +474,7 @@ class ServerApi extends BaseAPI {
|
|
|
474
474
|
return await response.value();
|
|
475
475
|
}
|
|
476
476
|
/**
|
|
477
|
-
* Resolves the userId
|
|
477
|
+
* Resolves the userId of a server identity. With `serverIdentifier`, that identity once confirmed to exist in the environment; otherwise the environment\'s default. Feed it into addMember\'s targetIdentity.userId to add the server as a business-account member.
|
|
478
478
|
* Get the environment\'s server identity
|
|
479
479
|
*/
|
|
480
480
|
async getServerIdentityServerRaw(requestParameters, initOverrides) {
|
|
@@ -482,6 +482,9 @@ class ServerApi extends BaseAPI {
|
|
|
482
482
|
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getServerIdentityServer.');
|
|
483
483
|
}
|
|
484
484
|
const queryParameters = {};
|
|
485
|
+
if (requestParameters.serverIdentifier !== undefined) {
|
|
486
|
+
queryParameters['serverIdentifier'] = requestParameters.serverIdentifier;
|
|
487
|
+
}
|
|
485
488
|
const headerParameters = {};
|
|
486
489
|
const response = await this.request({
|
|
487
490
|
path: `/server/{environmentId}/serverIdentity`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))),
|
|
@@ -492,7 +495,7 @@ class ServerApi extends BaseAPI {
|
|
|
492
495
|
return new JSONApiResponse(response, (jsonValue) => ServerIdentityResponseFromJSON(jsonValue));
|
|
493
496
|
}
|
|
494
497
|
/**
|
|
495
|
-
* Resolves the userId
|
|
498
|
+
* Resolves the userId of a server identity. With `serverIdentifier`, that identity once confirmed to exist in the environment; otherwise the environment\'s default. Feed it into addMember\'s targetIdentity.userId to add the server as a business-account member.
|
|
496
499
|
* Get the environment\'s server identity
|
|
497
500
|
*/
|
|
498
501
|
async getServerIdentityServer(requestParameters, initOverrides) {
|
package/src/apis/WaasApi.cjs
CHANGED
|
@@ -234,7 +234,7 @@ require('../models/YieldVaultSummary.cjs');
|
|
|
234
234
|
*/
|
|
235
235
|
class WaasApi extends runtime.BaseAPI {
|
|
236
236
|
/**
|
|
237
|
-
* Authenticates for WaaS using an API key.
|
|
237
|
+
* Authenticates for WaaS using an API key. With a `serverIdentifier` (UUID of a server identity) in the JSON body, authenticates as that identity, provided it still holds an active Server Signing Key. Without it, authenticates as the environment\'s default server identity. The body is not declared in this contract, so that clients that send none keep working.
|
|
238
238
|
* Authenticate for WAAS using an API key
|
|
239
239
|
*/
|
|
240
240
|
async authenticateWaasRaw(requestParameters, initOverrides) {
|
|
@@ -259,7 +259,7 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
259
259
|
return new runtime.JSONApiResponse(response, (jsonValue) => WaasAuthenticateResponse.WaasAuthenticateResponseFromJSON(jsonValue));
|
|
260
260
|
}
|
|
261
261
|
/**
|
|
262
|
-
* Authenticates for WaaS using an API key.
|
|
262
|
+
* Authenticates for WaaS using an API key. With a `serverIdentifier` (UUID of a server identity) in the JSON body, authenticates as that identity, provided it still holds an active Server Signing Key. Without it, authenticates as the environment\'s default server identity. The body is not declared in this contract, so that clients that send none keep working.
|
|
263
263
|
* Authenticate for WAAS using an API key
|
|
264
264
|
*/
|
|
265
265
|
async authenticateWaas(requestParameters, initOverrides) {
|
|
@@ -736,33 +736,6 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
736
736
|
const response = await this.getEnvWaasPolicyLayerForDashboardRaw(requestParameters, initOverrides);
|
|
737
737
|
return await response.value();
|
|
738
738
|
}
|
|
739
|
-
/**
|
|
740
|
-
* Get one of the environment\'s Server Signing Keys
|
|
741
|
-
*/
|
|
742
|
-
async getServerSigningKeyRaw(requestParameters, initOverrides) {
|
|
743
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
744
|
-
throw new runtime.RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getServerSigningKey.');
|
|
745
|
-
}
|
|
746
|
-
if (requestParameters.keyId === null || requestParameters.keyId === undefined) {
|
|
747
|
-
throw new runtime.RequiredError('keyId', 'Required parameter requestParameters.keyId was null or undefined when calling getServerSigningKey.');
|
|
748
|
-
}
|
|
749
|
-
const queryParameters = {};
|
|
750
|
-
const headerParameters = {};
|
|
751
|
-
const response = await this.request({
|
|
752
|
-
path: `/environments/{environmentId}/serverSigning/keys/{keyId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"keyId"}}`, encodeURIComponent(String(requestParameters.keyId))),
|
|
753
|
-
method: 'GET',
|
|
754
|
-
headers: headerParameters,
|
|
755
|
-
query: queryParameters,
|
|
756
|
-
}, initOverrides);
|
|
757
|
-
return new runtime.JSONApiResponse(response, (jsonValue) => ServerSigningKeySummary.ServerSigningKeySummaryFromJSON(jsonValue));
|
|
758
|
-
}
|
|
759
|
-
/**
|
|
760
|
-
* Get one of the environment\'s Server Signing Keys
|
|
761
|
-
*/
|
|
762
|
-
async getServerSigningKey(requestParameters, initOverrides) {
|
|
763
|
-
const response = await this.getServerSigningKeyRaw(requestParameters, initOverrides);
|
|
764
|
-
return await response.value();
|
|
765
|
-
}
|
|
766
739
|
/**
|
|
767
740
|
* Returns the WaaS policy for the specified environment.
|
|
768
741
|
* Get the WAAS policy for an environment
|
|
@@ -952,7 +925,7 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
952
925
|
await this.optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides);
|
|
953
926
|
}
|
|
954
927
|
/**
|
|
955
|
-
* Registers a P-256 public key for
|
|
928
|
+
* Registers a P-256 public key for a server identity (`serverIdentifier`), creating the identity when it does not exist yet or when `serverIdentifier` is omitted. An identity can hold several keys. A server authenticates by presenting its `serverIdentifier`, while it holds an active key. Dashboard admin JWT only; API tokens are rejected. Registering the same key again returns it. An identifier already used by another environment\'s identity is a 409. Revoked keys cannot be re-registered.
|
|
956
929
|
* Register a Server Signing Key for a server identity
|
|
957
930
|
*/
|
|
958
931
|
async registerServerSigningKeyRaw(requestParameters, initOverrides) {
|
|
@@ -975,7 +948,7 @@ class WaasApi extends runtime.BaseAPI {
|
|
|
975
948
|
return new runtime.JSONApiResponse(response, (jsonValue) => ServerSigningKeySummary.ServerSigningKeySummaryFromJSON(jsonValue));
|
|
976
949
|
}
|
|
977
950
|
/**
|
|
978
|
-
* Registers a P-256 public key for
|
|
951
|
+
* Registers a P-256 public key for a server identity (`serverIdentifier`), creating the identity when it does not exist yet or when `serverIdentifier` is omitted. An identity can hold several keys. A server authenticates by presenting its `serverIdentifier`, while it holds an active key. Dashboard admin JWT only; API tokens are rejected. Registering the same key again returns it. An identifier already used by another environment\'s identity is a 409. Revoked keys cannot be re-registered.
|
|
979
952
|
* Register a Server Signing Key for a server identity
|
|
980
953
|
*/
|
|
981
954
|
async registerServerSigningKey(requestParameters, initOverrides) {
|
package/src/apis/WaasApi.d.ts
CHANGED
|
@@ -75,10 +75,6 @@ export interface GetDelegatedWaasTransactionBroadcastByIdempotencyKeyRequest {
|
|
|
75
75
|
export interface GetEnvWaasPolicyLayerForDashboardRequest {
|
|
76
76
|
environmentId: string;
|
|
77
77
|
}
|
|
78
|
-
export interface GetServerSigningKeyRequest {
|
|
79
|
-
environmentId: string;
|
|
80
|
-
keyId: string;
|
|
81
|
-
}
|
|
82
78
|
export interface GetWaasPolicyRequest {
|
|
83
79
|
environmentId: string;
|
|
84
80
|
}
|
|
@@ -149,12 +145,12 @@ export interface WaasVerifyApiKeyRequest {
|
|
|
149
145
|
*/
|
|
150
146
|
export declare class WaasApi extends runtime.BaseAPI {
|
|
151
147
|
/**
|
|
152
|
-
* Authenticates for WaaS using an API key.
|
|
148
|
+
* Authenticates for WaaS using an API key. With a `serverIdentifier` (UUID of a server identity) in the JSON body, authenticates as that identity, provided it still holds an active Server Signing Key. Without it, authenticates as the environment\'s default server identity. The body is not declared in this contract, so that clients that send none keep working.
|
|
153
149
|
* Authenticate for WAAS using an API key
|
|
154
150
|
*/
|
|
155
151
|
authenticateWaasRaw(requestParameters: AuthenticateWaasRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<WaasAuthenticateResponse>>;
|
|
156
152
|
/**
|
|
157
|
-
* Authenticates for WaaS using an API key.
|
|
153
|
+
* Authenticates for WaaS using an API key. With a `serverIdentifier` (UUID of a server identity) in the JSON body, authenticates as that identity, provided it still holds an active Server Signing Key. Without it, authenticates as the environment\'s default server identity. The body is not declared in this contract, so that clients that send none keep working.
|
|
158
154
|
* Authenticate for WAAS using an API key
|
|
159
155
|
*/
|
|
160
156
|
authenticateWaas(requestParameters: AuthenticateWaasRequest, initOverrides?: RequestInit): Promise<WaasAuthenticateResponse>;
|
|
@@ -308,14 +304,6 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
308
304
|
* Read the environment-Layer\'s Rules
|
|
309
305
|
*/
|
|
310
306
|
getEnvWaasPolicyLayerForDashboard(requestParameters: GetEnvWaasPolicyLayerForDashboardRequest, initOverrides?: RequestInit): Promise<WaasPolicyLayerResponse>;
|
|
311
|
-
/**
|
|
312
|
-
* Get one of the environment\'s Server Signing Keys
|
|
313
|
-
*/
|
|
314
|
-
getServerSigningKeyRaw(requestParameters: GetServerSigningKeyRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ServerSigningKeySummary>>;
|
|
315
|
-
/**
|
|
316
|
-
* Get one of the environment\'s Server Signing Keys
|
|
317
|
-
*/
|
|
318
|
-
getServerSigningKey(requestParameters: GetServerSigningKeyRequest, initOverrides?: RequestInit): Promise<ServerSigningKeySummary>;
|
|
319
307
|
/**
|
|
320
308
|
* Returns the WaaS policy for the specified environment.
|
|
321
309
|
* Get the WAAS policy for an environment
|
|
@@ -385,12 +373,12 @@ export declare class WaasApi extends runtime.BaseAPI {
|
|
|
385
373
|
*/
|
|
386
374
|
optionsDelegatedAccessEncryptionPublicKey(requestParameters: OptionsDelegatedAccessEncryptionPublicKeyRequest, initOverrides?: RequestInit): Promise<void>;
|
|
387
375
|
/**
|
|
388
|
-
* Registers a P-256 public key for
|
|
376
|
+
* Registers a P-256 public key for a server identity (`serverIdentifier`), creating the identity when it does not exist yet or when `serverIdentifier` is omitted. An identity can hold several keys. A server authenticates by presenting its `serverIdentifier`, while it holds an active key. Dashboard admin JWT only; API tokens are rejected. Registering the same key again returns it. An identifier already used by another environment\'s identity is a 409. Revoked keys cannot be re-registered.
|
|
389
377
|
* Register a Server Signing Key for a server identity
|
|
390
378
|
*/
|
|
391
379
|
registerServerSigningKeyRaw(requestParameters: RegisterServerSigningKeyOperationRequest, initOverrides?: RequestInit): Promise<runtime.ApiResponse<ServerSigningKeySummary>>;
|
|
392
380
|
/**
|
|
393
|
-
* Registers a P-256 public key for
|
|
381
|
+
* Registers a P-256 public key for a server identity (`serverIdentifier`), creating the identity when it does not exist yet or when `serverIdentifier` is omitted. An identity can hold several keys. A server authenticates by presenting its `serverIdentifier`, while it holds an active key. Dashboard admin JWT only; API tokens are rejected. Registering the same key again returns it. An identifier already used by another environment\'s identity is a 409. Revoked keys cannot be re-registered.
|
|
394
382
|
* Register a Server Signing Key for a server identity
|
|
395
383
|
*/
|
|
396
384
|
registerServerSigningKey(requestParameters: RegisterServerSigningKeyOperationRequest, initOverrides?: RequestInit): Promise<ServerSigningKeySummary>;
|
package/src/apis/WaasApi.js
CHANGED
|
@@ -230,7 +230,7 @@ import '../models/YieldVaultSummary.js';
|
|
|
230
230
|
*/
|
|
231
231
|
class WaasApi extends BaseAPI {
|
|
232
232
|
/**
|
|
233
|
-
* Authenticates for WaaS using an API key.
|
|
233
|
+
* Authenticates for WaaS using an API key. With a `serverIdentifier` (UUID of a server identity) in the JSON body, authenticates as that identity, provided it still holds an active Server Signing Key. Without it, authenticates as the environment\'s default server identity. The body is not declared in this contract, so that clients that send none keep working.
|
|
234
234
|
* Authenticate for WAAS using an API key
|
|
235
235
|
*/
|
|
236
236
|
async authenticateWaasRaw(requestParameters, initOverrides) {
|
|
@@ -255,7 +255,7 @@ class WaasApi extends BaseAPI {
|
|
|
255
255
|
return new JSONApiResponse(response, (jsonValue) => WaasAuthenticateResponseFromJSON(jsonValue));
|
|
256
256
|
}
|
|
257
257
|
/**
|
|
258
|
-
* Authenticates for WaaS using an API key.
|
|
258
|
+
* Authenticates for WaaS using an API key. With a `serverIdentifier` (UUID of a server identity) in the JSON body, authenticates as that identity, provided it still holds an active Server Signing Key. Without it, authenticates as the environment\'s default server identity. The body is not declared in this contract, so that clients that send none keep working.
|
|
259
259
|
* Authenticate for WAAS using an API key
|
|
260
260
|
*/
|
|
261
261
|
async authenticateWaas(requestParameters, initOverrides) {
|
|
@@ -732,33 +732,6 @@ class WaasApi extends BaseAPI {
|
|
|
732
732
|
const response = await this.getEnvWaasPolicyLayerForDashboardRaw(requestParameters, initOverrides);
|
|
733
733
|
return await response.value();
|
|
734
734
|
}
|
|
735
|
-
/**
|
|
736
|
-
* Get one of the environment\'s Server Signing Keys
|
|
737
|
-
*/
|
|
738
|
-
async getServerSigningKeyRaw(requestParameters, initOverrides) {
|
|
739
|
-
if (requestParameters.environmentId === null || requestParameters.environmentId === undefined) {
|
|
740
|
-
throw new RequiredError('environmentId', 'Required parameter requestParameters.environmentId was null or undefined when calling getServerSigningKey.');
|
|
741
|
-
}
|
|
742
|
-
if (requestParameters.keyId === null || requestParameters.keyId === undefined) {
|
|
743
|
-
throw new RequiredError('keyId', 'Required parameter requestParameters.keyId was null or undefined when calling getServerSigningKey.');
|
|
744
|
-
}
|
|
745
|
-
const queryParameters = {};
|
|
746
|
-
const headerParameters = {};
|
|
747
|
-
const response = await this.request({
|
|
748
|
-
path: `/environments/{environmentId}/serverSigning/keys/{keyId}`.replace(`{${"environmentId"}}`, encodeURIComponent(String(requestParameters.environmentId))).replace(`{${"keyId"}}`, encodeURIComponent(String(requestParameters.keyId))),
|
|
749
|
-
method: 'GET',
|
|
750
|
-
headers: headerParameters,
|
|
751
|
-
query: queryParameters,
|
|
752
|
-
}, initOverrides);
|
|
753
|
-
return new JSONApiResponse(response, (jsonValue) => ServerSigningKeySummaryFromJSON(jsonValue));
|
|
754
|
-
}
|
|
755
|
-
/**
|
|
756
|
-
* Get one of the environment\'s Server Signing Keys
|
|
757
|
-
*/
|
|
758
|
-
async getServerSigningKey(requestParameters, initOverrides) {
|
|
759
|
-
const response = await this.getServerSigningKeyRaw(requestParameters, initOverrides);
|
|
760
|
-
return await response.value();
|
|
761
|
-
}
|
|
762
735
|
/**
|
|
763
736
|
* Returns the WaaS policy for the specified environment.
|
|
764
737
|
* Get the WAAS policy for an environment
|
|
@@ -948,7 +921,7 @@ class WaasApi extends BaseAPI {
|
|
|
948
921
|
await this.optionsDelegatedAccessEncryptionPublicKeyRaw(requestParameters, initOverrides);
|
|
949
922
|
}
|
|
950
923
|
/**
|
|
951
|
-
* Registers a P-256 public key for
|
|
924
|
+
* Registers a P-256 public key for a server identity (`serverIdentifier`), creating the identity when it does not exist yet or when `serverIdentifier` is omitted. An identity can hold several keys. A server authenticates by presenting its `serverIdentifier`, while it holds an active key. Dashboard admin JWT only; API tokens are rejected. Registering the same key again returns it. An identifier already used by another environment\'s identity is a 409. Revoked keys cannot be re-registered.
|
|
952
925
|
* Register a Server Signing Key for a server identity
|
|
953
926
|
*/
|
|
954
927
|
async registerServerSigningKeyRaw(requestParameters, initOverrides) {
|
|
@@ -971,7 +944,7 @@ class WaasApi extends BaseAPI {
|
|
|
971
944
|
return new JSONApiResponse(response, (jsonValue) => ServerSigningKeySummaryFromJSON(jsonValue));
|
|
972
945
|
}
|
|
973
946
|
/**
|
|
974
|
-
* Registers a P-256 public key for
|
|
947
|
+
* Registers a P-256 public key for a server identity (`serverIdentifier`), creating the identity when it does not exist yet or when `serverIdentifier` is omitted. An identity can hold several keys. A server authenticates by presenting its `serverIdentifier`, while it holds an active key. Dashboard admin JWT only; API tokens are rejected. Registering the same key again returns it. An identifier already used by another environment\'s identity is a 409. Revoked keys cannot be re-registered.
|
|
975
948
|
* Register a Server Signing Key for a server identity
|
|
976
949
|
*/
|
|
977
950
|
async registerServerSigningKey(requestParameters, initOverrides) {
|
|
@@ -13,7 +13,7 @@ function RegisterServerSigningKeyRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
13
13
|
return json;
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
|
-
'
|
|
16
|
+
'serverIdentifier': !runtime.exists(json, 'serverIdentifier') ? undefined : json['serverIdentifier'],
|
|
17
17
|
'publicSigningKey': json['publicSigningKey'],
|
|
18
18
|
'label': !runtime.exists(json, 'label') ? undefined : json['label'],
|
|
19
19
|
};
|
|
@@ -26,7 +26,7 @@ function RegisterServerSigningKeyRequestToJSON(value) {
|
|
|
26
26
|
return null;
|
|
27
27
|
}
|
|
28
28
|
return {
|
|
29
|
-
'
|
|
29
|
+
'serverIdentifier': value.serverIdentifier,
|
|
30
30
|
'publicSigningKey': value.publicSigningKey,
|
|
31
31
|
'label': value.label,
|
|
32
32
|
};
|
|
@@ -20,7 +20,7 @@ export interface RegisterServerSigningKeyRequest {
|
|
|
20
20
|
* @type {string}
|
|
21
21
|
* @memberof RegisterServerSigningKeyRequest
|
|
22
22
|
*/
|
|
23
|
-
|
|
23
|
+
serverIdentifier?: string;
|
|
24
24
|
/**
|
|
25
25
|
* P-256 public key as SEC1 hex, compressed (33 bytes) or uncompressed (65 bytes)
|
|
26
26
|
* @type {string}
|
|
@@ -9,7 +9,7 @@ function RegisterServerSigningKeyRequestFromJSONTyped(json, ignoreDiscriminator)
|
|
|
9
9
|
return json;
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
|
-
'
|
|
12
|
+
'serverIdentifier': !exists(json, 'serverIdentifier') ? undefined : json['serverIdentifier'],
|
|
13
13
|
'publicSigningKey': json['publicSigningKey'],
|
|
14
14
|
'label': !exists(json, 'label') ? undefined : json['label'],
|
|
15
15
|
};
|
|
@@ -22,7 +22,7 @@ function RegisterServerSigningKeyRequestToJSON(value) {
|
|
|
22
22
|
return null;
|
|
23
23
|
}
|
|
24
24
|
return {
|
|
25
|
-
'
|
|
25
|
+
'serverIdentifier': value.serverIdentifier,
|
|
26
26
|
'publicSigningKey': value.publicSigningKey,
|
|
27
27
|
'label': value.label,
|
|
28
28
|
};
|
|
@@ -14,6 +14,7 @@ function ServerSigningKeySummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
14
14
|
}
|
|
15
15
|
return {
|
|
16
16
|
'id': json['id'],
|
|
17
|
+
'serverIdentifier': json['serverIdentifier'],
|
|
17
18
|
'kid': json['kid'],
|
|
18
19
|
'label': json['label'],
|
|
19
20
|
'publicSigningKey': json['publicSigningKey'],
|
|
@@ -31,6 +32,7 @@ function ServerSigningKeySummaryToJSON(value) {
|
|
|
31
32
|
}
|
|
32
33
|
return {
|
|
33
34
|
'id': value.id,
|
|
35
|
+
'serverIdentifier': value.serverIdentifier,
|
|
34
36
|
'kid': value.kid,
|
|
35
37
|
'label': value.label,
|
|
36
38
|
'publicSigningKey': value.publicSigningKey,
|
|
@@ -22,6 +22,12 @@ export interface ServerSigningKeySummary {
|
|
|
22
22
|
* @memberof ServerSigningKeySummary
|
|
23
23
|
*/
|
|
24
24
|
id: string;
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {string}
|
|
28
|
+
* @memberof ServerSigningKeySummary
|
|
29
|
+
*/
|
|
30
|
+
serverIdentifier: string;
|
|
25
31
|
/**
|
|
26
32
|
* RFC 7638 thumbprint of the public key; the JWS `kid` of operation proofs
|
|
27
33
|
* @type {string}
|
|
@@ -10,6 +10,7 @@ function ServerSigningKeySummaryFromJSONTyped(json, ignoreDiscriminator) {
|
|
|
10
10
|
}
|
|
11
11
|
return {
|
|
12
12
|
'id': json['id'],
|
|
13
|
+
'serverIdentifier': json['serverIdentifier'],
|
|
13
14
|
'kid': json['kid'],
|
|
14
15
|
'label': json['label'],
|
|
15
16
|
'publicSigningKey': json['publicSigningKey'],
|
|
@@ -27,6 +28,7 @@ function ServerSigningKeySummaryToJSON(value) {
|
|
|
27
28
|
}
|
|
28
29
|
return {
|
|
29
30
|
'id': value.id,
|
|
31
|
+
'serverIdentifier': value.serverIdentifier,
|
|
30
32
|
'kid': value.kid,
|
|
31
33
|
'label': value.label,
|
|
32
34
|
'publicSigningKey': value.publicSigningKey,
|