any_channel_json_schemas 0.0.0 → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/json_schemas/channelback_payload.json +10 -0
- data/json_schemas/event_callback_any.json +10 -0
- data/json_schemas/event_callback_base.json +28 -0
- data/json_schemas/event_callback_create_integration.json +12 -0
- data/json_schemas/event_callback_create_integration_instance.json +12 -0
- data/json_schemas/event_callback_destroy_integration.json +12 -0
- data/json_schemas/event_callback_destroy_integration_instance.json +12 -0
- data/json_schemas/event_callback_pull_request.json +14 -0
- data/json_schemas/event_callback_resources_created_from_external_ids.json +61 -0
- data/json_schemas/external_resource.json +46 -0
- data/json_schemas/manifest.json +33 -0
- data/json_schemas/pull_payload.json +10 -0
- data/json_schemas/push_parameters.json +9 -0
- metadata +14 -3
- data/any_channel_json_schemas.gemspec +0 -14
- data/json_schemas +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0821263b11ec6aaa6bc724dbd42bf8feb0fb6813
|
4
|
+
data.tar.gz: 671a0af6de074af4d13c14afceca9fcb75d43309
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 055eae9eb4a7027cd8d2674e8efb5e3db980bb88328763815d7d11de7aa59ad3c95b283341cbc0cc8f00c0c94a4d0b6378e28cf9b28bf923cb5c26ce8835a734
|
7
|
+
data.tar.gz: a8fdb6378cc4ab5854c9a2790fabf9efab5c24c1f50bdc4d6cc0a19f3678b03b273dabf8ee1b3f183ced41fc46602062b69ea67dcd76315d78ebe5e45eeb56a2
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"anyOf": [
|
3
|
+
{ "$ref": "event_callback_create_integration.json" },
|
4
|
+
{ "$ref": "event_callback_destroy_integration.json" },
|
5
|
+
{ "$ref": "event_callback_create_integration_instance.json" },
|
6
|
+
{ "$ref": "event_callback_destroy_integration_instance.json" },
|
7
|
+
{ "$ref": "event_callback_pull_request.json" },
|
8
|
+
{ "$ref": "event_callback_resources_created_from_external_ids.json" }
|
9
|
+
]
|
10
|
+
}
|
@@ -0,0 +1,28 @@
|
|
1
|
+
{
|
2
|
+
"$ref": "#/definitions/event_callback_base",
|
3
|
+
"definitions": {
|
4
|
+
"event_callback_base": {
|
5
|
+
"type": "object",
|
6
|
+
"required": ["type_id", "timestamp", "subdomain", "integration_name", "integration_id", "data"],
|
7
|
+
"properties": {
|
8
|
+
"type_id": {
|
9
|
+
"type": "string",
|
10
|
+
"enum": [
|
11
|
+
"create_integration",
|
12
|
+
"destroy_integration",
|
13
|
+
"create_integration_instance",
|
14
|
+
"destroy_integration_instance",
|
15
|
+
"pull_request",
|
16
|
+
"resources_created_from_external_ids"
|
17
|
+
]
|
18
|
+
},
|
19
|
+
"timestamp": {"type": "time"},
|
20
|
+
"subdomain": {"type": "string"},
|
21
|
+
"integration_name": {"type": "string"},
|
22
|
+
"integration_id": {"type": "string"},
|
23
|
+
"data": {"type": "object"},
|
24
|
+
"error": {"type": "string"}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
{
|
2
|
+
"$ref": "event_callback_base.json#/definitions/event_callback_base",
|
3
|
+
"properties": {
|
4
|
+
"data": {
|
5
|
+
"type": "object",
|
6
|
+
"required": ["integration_instance_name", "url", "request_id"],
|
7
|
+
"properties": {
|
8
|
+
"integration_instance_name": {"type": "string"},
|
9
|
+
"url": {"type": "string", "format": "https-url"},
|
10
|
+
"request_id": {"type": "string"}
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
}
|
@@ -0,0 +1,61 @@
|
|
1
|
+
{
|
2
|
+
"$ref": "event_callback_base.json#/definitions/event_callback_base",
|
3
|
+
"properties": {
|
4
|
+
"type_id": {"type": "string", "pattern": "^resources_created_from_external_ids$"},
|
5
|
+
"data": {
|
6
|
+
"type": "object",
|
7
|
+
"required": ["request_id", "resource_events"],
|
8
|
+
"properties": {
|
9
|
+
"request_id": {"type": "string"},
|
10
|
+
"resource_events": {
|
11
|
+
"type": "array",
|
12
|
+
"items": {
|
13
|
+
"anyOf": [
|
14
|
+
{"$ref": "#/definitions/comment_on_new_ticket"},
|
15
|
+
{"$ref": "#/definitions/comment_on_existing_ticket"},
|
16
|
+
{"$ref": "#/definitions/comment_on_new_follow_up_ticket"},
|
17
|
+
{"$ref": "#/definitions/external_id_associated_with_channelback"}
|
18
|
+
]
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
},
|
24
|
+
"definitions": {
|
25
|
+
"resource_created_from_external_id": {
|
26
|
+
"type": "object",
|
27
|
+
"required": ["type_id", "external_id", "comment_id", "ticket_id"],
|
28
|
+
"properties": {
|
29
|
+
"external_id": {"type": "string"},
|
30
|
+
"comment_id": {"type": "number"},
|
31
|
+
"ticket_id": {"type": "number"}
|
32
|
+
}
|
33
|
+
},
|
34
|
+
"comment_on_new_ticket": {
|
35
|
+
"$ref": "#/definitions/resource_created_from_external_id",
|
36
|
+
"properties": {
|
37
|
+
"type_id": {"type": "string", "pattern": "^comment_on_new_ticket$"}
|
38
|
+
}
|
39
|
+
},
|
40
|
+
"comment_on_existing_ticket": {
|
41
|
+
"$ref": "#/definitions/resource_created_from_external_id",
|
42
|
+
"properties": {
|
43
|
+
"type_id": {"type": "string", "pattern": "^comment_on_existing_ticket$"}
|
44
|
+
}
|
45
|
+
},
|
46
|
+
"comment_on_new_follow_up_ticket": {
|
47
|
+
"$ref": "#/definitions/resource_created_from_external_id",
|
48
|
+
"required": ["follow_up_ticket_id"],
|
49
|
+
"properties": {
|
50
|
+
"type_id": {"type": "string", "pattern": "^comment_on_follow_up_ticket$"},
|
51
|
+
"follow_up_ticket_id": {"type": "number"}
|
52
|
+
}
|
53
|
+
},
|
54
|
+
"external_id_associated_with_channelback": {
|
55
|
+
"$ref": "#/definitions/resource_created_from_external_id",
|
56
|
+
"properties": {
|
57
|
+
"type_id": {"type": "string", "pattern": "^external_id_associated_with_channelback$"}
|
58
|
+
}
|
59
|
+
}
|
60
|
+
}
|
61
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
{
|
2
|
+
"type": "object",
|
3
|
+
"required": ["external_id", "message", "author", "created_at"],
|
4
|
+
"properties": {
|
5
|
+
"external_id": {"type": "string"},
|
6
|
+
"message": {"type": "string"},
|
7
|
+
"html_message": {"type": "string"},
|
8
|
+
"parent_id": {"type": "string"},
|
9
|
+
"thread_id": {"type": "string"},
|
10
|
+
"created_at": {"type": "string", "format": "date-time"},
|
11
|
+
"author": {"$ref": "#/definitions/author"},
|
12
|
+
"display_info": {"type": "array", "items": {"$ref": "#/definitions/display_info"} },
|
13
|
+
"allow_channelback": {"type":"boolean"},
|
14
|
+
"fields": {"type": "array", "items": {"$ref": "#/definitions/field_value"} }
|
15
|
+
},
|
16
|
+
"definitions": {
|
17
|
+
"external_resource": {
|
18
|
+
},
|
19
|
+
"author": {
|
20
|
+
"type": "object",
|
21
|
+
"required": ["external_id"],
|
22
|
+
"properties": {
|
23
|
+
"external_id": {"type": "string"},
|
24
|
+
"name": {"type": "string"},
|
25
|
+
"image_url": {"type": "string"},
|
26
|
+
"locale": {"type": "string"}
|
27
|
+
}
|
28
|
+
},
|
29
|
+
"display_info": {
|
30
|
+
"type": "object",
|
31
|
+
"required": ["type", "data"],
|
32
|
+
"properties": {
|
33
|
+
"type": {"type": "string"},
|
34
|
+
"data": {"type": "object"}
|
35
|
+
}
|
36
|
+
},
|
37
|
+
"field_value": {
|
38
|
+
"type": "object",
|
39
|
+
"required": ["id", "value"],
|
40
|
+
"properties": {
|
41
|
+
"id": {"type": ["integer", "string"]},
|
42
|
+
"value": {"type": "any"}
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
}
|
@@ -0,0 +1,33 @@
|
|
1
|
+
{
|
2
|
+
"$ref": "#/definitions/manifest",
|
3
|
+
"definitions": {
|
4
|
+
"manifest": {
|
5
|
+
"type": "object",
|
6
|
+
"required": ["name", "id", "urls"],
|
7
|
+
"properties": {
|
8
|
+
"name": {"type": "string"},
|
9
|
+
"id": {"type": "string"},
|
10
|
+
"version": {"type": "string"},
|
11
|
+
"author": {"type": "string"},
|
12
|
+
"push_client_id": {"type": "string"},
|
13
|
+
"urls": { "$ref": "#/definitions/manifest/definitions/urls"}
|
14
|
+
},
|
15
|
+
"definitions": {
|
16
|
+
"urls": {
|
17
|
+
"type": "object",
|
18
|
+
"required": ["admin_ui"],
|
19
|
+
"properties": {
|
20
|
+
"admin_ui": {"type": "string", "format": "https-url"},
|
21
|
+
"pull_url": {"type": "string", "format": "https-url"},
|
22
|
+
"channelback_url": {"type": "string", "format": "https-url"},
|
23
|
+
"clickthrough_url": {"type": "string", "format": "https-url"},
|
24
|
+
"healthcheck_url": {"type": "string"},
|
25
|
+
"about_url": {"type": "string"},
|
26
|
+
"dashboard_url": {"type": "string"},
|
27
|
+
"event_callback_url": {"type": "string"}
|
28
|
+
}
|
29
|
+
}
|
30
|
+
}
|
31
|
+
}
|
32
|
+
}
|
33
|
+
}
|
@@ -0,0 +1,10 @@
|
|
1
|
+
{
|
2
|
+
"type": "object",
|
3
|
+
"required": ["external_resources"],
|
4
|
+
"properties": {
|
5
|
+
"state": {"type": "string"},
|
6
|
+
"external_resources": {"type": "array", "items": { "$ref": "external_resource.json"} },
|
7
|
+
"metadata_needs_update": {"type": "boolean"},
|
8
|
+
"metadata": {"type": "string"}
|
9
|
+
}
|
10
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
{
|
2
|
+
"type": "object",
|
3
|
+
"required": ["instance_push_id", "external_resources"],
|
4
|
+
"properties": {
|
5
|
+
"instance_push_id": {"type": "string"},
|
6
|
+
"request_id": {"type": "string"},
|
7
|
+
"external_resources": {"type": "array", "items": { "$ref": "external_resource.json"} }
|
8
|
+
}
|
9
|
+
}
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: any_channel_json_schemas
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- JaredShay
|
@@ -18,8 +18,19 @@ extensions: []
|
|
18
18
|
extra_rdoc_files: []
|
19
19
|
files:
|
20
20
|
- README.md
|
21
|
-
-
|
22
|
-
- json_schemas
|
21
|
+
- json_schemas/channelback_payload.json
|
22
|
+
- json_schemas/event_callback_any.json
|
23
|
+
- json_schemas/event_callback_base.json
|
24
|
+
- json_schemas/event_callback_create_integration.json
|
25
|
+
- json_schemas/event_callback_create_integration_instance.json
|
26
|
+
- json_schemas/event_callback_destroy_integration.json
|
27
|
+
- json_schemas/event_callback_destroy_integration_instance.json
|
28
|
+
- json_schemas/event_callback_pull_request.json
|
29
|
+
- json_schemas/event_callback_resources_created_from_external_ids.json
|
30
|
+
- json_schemas/external_resource.json
|
31
|
+
- json_schemas/manifest.json
|
32
|
+
- json_schemas/pull_payload.json
|
33
|
+
- json_schemas/push_parameters.json
|
23
34
|
- lib/any_channel_json_schemas.rb
|
24
35
|
homepage: https://github.com/zendesk/any_channel_json_schemas/ruby
|
25
36
|
licenses:
|
@@ -1,14 +0,0 @@
|
|
1
|
-
Gem::Specification.new do |gem|
|
2
|
-
gem.authors = ['JaredShay']
|
3
|
-
gem.email = ['jshay@zendesk.com']
|
4
|
-
gem.description = %q{JSON schema files for the Zendesk Channels Framework.}
|
5
|
-
gem.summary = %q{JSON schema files for the Zendesk Channels Framework.}
|
6
|
-
gem.homepage = 'https://github.com/zendesk/any_channel_json_schemas/ruby'
|
7
|
-
|
8
|
-
gem.files = `git ls-files`.split("\n")
|
9
|
-
gem.test_files = `git ls-files -- spec/*`.split("\n")
|
10
|
-
gem.name = 'any_channel_json_schemas'
|
11
|
-
gem.require_paths = ['lib']
|
12
|
-
gem.version = '0.0.0'
|
13
|
-
gem.license = 'Apache-2.0'
|
14
|
-
end
|
data/json_schemas
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
./../json_schemas
|