@smartytalent/api-client 0.8.0 → 0.8.2

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 (191) hide show
  1. package/dist/apis/FindersApi.d.ts +10 -10
  2. package/dist/apis/FindersApi.js +10 -10
  3. package/dist/apis/ResponsesApi.d.ts +157 -0
  4. package/dist/apis/ResponsesApi.d.ts.map +1 -0
  5. package/dist/apis/ResponsesApi.js +364 -0
  6. package/dist/apis/ResponsesApi.js.map +1 -0
  7. package/dist/apis/SurveysApi.d.ts +69 -54
  8. package/dist/apis/SurveysApi.d.ts.map +1 -1
  9. package/dist/apis/SurveysApi.js +137 -110
  10. package/dist/apis/SurveysApi.js.map +1 -1
  11. package/dist/apis/TalentsApi.d.ts +2 -2
  12. package/dist/apis/TalentsApi.js +2 -2
  13. package/dist/apis/index.d.ts +1 -0
  14. package/dist/apis/index.d.ts.map +1 -1
  15. package/dist/apis/index.js +1 -0
  16. package/dist/apis/index.js.map +1 -1
  17. package/dist/models/CreateSurveyRequestBody.d.ts +34 -0
  18. package/dist/models/CreateSurveyRequestBody.d.ts.map +1 -0
  19. package/dist/models/CreateSurveyRequestBody.js +52 -0
  20. package/dist/models/CreateSurveyRequestBody.js.map +1 -0
  21. package/dist/models/CreateSurveyRequestBodyData.d.ts +47 -0
  22. package/dist/models/CreateSurveyRequestBodyData.d.ts.map +1 -0
  23. package/dist/models/CreateSurveyRequestBodyData.js +63 -0
  24. package/dist/models/CreateSurveyRequestBodyData.js.map +1 -0
  25. package/dist/models/CreateSurveyRequestBodyDataAttributes.d.ts +54 -0
  26. package/dist/models/CreateSurveyRequestBodyDataAttributes.d.ts.map +1 -0
  27. package/dist/models/CreateSurveyRequestBodyDataAttributes.js +64 -0
  28. package/dist/models/CreateSurveyRequestBodyDataAttributes.js.map +1 -0
  29. package/dist/models/FinderQueryCandidatesSchema.d.ts +0 -12
  30. package/dist/models/FinderQueryCandidatesSchema.d.ts.map +1 -1
  31. package/dist/models/FinderQueryCandidatesSchema.js +0 -4
  32. package/dist/models/FinderQueryCandidatesSchema.js.map +1 -1
  33. package/dist/models/FinderQueryTalentsSchema.d.ts +0 -6
  34. package/dist/models/FinderQueryTalentsSchema.d.ts.map +1 -1
  35. package/dist/models/FinderQueryTalentsSchema.js +0 -2
  36. package/dist/models/FinderQueryTalentsSchema.js.map +1 -1
  37. package/dist/models/GuestResponseAttributesSchema.d.ts +102 -0
  38. package/dist/models/GuestResponseAttributesSchema.d.ts.map +1 -0
  39. package/dist/models/{GuestSurveyAttributesSchema.js → GuestResponseAttributesSchema.js} +23 -22
  40. package/dist/models/GuestResponseAttributesSchema.js.map +1 -0
  41. package/dist/models/GuestResponseMetaSchema.d.ts +45 -0
  42. package/dist/models/GuestResponseMetaSchema.d.ts.map +1 -0
  43. package/dist/models/{GuestSurveyMetaSchema.js → GuestResponseMetaSchema.js} +14 -14
  44. package/dist/models/GuestResponseMetaSchema.js.map +1 -0
  45. package/dist/models/GuestResponseResourceSchema.d.ts +53 -0
  46. package/dist/models/GuestResponseResourceSchema.d.ts.map +1 -0
  47. package/dist/models/GuestResponseResourceSchema.js +61 -0
  48. package/dist/models/GuestResponseResourceSchema.js.map +1 -0
  49. package/dist/models/GuestResponseSchema.d.ts +39 -0
  50. package/dist/models/GuestResponseSchema.d.ts.map +1 -0
  51. package/dist/models/GuestResponseSchema.js +50 -0
  52. package/dist/models/GuestResponseSchema.js.map +1 -0
  53. package/dist/models/ResponseAttributesSchema.d.ts +184 -0
  54. package/dist/models/ResponseAttributesSchema.d.ts.map +1 -0
  55. package/dist/models/ResponseAttributesSchema.js +100 -0
  56. package/dist/models/ResponseAttributesSchema.js.map +1 -0
  57. package/dist/models/ResponseRelationshipsCandidateSchema.d.ts +34 -0
  58. package/dist/models/ResponseRelationshipsCandidateSchema.d.ts.map +1 -0
  59. package/dist/models/ResponseRelationshipsCandidateSchema.js +50 -0
  60. package/dist/models/ResponseRelationshipsCandidateSchema.js.map +1 -0
  61. package/dist/models/ResponseRelationshipsCandidateSchemaData.d.ts +39 -0
  62. package/dist/models/ResponseRelationshipsCandidateSchemaData.d.ts.map +1 -0
  63. package/dist/models/ResponseRelationshipsCandidateSchemaData.js +51 -0
  64. package/dist/models/ResponseRelationshipsCandidateSchemaData.js.map +1 -0
  65. package/dist/models/ResponseRelationshipsJobSchema.d.ts +34 -0
  66. package/dist/models/ResponseRelationshipsJobSchema.d.ts.map +1 -0
  67. package/dist/models/ResponseRelationshipsJobSchema.js +50 -0
  68. package/dist/models/ResponseRelationshipsJobSchema.js.map +1 -0
  69. package/dist/models/ResponseRelationshipsSchema.d.ts +48 -0
  70. package/dist/models/ResponseRelationshipsSchema.d.ts.map +1 -0
  71. package/dist/models/ResponseRelationshipsSchema.js +56 -0
  72. package/dist/models/ResponseRelationshipsSchema.js.map +1 -0
  73. package/dist/models/ResponseRelationshipsSurveySchema.d.ts +34 -0
  74. package/dist/models/ResponseRelationshipsSurveySchema.d.ts.map +1 -0
  75. package/dist/models/ResponseRelationshipsSurveySchema.js +50 -0
  76. package/dist/models/ResponseRelationshipsSurveySchema.js.map +1 -0
  77. package/dist/models/ResponseRelationshipsSurveySchemaData.d.ts +39 -0
  78. package/dist/models/ResponseRelationshipsSurveySchemaData.d.ts.map +1 -0
  79. package/dist/models/ResponseRelationshipsSurveySchemaData.js +51 -0
  80. package/dist/models/ResponseRelationshipsSurveySchemaData.js.map +1 -0
  81. package/dist/models/ResponseResourceSchema.d.ts +75 -0
  82. package/dist/models/ResponseResourceSchema.d.ts.map +1 -0
  83. package/dist/models/ResponseResourceSchema.js +75 -0
  84. package/dist/models/ResponseResourceSchema.js.map +1 -0
  85. package/dist/models/ResponseSchema.d.ts +49 -0
  86. package/dist/models/ResponseSchema.d.ts.map +1 -0
  87. package/dist/models/ResponseSchema.js +55 -0
  88. package/dist/models/ResponseSchema.js.map +1 -0
  89. package/dist/models/ResponsesSchema.d.ts +48 -0
  90. package/dist/models/ResponsesSchema.d.ts.map +1 -0
  91. package/dist/models/ResponsesSchema.js +56 -0
  92. package/dist/models/ResponsesSchema.js.map +1 -0
  93. package/dist/models/SubmitGuestResponseRequestBody.d.ts +41 -0
  94. package/dist/models/SubmitGuestResponseRequestBody.d.ts.map +1 -0
  95. package/dist/models/SubmitGuestResponseRequestBody.js +57 -0
  96. package/dist/models/SubmitGuestResponseRequestBody.js.map +1 -0
  97. package/dist/models/SubmitGuestResponseRequestBodyData.d.ts +53 -0
  98. package/dist/models/SubmitGuestResponseRequestBodyData.d.ts.map +1 -0
  99. package/dist/models/SubmitGuestResponseRequestBodyData.js +65 -0
  100. package/dist/models/SubmitGuestResponseRequestBodyData.js.map +1 -0
  101. package/dist/models/SubmitGuestResponseRequestBodyDataAttributes.d.ts +33 -0
  102. package/dist/models/SubmitGuestResponseRequestBodyDataAttributes.d.ts.map +1 -0
  103. package/dist/models/SubmitGuestResponseRequestBodyDataAttributes.js +51 -0
  104. package/dist/models/SubmitGuestResponseRequestBodyDataAttributes.js.map +1 -0
  105. package/dist/models/SurveyAttributesSchema.d.ts +42 -91
  106. package/dist/models/SurveyAttributesSchema.d.ts.map +1 -1
  107. package/dist/models/SurveyAttributesSchema.js +18 -32
  108. package/dist/models/SurveyAttributesSchema.js.map +1 -1
  109. package/dist/models/SurveyContentSchema.d.ts +42 -0
  110. package/dist/models/SurveyContentSchema.d.ts.map +1 -0
  111. package/dist/models/SurveyContentSchema.js +52 -0
  112. package/dist/models/SurveyContentSchema.js.map +1 -0
  113. package/dist/models/SurveyQuestionOptionSchema.d.ts +41 -0
  114. package/dist/models/SurveyQuestionOptionSchema.d.ts.map +1 -0
  115. package/dist/models/SurveyQuestionOptionSchema.js +51 -0
  116. package/dist/models/SurveyQuestionOptionSchema.js.map +1 -0
  117. package/dist/models/SurveyQuestionSchema.d.ts +119 -0
  118. package/dist/models/SurveyQuestionSchema.d.ts.map +1 -0
  119. package/dist/models/SurveyQuestionSchema.js +85 -0
  120. package/dist/models/SurveyQuestionSchema.js.map +1 -0
  121. package/dist/models/SurveyQuestionSchemaScaleLabels.d.ts +43 -0
  122. package/dist/models/SurveyQuestionSchemaScaleLabels.d.ts.map +1 -0
  123. package/dist/models/SurveyQuestionSchemaScaleLabels.js +51 -0
  124. package/dist/models/SurveyQuestionSchemaScaleLabels.js.map +1 -0
  125. package/dist/models/SurveyResourceSchema.d.ts +2 -3
  126. package/dist/models/SurveyResourceSchema.d.ts.map +1 -1
  127. package/dist/models/SurveyResourceSchema.js +2 -3
  128. package/dist/models/SurveyResourceSchema.js.map +1 -1
  129. package/dist/models/TalentAttributesSchema.d.ts +12 -0
  130. package/dist/models/TalentAttributesSchema.d.ts.map +1 -1
  131. package/dist/models/TalentAttributesSchema.js +4 -0
  132. package/dist/models/TalentAttributesSchema.js.map +1 -1
  133. package/dist/models/UpdateSurveyRequestBody.d.ts +34 -0
  134. package/dist/models/UpdateSurveyRequestBody.d.ts.map +1 -0
  135. package/dist/models/UpdateSurveyRequestBody.js +52 -0
  136. package/dist/models/UpdateSurveyRequestBody.js.map +1 -0
  137. package/dist/models/UpdateSurveyRequestBodyData.d.ts +53 -0
  138. package/dist/models/UpdateSurveyRequestBodyData.d.ts.map +1 -0
  139. package/dist/models/UpdateSurveyRequestBodyData.js +63 -0
  140. package/dist/models/UpdateSurveyRequestBodyData.js.map +1 -0
  141. package/dist/models/UpdateSurveyRequestBodyDataAttributes.d.ts +55 -0
  142. package/dist/models/UpdateSurveyRequestBodyDataAttributes.d.ts.map +1 -0
  143. package/dist/models/UpdateSurveyRequestBodyDataAttributes.js +63 -0
  144. package/dist/models/UpdateSurveyRequestBodyDataAttributes.js.map +1 -0
  145. package/dist/models/index.d.ts +27 -11
  146. package/dist/models/index.d.ts.map +1 -1
  147. package/dist/models/index.js +27 -11
  148. package/dist/models/index.js.map +1 -1
  149. package/package.json +1 -1
  150. package/dist/models/GuestSurveyAttributesSchema.d.ts +0 -98
  151. package/dist/models/GuestSurveyAttributesSchema.d.ts.map +0 -1
  152. package/dist/models/GuestSurveyAttributesSchema.js.map +0 -1
  153. package/dist/models/GuestSurveyMetaSchema.d.ts +0 -45
  154. package/dist/models/GuestSurveyMetaSchema.d.ts.map +0 -1
  155. package/dist/models/GuestSurveyMetaSchema.js.map +0 -1
  156. package/dist/models/GuestSurveyResourceSchema.d.ts +0 -53
  157. package/dist/models/GuestSurveyResourceSchema.d.ts.map +0 -1
  158. package/dist/models/GuestSurveyResourceSchema.js +0 -61
  159. package/dist/models/GuestSurveyResourceSchema.js.map +0 -1
  160. package/dist/models/GuestSurveySchema.d.ts +0 -38
  161. package/dist/models/GuestSurveySchema.d.ts.map +0 -1
  162. package/dist/models/GuestSurveySchema.js +0 -50
  163. package/dist/models/GuestSurveySchema.js.map +0 -1
  164. package/dist/models/SubmitGuestSurveyRequestBody.d.ts +0 -41
  165. package/dist/models/SubmitGuestSurveyRequestBody.d.ts.map +0 -1
  166. package/dist/models/SubmitGuestSurveyRequestBody.js +0 -57
  167. package/dist/models/SubmitGuestSurveyRequestBody.js.map +0 -1
  168. package/dist/models/SubmitGuestSurveyRequestBodyData.d.ts +0 -53
  169. package/dist/models/SubmitGuestSurveyRequestBodyData.d.ts.map +0 -1
  170. package/dist/models/SubmitGuestSurveyRequestBodyData.js +0 -65
  171. package/dist/models/SubmitGuestSurveyRequestBodyData.js.map +0 -1
  172. package/dist/models/SubmitGuestSurveyRequestBodyDataAttributes.d.ts +0 -39
  173. package/dist/models/SubmitGuestSurveyRequestBodyDataAttributes.d.ts.map +0 -1
  174. package/dist/models/SubmitGuestSurveyRequestBodyDataAttributes.js +0 -53
  175. package/dist/models/SubmitGuestSurveyRequestBodyDataAttributes.js.map +0 -1
  176. package/dist/models/SurveyRelationshipsCandidateSchema.d.ts +0 -34
  177. package/dist/models/SurveyRelationshipsCandidateSchema.d.ts.map +0 -1
  178. package/dist/models/SurveyRelationshipsCandidateSchema.js +0 -50
  179. package/dist/models/SurveyRelationshipsCandidateSchema.js.map +0 -1
  180. package/dist/models/SurveyRelationshipsCandidateSchemaData.d.ts +0 -39
  181. package/dist/models/SurveyRelationshipsCandidateSchemaData.d.ts.map +0 -1
  182. package/dist/models/SurveyRelationshipsCandidateSchemaData.js +0 -51
  183. package/dist/models/SurveyRelationshipsCandidateSchemaData.js.map +0 -1
  184. package/dist/models/SurveyRelationshipsJobSchema.d.ts +0 -34
  185. package/dist/models/SurveyRelationshipsJobSchema.d.ts.map +0 -1
  186. package/dist/models/SurveyRelationshipsJobSchema.js +0 -50
  187. package/dist/models/SurveyRelationshipsJobSchema.js.map +0 -1
  188. package/dist/models/SurveyRelationshipsSchema.d.ts +0 -41
  189. package/dist/models/SurveyRelationshipsSchema.d.ts.map +0 -1
  190. package/dist/models/SurveyRelationshipsSchema.js +0 -53
  191. package/dist/models/SurveyRelationshipsSchema.js.map +0 -1
@@ -48,12 +48,12 @@ export declare class FindersApi extends runtime.BaseAPI {
48
48
  */
49
49
  createFinderRequestOpts(requestParameters: CreateFinderRequest): Promise<runtime.RequestOpts>;
50
50
  /**
51
- * Creates a new finder search in your account. ### Finder\'s Attributes Here is a table that describes the attributes of the finder object: | Attribute | Type | Required | Description | |-----------|------|----------|-------------| | `name` | string | Yes | The name of the finder search (1-256 characters) | | `type` | string | Yes | The type of search: talents, candidates, jobs, emails, users, reports | | `query` | object | No | The search query parameters sent to OpenSearch (e.g. `{ \"type\": \"talents\", \"jobId\": \"...\" }`) | | `results` | object | No | The search results (auto-populated after OpenSearch query execution) | | `status` | string | No | The current status: active (default), pending, completed, failed, archived | | `languageCode` | string | No | Language code for the finder (default: `en`) | | `settings` | object | No | Additional configuration settings | | `source` | string | No | Source of the finder creation (nullable) | | `ttl` | string | No | Time-to-live expiration timestamp in ISO 8601 format (nullable) | | `timestamps.created` | string | No | The date and time when the finder was created (ISO 8601 format) | | `timestamps.modified` | string | No | The date and time when the finder was last modified (ISO 8601 format) | ### Relationships | Relationship | Type | Description | |-------------|------|-------------| | `jobs` | array | Associated job resources | | `users` | array | Associated user resources | | `talents` | array | Associated talent resources | | `candidates` | array | Associated candidate resources | ### Behavior When a `query` is provided, OpenSearch is queried immediately. The `results` field is populated with matching documents and `status` is set to `completed` or `failed`.
51
+ * Creates a new finder search in your account. Roles `recruiter`, `recops`, `owner` and `sysowner` only - search across the talent and candidate pool is limited to the roles that screen people. ### Finder\'s Attributes Here is a table that describes the attributes of the finder object: | Attribute | Type | Required | Description | |-----------|------|----------|-------------| | `name` | string | Yes | The name of the finder search (1-256 characters) | | `type` | string | Yes | The type of search: talents, candidates, jobs, emails, users, reports | | `query` | object | No | The search query parameters sent to OpenSearch (e.g. `{ \"type\": \"talents\", \"jobId\": \"...\" }`) | | `results` | object | No | The search results (auto-populated after OpenSearch query execution) | | `status` | string | No | The current status: active (default), pending, completed, failed, archived | | `languageCode` | string | No | Language code for the finder (default: `en`) | | `settings` | object | No | Additional configuration settings | | `source` | string | No | Source of the finder creation (nullable) | | `ttl` | string | No | Time-to-live expiration timestamp in ISO 8601 format (nullable) | | `timestamps.created` | string | No | The date and time when the finder was created (ISO 8601 format) | | `timestamps.modified` | string | No | The date and time when the finder was last modified (ISO 8601 format) | ### Relationships | Relationship | Type | Description | |-------------|------|-------------| | `jobs` | array | Associated job resources | | `users` | array | Associated user resources | | `talents` | array | Associated talent resources | | `candidates` | array | Associated candidate resources | ### Behavior When a `query` is provided, OpenSearch is queried immediately. The `results` field is populated with matching documents and `status` is set to `completed` or `failed`.
52
52
  * Create Finder
53
53
  */
54
54
  createFinderRaw(requestParameters: CreateFinderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinderSchema>>;
55
55
  /**
56
- * Creates a new finder search in your account. ### Finder\'s Attributes Here is a table that describes the attributes of the finder object: | Attribute | Type | Required | Description | |-----------|------|----------|-------------| | `name` | string | Yes | The name of the finder search (1-256 characters) | | `type` | string | Yes | The type of search: talents, candidates, jobs, emails, users, reports | | `query` | object | No | The search query parameters sent to OpenSearch (e.g. `{ \"type\": \"talents\", \"jobId\": \"...\" }`) | | `results` | object | No | The search results (auto-populated after OpenSearch query execution) | | `status` | string | No | The current status: active (default), pending, completed, failed, archived | | `languageCode` | string | No | Language code for the finder (default: `en`) | | `settings` | object | No | Additional configuration settings | | `source` | string | No | Source of the finder creation (nullable) | | `ttl` | string | No | Time-to-live expiration timestamp in ISO 8601 format (nullable) | | `timestamps.created` | string | No | The date and time when the finder was created (ISO 8601 format) | | `timestamps.modified` | string | No | The date and time when the finder was last modified (ISO 8601 format) | ### Relationships | Relationship | Type | Description | |-------------|------|-------------| | `jobs` | array | Associated job resources | | `users` | array | Associated user resources | | `talents` | array | Associated talent resources | | `candidates` | array | Associated candidate resources | ### Behavior When a `query` is provided, OpenSearch is queried immediately. The `results` field is populated with matching documents and `status` is set to `completed` or `failed`.
56
+ * Creates a new finder search in your account. Roles `recruiter`, `recops`, `owner` and `sysowner` only - search across the talent and candidate pool is limited to the roles that screen people. ### Finder\'s Attributes Here is a table that describes the attributes of the finder object: | Attribute | Type | Required | Description | |-----------|------|----------|-------------| | `name` | string | Yes | The name of the finder search (1-256 characters) | | `type` | string | Yes | The type of search: talents, candidates, jobs, emails, users, reports | | `query` | object | No | The search query parameters sent to OpenSearch (e.g. `{ \"type\": \"talents\", \"jobId\": \"...\" }`) | | `results` | object | No | The search results (auto-populated after OpenSearch query execution) | | `status` | string | No | The current status: active (default), pending, completed, failed, archived | | `languageCode` | string | No | Language code for the finder (default: `en`) | | `settings` | object | No | Additional configuration settings | | `source` | string | No | Source of the finder creation (nullable) | | `ttl` | string | No | Time-to-live expiration timestamp in ISO 8601 format (nullable) | | `timestamps.created` | string | No | The date and time when the finder was created (ISO 8601 format) | | `timestamps.modified` | string | No | The date and time when the finder was last modified (ISO 8601 format) | ### Relationships | Relationship | Type | Description | |-------------|------|-------------| | `jobs` | array | Associated job resources | | `users` | array | Associated user resources | | `talents` | array | Associated talent resources | | `candidates` | array | Associated candidate resources | ### Behavior When a `query` is provided, OpenSearch is queried immediately. The `results` field is populated with matching documents and `status` is set to `completed` or `failed`.
57
57
  * Create Finder
58
58
  */
59
59
  createFinder(requestParameters: CreateFinderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinderSchema>;
@@ -62,12 +62,12 @@ export declare class FindersApi extends runtime.BaseAPI {
62
62
  */
63
63
  deleteFinderRequestOpts(requestParameters: DeleteFinderRequest): Promise<runtime.RequestOpts>;
64
64
  /**
65
- * This endpoint allows you to delete a specific finder from your account. Once deleted, the finder\'s information will be permanently removed and cannot be recovered.
65
+ * This endpoint allows you to delete a specific finder from your account. Once deleted, the finder\'s information will be permanently removed and cannot be recovered. Roles `recruiter`, `recops`, `owner` and `sysowner` only.
66
66
  * Delete Finder
67
67
  */
68
68
  deleteFinderRaw(requestParameters: DeleteFinderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
69
69
  /**
70
- * This endpoint allows you to delete a specific finder from your account. Once deleted, the finder\'s information will be permanently removed and cannot be recovered.
70
+ * This endpoint allows you to delete a specific finder from your account. Once deleted, the finder\'s information will be permanently removed and cannot be recovered. Roles `recruiter`, `recops`, `owner` and `sysowner` only.
71
71
  * Delete Finder
72
72
  */
73
73
  deleteFinder(requestParameters: DeleteFinderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
@@ -104,12 +104,12 @@ export declare class FindersApi extends runtime.BaseAPI {
104
104
  */
105
105
  listFindersRequestOpts(requestParameters: ListFindersRequest): Promise<runtime.RequestOpts>;
106
106
  /**
107
- * Returns a collection of your account finders ## Overview Returns a collection of your account finders, sorted by the time they were inserted into the system in ascending order. ### Finders Endpoints Pagination The finders endpoints support two versions of pagination: traditional and cursor-based. Note that the parameters for these pagination methods cannot coexist; using them together will result in a bad request error. :::tip Pagination tip Ensure that when using traditional pagination, you use `pageNumber`, and when using cursor-based pagination, you use either `pageAfter` or `pageBefore`, but not both together. ::: #### More information For more information, see the [pagination documentation](/docs/pagination).
107
+ * Returns a collection of your account finders. Roles `recruiter`, `recops`, `owner` and `sysowner` only - a finder row carries its hit list, so reading one is reading the search results. ## Overview Returns a collection of your account finders, sorted by the time they were inserted into the system in ascending order. ### Finders Endpoints Pagination The finders endpoints support two versions of pagination: traditional and cursor-based. Note that the parameters for these pagination methods cannot coexist; using them together will result in a bad request error. :::tip Pagination tip Ensure that when using traditional pagination, you use `pageNumber`, and when using cursor-based pagination, you use either `pageAfter` or `pageBefore`, but not both together. ::: #### More information For more information, see the [pagination documentation](/docs/pagination).
108
108
  * List Finders
109
109
  */
110
110
  listFindersRaw(requestParameters: ListFindersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FindersSchema>>;
111
111
  /**
112
- * Returns a collection of your account finders ## Overview Returns a collection of your account finders, sorted by the time they were inserted into the system in ascending order. ### Finders Endpoints Pagination The finders endpoints support two versions of pagination: traditional and cursor-based. Note that the parameters for these pagination methods cannot coexist; using them together will result in a bad request error. :::tip Pagination tip Ensure that when using traditional pagination, you use `pageNumber`, and when using cursor-based pagination, you use either `pageAfter` or `pageBefore`, but not both together. ::: #### More information For more information, see the [pagination documentation](/docs/pagination).
112
+ * Returns a collection of your account finders. Roles `recruiter`, `recops`, `owner` and `sysowner` only - a finder row carries its hit list, so reading one is reading the search results. ## Overview Returns a collection of your account finders, sorted by the time they were inserted into the system in ascending order. ### Finders Endpoints Pagination The finders endpoints support two versions of pagination: traditional and cursor-based. Note that the parameters for these pagination methods cannot coexist; using them together will result in a bad request error. :::tip Pagination tip Ensure that when using traditional pagination, you use `pageNumber`, and when using cursor-based pagination, you use either `pageAfter` or `pageBefore`, but not both together. ::: #### More information For more information, see the [pagination documentation](/docs/pagination).
113
113
  * List Finders
114
114
  */
115
115
  listFinders(requestParameters?: ListFindersRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FindersSchema>;
@@ -118,12 +118,12 @@ export declare class FindersApi extends runtime.BaseAPI {
118
118
  */
119
119
  showFinderRequestOpts(requestParameters: ShowFinderRequest): Promise<runtime.RequestOpts>;
120
120
  /**
121
- * This endpoint retrieves details of a specific finder from your account. You can view information such as name, type, query, results, status, settings, and other relevant attributes of the finder.
121
+ * This endpoint retrieves details of a specific finder from your account. You can view information such as name, type, query, results, status, settings, and other relevant attributes of the finder. Roles `recruiter`, `recops`, `owner` and `sysowner` only.
122
122
  * Show Finder
123
123
  */
124
124
  showFinderRaw(requestParameters: ShowFinderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinderSchema>>;
125
125
  /**
126
- * This endpoint retrieves details of a specific finder from your account. You can view information such as name, type, query, results, status, settings, and other relevant attributes of the finder.
126
+ * This endpoint retrieves details of a specific finder from your account. You can view information such as name, type, query, results, status, settings, and other relevant attributes of the finder. Roles `recruiter`, `recops`, `owner` and `sysowner` only.
127
127
  * Show Finder
128
128
  */
129
129
  showFinder(requestParameters: ShowFinderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinderSchema>;
@@ -132,12 +132,12 @@ export declare class FindersApi extends runtime.BaseAPI {
132
132
  */
133
133
  updateFinderRequestOpts(requestParameters: UpdateFinderRequest): Promise<runtime.RequestOpts>;
134
134
  /**
135
- * This endpoint allows you to update details of a specific finder in your account. You can modify information such as name, query, status, settings, and other relevant attributes of the finder. Only the fields provided in the request will be updated.
135
+ * This endpoint allows you to update details of a specific finder in your account. You can modify information such as name, query, status, settings, and other relevant attributes of the finder. Only the fields provided in the request will be updated. Roles `recruiter`, `recops`, `owner` and `sysowner` only.
136
136
  * Update Finder
137
137
  */
138
138
  updateFinderRaw(requestParameters: UpdateFinderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<FinderSchema>>;
139
139
  /**
140
- * This endpoint allows you to update details of a specific finder in your account. You can modify information such as name, query, status, settings, and other relevant attributes of the finder. Only the fields provided in the request will be updated.
140
+ * This endpoint allows you to update details of a specific finder in your account. You can modify information such as name, query, status, settings, and other relevant attributes of the finder. Only the fields provided in the request will be updated. Roles `recruiter`, `recops`, `owner` and `sysowner` only.
141
141
  * Update Finder
142
142
  */
143
143
  updateFinder(requestParameters: UpdateFinderRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<FinderSchema>;
@@ -80,7 +80,7 @@ class FindersApi extends runtime.BaseAPI {
80
80
  };
81
81
  }
82
82
  /**
83
- * Creates a new finder search in your account. ### Finder\'s Attributes Here is a table that describes the attributes of the finder object: | Attribute | Type | Required | Description | |-----------|------|----------|-------------| | `name` | string | Yes | The name of the finder search (1-256 characters) | | `type` | string | Yes | The type of search: talents, candidates, jobs, emails, users, reports | | `query` | object | No | The search query parameters sent to OpenSearch (e.g. `{ \"type\": \"talents\", \"jobId\": \"...\" }`) | | `results` | object | No | The search results (auto-populated after OpenSearch query execution) | | `status` | string | No | The current status: active (default), pending, completed, failed, archived | | `languageCode` | string | No | Language code for the finder (default: `en`) | | `settings` | object | No | Additional configuration settings | | `source` | string | No | Source of the finder creation (nullable) | | `ttl` | string | No | Time-to-live expiration timestamp in ISO 8601 format (nullable) | | `timestamps.created` | string | No | The date and time when the finder was created (ISO 8601 format) | | `timestamps.modified` | string | No | The date and time when the finder was last modified (ISO 8601 format) | ### Relationships | Relationship | Type | Description | |-------------|------|-------------| | `jobs` | array | Associated job resources | | `users` | array | Associated user resources | | `talents` | array | Associated talent resources | | `candidates` | array | Associated candidate resources | ### Behavior When a `query` is provided, OpenSearch is queried immediately. The `results` field is populated with matching documents and `status` is set to `completed` or `failed`.
83
+ * Creates a new finder search in your account. Roles `recruiter`, `recops`, `owner` and `sysowner` only - search across the talent and candidate pool is limited to the roles that screen people. ### Finder\'s Attributes Here is a table that describes the attributes of the finder object: | Attribute | Type | Required | Description | |-----------|------|----------|-------------| | `name` | string | Yes | The name of the finder search (1-256 characters) | | `type` | string | Yes | The type of search: talents, candidates, jobs, emails, users, reports | | `query` | object | No | The search query parameters sent to OpenSearch (e.g. `{ \"type\": \"talents\", \"jobId\": \"...\" }`) | | `results` | object | No | The search results (auto-populated after OpenSearch query execution) | | `status` | string | No | The current status: active (default), pending, completed, failed, archived | | `languageCode` | string | No | Language code for the finder (default: `en`) | | `settings` | object | No | Additional configuration settings | | `source` | string | No | Source of the finder creation (nullable) | | `ttl` | string | No | Time-to-live expiration timestamp in ISO 8601 format (nullable) | | `timestamps.created` | string | No | The date and time when the finder was created (ISO 8601 format) | | `timestamps.modified` | string | No | The date and time when the finder was last modified (ISO 8601 format) | ### Relationships | Relationship | Type | Description | |-------------|------|-------------| | `jobs` | array | Associated job resources | | `users` | array | Associated user resources | | `talents` | array | Associated talent resources | | `candidates` | array | Associated candidate resources | ### Behavior When a `query` is provided, OpenSearch is queried immediately. The `results` field is populated with matching documents and `status` is set to `completed` or `failed`.
84
84
  * Create Finder
85
85
  */
86
86
  async createFinderRaw(requestParameters, initOverrides) {
@@ -89,7 +89,7 @@ class FindersApi extends runtime.BaseAPI {
89
89
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FinderSchemaFromJSON)(jsonValue));
90
90
  }
91
91
  /**
92
- * Creates a new finder search in your account. ### Finder\'s Attributes Here is a table that describes the attributes of the finder object: | Attribute | Type | Required | Description | |-----------|------|----------|-------------| | `name` | string | Yes | The name of the finder search (1-256 characters) | | `type` | string | Yes | The type of search: talents, candidates, jobs, emails, users, reports | | `query` | object | No | The search query parameters sent to OpenSearch (e.g. `{ \"type\": \"talents\", \"jobId\": \"...\" }`) | | `results` | object | No | The search results (auto-populated after OpenSearch query execution) | | `status` | string | No | The current status: active (default), pending, completed, failed, archived | | `languageCode` | string | No | Language code for the finder (default: `en`) | | `settings` | object | No | Additional configuration settings | | `source` | string | No | Source of the finder creation (nullable) | | `ttl` | string | No | Time-to-live expiration timestamp in ISO 8601 format (nullable) | | `timestamps.created` | string | No | The date and time when the finder was created (ISO 8601 format) | | `timestamps.modified` | string | No | The date and time when the finder was last modified (ISO 8601 format) | ### Relationships | Relationship | Type | Description | |-------------|------|-------------| | `jobs` | array | Associated job resources | | `users` | array | Associated user resources | | `talents` | array | Associated talent resources | | `candidates` | array | Associated candidate resources | ### Behavior When a `query` is provided, OpenSearch is queried immediately. The `results` field is populated with matching documents and `status` is set to `completed` or `failed`.
92
+ * Creates a new finder search in your account. Roles `recruiter`, `recops`, `owner` and `sysowner` only - search across the talent and candidate pool is limited to the roles that screen people. ### Finder\'s Attributes Here is a table that describes the attributes of the finder object: | Attribute | Type | Required | Description | |-----------|------|----------|-------------| | `name` | string | Yes | The name of the finder search (1-256 characters) | | `type` | string | Yes | The type of search: talents, candidates, jobs, emails, users, reports | | `query` | object | No | The search query parameters sent to OpenSearch (e.g. `{ \"type\": \"talents\", \"jobId\": \"...\" }`) | | `results` | object | No | The search results (auto-populated after OpenSearch query execution) | | `status` | string | No | The current status: active (default), pending, completed, failed, archived | | `languageCode` | string | No | Language code for the finder (default: `en`) | | `settings` | object | No | Additional configuration settings | | `source` | string | No | Source of the finder creation (nullable) | | `ttl` | string | No | Time-to-live expiration timestamp in ISO 8601 format (nullable) | | `timestamps.created` | string | No | The date and time when the finder was created (ISO 8601 format) | | `timestamps.modified` | string | No | The date and time when the finder was last modified (ISO 8601 format) | ### Relationships | Relationship | Type | Description | |-------------|------|-------------| | `jobs` | array | Associated job resources | | `users` | array | Associated user resources | | `talents` | array | Associated talent resources | | `candidates` | array | Associated candidate resources | ### Behavior When a `query` is provided, OpenSearch is queried immediately. The `results` field is populated with matching documents and `status` is set to `completed` or `failed`.
93
93
  * Create Finder
94
94
  */
95
95
  async createFinder(requestParameters, initOverrides) {
@@ -122,7 +122,7 @@ class FindersApi extends runtime.BaseAPI {
122
122
  };
123
123
  }
124
124
  /**
125
- * This endpoint allows you to delete a specific finder from your account. Once deleted, the finder\'s information will be permanently removed and cannot be recovered.
125
+ * This endpoint allows you to delete a specific finder from your account. Once deleted, the finder\'s information will be permanently removed and cannot be recovered. Roles `recruiter`, `recops`, `owner` and `sysowner` only.
126
126
  * Delete Finder
127
127
  */
128
128
  async deleteFinderRaw(requestParameters, initOverrides) {
@@ -131,7 +131,7 @@ class FindersApi extends runtime.BaseAPI {
131
131
  return new runtime.VoidApiResponse(response);
132
132
  }
133
133
  /**
134
- * This endpoint allows you to delete a specific finder from your account. Once deleted, the finder\'s information will be permanently removed and cannot be recovered.
134
+ * This endpoint allows you to delete a specific finder from your account. Once deleted, the finder\'s information will be permanently removed and cannot be recovered. Roles `recruiter`, `recops`, `owner` and `sysowner` only.
135
135
  * Delete Finder
136
136
  */
137
137
  async deleteFinder(requestParameters, initOverrides) {
@@ -253,7 +253,7 @@ class FindersApi extends runtime.BaseAPI {
253
253
  };
254
254
  }
255
255
  /**
256
- * Returns a collection of your account finders ## Overview Returns a collection of your account finders, sorted by the time they were inserted into the system in ascending order. ### Finders Endpoints Pagination The finders endpoints support two versions of pagination: traditional and cursor-based. Note that the parameters for these pagination methods cannot coexist; using them together will result in a bad request error. :::tip Pagination tip Ensure that when using traditional pagination, you use `pageNumber`, and when using cursor-based pagination, you use either `pageAfter` or `pageBefore`, but not both together. ::: #### More information For more information, see the [pagination documentation](/docs/pagination).
256
+ * Returns a collection of your account finders. Roles `recruiter`, `recops`, `owner` and `sysowner` only - a finder row carries its hit list, so reading one is reading the search results. ## Overview Returns a collection of your account finders, sorted by the time they were inserted into the system in ascending order. ### Finders Endpoints Pagination The finders endpoints support two versions of pagination: traditional and cursor-based. Note that the parameters for these pagination methods cannot coexist; using them together will result in a bad request error. :::tip Pagination tip Ensure that when using traditional pagination, you use `pageNumber`, and when using cursor-based pagination, you use either `pageAfter` or `pageBefore`, but not both together. ::: #### More information For more information, see the [pagination documentation](/docs/pagination).
257
257
  * List Finders
258
258
  */
259
259
  async listFindersRaw(requestParameters, initOverrides) {
@@ -262,7 +262,7 @@ class FindersApi extends runtime.BaseAPI {
262
262
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FindersSchemaFromJSON)(jsonValue));
263
263
  }
264
264
  /**
265
- * Returns a collection of your account finders ## Overview Returns a collection of your account finders, sorted by the time they were inserted into the system in ascending order. ### Finders Endpoints Pagination The finders endpoints support two versions of pagination: traditional and cursor-based. Note that the parameters for these pagination methods cannot coexist; using them together will result in a bad request error. :::tip Pagination tip Ensure that when using traditional pagination, you use `pageNumber`, and when using cursor-based pagination, you use either `pageAfter` or `pageBefore`, but not both together. ::: #### More information For more information, see the [pagination documentation](/docs/pagination).
265
+ * Returns a collection of your account finders. Roles `recruiter`, `recops`, `owner` and `sysowner` only - a finder row carries its hit list, so reading one is reading the search results. ## Overview Returns a collection of your account finders, sorted by the time they were inserted into the system in ascending order. ### Finders Endpoints Pagination The finders endpoints support two versions of pagination: traditional and cursor-based. Note that the parameters for these pagination methods cannot coexist; using them together will result in a bad request error. :::tip Pagination tip Ensure that when using traditional pagination, you use `pageNumber`, and when using cursor-based pagination, you use either `pageAfter` or `pageBefore`, but not both together. ::: #### More information For more information, see the [pagination documentation](/docs/pagination).
266
266
  * List Finders
267
267
  */
268
268
  async listFinders(requestParameters = {}, initOverrides) {
@@ -295,7 +295,7 @@ class FindersApi extends runtime.BaseAPI {
295
295
  };
296
296
  }
297
297
  /**
298
- * This endpoint retrieves details of a specific finder from your account. You can view information such as name, type, query, results, status, settings, and other relevant attributes of the finder.
298
+ * This endpoint retrieves details of a specific finder from your account. You can view information such as name, type, query, results, status, settings, and other relevant attributes of the finder. Roles `recruiter`, `recops`, `owner` and `sysowner` only.
299
299
  * Show Finder
300
300
  */
301
301
  async showFinderRaw(requestParameters, initOverrides) {
@@ -304,7 +304,7 @@ class FindersApi extends runtime.BaseAPI {
304
304
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FinderSchemaFromJSON)(jsonValue));
305
305
  }
306
306
  /**
307
- * This endpoint retrieves details of a specific finder from your account. You can view information such as name, type, query, results, status, settings, and other relevant attributes of the finder.
307
+ * This endpoint retrieves details of a specific finder from your account. You can view information such as name, type, query, results, status, settings, and other relevant attributes of the finder. Roles `recruiter`, `recops`, `owner` and `sysowner` only.
308
308
  * Show Finder
309
309
  */
310
310
  async showFinder(requestParameters, initOverrides) {
@@ -342,7 +342,7 @@ class FindersApi extends runtime.BaseAPI {
342
342
  };
343
343
  }
344
344
  /**
345
- * This endpoint allows you to update details of a specific finder in your account. You can modify information such as name, query, status, settings, and other relevant attributes of the finder. Only the fields provided in the request will be updated.
345
+ * This endpoint allows you to update details of a specific finder in your account. You can modify information such as name, query, status, settings, and other relevant attributes of the finder. Only the fields provided in the request will be updated. Roles `recruiter`, `recops`, `owner` and `sysowner` only.
346
346
  * Update Finder
347
347
  */
348
348
  async updateFinderRaw(requestParameters, initOverrides) {
@@ -351,7 +351,7 @@ class FindersApi extends runtime.BaseAPI {
351
351
  return new runtime.JSONApiResponse(response, (jsonValue) => (0, index_1.FinderSchemaFromJSON)(jsonValue));
352
352
  }
353
353
  /**
354
- * This endpoint allows you to update details of a specific finder in your account. You can modify information such as name, query, status, settings, and other relevant attributes of the finder. Only the fields provided in the request will be updated.
354
+ * This endpoint allows you to update details of a specific finder in your account. You can modify information such as name, query, status, settings, and other relevant attributes of the finder. Only the fields provided in the request will be updated. Roles `recruiter`, `recops`, `owner` and `sysowner` only.
355
355
  * Update Finder
356
356
  */
357
357
  async updateFinder(requestParameters, initOverrides) {
@@ -0,0 +1,157 @@
1
+ /**
2
+ * SmartyMeet Dev03 API REST
3
+ * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
4
+ *
5
+ * The version of the OpenAPI document: 1.0.1
6
+ * Contact: developer@smartymeet.com
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import * as runtime from '../runtime';
13
+ import type { GuestResponseSchema, ResponseSchema, ResponsesSchema, SubmitGuestResponseRequestBody } from '../models/index';
14
+ export interface GuestResponseOptionsRequest {
15
+ responseId: string;
16
+ }
17
+ export interface ListResponsesRequest {
18
+ filterStatus?: ListResponsesFilterStatusEnum;
19
+ filterSurveyId?: string;
20
+ filterCandidateId?: string;
21
+ filterCreatedFrom?: Date;
22
+ filterCreatedTo?: Date;
23
+ filterModifiedFrom?: Date;
24
+ filterModifiedTo?: Date;
25
+ pageSize?: number;
26
+ pageNumber?: number;
27
+ pageAfter?: string;
28
+ pageBefore?: string;
29
+ }
30
+ export interface ResponseOptionsRequest {
31
+ responseId: string;
32
+ }
33
+ export interface ShowGuestResponseRequest {
34
+ responseId: string;
35
+ tenantId: string;
36
+ token: string;
37
+ }
38
+ export interface ShowResponseRequest {
39
+ responseId: string;
40
+ }
41
+ export interface SubmitGuestResponseRequest {
42
+ responseId: string;
43
+ submitGuestResponseRequestBody: SubmitGuestResponseRequestBody;
44
+ }
45
+ /**
46
+ *
47
+ */
48
+ export declare class ResponsesApi extends runtime.BaseAPI {
49
+ /**
50
+ * Creates request options for guestResponseOptions without sending the request
51
+ */
52
+ guestResponseOptionsRequestOpts(requestParameters: GuestResponseOptionsRequest): Promise<runtime.RequestOpts>;
53
+ /**
54
+ * Enable CORS by returning correct headers
55
+ * Guest Response Options
56
+ */
57
+ guestResponseOptionsRaw(requestParameters: GuestResponseOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
58
+ /**
59
+ * Enable CORS by returning correct headers
60
+ * Guest Response Options
61
+ */
62
+ guestResponseOptions(requestParameters: GuestResponseOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
63
+ /**
64
+ * Creates request options for listResponses without sending the request
65
+ */
66
+ listResponsesRequestOpts(requestParameters: ListResponsesRequest): Promise<runtime.RequestOpts>;
67
+ /**
68
+ * Returns a collection of survey responses for the caller\'s tenant. Recruiter surface - requires a session (CUSTOM authorizer); the recipient never reaches this path. Use one filter at a time (one GSI per query): - `filterStatus=completed` - answered responses - `filterSurveyId=<id>` - responses of one survey - `filterCandidateId=<id>` - responses sent to one candidate `answers` is keyed by questionId and absent until the recipient answers. `results` (e.g. the NPS category) are computed server-side on submit and are read-only. The NPS number itself is derived by the reader as `(promoters - detractors) / total * 100`.
69
+ * List Responses
70
+ */
71
+ listResponsesRaw(requestParameters: ListResponsesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponsesSchema>>;
72
+ /**
73
+ * Returns a collection of survey responses for the caller\'s tenant. Recruiter surface - requires a session (CUSTOM authorizer); the recipient never reaches this path. Use one filter at a time (one GSI per query): - `filterStatus=completed` - answered responses - `filterSurveyId=<id>` - responses of one survey - `filterCandidateId=<id>` - responses sent to one candidate `answers` is keyed by questionId and absent until the recipient answers. `results` (e.g. the NPS category) are computed server-side on submit and are read-only. The NPS number itself is derived by the reader as `(promoters - detractors) / total * 100`.
74
+ * List Responses
75
+ */
76
+ listResponses(requestParameters?: ListResponsesRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponsesSchema>;
77
+ /**
78
+ * Creates request options for responseOptions without sending the request
79
+ */
80
+ responseOptionsRequestOpts(requestParameters: ResponseOptionsRequest): Promise<runtime.RequestOpts>;
81
+ /**
82
+ * Enable CORS by returning correct headers
83
+ * Response Options
84
+ */
85
+ responseOptionsRaw(requestParameters: ResponseOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
86
+ /**
87
+ * Enable CORS by returning correct headers
88
+ * Response Options
89
+ */
90
+ responseOptions(requestParameters: ResponseOptionsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
91
+ /**
92
+ * Creates request options for responsesOptions without sending the request
93
+ */
94
+ responsesOptionsRequestOpts(): Promise<runtime.RequestOpts>;
95
+ /**
96
+ * Enable CORS by returning correct headers
97
+ * Responses Options
98
+ */
99
+ responsesOptionsRaw(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<void>>;
100
+ /**
101
+ * Enable CORS by returning correct headers
102
+ * Responses Options
103
+ */
104
+ responsesOptions(initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<void>;
105
+ /**
106
+ * Creates request options for showGuestResponse without sending the request
107
+ */
108
+ showGuestResponseRequestOpts(requestParameters: ShowGuestResponseRequest): Promise<runtime.RequestOpts>;
109
+ /**
110
+ * Recipient opens the survey link from the email. There is no authorizer on this path: auth is `tenantId` + `token` (the per-response accessToken minted at create) read from the link query string, never a session. The response is an explicit allowlist - status, languageCode, candidateName, jobTitle, companyName, title, questions, answers, expiresAt, respondedAt. `title` and `questions` are the SNAPSHOT of the published survey definition stamped at mint time. No `meta` (it holds the accessToken), no candidateId / jobId, no surveyId / surveyVersion, no results, no relationships. A pending response past `expiresAt` reads back with status `expired`; an answered one reads back `completed` with the stored answers so the FE renders the thank-you state. Every failure mode (unknown tenant, unknown response, wrong token) collapses to the same 404 - existence is never leaked.
111
+ * Show Guest Response
112
+ */
113
+ showGuestResponseRaw(requestParameters: ShowGuestResponseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuestResponseSchema>>;
114
+ /**
115
+ * Recipient opens the survey link from the email. There is no authorizer on this path: auth is `tenantId` + `token` (the per-response accessToken minted at create) read from the link query string, never a session. The response is an explicit allowlist - status, languageCode, candidateName, jobTitle, companyName, title, questions, answers, expiresAt, respondedAt. `title` and `questions` are the SNAPSHOT of the published survey definition stamped at mint time. No `meta` (it holds the accessToken), no candidateId / jobId, no surveyId / surveyVersion, no results, no relationships. A pending response past `expiresAt` reads back with status `expired`; an answered one reads back `completed` with the stored answers so the FE renders the thank-you state. Every failure mode (unknown tenant, unknown response, wrong token) collapses to the same 404 - existence is never leaked.
116
+ * Show Guest Response
117
+ */
118
+ showGuestResponse(requestParameters: ShowGuestResponseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GuestResponseSchema>;
119
+ /**
120
+ * Creates request options for showResponse without sending the request
121
+ */
122
+ showResponseRequestOpts(requestParameters: ShowResponseRequest): Promise<runtime.RequestOpts>;
123
+ /**
124
+ * Returns a single survey response, including the question snapshot the recipient saw, their `answers` and the server-computed `results`. Recruiter surface - requires a session (CUSTOM authorizer). Free-text answers are recipient-authored - treat them as untrusted content and never feed them to an LLM.
125
+ * Show Response
126
+ */
127
+ showResponseRaw(requestParameters: ShowResponseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<ResponseSchema>>;
128
+ /**
129
+ * Returns a single survey response, including the question snapshot the recipient saw, their `answers` and the server-computed `results`. Recruiter surface - requires a session (CUSTOM authorizer). Free-text answers are recipient-authored - treat them as untrusted content and never feed them to an LLM.
130
+ * Show Response
131
+ */
132
+ showResponse(requestParameters: ShowResponseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<ResponseSchema>;
133
+ /**
134
+ * Creates request options for submitGuestResponse without sending the request
135
+ */
136
+ submitGuestResponseRequestOpts(requestParameters: SubmitGuestResponseRequest): Promise<runtime.RequestOpts>;
137
+ /**
138
+ * Recipient answers the survey. There is no authorizer on this path: auth is `meta.tenantId` + `meta.accessToken` from the emailed link, never a session. `answers` is an object keyed by the snapshot\'s questionIds. Value shape per question type: scale -> integer within scaleMin..scaleMax; single-choice -> one option `value` slug; multiple-choice -> array of unique option `value` slugs; open-text -> string (maxLength). Every answer is validated against the row\'s snapshot - unknown questionIds, missing required answers, out-of-range scales, unknown option slugs and over-length text are all rejected in ONE 400 with per-question detail. `results` (e.g. the NPS category) are computed server-side and are read-only - a client-supplied value is ignored. Single use: allowed only from status `pending` and only before `expiresAt`. A second submit is a 400-class error, never a silent overwrite. Token mismatch returns the same 404 as an unknown response. The response carries the same guest allowlist as showGuestResponse.
139
+ * Submit Guest Response
140
+ */
141
+ submitGuestResponseRaw(requestParameters: SubmitGuestResponseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<runtime.ApiResponse<GuestResponseSchema>>;
142
+ /**
143
+ * Recipient answers the survey. There is no authorizer on this path: auth is `meta.tenantId` + `meta.accessToken` from the emailed link, never a session. `answers` is an object keyed by the snapshot\'s questionIds. Value shape per question type: scale -> integer within scaleMin..scaleMax; single-choice -> one option `value` slug; multiple-choice -> array of unique option `value` slugs; open-text -> string (maxLength). Every answer is validated against the row\'s snapshot - unknown questionIds, missing required answers, out-of-range scales, unknown option slugs and over-length text are all rejected in ONE 400 with per-question detail. `results` (e.g. the NPS category) are computed server-side and are read-only - a client-supplied value is ignored. Single use: allowed only from status `pending` and only before `expiresAt`. A second submit is a 400-class error, never a silent overwrite. Token mismatch returns the same 404 as an unknown response. The response carries the same guest allowlist as showGuestResponse.
144
+ * Submit Guest Response
145
+ */
146
+ submitGuestResponse(requestParameters: SubmitGuestResponseRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise<GuestResponseSchema>;
147
+ }
148
+ /**
149
+ * @export
150
+ */
151
+ export declare const ListResponsesFilterStatusEnum: {
152
+ readonly Pending: "pending";
153
+ readonly Completed: "completed";
154
+ readonly Expired: "expired";
155
+ };
156
+ export type ListResponsesFilterStatusEnum = typeof ListResponsesFilterStatusEnum[keyof typeof ListResponsesFilterStatusEnum];
157
+ //# sourceMappingURL=ResponsesApi.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ResponsesApi.d.ts","sourceRoot":"","sources":["../../src/apis/ResponsesApi.ts"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,OAAO,MAAM,YAAY,CAAC;AACtC,OAAO,KAAK,EAEV,mBAAmB,EACnB,cAAc,EACd,eAAe,EACf,8BAA8B,EAC/B,MAAM,iBAAiB,CAAC;AAczB,MAAM,WAAW,2BAA2B;IACxC,UAAU,EAAE,MAAM,CAAC;CACtB;AAED,MAAM,WAAW,oBAAoB;IACjC,YAAY,CAAC,EAAE,6BAA6B,CAAC;IAC7C,cAAc,CAAC,EAAE,MAAM,CAAC;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B,iBAAiB,CAAC,EAAE,IAAI,CAAC;IACzB,eAAe,CAAC,EAAE,IAAI,CAAC;IACvB,kBAAkB,CAAC,EAAE,IAAI,CAAC;IAC1B,gBAAgB,C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