@naturali/sdk 0.250.3 → 0.251.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.cjs CHANGED
@@ -1597,7 +1597,8 @@ var ApiKeys = class {
1597
1597
  /**
1598
1598
  * Revoke an API key
1599
1599
  *
1600
- * Revokes an API key immediately. Subsequent use returns 401.
1600
+ * Revokes an API key immediately. Subsequent use returns 401, and work the key started (a paused generation) calls no tool on its next step.
1601
+ *
1601
1602
  */
1602
1603
  static deleteApiKey(options) {
1603
1604
  return (options.client ?? client).delete({
@@ -1732,7 +1733,7 @@ var Assistant = class {
1732
1733
  /**
1733
1734
  * Revoke a linked identity
1734
1735
  *
1735
- * Revokes the grant, disabling the Assistant for that identity. The grant is resolved on every inbound message, so the next one from that identity is refused before the agent is invoked — revocation is immediate, not eventual. The identity is free to link again afterwards.
1736
+ * Revokes the grant, disabling the Assistant for that identity. The grant is resolved on every inbound message, so the next one from that identity is refused before the agent is invoked — revocation is immediate, not eventual. Work the grant started (a paused generation) calls no tool on its next step. The identity is free to link again afterwards.
1736
1737
  *
1737
1738
  */
1738
1739
  static revokeAssistantGrant(options) {
package/dist/index.d.cts CHANGED
@@ -13637,6 +13637,11 @@ type DeleteApiKeyErrors = {
13637
13637
  * The resource does not exist (existence is not leaked).
13638
13638
  */
13639
13639
  404: ErrorResponse;
13640
+ /**
13641
+ * `upstream_unavailable`: the runtime did not record the revocation, so the key stays live. Retry.
13642
+ *
13643
+ */
13644
+ 502: ErrorResponse;
13640
13645
  };
13641
13646
  type DeleteApiKeyError = DeleteApiKeyErrors[keyof DeleteApiKeyErrors];
13642
13647
  type DeleteApiKeyResponses = {
@@ -14133,6 +14138,11 @@ type RevokeAssistantGrantErrors = {
14133
14138
  * The resource does not exist (existence is not leaked).
14134
14139
  */
14135
14140
  404: ErrorResponse;
14141
+ /**
14142
+ * `upstream_unavailable`: the runtime did not record the revocation, so the grant stays active. Retry.
14143
+ *
14144
+ */
14145
+ 502: ErrorResponse;
14136
14146
  };
14137
14147
  type RevokeAssistantGrantError = RevokeAssistantGrantErrors[keyof RevokeAssistantGrantErrors];
14138
14148
  type RevokeAssistantGrantResponses = {
@@ -36178,7 +36188,8 @@ export declare class ApiKeys {
36178
36188
  /**
36179
36189
  * Revoke an API key
36180
36190
  *
36181
- * Revokes an API key immediately. Subsequent use returns 401.
36191
+ * Revokes an API key immediately. Subsequent use returns 401, and work the key started (a paused generation) calls no tool on its next step.
36192
+ *
36182
36193
  */
36183
36194
  static deleteApiKey<ThrowOnError extends boolean = false>(options: Options<DeleteApiKeyData, ThrowOnError>): RequestResult<DeleteApiKeyResponses, DeleteApiKeyErrors, ThrowOnError>;
36184
36195
  /**
@@ -36246,7 +36257,7 @@ export declare class Assistant {
36246
36257
  /**
36247
36258
  * Revoke a linked identity
36248
36259
  *
36249
- * Revokes the grant, disabling the Assistant for that identity. The grant is resolved on every inbound message, so the next one from that identity is refused before the agent is invoked — revocation is immediate, not eventual. The identity is free to link again afterwards.
36260
+ * Revokes the grant, disabling the Assistant for that identity. The grant is resolved on every inbound message, so the next one from that identity is refused before the agent is invoked — revocation is immediate, not eventual. Work the grant started (a paused generation) calls no tool on its next step. The identity is free to link again afterwards.
36250
36261
  *
36251
36262
  */
36252
36263
  static revokeAssistantGrant<ThrowOnError extends boolean = false>(options: Options<RevokeAssistantGrantData, ThrowOnError>): RequestResult<RevokeAssistantGrantResponses, RevokeAssistantGrantErrors, ThrowOnError>;
package/dist/index.d.mts CHANGED
@@ -13637,6 +13637,11 @@ type DeleteApiKeyErrors = {
13637
13637
  * The resource does not exist (existence is not leaked).
13638
13638
  */
13639
13639
  404: ErrorResponse;
13640
+ /**
13641
+ * `upstream_unavailable`: the runtime did not record the revocation, so the key stays live. Retry.
13642
+ *
13643
+ */
13644
+ 502: ErrorResponse;
13640
13645
  };
13641
13646
  type DeleteApiKeyError = DeleteApiKeyErrors[keyof DeleteApiKeyErrors];
13642
13647
  type DeleteApiKeyResponses = {
@@ -14133,6 +14138,11 @@ type RevokeAssistantGrantErrors = {
14133
14138
  * The resource does not exist (existence is not leaked).
14134
14139
  */
14135
14140
  404: ErrorResponse;
14141
+ /**
14142
+ * `upstream_unavailable`: the runtime did not record the revocation, so the grant stays active. Retry.
14143
+ *
14144
+ */
14145
+ 502: ErrorResponse;
14136
14146
  };
14137
14147
  type RevokeAssistantGrantError = RevokeAssistantGrantErrors[keyof RevokeAssistantGrantErrors];
14138
14148
  type RevokeAssistantGrantResponses = {
@@ -36178,7 +36188,8 @@ export declare class ApiKeys {
36178
36188
  /**
36179
36189
  * Revoke an API key
36180
36190
  *
36181
- * Revokes an API key immediately. Subsequent use returns 401.
36191
+ * Revokes an API key immediately. Subsequent use returns 401, and work the key started (a paused generation) calls no tool on its next step.
36192
+ *
36182
36193
  */
36183
36194
  static deleteApiKey<ThrowOnError extends boolean = false>(options: Options<DeleteApiKeyData, ThrowOnError>): RequestResult<DeleteApiKeyResponses, DeleteApiKeyErrors, ThrowOnError>;
36184
36195
  /**
@@ -36246,7 +36257,7 @@ export declare class Assistant {
36246
36257
  /**
36247
36258
  * Revoke a linked identity
36248
36259
  *
36249
- * Revokes the grant, disabling the Assistant for that identity. The grant is resolved on every inbound message, so the next one from that identity is refused before the agent is invoked — revocation is immediate, not eventual. The identity is free to link again afterwards.
36260
+ * Revokes the grant, disabling the Assistant for that identity. The grant is resolved on every inbound message, so the next one from that identity is refused before the agent is invoked — revocation is immediate, not eventual. Work the grant started (a paused generation) calls no tool on its next step. The identity is free to link again afterwards.
36250
36261
  *
36251
36262
  */
36252
36263
  static revokeAssistantGrant<ThrowOnError extends boolean = false>(options: Options<RevokeAssistantGrantData, ThrowOnError>): RequestResult<RevokeAssistantGrantResponses, RevokeAssistantGrantErrors, ThrowOnError>;
package/dist/index.mjs CHANGED
@@ -1596,7 +1596,8 @@ var ApiKeys = class {
1596
1596
  /**
1597
1597
  * Revoke an API key
1598
1598
  *
1599
- * Revokes an API key immediately. Subsequent use returns 401.
1599
+ * Revokes an API key immediately. Subsequent use returns 401, and work the key started (a paused generation) calls no tool on its next step.
1600
+ *
1600
1601
  */
1601
1602
  static deleteApiKey(options) {
1602
1603
  return (options.client ?? client).delete({
@@ -1731,7 +1732,7 @@ var Assistant = class {
1731
1732
  /**
1732
1733
  * Revoke a linked identity
1733
1734
  *
1734
- * Revokes the grant, disabling the Assistant for that identity. The grant is resolved on every inbound message, so the next one from that identity is refused before the agent is invoked — revocation is immediate, not eventual. The identity is free to link again afterwards.
1735
+ * Revokes the grant, disabling the Assistant for that identity. The grant is resolved on every inbound message, so the next one from that identity is refused before the agent is invoked — revocation is immediate, not eventual. Work the grant started (a paused generation) calls no tool on its next step. The identity is free to link again afterwards.
1735
1736
  *
1736
1737
  */
1737
1738
  static revokeAssistantGrant(options) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@naturali/sdk",
3
- "version": "0.250.3",
3
+ "version": "0.251.1",
4
4
  "description": "TypeScript SDK for the naturali.ai API, generated from its OpenAPI specs",
5
5
  "keywords": [
6
6
  "naturali",
@@ -38,7 +38,7 @@
38
38
  },
39
39
  "devDependencies": {
40
40
  "@hey-api/openapi-ts": "^0.99.0",
41
- "@naturali/api": "0.250.3",
41
+ "@naturali/api": "0.251.1",
42
42
  "@ttoss/openapi-codegen": "^0.10.1",
43
43
  "@types/node": "^26.5.1",
44
44
  "tsdown": "^0.23.0",