@dudousxd/nestjs-durable-core 0.84.0 → 0.84.1

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.d.cts CHANGED
@@ -4089,7 +4089,11 @@ declare function findStalledRuns(store: Pick<StateStore, 'listRuns' | 'listCheck
4089
4089
  interface VerifiedTenant {
4090
4090
  /** The tenant the token authenticates as. The responder trusts THIS, never the request body. */
4091
4091
  tenant: string;
4092
- /** Capabilities the token grants, if the issuer scopes them. */
4092
+ /**
4093
+ * Capabilities the token grants, if the issuer scopes them. Carried for custom verifiers and for
4094
+ * wire parity with Agora; the built-in responder does NOT enforce them yet. A verified tenant can
4095
+ * call every verb, scoped to its own namespace.
4096
+ */
4093
4097
  capabilities?: string[] | undefined;
4094
4098
  }
4095
4099
  /**
@@ -4134,7 +4138,8 @@ declare function signTenantToken(tenant: string, secret: string, opts?: {
4134
4138
  *
4135
4139
  * A LIST of secrets makes rotation a two-step deploy: verify with `[next, current]` everywhere first,
4136
4140
  * then re-mint tenant tokens with `next` at leisure. `capabilities`, if given, is a static grant
4137
- * stamped onto every {@link VerifiedTenant} this verifier authenticates.
4141
+ * stamped onto every {@link VerifiedTenant} this verifier authenticates (informational: the
4142
+ * responder does not enforce it yet, see {@link VerifiedTenant.capabilities}).
4138
4143
  */
4139
4144
  declare function hmacTenantVerifier(secret: string | string[], capabilities?: string[]): TenantVerifier;
4140
4145
  /**
package/dist/index.d.ts CHANGED
@@ -4089,7 +4089,11 @@ declare function findStalledRuns(store: Pick<StateStore, 'listRuns' | 'listCheck
4089
4089
  interface VerifiedTenant {
4090
4090
  /** The tenant the token authenticates as. The responder trusts THIS, never the request body. */
4091
4091
  tenant: string;
4092
- /** Capabilities the token grants, if the issuer scopes them. */
4092
+ /**
4093
+ * Capabilities the token grants, if the issuer scopes them. Carried for custom verifiers and for
4094
+ * wire parity with Agora; the built-in responder does NOT enforce them yet. A verified tenant can
4095
+ * call every verb, scoped to its own namespace.
4096
+ */
4093
4097
  capabilities?: string[] | undefined;
4094
4098
  }
4095
4099
  /**
@@ -4134,7 +4138,8 @@ declare function signTenantToken(tenant: string, secret: string, opts?: {
4134
4138
  *
4135
4139
  * A LIST of secrets makes rotation a two-step deploy: verify with `[next, current]` everywhere first,
4136
4140
  * then re-mint tenant tokens with `next` at leisure. `capabilities`, if given, is a static grant
4137
- * stamped onto every {@link VerifiedTenant} this verifier authenticates.
4141
+ * stamped onto every {@link VerifiedTenant} this verifier authenticates (informational: the
4142
+ * responder does not enforce it yet, see {@link VerifiedTenant.capabilities}).
4138
4143
  */
4139
4144
  declare function hmacTenantVerifier(secret: string | string[], capabilities?: string[]): TenantVerifier;
4140
4145
  /**