Skip to content

Commit 9dfc795

Browse files
Update OpenAPI specification for private preview
1 parent 73c0c3b commit 9dfc795

File tree

2 files changed

+35
-19
lines changed

2 files changed

+35
-19
lines changed

openapi/spec3.private_preview.sdk.json

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -83150,14 +83150,17 @@
8315083150
"type": "integer"
8315183151
},
8315283152
"customer": {
83153-
"description": "The ID of the Stripe customer the customer evaluation is associated with.",
83153+
"description": "The ID of the Customer to associate with this CustomerEvaluation.",
8315483154
"maxLength": 5000,
8315583155
"type": "string"
8315683156
},
8315783157
"event_type": {
8315883158
"description": "The type of evaluation event.",
83159-
"maxLength": 5000,
83160-
"type": "string"
83159+
"type": "string",
83160+
"enum": [
83161+
"login",
83162+
"registration"
83163+
]
8316183164
},
8316283165
"events": {
8316383166
"description": "A list of events that have been reported on this customer evaluation.",
@@ -83189,7 +83192,7 @@
8318983192
"$ref": "#/components/schemas/radar_customer_evaluation_resource_customer_evaluation_signals"
8319083193
}
8319183194
],
83192-
"description": "A hash of signal objects providing Radar's evaluation for the lifecycle event.",
83195+
"description": "A hash of signal objects providing Radar's evaluation of the customer.",
8319383196
"nullable": true
8319483197
}
8319583198
},
@@ -84063,11 +84066,18 @@
8406384066
},
8406484067
"risk_level": {
8406584068
"description": "The risk level for this signal.",
84066-
"maxLength": 5000,
84067-
"type": "string"
84069+
"type": "string",
84070+
"enum": [
84071+
"elevated",
84072+
"highest",
84073+
"low",
84074+
"normal",
84075+
"not_assessed",
84076+
"unknown"
84077+
]
8406884078
},
8406984079
"score": {
84070-
"description": "Score for this signal (float between 0.0-100.0).",
84080+
"description": "Score for this signal (between 0.0 and 100.0).",
8407184081
"type": "number"
8407284082
}
8407384083
},
@@ -261887,7 +261897,7 @@
261887261897
"description": "Customer details context.",
261888261898
"properties": {
261889261899
"customer": {
261890-
"description": "Stripe customer ID",
261900+
"description": "The ID of an existing Customer.",
261891261901
"type": "string"
261892261902
},
261893261903
"customer_data": {
@@ -262097,7 +262107,7 @@
262097262107
"description": "Event payload for registration_success.",
262098262108
"properties": {
262099262109
"customer": {
262100-
"description": "Stripe customer ID to attach to an entity-less registration evaluation.",
262110+
"description": "The ID of a Customer to attach to an entity-less registration evaluation.",
262101262111
"type": "string"
262102262112
}
262103262113
},

openapi/spec3.private_preview.sdk.yaml

Lines changed: 16 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -75482,15 +75482,15 @@ components:
7548275482
format: unix-time
7548375483
type: integer
7548475484
customer:
75485-
description: >-
75486-
The ID of the Stripe customer the customer evaluation is associated
75487-
with.
75485+
description: The ID of the Customer to associate with this CustomerEvaluation.
7548875486
maxLength: 5000
7548975487
type: string
7549075488
event_type:
7549175489
description: The type of evaluation event.
75492-
maxLength: 5000
7549375490
type: string
75491+
enum:
75492+
- login
75493+
- registration
7549475494
events:
7549575495
description: >-
7549675496
A list of events that have been reported on this customer
@@ -75521,8 +75521,8 @@ components:
7552175521
- $ref: >-
7552275522
#/components/schemas/radar_customer_evaluation_resource_customer_evaluation_signals
7552375523
description: >-
75524-
A hash of signal objects providing Radar's evaluation for the
75525-
lifecycle event.
75524+
A hash of signal objects providing Radar's evaluation of the
75525+
customer.
7552675526
nullable: true
7552775527
required:
7552875528
- created_at
@@ -76295,10 +76295,16 @@ components:
7629576295
type: integer
7629676296
risk_level:
7629776297
description: The risk level for this signal.
76298-
maxLength: 5000
7629976298
type: string
76299+
enum:
76300+
- elevated
76301+
- highest
76302+
- low
76303+
- normal
76304+
- not_assessed
76305+
- unknown
7630076306
score:
76301-
description: Score for this signal (float between 0.0-100.0).
76307+
description: Score for this signal (between 0.0 and 100.0).
7630276308
type: number
7630376309
required:
7630476310
- evaluated_at
@@ -245056,7 +245062,7 @@ paths:
245056245062
description: Customer details context.
245057245063
properties:
245058245064
customer:
245059-
description: Stripe customer ID
245065+
description: The ID of an existing Customer.
245060245066
type: string
245061245067
customer_data:
245062245068
description: Customer data
@@ -245205,7 +245211,7 @@ paths:
245205245211
properties:
245206245212
customer:
245207245213
description: >-
245208-
Stripe customer ID to attach to an entity-less
245214+
The ID of a Customer to attach to an entity-less
245209245215
registration evaluation.
245210245216
type: string
245211245217
title: registration_success

0 commit comments

Comments
 (0)