diff --git a/apps/notifications/swagger/swagger.json b/apps/notifications/swagger/swagger.json index 56fcb27232..0c5ab86c49 100644 --- a/apps/notifications/swagger/swagger.json +++ b/apps/notifications/swagger/swagger.json @@ -1942,19 +1942,7 @@ "conditions", "params" ] - } - ] - } - }, - "required": [ - "data" - ] - }, - "AlertOutputResponse": { - "type": "object", - "properties": { - "data": { - "oneOf": [ + }, { "type": "object", "properties": { @@ -1967,7 +1955,8 @@ "minLength": 3 }, "enabled": { - "type": "boolean" + "type": "boolean", + "default": true }, "summary": { "type": "string", @@ -1977,39 +1966,10 @@ "type": "string", "minLength": 3 }, - "id": { - "type": "string", - "format": "uuid" - }, - "userId": { + "type": { "type": "string", - "format": "uuid" - }, - "notificationChannelName": { - "type": "string" - }, - "status": { - "type": "string" - }, - "createdAt": {}, - "updatedAt": {}, - "params": { - "type": "object", - "properties": { - "dseq": { - "type": "string", - "pattern": "^\\d+$" - }, - "type": { - "type": "string" - }, - "suppressedBySystem": { - "type": "boolean" - } - }, - "required": [ - "dseq", - "type" + "enum": [ + "WALLET_BALANCE" ] }, "conditions": { @@ -2064,20 +2024,13 @@ ] }, "field": { - "type": "string" + "type": "string", + "enum": [ + "balance" + ] }, "value": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] + "type": "number" } }, "required": [ @@ -2143,20 +2096,13 @@ ] }, "field": { - "type": "string" + "type": "string", + "enum": [ + "balance" + ] }, "value": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] + "type": "number" } }, "required": [ @@ -2210,20 +2156,13 @@ ] }, "field": { - "type": "string" + "type": "string", + "enum": [ + "balance" + ] }, "value": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] + "type": "number" } }, "required": [ @@ -2234,28 +2173,47 @@ } ] }, - "type": { - "type": "string", - "enum": [ - "CHAIN_MESSAGE" + "params": { + "type": "object", + "properties": { + "owner": { + "type": "string" + }, + "denom": { + "type": "string" + }, + "suppressedBySystem": { + "type": "boolean" + } + }, + "required": [ + "owner", + "denom" ] } }, "required": [ "notificationChannelId", "name", - "enabled", "summary", "description", - "id", - "userId", - "status", - "createdAt", - "updatedAt", + "type", "conditions", - "type" + "params" ] - }, + } + ] + } + }, + "required": [ + "data" + ] + }, + "AlertOutputResponse": { + "type": "object", + "properties": { + "data": { + "oneOf": [ { "type": "object", "properties": { @@ -2294,10 +2252,23 @@ }, "createdAt": {}, "updatedAt": {}, - "type": { - "type": "string", - "enum": [ - "DEPLOYMENT_BALANCE" + "params": { + "type": "object", + "properties": { + "dseq": { + "type": "string", + "pattern": "^\\d+$" + }, + "type": { + "type": "string" + }, + "suppressedBySystem": { + "type": "boolean" + } + }, + "required": [ + "dseq", + "type" ] }, "conditions": { @@ -2352,13 +2323,20 @@ ] }, "field": { - "type": "string", - "enum": [ - "balance" - ] + "type": "string" }, "value": { - "type": "number" + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + } + ] } }, "required": [ @@ -2424,13 +2402,20 @@ ] }, "field": { - "type": "string", - "enum": [ - "balance" - ] + "type": "string" }, "value": { - "type": "number" + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + } + ] } }, "required": [ @@ -2484,13 +2469,20 @@ ] }, "field": { - "type": "string", - "enum": [ - "balance" - ] + "type": "string" }, "value": { - "type": "number" + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + } + ] } }, "required": [ @@ -2501,23 +2493,10 @@ } ] }, - "params": { - "type": "object", - "properties": { - "dseq": { - "type": "string", - "pattern": "^\\d+$" - }, - "owner": { - "type": "string" - }, - "suppressedBySystem": { - "type": "boolean" - } - }, - "required": [ - "dseq", - "owner" + "type": { + "type": "string", + "enum": [ + "CHAIN_MESSAGE" ] } }, @@ -2532,9 +2511,8 @@ "status", "createdAt", "updatedAt", - "type", "conditions", - "params" + "type" ] }, { @@ -2816,126 +2794,988 @@ } ] }, - "type": { - "type": "string", - "enum": [ - "CHAIN_EVENT" - ] - } + "type": { + "type": "string", + "enum": [ + "CHAIN_EVENT" + ] + } + }, + "required": [ + "notificationChannelId", + "name", + "enabled", + "summary", + "description", + "id", + "userId", + "status", + "createdAt", + "updatedAt", + "conditions", + "type" + ] + }, + { + "type": "object", + "properties": { + "notificationChannelId": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string", + "minLength": 3 + }, + "enabled": { + "type": "boolean" + }, + "summary": { + "type": "string", + "minLength": 3 + }, + "description": { + "type": "string", + "minLength": 3 + }, + "id": { + "type": "string", + "format": "uuid" + }, + "userId": { + "type": "string", + "format": "uuid" + }, + "notificationChannelName": { + "type": "string" + }, + "status": { + "type": "string" + }, + "createdAt": {}, + "updatedAt": {}, + "type": { + "type": "string", + "enum": [ + "DEPLOYMENT_BALANCE" + ] + }, + "conditions": { + "oneOf": [ + { + "type": "object", + "properties": { + "operator": { + "type": "string", + "enum": [ + "and" + ] + }, + "value": { + "type": "array", + "minItems": 2, + "items": { + "type": "object", + "properties": { + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "eq" + ] + }, + { + "type": "string", + "enum": [ + "lt" + ] + }, + { + "type": "string", + "enum": [ + "gt" + ] + }, + { + "type": "string", + "enum": [ + "lte" + ] + }, + { + "type": "string", + "enum": [ + "gte" + ] + } + ] + }, + "field": { + "type": "string", + "enum": [ + "balance" + ] + }, + "value": { + "type": "number" + } + }, + "required": [ + "operator", + "field", + "value" + ] + } + } + }, + "required": [ + "operator", + "value" + ] + }, + { + "type": "object", + "properties": { + "operator": { + "type": "string", + "enum": [ + "or" + ] + }, + "value": { + "type": "array", + "minItems": 2, + "items": { + "type": "object", + "properties": { + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "eq" + ] + }, + { + "type": "string", + "enum": [ + "lt" + ] + }, + { + "type": "string", + "enum": [ + "gt" + ] + }, + { + "type": "string", + "enum": [ + "lte" + ] + }, + { + "type": "string", + "enum": [ + "gte" + ] + } + ] + }, + "field": { + "type": "string", + "enum": [ + "balance" + ] + }, + "value": { + "type": "number" + } + }, + "required": [ + "operator", + "field", + "value" + ] + } + } + }, + "required": [ + "operator", + "value" + ] + }, + { + "type": "object", + "properties": { + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "eq" + ] + }, + { + "type": "string", + "enum": [ + "lt" + ] + }, + { + "type": "string", + "enum": [ + "gt" + ] + }, + { + "type": "string", + "enum": [ + "lte" + ] + }, + { + "type": "string", + "enum": [ + "gte" + ] + } + ] + }, + "field": { + "type": "string", + "enum": [ + "balance" + ] + }, + "value": { + "type": "number" + } + }, + "required": [ + "operator", + "field", + "value" + ] + } + ] + }, + "params": { + "type": "object", + "properties": { + "dseq": { + "type": "string", + "pattern": "^\\d+$" + }, + "owner": { + "type": "string" + }, + "suppressedBySystem": { + "type": "boolean" + } + }, + "required": [ + "dseq", + "owner" + ] + } + }, + "required": [ + "notificationChannelId", + "name", + "enabled", + "summary", + "description", + "id", + "userId", + "status", + "createdAt", + "updatedAt", + "type", + "conditions", + "params" + ] + }, + { + "type": "object", + "properties": { + "notificationChannelId": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string", + "minLength": 3 + }, + "enabled": { + "type": "boolean" + }, + "summary": { + "type": "string", + "minLength": 3 + }, + "description": { + "type": "string", + "minLength": 3 + }, + "id": { + "type": "string", + "format": "uuid" + }, + "userId": { + "type": "string", + "format": "uuid" + }, + "notificationChannelName": { + "type": "string" + }, + "status": { + "type": "string" + }, + "createdAt": {}, + "updatedAt": {}, + "type": { + "type": "string", + "enum": [ + "WALLET_BALANCE" + ] + }, + "conditions": { + "oneOf": [ + { + "type": "object", + "properties": { + "operator": { + "type": "string", + "enum": [ + "and" + ] + }, + "value": { + "type": "array", + "minItems": 2, + "items": { + "type": "object", + "properties": { + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "eq" + ] + }, + { + "type": "string", + "enum": [ + "lt" + ] + }, + { + "type": "string", + "enum": [ + "gt" + ] + }, + { + "type": "string", + "enum": [ + "lte" + ] + }, + { + "type": "string", + "enum": [ + "gte" + ] + } + ] + }, + "field": { + "type": "string", + "enum": [ + "balance" + ] + }, + "value": { + "type": "number" + } + }, + "required": [ + "operator", + "field", + "value" + ] + } + } + }, + "required": [ + "operator", + "value" + ] + }, + { + "type": "object", + "properties": { + "operator": { + "type": "string", + "enum": [ + "or" + ] + }, + "value": { + "type": "array", + "minItems": 2, + "items": { + "type": "object", + "properties": { + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "eq" + ] + }, + { + "type": "string", + "enum": [ + "lt" + ] + }, + { + "type": "string", + "enum": [ + "gt" + ] + }, + { + "type": "string", + "enum": [ + "lte" + ] + }, + { + "type": "string", + "enum": [ + "gte" + ] + } + ] + }, + "field": { + "type": "string", + "enum": [ + "balance" + ] + }, + "value": { + "type": "number" + } + }, + "required": [ + "operator", + "field", + "value" + ] + } + } + }, + "required": [ + "operator", + "value" + ] + }, + { + "type": "object", + "properties": { + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "eq" + ] + }, + { + "type": "string", + "enum": [ + "lt" + ] + }, + { + "type": "string", + "enum": [ + "gt" + ] + }, + { + "type": "string", + "enum": [ + "lte" + ] + }, + { + "type": "string", + "enum": [ + "gte" + ] + } + ] + }, + "field": { + "type": "string", + "enum": [ + "balance" + ] + }, + "value": { + "type": "number" + } + }, + "required": [ + "operator", + "field", + "value" + ] + } + ] + }, + "params": { + "type": "object", + "properties": { + "owner": { + "type": "string" + }, + "denom": { + "type": "string" + }, + "suppressedBySystem": { + "type": "boolean" + } + }, + "required": [ + "owner", + "denom" + ] + } + }, + "required": [ + "notificationChannelId", + "name", + "enabled", + "summary", + "description", + "id", + "userId", + "status", + "createdAt", + "updatedAt", + "type", + "conditions", + "params" + ] + } + ] + } + }, + "required": [ + "data" + ] + }, + "ValidationErrorResponse": { + "type": "object", + "properties": { + "statusCode": { + "type": "number", + "minimum": 400, + "maximum": 400 + }, + "message": { + "type": "string" + }, + "errors": { + "type": "object", + "properties": { + "issues": { + "type": "array", + "items": { + "type": "object", + "properties": {} + } + } + }, + "required": [ + "issues" + ] + } + }, + "required": [ + "statusCode", + "message", + "errors" + ] + }, + "UnauthorizedErrorResponse": { + "type": "object", + "properties": { + "statusCode": { + "type": "number", + "minimum": 401, + "maximum": 401 + }, + "message": { + "type": "string" + } + }, + "required": [ + "statusCode", + "message" + ] + }, + "ForbiddenErrorResponse": { + "type": "object", + "properties": { + "statusCode": { + "type": "number", + "minimum": 403, + "maximum": 403 + }, + "message": { + "type": "string" + } + }, + "required": [ + "statusCode", + "message" + ] + }, + "InternalServerErrorResponse": { + "type": "object", + "properties": { + "statusCode": { + "type": "number", + "minimum": 500, + "maximum": 500 + }, + "message": { + "type": "string" + } + }, + "required": [ + "statusCode", + "message" + ] + }, + "AlertListOutputResponse": { + "type": "object", + "properties": { + "data": { + "type": "array", + "items": { + "oneOf": [ + { + "type": "object", + "properties": { + "notificationChannelId": { + "type": "string", + "format": "uuid" + }, + "name": { + "type": "string", + "minLength": 3 + }, + "enabled": { + "type": "boolean" + }, + "summary": { + "type": "string", + "minLength": 3 + }, + "description": { + "type": "string", + "minLength": 3 + }, + "id": { + "type": "string", + "format": "uuid" + }, + "userId": { + "type": "string", + "format": "uuid" + }, + "notificationChannelName": { + "type": "string" + }, + "status": { + "type": "string" + }, + "createdAt": {}, + "updatedAt": {}, + "params": { + "type": "object", + "properties": { + "dseq": { + "type": "string", + "pattern": "^\\d+$" + }, + "type": { + "type": "string" + }, + "suppressedBySystem": { + "type": "boolean" + } + }, + "required": [ + "dseq", + "type" + ] + }, + "conditions": { + "oneOf": [ + { + "type": "object", + "properties": { + "operator": { + "type": "string", + "enum": [ + "and" + ] + }, + "value": { + "type": "array", + "minItems": 2, + "items": { + "type": "object", + "properties": { + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "eq" + ] + }, + { + "type": "string", + "enum": [ + "lt" + ] + }, + { + "type": "string", + "enum": [ + "gt" + ] + }, + { + "type": "string", + "enum": [ + "lte" + ] + }, + { + "type": "string", + "enum": [ + "gte" + ] + } + ] + }, + "field": { + "type": "string" + }, + "value": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + } + ] + } + }, + "required": [ + "operator", + "field", + "value" + ] + } + } + }, + "required": [ + "operator", + "value" + ] + }, + { + "type": "object", + "properties": { + "operator": { + "type": "string", + "enum": [ + "or" + ] + }, + "value": { + "type": "array", + "minItems": 2, + "items": { + "type": "object", + "properties": { + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "eq" + ] + }, + { + "type": "string", + "enum": [ + "lt" + ] + }, + { + "type": "string", + "enum": [ + "gt" + ] + }, + { + "type": "string", + "enum": [ + "lte" + ] + }, + { + "type": "string", + "enum": [ + "gte" + ] + } + ] + }, + "field": { + "type": "string" + }, + "value": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + } + ] + } + }, + "required": [ + "operator", + "field", + "value" + ] + } + } + }, + "required": [ + "operator", + "value" + ] + }, + { + "type": "object", + "properties": { + "operator": { + "oneOf": [ + { + "type": "string", + "enum": [ + "eq" + ] + }, + { + "type": "string", + "enum": [ + "lt" + ] + }, + { + "type": "string", + "enum": [ + "gt" + ] + }, + { + "type": "string", + "enum": [ + "lte" + ] + }, + { + "type": "string", + "enum": [ + "gte" + ] + } + ] + }, + "field": { + "type": "string" + }, + "value": { + "oneOf": [ + { + "type": "string" + }, + { + "type": "number" + }, + { + "type": "boolean" + } + ] + } + }, + "required": [ + "operator", + "field", + "value" + ] + } + ] + }, + "type": { + "type": "string", + "enum": [ + "CHAIN_MESSAGE" + ] + } + }, + "required": [ + "notificationChannelId", + "name", + "enabled", + "summary", + "description", + "id", + "userId", + "status", + "createdAt", + "updatedAt", + "conditions", + "type" + ] }, - "required": [ - "notificationChannelId", - "name", - "enabled", - "summary", - "description", - "id", - "userId", - "status", - "createdAt", - "updatedAt", - "conditions", - "type" - ] - } - ] - } - }, - "required": [ - "data" - ] - }, - "ValidationErrorResponse": { - "type": "object", - "properties": { - "statusCode": { - "type": "number", - "minimum": 400, - "maximum": 400 - }, - "message": { - "type": "string" - }, - "errors": { - "type": "object", - "properties": { - "issues": { - "type": "array", - "items": { - "type": "object", - "properties": {} - } - } - }, - "required": [ - "issues" - ] - } - }, - "required": [ - "statusCode", - "message", - "errors" - ] - }, - "UnauthorizedErrorResponse": { - "type": "object", - "properties": { - "statusCode": { - "type": "number", - "minimum": 401, - "maximum": 401 - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "message" - ] - }, - "ForbiddenErrorResponse": { - "type": "object", - "properties": { - "statusCode": { - "type": "number", - "minimum": 403, - "maximum": 403 - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "message" - ] - }, - "InternalServerErrorResponse": { - "type": "object", - "properties": { - "statusCode": { - "type": "number", - "minimum": 500, - "maximum": 500 - }, - "message": { - "type": "string" - } - }, - "required": [ - "statusCode", - "message" - ] - }, - "AlertListOutputResponse": { - "type": "object", - "properties": { - "data": { - "type": "array", - "items": { - "oneOf": [ { "type": "object", "properties": { @@ -3218,7 +4058,7 @@ "type": { "type": "string", "enum": [ - "CHAIN_MESSAGE" + "CHAIN_EVENT" ] } }, @@ -3556,23 +4396,10 @@ }, "createdAt": {}, "updatedAt": {}, - "params": { - "type": "object", - "properties": { - "dseq": { - "type": "string", - "pattern": "^\\d+$" - }, - "type": { - "type": "string" - }, - "suppressedBySystem": { - "type": "boolean" - } - }, - "required": [ - "dseq", - "type" + "type": { + "type": "string", + "enum": [ + "WALLET_BALANCE" ] }, "conditions": { @@ -3627,20 +4454,13 @@ ] }, "field": { - "type": "string" + "type": "string", + "enum": [ + "balance" + ] }, "value": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] + "type": "number" } }, "required": [ @@ -3706,20 +4526,13 @@ ] }, "field": { - "type": "string" + "type": "string", + "enum": [ + "balance" + ] }, "value": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] + "type": "number" } }, "required": [ @@ -3773,20 +4586,13 @@ ] }, "field": { - "type": "string" + "type": "string", + "enum": [ + "balance" + ] }, "value": { - "oneOf": [ - { - "type": "string" - }, - { - "type": "number" - }, - { - "type": "boolean" - } - ] + "type": "number" } }, "required": [ @@ -3797,10 +4603,22 @@ } ] }, - "type": { - "type": "string", - "enum": [ - "CHAIN_EVENT" + "params": { + "type": "object", + "properties": { + "owner": { + "type": "string" + }, + "denom": { + "type": "string" + }, + "suppressedBySystem": { + "type": "boolean" + } + }, + "required": [ + "owner", + "denom" ] } }, @@ -3815,8 +4633,9 @@ "status", "createdAt", "updatedAt", + "type", "conditions", - "type" + "params" ] } ] diff --git a/packages/react-query-sdk/src/notifications/schema.ts b/packages/react-query-sdk/src/notifications/schema.ts index 8027bba133..ad6900cb57 100644 --- a/packages/react-query-sdk/src/notifications/schema.ts +++ b/packages/react-query-sdk/src/notifications/schema.ts @@ -244,6 +244,49 @@ export interface components { owner: string; suppressedBySystem?: boolean; }; + } + | { + /** Format: uuid */ + notificationChannelId: string; + name: string; + /** @default true */ + enabled: boolean; + summary: string; + description: string; + /** @enum {string} */ + type: "WALLET_BALANCE"; + conditions: + | { + /** @enum {string} */ + operator: "and"; + value: { + operator: "eq" | "lt" | "gt" | "lte" | "gte"; + /** @enum {string} */ + field: "balance"; + value: number; + }[]; + } + | { + /** @enum {string} */ + operator: "or"; + value: { + operator: "eq" | "lt" | "gt" | "lte" | "gte"; + /** @enum {string} */ + field: "balance"; + value: number; + }[]; + } + | { + operator: "eq" | "lt" | "gt" | "lte" | "gte"; + /** @enum {string} */ + field: "balance"; + value: number; + }; + params: { + owner: string; + denom: string; + suppressedBySystem?: boolean; + }; }; }; AlertOutputResponse: { @@ -295,6 +338,53 @@ export interface components { /** @enum {string} */ type: "CHAIN_MESSAGE"; } + | { + /** Format: uuid */ + notificationChannelId: string; + name: string; + enabled: boolean; + summary: string; + description: string; + /** Format: uuid */ + id: string; + /** Format: uuid */ + userId: string; + notificationChannelName?: string; + status: string; + createdAt: unknown; + updatedAt: unknown; + params?: { + dseq: string; + type: string; + suppressedBySystem?: boolean; + }; + conditions: + | { + /** @enum {string} */ + operator: "and"; + value: { + operator: "eq" | "lt" | "gt" | "lte" | "gte"; + field: string; + value: string | number | boolean; + }[]; + } + | { + /** @enum {string} */ + operator: "or"; + value: { + operator: "eq" | "lt" | "gt" | "lte" | "gte"; + field: string; + value: string | number | boolean; + }[]; + } + | { + operator: "eq" | "lt" | "gt" | "lte" | "gte"; + field: string; + value: string | number | boolean; + }; + /** @enum {string} */ + type: "CHAIN_EVENT"; + } | { /** Format: uuid */ notificationChannelId: string; @@ -360,19 +450,17 @@ export interface components { status: string; createdAt: unknown; updatedAt: unknown; - params?: { - dseq: string; - type: string; - suppressedBySystem?: boolean; - }; + /** @enum {string} */ + type: "WALLET_BALANCE"; conditions: | { /** @enum {string} */ operator: "and"; value: { operator: "eq" | "lt" | "gt" | "lte" | "gte"; - field: string; - value: string | number | boolean; + /** @enum {string} */ + field: "balance"; + value: number; }[]; } | { @@ -380,17 +468,22 @@ export interface components { operator: "or"; value: { operator: "eq" | "lt" | "gt" | "lte" | "gte"; - field: string; - value: string | number | boolean; + /** @enum {string} */ + field: "balance"; + value: number; }[]; } | { operator: "eq" | "lt" | "gt" | "lte" | "gte"; - field: string; - value: string | number | boolean; + /** @enum {string} */ + field: "balance"; + value: number; }; - /** @enum {string} */ - type: "CHAIN_EVENT"; + params: { + owner: string; + denom: string; + suppressedBySystem?: boolean; + }; }; }; ValidationErrorResponse: { @@ -461,6 +554,53 @@ export interface components { /** @enum {string} */ type: "CHAIN_MESSAGE"; } + | { + /** Format: uuid */ + notificationChannelId: string; + name: string; + enabled: boolean; + summary: string; + description: string; + /** Format: uuid */ + id: string; + /** Format: uuid */ + userId: string; + notificationChannelName?: string; + status: string; + createdAt: unknown; + updatedAt: unknown; + params?: { + dseq: string; + type: string; + suppressedBySystem?: boolean; + }; + conditions: + | { + /** @enum {string} */ + operator: "and"; + value: { + operator: "eq" | "lt" | "gt" | "lte" | "gte"; + field: string; + value: string | number | boolean; + }[]; + } + | { + /** @enum {string} */ + operator: "or"; + value: { + operator: "eq" | "lt" | "gt" | "lte" | "gte"; + field: string; + value: string | number | boolean; + }[]; + } + | { + operator: "eq" | "lt" | "gt" | "lte" | "gte"; + field: string; + value: string | number | boolean; + }; + /** @enum {string} */ + type: "CHAIN_EVENT"; + } | { /** Format: uuid */ notificationChannelId: string; @@ -526,19 +666,17 @@ export interface components { status: string; createdAt: unknown; updatedAt: unknown; - params?: { - dseq: string; - type: string; - suppressedBySystem?: boolean; - }; + /** @enum {string} */ + type: "WALLET_BALANCE"; conditions: | { /** @enum {string} */ operator: "and"; value: { operator: "eq" | "lt" | "gt" | "lte" | "gte"; - field: string; - value: string | number | boolean; + /** @enum {string} */ + field: "balance"; + value: number; }[]; } | { @@ -546,17 +684,22 @@ export interface components { operator: "or"; value: { operator: "eq" | "lt" | "gt" | "lte" | "gte"; - field: string; - value: string | number | boolean; + /** @enum {string} */ + field: "balance"; + value: number; }[]; } | { operator: "eq" | "lt" | "gt" | "lte" | "gte"; - field: string; - value: string | number | boolean; + /** @enum {string} */ + field: "balance"; + value: number; }; - /** @enum {string} */ - type: "CHAIN_EVENT"; + params: { + owner: string; + denom: string; + suppressedBySystem?: boolean; + }; } )[]; pagination: {