@smartytalent/openai-tools 0.1.17 → 0.1.19

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 +656 -66
  2. package/package.json +1 -1
package/dist/tools.json CHANGED
@@ -6922,47 +6922,290 @@
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
+ "title": "CreateSubmissionRequestBody",
6928
6929
  "type": "object",
6930
+ "required": [
6931
+ "data"
6932
+ ],
6929
6933
  "properties": {
6930
- "formId": {
6931
- "type": "string",
6932
- "description": "formId parameter"
6933
- },
6934
- "requestBody": {
6934
+ "data": {
6935
+ "title": "CreateSubmissionRequestBodyData",
6935
6936
  "type": "object",
6936
6937
  "required": [
6937
- "fileName",
6938
- "contentType",
6939
- "tenantId"
6938
+ "type",
6939
+ "attributes"
6940
6940
  ],
6941
6941
  "properties": {
6942
- "fileName": {
6943
- "type": "string"
6942
+ "type": {
6943
+ "type": "string",
6944
+ "enum": [
6945
+ "submissions"
6946
+ ]
6944
6947
  },
6945
- "contentType": {
6946
- "type": "string"
6948
+ "attributes": {
6949
+ "title": "SubmissionAttributesSchema",
6950
+ "type": "object",
6951
+ "required": [
6952
+ "name",
6953
+ "email"
6954
+ ],
6955
+ "properties": {
6956
+ "name": {
6957
+ "type": "string"
6958
+ },
6959
+ "email": {
6960
+ "type": "string"
6961
+ },
6962
+ "phone": {
6963
+ "type": "string"
6964
+ },
6965
+ "source": {
6966
+ "type": "string",
6967
+ "enum": [
6968
+ "form",
6969
+ "email",
6970
+ "call",
6971
+ "api"
6972
+ ]
6973
+ },
6974
+ "status": {
6975
+ "type": "string",
6976
+ "enum": [
6977
+ "received",
6978
+ "processing",
6979
+ "processed",
6980
+ "failed"
6981
+ ]
6982
+ },
6983
+ "language": {
6984
+ "type": "string"
6985
+ },
6986
+ "fields": {
6987
+ "type": "object",
6988
+ "description": "Custom form field answers keyed by field identifier"
6989
+ },
6990
+ "files": {
6991
+ "type": "array",
6992
+ "items": {
6993
+ "type": "object",
6994
+ "properties": {
6995
+ "key": {
6996
+ "type": "string"
6997
+ },
6998
+ "bucket": {
6999
+ "type": "string"
7000
+ },
7001
+ "name": {
7002
+ "type": "string"
7003
+ },
7004
+ "contentType": {
7005
+ "type": "string"
7006
+ }
7007
+ }
7008
+ }
7009
+ },
7010
+ "referral": {
7011
+ "type": "object",
7012
+ "properties": {
7013
+ "referrerName": {
7014
+ "type": "string"
7015
+ },
7016
+ "referrerEmail": {
7017
+ "type": "string"
7018
+ },
7019
+ "relationship": {
7020
+ "type": "string"
7021
+ },
7022
+ "note": {
7023
+ "type": "string"
7024
+ }
7025
+ }
7026
+ },
7027
+ "consent": {
7028
+ "type": "object",
7029
+ "properties": {
7030
+ "current": {
7031
+ "type": "boolean"
7032
+ },
7033
+ "future": {
7034
+ "type": "boolean"
7035
+ }
7036
+ }
7037
+ },
7038
+ "timestamps": {
7039
+ "title": "ResourceTimestampsSchema",
7040
+ "type": "object",
7041
+ "properties": {
7042
+ "created": {
7043
+ "type": "string",
7044
+ "format": "date-time"
7045
+ },
7046
+ "modified": {
7047
+ "type": "string",
7048
+ "format": "date-time"
7049
+ }
7050
+ }
7051
+ }
7052
+ }
6947
7053
  },
6948
- "tenantId": {
6949
- "type": "string"
7054
+ "relationships": {
7055
+ "title": "SubmissionRelationshipsSchema",
7056
+ "type": "object",
7057
+ "properties": {
7058
+ "forms": {
7059
+ "title": "SubmissionRelationshipsFormsSchema",
7060
+ "type": "object",
7061
+ "properties": {
7062
+ "data": {
7063
+ "type": "array",
7064
+ "items": {
7065
+ "type": "object",
7066
+ "properties": {
7067
+ "type": {
7068
+ "type": "string"
7069
+ },
7070
+ "id": {
7071
+ "type": "string"
7072
+ }
7073
+ }
7074
+ }
7075
+ }
7076
+ }
7077
+ },
7078
+ "jobs": {
7079
+ "title": "SubmissionRelationshipsJobsSchema",
7080
+ "type": "object",
7081
+ "properties": {
7082
+ "data": {
7083
+ "type": "array",
7084
+ "items": {
7085
+ "type": "object",
7086
+ "properties": {
7087
+ "type": {
7088
+ "type": "string"
7089
+ },
7090
+ "id": {
7091
+ "type": "string"
7092
+ }
7093
+ }
7094
+ }
7095
+ }
7096
+ }
7097
+ },
7098
+ "talents": {
7099
+ "title": "SubmissionRelationshipsTalentsSchema",
7100
+ "type": "object",
7101
+ "properties": {
7102
+ "data": {
7103
+ "type": "array",
7104
+ "items": {
7105
+ "type": "object",
7106
+ "properties": {
7107
+ "type": {
7108
+ "type": "string"
7109
+ },
7110
+ "id": {
7111
+ "type": "string"
7112
+ }
7113
+ }
7114
+ }
7115
+ }
7116
+ }
7117
+ },
7118
+ "candidates": {
7119
+ "title": "SubmissionRelationshipsCandidatesSchema",
7120
+ "type": "object",
7121
+ "properties": {
7122
+ "data": {
7123
+ "type": "array",
7124
+ "items": {
7125
+ "type": "object",
7126
+ "properties": {
7127
+ "type": {
7128
+ "type": "string"
7129
+ },
7130
+ "id": {
7131
+ "type": "string"
7132
+ }
7133
+ }
7134
+ }
7135
+ }
7136
+ }
7137
+ }
7138
+ }
6950
7139
  }
6951
7140
  }
6952
7141
  }
6953
- },
6954
- "required": [
6955
- "formId",
6956
- "requestBody"
6957
- ]
7142
+ }
6958
7143
  }
6959
7144
  }
6960
7145
  },
6961
7146
  {
6962
7147
  "type": "function",
6963
7148
  "function": {
6964
- "name": "form_uploads_options",
6965
- "description": "Form Uploads Options",
7149
+ "name": "list_submissions",
7150
+ "description": "List Submissions",
7151
+ "parameters": {
7152
+ "type": "object",
7153
+ "properties": {
7154
+ "filterStatus": {
7155
+ "type": "string",
7156
+ "description": "Returns submissions with the current status.",
7157
+ "enum": [
7158
+ "received",
7159
+ "processing",
7160
+ "processed",
7161
+ "failed"
7162
+ ]
7163
+ },
7164
+ "filterEmail": {
7165
+ "type": "string",
7166
+ "description": "Filter submissions by email address."
7167
+ },
7168
+ "filterCreatedFrom": {
7169
+ "type": "string",
7170
+ "description": "Filters results to include only those created from the specified date and time. The value must be in ISO 8601 format."
7171
+ },
7172
+ "filterCreatedTo": {
7173
+ "type": "string",
7174
+ "description": "Filters results to include only those created up to the specified date and time. The value must be in ISO 8601 format."
7175
+ },
7176
+ "filterModifiedFrom": {
7177
+ "type": "string",
7178
+ "description": "Filters results to include only those modified from the specified date and time. The value must be in ISO 8601 format."
7179
+ },
7180
+ "filterModifiedTo": {
7181
+ "type": "string",
7182
+ "description": "Filters results to include only those modified up to the specified date and time. The value must be in ISO 8601 format."
7183
+ },
7184
+ "pageSize": {
7185
+ "type": "integer",
7186
+ "description": "Specifies the number of items to retrieve per page. The maximum value is 100."
7187
+ },
7188
+ "pageNumber": {
7189
+ "type": "integer",
7190
+ "description": "Specifies the page number to retrieve. Used for traditional pagination."
7191
+ },
7192
+ "pageAfter": {
7193
+ "type": "string",
7194
+ "description": "Returns the data encoded in Base64 format, used for cursor-based pagination"
7195
+ },
7196
+ "pageBefore": {
7197
+ "type": "string",
7198
+ "description": "Returns the data encoded in Base64 format, used for cursor-based pagination"
7199
+ }
7200
+ }
7201
+ }
7202
+ }
7203
+ },
7204
+ {
7205
+ "type": "function",
7206
+ "function": {
7207
+ "name": "submissions_options",
7208
+ "description": "Submissions Options",
6966
7209
  "parameters": {
6967
7210
  "type": "object",
6968
7211
  "properties": {}
@@ -6972,69 +7215,389 @@
6972
7215
  {
6973
7216
  "type": "function",
6974
7217
  "function": {
6975
- "name": "submit_form",
6976
- "description": "Submit Form",
7218
+ "name": "create_guest_submission",
7219
+ "description": "Create Submission (Guest)",
6977
7220
  "parameters": {
6978
7221
  "type": "object",
7222
+ "required": [
7223
+ "name",
7224
+ "email",
7225
+ "tenantId",
7226
+ "formId"
7227
+ ],
6979
7228
  "properties": {
7229
+ "tenantId": {
7230
+ "type": "string"
7231
+ },
6980
7232
  "formId": {
6981
- "type": "string",
6982
- "description": "formId parameter"
7233
+ "type": "string"
6983
7234
  },
6984
- "requestBody": {
7235
+ "name": {
7236
+ "type": "string"
7237
+ },
7238
+ "email": {
7239
+ "type": "string"
7240
+ },
7241
+ "phone": {
7242
+ "type": "string"
7243
+ },
7244
+ "files": {
7245
+ "type": "array",
7246
+ "items": {
7247
+ "type": "object",
7248
+ "properties": {
7249
+ "fileKey": {
7250
+ "type": "string"
7251
+ },
7252
+ "originalFilename": {
7253
+ "type": "string"
7254
+ }
7255
+ }
7256
+ }
7257
+ },
7258
+ "fields": {
7259
+ "type": "object"
7260
+ },
7261
+ "language": {
7262
+ "type": "string"
7263
+ },
7264
+ "jobId": {
7265
+ "type": "string"
7266
+ },
7267
+ "referral": {
6985
7268
  "type": "object",
6986
- "required": [
6987
- "name",
6988
- "email",
6989
- "tenantId"
6990
- ],
6991
7269
  "properties": {
6992
- "tenantId": {
7270
+ "referrerName": {
6993
7271
  "type": "string"
6994
7272
  },
6995
- "name": {
7273
+ "referrerEmail": {
6996
7274
  "type": "string"
6997
7275
  },
6998
- "email": {
7276
+ "relationship": {
6999
7277
  "type": "string"
7000
7278
  },
7001
- "phone": {
7279
+ "note": {
7002
7280
  "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"
7281
+ }
7282
+ }
7283
+ },
7284
+ "consentCurrent": {
7285
+ "type": "boolean"
7286
+ },
7287
+ "consentFuture": {
7288
+ "type": "boolean"
7289
+ }
7290
+ }
7291
+ }
7292
+ }
7293
+ },
7294
+ {
7295
+ "type": "function",
7296
+ "function": {
7297
+ "name": "guest_submissions_options",
7298
+ "description": "Guest Submissions Options",
7299
+ "parameters": {
7300
+ "type": "object",
7301
+ "properties": {}
7302
+ }
7303
+ }
7304
+ },
7305
+ {
7306
+ "type": "function",
7307
+ "function": {
7308
+ "name": "upload_guest_submission_file",
7309
+ "description": "Upload Submission File (Guest)",
7310
+ "parameters": {
7311
+ "type": "object",
7312
+ "required": [
7313
+ "fileName",
7314
+ "contentType",
7315
+ "tenantId",
7316
+ "formId"
7317
+ ],
7318
+ "properties": {
7319
+ "fileName": {
7320
+ "type": "string"
7321
+ },
7322
+ "contentType": {
7323
+ "type": "string"
7324
+ },
7325
+ "tenantId": {
7326
+ "type": "string"
7327
+ },
7328
+ "formId": {
7329
+ "type": "string"
7330
+ }
7331
+ }
7332
+ }
7333
+ }
7334
+ },
7335
+ {
7336
+ "type": "function",
7337
+ "function": {
7338
+ "name": "guest_submission_uploads_options",
7339
+ "description": "Guest Submission Uploads Options",
7340
+ "parameters": {
7341
+ "type": "object",
7342
+ "properties": {}
7343
+ }
7344
+ }
7345
+ },
7346
+ {
7347
+ "type": "function",
7348
+ "function": {
7349
+ "name": "show_submission",
7350
+ "description": "Show Submission",
7351
+ "parameters": {
7352
+ "type": "object",
7353
+ "properties": {
7354
+ "submissionId": {
7355
+ "type": "string",
7356
+ "description": "submissionId parameter"
7357
+ }
7358
+ },
7359
+ "required": [
7360
+ "submissionId"
7361
+ ]
7362
+ }
7363
+ }
7364
+ },
7365
+ {
7366
+ "type": "function",
7367
+ "function": {
7368
+ "name": "update_submission",
7369
+ "description": "Update Submission",
7370
+ "parameters": {
7371
+ "type": "object",
7372
+ "properties": {
7373
+ "submissionId": {
7374
+ "type": "string",
7375
+ "description": "submissionId parameter"
7376
+ },
7377
+ "requestBody": {
7378
+ "title": "UpdateSubmissionRequestBody",
7379
+ "type": "object",
7380
+ "required": [
7381
+ "data"
7382
+ ],
7383
+ "properties": {
7384
+ "data": {
7385
+ "title": "UpdateSubmissionRequestBodyData",
7386
+ "type": "object",
7387
+ "required": [
7388
+ "type",
7389
+ "id",
7390
+ "attributes"
7391
+ ],
7392
+ "properties": {
7393
+ "type": {
7394
+ "type": "string",
7395
+ "enum": [
7396
+ "submissions"
7397
+ ]
7398
+ },
7399
+ "id": {
7400
+ "type": "string"
7401
+ },
7402
+ "attributes": {
7403
+ "title": "SubmissionAttributesSchema",
7404
+ "type": "object",
7405
+ "required": [
7406
+ "name",
7407
+ "email"
7408
+ ],
7409
+ "properties": {
7410
+ "name": {
7411
+ "type": "string"
7412
+ },
7413
+ "email": {
7414
+ "type": "string"
7415
+ },
7416
+ "phone": {
7417
+ "type": "string"
7418
+ },
7419
+ "source": {
7420
+ "type": "string",
7421
+ "enum": [
7422
+ "form",
7423
+ "email",
7424
+ "call",
7425
+ "api"
7426
+ ]
7427
+ },
7428
+ "status": {
7429
+ "type": "string",
7430
+ "enum": [
7431
+ "received",
7432
+ "processing",
7433
+ "processed",
7434
+ "failed"
7435
+ ]
7436
+ },
7437
+ "language": {
7438
+ "type": "string"
7439
+ },
7440
+ "fields": {
7441
+ "type": "object",
7442
+ "description": "Custom form field answers keyed by field identifier"
7443
+ },
7444
+ "files": {
7445
+ "type": "array",
7446
+ "items": {
7447
+ "type": "object",
7448
+ "properties": {
7449
+ "key": {
7450
+ "type": "string"
7451
+ },
7452
+ "bucket": {
7453
+ "type": "string"
7454
+ },
7455
+ "name": {
7456
+ "type": "string"
7457
+ },
7458
+ "contentType": {
7459
+ "type": "string"
7460
+ }
7461
+ }
7462
+ }
7463
+ },
7464
+ "referral": {
7465
+ "type": "object",
7466
+ "properties": {
7467
+ "referrerName": {
7468
+ "type": "string"
7469
+ },
7470
+ "referrerEmail": {
7471
+ "type": "string"
7472
+ },
7473
+ "relationship": {
7474
+ "type": "string"
7475
+ },
7476
+ "note": {
7477
+ "type": "string"
7478
+ }
7479
+ }
7480
+ },
7481
+ "consent": {
7482
+ "type": "object",
7483
+ "properties": {
7484
+ "current": {
7485
+ "type": "boolean"
7486
+ },
7487
+ "future": {
7488
+ "type": "boolean"
7489
+ }
7490
+ }
7491
+ },
7492
+ "timestamps": {
7493
+ "title": "ResourceTimestampsSchema",
7494
+ "type": "object",
7495
+ "properties": {
7496
+ "created": {
7497
+ "type": "string",
7498
+ "format": "date-time"
7499
+ },
7500
+ "modified": {
7501
+ "type": "string",
7502
+ "format": "date-time"
7503
+ }
7504
+ }
7505
+ }
7506
+ }
7507
+ },
7508
+ "relationships": {
7509
+ "title": "SubmissionRelationshipsSchema",
7510
+ "type": "object",
7511
+ "properties": {
7512
+ "forms": {
7513
+ "title": "SubmissionRelationshipsFormsSchema",
7514
+ "type": "object",
7515
+ "properties": {
7516
+ "data": {
7517
+ "type": "array",
7518
+ "items": {
7519
+ "type": "object",
7520
+ "properties": {
7521
+ "type": {
7522
+ "type": "string"
7523
+ },
7524
+ "id": {
7525
+ "type": "string"
7526
+ }
7527
+ }
7528
+ }
7529
+ }
7530
+ }
7531
+ },
7532
+ "jobs": {
7533
+ "title": "SubmissionRelationshipsJobsSchema",
7534
+ "type": "object",
7535
+ "properties": {
7536
+ "data": {
7537
+ "type": "array",
7538
+ "items": {
7539
+ "type": "object",
7540
+ "properties": {
7541
+ "type": {
7542
+ "type": "string"
7543
+ },
7544
+ "id": {
7545
+ "type": "string"
7546
+ }
7547
+ }
7548
+ }
7549
+ }
7550
+ }
7551
+ },
7552
+ "talents": {
7553
+ "title": "SubmissionRelationshipsTalentsSchema",
7554
+ "type": "object",
7555
+ "properties": {
7556
+ "data": {
7557
+ "type": "array",
7558
+ "items": {
7559
+ "type": "object",
7560
+ "properties": {
7561
+ "type": {
7562
+ "type": "string"
7563
+ },
7564
+ "id": {
7565
+ "type": "string"
7566
+ }
7567
+ }
7568
+ }
7569
+ }
7570
+ }
7571
+ },
7572
+ "candidates": {
7573
+ "title": "SubmissionRelationshipsCandidatesSchema",
7574
+ "type": "object",
7575
+ "properties": {
7576
+ "data": {
7577
+ "type": "array",
7578
+ "items": {
7579
+ "type": "object",
7580
+ "properties": {
7581
+ "type": {
7582
+ "type": "string"
7583
+ },
7584
+ "id": {
7585
+ "type": "string"
7586
+ }
7587
+ }
7588
+ }
7589
+ }
7590
+ }
7591
+ }
7014
7592
  }
7015
7593
  }
7016
7594
  }
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
7595
  }
7033
7596
  }
7034
7597
  }
7035
7598
  },
7036
7599
  "required": [
7037
- "formId",
7600
+ "submissionId",
7038
7601
  "requestBody"
7039
7602
  ]
7040
7603
  }
@@ -7043,8 +7606,35 @@
7043
7606
  {
7044
7607
  "type": "function",
7045
7608
  "function": {
7046
- "name": "form_submissions_options",
7047
- "description": "Form Submissions Options",
7609
+ "name": "delete_submission",
7610
+ "description": "Delete Submission",
7611
+ "parameters": {
7612
+ "type": "object",
7613
+ "properties": {
7614
+ "submissionId": {
7615
+ "type": "string",
7616
+ "description": "submissionId parameter"
7617
+ },
7618
+ "permanentDelete": {
7619
+ "type": "string",
7620
+ "description": "Set to true for permanent deletion.",
7621
+ "enum": [
7622
+ "true",
7623
+ "false"
7624
+ ]
7625
+ }
7626
+ },
7627
+ "required": [
7628
+ "submissionId"
7629
+ ]
7630
+ }
7631
+ }
7632
+ },
7633
+ {
7634
+ "type": "function",
7635
+ "function": {
7636
+ "name": "submission_options",
7637
+ "description": "Submission Options",
7048
7638
  "parameters": {
7049
7639
  "type": "object",
7050
7640
  "properties": {}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@smartytalent/openai-tools",
3
- "version": "0.1.17",
3
+ "version": "0.1.19",
4
4
  "description": "OpenAI function/tool definitions for SmartyTalent API",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",