inference-api-schema.graphql 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105
  1. # Copyright (c) Meta Platforms, Inc. and affiliates.
  2. #
  3. # Licensed under the Apache License, Version 2.0 (the "License");
  4. # you may not use this file except in compliance with the License.
  5. # You may obtain a copy of the License at
  6. #
  7. # http://www.apache.org/licenses/LICENSE-2.0
  8. #
  9. # Unless required by applicable law or agreed to in writing, software
  10. # distributed under the License is distributed on an "AS IS" BASIS,
  11. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. # See the License for the specific language governing permissions and
  13. # limitations under the License.
  14. input AddPointsInput {
  15. sessionId: String!
  16. frameIndex: Int!
  17. clearOldPoints: Boolean!
  18. objectId: Int!
  19. labels: [Int!]!
  20. points: [[Float!]!]!
  21. }
  22. type CancelPropagateInVideo {
  23. success: Boolean!
  24. }
  25. input CancelPropagateInVideoInput {
  26. sessionId: String!
  27. }
  28. input ClearPointsInFrameInput {
  29. sessionId: String!
  30. frameIndex: Int!
  31. objectId: Int!
  32. }
  33. type ClearPointsInVideo {
  34. success: Boolean!
  35. }
  36. input ClearPointsInVideoInput {
  37. sessionId: String!
  38. }
  39. type CloseSession {
  40. success: Boolean!
  41. }
  42. input CloseSessionInput {
  43. sessionId: String!
  44. }
  45. type Mutation {
  46. startSession(input: StartSessionInput!): StartSession!
  47. closeSession(input: CloseSessionInput!): CloseSession!
  48. addPoints(input: AddPointsInput!): RLEMaskListOnFrame!
  49. clearPointsInFrame(input: ClearPointsInFrameInput!): RLEMaskListOnFrame!
  50. clearPointsInVideo(input: ClearPointsInVideoInput!): ClearPointsInVideo!
  51. removeObject(input: RemoveObjectInput!): [RLEMaskListOnFrame!]!
  52. cancelPropagateInVideo(
  53. input: CancelPropagateInVideoInput!
  54. ): CancelPropagateInVideo!
  55. }
  56. input PingInput {
  57. sessionId: String!
  58. }
  59. type Pong {
  60. success: Boolean!
  61. }
  62. type Query {
  63. ping(input: PingInput!): Pong!
  64. }
  65. type RLEMask {
  66. size: [Int!]!
  67. counts: String!
  68. order: String!
  69. }
  70. type RLEMaskForObject {
  71. objectId: Int!
  72. rleMask: RLEMask!
  73. }
  74. type RLEMaskListOnFrame {
  75. frameIndex: Int!
  76. rleMaskList: [RLEMaskForObject!]!
  77. }
  78. input RemoveObjectInput {
  79. sessionId: String!
  80. objectId: Int!
  81. }
  82. type StartSession {
  83. sessionId: String!
  84. }
  85. input StartSessionInput {
  86. path: String!
  87. }