@smartytalent/openai-tools 0.1.16 → 0.1.18

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 (2) hide show
  1. package/dist/tools.json +423 -79
  2. package/package.json +1 -1
package/dist/tools.json CHANGED
@@ -6922,47 +6922,145 @@
6922
6922
  {
6923
6923
  "type": "function",
6924
6924
  "function": {
6925
- "name": "upload_form_file",
6926
- "description": "Upload Form File",
6925
+ "name": "create_submission",
6926
+ "description": "Create Submission",
6927
6927
  "parameters": {
6928
6928
  "type": "object",
6929
+ "required": [
6930
+ "name",
6931
+ "email",
6932
+ "tenantId",
6933
+ "formId"
6934
+ ],
6929
6935
  "properties": {
6936
+ "tenantId": {
6937
+ "type": "string"
6938
+ },
6930
6939
  "formId": {
6931
- "type": "string",
6932
- "description": "formId parameter"
6940
+ "type": "string"
6933
6941
  },
6934
- "requestBody": {
6942
+ "name": {
6943
+ "type": "string"
6944
+ },
6945
+ "email": {
6946
+ "type": "string"
6947
+ },
6948
+ "phone": {
6949
+ "type": "string"
6950
+ },
6951
+ "files": {
6952
+ "type": "array",
6953
+ "items": {
6954
+ "type": "object",
6955
+ "properties": {
6956
+ "fileKey": {
6957
+ "type": "string"
6958
+ },
6959
+ "originalFilename": {
6960
+ "type": "string"
6961
+ }
6962
+ }
6963
+ }
6964
+ },
6965
+ "fields": {
6966
+ "type": "object"
6967
+ },
6968
+ "language": {
6969
+ "type": "string"
6970
+ },
6971
+ "jobId": {
6972
+ "type": "string"
6973
+ },
6974
+ "referral": {
6935
6975
  "type": "object",
6936
- "required": [
6937
- "fileName",
6938
- "contentType",
6939
- "tenantId"
6940
- ],
6941
6976
  "properties": {
6942
- "fileName": {
6977
+ "referrerName": {
6978
+ "type": "string"
6979
+ },
6980
+ "referrerEmail": {
6943
6981
  "type": "string"
6944
6982
  },
6945
- "contentType": {
6983
+ "relationship": {
6946
6984
  "type": "string"
6947
6985
  },
6948
- "tenantId": {
6986
+ "note": {
6949
6987
  "type": "string"
6950
6988
  }
6951
6989
  }
6990
+ },
6991
+ "consentCurrent": {
6992
+ "type": "boolean"
6993
+ },
6994
+ "consentFuture": {
6995
+ "type": "boolean"
6952
6996
  }
6953
- },
6954
- "required": [
6955
- "formId",
6956
- "requestBody"
6957
- ]
6997
+ }
6998
+ }
6999
+ }
7000
+ },
7001
+ {
7002
+ "type": "function",
7003
+ "function": {
7004
+ "name": "list_submissions",
7005
+ "description": "List Submissions",
7006
+ "parameters": {
7007
+ "type": "object",
7008
+ "properties": {
7009
+ "filterStatus": {
7010
+ "type": "string",
7011
+ "description": "Returns submissions with the current status.",
7012
+ "enum": [
7013
+ "received",
7014
+ "processing",
7015
+ "processed",
7016
+ "failed"
7017
+ ]
7018
+ },
7019
+ "filterEmail": {
7020
+ "type": "string",
7021
+ "description": "Filter submissions by email address."
7022
+ },
7023
+ "filterCreatedFrom": {
7024
+ "type": "string",
7025
+ "description": "Filters results to include only those created from the specified date and time. The value must be in ISO 8601 format."
7026
+ },
7027
+ "filterCreatedTo": {
7028
+ "type": "string",
7029
+ "description": "Filters results to include only those created up to the specified date and time. The value must be in ISO 8601 format."
7030
+ },
7031
+ "filterModifiedFrom": {
7032
+ "type": "string",
7033
+ "description": "Filters results to include only those modified from the specified date and time. The value must be in ISO 8601 format."
7034
+ },
7035
+ "filterModifiedTo": {
7036
+ "type": "string",
7037
+ "description": "Filters results to include only those modified up to the specified date and time. The value must be in ISO 8601 format."
7038
+ },
7039
+ "pageSize": {
7040
+ "type": "integer",
7041
+ "description": "Specifies the number of items to retrieve per page. The maximum value is 100."
7042
+ },
7043
+ "pageNumber": {
7044
+ "type": "integer",
7045
+ "description": "Specifies the page number to retrieve. Used for traditional pagination."
7046
+ },
7047
+ "pageAfter": {
7048
+ "type": "string",
7049
+ "description": "Returns the data encoded in Base64 format, used for cursor-based pagination"
7050
+ },
7051
+ "pageBefore": {
7052
+ "type": "string",
7053
+ "description": "Returns the data encoded in Base64 format, used for cursor-based pagination"
7054
+ }
7055
+ }
6958
7056
  }
6959
7057
  }
6960
7058
  },
6961
7059
  {
6962
7060
  "type": "function",
6963
7061
  "function": {
6964
- "name": "form_uploads_options",
6965
- "description": "Form Uploads Options",
7062
+ "name": "submissions_options",
7063
+ "description": "Submissions Options",
6966
7064
  "parameters": {
6967
7065
  "type": "object",
6968
7066
  "properties": {}
@@ -6972,69 +7070,299 @@
6972
7070
  {
6973
7071
  "type": "function",
6974
7072
  "function": {
6975
- "name": "submit_form",
6976
- "description": "Submit Form",
7073
+ "name": "upload_submission_file",
7074
+ "description": "Upload Submission File",
6977
7075
  "parameters": {
6978
7076
  "type": "object",
7077
+ "required": [
7078
+ "fileName",
7079
+ "contentType",
7080
+ "tenantId",
7081
+ "formId"
7082
+ ],
6979
7083
  "properties": {
7084
+ "fileName": {
7085
+ "type": "string"
7086
+ },
7087
+ "contentType": {
7088
+ "type": "string"
7089
+ },
7090
+ "tenantId": {
7091
+ "type": "string"
7092
+ },
6980
7093
  "formId": {
7094
+ "type": "string"
7095
+ }
7096
+ }
7097
+ }
7098
+ }
7099
+ },
7100
+ {
7101
+ "type": "function",
7102
+ "function": {
7103
+ "name": "submission_uploads_options",
7104
+ "description": "Submission Uploads Options",
7105
+ "parameters": {
7106
+ "type": "object",
7107
+ "properties": {}
7108
+ }
7109
+ }
7110
+ },
7111
+ {
7112
+ "type": "function",
7113
+ "function": {
7114
+ "name": "show_submission",
7115
+ "description": "Show Submission",
7116
+ "parameters": {
7117
+ "type": "object",
7118
+ "properties": {
7119
+ "submissionId": {
6981
7120
  "type": "string",
6982
- "description": "formId parameter"
7121
+ "description": "submissionId parameter"
7122
+ }
7123
+ },
7124
+ "required": [
7125
+ "submissionId"
7126
+ ]
7127
+ }
7128
+ }
7129
+ },
7130
+ {
7131
+ "type": "function",
7132
+ "function": {
7133
+ "name": "update_submission",
7134
+ "description": "Update Submission",
7135
+ "parameters": {
7136
+ "type": "object",
7137
+ "properties": {
7138
+ "submissionId": {
7139
+ "type": "string",
7140
+ "description": "submissionId parameter"
6983
7141
  },
6984
7142
  "requestBody": {
7143
+ "title": "UpdateSubmissionRequestBody",
6985
7144
  "type": "object",
6986
7145
  "required": [
6987
- "name",
6988
- "email",
6989
- "tenantId"
7146
+ "data"
6990
7147
  ],
6991
7148
  "properties": {
6992
- "tenantId": {
6993
- "type": "string"
6994
- },
6995
- "name": {
6996
- "type": "string"
6997
- },
6998
- "email": {
6999
- "type": "string"
7000
- },
7001
- "phone": {
7002
- "type": "string"
7003
- },
7004
- "files": {
7005
- "type": "array",
7006
- "items": {
7007
- "type": "object",
7008
- "properties": {
7009
- "fileKey": {
7010
- "type": "string"
7011
- },
7012
- "originalFilename": {
7013
- "type": "string"
7149
+ "data": {
7150
+ "title": "UpdateSubmissionRequestBodyData",
7151
+ "type": "object",
7152
+ "required": [
7153
+ "type",
7154
+ "id",
7155
+ "attributes"
7156
+ ],
7157
+ "properties": {
7158
+ "type": {
7159
+ "type": "string",
7160
+ "enum": [
7161
+ "submissions"
7162
+ ]
7163
+ },
7164
+ "id": {
7165
+ "type": "string"
7166
+ },
7167
+ "attributes": {
7168
+ "title": "SubmissionAttributesSchema",
7169
+ "type": "object",
7170
+ "required": [
7171
+ "name",
7172
+ "email"
7173
+ ],
7174
+ "properties": {
7175
+ "name": {
7176
+ "type": "string"
7177
+ },
7178
+ "email": {
7179
+ "type": "string"
7180
+ },
7181
+ "phone": {
7182
+ "type": "string"
7183
+ },
7184
+ "source": {
7185
+ "type": "string",
7186
+ "enum": [
7187
+ "form",
7188
+ "email",
7189
+ "call",
7190
+ "api"
7191
+ ]
7192
+ },
7193
+ "status": {
7194
+ "type": "string",
7195
+ "enum": [
7196
+ "received",
7197
+ "processing",
7198
+ "processed",
7199
+ "failed"
7200
+ ]
7201
+ },
7202
+ "language": {
7203
+ "type": "string"
7204
+ },
7205
+ "fields": {
7206
+ "type": "object",
7207
+ "description": "Custom form field answers keyed by field identifier"
7208
+ },
7209
+ "files": {
7210
+ "type": "array",
7211
+ "items": {
7212
+ "type": "object",
7213
+ "properties": {
7214
+ "key": {
7215
+ "type": "string"
7216
+ },
7217
+ "bucket": {
7218
+ "type": "string"
7219
+ },
7220
+ "name": {
7221
+ "type": "string"
7222
+ },
7223
+ "contentType": {
7224
+ "type": "string"
7225
+ }
7226
+ }
7227
+ }
7228
+ },
7229
+ "referral": {
7230
+ "type": "object",
7231
+ "properties": {
7232
+ "referrerName": {
7233
+ "type": "string"
7234
+ },
7235
+ "referrerEmail": {
7236
+ "type": "string"
7237
+ },
7238
+ "relationship": {
7239
+ "type": "string"
7240
+ },
7241
+ "note": {
7242
+ "type": "string"
7243
+ }
7244
+ }
7245
+ },
7246
+ "consent": {
7247
+ "type": "object",
7248
+ "properties": {
7249
+ "current": {
7250
+ "type": "boolean"
7251
+ },
7252
+ "future": {
7253
+ "type": "boolean"
7254
+ }
7255
+ }
7256
+ },
7257
+ "timestamps": {
7258
+ "title": "ResourceTimestampsSchema",
7259
+ "type": "object",
7260
+ "properties": {
7261
+ "created": {
7262
+ "type": "string",
7263
+ "format": "date-time"
7264
+ },
7265
+ "modified": {
7266
+ "type": "string",
7267
+ "format": "date-time"
7268
+ }
7269
+ }
7270
+ }
7271
+ }
7272
+ },
7273
+ "relationships": {
7274
+ "title": "SubmissionRelationshipsSchema",
7275
+ "type": "object",
7276
+ "properties": {
7277
+ "forms": {
7278
+ "title": "SubmissionRelationshipsFormsSchema",
7279
+ "type": "object",
7280
+ "properties": {
7281
+ "data": {
7282
+ "type": "array",
7283
+ "items": {
7284
+ "type": "object",
7285
+ "properties": {
7286
+ "type": {
7287
+ "type": "string"
7288
+ },
7289
+ "id": {
7290
+ "type": "string"
7291
+ }
7292
+ }
7293
+ }
7294
+ }
7295
+ }
7296
+ },
7297
+ "jobs": {
7298
+ "title": "SubmissionRelationshipsJobsSchema",
7299
+ "type": "object",
7300
+ "properties": {
7301
+ "data": {
7302
+ "type": "array",
7303
+ "items": {
7304
+ "type": "object",
7305
+ "properties": {
7306
+ "type": {
7307
+ "type": "string"
7308
+ },
7309
+ "id": {
7310
+ "type": "string"
7311
+ }
7312
+ }
7313
+ }
7314
+ }
7315
+ }
7316
+ },
7317
+ "talents": {
7318
+ "title": "SubmissionRelationshipsTalentsSchema",
7319
+ "type": "object",
7320
+ "properties": {
7321
+ "data": {
7322
+ "type": "array",
7323
+ "items": {
7324
+ "type": "object",
7325
+ "properties": {
7326
+ "type": {
7327
+ "type": "string"
7328
+ },
7329
+ "id": {
7330
+ "type": "string"
7331
+ }
7332
+ }
7333
+ }
7334
+ }
7335
+ }
7336
+ },
7337
+ "candidates": {
7338
+ "title": "SubmissionRelationshipsCandidatesSchema",
7339
+ "type": "object",
7340
+ "properties": {
7341
+ "data": {
7342
+ "type": "array",
7343
+ "items": {
7344
+ "type": "object",
7345
+ "properties": {
7346
+ "type": {
7347
+ "type": "string"
7348
+ },
7349
+ "id": {
7350
+ "type": "string"
7351
+ }
7352
+ }
7353
+ }
7354
+ }
7355
+ }
7356
+ }
7014
7357
  }
7015
7358
  }
7016
7359
  }
7017
- },
7018
- "language": {
7019
- "type": "string"
7020
- },
7021
- "sourceJobShortCode": {
7022
- "type": "string"
7023
- },
7024
- "jobId": {
7025
- "type": "string"
7026
- },
7027
- "consentCurrent": {
7028
- "type": "boolean"
7029
- },
7030
- "consentFuture": {
7031
- "type": "boolean"
7032
7360
  }
7033
7361
  }
7034
7362
  }
7035
7363
  },
7036
7364
  "required": [
7037
- "formId",
7365
+ "submissionId",
7038
7366
  "requestBody"
7039
7367
  ]
7040
7368
  }
@@ -7043,8 +7371,35 @@
7043
7371
  {
7044
7372
  "type": "function",
7045
7373
  "function": {
7046
- "name": "form_submissions_options",
7047
- "description": "Form Submissions Options",
7374
+ "name": "delete_submission",
7375
+ "description": "Delete Submission",
7376
+ "parameters": {
7377
+ "type": "object",
7378
+ "properties": {
7379
+ "submissionId": {
7380
+ "type": "string",
7381
+ "description": "submissionId parameter"
7382
+ },
7383
+ "permanentDelete": {
7384
+ "type": "string",
7385
+ "description": "Set to true for permanent deletion.",
7386
+ "enum": [
7387
+ "true",
7388
+ "false"
7389
+ ]
7390
+ }
7391
+ },
7392
+ "required": [
7393
+ "submissionId"
7394
+ ]
7395
+ }
7396
+ }
7397
+ },
7398
+ {
7399
+ "type": "function",
7400
+ "function": {
7401
+ "name": "submission_options",
7402
+ "description": "Submission Options",
7048
7403
  "parameters": {
7049
7404
  "type": "object",
7050
7405
  "properties": {}
@@ -11180,19 +11535,8 @@
11180
11535
  {
11181
11536
  "type": "function",
11182
11537
  "function": {
11183
- "name": "cancel_run",
11184
- "description": "Cancel Run",
11185
- "parameters": {
11186
- "type": "object",
11187
- "properties": {}
11188
- }
11189
- }
11190
- },
11191
- {
11192
- "type": "function",
11193
- "function": {
11194
- "name": "retry_run",
11195
- "description": "Retry Run",
11538
+ "name": "update_run",
11539
+ "description": "Update Run",
11196
11540
  "parameters": {
11197
11541
  "type": "object",
11198
11542
  "properties": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/openai-tools",
3
- "version": "0.1.16",
3
+ "version": "0.1.18",
4
4
  "description": "OpenAI function/tool definitions for SmartyTalent API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",