abliteration 0.0.1 → 0.1.0

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.
Files changed (114) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +9 -0
  3. data/README.md +55 -7
  4. data/Rakefile +10 -0
  5. data/abliteration.gemspec +38 -21
  6. data/docs/Author.md +26 -0
  7. data/docs/AuthorDetail.md +28 -0
  8. data/docs/AuthorsApi.md +153 -0
  9. data/docs/DaiPoint.md +22 -0
  10. data/docs/Dataset.md +38 -0
  11. data/docs/DatasetDetail.md +22 -0
  12. data/docs/DatasetsApi.md +159 -0
  13. data/docs/Envelope.md +32 -0
  14. data/docs/Error.md +26 -0
  15. data/docs/Event.md +30 -0
  16. data/docs/GetAuthor200Response.md +32 -0
  17. data/docs/GetDataset200Response.md +32 -0
  18. data/docs/GetIndex200Response.md +32 -0
  19. data/docs/GetMethod200Response.md +32 -0
  20. data/docs/GetModel200Response.md +32 -0
  21. data/docs/Index.md +36 -0
  22. data/docs/IndexDetail.md +38 -0
  23. data/docs/IndicesApi.md +144 -0
  24. data/docs/ListAuthors200Response.md +32 -0
  25. data/docs/ListDatasets200Response.md +32 -0
  26. data/docs/ListIndices200Response.md +32 -0
  27. data/docs/ListMethods200Response.md +32 -0
  28. data/docs/ListModels200Response.md +32 -0
  29. data/docs/ListTimeline200Response.md +32 -0
  30. data/docs/Method.md +28 -0
  31. data/docs/MethodDetail.md +34 -0
  32. data/docs/MethodDetailAllOfTopAuthors.md +20 -0
  33. data/docs/MethodsApi.md +144 -0
  34. data/docs/ModelDetail.md +28 -0
  35. data/docs/ModelSummary.md +42 -0
  36. data/docs/ModelsApi.md +169 -0
  37. data/docs/Passport.md +22 -0
  38. data/docs/TimelineApi.md +85 -0
  39. data/git_push.sh +54 -0
  40. data/lib/abliteration/api/authors_api.rb +167 -0
  41. data/lib/abliteration/api/datasets_api.rb +176 -0
  42. data/lib/abliteration/api/indices_api.rb +147 -0
  43. data/lib/abliteration/api/methods_api.rb +147 -0
  44. data/lib/abliteration/api/models_api.rb +191 -0
  45. data/lib/abliteration/api/timeline_api.rb +99 -0
  46. data/lib/abliteration/api_client.rb +397 -0
  47. data/lib/abliteration/api_error.rb +58 -0
  48. data/lib/abliteration/api_model_base.rb +88 -0
  49. data/lib/abliteration/configuration.rb +308 -0
  50. data/lib/abliteration/models/author.rb +184 -0
  51. data/lib/abliteration/models/author_detail.rb +201 -0
  52. data/lib/abliteration/models/dai_point.rb +165 -0
  53. data/lib/abliteration/models/dataset.rb +247 -0
  54. data/lib/abliteration/models/dataset_detail.rb +169 -0
  55. data/lib/abliteration/models/envelope.rb +364 -0
  56. data/lib/abliteration/models/error.rb +221 -0
  57. data/lib/abliteration/models/event.rb +207 -0
  58. data/lib/abliteration/models/get_author200_response.rb +384 -0
  59. data/lib/abliteration/models/get_dataset200_response.rb +384 -0
  60. data/lib/abliteration/models/get_index200_response.rb +384 -0
  61. data/lib/abliteration/models/get_method200_response.rb +384 -0
  62. data/lib/abliteration/models/get_model200_response.rb +384 -0
  63. data/lib/abliteration/models/index.rb +281 -0
  64. data/lib/abliteration/models/index_detail.rb +296 -0
  65. data/lib/abliteration/models/list_authors200_response.rb +386 -0
  66. data/lib/abliteration/models/list_datasets200_response.rb +386 -0
  67. data/lib/abliteration/models/list_indices200_response.rb +386 -0
  68. data/lib/abliteration/models/list_methods200_response.rb +386 -0
  69. data/lib/abliteration/models/list_models200_response.rb +386 -0
  70. data/lib/abliteration/models/list_timeline200_response.rb +386 -0
  71. data/lib/abliteration/models/method.rb +227 -0
  72. data/lib/abliteration/models/method_detail.rb +265 -0
  73. data/lib/abliteration/models/method_detail_all_of_top_authors.rb +156 -0
  74. data/lib/abliteration/models/model_detail.rb +196 -0
  75. data/lib/abliteration/models/model_summary.rb +265 -0
  76. data/lib/abliteration/models/passport.rb +165 -0
  77. data/lib/abliteration/version.rb +15 -0
  78. data/lib/abliteration.rb +69 -24
  79. data/openapi-generator-config.json +12 -0
  80. data/spec/api/authors_api_spec.rb +61 -0
  81. data/spec/api/datasets_api_spec.rb +64 -0
  82. data/spec/api/indices_api_spec.rb +58 -0
  83. data/spec/api/methods_api_spec.rb +58 -0
  84. data/spec/api/models_api_spec.rb +69 -0
  85. data/spec/api/timeline_api_spec.rb +50 -0
  86. data/spec/models/author_detail_spec.rb +66 -0
  87. data/spec/models/author_spec.rb +60 -0
  88. data/spec/models/dai_point_spec.rb +48 -0
  89. data/spec/models/dataset_detail_spec.rb +48 -0
  90. data/spec/models/dataset_spec.rb +96 -0
  91. data/spec/models/envelope_spec.rb +82 -0
  92. data/spec/models/error_spec.rb +60 -0
  93. data/spec/models/event_spec.rb +72 -0
  94. data/spec/models/get_author200_response_spec.rb +82 -0
  95. data/spec/models/get_dataset200_response_spec.rb +82 -0
  96. data/spec/models/get_index200_response_spec.rb +82 -0
  97. data/spec/models/get_method200_response_spec.rb +82 -0
  98. data/spec/models/get_model200_response_spec.rb +82 -0
  99. data/spec/models/index_detail_spec.rb +104 -0
  100. data/spec/models/index_spec.rb +98 -0
  101. data/spec/models/list_authors200_response_spec.rb +82 -0
  102. data/spec/models/list_datasets200_response_spec.rb +82 -0
  103. data/spec/models/list_indices200_response_spec.rb +82 -0
  104. data/spec/models/list_methods200_response_spec.rb +82 -0
  105. data/spec/models/list_models200_response_spec.rb +82 -0
  106. data/spec/models/list_timeline200_response_spec.rb +82 -0
  107. data/spec/models/method_detail_all_of_top_authors_spec.rb +42 -0
  108. data/spec/models/method_detail_spec.rb +88 -0
  109. data/spec/models/method_spec.rb +70 -0
  110. data/spec/models/model_detail_spec.rb +66 -0
  111. data/spec/models/model_summary_spec.rb +108 -0
  112. data/spec/models/passport_spec.rb +48 -0
  113. data/spec/spec_helper.rb +111 -0
  114. metadata +196 -16
@@ -0,0 +1,20 @@
1
+ # Abliteration::MethodDetailAllOfTopAuthors
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **author** | **String** | | [optional] |
8
+ | **count** | **Integer** | | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'abliteration'
14
+
15
+ instance = Abliteration::MethodDetailAllOfTopAuthors.new(
16
+ author: null,
17
+ count: null
18
+ )
19
+ ```
20
+
@@ -0,0 +1,144 @@
1
+ # Abliteration::MethodsApi
2
+
3
+ All URIs are relative to *https://abliteration.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_method**](MethodsApi.md#get_method) | **GET** /api/v1/methods/{id} | Get one method |
8
+ | [**list_methods**](MethodsApi.md#list_methods) | **GET** /api/v1/methods | List the method taxonomy |
9
+
10
+
11
+ ## get_method
12
+
13
+ > <GetMethod200Response> get_method(id)
14
+
15
+ Get one method
16
+
17
+ Cost: 1 credit.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'abliteration'
24
+ # setup authorization
25
+ Abliteration.configure do |config|
26
+ # Configure Bearer authorization: bearerAuth
27
+ config.access_token = 'YOUR_BEARER_TOKEN'
28
+ end
29
+
30
+ api_instance = Abliteration::MethodsApi.new
31
+ id = 'M1' # String |
32
+
33
+ begin
34
+ # Get one method
35
+ result = api_instance.get_method(id)
36
+ p result
37
+ rescue Abliteration::ApiError => e
38
+ puts "Error when calling MethodsApi->get_method: #{e}"
39
+ end
40
+ ```
41
+
42
+ #### Using the get_method_with_http_info variant
43
+
44
+ This returns an Array which contains the response data, status code and headers.
45
+
46
+ > <Array(<GetMethod200Response>, Integer, Hash)> get_method_with_http_info(id)
47
+
48
+ ```ruby
49
+ begin
50
+ # Get one method
51
+ data, status_code, headers = api_instance.get_method_with_http_info(id)
52
+ p status_code # => 2xx
53
+ p headers # => { ... }
54
+ p data # => <GetMethod200Response>
55
+ rescue Abliteration::ApiError => e
56
+ puts "Error when calling MethodsApi->get_method_with_http_info: #{e}"
57
+ end
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+ | Name | Type | Description | Notes |
63
+ | ---- | ---- | ----------- | ----- |
64
+ | **id** | **String** | | |
65
+
66
+ ### Return type
67
+
68
+ [**GetMethod200Response**](GetMethod200Response.md)
69
+
70
+ ### Authorization
71
+
72
+ [bearerAuth](../README.md#bearerAuth)
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: Not defined
77
+ - **Accept**: application/json
78
+
79
+
80
+ ## list_methods
81
+
82
+ > <ListMethods200Response> list_methods
83
+
84
+ List the method taxonomy
85
+
86
+ Cost: 5-15 credits. Every code is returned, including ones with no models.
87
+
88
+ ### Examples
89
+
90
+ ```ruby
91
+ require 'time'
92
+ require 'abliteration'
93
+ # setup authorization
94
+ Abliteration.configure do |config|
95
+ # Configure Bearer authorization: bearerAuth
96
+ config.access_token = 'YOUR_BEARER_TOKEN'
97
+ end
98
+
99
+ api_instance = Abliteration::MethodsApi.new
100
+
101
+ begin
102
+ # List the method taxonomy
103
+ result = api_instance.list_methods
104
+ p result
105
+ rescue Abliteration::ApiError => e
106
+ puts "Error when calling MethodsApi->list_methods: #{e}"
107
+ end
108
+ ```
109
+
110
+ #### Using the list_methods_with_http_info variant
111
+
112
+ This returns an Array which contains the response data, status code and headers.
113
+
114
+ > <Array(<ListMethods200Response>, Integer, Hash)> list_methods_with_http_info
115
+
116
+ ```ruby
117
+ begin
118
+ # List the method taxonomy
119
+ data, status_code, headers = api_instance.list_methods_with_http_info
120
+ p status_code # => 2xx
121
+ p headers # => { ... }
122
+ p data # => <ListMethods200Response>
123
+ rescue Abliteration::ApiError => e
124
+ puts "Error when calling MethodsApi->list_methods_with_http_info: #{e}"
125
+ end
126
+ ```
127
+
128
+ ### Parameters
129
+
130
+ This endpoint does not need any parameter.
131
+
132
+ ### Return type
133
+
134
+ [**ListMethods200Response**](ListMethods200Response.md)
135
+
136
+ ### Authorization
137
+
138
+ [bearerAuth](../README.md#bearerAuth)
139
+
140
+ ### HTTP request headers
141
+
142
+ - **Content-Type**: Not defined
143
+ - **Accept**: application/json
144
+
@@ -0,0 +1,28 @@
1
+ # Abliteration::ModelDetail
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **author** | **String** | | [optional] |
9
+ | **name** | **String** | | [optional] |
10
+ | **files** | **Array&lt;Object&gt;** | | [optional] |
11
+ | **benchmarks** | **Object** | | [optional] |
12
+ | **author_summary** | [**Author**](Author.md) | | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'abliteration'
18
+
19
+ instance = Abliteration::ModelDetail.new(
20
+ id: null,
21
+ author: null,
22
+ name: null,
23
+ files: null,
24
+ benchmarks: null,
25
+ author_summary: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,42 @@
1
+ # Abliteration::ModelSummary
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **id** | **String** | | [optional] |
8
+ | **author** | **String** | | [optional] |
9
+ | **name** | **String** | | [optional] |
10
+ | **method** | **String** | | [optional] |
11
+ | **confidence** | **String** | | [optional] |
12
+ | **family** | **String** | | [optional] |
13
+ | **params_b** | **Float** | | [optional] |
14
+ | **license** | **String** | | [optional] |
15
+ | **downloads** | **Integer** | | [optional] |
16
+ | **likes** | **Integer** | | [optional] |
17
+ | **is_gguf** | **Integer** | | [optional] |
18
+ | **created_at** | **String** | | [optional] |
19
+ | **first_seen_at** | **String** | | [optional] |
20
+
21
+ ## Example
22
+
23
+ ```ruby
24
+ require 'abliteration'
25
+
26
+ instance = Abliteration::ModelSummary.new(
27
+ id: null,
28
+ author: null,
29
+ name: null,
30
+ method: null,
31
+ confidence: null,
32
+ family: null,
33
+ params_b: null,
34
+ license: null,
35
+ downloads: null,
36
+ likes: null,
37
+ is_gguf: null,
38
+ created_at: null,
39
+ first_seen_at: null
40
+ )
41
+ ```
42
+
data/docs/ModelsApi.md ADDED
@@ -0,0 +1,169 @@
1
+ # Abliteration::ModelsApi
2
+
3
+ All URIs are relative to *https://abliteration.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_model**](ModelsApi.md#get_model) | **GET** /api/v1/models/{id} | Get one model |
8
+ | [**list_models**](ModelsApi.md#list_models) | **GET** /api/v1/models | List models |
9
+
10
+
11
+ ## get_model
12
+
13
+ > <GetModel200Response> get_model(id)
14
+
15
+ Get one model
16
+
17
+ Cost: 10 credits. Priced above /authors/[id], /methods/[id] and /datasets/[id] because iterating over model ids is functionally a slow dump. The id is author/name and must be percent-encoded.
18
+
19
+ ### Examples
20
+
21
+ ```ruby
22
+ require 'time'
23
+ require 'abliteration'
24
+ # setup authorization
25
+ Abliteration.configure do |config|
26
+ # Configure Bearer authorization: bearerAuth
27
+ config.access_token = 'YOUR_BEARER_TOKEN'
28
+ end
29
+
30
+ api_instance = Abliteration::ModelsApi.new
31
+ id = 'mlabonne/Qwen3-30B-A3B-abliterated' # String |
32
+
33
+ begin
34
+ # Get one model
35
+ result = api_instance.get_model(id)
36
+ p result
37
+ rescue Abliteration::ApiError => e
38
+ puts "Error when calling ModelsApi->get_model: #{e}"
39
+ end
40
+ ```
41
+
42
+ #### Using the get_model_with_http_info variant
43
+
44
+ This returns an Array which contains the response data, status code and headers.
45
+
46
+ > <Array(<GetModel200Response>, Integer, Hash)> get_model_with_http_info(id)
47
+
48
+ ```ruby
49
+ begin
50
+ # Get one model
51
+ data, status_code, headers = api_instance.get_model_with_http_info(id)
52
+ p status_code # => 2xx
53
+ p headers # => { ... }
54
+ p data # => <GetModel200Response>
55
+ rescue Abliteration::ApiError => e
56
+ puts "Error when calling ModelsApi->get_model_with_http_info: #{e}"
57
+ end
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+ | Name | Type | Description | Notes |
63
+ | ---- | ---- | ----------- | ----- |
64
+ | **id** | **String** | | |
65
+
66
+ ### Return type
67
+
68
+ [**GetModel200Response**](GetModel200Response.md)
69
+
70
+ ### Authorization
71
+
72
+ [bearerAuth](../README.md#bearerAuth)
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: Not defined
77
+ - **Accept**: application/json
78
+
79
+
80
+ ## list_models
81
+
82
+ > <ListModels200Response> list_models(opts)
83
+
84
+ List models
85
+
86
+ Cost: 5-300+ credits, stepped by returned rows and multiplied by `1 + (offset/2500)²`. A filtered lookup up to 200 rows costs 5; a 1000-row page on the first page costs 300; on offset=10000, 5100. Filter cheap, dump expensive. See /api#pricing. Delisted models are excluded here but remain reachable by id.
87
+
88
+ ### Examples
89
+
90
+ ```ruby
91
+ require 'time'
92
+ require 'abliteration'
93
+ # setup authorization
94
+ Abliteration.configure do |config|
95
+ # Configure Bearer authorization: bearerAuth
96
+ config.access_token = 'YOUR_BEARER_TOKEN'
97
+ end
98
+
99
+ api_instance = Abliteration::ModelsApi.new
100
+ opts = {
101
+ method: 'method_example', # String | M-code, case-insensitive. See GET /api/v1/methods.
102
+ family: 'family_example', # String | Base family, for example qwen or llama.
103
+ author: 'author_example', # String | Publisher handle, case-insensitive.
104
+ license: 'license_example', # String | SPDX-ish license string as published.
105
+ downloads_gte: 56, # Integer |
106
+ downloads_lte: 56, # Integer |
107
+ created_after: 'created_after_example', # String | ISO-8601 date or timestamp, inclusive.
108
+ created_before: 'created_before_example', # String | ISO-8601 date or timestamp, inclusive.
109
+ sort: 'downloads', # String |
110
+ limit: 56, # Integer | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected.
111
+ offset: 56 # Integer | Rows to skip. Negative and non-numeric values are treated as 0.
112
+ }
113
+
114
+ begin
115
+ # List models
116
+ result = api_instance.list_models(opts)
117
+ p result
118
+ rescue Abliteration::ApiError => e
119
+ puts "Error when calling ModelsApi->list_models: #{e}"
120
+ end
121
+ ```
122
+
123
+ #### Using the list_models_with_http_info variant
124
+
125
+ This returns an Array which contains the response data, status code and headers.
126
+
127
+ > <Array(<ListModels200Response>, Integer, Hash)> list_models_with_http_info(opts)
128
+
129
+ ```ruby
130
+ begin
131
+ # List models
132
+ data, status_code, headers = api_instance.list_models_with_http_info(opts)
133
+ p status_code # => 2xx
134
+ p headers # => { ... }
135
+ p data # => <ListModels200Response>
136
+ rescue Abliteration::ApiError => e
137
+ puts "Error when calling ModelsApi->list_models_with_http_info: #{e}"
138
+ end
139
+ ```
140
+
141
+ ### Parameters
142
+
143
+ | Name | Type | Description | Notes |
144
+ | ---- | ---- | ----------- | ----- |
145
+ | **method** | **String** | M-code, case-insensitive. See GET /api/v1/methods. | [optional] |
146
+ | **family** | **String** | Base family, for example qwen or llama. | [optional] |
147
+ | **author** | **String** | Publisher handle, case-insensitive. | [optional] |
148
+ | **license** | **String** | SPDX-ish license string as published. | [optional] |
149
+ | **downloads_gte** | **Integer** | | [optional] |
150
+ | **downloads_lte** | **Integer** | | [optional] |
151
+ | **created_after** | **String** | ISO-8601 date or timestamp, inclusive. | [optional] |
152
+ | **created_before** | **String** | ISO-8601 date or timestamp, inclusive. | [optional] |
153
+ | **sort** | **String** | | [optional][default to &#39;-downloads&#39;] |
154
+ | **limit** | **Integer** | Rows to return, 1 to 1000. Values outside the range are clamped, not rejected. | [optional][default to 50] |
155
+ | **offset** | **Integer** | Rows to skip. Negative and non-numeric values are treated as 0. | [optional][default to 0] |
156
+
157
+ ### Return type
158
+
159
+ [**ListModels200Response**](ListModels200Response.md)
160
+
161
+ ### Authorization
162
+
163
+ [bearerAuth](../README.md#bearerAuth)
164
+
165
+ ### HTTP request headers
166
+
167
+ - **Content-Type**: Not defined
168
+ - **Accept**: application/json
169
+
data/docs/Passport.md ADDED
@@ -0,0 +1,22 @@
1
+ # Abliteration::Passport
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **one_liner** | **String** | | [optional] |
8
+ | **practitioner** | **String** | | [optional] |
9
+ | **research** | **String** | | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'abliteration'
15
+
16
+ instance = Abliteration::Passport.new(
17
+ one_liner: null,
18
+ practitioner: null,
19
+ research: null
20
+ )
21
+ ```
22
+
@@ -0,0 +1,85 @@
1
+ # Abliteration::TimelineApi
2
+
3
+ All URIs are relative to *https://abliteration.org*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**list_timeline**](TimelineApi.md#list_timeline) | **GET** /api/v1/timeline | Curated field events |
8
+
9
+
10
+ ## list_timeline
11
+
12
+ > <ListTimeline200Response> list_timeline(opts)
13
+
14
+ Curated field events
15
+
16
+ Cost: 50 credits, flat.
17
+
18
+ ### Examples
19
+
20
+ ```ruby
21
+ require 'time'
22
+ require 'abliteration'
23
+ # setup authorization
24
+ Abliteration.configure do |config|
25
+ # Configure Bearer authorization: bearerAuth
26
+ config.access_token = 'YOUR_BEARER_TOKEN'
27
+ end
28
+
29
+ api_instance = Abliteration::TimelineApi.new
30
+ opts = {
31
+ from: 'from_example', # String | Inclusive lower bound on the event date, ISO-8601.
32
+ to: 'to_example', # String | Inclusive upper bound on the event date, ISO-8601.
33
+ event_type: 'event_type_example', # String | Event type, case-insensitive.
34
+ limit: 56 # Integer |
35
+ }
36
+
37
+ begin
38
+ # Curated field events
39
+ result = api_instance.list_timeline(opts)
40
+ p result
41
+ rescue Abliteration::ApiError => e
42
+ puts "Error when calling TimelineApi->list_timeline: #{e}"
43
+ end
44
+ ```
45
+
46
+ #### Using the list_timeline_with_http_info variant
47
+
48
+ This returns an Array which contains the response data, status code and headers.
49
+
50
+ > <Array(<ListTimeline200Response>, Integer, Hash)> list_timeline_with_http_info(opts)
51
+
52
+ ```ruby
53
+ begin
54
+ # Curated field events
55
+ data, status_code, headers = api_instance.list_timeline_with_http_info(opts)
56
+ p status_code # => 2xx
57
+ p headers # => { ... }
58
+ p data # => <ListTimeline200Response>
59
+ rescue Abliteration::ApiError => e
60
+ puts "Error when calling TimelineApi->list_timeline_with_http_info: #{e}"
61
+ end
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+ | Name | Type | Description | Notes |
67
+ | ---- | ---- | ----------- | ----- |
68
+ | **from** | **String** | Inclusive lower bound on the event date, ISO-8601. | [optional] |
69
+ | **to** | **String** | Inclusive upper bound on the event date, ISO-8601. | [optional] |
70
+ | **event_type** | **String** | Event type, case-insensitive. | [optional] |
71
+ | **limit** | **Integer** | | [optional][default to 100] |
72
+
73
+ ### Return type
74
+
75
+ [**ListTimeline200Response**](ListTimeline200Response.md)
76
+
77
+ ### Authorization
78
+
79
+ [bearerAuth](../README.md#bearerAuth)
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: Not defined
84
+ - **Accept**: application/json
85
+
data/git_push.sh ADDED
@@ -0,0 +1,54 @@
1
+ #!/bin/sh
2
+ # ref: https://help.github.com/articles/adding-an-existing-project-to-github-using-the-command-line/
3
+ #
4
+ # Usage example: /bin/sh ./git_push.sh wing328 openapi-petstore-perl "minor update" "gitlab.com"
5
+
6
+ git_user_id=$1
7
+ git_repo_id=$2
8
+ release_note=$3
9
+ git_host=$4
10
+
11
+ if [ -z "${git_host}" ]; then
12
+ git_host="github.com"
13
+ echo "[INFO] No command line input provided. Set \${git_host} to ${git_host}"
14
+ fi
15
+
16
+ if [ -z "${git_user_id}" ]; then
17
+ git_user_id="GIT_USER_ID"
18
+ echo "[INFO] No command line input provided. Set \${git_user_id} to ${git_user_id}"
19
+ fi
20
+
21
+ if [ -z "${git_repo_id}" ]; then
22
+ git_repo_id="GIT_REPO_ID"
23
+ echo "[INFO] No command line input provided. Set \${git_repo_id} to ${git_repo_id}"
24
+ fi
25
+
26
+ if [ -z "${release_note}" ]; then
27
+ release_note="Minor update"
28
+ echo "[INFO] No command line input provided. Set \${release_note} to ${release_note}"
29
+ fi
30
+
31
+ # Initialize the local directory as a Git repository
32
+ git init
33
+
34
+ # Adds the files in the local repository and stages them for commit.
35
+ git add .
36
+
37
+ # Commits the tracked changes and prepares them to be pushed to a remote repository.
38
+ git commit -m "${release_note}"
39
+
40
+ # Sets the new remote
41
+ if [ -z "$(git remote)" ]; then # git remote not defined
42
+ if [ -z "${GIT_TOKEN:-}" ]; then
43
+ echo "[INFO] \${GIT_TOKEN} (environment variable) is not set. Using the git credential in your environment."
44
+ git remote add origin "https://${git_host}/${git_user_id}/${git_repo_id}.git"
45
+ else
46
+ git remote add origin "https://${git_user_id}:${GIT_TOKEN}@${git_host}/${git_user_id}/${git_repo_id}.git"
47
+ fi
48
+ fi
49
+
50
+ git pull origin master
51
+
52
+ # Pushes (Forces) the changes in the local repository up to the remote repository
53
+ echo "Git pushing to https://${git_host}/${git_user_id}/${git_repo_id}.git"
54
+ git push origin master 2>&1 | grep -v 'To https'