Skip to content

Commit c8d5d65

Browse files
chore: Generate the JSON Schema
1 parent d706482 commit c8d5d65

File tree

7 files changed

+795
-0
lines changed

7 files changed

+795
-0
lines changed

README.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,12 @@ This repository contains definitions for the following CloudEvent data payloads:
153153
|Workflows|[Proto](proto/google/events/cloud/workflows/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/cloud/workflows/v1/WorkflowEventData.json)|<br>Data Type:<br>`google.events.cloud.workflows.v1.WorkflowEventData`<br>CloudEvent Type(s):<br>`google.cloud.workflows.workflow.v1.created`<br/>`google.cloud.workflows.workflow.v1.deleted`<br/>`google.cloud.workflows.workflow.v1.updated`|
154154
|Google Analytics for Firebase|[Proto](proto/google/events/firebase/analytics/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/analytics/v1/AnalyticsLogData.json)|<br>Data Type:<br>`google.events.firebase.analytics.v1.AnalyticsLogData`<br>CloudEvent Type(s):<br>`google.firebase.analytics.log.v1.written`|
155155
|Firebase Authentication|[Proto](proto/google/events/firebase/auth/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/auth/v1/AuthEventData.json)|<br>Data Type:<br>`google.events.firebase.auth.v1.AuthEventData`<br>CloudEvent Type(s):<br>`google.firebase.auth.user.v1.created`<br/>`google.firebase.auth.user.v1.deleted`|
156+
|Firebase Authentication|[Proto](proto/google/events/firebase/auth/v2/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/auth/v2/AuthEventData.json)|<br>Data Type:<br>`google.events.firebase.auth.v2.AuthEventData`<br>CloudEvent Type(s):<br>`google.firebase.auth.user.v2.created`<br/>`google.firebase.auth.user.v2.updated`<br/>`google.firebase.auth.user.v2.deleted`|
156157
|Firebase Realtime Database|[Proto](proto/google/events/firebase/database/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/database/v1/ReferenceEventData.json)|<br>Data Type:<br>`google.events.firebase.database.v1.ReferenceEventData`<br>CloudEvent Type(s):<br>`google.firebase.database.ref.v1.created`<br/>`google.firebase.database.ref.v1.updated`<br/>`google.firebase.database.ref.v1.deleted`<br/>`google.firebase.database.ref.v1.written`|
158+
|Firebase Data Connect|[Proto](proto/google/events/firebase/dataconnect/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/ConnectorEventData.json)|<br>Data Type:<br>`google.events.firebase.dataconnect.v1.ConnectorEventData`<br>CloudEvent Type(s):<br>`google.firebase.dataconnect.connector.v1.created`<br/>`google.firebase.dataconnect.connector.v1.updated`<br/>`google.firebase.dataconnect.connector.v1.deleted`|
159+
|Firebase Data Connect|[Proto](proto/google/events/firebase/dataconnect/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/MutationEventData.json)|<br>Data Type:<br>`google.events.firebase.dataconnect.v1.MutationEventData`<br>CloudEvent Type(s):<br>`google.firebase.dataconnect.connector.v1.mutationExecuted`|
160+
|Firebase Data Connect|[Proto](proto/google/events/firebase/dataconnect/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/SchemaEventData.json)|<br>Data Type:<br>`google.events.firebase.dataconnect.v1.SchemaEventData`<br>CloudEvent Type(s):<br>`google.firebase.dataconnect.schema.v1.created`<br/>`google.firebase.dataconnect.schema.v1.updated`<br/>`google.firebase.dataconnect.schema.v1.deleted`|
161+
|Firebase Data Connect|[Proto](proto/google/events/firebase/dataconnect/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/ServiceEventData.json)|<br>Data Type:<br>`google.events.firebase.dataconnect.v1.ServiceEventData`<br>CloudEvent Type(s):<br>`google.firebase.dataconnect.service.v1.created`<br/>`google.firebase.dataconnect.service.v1.updated`<br/>`google.firebase.dataconnect.service.v1.deleted`|
157162
|Firebase Alerts|[Proto](proto/google/events/firebase/firebasealerts/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/firebasealerts/v1/AlertData.json)|<br>Data Type:<br>`google.events.firebase.firebasealerts.v1.AlertData`<br>CloudEvent Type(s):<br>`google.firebase.firebasealerts.alerts.v1.published`|
158163
|Firebase Remote Config|[Proto](proto/google/events/firebase/remoteconfig/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/remoteconfig/v1/RemoteConfigEventData.json)|<br>Data Type:<br>`google.events.firebase.remoteconfig.v1.RemoteConfigEventData`<br>CloudEvent Type(s):<br>`google.firebase.remoteconfig.remoteConfig.v1.updated`|
159164
|Firebase Test Lab|[Proto](proto/google/events/firebase/testlab/v1/data.proto) / [JSON](https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/testlab/v1/TestMatrixEventData.json)|<br>Data Type:<br>`google.events.firebase.testlab.v1.TestMatrixEventData`<br>CloudEvent Type(s):<br>`google.firebase.testlab.testMatrix.v1.completed`|

jsonschema/catalog.json

Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1506,6 +1506,18 @@
15061506
"google.firebase.auth.user.v1.deleted"
15071507
]
15081508
},
1509+
{
1510+
"url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/auth/v2/AuthEventData.json",
1511+
"product": "Firebase Authentication",
1512+
"name": "AuthEventData",
1513+
"description": "The data within all Firebase Auth events.",
1514+
"datatype": "google.events.firebase.auth.v2.AuthEventData",
1515+
"cloudeventTypes": [
1516+
"google.firebase.auth.user.v2.created",
1517+
"google.firebase.auth.user.v2.updated",
1518+
"google.firebase.auth.user.v2.deleted"
1519+
]
1520+
},
15091521
{
15101522
"url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/database/v1/ReferenceEventData.json",
15111523
"product": "Firebase Realtime Database",
@@ -1519,6 +1531,52 @@
15191531
"google.firebase.database.ref.v1.written"
15201532
]
15211533
},
1534+
{
1535+
"url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/ConnectorEventData.json",
1536+
"product": "Firebase Data Connect",
1537+
"name": "ConnectorEventData",
1538+
"description": "The data within all Connector events.",
1539+
"datatype": "google.events.firebase.dataconnect.v1.ConnectorEventData",
1540+
"cloudeventTypes": [
1541+
"google.firebase.dataconnect.connector.v1.created",
1542+
"google.firebase.dataconnect.connector.v1.updated",
1543+
"google.firebase.dataconnect.connector.v1.deleted"
1544+
]
1545+
},
1546+
{
1547+
"url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/MutationEventData.json",
1548+
"product": "Firebase Data Connect",
1549+
"name": "MutationEventData",
1550+
"description": "The data within all Mutation events.",
1551+
"datatype": "google.events.firebase.dataconnect.v1.MutationEventData",
1552+
"cloudeventTypes": [
1553+
"google.firebase.dataconnect.connector.v1.mutationExecuted"
1554+
]
1555+
},
1556+
{
1557+
"url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/SchemaEventData.json",
1558+
"product": "Firebase Data Connect",
1559+
"name": "SchemaEventData",
1560+
"description": "The data within all Schema events.",
1561+
"datatype": "google.events.firebase.dataconnect.v1.SchemaEventData",
1562+
"cloudeventTypes": [
1563+
"google.firebase.dataconnect.schema.v1.created",
1564+
"google.firebase.dataconnect.schema.v1.updated",
1565+
"google.firebase.dataconnect.schema.v1.deleted"
1566+
]
1567+
},
1568+
{
1569+
"url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/ServiceEventData.json",
1570+
"product": "Firebase Data Connect",
1571+
"name": "ServiceEventData",
1572+
"description": "The data within all Service events.",
1573+
"datatype": "google.events.firebase.dataconnect.v1.ServiceEventData",
1574+
"cloudeventTypes": [
1575+
"google.firebase.dataconnect.service.v1.created",
1576+
"google.firebase.dataconnect.service.v1.updated",
1577+
"google.firebase.dataconnect.service.v1.deleted"
1578+
]
1579+
},
15221580
{
15231581
"url": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/firebasealerts/v1/AlertData.json",
15241582
"product": "Firebase Alerts",
Lines changed: 134 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,134 @@
1+
{
2+
"$id": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/auth/v2/AuthEventData.json",
3+
"name": "AuthEventData",
4+
"examples": [],
5+
"package": "google.events.firebase.auth.v2",
6+
"datatype": "google.events.firebase.auth.v2.AuthEventData",
7+
"cloudeventTypes": [
8+
"google.firebase.auth.user.v2.created",
9+
"google.firebase.auth.user.v2.updated",
10+
"google.firebase.auth.user.v2.deleted"
11+
],
12+
"product": "Firebase Authentication",
13+
"$schema": "http://json-schema.org/draft-04/schema#",
14+
"$ref": "#/definitions/AuthEventData",
15+
"definitions": {
16+
"AuthEventData": {
17+
"properties": {
18+
"value": {
19+
"$ref": "#/definitions/User",
20+
"additionalProperties": true,
21+
"description": "This is not populated for delete events."
22+
},
23+
"oldValue": {
24+
"$ref": "#/definitions/User",
25+
"additionalProperties": true,
26+
"description": "This is only populated for update and delete events."
27+
}
28+
},
29+
"additionalProperties": true,
30+
"type": "object",
31+
"title": "Auth Event Data",
32+
"description": "The data within all Firebase Auth events."
33+
},
34+
"User": {
35+
"properties": {
36+
"uid": {
37+
"type": "string",
38+
"description": "The user identifier in the Firebase app."
39+
},
40+
"email": {
41+
"type": "string",
42+
"description": "The user's primary email, if set."
43+
},
44+
"emailVerified": {
45+
"type": "boolean",
46+
"description": "Whether or not the user's primary email is verified."
47+
},
48+
"displayName": {
49+
"type": "string",
50+
"description": "The user's display name."
51+
},
52+
"photoURL": {
53+
"type": "string",
54+
"description": "The user's photo URL."
55+
},
56+
"disabled": {
57+
"type": "boolean",
58+
"description": "Whether the user is disabled."
59+
},
60+
"metadata": {
61+
"$ref": "#/definitions/UserMetadata",
62+
"additionalProperties": true,
63+
"description": "Additional metadata about the user."
64+
},
65+
"providerData": {
66+
"items": {
67+
"$ref": "#/definitions/UserInfo"
68+
},
69+
"type": "array",
70+
"description": "User's info at the providers"
71+
},
72+
"phoneNumber": {
73+
"type": "string",
74+
"description": "The user's phone number."
75+
},
76+
"customClaims": {
77+
"additionalProperties": true,
78+
"type": "object",
79+
"description": "User's custom claims, typically used to define user roles and propagated to an authenticated user's ID token."
80+
}
81+
},
82+
"additionalProperties": true,
83+
"type": "object",
84+
"title": "User",
85+
"description": "The user for this Firebase Auth event."
86+
},
87+
"UserInfo": {
88+
"properties": {
89+
"uid": {
90+
"type": "string",
91+
"description": "The user identifier for the linked provider."
92+
},
93+
"email": {
94+
"type": "string",
95+
"description": "The email for the linked provider."
96+
},
97+
"displayName": {
98+
"type": "string",
99+
"description": "The display name for the linked provider."
100+
},
101+
"photoURL": {
102+
"type": "string",
103+
"description": "The photo URL for the linked provider."
104+
},
105+
"providerId": {
106+
"type": "string",
107+
"description": "The linked provider ID (e.g. \"google.com\" for the Google provider)."
108+
}
109+
},
110+
"additionalProperties": true,
111+
"type": "object",
112+
"title": "User Info",
113+
"description": "User's info at the identity provider"
114+
},
115+
"UserMetadata": {
116+
"properties": {
117+
"createTime": {
118+
"type": "string",
119+
"description": "The date the user was created.",
120+
"format": "date-time"
121+
},
122+
"lastSignInTime": {
123+
"type": "string",
124+
"description": "The date the user last signed in.",
125+
"format": "date-time"
126+
}
127+
},
128+
"additionalProperties": true,
129+
"type": "object",
130+
"title": "User Metadata",
131+
"description": "Additional metadata about the user."
132+
}
133+
}
134+
}
Lines changed: 118 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,118 @@
1+
{
2+
"$id": "https://googleapis.github.io/google-cloudevents/jsonschema/google/events/firebase/dataconnect/v1/ConnectorEventData.json",
3+
"name": "ConnectorEventData",
4+
"examples": [],
5+
"package": "google.events.firebase.dataconnect.v1",
6+
"datatype": "google.events.firebase.dataconnect.v1.ConnectorEventData",
7+
"cloudeventTypes": [
8+
"google.firebase.dataconnect.connector.v1.created",
9+
"google.firebase.dataconnect.connector.v1.updated",
10+
"google.firebase.dataconnect.connector.v1.deleted"
11+
],
12+
"product": "Firebase Data Connect",
13+
"$schema": "http://json-schema.org/draft-04/schema#",
14+
"$ref": "#/definitions/ConnectorEventData",
15+
"definitions": {
16+
"ConnectorEventData": {
17+
"properties": {
18+
"payload": {
19+
"$ref": "#/definitions/Connector",
20+
"additionalProperties": true,
21+
"description": "Optional. The Connector event payload. Unset for deletion events."
22+
}
23+
},
24+
"additionalProperties": true,
25+
"type": "object",
26+
"title": "Connector Event Data",
27+
"description": "The data within all Connector events."
28+
},
29+
"Connector": {
30+
"properties": {
31+
"name": {
32+
"type": "string",
33+
"description": "Identifier. The relative resource name of the connector, in the format: ``` projects/{project}/locations/{location}/services/{service}/connectors/{connector} ```"
34+
},
35+
"createTime": {
36+
"type": "string",
37+
"description": "Output only. [Output only] Create time stamp.",
38+
"format": "date-time"
39+
},
40+
"updateTime": {
41+
"type": "string",
42+
"description": "Output only. [Output only] Update time stamp.",
43+
"format": "date-time"
44+
},
45+
"labels": {
46+
"additionalProperties": {
47+
"type": "string"
48+
},
49+
"type": "object",
50+
"description": "Optional. Labels as key value pairs."
51+
},
52+
"annotations": {
53+
"additionalProperties": {
54+
"type": "string"
55+
},
56+
"type": "object",
57+
"description": "Optional. Stores small amounts of arbitrary data."
58+
},
59+
"source": {
60+
"$ref": "#/definitions/Source",
61+
"additionalProperties": true,
62+
"description": "Required. The source files that comprise the connector."
63+
},
64+
"uid": {
65+
"type": "string",
66+
"description": "Output only. System-assigned, unique identifier."
67+
},
68+
"reconciling": {
69+
"type": "boolean",
70+
"description": "Output only. A field that if true, indicates that the system is working to compile and deploy the connector."
71+
},
72+
"displayName": {
73+
"type": "string",
74+
"description": "Optional. Mutable human-readable name. 63 character limit."
75+
},
76+
"etag": {
77+
"type": "string",
78+
"description": "Output only. This checksum is computed by the server based on the value of other fields, and may be sent on update and delete requests to ensure the client has an up-to-date value before proceeding. [AIP-154](https://google.aip.dev/154)"
79+
}
80+
},
81+
"additionalProperties": true,
82+
"type": "object",
83+
"title": "Connector",
84+
"description": "Connector consists of a set of operations, i.e. queries and mutations."
85+
},
86+
"File": {
87+
"properties": {
88+
"path": {
89+
"type": "string",
90+
"description": "Required. The file name including folder path, if applicable. The path should be relative to a local workspace (e.g. dataconnect/(schema|connector)/*.gql) and not an absolute path (e.g. /absolute/path/(schema|connector)/*.gql)."
91+
},
92+
"content": {
93+
"type": "string",
94+
"description": "Required. The file's textual content."
95+
}
96+
},
97+
"additionalProperties": true,
98+
"type": "object",
99+
"title": "File",
100+
"description": "Individual files."
101+
},
102+
"Source": {
103+
"properties": {
104+
"files": {
105+
"items": {
106+
"$ref": "#/definitions/File"
107+
},
108+
"type": "array",
109+
"description": "Required. The files that comprise the source set."
110+
}
111+
},
112+
"additionalProperties": true,
113+
"type": "object",
114+
"title": "Source",
115+
"description": "Used to represent a set of source files."
116+
}
117+
}
118+
}

0 commit comments

Comments
 (0)