@relai-team/access-sdk 0.22.0 → 0.23.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/index.cjs +40 -0
- package/dist/index.d.cts +54 -1
- package/dist/index.d.ts +54 -1
- package/dist/index.js +40 -0
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -1084,6 +1084,46 @@ var RelaiClient = class {
|
|
|
1084
1084
|
me() {
|
|
1085
1085
|
return this.http.request({ path: "/me" });
|
|
1086
1086
|
}
|
|
1087
|
+
/**
|
|
1088
|
+
* Delete the signed-in end user's account. Irreversible.
|
|
1089
|
+
*
|
|
1090
|
+
* Here because an app store requires it: Apple's guideline 5.1.1(v) says an
|
|
1091
|
+
* app that creates accounts has to let somebody delete one from inside the
|
|
1092
|
+
* app, and sending them to a web page is at best a grudging second place.
|
|
1093
|
+
*
|
|
1094
|
+
* Three things are worth knowing before you put this behind a button.
|
|
1095
|
+
*
|
|
1096
|
+
* IT ENDS THE SESSION AS IT RETURNS. Every token is revoked server-side,
|
|
1097
|
+
* including refresh tokens on other devices, so the client this was called
|
|
1098
|
+
* from is signed out whether or not it says so. Call `auth.signOut()` after
|
|
1099
|
+
* it, and clear whatever your app keeps locally: a stored access code for an
|
|
1100
|
+
* order that no longer exists is a code for a door that no longer opens.
|
|
1101
|
+
*
|
|
1102
|
+
* IT RELEASES COMPARTMENTS. Open orders end. One whose compartment is empty
|
|
1103
|
+
* is cancelled and the compartment returns to use. One whose compartment
|
|
1104
|
+
* still holds something is marked abandoned and taken out of service, which
|
|
1105
|
+
* is the same thing that happens when a pick-up window runs out and nobody
|
|
1106
|
+
* comes, and `orders_abandoned` counts those. Show that number. It is the
|
|
1107
|
+
* last chance anybody has to tell this person their belongings are about to
|
|
1108
|
+
* become a Host's problem.
|
|
1109
|
+
*
|
|
1110
|
+
* THE ORDERS SURVIVE, anonymized. They carry payments that settled and a
|
|
1111
|
+
* record of which compartment held what, which a Host or an auditor can ask
|
|
1112
|
+
* about long after the account is gone. The email address and `@tag` are
|
|
1113
|
+
* released, so the same person can sign up again later.
|
|
1114
|
+
*
|
|
1115
|
+
* A RETRY ANSWERS `unauthorized`, not success. The deletion itself is
|
|
1116
|
+
* idempotent, but the token a retry would use was destroyed by the first
|
|
1117
|
+
* call, so a request lost on a flaky connection cannot be told apart from
|
|
1118
|
+
* one that never arrived. Treat `unauthorized` here as the account being
|
|
1119
|
+
* gone: every path to it ends with this device signed out anyway.
|
|
1120
|
+
*
|
|
1121
|
+
* A guest, a test identity, or the store-reviewer identity is refused with
|
|
1122
|
+
* `forbidden`.
|
|
1123
|
+
*/
|
|
1124
|
+
deleteAccount() {
|
|
1125
|
+
return this.http.request({ path: "/me", method: "DELETE" });
|
|
1126
|
+
}
|
|
1087
1127
|
/**
|
|
1088
1128
|
* Open a node: request the grant, then drive the physical unlock over the
|
|
1089
1129
|
* given transport (challenge → mint → write → ack). Throws
|
package/dist/index.d.cts
CHANGED
|
@@ -296,6 +296,21 @@ interface Me {
|
|
|
296
296
|
environment: "sandbox" | "production";
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
+
/** What is left behind when somebody deletes their account. */
|
|
300
|
+
interface AccountDeleted {
|
|
301
|
+
deleted: true;
|
|
302
|
+
/** Open orders ended because their compartment was empty or unassigned. */
|
|
303
|
+
orders_cancelled: number;
|
|
304
|
+
/**
|
|
305
|
+
* Open orders whose compartment still held something.
|
|
306
|
+
*
|
|
307
|
+
* SAY THIS ONE OUT LOUD. Those nodes are now out of service and a Host has
|
|
308
|
+
* been told to clear them, because deleting an account cannot empty a steel
|
|
309
|
+
* box. The person who just deleted the account is the only one who knows
|
|
310
|
+
* what is inside, and this is the last moment anyone can tell them.
|
|
311
|
+
*/
|
|
312
|
+
orders_abandoned: number;
|
|
313
|
+
}
|
|
299
314
|
interface TowerNode {
|
|
300
315
|
id: string;
|
|
301
316
|
tower_id: string;
|
|
@@ -1337,6 +1352,44 @@ declare class RelaiClient {
|
|
|
1337
1352
|
* 0.12.0: it was named in both and never actually existed.
|
|
1338
1353
|
*/
|
|
1339
1354
|
me(): Promise<Me>;
|
|
1355
|
+
/**
|
|
1356
|
+
* Delete the signed-in end user's account. Irreversible.
|
|
1357
|
+
*
|
|
1358
|
+
* Here because an app store requires it: Apple's guideline 5.1.1(v) says an
|
|
1359
|
+
* app that creates accounts has to let somebody delete one from inside the
|
|
1360
|
+
* app, and sending them to a web page is at best a grudging second place.
|
|
1361
|
+
*
|
|
1362
|
+
* Three things are worth knowing before you put this behind a button.
|
|
1363
|
+
*
|
|
1364
|
+
* IT ENDS THE SESSION AS IT RETURNS. Every token is revoked server-side,
|
|
1365
|
+
* including refresh tokens on other devices, so the client this was called
|
|
1366
|
+
* from is signed out whether or not it says so. Call `auth.signOut()` after
|
|
1367
|
+
* it, and clear whatever your app keeps locally: a stored access code for an
|
|
1368
|
+
* order that no longer exists is a code for a door that no longer opens.
|
|
1369
|
+
*
|
|
1370
|
+
* IT RELEASES COMPARTMENTS. Open orders end. One whose compartment is empty
|
|
1371
|
+
* is cancelled and the compartment returns to use. One whose compartment
|
|
1372
|
+
* still holds something is marked abandoned and taken out of service, which
|
|
1373
|
+
* is the same thing that happens when a pick-up window runs out and nobody
|
|
1374
|
+
* comes, and `orders_abandoned` counts those. Show that number. It is the
|
|
1375
|
+
* last chance anybody has to tell this person their belongings are about to
|
|
1376
|
+
* become a Host's problem.
|
|
1377
|
+
*
|
|
1378
|
+
* THE ORDERS SURVIVE, anonymized. They carry payments that settled and a
|
|
1379
|
+
* record of which compartment held what, which a Host or an auditor can ask
|
|
1380
|
+
* about long after the account is gone. The email address and `@tag` are
|
|
1381
|
+
* released, so the same person can sign up again later.
|
|
1382
|
+
*
|
|
1383
|
+
* A RETRY ANSWERS `unauthorized`, not success. The deletion itself is
|
|
1384
|
+
* idempotent, but the token a retry would use was destroyed by the first
|
|
1385
|
+
* call, so a request lost on a flaky connection cannot be told apart from
|
|
1386
|
+
* one that never arrived. Treat `unauthorized` here as the account being
|
|
1387
|
+
* gone: every path to it ends with this device signed out anyway.
|
|
1388
|
+
*
|
|
1389
|
+
* A guest, a test identity, or the store-reviewer identity is refused with
|
|
1390
|
+
* `forbidden`.
|
|
1391
|
+
*/
|
|
1392
|
+
deleteAccount(): Promise<AccountDeleted>;
|
|
1340
1393
|
/**
|
|
1341
1394
|
* Open a node: request the grant, then drive the physical unlock over the
|
|
1342
1395
|
* given transport (challenge → mint → write → ack). Throws
|
|
@@ -1830,4 +1883,4 @@ declare class RelaiTransportError extends RelaiError {
|
|
|
1830
1883
|
constructor(message: string);
|
|
1831
1884
|
}
|
|
1832
1885
|
|
|
1833
|
-
export { type AccessLinkTarget, AccessLinksModule, type AnyWebhookEvent, type ApiEnvironment, type ApiErrorBody, AppModule, type AppSelf, AuthModule, type BleDeviceLike, type BleManagerLike, BleTransport, type BleTransportOptions, type CommandAck, type DayWindow, type DeliverOptions, type DiscoveredParent, type EndUser, type EndUserPage, EndUsersModule, type ExchangeZone, type ExchangeZoneDetail, type ExchangeZonePage, ExchangeZonesModule, type GrantAlgorithm, GrantsModule, type HandoffMode, type Intent, Intents, type KeyValueStorage, type Me, MemoryTelemetryQueue, MemoryTokenStorage, type MintedCommand, type NotifyLine, type Open, type OperatingHours, type Order, type OrderPage, type OrderStatusFields, OrdersModule, type OverrideLink, OverrideLinksModule, type ParentTransport, type PaymentRequiredDetails, PushModule, type PushPlatform, type QueuedTelemetry, REJECT_REASONS, RELAI_RX_CHAR, RELAI_TX_CHAR, RELAI_UART_SERVICE, type RecipientMatch, RecipientsModule, RelaiApiError, RelaiClient, type RelaiClientOptions, RelaiConfigError, RelaiError, type RelaiErrorContext, RelaiLateFeeDue, RelaiLockNotActuated, RelaiMissingKeyError, RelaiNetworkError, RelaiTransportError, RelaiUnlockRejected, type SandboxFault, type SandboxFaultResult, SandboxModule, type SelfBillingChoice, type Session, SimAuthenticatedTransport, type SimAuthenticatedTransportOptions, type SimulatedParentConfig, SimulatedTransport, StorageTelemetryQueue, type StorageTelemetryQueueOptions, type StripeSdk, type TelemetryAction, type TelemetryEvent, TelemetryModule, type TelemetryPayload, type TelemetryQueue, TelemetryUploader, type TokenPair, type TokenStorage, type Tower, type TowerNode, type TowerTelemetry, type UnlockDeps, type UnlockGrant, type UnlockInput, type UnlockResult, type VerifyWebhookInput, type WebhookEvent, type WebhookEventOf, type WebhookEventType, type WebhookPayloads, asPaymentRequired, deliverOpen, isRetryableRejectReason, isStripePublishableKey, needsFreshNonce, parseAdvertisedSerial, parseNotifyLine, presentRelaiPaymentSheet, serialMatches, verifyWebhook };
|
|
1886
|
+
export { type AccessLinkTarget, AccessLinksModule, type AccountDeleted, type AnyWebhookEvent, type ApiEnvironment, type ApiErrorBody, AppModule, type AppSelf, AuthModule, type BleDeviceLike, type BleManagerLike, BleTransport, type BleTransportOptions, type CommandAck, type DayWindow, type DeliverOptions, type DiscoveredParent, type EndUser, type EndUserPage, EndUsersModule, type ExchangeZone, type ExchangeZoneDetail, type ExchangeZonePage, ExchangeZonesModule, type GrantAlgorithm, GrantsModule, type HandoffMode, type Intent, Intents, type KeyValueStorage, type Me, MemoryTelemetryQueue, MemoryTokenStorage, type MintedCommand, type NotifyLine, type Open, type OperatingHours, type Order, type OrderPage, type OrderStatusFields, OrdersModule, type OverrideLink, OverrideLinksModule, type ParentTransport, type PaymentRequiredDetails, PushModule, type PushPlatform, type QueuedTelemetry, REJECT_REASONS, RELAI_RX_CHAR, RELAI_TX_CHAR, RELAI_UART_SERVICE, type RecipientMatch, RecipientsModule, RelaiApiError, RelaiClient, type RelaiClientOptions, RelaiConfigError, RelaiError, type RelaiErrorContext, RelaiLateFeeDue, RelaiLockNotActuated, RelaiMissingKeyError, RelaiNetworkError, RelaiTransportError, RelaiUnlockRejected, type SandboxFault, type SandboxFaultResult, SandboxModule, type SelfBillingChoice, type Session, SimAuthenticatedTransport, type SimAuthenticatedTransportOptions, type SimulatedParentConfig, SimulatedTransport, StorageTelemetryQueue, type StorageTelemetryQueueOptions, type StripeSdk, type TelemetryAction, type TelemetryEvent, TelemetryModule, type TelemetryPayload, type TelemetryQueue, TelemetryUploader, type TokenPair, type TokenStorage, type Tower, type TowerNode, type TowerTelemetry, type UnlockDeps, type UnlockGrant, type UnlockInput, type UnlockResult, type VerifyWebhookInput, type WebhookEvent, type WebhookEventOf, type WebhookEventType, type WebhookPayloads, asPaymentRequired, deliverOpen, isRetryableRejectReason, isStripePublishableKey, needsFreshNonce, parseAdvertisedSerial, parseNotifyLine, presentRelaiPaymentSheet, serialMatches, verifyWebhook };
|
package/dist/index.d.ts
CHANGED
|
@@ -296,6 +296,21 @@ interface Me {
|
|
|
296
296
|
environment: "sandbox" | "production";
|
|
297
297
|
};
|
|
298
298
|
}
|
|
299
|
+
/** What is left behind when somebody deletes their account. */
|
|
300
|
+
interface AccountDeleted {
|
|
301
|
+
deleted: true;
|
|
302
|
+
/** Open orders ended because their compartment was empty or unassigned. */
|
|
303
|
+
orders_cancelled: number;
|
|
304
|
+
/**
|
|
305
|
+
* Open orders whose compartment still held something.
|
|
306
|
+
*
|
|
307
|
+
* SAY THIS ONE OUT LOUD. Those nodes are now out of service and a Host has
|
|
308
|
+
* been told to clear them, because deleting an account cannot empty a steel
|
|
309
|
+
* box. The person who just deleted the account is the only one who knows
|
|
310
|
+
* what is inside, and this is the last moment anyone can tell them.
|
|
311
|
+
*/
|
|
312
|
+
orders_abandoned: number;
|
|
313
|
+
}
|
|
299
314
|
interface TowerNode {
|
|
300
315
|
id: string;
|
|
301
316
|
tower_id: string;
|
|
@@ -1337,6 +1352,44 @@ declare class RelaiClient {
|
|
|
1337
1352
|
* 0.12.0: it was named in both and never actually existed.
|
|
1338
1353
|
*/
|
|
1339
1354
|
me(): Promise<Me>;
|
|
1355
|
+
/**
|
|
1356
|
+
* Delete the signed-in end user's account. Irreversible.
|
|
1357
|
+
*
|
|
1358
|
+
* Here because an app store requires it: Apple's guideline 5.1.1(v) says an
|
|
1359
|
+
* app that creates accounts has to let somebody delete one from inside the
|
|
1360
|
+
* app, and sending them to a web page is at best a grudging second place.
|
|
1361
|
+
*
|
|
1362
|
+
* Three things are worth knowing before you put this behind a button.
|
|
1363
|
+
*
|
|
1364
|
+
* IT ENDS THE SESSION AS IT RETURNS. Every token is revoked server-side,
|
|
1365
|
+
* including refresh tokens on other devices, so the client this was called
|
|
1366
|
+
* from is signed out whether or not it says so. Call `auth.signOut()` after
|
|
1367
|
+
* it, and clear whatever your app keeps locally: a stored access code for an
|
|
1368
|
+
* order that no longer exists is a code for a door that no longer opens.
|
|
1369
|
+
*
|
|
1370
|
+
* IT RELEASES COMPARTMENTS. Open orders end. One whose compartment is empty
|
|
1371
|
+
* is cancelled and the compartment returns to use. One whose compartment
|
|
1372
|
+
* still holds something is marked abandoned and taken out of service, which
|
|
1373
|
+
* is the same thing that happens when a pick-up window runs out and nobody
|
|
1374
|
+
* comes, and `orders_abandoned` counts those. Show that number. It is the
|
|
1375
|
+
* last chance anybody has to tell this person their belongings are about to
|
|
1376
|
+
* become a Host's problem.
|
|
1377
|
+
*
|
|
1378
|
+
* THE ORDERS SURVIVE, anonymized. They carry payments that settled and a
|
|
1379
|
+
* record of which compartment held what, which a Host or an auditor can ask
|
|
1380
|
+
* about long after the account is gone. The email address and `@tag` are
|
|
1381
|
+
* released, so the same person can sign up again later.
|
|
1382
|
+
*
|
|
1383
|
+
* A RETRY ANSWERS `unauthorized`, not success. The deletion itself is
|
|
1384
|
+
* idempotent, but the token a retry would use was destroyed by the first
|
|
1385
|
+
* call, so a request lost on a flaky connection cannot be told apart from
|
|
1386
|
+
* one that never arrived. Treat `unauthorized` here as the account being
|
|
1387
|
+
* gone: every path to it ends with this device signed out anyway.
|
|
1388
|
+
*
|
|
1389
|
+
* A guest, a test identity, or the store-reviewer identity is refused with
|
|
1390
|
+
* `forbidden`.
|
|
1391
|
+
*/
|
|
1392
|
+
deleteAccount(): Promise<AccountDeleted>;
|
|
1340
1393
|
/**
|
|
1341
1394
|
* Open a node: request the grant, then drive the physical unlock over the
|
|
1342
1395
|
* given transport (challenge → mint → write → ack). Throws
|
|
@@ -1830,4 +1883,4 @@ declare class RelaiTransportError extends RelaiError {
|
|
|
1830
1883
|
constructor(message: string);
|
|
1831
1884
|
}
|
|
1832
1885
|
|
|
1833
|
-
export { type AccessLinkTarget, AccessLinksModule, type AnyWebhookEvent, type ApiEnvironment, type ApiErrorBody, AppModule, type AppSelf, AuthModule, type BleDeviceLike, type BleManagerLike, BleTransport, type BleTransportOptions, type CommandAck, type DayWindow, type DeliverOptions, type DiscoveredParent, type EndUser, type EndUserPage, EndUsersModule, type ExchangeZone, type ExchangeZoneDetail, type ExchangeZonePage, ExchangeZonesModule, type GrantAlgorithm, GrantsModule, type HandoffMode, type Intent, Intents, type KeyValueStorage, type Me, MemoryTelemetryQueue, MemoryTokenStorage, type MintedCommand, type NotifyLine, type Open, type OperatingHours, type Order, type OrderPage, type OrderStatusFields, OrdersModule, type OverrideLink, OverrideLinksModule, type ParentTransport, type PaymentRequiredDetails, PushModule, type PushPlatform, type QueuedTelemetry, REJECT_REASONS, RELAI_RX_CHAR, RELAI_TX_CHAR, RELAI_UART_SERVICE, type RecipientMatch, RecipientsModule, RelaiApiError, RelaiClient, type RelaiClientOptions, RelaiConfigError, RelaiError, type RelaiErrorContext, RelaiLateFeeDue, RelaiLockNotActuated, RelaiMissingKeyError, RelaiNetworkError, RelaiTransportError, RelaiUnlockRejected, type SandboxFault, type SandboxFaultResult, SandboxModule, type SelfBillingChoice, type Session, SimAuthenticatedTransport, type SimAuthenticatedTransportOptions, type SimulatedParentConfig, SimulatedTransport, StorageTelemetryQueue, type StorageTelemetryQueueOptions, type StripeSdk, type TelemetryAction, type TelemetryEvent, TelemetryModule, type TelemetryPayload, type TelemetryQueue, TelemetryUploader, type TokenPair, type TokenStorage, type Tower, type TowerNode, type TowerTelemetry, type UnlockDeps, type UnlockGrant, type UnlockInput, type UnlockResult, type VerifyWebhookInput, type WebhookEvent, type WebhookEventOf, type WebhookEventType, type WebhookPayloads, asPaymentRequired, deliverOpen, isRetryableRejectReason, isStripePublishableKey, needsFreshNonce, parseAdvertisedSerial, parseNotifyLine, presentRelaiPaymentSheet, serialMatches, verifyWebhook };
|
|
1886
|
+
export { type AccessLinkTarget, AccessLinksModule, type AccountDeleted, type AnyWebhookEvent, type ApiEnvironment, type ApiErrorBody, AppModule, type AppSelf, AuthModule, type BleDeviceLike, type BleManagerLike, BleTransport, type BleTransportOptions, type CommandAck, type DayWindow, type DeliverOptions, type DiscoveredParent, type EndUser, type EndUserPage, EndUsersModule, type ExchangeZone, type ExchangeZoneDetail, type ExchangeZonePage, ExchangeZonesModule, type GrantAlgorithm, GrantsModule, type HandoffMode, type Intent, Intents, type KeyValueStorage, type Me, MemoryTelemetryQueue, MemoryTokenStorage, type MintedCommand, type NotifyLine, type Open, type OperatingHours, type Order, type OrderPage, type OrderStatusFields, OrdersModule, type OverrideLink, OverrideLinksModule, type ParentTransport, type PaymentRequiredDetails, PushModule, type PushPlatform, type QueuedTelemetry, REJECT_REASONS, RELAI_RX_CHAR, RELAI_TX_CHAR, RELAI_UART_SERVICE, type RecipientMatch, RecipientsModule, RelaiApiError, RelaiClient, type RelaiClientOptions, RelaiConfigError, RelaiError, type RelaiErrorContext, RelaiLateFeeDue, RelaiLockNotActuated, RelaiMissingKeyError, RelaiNetworkError, RelaiTransportError, RelaiUnlockRejected, type SandboxFault, type SandboxFaultResult, SandboxModule, type SelfBillingChoice, type Session, SimAuthenticatedTransport, type SimAuthenticatedTransportOptions, type SimulatedParentConfig, SimulatedTransport, StorageTelemetryQueue, type StorageTelemetryQueueOptions, type StripeSdk, type TelemetryAction, type TelemetryEvent, TelemetryModule, type TelemetryPayload, type TelemetryQueue, TelemetryUploader, type TokenPair, type TokenStorage, type Tower, type TowerNode, type TowerTelemetry, type UnlockDeps, type UnlockGrant, type UnlockInput, type UnlockResult, type VerifyWebhookInput, type WebhookEvent, type WebhookEventOf, type WebhookEventType, type WebhookPayloads, asPaymentRequired, deliverOpen, isRetryableRejectReason, isStripePublishableKey, needsFreshNonce, parseAdvertisedSerial, parseNotifyLine, presentRelaiPaymentSheet, serialMatches, verifyWebhook };
|
package/dist/index.js
CHANGED
|
@@ -909,6 +909,46 @@ var RelaiClient = class {
|
|
|
909
909
|
me() {
|
|
910
910
|
return this.http.request({ path: "/me" });
|
|
911
911
|
}
|
|
912
|
+
/**
|
|
913
|
+
* Delete the signed-in end user's account. Irreversible.
|
|
914
|
+
*
|
|
915
|
+
* Here because an app store requires it: Apple's guideline 5.1.1(v) says an
|
|
916
|
+
* app that creates accounts has to let somebody delete one from inside the
|
|
917
|
+
* app, and sending them to a web page is at best a grudging second place.
|
|
918
|
+
*
|
|
919
|
+
* Three things are worth knowing before you put this behind a button.
|
|
920
|
+
*
|
|
921
|
+
* IT ENDS THE SESSION AS IT RETURNS. Every token is revoked server-side,
|
|
922
|
+
* including refresh tokens on other devices, so the client this was called
|
|
923
|
+
* from is signed out whether or not it says so. Call `auth.signOut()` after
|
|
924
|
+
* it, and clear whatever your app keeps locally: a stored access code for an
|
|
925
|
+
* order that no longer exists is a code for a door that no longer opens.
|
|
926
|
+
*
|
|
927
|
+
* IT RELEASES COMPARTMENTS. Open orders end. One whose compartment is empty
|
|
928
|
+
* is cancelled and the compartment returns to use. One whose compartment
|
|
929
|
+
* still holds something is marked abandoned and taken out of service, which
|
|
930
|
+
* is the same thing that happens when a pick-up window runs out and nobody
|
|
931
|
+
* comes, and `orders_abandoned` counts those. Show that number. It is the
|
|
932
|
+
* last chance anybody has to tell this person their belongings are about to
|
|
933
|
+
* become a Host's problem.
|
|
934
|
+
*
|
|
935
|
+
* THE ORDERS SURVIVE, anonymized. They carry payments that settled and a
|
|
936
|
+
* record of which compartment held what, which a Host or an auditor can ask
|
|
937
|
+
* about long after the account is gone. The email address and `@tag` are
|
|
938
|
+
* released, so the same person can sign up again later.
|
|
939
|
+
*
|
|
940
|
+
* A RETRY ANSWERS `unauthorized`, not success. The deletion itself is
|
|
941
|
+
* idempotent, but the token a retry would use was destroyed by the first
|
|
942
|
+
* call, so a request lost on a flaky connection cannot be told apart from
|
|
943
|
+
* one that never arrived. Treat `unauthorized` here as the account being
|
|
944
|
+
* gone: every path to it ends with this device signed out anyway.
|
|
945
|
+
*
|
|
946
|
+
* A guest, a test identity, or the store-reviewer identity is refused with
|
|
947
|
+
* `forbidden`.
|
|
948
|
+
*/
|
|
949
|
+
deleteAccount() {
|
|
950
|
+
return this.http.request({ path: "/me", method: "DELETE" });
|
|
951
|
+
}
|
|
912
952
|
/**
|
|
913
953
|
* Open a node: request the grant, then drive the physical unlock over the
|
|
914
954
|
* given transport (challenge → mint → write → ack). Throws
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@relai-team/access-sdk",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.23.0",
|
|
4
4
|
"description": "Official Relai Access SDK, open Relai Exchange Zone nodes over BLE, backed by the Relai Access platform (server-owns-trust).",
|
|
5
5
|
"license": "SEE LICENSE IN LICENSE",
|
|
6
6
|
"type": "module",
|