@@ -4801,6 +4801,13 @@ components:
4801
4801
enum:
4802
4802
- last_n_days
4803
4803
- next_n_days
4804
+ definedness:
4805
+ type: string
4806
+ description: Indicates whether this evaluation can change in the future.
4807
+ enum:
4808
+ - immutable
4809
+ - mutable
4810
+ - undefined
4804
4811
delete-rev-users-personal-data-request:
4805
4812
type: object
4806
4813
description: Request object to delete a contact's information.
@@ -8701,6 +8708,32 @@ components:
8701
8708
- incident
8702
8709
title: incidents-update-response
8703
8710
x-go-name: IncidentsUpdateResponseBody
8711
+ instant-evaluation:
8712
+ type: object
8713
+ properties:
8714
+ at:
8715
+ type: string
8716
+ description: The time instant evaluated.
8717
+ example: "2023-01-01T12:00:00.000Z"
8718
+ format: date-time
8719
+ definedness:
8720
+ $ref: '#/components/schemas/definedness'
8721
+ is_active:
8722
+ type: boolean
8723
+ description: |
8724
+ Active state of the organization schedule at the time instant.
8725
+ next_transition:
8726
+ type: string
8727
+ description: |
8728
+ Next instant at which the active state of the organization schedule
8729
+ changes, for example, if the schedule is currently off, the next
8730
+ instant at which it will be on.
8731
+ example: "2023-01-01T12:00:00.000Z"
8732
+ format: date-time
8733
+ required:
8734
+ - at
8735
+ - definedness
8736
+ title: instant-evaluation
8704
8737
issue:
8705
8738
allOf:
8706
8739
- $ref: '#/components/schemas/work-base'
@@ -9917,6 +9950,38 @@ components:
9917
9950
- org_schedule
9918
9951
title: org-schedules-create-response
9919
9952
x-go-name: OrgSchedulesCreateResponseBody
9953
+ org-schedules-evaluate-request:
9954
+ type: object
9955
+ properties:
9956
+ id:
9957
+ type: string
9958
+ description: Organization schedule ID.
9959
+ instants:
9960
+ type: array
9961
+ description: Time instants to evaluate the organization schedule for.
9962
+ example:
9963
+ - "2023-01-01T12:00:00.000Z"
9964
+ items:
9965
+ type: string
9966
+ format: date-time
9967
+ minItems: 1
9968
+ required:
9969
+ - id
9970
+ - instants
9971
+ title: org-schedules-evaluate-request
9972
+ org-schedules-evaluate-response:
9973
+ type: object
9974
+ properties:
9975
+ instant_evaluations:
9976
+ type: array
9977
+ description: |
9978
+ The evaluations for the given time instants in the requested order.
9979
+ items:
9980
+ $ref: '#/components/schemas/instant-evaluation'
9981
+ required:
9982
+ - instant_evaluations
9983
+ title: org-schedules-evaluate-response
9984
+ x-go-name: OrgSchedulesEvaluateResponseBody
9920
9985
org-schedules-get-request:
9921
9986
type: object
9922
9987
properties:
@@ -25041,6 +25106,86 @@ paths:
25041
25106
x-fern-audiences:
25042
25107
- docs
25043
25108
- sdks
25109
+ /org-schedules.evaluate:
25110
+ get:
25111
+ description: Evaluates an organization's schedule at specified instants.
25112
+ operationId: org-schedules-evaluate
25113
+ parameters:
25114
+ - description: Organization schedule ID.
25115
+ explode: false
25116
+ in: query
25117
+ name: id
25118
+ required: true
25119
+ schema:
25120
+ type: string
25121
+ - description: Time instants to evaluate the organization schedule for.
25122
+ explode: false
25123
+ in: query
25124
+ name: instants
25125
+ required: true
25126
+ schema:
25127
+ type: array
25128
+ example:
25129
+ - "2023-01-01T12:00:00.000Z"
25130
+ items:
25131
+ type: string
25132
+ format: date-time
25133
+ minItems: 1
25134
+ responses:
25135
+ "200":
25136
+ content:
25137
+ application/json:
25138
+ schema:
25139
+ $ref: '#/components/schemas/org-schedules-evaluate-response'
25140
+ "400":
25141
+ $ref: '#/components/responses/bad-request'
25142
+ "401":
25143
+ $ref: '#/components/responses/unauthorized'
25144
+ "403":
25145
+ $ref: '#/components/responses/forbidden'
25146
+ "429":
25147
+ $ref: '#/components/responses/too-many-requests'
25148
+ "500":
25149
+ $ref: '#/components/responses/internal-server-error'
25150
+ "503":
25151
+ $ref: '#/components/responses/service-unavailable'
25152
+ tags:
25153
+ - schedules
25154
+ x-fern-audiences:
25155
+ - docs
25156
+ x-request-name: OrgSchedulesEvaluateQuery
25157
+ post:
25158
+ description: Evaluates an organization's schedule at specified instants.
25159
+ operationId: org-schedules-evaluate-post
25160
+ requestBody:
25161
+ content:
25162
+ application/json:
25163
+ schema:
25164
+ $ref: '#/components/schemas/org-schedules-evaluate-request'
25165
+ required: true
25166
+ responses:
25167
+ "200":
25168
+ content:
25169
+ application/json:
25170
+ schema:
25171
+ $ref: '#/components/schemas/org-schedules-evaluate-response'
25172
+ "400":
25173
+ $ref: '#/components/responses/bad-request'
25174
+ "401":
25175
+ $ref: '#/components/responses/unauthorized'
25176
+ "403":
25177
+ $ref: '#/components/responses/forbidden'
25178
+ "429":
25179
+ $ref: '#/components/responses/too-many-requests'
25180
+ "500":
25181
+ $ref: '#/components/responses/internal-server-error'
25182
+ "503":
25183
+ $ref: '#/components/responses/service-unavailable'
25184
+ tags:
25185
+ - schedules
25186
+ x-fern-audiences:
25187
+ - docs
25188
+ - sdks
25044
25189
/org-schedules.get:
25045
25190
get:
25046
25191
description: Gets an organization schedule.
@@ -30848,6 +30993,44 @@ paths:
30848
30993
x-fern-audiences:
30849
30994
- docs
30850
30995
- sdks
30996
+ /webhooks.event:
30997
+ post:
30998
+ description: |
30999
+ Describes a webhook invocation for an event from DevRev to a webhook's
31000
+ target URL, where the receiving handler must implement the specified
31001
+ protocol. Note the documented endpoint is for exposition and not
31002
+ provided by DevRev.
31003
+ operationId: webhooks-event
31004
+ requestBody:
31005
+ content:
31006
+ application/json:
31007
+ schema:
31008
+ $ref: '#/components/schemas/webhook-event-request'
31009
+ required: true
31010
+ responses:
31011
+ "200":
31012
+ content:
31013
+ application/json:
31014
+ schema:
31015
+ $ref: '#/components/schemas/webhook-event-response'
31016
+ "400":
31017
+ $ref: '#/components/responses/bad-request'
31018
+ "401":
31019
+ $ref: '#/components/responses/unauthorized'
31020
+ "403":
31021
+ $ref: '#/components/responses/forbidden'
31022
+ "429":
31023
+ $ref: '#/components/responses/too-many-requests'
31024
+ "500":
31025
+ $ref: '#/components/responses/internal-server-error'
31026
+ "503":
31027
+ $ref: '#/components/responses/service-unavailable'
31028
+ tags:
31029
+ - webhooks
31030
+ x-fern-audiences:
31031
+ - docs
31032
+ - sdks
31033
+ x-fern-webhook: true
30851
31034
/webhooks.fetch:
30852
31035
post:
30853
31036
description: Fetches an object via webhook.
0 commit comments